diff options
Diffstat (limited to 'vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go')
-rw-r--r-- | vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go | 40598 |
1 files changed, 21418 insertions, 19180 deletions
diff --git a/vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go b/vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go index 1cedbcdf..3ad9dd2e 100644 --- a/vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go +++ b/vendor/modernc.org/sqlite/lib/sqlite_windows_amd64.go @@ -1,4 +1,4 @@ -// Code generated by 'ccgo -DSQLITE_PRIVATE= -export-defines "" -export-enums "" -export-externs X -export-fields F -export-typedefs "" -ignore-unsupported-alignment -pkgname sqlite3 -o lib/sqlite_windows_amd64.go -trace-translation-units testdata/sqlite-amalgamation-3380500/sqlite3.c -full-path-comments -DNDEBUG -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DSQLITE_CORE -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_RBU -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_SNAPSHOT -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_MUTEX_NOOP -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE=1 -DSQLITE_OS_WIN=1 -D_MSC_VER=1900', DO NOT EDIT. +// Code generated by 'ccgo -DSQLITE_PRIVATE= -export-defines "" -export-enums "" -export-externs X -export-fields F -export-typedefs "" -ignore-unsupported-alignment -pkgname sqlite3 -o lib/sqlite_windows_amd64.go -trace-translation-units testdata/sqlite-amalgamation-3390200/sqlite3.c -full-path-comments -DNDEBUG -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DSQLITE_CORE -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_RBU -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_SNAPSHOT -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_MUTEX_NOOP -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE=1 -DSQLITE_OS_WIN=1 -D_MSC_VER=1900', DO NOT EDIT. package sqlite3 @@ -573,8 +573,8 @@ const ( BIDI_ACCESS_ADMINISTRATOR = 0x1 // /usr/x86_64-w64-mingw32/include/winspool.h:1092:1: BIDI_ACCESS_USER = 0x2 // /usr/x86_64-w64-mingw32/include/winspool.h:1093:1: BITSPIXEL = 12 // /usr/x86_64-w64-mingw32/include/wingdi.h:1517:1: - BITVEC_SZ = 512 // testdata/sqlite-amalgamation-3380500/sqlite3.c:50003:1: - BITVEC_SZELEM = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:50016:1: + BITVEC_SZ = 512 // testdata/sqlite-amalgamation-3390200/sqlite3.c:50642:1: + BITVEC_SZELEM = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:50655:1: BI_BITFIELDS = 3 // /usr/x86_64-w64-mingw32/include/wingdi.h:666:1: BI_JPEG = 4 // /usr/x86_64-w64-mingw32/include/wingdi.h:667:1: BI_PNG = 5 // /usr/x86_64-w64-mingw32/include/wingdi.h:668:1: @@ -668,54 +668,54 @@ const ( BS_TYPEMASK = 15 // /usr/x86_64-w64-mingw32/include/winuser.h:4486:1: BS_USERBUTTON = 8 // /usr/x86_64-w64-mingw32/include/winuser.h:4482:1: BS_VCENTER = 3072 // /usr/x86_64-w64-mingw32/include/winuser.h:4496:1: - BTALLOC_ANY = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:66206:1: - BTALLOC_EXACT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:66207:1: - BTALLOC_LE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:66208:1: - BTCF_AtLast = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65689:1: - BTCF_Incrblob = 0x10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65690:1: - BTCF_Multiple = 0x20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65691:1: - BTCF_Pinned = 0x40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65692:1: - BTCF_ValidNKey = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65687:1: - BTCF_ValidOvfl = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65688:1: - BTCF_WriteFlag = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65686:1: - BTCURSOR_MAX_DEPTH = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65627:1: - BTREE_APPEND = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15187:1: - BTREE_APPLICATION_ID = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15079:1: - BTREE_AUTOVACUUM_FULL = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14952:1: - BTREE_AUTOVACUUM_INCR = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14953:1: - BTREE_AUTOVACUUM_NONE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14951:1: - BTREE_AUXDELETE = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15186:1: - BTREE_BLOBKEY = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15042:1: - BTREE_BULKLOAD = 0x00000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15124:1: - BTREE_DATA_VERSION = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15080:1: - BTREE_DEFAULT_CACHE_SIZE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15074:1: - BTREE_FILE_FORMAT = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15073:1: - BTREE_FORDELETE = 0x00000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15151:1: - BTREE_FREE_PAGE_COUNT = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15071:1: - BTREE_HINT_RANGE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15109:1: - BTREE_INCR_VACUUM = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15078:1: - BTREE_INTKEY = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15041:1: - BTREE_LARGEST_ROOT_PAGE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15075:1: - BTREE_MEMORY = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14980:1: - BTREE_OMIT_JOURNAL = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14979:1: - BTREE_PREFORMAT = 0x80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15188:1: - BTREE_SAVEPOSITION = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15185:1: - BTREE_SCHEMA_VERSION = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15072:1: - BTREE_SEEK_EQ = 0x00000002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15125:1: - BTREE_SINGLE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14981:1: - BTREE_TEXT_ENCODING = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15076:1: - BTREE_UNORDERED = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14982:1: - BTREE_USER_VERSION = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15077:1: - BTREE_WRCSR = 0x00000004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15150:1: - BTS_EXCLUSIVE = 0x0040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65602:1: - BTS_FAST_SECURE = 0x000c // testdata/sqlite-amalgamation-3380500/sqlite3.c:65599:1: - BTS_INITIALLY_EMPTY = 0x0010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65600:1: - BTS_NO_WAL = 0x0020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65601:1: - BTS_OVERWRITE = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65598:1: - BTS_PAGESIZE_FIXED = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65596:1: - BTS_PENDING = 0x0080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65603:1: - BTS_READ_ONLY = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65595:1: - BTS_SECURE_DELETE = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65597:1: + BTALLOC_ANY = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66847:1: + BTALLOC_EXACT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66848:1: + BTALLOC_LE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66849:1: + BTCF_AtLast = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66330:1: + BTCF_Incrblob = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66331:1: + BTCF_Multiple = 0x20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66332:1: + BTCF_Pinned = 0x40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66333:1: + BTCF_ValidNKey = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66328:1: + BTCF_ValidOvfl = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66329:1: + BTCF_WriteFlag = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66327:1: + BTCURSOR_MAX_DEPTH = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66268:1: + BTREE_APPEND = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15231:1: + BTREE_APPLICATION_ID = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15123:1: + BTREE_AUTOVACUUM_FULL = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14996:1: + BTREE_AUTOVACUUM_INCR = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14997:1: + BTREE_AUTOVACUUM_NONE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14995:1: + BTREE_AUXDELETE = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15230:1: + BTREE_BLOBKEY = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15086:1: + BTREE_BULKLOAD = 0x00000001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15168:1: + BTREE_DATA_VERSION = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15124:1: + BTREE_DEFAULT_CACHE_SIZE = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15118:1: + BTREE_FILE_FORMAT = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15117:1: + BTREE_FORDELETE = 0x00000008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15195:1: + BTREE_FREE_PAGE_COUNT = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15115:1: + BTREE_HINT_RANGE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15153:1: + BTREE_INCR_VACUUM = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15122:1: + BTREE_INTKEY = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15085:1: + BTREE_LARGEST_ROOT_PAGE = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15119:1: + BTREE_MEMORY = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15024:1: + BTREE_OMIT_JOURNAL = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15023:1: + BTREE_PREFORMAT = 0x80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15232:1: + BTREE_SAVEPOSITION = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15229:1: + BTREE_SCHEMA_VERSION = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15116:1: + BTREE_SEEK_EQ = 0x00000002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15169:1: + BTREE_SINGLE = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15025:1: + BTREE_TEXT_ENCODING = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15120:1: + BTREE_UNORDERED = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15026:1: + BTREE_USER_VERSION = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15121:1: + BTREE_WRCSR = 0x00000004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15194:1: + BTS_EXCLUSIVE = 0x0040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66243:1: + BTS_FAST_SECURE = 0x000c // testdata/sqlite-amalgamation-3390200/sqlite3.c:66240:1: + BTS_INITIALLY_EMPTY = 0x0010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66241:1: + BTS_NO_WAL = 0x0020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66242:1: + BTS_OVERWRITE = 0x0008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66239:1: + BTS_PAGESIZE_FIXED = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66237:1: + BTS_PENDING = 0x0080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66244:1: + BTS_READ_ONLY = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66236:1: + BTS_SECURE_DELETE = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66238:1: BUFSIZ = 512 // /usr/x86_64-w64-mingw32/include/stdio.h:17:1: C1_ALPHA = 0x0100 // /usr/x86_64-w64-mingw32/include/winnls.h:63:1: C1_BLANK = 0x0040 // /usr/x86_64-w64-mingw32/include/winnls.h:61:1: @@ -757,7 +757,7 @@ const ( CACHE_E_FIRST = 2147746160 // /usr/x86_64-w64-mingw32/include/winerror.h:2403:1: CACHE_E_LAST = 2147746175 // /usr/x86_64-w64-mingw32/include/winerror.h:2404:1: CACHE_FULLY_ASSOCIATIVE = 0xFF // /usr/x86_64-w64-mingw32/include/winnt.h:4616:1: - CACHE_STALE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22170:1: + CACHE_STALE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22320:1: CACHE_S_FIRST = 262512 // /usr/x86_64-w64-mingw32/include/winerror.h:2405:1: CACHE_S_LAST = 262527 // /usr/x86_64-w64-mingw32/include/winerror.h:2406:1: CADV_LATEACK = 0xFFFF // /usr/x86_64-w64-mingw32/include/ddeml.h:73:1: @@ -988,56 +988,56 @@ const ( CCHILDREN_SCROLLBAR = 5 // /usr/x86_64-w64-mingw32/include/winuser.h:6164:1: CCHILDREN_TITLEBAR = 5 // /usr/x86_64-w64-mingw32/include/winuser.h:6163:1: CCH_MAX_PROPSTG_NAME = 31 // /usr/x86_64-w64-mingw32/include/propidl.h:1092:1: - CC_AND = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166852:1: + CC_AND = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168926:1: CC_ANYCOLOR = 0x100 // /usr/x86_64-w64-mingw32/include/commdlg.h:320:1: - CC_BANG = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166843:1: - CC_BOM = 30 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166858:1: + CC_BANG = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168917:1: + CC_BOM = 30 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168932:1: CC_CHORD = 4 // /usr/x86_64-w64-mingw32/include/wingdi.h:1569:1: CC_CIRCLES = 1 // /usr/x86_64-w64-mingw32/include/wingdi.h:1567:1: - CC_COMMA = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166851:1: - CC_DIGIT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166831:1: - CC_DOLLAR = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166832:1: - CC_DOT = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166854:1: + CC_COMMA = 23 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168925:1: + CC_DIGIT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168905:1: + CC_DOLLAR = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168906:1: + CC_DOT = 26 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168928:1: CC_ELLIPSES = 8 // /usr/x86_64-w64-mingw32/include/wingdi.h:1570:1: CC_ENABLEHOOK = 0x10 // /usr/x86_64-w64-mingw32/include/commdlg.h:316:1: CC_ENABLETEMPLATE = 0x20 // /usr/x86_64-w64-mingw32/include/commdlg.h:317:1: CC_ENABLETEMPLATEHANDLE = 0x40 // /usr/x86_64-w64-mingw32/include/commdlg.h:318:1: - CC_EQ = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166842:1: + CC_EQ = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168916:1: CC_FULLOPEN = 0x2 // /usr/x86_64-w64-mingw32/include/commdlg.h:313:1: - CC_GT = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166841:1: - CC_ID = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166855:1: - CC_ILLEGAL = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166856:1: + CC_GT = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168915:1: + CC_ID = 27 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168929:1: + CC_ILLEGAL = 28 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168930:1: CC_INTERIORS = 128 // /usr/x86_64-w64-mingw32/include/wingdi.h:1574:1: - CC_KYWD = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166830:1: - CC_KYWD0 = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166829:1: - CC_LP = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166845:1: - CC_LT = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166840:1: - CC_MINUS = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166839:1: + CC_KYWD = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168904:1: + CC_KYWD0 = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168903:1: + CC_LP = 17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168919:1: + CC_LT = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168914:1: + CC_MINUS = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168913:1: CC_NONE = 0 // /usr/x86_64-w64-mingw32/include/wingdi.h:1566:1: - CC_NUL = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166857:1: - CC_PERCENT = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166850:1: + CC_NUL = 29 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168931:1: + CC_PERCENT = 22 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168924:1: CC_PIE = 2 // /usr/x86_64-w64-mingw32/include/wingdi.h:1568:1: - CC_PIPE = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166838:1: - CC_PLUS = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166848:1: + CC_PIPE = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168912:1: + CC_PLUS = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168922:1: CC_PREVENTFULLOPEN = 0x4 // /usr/x86_64-w64-mingw32/include/commdlg.h:314:1: - CC_QUOTE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166836:1: - CC_QUOTE2 = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166837:1: + CC_QUOTE = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168910:1: + CC_QUOTE2 = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168911:1: CC_RGBINIT = 0x1 // /usr/x86_64-w64-mingw32/include/commdlg.h:312:1: CC_ROUNDRECT = 256 // /usr/x86_64-w64-mingw32/include/wingdi.h:1575:1: - CC_RP = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166846:1: - CC_SEMI = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166847:1: + CC_RP = 18 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168920:1: + CC_SEMI = 19 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168921:1: CC_SHOWHELP = 0x8 // /usr/x86_64-w64-mingw32/include/commdlg.h:315:1: - CC_SLASH = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166844:1: + CC_SLASH = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168918:1: CC_SOLIDCOLOR = 0x80 // /usr/x86_64-w64-mingw32/include/commdlg.h:319:1: - CC_SPACE = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166835:1: - CC_STAR = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166849:1: + CC_SPACE = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168909:1: + CC_STAR = 21 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168923:1: CC_STYLED = 32 // /usr/x86_64-w64-mingw32/include/wingdi.h:1572:1: - CC_TILDA = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166853:1: - CC_VARALPHA = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166833:1: - CC_VARNUM = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166834:1: + CC_TILDA = 25 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168927:1: + CC_VARALPHA = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168907:1: + CC_VARNUM = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168908:1: CC_WIDE = 16 // /usr/x86_64-w64-mingw32/include/wingdi.h:1571:1: CC_WIDESTYLED = 64 // /usr/x86_64-w64-mingw32/include/wingdi.h:1573:1: - CC_X = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166828:1: + CC_X = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168902:1: CDECL = 0 // /usr/x86_64-w64-mingw32/include/minwindef.h:83:1: CDERR_DIALOGFAILURE = 0xFFFF // /usr/x86_64-w64-mingw32/include/cderr.h:9:1: CDERR_FINDRESFAILURE = 0x0006 // /usr/x86_64-w64-mingw32/include/cderr.h:17:1: @@ -1907,8 +1907,8 @@ const ( CHECKPNGFORMAT = 4120 // /usr/x86_64-w64-mingw32/include/wingdi.h:318:1: CHILDID_SELF = 0 // /usr/x86_64-w64-mingw32/include/winuser.h:5901:1: CHINESEBIG5_CHARSET = 136 // /usr/x86_64-w64-mingw32/include/wingdi.h:1163:1: - CKCNSTRNT_COLUMN = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:126394:1: - CKCNSTRNT_ROWID = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:126395:1: + CKCNSTRNT_COLUMN = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:127621:1: + CKCNSTRNT_ROWID = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:127622:1: CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION = 1 // /usr/x86_64-w64-mingw32/include/winnt.h:3973:1: CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION_V1 = 1 // /usr/x86_64-w64-mingw32/include/winnt.h:3971:1: CLAIM_SECURITY_ATTRIBUTE_CUSTOM_FLAGS = 0xffff0000 // /usr/x86_64-w64-mingw32/include/winnt.h:3939:1: @@ -2152,24 +2152,25 @@ const ( CM_SERVICE_VERIFIER_BOOT_LOAD = 0x00000040 // /usr/x86_64-w64-mingw32/include/winnt.h:8604:1: CM_SERVICE_VIRTUAL_DISK_BOOT_LOAD = 0x00000002 // /usr/x86_64-w64-mingw32/include/winnt.h:8599:1: CM_SERVICE_WINPE_BOOT_LOAD = 0x00000080 // /usr/x86_64-w64-mingw32/include/winnt.h:8605:1: - COLFLAG_BUSY = 0x0100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17379:1: - COLFLAG_GENERATED = 0x0060 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17381:1: - COLFLAG_HASCOLL = 0x0200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17380:1: - COLFLAG_HASTYPE = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17373:1: - COLFLAG_HIDDEN = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17372:1: - COLFLAG_NOINSERT = 0x0062 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17382:1: - COLFLAG_NOTAVAIL = 0x0080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17378:1: - COLFLAG_PRIMKEY = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17371:1: - COLFLAG_SORTERREF = 0x0010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17375:1: - COLFLAG_STORED = 0x0040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17377:1: - COLFLAG_UNIQUE = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17374:1: - COLFLAG_VIRTUAL = 0x0020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17376:1: - COLNAME_COLUMN = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15483:1: - COLNAME_DATABASE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15481:1: - COLNAME_DECLTYPE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15480:1: - COLNAME_N = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15485:1: - COLNAME_NAME = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15479:1: - COLNAME_TABLE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15482:1: + COLFLAG_BUSY = 0x0100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17434:1: + COLFLAG_GENERATED = 0x0060 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17437:1: + COLFLAG_HASCOLL = 0x0200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17435:1: + COLFLAG_HASTYPE = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17428:1: + COLFLAG_HIDDEN = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17427:1: + COLFLAG_NOEXPAND = 0x0400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17436:1: + COLFLAG_NOINSERT = 0x0062 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17438:1: + COLFLAG_NOTAVAIL = 0x0080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17433:1: + COLFLAG_PRIMKEY = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17426:1: + COLFLAG_SORTERREF = 0x0010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17430:1: + COLFLAG_STORED = 0x0040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17432:1: + COLFLAG_UNIQUE = 0x0008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17429:1: + COLFLAG_VIRTUAL = 0x0020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17431:1: + COLNAME_COLUMN = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15524:1: + COLNAME_DATABASE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15522:1: + COLNAME_DECLTYPE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15521:1: + COLNAME_N = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15526:1: + COLNAME_NAME = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15520:1: + COLNAME_TABLE = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15523:1: COLORMATCHTOTARGET_EMBEDED = 0x00000001 // /usr/x86_64-w64-mingw32/include/wingdi.h:4207:1: COLORMGMTCAPS = 121 // /usr/x86_64-w64-mingw32/include/wingdi.h:1555:1: COLORMGMTDLGORD = 1551 // /usr/x86_64-w64-mingw32/include/dlgs.h:191:1: @@ -2212,13 +2213,13 @@ const ( COLOR_WINDOW = 5 // /usr/x86_64-w64-mingw32/include/winuser.h:3812:1: COLOR_WINDOWFRAME = 6 // /usr/x86_64-w64-mingw32/include/winuser.h:3813:1: COLOR_WINDOWTEXT = 8 // /usr/x86_64-w64-mingw32/include/winuser.h:3815:1: - COLTYPE_ANY = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17356:1: - COLTYPE_BLOB = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17357:1: - COLTYPE_CUSTOM = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17355:1: - COLTYPE_INT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17358:1: - COLTYPE_INTEGER = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17359:1: - COLTYPE_REAL = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17360:1: - COLTYPE_TEXT = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17361:1: + COLTYPE_ANY = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17411:1: + COLTYPE_BLOB = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17412:1: + COLTYPE_CUSTOM = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17410:1: + COLTYPE_INT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17413:1: + COLTYPE_INTEGER = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17414:1: + COLTYPE_REAL = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17415:1: + COLTYPE_TEXT = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17416:1: COMMON_LVB_GRID_HORIZONTAL = 0x400 // /usr/x86_64-w64-mingw32/include/wincon.h:129:1: COMMON_LVB_GRID_LVERTICAL = 0x800 // /usr/x86_64-w64-mingw32/include/wincon.h:130:1: COMMON_LVB_GRID_RVERTICAL = 0x1000 // /usr/x86_64-w64-mingw32/include/wincon.h:131:1: @@ -2925,16 +2926,16 @@ const ( CT_CTYPE2 = 0x00000002 // /usr/x86_64-w64-mingw32/include/winnls.h:52:1: CT_CTYPE3 = 0x00000004 // /usr/x86_64-w64-mingw32/include/winnls.h:53:1: CURRENT_IMPORT_REDIRECTION_VERSION = 1 // /usr/x86_64-w64-mingw32/include/libloaderapi.h:156:1: - CURSOR_FAULT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65728:1: - CURSOR_INVALID = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65725:1: - CURSOR_REQUIRESEEK = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65727:1: + CURSOR_FAULT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66369:1: + CURSOR_INVALID = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66366:1: + CURSOR_REQUIRESEEK = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66368:1: CURSOR_SHOWING = 0x00000001 // /usr/x86_64-w64-mingw32/include/winuser.h:6174:1: - CURSOR_SKIPNEXT = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65726:1: - CURSOR_VALID = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65724:1: - CURTYPE_BTREE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22089:1: - CURTYPE_PSEUDO = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22092:1: - CURTYPE_SORTER = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22090:1: - CURTYPE_VTAB = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22091:1: + CURSOR_SKIPNEXT = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66367:1: + CURSOR_VALID = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66365:1: + CURTYPE_BTREE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22234:1: + CURTYPE_PSEUDO = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22237:1: + CURTYPE_SORTER = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22235:1: + CURTYPE_VTAB = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22236:1: CURVECAPS = 28 // /usr/x86_64-w64-mingw32/include/wingdi.h:1525:1: CUR_BLOB_VERSION = 2 // /usr/x86_64-w64-mingw32/include/wincrypt.h:625:1: CWCSTORAGENAME = 32 // /usr/x86_64-w64-mingw32/include/objbase.h:24:1: @@ -2955,16 +2956,16 @@ const ( DATE_SHORTDATE = 0x00000001 // /usr/x86_64-w64-mingw32/include/winnls.h:493:1: DATE_USE_ALT_CALENDAR = 0x00000004 // /usr/x86_64-w64-mingw32/include/winnls.h:495:1: DATE_YEARMONTH = 0x00000008 // /usr/x86_64-w64-mingw32/include/winnls.h:497:1: - DBFLAG_EncodingFixed = 0x0040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17005:1: - DBFLAG_InternalFunc = 0x0020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17004:1: - DBFLAG_PreferBuiltin = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17000:1: - DBFLAG_SchemaChange = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16999:1: - DBFLAG_SchemaKnownOk = 0x0010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17003:1: - DBFLAG_Vacuum = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17001:1: - DBFLAG_VacuumInto = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17002:1: - DB_ResetWanted = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16625:1: - DB_SchemaLoaded = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16623:1: - DB_UnresetViews = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16624:1: + DBFLAG_EncodingFixed = 0x0040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17056:1: + DBFLAG_InternalFunc = 0x0020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17055:1: + DBFLAG_PreferBuiltin = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17051:1: + DBFLAG_SchemaChange = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17050:1: + DBFLAG_SchemaKnownOk = 0x0010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17054:1: + DBFLAG_Vacuum = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17052:1: + DBFLAG_VacuumInto = 0x0008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17053:1: + DB_ResetWanted = 0x0008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16676:1: + DB_SchemaLoaded = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16674:1: + DB_UnresetViews = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16675:1: DCBA_FACEDOWNCENTER = 0x0101 // /usr/x86_64-w64-mingw32/include/wingdi.h:2896:1: DCBA_FACEDOWNLEFT = 0x0102 // /usr/x86_64-w64-mingw32/include/wingdi.h:2897:1: DCBA_FACEDOWNNONE = 0x0100 // /usr/x86_64-w64-mingw32/include/wingdi.h:2895:1: @@ -3167,7 +3168,7 @@ const ( DIB_PAL_COLORS = 1 // /usr/x86_64-w64-mingw32/include/wingdi.h:1654:1: DIB_RGB_COLORS = 0 // /usr/x86_64-w64-mingw32/include/wingdi.h:1653:1: DIFFERENCE = 11 // /usr/x86_64-w64-mingw32/include/winuser.h:135:1: - DIRECT_MODE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:59477:1: + DIRECT_MODE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:60118:1: DISABLE_MAX_PRIVILEGE = 0x1 // /usr/x86_64-w64-mingw32/include/winnt.h:4003:1: DISABLE_NEWLINE_AUTO_RETURN = 0x8 // /usr/x86_64-w64-mingw32/include/wincon.h:190:1: DISABLE_SMART = 0xD9 // /usr/x86_64-w64-mingw32/include/winioctl.h:966:1: @@ -4091,9 +4092,9 @@ const ( ENABLE_WINDOW_INPUT = 0x8 // /usr/x86_64-w64-mingw32/include/wincon.h:179:1: ENABLE_WRAP_AT_EOL_OUTPUT = 0x2 // /usr/x86_64-w64-mingw32/include/wincon.h:188:1: ENAMETOOLONG = 38 // /usr/x86_64-w64-mingw32/include/errno.h:56:1: - ENAME_NAME = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18269:1: - ENAME_SPAN = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18270:1: - ENAME_TAB = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18271:1: + ENAME_NAME = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18336:1: + ENAME_SPAN = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18337:1: + ENAME_TAB = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18338:1: ENCAPSULATED_POSTSCRIPT = 4116 // /usr/x86_64-w64-mingw32/include/wingdi.h:312:1: ENCRYPTION_FORMAT_DEFAULT = 1 // /usr/x86_64-w64-mingw32/include/winioctl.h:1717:1: ENDDOC = 11 // /usr/x86_64-w64-mingw32/include/wingdi.h:244:1: @@ -4175,39 +4176,40 @@ const ( EPT_S_CANT_PERFORM_OP = 1752 // /usr/x86_64-w64-mingw32/include/winerror.h:741:1: EPT_S_INVALID_ENTRY = 1751 // /usr/x86_64-w64-mingw32/include/winerror.h:740:1: EPT_S_NOT_REGISTERED = 1753 // /usr/x86_64-w64-mingw32/include/winerror.h:742:1: - EP_Agg = 0x000010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18120:1: - EP_CanBeNull = 0x100000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18136:1: - EP_Collate = 0x000100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18124:1: - EP_Commuted = 0x000200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18125:1: - EP_ConstFunc = 0x080000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18135:1: - EP_DblQuoted = 0x000040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18122:1: - EP_Distinct = 0x000002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18117:1: - EP_FixedCol = 0x000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18119:1: - EP_FromDDL = 0x40000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18146:1: - EP_FromJoin = 0x000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18116:1: - EP_HasFunc = 0x000004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18118:1: - EP_IfNullRow = 0x020000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18133:1: - EP_Immutable = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18178:1: - EP_InfixFunc = 0x000080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18123:1: - EP_IntValue = 0x000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18126:1: - EP_IsFalse = 0x20000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18145:1: - EP_IsTrue = 0x10000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18144:1: - EP_Leaf = 0x800000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18139:1: - EP_MemToken = 0x010000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18132:1: - EP_NoReduce = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18177:1: - EP_Propagate = 2097412 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18152:1: - EP_Quoted = 0x4000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18142:1: - EP_Reduced = 0x002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18129:1: - EP_Skip = 0x001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18128:1: - EP_Static = 0x8000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18143:1: - EP_Subquery = 0x200000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18137:1: - EP_Subrtn = 0x2000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18141:1: - EP_TokenOnly = 0x004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18130:1: - EP_Unlikely = 0x040000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18134:1: - EP_VarSelect = 0x000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18121:1: - EP_Win = 0x008000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18131:1: - EP_WinFunc = 0x1000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18140:1: - EP_xIsSelect = 0x000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18127:1: + EP_Agg = 0x000010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18181:1: + EP_CanBeNull = 0x200000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18198:1: + EP_Collate = 0x000200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18186:1: + EP_Commuted = 0x000400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18187:1: + EP_ConstFunc = 0x100000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18197:1: + EP_DblQuoted = 0x000080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18184:1: + EP_Distinct = 0x000004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18179:1: + EP_FixedCol = 0x000020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18182:1: + EP_FromDDL = 0x40000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18207:1: + EP_HasFunc = 0x000008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18180:1: + EP_IfNullRow = 0x040000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18195:1: + EP_Immutable = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18239:1: + EP_InfixFunc = 0x000100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18185:1: + EP_InnerON = 0x000002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18178:1: + EP_IntValue = 0x000800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18188:1: + EP_IsFalse = 0x20000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18206:1: + EP_IsTrue = 0x10000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18205:1: + EP_Leaf = 0x800000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18200:1: + EP_MemToken = 0x020000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18194:1: + EP_NoReduce = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18238:1: + EP_OuterON = 0x000001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18177:1: + EP_Propagate = 4194824 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18213:1: + EP_Quoted = 0x4000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18203:1: + EP_Reduced = 0x004000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18191:1: + EP_Skip = 0x002000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18190:1: + EP_Static = 0x8000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18204:1: + EP_Subquery = 0x400000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18199:1: + EP_Subrtn = 0x2000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18202:1: + EP_TokenOnly = 0x010000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18193:1: + EP_Unlikely = 0x080000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18196:1: + EP_VarSelect = 0x000040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18183:1: + EP_Win = 0x008000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18192:1: + EP_WinFunc = 0x1000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18201:1: + EP_xIsSelect = 0x001000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18189:1: ERANGE = 34 // /usr/x86_64-w64-mingw32/include/math.h:254:1: EROFS = 30 // /usr/x86_64-w64-mingw32/include/errno.h:51:1: ERROR = 0 // /usr/x86_64-w64-mingw32/include/wingdi.h:75:1: @@ -6022,6 +6024,9 @@ const ( ETO_PDY = 0x2000 // /usr/x86_64-w64-mingw32/include/wingdi.h:137:1: ETO_RTLREADING = 0x0080 // /usr/x86_64-w64-mingw32/include/wingdi.h:133:1: ETXTBSY = 139 // /usr/x86_64-w64-mingw32/include/errno.h:218:1: + EU4_EXPR = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18373:1: + EU4_IDX = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18372:1: + EU4_NONE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18371:1: EVENPARITY = 2 // /usr/x86_64-w64-mingw32/include/winbase.h:471:1: EVENTLOG_AUDIT_FAILURE = 0x0010 // /usr/x86_64-w64-mingw32/include/winnt.h:8449:1: EVENTLOG_AUDIT_SUCCESS = 0x0008 // /usr/x86_64-w64-mingw32/include/winnt.h:8448:1: @@ -6137,8 +6142,8 @@ const ( EXCEPTION_UNWIND = 0x66 // /usr/x86_64-w64-mingw32/include/winnt.h:2769:1: EXCEPTION_UNWINDING = 0x2 // /usr/x86_64-w64-mingw32/include/winnt.h:2763:1: EXCEPTION_WRITE_FAULT = 1 // /usr/x86_64-w64-mingw32/include/winnt.h:1654:1: - EXCLUDED_TABLE_NUMBER = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:100448:1: - EXCLUSIVE_LOCK = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16323:1: + EXCLUDED_TABLE_NUMBER = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:101477:1: + EXCLUSIVE_LOCK = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16374:1: EXDEV = 18 // /usr/x86_64-w64-mingw32/include/errno.h:41:1: EXECUTE_OFFLINE_DIAGS = 0xD4 // /usr/x86_64-w64-mingw32/include/winioctl.h:962:1: EXIT_FAILURE = 1 // /usr/x86_64-w64-mingw32/include/stdlib.h:45:1: @@ -6150,7 +6155,7 @@ const ( EXPORT_PRIVATE_KEYS = 0x4 // /usr/x86_64-w64-mingw32/include/wincrypt.h:5713:1: EXPO_OFFLOAD_FUNC_NAME = "OffloadModExpo" // /usr/x86_64-w64-mingw32/include/wincrypt.h:608:1: EXPO_OFFLOAD_REG_VALUE = "ExpoOffload" // /usr/x86_64-w64-mingw32/include/wincrypt.h:607:1: - EXPRDUP_REDUCE = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18207:1: + EXPRDUP_REDUCE = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18268:1: EXTENDED_STARTUPINFO_PRESENT = 0x80000 // /usr/x86_64-w64-mingw32/include/winbase.h:396:1: EXTEND_IEPORT = 2 // /usr/x86_64-w64-mingw32/include/winioctl.h:1111:1: EXTTEXTOUT = 512 // /usr/x86_64-w64-mingw32/include/wingdi.h:280:1: @@ -6282,7 +6287,7 @@ const ( FILE_ATTRIBUTE_DIRECTORY = 0x00000010 // /usr/x86_64-w64-mingw32/include/winnt.h:5020:1: FILE_ATTRIBUTE_ENCRYPTED = 0x00004000 // /usr/x86_64-w64-mingw32/include/winnt.h:5030:1: FILE_ATTRIBUTE_HIDDEN = 0x00000002 // /usr/x86_64-w64-mingw32/include/winnt.h:5018:1: - FILE_ATTRIBUTE_MASK = 262135 // testdata/sqlite-amalgamation-3380500/sqlite3.c:43157:1: + FILE_ATTRIBUTE_MASK = 262135 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43796:1: FILE_ATTRIBUTE_NORMAL = 0x00000080 // /usr/x86_64-w64-mingw32/include/winnt.h:5023:1: FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = 0x00002000 // /usr/x86_64-w64-mingw32/include/winnt.h:5029:1: FILE_ATTRIBUTE_OFFLINE = 0x00001000 // /usr/x86_64-w64-mingw32/include/winnt.h:5028:1: @@ -6402,7 +6407,7 @@ const ( FILE_FLAG_BACKUP_SEMANTICS = 0x2000000 // /usr/x86_64-w64-mingw32/include/winbase.h:90:1: FILE_FLAG_DELETE_ON_CLOSE = 0x4000000 // /usr/x86_64-w64-mingw32/include/winbase.h:89:1: FILE_FLAG_FIRST_PIPE_INSTANCE = 0x80000 // /usr/x86_64-w64-mingw32/include/winbase.h:95:1: - FILE_FLAG_MASK = 4282122240 // testdata/sqlite-amalgamation-3380500/sqlite3.c:43153:1: + FILE_FLAG_MASK = 4282122240 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43792:1: FILE_FLAG_NO_BUFFERING = 0x20000000 // /usr/x86_64-w64-mingw32/include/winbase.h:86:1: FILE_FLAG_OPEN_NO_RECALL = 0x100000 // /usr/x86_64-w64-mingw32/include/winbase.h:94:1: FILE_FLAG_OPEN_REPARSE_POINT = 0x200000 // /usr/x86_64-w64-mingw32/include/winbase.h:93:1: @@ -6529,8 +6534,8 @@ const ( FKF_HOTKEYACTIVE = 0x00000004 // /usr/x86_64-w64-mingw32/include/winuser.h:5653:1: FKF_HOTKEYSOUND = 0x00000010 // /usr/x86_64-w64-mingw32/include/winuser.h:5655:1: FKF_INDICATOR = 0x00000020 // /usr/x86_64-w64-mingw32/include/winuser.h:5656:1: - FLAG_SIGNED = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29490:1: - FLAG_STRING = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29491:1: + FLAG_SIGNED = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29689:1: + FLAG_STRING = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29690:1: FLASHW_ALL = 3 // /usr/x86_64-w64-mingw32/include/winuser.h:2261:1: FLASHW_CAPTION = 0x00000001 // /usr/x86_64-w64-mingw32/include/winuser.h:2259:1: FLASHW_STOP = 0 // /usr/x86_64-w64-mingw32/include/winuser.h:2258:1: @@ -6745,119 +6750,119 @@ const ( FS_VIETNAMESE = 256 // /usr/x86_64-w64-mingw32/include/wingdi.h:1186:1: FS_VOL_IS_COMPRESSED = 32768 // /usr/x86_64-w64-mingw32/include/winbase.h:597:1: FS_WANSUNG = 524288 // /usr/x86_64-w64-mingw32/include/wingdi.h:1190:1: - FTS5CSR_EOF = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231938:1: - FTS5CSR_FREE_ZRANK = 0x10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231942:1: - FTS5CSR_REQUIRE_CONTENT = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231939:1: - FTS5CSR_REQUIRE_DOCSIZE = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231940:1: - FTS5CSR_REQUIRE_INST = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231941:1: - FTS5CSR_REQUIRE_POSLIST = 0x40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231944:1: - FTS5CSR_REQUIRE_RESEEK = 0x20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231943:1: - FTS5INDEX_QUERY_DESC = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217202:1: - FTS5INDEX_QUERY_NOOUTPUT = 0x0020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217210:1: - FTS5INDEX_QUERY_PREFIX = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217201:1: - FTS5INDEX_QUERY_SCAN = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217204:1: - FTS5INDEX_QUERY_SKIPEMPTY = 0x0010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217209:1: - FTS5INDEX_QUERY_TEST_NOIDX = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217203:1: - FTS5_AND = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217685:1: - FTS5_AVERAGES_ROWID = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225111:1: - FTS5_BI_MATCH = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231925:1: - FTS5_BI_ORDER_DESC = 0x0080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231933:1: - FTS5_BI_ORDER_RANK = 0x0020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231931:1: - FTS5_BI_ORDER_ROWID = 0x0040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231932:1: - FTS5_BI_RANK = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231926:1: - FTS5_BI_ROWID_EQ = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231927:1: - FTS5_BI_ROWID_GE = 0x0010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231929:1: - FTS5_BI_ROWID_LE = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:231928:1: - FTS5_CARET = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217695:1: - FTS5_COLON = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217688:1: - FTS5_COMMA = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217696:1: - FTS5_CONTENT_EXTERNAL = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217049:1: - FTS5_CONTENT_NONE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217048:1: - FTS5_CONTENT_NORMAL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217047:1: - FTS5_CORRUPT = 267 // testdata/sqlite-amalgamation-3380500/sqlite3.c:216917:1: - FTS5_CURRENT_VERSION = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217045:1: - FTS5_DATA_DLI_B = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225126:1: - FTS5_DATA_HEIGHT_B = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225127:1: - FTS5_DATA_ID_B = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225125:1: - FTS5_DATA_PADDING = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225151:1: - FTS5_DATA_PAGE_B = 31 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225128:1: - FTS5_DATA_ZERO_PADDING = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225150:1: - FTS5_DEFAULT_AUTOMERGE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:220322:1: - FTS5_DEFAULT_CRISISMERGE = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:220324:1: - FTS5_DEFAULT_HASHSIZE = 1048576 // testdata/sqlite-amalgamation-3380500/sqlite3.c:220325:1: - FTS5_DEFAULT_NEARDIST = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:216906:1: - FTS5_DEFAULT_PAGE_SIZE = 4050 // testdata/sqlite-amalgamation-3380500/sqlite3.c:220321:1: - FTS5_DEFAULT_RANK = "bm25" // testdata/sqlite-amalgamation-3380500/sqlite3.c:216907:1: - FTS5_DEFAULT_USERMERGE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:220323:1: - FTS5_DETAIL_COLUMNS = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217053:1: - FTS5_DETAIL_FULL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217051:1: - FTS5_DETAIL_NONE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217052:1: - FTS5_EOF = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:221291:1: - FTS5_LCP = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217690:1: - FTS5_LP = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217693:1: - FTS5_MAIN_PREFIX = 48 // testdata/sqlite-amalgamation-3380500/sqlite3.c:224949:1: - FTS5_MAX_PAGE_SIZE = 65536 // testdata/sqlite-amalgamation-3380500/sqlite3.c:220328:1: - FTS5_MAX_PREFIX_INDEXES = 31 // testdata/sqlite-amalgamation-3380500/sqlite3.c:216899:1: - FTS5_MAX_SEGMENT = 2000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:216904:1: - FTS5_MAX_TOKEN_SIZE = 32768 // testdata/sqlite-amalgamation-3380500/sqlite3.c:216892:1: - FTS5_MERGE_NLIST = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:229960:1: - FTS5_MINUS = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217689:1: - FTS5_MIN_DLIDX_SIZE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:224947:1: - FTS5_NOT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217686:1: - FTS5_OPT_WORK_UNIT = 1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:224944:1: - FTS5_OR = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217684:1: - FTS5_PATTERN_GLOB = 66 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217057:1: - FTS5_PATTERN_LIKE = 65 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217056:1: - FTS5_PATTERN_NONE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217055:1: - FTS5_PLAN_MATCH = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:232164:1: - FTS5_PLAN_ROWID = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:232169:1: - FTS5_PLAN_SCAN = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:232168:1: - FTS5_PLAN_SORTED_MATCH = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:232167:1: - FTS5_PLAN_SOURCE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:232165:1: - FTS5_PLAN_SPECIAL = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:232166:1: - FTS5_PLUS = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217697:1: - FTS5_PORTER_MAX_TOKEN = 64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:236362:1: - FTS5_RANK_NAME = "rank" // testdata/sqlite-amalgamation-3380500/sqlite3.c:216910:1: - FTS5_RCP = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217691:1: - FTS5_REMOVE_DIACRITICS_COMPLEX = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:236061:1: - FTS5_REMOVE_DIACRITICS_NONE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:236059:1: - FTS5_REMOVE_DIACRITICS_SIMPLE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:236060:1: - FTS5_ROWID_NAME = "rowid" // testdata/sqlite-amalgamation-3380500/sqlite3.c:216911:1: - FTS5_RP = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217694:1: - FTS5_SEGITER_ONETERM = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225367:1: - FTS5_SEGITER_REVERSE = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225368:1: - FTS5_STAR = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217698:1: - FTS5_STMT_DELETE_CONTENT = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:234686:1: - FTS5_STMT_DELETE_DOCSIZE = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:234688:1: - FTS5_STMT_INSERT_CONTENT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:234684:1: - FTS5_STMT_LOOKUP = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217469:1: - FTS5_STMT_LOOKUP_DOCSIZE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:234689:1: - FTS5_STMT_REPLACE_CONFIG = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:234690:1: - FTS5_STMT_REPLACE_CONTENT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:234685:1: - FTS5_STMT_REPLACE_DOCSIZE = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:234687:1: - FTS5_STMT_SCAN = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:234691:1: - FTS5_STMT_SCAN_ASC = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217467:1: - FTS5_STMT_SCAN_DESC = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217468:1: - FTS5_STRING = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217692:1: - FTS5_STRUCTURE_ROWID = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225112:1: - FTS5_TERM = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217687:1: - FTS5_TOKENIZE_AUX = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13058:1: - FTS5_TOKENIZE_DOCUMENT = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13057:1: - FTS5_TOKENIZE_PREFIX = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13056:1: - FTS5_TOKENIZE_QUERY = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13055:1: - FTS5_TOKEN_COLOCATED = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13062:1: - FTS5_VOCAB_COL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:238436:1: - FTS5_VOCAB_COL_SCHEMA = "term, col, doc, cnt" // testdata/sqlite-amalgamation-3380500/sqlite3.c:238440:1: - FTS5_VOCAB_INSTANCE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:238438:1: - FTS5_VOCAB_INST_SCHEMA = "term, doc, col, offset" // testdata/sqlite-amalgamation-3380500/sqlite3.c:238442:1: - FTS5_VOCAB_ROW = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:238437:1: - FTS5_VOCAB_ROW_SCHEMA = "term, doc, cnt" // testdata/sqlite-amalgamation-3380500/sqlite3.c:238441:1: - FTS5_VOCAB_TERM_EQ = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:238447:1: - FTS5_VOCAB_TERM_GE = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:238448:1: - FTS5_VOCAB_TERM_LE = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:238449:1: - FTS5_WORK_UNIT = 64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:224945:1: - FULLY_WITHIN = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10803:1: - FUNC_PERFECT_MATCH = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:119879:1: + FTS5CSR_EOF = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234063:1: + FTS5CSR_FREE_ZRANK = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234067:1: + FTS5CSR_REQUIRE_CONTENT = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234064:1: + FTS5CSR_REQUIRE_DOCSIZE = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234065:1: + FTS5CSR_REQUIRE_INST = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234066:1: + FTS5CSR_REQUIRE_POSLIST = 0x40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234069:1: + FTS5CSR_REQUIRE_RESEEK = 0x20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234068:1: + FTS5INDEX_QUERY_DESC = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219324:1: + FTS5INDEX_QUERY_NOOUTPUT = 0x0020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219332:1: + FTS5INDEX_QUERY_PREFIX = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219323:1: + FTS5INDEX_QUERY_SCAN = 0x0008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219326:1: + FTS5INDEX_QUERY_SKIPEMPTY = 0x0010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219331:1: + FTS5INDEX_QUERY_TEST_NOIDX = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219325:1: + FTS5_AND = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219807:1: + FTS5_AVERAGES_ROWID = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227236:1: + FTS5_BI_MATCH = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234050:1: + FTS5_BI_ORDER_DESC = 0x0080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234058:1: + FTS5_BI_ORDER_RANK = 0x0020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234056:1: + FTS5_BI_ORDER_ROWID = 0x0040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234057:1: + FTS5_BI_RANK = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234051:1: + FTS5_BI_ROWID_EQ = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234052:1: + FTS5_BI_ROWID_GE = 0x0010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234054:1: + FTS5_BI_ROWID_LE = 0x0008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234053:1: + FTS5_CARET = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219817:1: + FTS5_COLON = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219810:1: + FTS5_COMMA = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219818:1: + FTS5_CONTENT_EXTERNAL = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219171:1: + FTS5_CONTENT_NONE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219170:1: + FTS5_CONTENT_NORMAL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219169:1: + FTS5_CORRUPT = 267 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219039:1: + FTS5_CURRENT_VERSION = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219167:1: + FTS5_DATA_DLI_B = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227251:1: + FTS5_DATA_HEIGHT_B = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227252:1: + FTS5_DATA_ID_B = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227250:1: + FTS5_DATA_PADDING = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227276:1: + FTS5_DATA_PAGE_B = 31 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227253:1: + FTS5_DATA_ZERO_PADDING = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227275:1: + FTS5_DEFAULT_AUTOMERGE = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:222444:1: + FTS5_DEFAULT_CRISISMERGE = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:222446:1: + FTS5_DEFAULT_HASHSIZE = 1048576 // testdata/sqlite-amalgamation-3390200/sqlite3.c:222447:1: + FTS5_DEFAULT_NEARDIST = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219028:1: + FTS5_DEFAULT_PAGE_SIZE = 4050 // testdata/sqlite-amalgamation-3390200/sqlite3.c:222443:1: + FTS5_DEFAULT_RANK = "bm25" // testdata/sqlite-amalgamation-3390200/sqlite3.c:219029:1: + FTS5_DEFAULT_USERMERGE = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:222445:1: + FTS5_DETAIL_COLUMNS = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219175:1: + FTS5_DETAIL_FULL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219173:1: + FTS5_DETAIL_NONE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219174:1: + FTS5_EOF = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:223413:1: + FTS5_LCP = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219812:1: + FTS5_LP = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219815:1: + FTS5_MAIN_PREFIX = 48 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227074:1: + FTS5_MAX_PAGE_SIZE = 65536 // testdata/sqlite-amalgamation-3390200/sqlite3.c:222450:1: + FTS5_MAX_PREFIX_INDEXES = 31 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219021:1: + FTS5_MAX_SEGMENT = 2000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219026:1: + FTS5_MAX_TOKEN_SIZE = 32768 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219014:1: + FTS5_MERGE_NLIST = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:232085:1: + FTS5_MINUS = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219811:1: + FTS5_MIN_DLIDX_SIZE = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227072:1: + FTS5_NOT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219808:1: + FTS5_OPT_WORK_UNIT = 1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227069:1: + FTS5_OR = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219806:1: + FTS5_PATTERN_GLOB = 66 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219179:1: + FTS5_PATTERN_LIKE = 65 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219178:1: + FTS5_PATTERN_NONE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219177:1: + FTS5_PLAN_MATCH = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234289:1: + FTS5_PLAN_ROWID = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234294:1: + FTS5_PLAN_SCAN = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234293:1: + FTS5_PLAN_SORTED_MATCH = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234292:1: + FTS5_PLAN_SOURCE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234290:1: + FTS5_PLAN_SPECIAL = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234291:1: + FTS5_PLUS = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219819:1: + FTS5_PORTER_MAX_TOKEN = 64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:238487:1: + FTS5_RANK_NAME = "rank" // testdata/sqlite-amalgamation-3390200/sqlite3.c:219032:1: + FTS5_RCP = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219813:1: + FTS5_REMOVE_DIACRITICS_COMPLEX = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:238186:1: + FTS5_REMOVE_DIACRITICS_NONE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:238184:1: + FTS5_REMOVE_DIACRITICS_SIMPLE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:238185:1: + FTS5_ROWID_NAME = "rowid" // testdata/sqlite-amalgamation-3390200/sqlite3.c:219033:1: + FTS5_RP = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219816:1: + FTS5_SEGITER_ONETERM = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227492:1: + FTS5_SEGITER_REVERSE = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227493:1: + FTS5_STAR = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219820:1: + FTS5_STMT_DELETE_CONTENT = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:236811:1: + FTS5_STMT_DELETE_DOCSIZE = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:236813:1: + FTS5_STMT_INSERT_CONTENT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:236809:1: + FTS5_STMT_LOOKUP = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219591:1: + FTS5_STMT_LOOKUP_DOCSIZE = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:236814:1: + FTS5_STMT_REPLACE_CONFIG = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:236815:1: + FTS5_STMT_REPLACE_CONTENT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:236810:1: + FTS5_STMT_REPLACE_DOCSIZE = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:236812:1: + FTS5_STMT_SCAN = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:236816:1: + FTS5_STMT_SCAN_ASC = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219589:1: + FTS5_STMT_SCAN_DESC = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219590:1: + FTS5_STRING = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219814:1: + FTS5_STRUCTURE_ROWID = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227237:1: + FTS5_TERM = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219809:1: + FTS5_TOKENIZE_AUX = 0x0008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13088:1: + FTS5_TOKENIZE_DOCUMENT = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13087:1: + FTS5_TOKENIZE_PREFIX = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13086:1: + FTS5_TOKENIZE_QUERY = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13085:1: + FTS5_TOKEN_COLOCATED = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13092:1: + FTS5_VOCAB_COL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:240561:1: + FTS5_VOCAB_COL_SCHEMA = "term, col, doc, cnt" // testdata/sqlite-amalgamation-3390200/sqlite3.c:240565:1: + FTS5_VOCAB_INSTANCE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:240563:1: + FTS5_VOCAB_INST_SCHEMA = "term, doc, col, offset" // testdata/sqlite-amalgamation-3390200/sqlite3.c:240567:1: + FTS5_VOCAB_ROW = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:240562:1: + FTS5_VOCAB_ROW_SCHEMA = "term, doc, cnt" // testdata/sqlite-amalgamation-3390200/sqlite3.c:240566:1: + FTS5_VOCAB_TERM_EQ = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:240572:1: + FTS5_VOCAB_TERM_GE = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:240573:1: + FTS5_VOCAB_TERM_LE = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:240574:1: + FTS5_WORK_UNIT = 64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:227070:1: + FULLY_WITHIN = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10833:1: + FUNC_PERFECT_MATCH = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:121090:1: FVIRTKEY = 1 // /usr/x86_64-w64-mingw32/include/winuser.h:1810:1: FW_BLACK = 900 // /usr/x86_64-w64-mingw32/include/wingdi.h:1220:1: FW_BOLD = 700 // /usr/x86_64-w64-mingw32/include/wingdi.h:1212:1: @@ -6878,7 +6883,7 @@ const ( GA_ROOT = 2 // /usr/x86_64-w64-mingw32/include/winuser.h:6252:1: GA_ROOTOWNER = 3 // /usr/x86_64-w64-mingw32/include/winuser.h:6253:1: GB2312_CHARSET = 134 // /usr/x86_64-w64-mingw32/include/wingdi.h:1162:1: - GCC_VERSION = 10000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:218:1: + GCC_VERSION = 10000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:218:1: GCLP_HBRBACKGROUND = -10 // /usr/x86_64-w64-mingw32/include/winuser.h:1018:1: GCLP_HCURSOR = -12 // /usr/x86_64-w64-mingw32/include/winuser.h:1019:1: GCLP_HICON = -14 // /usr/x86_64-w64-mingw32/include/winuser.h:1020:1: @@ -6954,7 +6959,7 @@ const ( GENERIC_READ = 2147483648 // /usr/x86_64-w64-mingw32/include/winnt.h:2898:1: GENERIC_WRITE = 1073741824 // /usr/x86_64-w64-mingw32/include/winnt.h:2899:1: GEOID_NOT_AVAILABLE = -1 // /usr/x86_64-w64-mingw32/include/winnls.h:754:1: - GEOPOLY_PI = 3.1415926535897932385 // testdata/sqlite-amalgamation-3380500/sqlite3.c:200887:1: + GEOPOLY_PI = 3.1415926535897932385 // testdata/sqlite-amalgamation-3390200/sqlite3.c:203009:1: GETCOLORTABLE = 5 // /usr/x86_64-w64-mingw32/include/wingdi.h:238:1: GETDEVICEUNITS = 42 // /usr/x86_64-w64-mingw32/include/wingdi.h:274:1: GETEXTENDEDTEXTMETRICS = 256 // /usr/x86_64-w64-mingw32/include/wingdi.h:276:1: @@ -7090,13 +7095,13 @@ const ( HANGUL_CHARSET = 129 // /usr/x86_64-w64-mingw32/include/wingdi.h:1161:1: HANGUP_COMPLETE = 0x05 // /usr/x86_64-w64-mingw32/include/nb30.h:106:1: HANGUP_PENDING = 0x04 // /usr/x86_64-w64-mingw32/include/nb30.h:105:1: - HASHSIZE = 97 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196055:1: - HASHTABLE_HASH_1 = 383 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61551:1: - HASHTABLE_NPAGE = 4096 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61550:1: - HASHTABLE_NSLOT = 8192 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61552:1: - HAVE_FCHOWN = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:164:1: - HAVE_LSTAT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166:1: - HAVE_READLINK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:165:1: + HASHSIZE = 97 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198177:1: + HASHTABLE_HASH_1 = 383 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62192:1: + HASHTABLE_NPAGE = 4096 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62191:1: + HASHTABLE_NSLOT = 8192 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62193:1: + HAVE_FCHOWN = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:164:1: + HAVE_LSTAT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:166:1: + HAVE_READLINK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:165:1: HAVE_USLEEP = 1 // <defines>:3:1: HCBT_ACTIVATE = 5 // /usr/x86_64-w64-mingw32/include/winuser.h:487:1: HCBT_CLICKSKIPPED = 6 // /usr/x86_64-w64-mingw32/include/winuser.h:488:1: @@ -7932,9 +7937,9 @@ const ( IN = 0 // /usr/x86_64-w64-mingw32/include/minwindef.h:57:1: INADDR_LOOPBACK = 0x7f000001 // /usr/x86_64-w64-mingw32/include/winsock.h:132:1: INADDR_NONE = 0xffffffff // /usr/x86_64-w64-mingw32/include/winsock.h:134:1: - INCRINIT_NORMAL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:98614:1: - INCRINIT_ROOT = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:98616:1: - INCRINIT_TASK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:98615:1: + INCRINIT_NORMAL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:99643:1: + INCRINIT_ROOT = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:99645:1: + INCRINIT_TASK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:99644:1: INDEXID_CONTAINER = 0 // /usr/x86_64-w64-mingw32/include/winuser.h:5903:1: INDEXID_OBJECT = 0 // /usr/x86_64-w64-mingw32/include/winuser.h:5902:1: INFINITE = 0xffffffff // /usr/x86_64-w64-mingw32/include/winbase.h:480:1: @@ -7942,23 +7947,24 @@ const ( INHERIT_CALLER_PRIORITY = 0x20000 // /usr/x86_64-w64-mingw32/include/winbase.h:394:1: INHERIT_ONLY_ACE = 8 // /usr/x86_64-w64-mingw32/include/winnt.h:3339:1: INHERIT_PARENT_AFFINITY = 0x10000 // /usr/x86_64-w64-mingw32/include/winbase.h:393:1: - INITFLAG_AlterAdd = 0x0003 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19127:1: - INITFLAG_AlterDrop = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19126:1: - INITFLAG_AlterMask = 0x0003 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19124:1: - INITFLAG_AlterRename = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19125:1: + INITFLAG_AlterAdd = 0x0003 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19232:1: + INITFLAG_AlterDrop = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19231:1: + INITFLAG_AlterMask = 0x0003 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19229:1: + INITFLAG_AlterRename = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19230:1: INITIAL_FPCSR = 0x027f // /usr/x86_64-w64-mingw32/include/winnt.h:1677:1: INITIAL_MXCSR = 0x1f80 // /usr/x86_64-w64-mingw32/include/winnt.h:1676:1: INIT_ONCE_ASYNC = 2 // /usr/x86_64-w64-mingw32/include/synchapi.h:22:1: INIT_ONCE_CHECK_ONLY = 1 // /usr/x86_64-w64-mingw32/include/synchapi.h:21:1: INIT_ONCE_CTX_RESERVED_BITS = 2 // /usr/x86_64-w64-mingw32/include/synchapi.h:25:1: INIT_ONCE_INIT_FAILED = 4 // /usr/x86_64-w64-mingw32/include/synchapi.h:23:1: - INLINEFUNC_affinity = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17153:1: - INLINEFUNC_coalesce = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17149:1: - INLINEFUNC_expr_compare = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17152:1: - INLINEFUNC_expr_implies_expr = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17151:1: - INLINEFUNC_iif = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17154:1: - INLINEFUNC_implies_nonnull_row = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17150:1: - INLINEFUNC_unlikely = 99 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17155:1: + INLINEFUNC_affinity = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17207:1: + INLINEFUNC_coalesce = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17203:1: + INLINEFUNC_expr_compare = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17206:1: + INLINEFUNC_expr_implies_expr = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17205:1: + INLINEFUNC_iif = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17208:1: + INLINEFUNC_implies_nonnull_row = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17204:1: + INLINEFUNC_sqlite_offset = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17209:1: + INLINEFUNC_unlikely = 99 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17210:1: INPLACE_E_FIRST = 2147746208 // /usr/x86_64-w64-mingw32/include/winerror.h:2420:1: INPLACE_E_LAST = 2147746223 // /usr/x86_64-w64-mingw32/include/winerror.h:2421:1: INPLACE_S_FIRST = 262560 // /usr/x86_64-w64-mingw32/include/winerror.h:2422:1: @@ -7984,14 +7990,14 @@ const ( IN_CLASSC_HOST = 0x000000ff // /usr/x86_64-w64-mingw32/include/winsock.h:129:1: IN_CLASSC_NET = 0xffffff00 // /usr/x86_64-w64-mingw32/include/winsock.h:127:1: IN_CLASSC_NSHIFT = 8 // /usr/x86_64-w64-mingw32/include/winsock.h:128:1: - IN_INDEX_EPH = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20483:1: - IN_INDEX_INDEX_ASC = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20484:1: - IN_INDEX_INDEX_DESC = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20485:1: - IN_INDEX_LOOP = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20492:1: - IN_INDEX_MEMBERSHIP = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20491:1: - IN_INDEX_NOOP = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20486:1: - IN_INDEX_NOOP_OK = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20490:1: - IN_INDEX_ROWID = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20482:1: + IN_INDEX_EPH = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20625:1: + IN_INDEX_INDEX_ASC = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20626:1: + IN_INDEX_INDEX_DESC = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20627:1: + IN_INDEX_LOOP = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20634:1: + IN_INDEX_MEMBERSHIP = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20633:1: + IN_INDEX_NOOP = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20628:1: + IN_INDEX_NOOP_OK = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20632:1: + IN_INDEX_ROWID = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20624:1: IOCPARM_MASK = 0x7f // /usr/x86_64-w64-mingw32/include/winsock.h:46:1: IOCTL_CHANGER_BASE = 48 // /usr/x86_64-w64-mingw32/include/winioctl.h:973:1: IOCTL_CHANGER_EXCHANGE_MEDIUM = 3162144 // /usr/x86_64-w64-mingw32/include/winioctl.h:981:1: @@ -8220,24 +8226,24 @@ const ( IS_TEXT_UNICODE_STATISTICS = 0x0002 // /usr/x86_64-w64-mingw32/include/winnt.h:7835:1: IS_TEXT_UNICODE_UNICODE_MASK = 0x000F // /usr/x86_64-w64-mingw32/include/winnt.h:7849:1: ITALIC_FONTTYPE = 0x200 // /usr/x86_64-w64-mingw32/include/commdlg.h:471:1: - IsStat4 = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:111279:1: - JEACH_ATOM = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:195374:1: - JEACH_FULLKEY = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:195377:1: - JEACH_ID = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:195375:1: - JEACH_JSON = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:195382:1: - JEACH_KEY = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:195371:1: - JEACH_PARENT = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:195376:1: - JEACH_PATH = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:195378:1: - JEACH_ROOT = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:195383:1: - JEACH_TYPE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:195373:1: - JEACH_VALUE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:195372:1: - JNODE_APPEND = 0x20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193328:1: - JNODE_ESCAPE = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193324:1: - JNODE_LABEL = 0x40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193329:1: - JNODE_PATCH = 0x10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193327:1: - JNODE_RAW = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193323:1: - JNODE_REMOVE = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193325:1: - JNODE_REPLACE = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193326:1: + IsStat4 = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:112449:1: + JEACH_ATOM = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:197496:1: + JEACH_FULLKEY = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:197499:1: + JEACH_ID = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:197497:1: + JEACH_JSON = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:197504:1: + JEACH_KEY = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:197493:1: + JEACH_PARENT = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:197498:1: + JEACH_PATH = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:197500:1: + JEACH_ROOT = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:197505:1: + JEACH_TYPE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:197495:1: + JEACH_VALUE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:197494:1: + JNODE_APPEND = 0x20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195450:1: + JNODE_ESCAPE = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195446:1: + JNODE_LABEL = 0x40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195451:1: + JNODE_PATCH = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195449:1: + JNODE_RAW = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195445:1: + JNODE_REMOVE = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195447:1: + JNODE_REPLACE = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195448:1: JOB_ACCESS_ADMINISTER = 0x00000010 // /usr/x86_64-w64-mingw32/include/winspool.h:1279:1: JOB_ACCESS_READ = 0x00000020 // /usr/x86_64-w64-mingw32/include/winspool.h:1280:1: JOB_ALL_ACCESS = 983088 // /usr/x86_64-w64-mingw32/include/winspool.h:1290:1: @@ -8439,29 +8445,30 @@ const ( JOY_RETURNY = 2 // /usr/x86_64-w64-mingw32/include/mmsystem.h:1424:1: JOY_RETURNZ = 4 // /usr/x86_64-w64-mingw32/include/mmsystem.h:1425:1: JOY_USEDEADZONE = 2048 // /usr/x86_64-w64-mingw32/include/mmsystem.h:1434:1: - JSON_ABPATH = 0x03 // testdata/sqlite-amalgamation-3380500/sqlite3.c:194735:1: - JSON_ARRAY = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193308:1: - JSON_CACHE_ID = -429938 // testdata/sqlite-amalgamation-3380500/sqlite3.c:194224:1: - JSON_CACHE_SZ = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:194225:1: - JSON_FALSE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193304:1: - JSON_INT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193305:1: - JSON_ISSET = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:194736:1: - JSON_JSON = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:194733:1: - JSON_MAX_DEPTH = 2000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193370:1: - JSON_NULL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193302:1: - JSON_OBJECT = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193309:1: - JSON_REAL = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193306:1: - JSON_SQL = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:194734:1: - JSON_STRING = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193307:1: - JSON_SUBTYPE = 74 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193312:1: - JSON_TRUE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:193303:1: - JT_CROSS = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18372:1: - JT_ERROR = 0x0040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18377:1: - JT_INNER = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18371:1: - JT_LEFT = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18374:1: - JT_NATURAL = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18373:1: - JT_OUTER = 0x0020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18376:1: - JT_RIGHT = 0x0010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18375:1: + JSON_ABPATH = 0x03 // testdata/sqlite-amalgamation-3390200/sqlite3.c:196857:1: + JSON_ARRAY = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195430:1: + JSON_CACHE_ID = -429938 // testdata/sqlite-amalgamation-3390200/sqlite3.c:196346:1: + JSON_CACHE_SZ = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:196347:1: + JSON_FALSE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195426:1: + JSON_INT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195427:1: + JSON_ISSET = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:196858:1: + JSON_JSON = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:196855:1: + JSON_MAX_DEPTH = 2000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195492:1: + JSON_NULL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195424:1: + JSON_OBJECT = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195431:1: + JSON_REAL = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195428:1: + JSON_SQL = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:196856:1: + JSON_STRING = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195429:1: + JSON_SUBTYPE = 74 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195434:1: + JSON_TRUE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:195425:1: + JT_CROSS = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18467:1: + JT_ERROR = 0x80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18474:1: + JT_INNER = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18466:1: + JT_LEFT = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18469:1: + JT_LTORJ = 0x40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18472:1: + JT_NATURAL = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18468:1: + JT_OUTER = 0x20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18471:1: + JT_RIGHT = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18470:1: KDF_ALGORITHMID = 0x8 // /usr/x86_64-w64-mingw32/include/bcrypt.h:66:1: KDF_CONTEXT = 0xe // /usr/x86_64-w64-mingw32/include/bcrypt.h:72:1: KDF_GENERIC_PARAMETER = 0x11 // /usr/x86_64-w64-mingw32/include/bcrypt.h:75:1: @@ -8487,8 +8494,8 @@ const ( KEYEVENTF_KEYUP = 0x0002 // /usr/x86_64-w64-mingw32/include/winuser.h:2596:1: KEYEVENTF_SCANCODE = 0x0008 // /usr/x86_64-w64-mingw32/include/winuser.h:2598:1: KEYEVENTF_UNICODE = 0x0004 // /usr/x86_64-w64-mingw32/include/winuser.h:2597:1: - KEYINFO_ORDER_BIGNULL = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17747:1: - KEYINFO_ORDER_DESC = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17746:1: + KEYINFO_ORDER_BIGNULL = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17803:1: + KEYINFO_ORDER_DESC = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17802:1: KEYSTATEBLOB = 0xc // /usr/x86_64-w64-mingw32/include/wincrypt.h:360:1: KEY_ALL_ACCESS = 983103 // /usr/x86_64-w64-mingw32/include/winnt.h:8504:1: KEY_CREATE_LINK = 32 // /usr/x86_64-w64-mingw32/include/winnt.h:8496:1: @@ -8813,8 +8820,8 @@ const ( LC_WIDESTYLED = 64 // /usr/x86_64-w64-mingw32/include/wingdi.h:1583:1: LEFT_ALT_PRESSED = 0x2 // /usr/x86_64-w64-mingw32/include/wincon.h:45:1: LEFT_CTRL_PRESSED = 0x8 // /usr/x86_64-w64-mingw32/include/wincon.h:47:1: - LEGACY_SCHEMA_TABLE = "sqlite_master" // testdata/sqlite-amalgamation-3380500/sqlite3.c:14488:1: - LEGACY_TEMP_SCHEMA_TABLE = "sqlite_temp_master" // testdata/sqlite-amalgamation-3380500/sqlite3.c:14489:1: + LEGACY_SCHEMA_TABLE = "sqlite_master" // testdata/sqlite-amalgamation-3390200/sqlite3.c:14530:1: + LEGACY_TEMP_SCHEMA_TABLE = "sqlite_temp_master" // testdata/sqlite-amalgamation-3390200/sqlite3.c:14531:1: LF_FACESIZE = 32 // /usr/x86_64-w64-mingw32/include/wingdi.h:1040:1: LF_FULLFACESIZE = 64 // /usr/x86_64-w64-mingw32/include/wingdi.h:1083:1: LGRPID_ARABIC = 0x000d // /usr/x86_64-w64-mingw32/include/winnls.h:603:1: @@ -8999,8 +9006,8 @@ const ( LOCALE_SYEARMONTH = 0x00001006 // /usr/x86_64-w64-mingw32/include/winnls.h:449:1: LOCALE_USE_CP_ACP = 0x40000000 // /usr/x86_64-w64-mingw32/include/winnls.h:306:1: LOCALE_USE_NLS = 0x10000000 // /usr/x86_64-w64-mingw32/include/oleauto.h:112:1: - LOCATE_NOERR = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19891:1: - LOCATE_VIEW = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19890:1: + LOCATE_NOERR = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20032:1: + LOCATE_VIEW = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20031:1: LOCKFILE_EXCLUSIVE_LOCK = 0x2 // /usr/x86_64-w64-mingw32/include/minwinbase.h:181:1: LOCKFILE_FAIL_IMMEDIATELY = 0x1 // /usr/x86_64-w64-mingw32/include/minwinbase.h:180:1: LOCK_ELEMENT = 0 // /usr/x86_64-w64-mingw32/include/winioctl.h:1109:1: @@ -9027,7 +9034,7 @@ const ( LONG_LONG_MIN = -9223372036854775808 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include-fixed/limits.h:152:1: LONG_MAX = 2147483647 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include-fixed/limits.h:131:1: LONG_MIN = -2147483648 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include-fixed/limits.h:129:1: - LOOKASIDE_SMALL = 128 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16708:1: + LOOKASIDE_SMALL = 128 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16759:1: LOW_SURROGATE_END = 0xdfff // /usr/x86_64-w64-mingw32/include/winnls.h:36:1: LOW_SURROGATE_START = 0xdc00 // /usr/x86_64-w64-mingw32/include/winnls.h:35:1: LPD_DOUBLEBUFFER = 0x00000001 // /usr/x86_64-w64-mingw32/include/wingdi.h:4350:1: @@ -9072,9 +9079,9 @@ const ( LZERROR_READ = -3 // /usr/x86_64-w64-mingw32/include/lzexpand.h:17:1: LZERROR_UNKNOWNALG = -8 // /usr/x86_64-w64-mingw32/include/lzexpand.h:22:1: LZERROR_WRITE = -4 // /usr/x86_64-w64-mingw32/include/lzexpand.h:18:1: - M10d_Any = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19327:1: - M10d_No = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19328:1: - M10d_Yes = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19326:1: + M10d_Any = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19432:1: + M10d_No = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19433:1: + M10d_Yes = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19431:1: MAC_CHARSET = 77 // /usr/x86_64-w64-mingw32/include/wingdi.h:1175:1: MAPVK_VK_TO_CHAR = 2 // /usr/x86_64-w64-mingw32/include/winuser.h:2991:1: MAPVK_VK_TO_VSC = 0 // /usr/x86_64-w64-mingw32/include/winuser.h:2989:1: @@ -9140,7 +9147,7 @@ const ( MAX_REASON_DESC_LEN = 256 // /usr/x86_64-w64-mingw32/include/reason.h:65:1: MAX_REASON_NAME_LEN = 64 // /usr/x86_64-w64-mingw32/include/reason.h:64:1: MAX_RESOURCEMANAGER_DESCRIPTION_LENGTH = 64 // /usr/x86_64-w64-mingw32/include/ktmtypes.h:121:1: - MAX_SECTOR_SIZE = 0x10000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53632:1: + MAX_SECTOR_SIZE = 0x10000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54270:1: MAX_SHUTDOWN_TIMEOUT = 315360000 // /usr/x86_64-w64-mingw32/include/winreg.h:236:1: MAX_SID_SIZE = 256 // /usr/x86_64-w64-mingw32/include/winefs.h:47:1: MAX_SIZE_SECURITY_ID = 512 // /usr/x86_64-w64-mingw32/include/urlmon.h:6650:1: @@ -9700,41 +9707,41 @@ const ( MEDIA_WRITE_ONCE = 0x00000002 // /usr/x86_64-w64-mingw32/include/winioctl.h:359:1: MEDIA_WRITE_PROTECTED = 0x00000100 // /usr/x86_64-w64-mingw32/include/winioctl.h:363:1: MEMBERID_NIL = -1 // /usr/x86_64-w64-mingw32/include/oleauto.h:556:1: - MEMJOURNAL_DFLT_FILECHUNKSIZE = 1024 // testdata/sqlite-amalgamation-3380500/sqlite3.c:99772:1: + MEMJOURNAL_DFLT_FILECHUNKSIZE = 1024 // testdata/sqlite-amalgamation-3390200/sqlite3.c:100801:1: MEMORY_ALLOCATION_ALIGNMENT = 16 // /usr/x86_64-w64-mingw32/include/winnt.h:120:1: MEMORY_PRIORITY_BELOW_NORMAL = 4 // /usr/x86_64-w64-mingw32/include/processthreadsapi.h:166:1: MEMORY_PRIORITY_LOW = 2 // /usr/x86_64-w64-mingw32/include/processthreadsapi.h:164:1: MEMORY_PRIORITY_MEDIUM = 3 // /usr/x86_64-w64-mingw32/include/processthreadsapi.h:165:1: MEMORY_PRIORITY_NORMAL = 5 // /usr/x86_64-w64-mingw32/include/processthreadsapi.h:167:1: MEMORY_PRIORITY_VERY_LOW = 1 // /usr/x86_64-w64-mingw32/include/processthreadsapi.h:163:1: - MEMTYPE_HEAP = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20585:1: - MEMTYPE_LOOKASIDE = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20586:1: - MEMTYPE_PCACHE = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20587:1: + MEMTYPE_HEAP = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20727:1: + MEMTYPE_LOOKASIDE = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20728:1: + MEMTYPE_PCACHE = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20729:1: MEM_4MB_PAGES = 0x80000000 // /usr/x86_64-w64-mingw32/include/winnt.h:4893:1: MEM_64K_PAGES = 541065216 // /usr/x86_64-w64-mingw32/include/winnt.h:4894:1: - MEM_AffMask = 0x003f // testdata/sqlite-amalgamation-3380500/sqlite3.c:22282:1: - MEM_Agg = 0x2000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22298:1: - MEM_Blob = 0x0010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22280:1: + MEM_AffMask = 0x003f // testdata/sqlite-amalgamation-3390200/sqlite3.c:22465:1: + MEM_Agg = 0x8000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22483:1: + MEM_Blob = 0x0010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22463:1: MEM_COMMIT = 0x1000 // /usr/x86_64-w64-mingw32/include/winnt.h:4878:1: - MEM_Cleared = 0x0100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22285:1: + MEM_Cleared = 0x0100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22471:1: MEM_DECOMMIT = 0x4000 // /usr/x86_64-w64-mingw32/include/winnt.h:4880:1: MEM_DIFFERENT_IMAGE_BASE_OK = 0x800000 // /usr/x86_64-w64-mingw32/include/winnt.h:4890:1: - MEM_Dyn = 0x0400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22295:1: + MEM_Dyn = 0x1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22480:1: MEM_EXTENDED_PARAMETER_GRAPHICS = 0x01 // /usr/x86_64-w64-mingw32/include/winnt.h:4902:1: MEM_EXTENDED_PARAMETER_NONPAGED = 0x02 // /usr/x86_64-w64-mingw32/include/winnt.h:4903:1: MEM_EXTENDED_PARAMETER_NONPAGED_HUGE = 0x10 // /usr/x86_64-w64-mingw32/include/winnt.h:4906:1: MEM_EXTENDED_PARAMETER_NONPAGED_LARGE = 0x08 // /usr/x86_64-w64-mingw32/include/winnt.h:4905:1: MEM_EXTENDED_PARAMETER_TYPE_BITS = 8 // /usr/x86_64-w64-mingw32/include/winnt.h:4918:1: MEM_EXTENDED_PARAMETER_ZERO_PAGES_OPTIONAL = 0x04 // /usr/x86_64-w64-mingw32/include/winnt.h:4904:1: - MEM_Ephem = 0x1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22297:1: + MEM_Ephem = 0x4000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22482:1: MEM_FREE = 0x10000 // /usr/x86_64-w64-mingw32/include/winnt.h:4882:1: - MEM_FromBind = 0x0040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22283:1: + MEM_FromBind = 0x0040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22469:1: MEM_IMAGE = 16777216 // /usr/x86_64-w64-mingw32/include/winnt.h:4953:1: - MEM_Int = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22278:1: - MEM_IntReal = 0x0020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22281:1: + MEM_Int = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22461:1: + MEM_IntReal = 0x0020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22464:1: MEM_LARGE_PAGES = 0x20000000 // /usr/x86_64-w64-mingw32/include/winnt.h:4892:1: MEM_MAPPED = 0x40000 // /usr/x86_64-w64-mingw32/include/winnt.h:4884:1: - MEM_Null = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22276:1: + MEM_Null = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22459:1: MEM_PHYSICAL = 0x400000 // /usr/x86_64-w64-mingw32/include/winnt.h:4888:1: MEM_PRIVATE = 0x20000 // /usr/x86_64-w64-mingw32/include/winnt.h:4883:1: MEM_RELEASE = 0x8000 // /usr/x86_64-w64-mingw32/include/winnt.h:4881:1: @@ -9742,17 +9749,17 @@ const ( MEM_RESET = 0x80000 // /usr/x86_64-w64-mingw32/include/winnt.h:4885:1: MEM_RESET_UNDO = 0x1000000 // /usr/x86_64-w64-mingw32/include/winnt.h:4891:1: MEM_ROTATE = 0x800000 // /usr/x86_64-w64-mingw32/include/winnt.h:4889:1: - MEM_Real = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22279:1: - MEM_Static = 0x0800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22296:1: - MEM_Str = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22277:1: - MEM_Subtype = 0x8000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22300:1: + MEM_Real = 0x0008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22462:1: + MEM_Static = 0x2000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22481:1: + MEM_Str = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22460:1: + MEM_Subtype = 0x0800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22474:1: MEM_TOP_DOWN = 0x100000 // /usr/x86_64-w64-mingw32/include/winnt.h:4886:1: - MEM_Term = 0x0200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22294:1: - MEM_TypeMask = 0xc1bf // testdata/sqlite-amalgamation-3380500/sqlite3.c:22286:1: + MEM_Term = 0x0200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22472:1: + MEM_TypeMask = 0x0dbf // testdata/sqlite-amalgamation-3390200/sqlite3.c:22475:1: MEM_UNMAP_WITH_TRANSIENT_BOOST = 0x01 // /usr/x86_64-w64-mingw32/include/winnt.h:4955:1: - MEM_Undefined = 0x0080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22284:1: + MEM_Undefined = 0x0000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22458:1: MEM_WRITE_WATCH = 0x200000 // /usr/x86_64-w64-mingw32/include/winnt.h:4887:1: - MEM_Zero = 0x4000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22299:1: + MEM_Zero = 0x0400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22473:1: MENU_EVENT = 0x8 // /usr/x86_64-w64-mingw32/include/wincon.h:108:1: MESSAGE_RESOURCE_UNICODE = 0x0001 // /usr/x86_64-w64-mingw32/include/winnt.h:7919:1: METAFILE_DRIVER = 2049 // /usr/x86_64-w64-mingw32/include/wingdi.h:290:1: @@ -10321,7 +10328,7 @@ const ( MSG_OOB = 0x1 // /usr/x86_64-w64-mingw32/include/winsock.h:257:1: MSG_PARTIAL = 0x8000 // /usr/x86_64-w64-mingw32/include/winsock.h:263:1: MSG_PEEK = 0x2 // /usr/x86_64-w64-mingw32/include/winsock.h:258:1: - MSVC_VERSION = 1900 // testdata/sqlite-amalgamation-3380500/sqlite3.c:223:1: + MSVC_VERSION = 1900 // testdata/sqlite-amalgamation-3390200/sqlite3.c:223:1: MS_DEF_DH_SCHANNEL_PROV_A = "Microsoft DH SChannel Cryptographic Provider" // /usr/x86_64-w64-mingw32/include/wincrypt.h:594:1: MS_DEF_DSS_DH_PROV_A = "Microsoft Base DSS and Diffie-Hellman Cryptographic Provider" // /usr/x86_64-w64-mingw32/include/wincrypt.h:590:1: MS_DEF_DSS_PROV_A = "Microsoft Base DSS Cryptographic Provider" // /usr/x86_64-w64-mingw32/include/wincrypt.h:588:1: @@ -10359,7 +10366,7 @@ const ( MWT_MAX = 3 // /usr/x86_64-w64-mingw32/include/wingdi.h:448:1: MWT_MIN = 1 // /usr/x86_64-w64-mingw32/include/wingdi.h:447:1: MWT_RIGHTMULTIPLY = 3 // /usr/x86_64-w64-mingw32/include/wingdi.h:445:1: - MX_CLOSE_ATTEMPT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:45577:1: + MX_CLOSE_ATTEMPT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:46216:1: M_1_PI = 0.31830988618379067154 // /usr/x86_64-w64-mingw32/include/math.h:48:1: M_2_PI = 0.63661977236758134308 // /usr/x86_64-w64-mingw32/include/math.h:49:1: M_2_SQRTPI = 1.12837916709551257390 // /usr/x86_64-w64-mingw32/include/math.h:50:1: @@ -10375,7 +10382,7 @@ const ( M_SQRT2 = 1.41421356237309504880 // /usr/x86_64-w64-mingw32/include/math.h:51:1: MaxNumberOfEEInfoParams = 4 // /usr/x86_64-w64-mingw32/include/rpcasync.h:82:1: NAME_FLAGS_MASK = 0x87 // /usr/x86_64-w64-mingw32/include/nb30.h:75:1: - NB = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:73163:1: + NB = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:73971:1: NCBACTION = 0x77 // /usr/x86_64-w64-mingw32/include/nb30.h:161:1: NCBADDGRNAME = 0x36 // /usr/x86_64-w64-mingw32/include/nb30.h:155:1: NCBADDNAME = 0x30 // /usr/x86_64-w64-mingw32/include/nb30.h:149:1: @@ -10469,27 +10476,27 @@ const ( NCRYPT_UI_PROTECT_KEY_FLAG = 0x1 // /usr/x86_64-w64-mingw32/include/ncrypt.h:328:1: NCRYPT_UNREGISTER_NOTIFY_FLAG = 0x2 // /usr/x86_64-w64-mingw32/include/ncrypt.h:379:1: NCRYPT_WRITE_KEY_TO_LEGACY_STORE_FLAG = 0x200 // /usr/x86_64-w64-mingw32/include/ncrypt.h:174:1: - NC_AllowAgg = 0x000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18460:1: - NC_AllowWin = 0x004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18474:1: - NC_Complex = 0x002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18473:1: - NC_FromDDL = 0x040000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18478:1: - NC_GenCol = 0x000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18463:1: - NC_HasAgg = 0x000010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18464:1: - NC_HasWin = 0x008000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18475:1: - NC_IdxExpr = 0x000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18465:1: - NC_InAggFunc = 0x020000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18477:1: - NC_IsCheck = 0x000004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18462:1: - NC_IsDDL = 0x010000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18476:1: - NC_MinMaxAgg = 0x001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18472:1: - NC_NoSelect = 0x080000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18479:1: - NC_OrderAgg = 0x8000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18480:1: - NC_PartIdx = 0x000002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18461:1: - NC_SelfRef = 0x00002e // testdata/sqlite-amalgamation-3380500/sqlite3.c:18466:1: - NC_UAggInfo = 0x000100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18469:1: - NC_UBaseReg = 0x000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18471:1: - NC_UEList = 0x000080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18468:1: - NC_UUpsert = 0x000200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18470:1: - NC_VarSelect = 0x000040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18467:1: + NC_AllowAgg = 0x000001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18556:1: + NC_AllowWin = 0x004000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18570:1: + NC_Complex = 0x002000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18569:1: + NC_FromDDL = 0x040000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18574:1: + NC_GenCol = 0x000008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18559:1: + NC_HasAgg = 0x000010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18560:1: + NC_HasWin = 0x008000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18571:1: + NC_IdxExpr = 0x000020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18561:1: + NC_InAggFunc = 0x020000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18573:1: + NC_IsCheck = 0x000004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18558:1: + NC_IsDDL = 0x010000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18572:1: + NC_MinMaxAgg = 0x001000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18568:1: + NC_NoSelect = 0x080000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18575:1: + NC_OrderAgg = 0x8000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18576:1: + NC_PartIdx = 0x000002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18557:1: + NC_SelfRef = 0x00002e // testdata/sqlite-amalgamation-3390200/sqlite3.c:18562:1: + NC_UAggInfo = 0x000100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18565:1: + NC_UBaseReg = 0x000400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18567:1: + NC_UEList = 0x000080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18564:1: + NC_UUpsert = 0x000200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18566:1: + NC_VarSelect = 0x000040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18563:1: NDEBUG = 1 // <defines>:2:1: NDR_ASCII_CHAR = 0 // /usr/x86_64-w64-mingw32/include/rpcndr.h:39:1: NDR_BIG_ENDIAN = 0 // /usr/x86_64-w64-mingw32/include/rpcndr.h:33:1: @@ -10571,7 +10578,7 @@ const ( NMPWAIT_NOWAIT = 0x1 // /usr/x86_64-w64-mingw32/include/winbase.h:590:1: NMPWAIT_USE_DEFAULT_WAIT = 0x0 // /usr/x86_64-w64-mingw32/include/winbase.h:591:1: NMPWAIT_WAIT_FOREVER = 0xffffffff // /usr/x86_64-w64-mingw32/include/winbase.h:589:1: - NN = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:73162:1: + NN = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:73970:1: NOERROR = 0 // /usr/x86_64-w64-mingw32/include/winerror.h:2257:1: NONAMELESSSTRUCT = 1 // /usr/x86_64-w64-mingw32/include/_mingw.h:468:1: NONAMELESSUNION = 1 // /usr/x86_64-w64-mingw32/include/_mingw.h:460:1: @@ -10589,11 +10596,11 @@ const ( NORM_IGNOREWIDTH = 0x00020000 // /usr/x86_64-w64-mingw32/include/winnls.h:105:1: NORM_LINGUISTIC_CASING = 0x08000000 // /usr/x86_64-w64-mingw32/include/winnls.h:106:1: NOTIFYICON_VERSION = 3 // /usr/x86_64-w64-mingw32/include/shellapi.h:521:1: - NOT_WITHIN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10801:1: + NOT_WITHIN = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10831:1: NO_ADDRESS = 11004 // /usr/x86_64-w64-mingw32/include/psdk_inc/_wsa_errnos.h:183:1: NO_DATA = 11004 // /usr/x86_64-w64-mingw32/include/psdk_inc/_wsa_errnos.h:180:1: NO_ERROR = 0 // /usr/x86_64-w64-mingw32/include/winerror.h:44:1: - NO_LOCK = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16319:1: + NO_LOCK = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16370:1: NO_PRIORITY = 0 // /usr/x86_64-w64-mingw32/include/winspool.h:227:1: NO_PROPAGATE_INHERIT_ACE = 4 // /usr/x86_64-w64-mingw32/include/winnt.h:3338:1: NO_RECOVERY = 11003 // /usr/x86_64-w64-mingw32/include/psdk_inc/_wsa_errnos.h:179:1: @@ -10724,9 +10731,9 @@ const ( NUM_DISCHARGE_POLICIES = 4 // /usr/x86_64-w64-mingw32/include/winnt.h:5895:1: N_BTMASK = 0x000F // /usr/x86_64-w64-mingw32/include/winnt.h:6628:1: N_BTSHFT = 4 // /usr/x86_64-w64-mingw32/include/winnt.h:6632:1: - N_OR_COST = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147050:1: - N_SORT_BUCKET = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:51109:1: - N_STATEMENT = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:199441:3: + N_OR_COST = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148709:1: + N_SORT_BUCKET = 32 // testdata/sqlite-amalgamation-3390200/sqlite3.c:51747:1: + N_STATEMENT = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:201563:3: N_TMASK = 0x0030 // /usr/x86_64-w64-mingw32/include/winnt.h:6629:1: N_TMASK1 = 0x00C0 // /usr/x86_64-w64-mingw32/include/winnt.h:6630:1: N_TMASK2 = 0x00F0 // /usr/x86_64-w64-mingw32/include/winnt.h:6631:1: @@ -10784,18 +10791,18 @@ const ( ODT_STATIC = 5 // /usr/x86_64-w64-mingw32/include/winuser.h:1901:1: OEM_CHARSET = 255 // /usr/x86_64-w64-mingw32/include/wingdi.h:1164:1: OEM_FIXED_FONT = 10 // /usr/x86_64-w64-mingw32/include/wingdi.h:1448:1: - OE_Abort = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17712:1: - OE_Cascade = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17720:1: - OE_Default = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17721:1: - OE_Fail = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17713:1: - OE_Ignore = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17714:1: - OE_None = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17710:1: - OE_Replace = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17715:1: - OE_Restrict = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17717:1: - OE_Rollback = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17711:1: - OE_SetDflt = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17719:1: - OE_SetNull = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17718:1: - OE_Update = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17716:1: + OE_Abort = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17768:1: + OE_Cascade = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17776:1: + OE_Default = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17777:1: + OE_Fail = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17769:1: + OE_Ignore = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17770:1: + OE_None = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17766:1: + OE_Replace = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17771:1: + OE_Restrict = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17773:1: + OE_Rollback = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17767:1: + OE_SetDflt = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17775:1: + OE_SetNull = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17774:1: + OE_Update = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17772:1: OFFLINE_STATUS_INCOMPLETE = 0x0004 // /usr/x86_64-w64-mingw32/include/shellapi.h:804:1: OFFLINE_STATUS_LOCAL = 0x0001 // /usr/x86_64-w64-mingw32/include/shellapi.h:802:1: OFFLINE_STATUS_REMOTE = 0x0002 // /usr/x86_64-w64-mingw32/include/shellapi.h:803:1: @@ -10859,234 +10866,236 @@ const ( OLEOBJ_E_LAST = 2147746191 // /usr/x86_64-w64-mingw32/include/winerror.h:2409:1: OLEOBJ_S_FIRST = 262528 // /usr/x86_64-w64-mingw32/include/winerror.h:2410:1: OLEOBJ_S_LAST = 262543 // /usr/x86_64-w64-mingw32/include/winerror.h:2411:1: - OMIT_TEMPDB = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14060:1: + OMIT_TEMPDB = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14090:1: ONE5STOPBITS = 1 // /usr/x86_64-w64-mingw32/include/winbase.h:476:1: - ONEPASS_MULTI = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19866:1: - ONEPASS_OFF = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19864:1: - ONEPASS_SINGLE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19865:1: + ONEPASS_MULTI = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20007:1: + ONEPASS_OFF = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20005:1: + ONEPASS_SINGLE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20006:1: ONESTOPBIT = 0 // /usr/x86_64-w64-mingw32/include/winbase.h:475:1: OPAQUE = 2 // /usr/x86_64-w64-mingw32/include/wingdi.h:1410:1: OPAQUEKEYBLOB = 0x9 // /usr/x86_64-w64-mingw32/include/wincrypt.h:356:1: OPENCHANNEL = 4110 // /usr/x86_64-w64-mingw32/include/wingdi.h:308:1: OPEN_ALWAYS = 4 // /usr/x86_64-w64-mingw32/include/fileapi.h:21:1: OPEN_EXISTING = 3 // /usr/x86_64-w64-mingw32/include/fileapi.h:20:1: - OPFLAG_APPEND = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18964:1: - OPFLAG_AUXDELETE = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18975:1: - OPFLAG_BULKCSR = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18969:1: - OPFLAG_EPHEM = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18961:1: - OPFLAG_FORDELETE = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18971:1: - OPFLAG_ISNOOP = 0x40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18966:1: - OPFLAG_ISUPDATE = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18963:1: - OPFLAG_LASTROWID = 0x20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18962:1: - OPFLAG_LENGTHARG = 0x40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18967:1: - OPFLAG_NCHANGE = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18958:1: - OPFLAG_NOCHNG = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18960:1: - OPFLAG_NOCHNG_MAGIC = 0x6d // testdata/sqlite-amalgamation-3380500/sqlite3.c:18976:1: - OPFLAG_P2ISREG = 0x10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18972:1: - OPFLAG_PERMUTE = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18973:1: - OPFLAG_PREFORMAT = 0x80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18977:1: - OPFLAG_SAVEPOSITION = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18974:1: - OPFLAG_SEEKEQ = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18970:1: - OPFLAG_TYPEOFARG = 0x80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18968:1: - OPFLAG_USESEEKRESULT = 0x10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18965:1: - OPFLG_IN1 = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15700:1: - OPFLG_IN2 = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15701:1: - OPFLG_IN3 = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15702:1: - OPFLG_JUMP = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15699:1: - OPFLG_OUT2 = 0x10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15703:1: - OPFLG_OUT3 = 0x20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15704:1: + OPFLAG_APPEND = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19064:1: + OPFLAG_AUXDELETE = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19075:1: + OPFLAG_BULKCSR = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19069:1: + OPFLAG_EPHEM = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19061:1: + OPFLAG_FORDELETE = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19071:1: + OPFLAG_ISNOOP = 0x40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19066:1: + OPFLAG_ISUPDATE = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19063:1: + OPFLAG_LASTROWID = 0x20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19062:1: + OPFLAG_LENGTHARG = 0x40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19067:1: + OPFLAG_NCHANGE = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19058:1: + OPFLAG_NOCHNG = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19060:1: + OPFLAG_NOCHNG_MAGIC = 0x6d // testdata/sqlite-amalgamation-3390200/sqlite3.c:19076:1: + OPFLAG_P2ISREG = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19072:1: + OPFLAG_PERMUTE = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19073:1: + OPFLAG_PREFORMAT = 0x80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19077:1: + OPFLAG_SAVEPOSITION = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19074:1: + OPFLAG_SEEKEQ = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19070:1: + OPFLAG_TYPEOFARG = 0x80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19068:1: + OPFLAG_USESEEKRESULT = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19065:1: + OPFLG_IN1 = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15743:1: + OPFLG_IN2 = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15744:1: + OPFLG_IN3 = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15745:1: + OPFLG_JUMP = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15742:1: + OPFLG_OUT2 = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15746:1: + OPFLG_OUT3 = 0x20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15747:1: OPTIONAL = 0 // /usr/x86_64-w64-mingw32/include/minwindef.h:65:1: - OP_Abortable = 184 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15693:1: - OP_Add = 106 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15615:1: - OP_AddImm = 85 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15594:1: - OP_Affinity = 95 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15604:1: - OP_AggFinal = 164 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15673:1: - OP_AggInverse = 160 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15669:1: - OP_AggStep = 161 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15670:1: - OP_AggStep1 = 162 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15671:1: - OP_AggValue = 163 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15672:1: - OP_And = 44 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15553:1: - OP_AutoCommit = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15510:1: - OP_BitAnd = 102 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15611:1: - OP_BitNot = 114 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15623:1: - OP_BitOr = 103 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15612:1: - OP_Blob = 76 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15585:1: - OP_Cast = 87 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15596:1: - OP_Checkpoint = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15515:1: - OP_Clear = 144 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15653:1: - OP_Close = 121 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15630:1: - OP_CollSeq = 84 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15593:1: - OP_Column = 93 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15602:1: - OP_ColumnsUsed = 122 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15631:1: - OP_Compare = 89 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15598:1: - OP_Concat = 111 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15620:1: - OP_Copy = 79 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15588:1: - OP_Count = 97 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15606:1: - OP_CreateBtree = 146 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15655:1: - OP_CursorHint = 180 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15689:1: - OP_CursorLock = 166 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15675:1: - OP_CursorUnlock = 167 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15676:1: - OP_DecrJumpZero = 60 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15569:1: - OP_DeferredSeek = 140 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15649:1: - OP_Delete = 129 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15638:1: - OP_Destroy = 143 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15652:1: - OP_Divide = 109 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15618:1: - OP_DropIndex = 151 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15660:1: - OP_DropTable = 150 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15659:1: - OP_DropTrigger = 152 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15661:1: - OP_ElseEq = 58 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15567:1: - OP_EndCoroutine = 68 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15577:1: - OP_Eq = 53 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15562:1: - OP_Expire = 165 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15674:1: - OP_Explain = 183 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15692:1: - OP_Filter = 63 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15572:1: - OP_FilterAdd = 178 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15687:1: - OP_FinishSeek = 142 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15651:1: - OP_FkCheck = 82 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15591:1: - OP_FkCounter = 157 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15666:1: - OP_FkIfZero = 48 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15557:1: - OP_Found = 31 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15540:1: - OP_Function = 66 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15575:1: - OP_Ge = 57 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15566:1: - OP_Gosub = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15521:1: - OP_Goto = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15520:1: - OP_Gt = 54 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15563:1: - OP_Halt = 70 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15579:1: - OP_HaltIfNull = 69 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15578:1: - OP_IdxDelete = 139 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15648:1: - OP_IdxGE = 42 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15551:1: - OP_IdxGT = 40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15549:1: - OP_IdxInsert = 137 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15646:1: - OP_IdxLE = 39 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15548:1: - OP_IdxLT = 41 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15550:1: - OP_IdxRowid = 141 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15650:1: - OP_If = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15527:1: - OP_IfNoHope = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15537:1: - OP_IfNot = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15529:1: - OP_IfNotOpen = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15536:1: - OP_IfNotZero = 59 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15568:1: - OP_IfNullRow = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15531:1: - OP_IfPos = 49 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15558:1: - OP_IfSmaller = 35 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15544:1: - OP_IncrVacuum = 61 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15570:1: - OP_Init = 64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15573:1: - OP_InitCoroutine = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15522:1: - OP_Insert = 127 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15636:1: - OP_Int64 = 72 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15581:1: - OP_IntCopy = 81 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15590:1: - OP_Integer = 71 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15580:1: - OP_IntegrityCk = 154 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15663:1: - OP_IsNull = 50 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15559:1: - OP_IsNullOrType = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15530:1: - OP_IsTrue = 90 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15599:1: - OP_JournalMode = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15516:1: - OP_Jump = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15525:1: - OP_Last = 34 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15543:1: - OP_Le = 55 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15564:1: - OP_LoadAnalysis = 149 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15658:1: - OP_Lt = 56 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15565:1: - OP_MakeRecord = 96 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15605:1: - OP_MaxPgcnt = 177 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15686:1: - OP_MemMax = 158 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15667:1: - OP_Move = 78 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15587:1: - OP_Multiply = 108 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15617:1: - OP_MustBeInt = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15524:1: - OP_Ne = 52 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15561:1: - OP_NewRowid = 126 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15635:1: - OP_Next = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15514:1: - OP_NoConflict = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15538:1: - OP_Noop = 182 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15691:1: - OP_Not = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15528:1: - OP_NotExists = 33 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15542:1: - OP_NotFound = 30 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15539:1: - OP_NotNull = 51 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15560:1: - OP_Null = 74 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15583:1: - OP_NullRow = 135 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15644:1: - OP_Offset = 92 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15601:1: - OP_OffsetLimit = 159 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15668:1: - OP_Once = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15526:1: - OP_OpenAutoindex = 115 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15624:1: - OP_OpenDup = 113 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15622:1: - OP_OpenEphemeral = 116 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15625:1: - OP_OpenPseudo = 120 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15629:1: - OP_OpenRead = 101 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15610:1: - OP_OpenWrite = 112 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15621:1: - OP_Or = 43 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15552:1: - OP_Pagecount = 176 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15685:1: - OP_Param = 156 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15665:1: - OP_ParseSchema = 148 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15657:1: - OP_Permutation = 88 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15597:1: - OP_Prev = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15513:1: - OP_Program = 47 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15556:1: - OP_PureFunc = 65 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15574:1: - OP_ReadCookie = 98 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15607:1: - OP_Real = 153 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15662:1: - OP_RealAffinity = 86 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15595:1: - OP_ReleaseReg = 181 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15690:1: - OP_Remainder = 110 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15619:1: - OP_ReopenIdx = 100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15609:1: - OP_ResetCount = 130 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15639:1: - OP_ResetSorter = 145 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15654:1: - OP_ResultRow = 83 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15592:1: - OP_Return = 67 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15576:1: - OP_Rewind = 38 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15547:1: - OP_RowCell = 128 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15637:1: - OP_RowData = 133 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15642:1: - OP_RowSetAdd = 155 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15664:1: - OP_RowSetRead = 45 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15554:1: - OP_RowSetTest = 46 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15555:1: - OP_Rowid = 134 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15643:1: - OP_SCopy = 80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15589:1: - OP_Savepoint = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15509:1: - OP_SeekEnd = 136 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15645:1: - OP_SeekGE = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15534:1: - OP_SeekGT = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15535:1: - OP_SeekHit = 124 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15633:1: - OP_SeekLE = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15533:1: - OP_SeekLT = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15532:1: - OP_SeekRowid = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15541:1: - OP_SeekScan = 123 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15632:1: - OP_Sequence = 125 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15634:1: - OP_SequenceTest = 119 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15628:1: - OP_SetCookie = 99 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15608:1: - OP_ShiftLeft = 104 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15613:1: - OP_ShiftRight = 105 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15614:1: - OP_SoftNull = 75 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15584:1: - OP_Sort = 37 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15546:1: - OP_SorterCompare = 131 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15640:1: - OP_SorterData = 132 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15641:1: - OP_SorterInsert = 138 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15647:1: - OP_SorterNext = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15512:1: - OP_SorterOpen = 118 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15627:1: - OP_SorterSort = 36 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15545:1: - OP_SqlExec = 147 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15656:1: - OP_String = 73 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15582:1: - OP_String8 = 117 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15626:1: - OP_Subtract = 107 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15616:1: - OP_TableLock = 168 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15677:1: - OP_Trace = 179 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15688:1: - OP_Transaction = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15511:1: - OP_TypeCheck = 94 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15603:1: - OP_VBegin = 169 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15678:1: - OP_VColumn = 174 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15683:1: - OP_VCreate = 170 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15679:1: - OP_VDestroy = 171 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15680:1: - OP_VFilter = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15518:1: - OP_VInitIn = 173 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15682:1: - OP_VNext = 62 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15571:1: - OP_VOpen = 172 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15681:1: - OP_VRename = 175 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15684:1: - OP_VUpdate = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15519:1: - OP_Vacuum = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15517:1: - OP_Variable = 77 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15586:1: - OP_Yield = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15523:1: - OP_ZeroOrNull = 91 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15600:1: + OP_Abortable = 186 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15736:1: + OP_Add = 106 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15656:1: + OP_AddImm = 86 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15636:1: + OP_Affinity = 96 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15646:1: + OP_AggFinal = 165 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15715:1: + OP_AggInverse = 161 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15711:1: + OP_AggStep = 162 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15712:1: + OP_AggStep1 = 163 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15713:1: + OP_AggValue = 164 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15714:1: + OP_And = 44 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15594:1: + OP_AutoCommit = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15551:1: + OP_BeginSubrtn = 74 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15624:1: + OP_BitAnd = 102 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15652:1: + OP_BitNot = 114 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15664:1: + OP_BitOr = 103 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15653:1: + OP_Blob = 77 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15627:1: + OP_Cast = 88 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15638:1: + OP_Checkpoint = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15553:1: + OP_Clear = 145 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15695:1: + OP_Close = 122 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15672:1: + OP_ClrSubtype = 179 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15729:1: + OP_CollSeq = 85 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15635:1: + OP_Column = 94 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15644:1: + OP_ColumnsUsed = 123 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15673:1: + OP_Compare = 90 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15640:1: + OP_Concat = 111 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15661:1: + OP_Copy = 80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15630:1: + OP_Count = 98 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15648:1: + OP_CreateBtree = 147 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15697:1: + OP_CursorHint = 182 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15732:1: + OP_CursorLock = 167 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15717:1: + OP_CursorUnlock = 168 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15718:1: + OP_DecrJumpZero = 60 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15610:1: + OP_DeferredSeek = 141 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15691:1: + OP_Delete = 130 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15680:1: + OP_Destroy = 144 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15694:1: + OP_Divide = 109 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15659:1: + OP_DropIndex = 152 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15702:1: + OP_DropTable = 151 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15701:1: + OP_DropTrigger = 154 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15704:1: + OP_ElseEq = 58 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15608:1: + OP_EndCoroutine = 68 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15618:1: + OP_Eq = 53 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15603:1: + OP_Expire = 166 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15716:1: + OP_Explain = 185 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15735:1: + OP_Filter = 63 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15613:1: + OP_FilterAdd = 180 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15730:1: + OP_FinishSeek = 143 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15693:1: + OP_FkCheck = 83 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15633:1: + OP_FkCounter = 158 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15708:1: + OP_FkIfZero = 48 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15598:1: + OP_Found = 28 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15578:1: + OP_Function = 66 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15616:1: + OP_Ge = 57 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15607:1: + OP_Gosub = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15559:1: + OP_Goto = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15558:1: + OP_Gt = 54 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15604:1: + OP_Halt = 70 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15620:1: + OP_HaltIfNull = 69 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15619:1: + OP_IdxDelete = 140 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15690:1: + OP_IdxGE = 42 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15592:1: + OP_IdxGT = 40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15590:1: + OP_IdxInsert = 138 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15688:1: + OP_IdxLE = 39 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15589:1: + OP_IdxLT = 41 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15591:1: + OP_IdxRowid = 142 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15692:1: + OP_If = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15565:1: + OP_IfNoHope = 25 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15575:1: + OP_IfNot = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15566:1: + OP_IfNotOpen = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15574:1: + OP_IfNotZero = 59 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15609:1: + OP_IfNullRow = 18 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15568:1: + OP_IfPos = 49 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15599:1: + OP_IfSmaller = 32 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15582:1: + OP_IncrVacuum = 61 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15611:1: + OP_Init = 64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15614:1: + OP_InitCoroutine = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15560:1: + OP_Insert = 128 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15678:1: + OP_Int64 = 72 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15622:1: + OP_IntCopy = 82 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15632:1: + OP_Integer = 71 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15621:1: + OP_IntegrityCk = 155 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15705:1: + OP_IsNull = 50 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15600:1: + OP_IsNullOrType = 17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15567:1: + OP_IsTrue = 91 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15641:1: + OP_JournalMode = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15554:1: + OP_Jump = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15563:1: + OP_Last = 31 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15581:1: + OP_Le = 55 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15605:1: + OP_LoadAnalysis = 150 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15700:1: + OP_Lt = 56 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15606:1: + OP_MakeRecord = 97 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15647:1: + OP_MaxPgcnt = 178 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15728:1: + OP_MemMax = 159 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15709:1: + OP_Move = 79 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15629:1: + OP_Multiply = 108 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15658:1: + OP_MustBeInt = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15562:1: + OP_Ne = 52 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15602:1: + OP_NewRowid = 127 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15677:1: + OP_Next = 38 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15588:1: + OP_NoConflict = 26 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15576:1: + OP_Noop = 184 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15734:1: + OP_Not = 19 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15569:1: + OP_NotExists = 30 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15580:1: + OP_NotFound = 27 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15577:1: + OP_NotNull = 51 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15601:1: + OP_Null = 75 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15625:1: + OP_NullRow = 136 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15686:1: + OP_Offset = 93 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15643:1: + OP_OffsetLimit = 160 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15710:1: + OP_Once = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15564:1: + OP_OpenAutoindex = 116 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15666:1: + OP_OpenDup = 115 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15665:1: + OP_OpenEphemeral = 118 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15668:1: + OP_OpenPseudo = 121 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15671:1: + OP_OpenRead = 112 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15662:1: + OP_OpenWrite = 113 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15663:1: + OP_Or = 43 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15593:1: + OP_Pagecount = 177 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15727:1: + OP_Param = 157 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15707:1: + OP_ParseSchema = 149 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15699:1: + OP_Permutation = 89 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15639:1: + OP_Prev = 37 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15587:1: + OP_Program = 47 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15597:1: + OP_PureFunc = 65 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15615:1: + OP_ReadCookie = 99 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15649:1: + OP_Real = 153 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15703:1: + OP_RealAffinity = 87 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15637:1: + OP_ReleaseReg = 183 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15733:1: + OP_Remainder = 110 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15660:1: + OP_ReopenIdx = 101 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15651:1: + OP_ResetCount = 131 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15681:1: + OP_ResetSorter = 146 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15696:1: + OP_ResultRow = 84 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15634:1: + OP_Return = 67 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15617:1: + OP_Rewind = 35 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15585:1: + OP_RowCell = 129 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15679:1: + OP_RowData = 134 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15684:1: + OP_RowSetAdd = 156 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15706:1: + OP_RowSetRead = 45 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15595:1: + OP_RowSetTest = 46 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15596:1: + OP_Rowid = 135 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15685:1: + OP_SCopy = 81 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15631:1: + OP_Savepoint = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15550:1: + OP_SeekEnd = 137 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15687:1: + OP_SeekGE = 22 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15572:1: + OP_SeekGT = 23 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15573:1: + OP_SeekHit = 125 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15675:1: + OP_SeekLE = 21 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15571:1: + OP_SeekLT = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15570:1: + OP_SeekRowid = 29 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15579:1: + OP_SeekScan = 124 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15674:1: + OP_Sequence = 126 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15676:1: + OP_SequenceTest = 120 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15670:1: + OP_SetCookie = 100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15650:1: + OP_ShiftLeft = 104 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15654:1: + OP_ShiftRight = 105 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15655:1: + OP_SoftNull = 76 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15626:1: + OP_Sort = 34 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15584:1: + OP_SorterCompare = 132 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15682:1: + OP_SorterData = 133 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15683:1: + OP_SorterInsert = 139 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15689:1: + OP_SorterNext = 36 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15586:1: + OP_SorterOpen = 119 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15669:1: + OP_SorterSort = 33 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15583:1: + OP_SqlExec = 148 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15698:1: + OP_String = 73 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15623:1: + OP_String8 = 117 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15667:1: + OP_Subtract = 107 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15657:1: + OP_TableLock = 169 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15719:1: + OP_Trace = 181 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15731:1: + OP_Transaction = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15552:1: + OP_TypeCheck = 95 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15645:1: + OP_VBegin = 170 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15720:1: + OP_VColumn = 175 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15725:1: + OP_VCreate = 171 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15721:1: + OP_VDestroy = 172 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15722:1: + OP_VFilter = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15556:1: + OP_VInitIn = 174 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15724:1: + OP_VNext = 62 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15612:1: + OP_VOpen = 173 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15723:1: + OP_VRename = 176 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15726:1: + OP_VUpdate = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15557:1: + OP_Vacuum = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15555:1: + OP_Variable = 78 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15628:1: + OP_Yield = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15561:1: + OP_ZeroOrNull = 92 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15642:1: ORD_LANGDRIVER = 1 // /usr/x86_64-w64-mingw32/include/winuser.h:4321:1: OR_INVALID_OID = 1911 // /usr/x86_64-w64-mingw32/include/winerror.h:834:1: OR_INVALID_OXID = 1910 // /usr/x86_64-w64-mingw32/include/winerror.h:833:1: OR_INVALID_SET = 1912 // /usr/x86_64-w64-mingw32/include/winerror.h:835:1: OSVERSION_MASK = 0xFFFF0000 // /usr/x86_64-w64-mingw32/include/sdkddkver.h:151:1: - OS_VXWORKS = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:163:1: + OS_VXWORKS = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163:1: OUT = 0 // /usr/x86_64-w64-mingw32/include/minwindef.h:61:1: OUTPUT_DEBUG_STRING_EVENT = 8 // /usr/x86_64-w64-mingw32/include/minwinbase.h:231:1: OUT_CHARACTER_PRECIS = 2 // /usr/x86_64-w64-mingw32/include/wingdi.h:1121:1: @@ -11104,64 +11113,62 @@ const ( OVERFLOW = 3 // /usr/x86_64-w64-mingw32/include/math.h:31:1: OVERWRITE_HIDDEN = 4 // /usr/x86_64-w64-mingw32/include/winbase.h:1398:1: OWNER_SECURITY_INFORMATION = 1 // /usr/x86_64-w64-mingw32/include/winnt.h:4010:1: - P4_ADVANCE = -5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15453:1: - P4_COLLSEQ = -2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15450:1: - P4_DYNAMIC = -7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15457:1: - P4_DYNBLOB = -17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15467:1: - P4_EXPR = -10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15460:1: - P4_FREE_IF_LE = -7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15456:1: - P4_FUNCCTX = -16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15466:1: - P4_FUNCDEF = -8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15458:1: - P4_INT32 = -3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15451:1: - P4_INT64 = -14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15464:1: - P4_INTARRAY = -15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15465:1: - P4_KEYINFO = -9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15459:1: - P4_MEM = -11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15461:1: - P4_NOTUSED = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15447:1: - P4_REAL = -13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15463:1: - P4_STATIC = -1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15449:1: - P4_SUBPROGRAM = -4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15452:1: - P4_TABLE = -6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15454:1: - P4_TRANSIENT = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15448:1: - P4_VTAB = -12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15462:1: - P5_ConstraintCheck = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15472:1: - P5_ConstraintFK = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15473:1: - P5_ConstraintNotNull = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15470:1: - P5_ConstraintUnique = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15471:1: - PAGER_CACHESPILL = 0x20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14778:1: - PAGER_CKPT_FULLFSYNC = 0x10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14777:1: - PAGER_ERROR = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53574:1: - PAGER_FLAGS_MASK = 0x38 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14779:1: - PAGER_FULLFSYNC = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14776:1: - PAGER_GET_NOCONTENT = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14760:1: - PAGER_GET_READONLY = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14761:1: - PAGER_JOURNALMODE_DELETE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14750:1: - PAGER_JOURNALMODE_MEMORY = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14754:1: - PAGER_JOURNALMODE_OFF = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14752:1: - PAGER_JOURNALMODE_PERSIST = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14751:1: - PAGER_JOURNALMODE_QUERY = -1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14749:1: - PAGER_JOURNALMODE_TRUNCATE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14753:1: - PAGER_JOURNALMODE_WAL = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14755:1: - PAGER_LOCKINGMODE_EXCLUSIVE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14740:1: - PAGER_LOCKINGMODE_NORMAL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14739:1: - PAGER_LOCKINGMODE_QUERY = -1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14738:1: - PAGER_MEMORY = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14733:1: - PAGER_OMIT_JOURNAL = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14732:1: - PAGER_OPEN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53568:1: - PAGER_READER = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53569:1: - PAGER_STAT_HIT = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53926:1: - PAGER_STAT_MISS = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53927:1: - PAGER_STAT_SPILL = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53929:1: - PAGER_STAT_WRITE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53928:1: - PAGER_SYNCHRONOUS_EXTRA = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14774:1: - PAGER_SYNCHRONOUS_FULL = 0x03 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14773:1: - PAGER_SYNCHRONOUS_MASK = 0x07 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14775:1: - PAGER_SYNCHRONOUS_NORMAL = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14772:1: - PAGER_SYNCHRONOUS_OFF = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14771:1: - PAGER_WRITER_CACHEMOD = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53571:1: - PAGER_WRITER_DBMOD = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53572:1: - PAGER_WRITER_FINISHED = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53573:1: - PAGER_WRITER_LOCKED = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53570:1: + P4_COLLSEQ = -2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15493:1: + P4_DYNAMIC = -6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15499:1: + P4_EXPR = -9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15502:1: + P4_FREE_IF_LE = -6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15498:1: + P4_FUNCCTX = -15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15508:1: + P4_FUNCDEF = -7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15500:1: + P4_INT32 = -3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15494:1: + P4_INT64 = -13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15506:1: + P4_INTARRAY = -14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15507:1: + P4_KEYINFO = -8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15501:1: + P4_MEM = -10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15503:1: + P4_NOTUSED = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15490:1: + P4_REAL = -12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15505:1: + P4_STATIC = -1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15492:1: + P4_SUBPROGRAM = -4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15495:1: + P4_TABLE = -5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15496:1: + P4_TRANSIENT = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15491:1: + P4_VTAB = -11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15504:1: + P5_ConstraintCheck = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15513:1: + P5_ConstraintFK = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15514:1: + P5_ConstraintNotNull = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15511:1: + P5_ConstraintUnique = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15512:1: + PAGER_CACHESPILL = 0x20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14822:1: + PAGER_CKPT_FULLFSYNC = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14821:1: + PAGER_ERROR = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54212:1: + PAGER_FLAGS_MASK = 0x38 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14823:1: + PAGER_FULLFSYNC = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14820:1: + PAGER_GET_NOCONTENT = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14804:1: + PAGER_GET_READONLY = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14805:1: + PAGER_JOURNALMODE_DELETE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14794:1: + PAGER_JOURNALMODE_MEMORY = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14798:1: + PAGER_JOURNALMODE_OFF = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14796:1: + PAGER_JOURNALMODE_PERSIST = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14795:1: + PAGER_JOURNALMODE_QUERY = -1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14793:1: + PAGER_JOURNALMODE_TRUNCATE = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14797:1: + PAGER_JOURNALMODE_WAL = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14799:1: + PAGER_LOCKINGMODE_EXCLUSIVE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14784:1: + PAGER_LOCKINGMODE_NORMAL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14783:1: + PAGER_LOCKINGMODE_QUERY = -1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14782:1: + PAGER_MEMORY = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14777:1: + PAGER_OMIT_JOURNAL = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14776:1: + PAGER_OPEN = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54206:1: + PAGER_READER = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54207:1: + PAGER_STAT_HIT = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54565:1: + PAGER_STAT_MISS = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54566:1: + PAGER_STAT_SPILL = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54568:1: + PAGER_STAT_WRITE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54567:1: + PAGER_SYNCHRONOUS_EXTRA = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14818:1: + PAGER_SYNCHRONOUS_FULL = 0x03 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14817:1: + PAGER_SYNCHRONOUS_MASK = 0x07 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14819:1: + PAGER_SYNCHRONOUS_NORMAL = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14816:1: + PAGER_SYNCHRONOUS_OFF = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14815:1: + PAGER_WRITER_CACHEMOD = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54209:1: + PAGER_WRITER_DBMOD = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54210:1: + PAGER_WRITER_FINISHED = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54211:1: + PAGER_WRITER_LOCKED = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54208:1: PAGESETUPDLGORD = 1546 // /usr/x86_64-w64-mingw32/include/dlgs.h:187:1: PAGESETUPDLGORDMOTIF = 1550 // /usr/x86_64-w64-mingw32/include/dlgs.h:190:1: PAGE_ENCLAVE_DECOMMIT = 0x10000000 // /usr/x86_64-w64-mingw32/include/winnt.h:4876:1: @@ -11303,10 +11310,10 @@ const ( PARAMFLAG_FOUT = 2 // /usr/x86_64-w64-mingw32/include/oaidl.h:683:1: PARAMFLAG_FRETVAL = 8 // /usr/x86_64-w64-mingw32/include/oaidl.h:687:1: PARAMFLAG_NONE = 0 // /usr/x86_64-w64-mingw32/include/oaidl.h:679:1: - PARSE_MODE_DECLARE_VTAB = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18903:1: - PARSE_MODE_NORMAL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18902:1: - PARSE_MODE_RENAME = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18904:1: - PARSE_MODE_UNMAP = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18905:1: + PARSE_MODE_DECLARE_VTAB = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19003:1: + PARSE_MODE_NORMAL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19002:1: + PARSE_MODE_RENAME = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19004:1: + PARSE_MODE_UNMAP = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19005:1: PARTITION_ENTRY_UNUSED = 0x00 // /usr/x86_64-w64-mingw32/include/winioctl.h:500:1: PARTITION_EXTENDED = 0x05 // /usr/x86_64-w64-mingw32/include/winioctl.h:505:1: PARTITION_FAT32 = 0x0B // /usr/x86_64-w64-mingw32/include/winioctl.h:509:1: @@ -11324,7 +11331,7 @@ const ( PARTITION_XENIX_2 = 0x03 // /usr/x86_64-w64-mingw32/include/winioctl.h:503:1: PARTITION_XINT13 = 0x0E // /usr/x86_64-w64-mingw32/include/winioctl.h:511:1: PARTITION_XINT13_EXTENDED = 0x0F // /usr/x86_64-w64-mingw32/include/winioctl.h:512:1: - PARTLY_WITHIN = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10802:1: + PARTLY_WITHIN = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10832:1: PASCAL = 0 // /usr/x86_64-w64-mingw32/include/minwindef.h:109:1: PASSTHROUGH = 19 // /usr/x86_64-w64-mingw32/include/wingdi.h:253:1: PATH_MAX = 260 // /usr/x86_64-w64-mingw32/include/limits.h:20:1: @@ -11343,10 +11350,10 @@ const ( PBT_APMSTANDBY = 0x0005 // /usr/x86_64-w64-mingw32/include/winuser.h:1295:1: PBT_APMSUSPEND = 0x0004 // /usr/x86_64-w64-mingw32/include/winuser.h:1294:1: PBT_POWERSETTINGCHANGE = 32787 // /usr/x86_64-w64-mingw32/include/winuser.h:1310:1: - PCACHE1_MIGHT_USE_GROUP_MUTEX = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:51514:1: - PCACHE_DIRTYLIST_ADD = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:50526:1: - PCACHE_DIRTYLIST_FRONT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:50527:1: - PCACHE_DIRTYLIST_REMOVE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:50525:1: + PCACHE1_MIGHT_USE_GROUP_MUTEX = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:52152:1: + PCACHE_DIRTYLIST_ADD = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:51165:1: + PCACHE_DIRTYLIST_FRONT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:51166:1: + PCACHE_DIRTYLIST_REMOVE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:51164:1: PCLEANUI = 2214592512 // /usr/x86_64-w64-mingw32/include/reason.h:59:1: PC_EXPLICIT = 0x02 // /usr/x86_64-w64-mingw32/include/wingdi.h:1402:1: PC_INTERIORS = 128 // /usr/x86_64-w64-mingw32/include/wingdi.h:1595:1: @@ -11419,7 +11426,7 @@ const ( PD_USEDEVMODECOPIES = 0x40000 // /usr/x86_64-w64-mingw32/include/commdlg.h:680:1: PD_USEDEVMODECOPIESANDCOLLATE = 0x40000 // /usr/x86_64-w64-mingw32/include/commdlg.h:681:1: PD_USELARGETEMPLATE = 0x10000000 // /usr/x86_64-w64-mingw32/include/commdlg.h:688:1: - PENDING_LOCK = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16322:1: + PENDING_LOCK = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16373:1: PERFORMANCE_DATA_VERSION = 1 // /usr/x86_64-w64-mingw32/include/winnt.h:8428:1: PERFSTATE_POLICY_CHANGE_IDEAL = 0 // /usr/x86_64-w64-mingw32/include/winnt.h:5199:1: PERFSTATE_POLICY_CHANGE_MAX = 2 // /usr/x86_64-w64-mingw32/include/winnt.h:5202:1: @@ -11588,13 +11595,13 @@ const ( PF_XMMI64_INSTRUCTIONS_AVAILABLE = 10 // /usr/x86_64-w64-mingw32/include/winnt.h:4747:1: PF_XMMI_INSTRUCTIONS_AVAILABLE = 6 // /usr/x86_64-w64-mingw32/include/winnt.h:4743:1: PF_XSAVE_ENABLED = 17 // /usr/x86_64-w64-mingw32/include/winnt.h:4754:1: - PGHDR_CLEAN = 0x001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16023:1: - PGHDR_DIRTY = 0x002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16024:1: - PGHDR_DONT_WRITE = 0x010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16028:1: - PGHDR_MMAP = 0x020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16029:1: - PGHDR_NEED_SYNC = 0x008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16026:1: - PGHDR_WAL_APPEND = 0x040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16031:1: - PGHDR_WRITEABLE = 0x004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16025:1: + PGHDR_CLEAN = 0x001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16067:1: + PGHDR_DIRTY = 0x002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16068:1: + PGHDR_DONT_WRITE = 0x010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16072:1: + PGHDR_MMAP = 0x020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16073:1: + PGHDR_NEED_SYNC = 0x008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16070:1: + PGHDR_WAL_APPEND = 0x040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16075:1: + PGHDR_WRITEABLE = 0x004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16069:1: PHYSICALHEIGHT = 111 // /usr/x86_64-w64-mingw32/include/wingdi.h:1543:1: PHYSICALOFFSETX = 112 // /usr/x86_64-w64-mingw32/include/wingdi.h:1544:1: PHYSICALOFFSETY = 113 // /usr/x86_64-w64-mingw32/include/wingdi.h:1545:1: @@ -11852,8 +11859,8 @@ const ( PP_USE_HARDWARE_RNG = 38 // /usr/x86_64-w64-mingw32/include/wincrypt.h:479:1: PP_VERSION = 5 // /usr/x86_64-w64-mingw32/include/wincrypt.h:456:1: PRAGMA_DEPRECATED_DDK = 0 // /usr/x86_64-w64-mingw32/include/winnt.h:255:1: - PREFERRED_SCHEMA_TABLE = "sqlite_schema" // testdata/sqlite-amalgamation-3380500/sqlite3.c:14490:1: - PREFERRED_TEMP_SCHEMA_TABLE = "sqlite_temp_schema" // testdata/sqlite-amalgamation-3380500/sqlite3.c:14491:1: + PREFERRED_SCHEMA_TABLE = "sqlite_schema" // testdata/sqlite-amalgamation-3390200/sqlite3.c:14532:1: + PREFERRED_TEMP_SCHEMA_TABLE = "sqlite_temp_schema" // testdata/sqlite-amalgamation-3390200/sqlite3.c:14533:1: PRF_CHECKVISIBLE = 1 // /usr/x86_64-w64-mingw32/include/winuser.h:1655:1: PRF_CHILDREN = 16 // /usr/x86_64-w64-mingw32/include/winuser.h:1659:1: PRF_CLIENT = 4 // /usr/x86_64-w64-mingw32/include/winuser.h:1657:1: @@ -12456,15 +12463,15 @@ const ( PS_STYLE_MASK = 0x0000000F // /usr/x86_64-w64-mingw32/include/wingdi.h:1492:1: PS_TYPE_MASK = 0x000F0000 // /usr/x86_64-w64-mingw32/include/wingdi.h:1506:1: PS_USERSTYLE = 7 // /usr/x86_64-w64-mingw32/include/wingdi.h:1490:1: - PTF_INTKEY = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65386:1: - PTF_LEAF = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65389:1: - PTF_LEAFDATA = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65388:1: - PTF_ZERODATA = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65387:1: - PTRMAP_BTREE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65789:1: - PTRMAP_FREEPAGE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65786:1: - PTRMAP_OVERFLOW1 = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65787:1: - PTRMAP_OVERFLOW2 = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65788:1: - PTRMAP_ROOTPAGE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65785:1: + PTF_INTKEY = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66027:1: + PTF_LEAF = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66030:1: + PTF_LEAFDATA = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66029:1: + PTF_ZERODATA = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66028:1: + PTRMAP_BTREE = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66430:1: + PTRMAP_FREEPAGE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66427:1: + PTRMAP_OVERFLOW1 = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66428:1: + PTRMAP_OVERFLOW2 = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66429:1: + PTRMAP_ROOTPAGE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66426:1: PT_BEZIERTO = 0x04 // /usr/x86_64-w64-mingw32/include/wingdi.h:1419:1: PT_CLOSEFIGURE = 0x01 // /usr/x86_64-w64-mingw32/include/wingdi.h:1417:1: PT_LINETO = 0x02 // /usr/x86_64-w64-mingw32/include/wingdi.h:1418:1: @@ -12487,60 +12494,60 @@ const ( P_NOWAITO = 3 // /usr/x86_64-w64-mingw32/include/process.h:150:1: P_OVERLAY = 2 // /usr/x86_64-w64-mingw32/include/process.h:148:1: P_WAIT = 0 // /usr/x86_64-w64-mingw32/include/process.h:146:1: - PragFlg_NeedSchema = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129907:1: - PragFlg_NoColumns = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129908:1: - PragFlg_NoColumns1 = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129909:1: - PragFlg_ReadOnly = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129910:1: - PragFlg_Result0 = 0x10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129911:1: - PragFlg_Result1 = 0x20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129912:1: - PragFlg_SchemaOpt = 0x40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129913:1: - PragFlg_SchemaReq = 0x80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129914:1: - PragTyp_ACTIVATE_EXTENSIONS = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129859:1: - PragTyp_ANALYSIS_LIMIT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129860:1: - PragTyp_AUTO_VACUUM = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129862:1: - PragTyp_BUSY_TIMEOUT = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129864:1: - PragTyp_CACHE_SIZE = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129865:1: - PragTyp_CACHE_SPILL = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129866:1: - PragTyp_CASE_SENSITIVE_LIKE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129867:1: - PragTyp_COLLATION_LIST = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129868:1: - PragTyp_COMPILE_OPTIONS = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129869:1: - PragTyp_DATABASE_LIST = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129871:1: - PragTyp_DATA_STORE_DIRECTORY = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129870:1: - PragTyp_DEFAULT_CACHE_SIZE = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129872:1: - PragTyp_ENCODING = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129873:1: - PragTyp_FLAG = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129863:1: - PragTyp_FOREIGN_KEY_CHECK = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129874:1: - PragTyp_FOREIGN_KEY_LIST = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129875:1: - PragTyp_FUNCTION_LIST = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129876:1: - PragTyp_HARD_HEAP_LIMIT = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129877:1: - PragTyp_HEADER_VALUE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129861:1: - PragTyp_INCREMENTAL_VACUUM = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129878:1: - PragTyp_INDEX_INFO = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129879:1: - PragTyp_INDEX_LIST = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129880:1: - PragTyp_INTEGRITY_CHECK = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129881:1: - PragTyp_JOURNAL_MODE = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129882:1: - PragTyp_JOURNAL_SIZE_LIMIT = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129883:1: - PragTyp_LOCKING_MODE = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129885:1: - PragTyp_LOCK_PROXY_FILE = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129884:1: - PragTyp_LOCK_STATUS = 44 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129903:1: - PragTyp_MMAP_SIZE = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129887:1: - PragTyp_MODULE_LIST = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129888:1: - PragTyp_OPTIMIZE = 30 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129889:1: - PragTyp_PAGE_COUNT = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129886:1: - PragTyp_PAGE_SIZE = 31 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129890:1: - PragTyp_PRAGMA_LIST = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129891:1: - PragTyp_SECURE_DELETE = 33 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129892:1: - PragTyp_SHRINK_MEMORY = 34 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129893:1: - PragTyp_SOFT_HEAP_LIMIT = 35 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129894:1: - PragTyp_STATS = 45 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129904:1: - PragTyp_SYNCHRONOUS = 36 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129895:1: - PragTyp_TABLE_INFO = 37 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129896:1: - PragTyp_TABLE_LIST = 38 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129897:1: - PragTyp_TEMP_STORE = 39 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129898:1: - PragTyp_TEMP_STORE_DIRECTORY = 40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129899:1: - PragTyp_THREADS = 41 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129900:1: - PragTyp_WAL_AUTOCHECKPOINT = 42 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129901:1: - PragTyp_WAL_CHECKPOINT = 43 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129902:1: + PragFlg_NeedSchema = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131163:1: + PragFlg_NoColumns = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131164:1: + PragFlg_NoColumns1 = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131165:1: + PragFlg_ReadOnly = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131166:1: + PragFlg_Result0 = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131167:1: + PragFlg_Result1 = 0x20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131168:1: + PragFlg_SchemaOpt = 0x40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131169:1: + PragFlg_SchemaReq = 0x80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131170:1: + PragTyp_ACTIVATE_EXTENSIONS = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131115:1: + PragTyp_ANALYSIS_LIMIT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131116:1: + PragTyp_AUTO_VACUUM = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131118:1: + PragTyp_BUSY_TIMEOUT = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131120:1: + PragTyp_CACHE_SIZE = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131121:1: + PragTyp_CACHE_SPILL = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131122:1: + PragTyp_CASE_SENSITIVE_LIKE = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131123:1: + PragTyp_COLLATION_LIST = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131124:1: + PragTyp_COMPILE_OPTIONS = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131125:1: + PragTyp_DATABASE_LIST = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131127:1: + PragTyp_DATA_STORE_DIRECTORY = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131126:1: + PragTyp_DEFAULT_CACHE_SIZE = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131128:1: + PragTyp_ENCODING = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131129:1: + PragTyp_FLAG = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131119:1: + PragTyp_FOREIGN_KEY_CHECK = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131130:1: + PragTyp_FOREIGN_KEY_LIST = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131131:1: + PragTyp_FUNCTION_LIST = 17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131132:1: + PragTyp_HARD_HEAP_LIMIT = 18 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131133:1: + PragTyp_HEADER_VALUE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131117:1: + PragTyp_INCREMENTAL_VACUUM = 19 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131134:1: + PragTyp_INDEX_INFO = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131135:1: + PragTyp_INDEX_LIST = 21 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131136:1: + PragTyp_INTEGRITY_CHECK = 22 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131137:1: + PragTyp_JOURNAL_MODE = 23 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131138:1: + PragTyp_JOURNAL_SIZE_LIMIT = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131139:1: + PragTyp_LOCKING_MODE = 26 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131141:1: + PragTyp_LOCK_PROXY_FILE = 25 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131140:1: + PragTyp_LOCK_STATUS = 44 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131159:1: + PragTyp_MMAP_SIZE = 28 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131143:1: + PragTyp_MODULE_LIST = 29 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131144:1: + PragTyp_OPTIMIZE = 30 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131145:1: + PragTyp_PAGE_COUNT = 27 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131142:1: + PragTyp_PAGE_SIZE = 31 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131146:1: + PragTyp_PRAGMA_LIST = 32 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131147:1: + PragTyp_SECURE_DELETE = 33 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131148:1: + PragTyp_SHRINK_MEMORY = 34 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131149:1: + PragTyp_SOFT_HEAP_LIMIT = 35 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131150:1: + PragTyp_STATS = 45 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131160:1: + PragTyp_SYNCHRONOUS = 36 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131151:1: + PragTyp_TABLE_INFO = 37 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131152:1: + PragTyp_TABLE_LIST = 38 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131153:1: + PragTyp_TEMP_STORE = 39 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131154:1: + PragTyp_TEMP_STORE_DIRECTORY = 40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131155:1: + PragTyp_THREADS = 41 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131156:1: + PragTyp_WAL_AUTOCHECKPOINT = 42 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131157:1: + PragTyp_WAL_CHECKPOINT = 43 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131158:1: QDI_DIBTOSCREEN = 4 // /usr/x86_64-w64-mingw32/include/wingdi.h:414:1: QDI_GETDIBITS = 2 // /usr/x86_64-w64-mingw32/include/wingdi.h:413:1: QDI_SETDIBITS = 1 // /usr/x86_64-w64-mingw32/include/wingdi.h:412:1: @@ -12593,36 +12600,36 @@ const ( RAND_MAX = 0x7fff // /usr/x86_64-w64-mingw32/include/stdlib.h:106:1: RASTERCAPS = 38 // /usr/x86_64-w64-mingw32/include/wingdi.h:1530:1: RASTER_FONTTYPE = 0x0001 // /usr/x86_64-w64-mingw32/include/wingdi.h:1393:1: - RBU_CREATE_STATE = "CREATE TABLE IF NOT EXISTS %s.rbu_state(k INTEGER PRIMARY KEY, v)" // testdata/sqlite-amalgamation-3380500/sqlite3.c:203945:1: - RBU_DELETE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204081:1: - RBU_ENABLE_DELTA_CKSUM = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203862:1: - RBU_EXCLUSIVE_CHECKPOINT = "rbu_exclusive_checkpoint" // testdata/sqlite-amalgamation-3380500/sqlite3.c:203876:1: - RBU_IDX_DELETE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204083:1: - RBU_IDX_INSERT = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204084:1: - RBU_INSERT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204080:1: - RBU_PK_EXTERNAL = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204071:1: - RBU_PK_IPK = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204070:1: - RBU_PK_NONE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204069:1: - RBU_PK_NOTABLE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204068:1: - RBU_PK_VTAB = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204073:1: - RBU_PK_WITHOUT_ROWID = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204072:1: - RBU_REPLACE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204082:1: - RBU_STAGE_CAPTURE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203940:1: - RBU_STAGE_CKPT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203941:1: - RBU_STAGE_DONE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203942:1: - RBU_STAGE_MOVE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203939:1: - RBU_STAGE_OAL = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203938:1: - RBU_STATE_CKPT = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203932:1: - RBU_STATE_COOKIE = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203933:1: - RBU_STATE_DATATBL = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203936:1: - RBU_STATE_IDX = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203929:1: - RBU_STATE_OALSZ = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203934:1: - RBU_STATE_PHASEONESTEP = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203935:1: - RBU_STATE_PROGRESS = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203931:1: - RBU_STATE_ROW = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203930:1: - RBU_STATE_STAGE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203927:1: - RBU_STATE_TBL = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203928:1: - RBU_UPDATE = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:204086:1: + RBU_CREATE_STATE = "CREATE TABLE IF NOT EXISTS %s.rbu_state(k INTEGER PRIMARY KEY, v)" // testdata/sqlite-amalgamation-3390200/sqlite3.c:206067:1: + RBU_DELETE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206203:1: + RBU_ENABLE_DELTA_CKSUM = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:205984:1: + RBU_EXCLUSIVE_CHECKPOINT = "rbu_exclusive_checkpoint" // testdata/sqlite-amalgamation-3390200/sqlite3.c:205998:1: + RBU_IDX_DELETE = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206205:1: + RBU_IDX_INSERT = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206206:1: + RBU_INSERT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206202:1: + RBU_PK_EXTERNAL = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206193:1: + RBU_PK_IPK = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206192:1: + RBU_PK_NONE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206191:1: + RBU_PK_NOTABLE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206190:1: + RBU_PK_VTAB = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206195:1: + RBU_PK_WITHOUT_ROWID = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206194:1: + RBU_REPLACE = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206204:1: + RBU_STAGE_CAPTURE = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206062:1: + RBU_STAGE_CKPT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206063:1: + RBU_STAGE_DONE = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206064:1: + RBU_STAGE_MOVE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206061:1: + RBU_STAGE_OAL = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206060:1: + RBU_STATE_CKPT = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206054:1: + RBU_STATE_COOKIE = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206055:1: + RBU_STATE_DATATBL = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206058:1: + RBU_STATE_IDX = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206051:1: + RBU_STATE_OALSZ = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206056:1: + RBU_STATE_PHASEONESTEP = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206057:1: + RBU_STATE_PROGRESS = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206053:1: + RBU_STATE_ROW = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206052:1: + RBU_STATE_STAGE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206049:1: + RBU_STATE_TBL = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206050:1: + RBU_UPDATE = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206208:1: RC_BANDING = 2 // /usr/x86_64-w64-mingw32/include/wingdi.h:1624:1: RC_BIGFONT = 0x0400 // /usr/x86_64-w64-mingw32/include/wingdi.h:1633:1: RC_BITBLT = 1 // /usr/x86_64-w64-mingw32/include/wingdi.h:1623:1: @@ -12653,12 +12660,12 @@ const ( RDW_NOINTERNALPAINT = 0x0010 // /usr/x86_64-w64-mingw32/include/winuser.h:3566:1: RDW_UPDATENOW = 0x0100 // /usr/x86_64-w64-mingw32/include/winuser.h:3572:1: RDW_VALIDATE = 0x0008 // /usr/x86_64-w64-mingw32/include/winuser.h:3565:1: - READMARK_NOT_USED = 0xffffffff // testdata/sqlite-amalgamation-3380500/sqlite3.c:61354:1: + READMARK_NOT_USED = 0xffffffff // testdata/sqlite-amalgamation-3390200/sqlite3.c:61995:1: READ_ATTRIBUTES = 0xD0 // /usr/x86_64-w64-mingw32/include/winioctl.h:958:1: READ_ATTRIBUTE_BUFFER_SIZE = 512 // /usr/x86_64-w64-mingw32/include/winioctl.h:953:1: READ_COMPRESSION_INFO_VALID = 0x00000020 // /usr/x86_64-w64-mingw32/include/winioctl.h:282:1: READ_CONTROL = 131072 // /usr/x86_64-w64-mingw32/include/winnt.h:2880:1: - READ_LOCK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65451:1: + READ_LOCK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66092:1: READ_THREAD_PROFILING_FLAG_DISPATCHING = 0x00000001 // /usr/x86_64-w64-mingw32/include/winnt.h:8430:1: READ_THREAD_PROFILING_FLAG_HARDWARE_COUNTERS = 0x00000002 // /usr/x86_64-w64-mingw32/include/winnt.h:8431:1: READ_THRESHOLDS = 0xD1 // /usr/x86_64-w64-mingw32/include/winioctl.h:959:1: @@ -12740,7 +12747,7 @@ const ( REPLACE_PRIMARY = 0xA // /usr/x86_64-w64-mingw32/include/winioctl.h:1225:1: REPORT_NOT_ABLE_TO_EXPORT_PRIVATE_KEY = 0x2 // /usr/x86_64-w64-mingw32/include/wincrypt.h:5712:1: REPORT_NO_PRIVATE_KEY = 0x1 // /usr/x86_64-w64-mingw32/include/wincrypt.h:5711:1: - RESERVED_LOCK = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16321:1: + RESERVED_LOCK = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16372:1: RESETDEV = 7 // /usr/x86_64-w64-mingw32/include/winbase.h:539:1: RESOURCEDISPLAYTYPE_DIRECTORY = 0x00000009 // /usr/x86_64-w64-mingw32/include/winnetwk.h:49:1: RESOURCEDISPLAYTYPE_DOMAIN = 0x00000001 // /usr/x86_64-w64-mingw32/include/winnetwk.h:41:1: @@ -12800,7 +12807,7 @@ const ( RES_CURSOR = 2 // /usr/x86_64-w64-mingw32/include/winuser.h:4250:1: RES_ICON = 1 // /usr/x86_64-w64-mingw32/include/winuser.h:4249:1: RETRACT_IEPORT = 3 // /usr/x86_64-w64-mingw32/include/winioctl.h:1112:1: - RETURNING_TRIGGER_NAME = "sqlite_returning" // testdata/sqlite-amalgamation-3380500/sqlite3.c:115363:1: + RETURNING_TRIGGER_NAME = "sqlite_returning" // testdata/sqlite-amalgamation-3390200/sqlite3.c:116539:1: RETURN_SMART_STATUS = 0xDA // /usr/x86_64-w64-mingw32/include/winioctl.h:967:1: REVERSE_PRINT = 0x00000001 // /usr/x86_64-w64-mingw32/include/winspool.h:650:1: REVISION_LENGTH = 4 // /usr/x86_64-w64-mingw32/include/winioctl.h:991:1: @@ -12861,15 +12868,15 @@ const ( RI_MOUSE_RIGHT_BUTTON_DOWN = 0x0004 // /usr/x86_64-w64-mingw32/include/winuser.h:6328:1: RI_MOUSE_RIGHT_BUTTON_UP = 0x0008 // /usr/x86_64-w64-mingw32/include/winuser.h:6329:1: RI_MOUSE_WHEEL = 0x0400 // /usr/x86_64-w64-mingw32/include/winuser.h:6336:1: - RNDAWAY = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:199067:1: - RNDTOWARDS = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:199066:1: + RNDAWAY = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:201189:1: + RNDTOWARDS = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:201188:1: ROTFLAGS_ALLOWANYCLIENT = 0x2 // /usr/x86_64-w64-mingw32/include/wtypes.h:174:1: ROTFLAGS_REGISTRATIONKEEPSALIVE = 0x1 // /usr/x86_64-w64-mingw32/include/wtypes.h:173:1: ROTREGFLAGS_ALLOWANYCLIENT = 0x1 // /usr/x86_64-w64-mingw32/include/wtypesbase.h:243:1: ROT_COMPARE_MAX = 2048 // /usr/x86_64-w64-mingw32/include/wtypes.h:179:1: - ROWSET_ALLOCATION_SIZE = 1024 // testdata/sqlite-amalgamation-3380500/sqlite3.c:52623:1: - ROWSET_NEXT = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:52677:1: - ROWSET_SORTED = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:52676:1: + ROWSET_ALLOCATION_SIZE = 1024 // testdata/sqlite-amalgamation-3390200/sqlite3.c:53261:1: + ROWSET_NEXT = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:53315:1: + ROWSET_SORTED = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:53314:1: RPCFLG_ASYNCHRONOUS = 1073741824 // /usr/x86_64-w64-mingw32/include/rpcdcep.h:69:1: RPCFLG_AUTO_COMPLETE = 134217728 // /usr/x86_64-w64-mingw32/include/rpcdcep.h:66:1: RPCFLG_HAS_CALLBACK = 67108864 // /usr/x86_64-w64-mingw32/include/rpcdcep.h:73:1: @@ -13221,26 +13228,26 @@ const ( RTL_VRF_FLG_TLS_CHECKS = 0x00000020 // /usr/x86_64-w64-mingw32/include/winnt.h:8304:1: RTL_VRF_FLG_VIRTUAL_MEM_CHECKS = 0x00002000 // /usr/x86_64-w64-mingw32/include/winnt.h:8312:1: RTL_VRF_FLG_VIRTUAL_SPACE_TRACKING = 0x00010000 // /usr/x86_64-w64-mingw32/include/winnt.h:8315:1: - RTREE_CACHE_SZ = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196199:1: - RTREE_CHECK_MAX_ERROR = 100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:199878:1: - RTREE_COORD_INT32 = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196128:1: - RTREE_COORD_REAL32 = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196127:1: - RTREE_DEFAULT_ROWEST = 1048576 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196064:1: - RTREE_EQ = 0x41 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196266:1: - RTREE_FALSE = 0x40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196279:1: - RTREE_GE = 0x44 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196269:1: - RTREE_GT = 0x45 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196270:1: - RTREE_LE = 0x42 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196267:1: - RTREE_LT = 0x43 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196268:1: - RTREE_MATCH = 0x46 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196271:1: - RTREE_MAXCELLS = 51 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196182:1: - RTREE_MAX_AUX_COLUMN = 100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196049:1: - RTREE_MAX_DEPTH = 40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196191:1: - RTREE_MAX_DIMENSIONS = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196046:1: - RTREE_MIN_ROWEST = 100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196065:1: - RTREE_QUERY = 0x47 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196272:1: - RTREE_TRUE = 0x3f // testdata/sqlite-amalgamation-3380500/sqlite3.c:196278:1: - RTREE_ZERO = 0.0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:196142:1: + RTREE_CACHE_SZ = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198321:1: + RTREE_CHECK_MAX_ERROR = 100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:202000:1: + RTREE_COORD_INT32 = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198250:1: + RTREE_COORD_REAL32 = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198249:1: + RTREE_DEFAULT_ROWEST = 1048576 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198186:1: + RTREE_EQ = 0x41 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198388:1: + RTREE_FALSE = 0x40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198401:1: + RTREE_GE = 0x44 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198391:1: + RTREE_GT = 0x45 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198392:1: + RTREE_LE = 0x42 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198389:1: + RTREE_LT = 0x43 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198390:1: + RTREE_MATCH = 0x46 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198393:1: + RTREE_MAXCELLS = 51 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198304:1: + RTREE_MAX_AUX_COLUMN = 100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198171:1: + RTREE_MAX_DEPTH = 40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198313:1: + RTREE_MAX_DIMENSIONS = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198168:1: + RTREE_MIN_ROWEST = 100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198187:1: + RTREE_QUERY = 0x47 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198394:1: + RTREE_TRUE = 0x3f // testdata/sqlite-amalgamation-3390200/sqlite3.c:198400:1: + RTREE_ZERO = 0.0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:198264:1: RTS_CONTROL_DISABLE = 0x0 // /usr/x86_64-w64-mingw32/include/winbase.h:280:1: RTS_CONTROL_ENABLE = 0x1 // /usr/x86_64-w64-mingw32/include/winbase.h:281:1: RTS_CONTROL_HANDSHAKE = 0x2 // /usr/x86_64-w64-mingw32/include/winbase.h:282:1: @@ -13322,9 +13329,9 @@ const ( SAL__reserved = 0 // /usr/x86_64-w64-mingw32/include/specstrings.h:276:1: SAL__valid = 0 // /usr/x86_64-w64-mingw32/include/specstrings.h:52:1: SANDBOX_INERT = 0x2 // /usr/x86_64-w64-mingw32/include/winnt.h:4004:1: - SAVEPOINT_BEGIN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17293:1: - SAVEPOINT_RELEASE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17294:1: - SAVEPOINT_ROLLBACK = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17295:1: + SAVEPOINT_BEGIN = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17348:1: + SAVEPOINT_RELEASE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17349:1: + SAVEPOINT_ROLLBACK = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17350:1: SAVE_ATTRIBUTE_VALUES = 0xD3 // /usr/x86_64-w64-mingw32/include/winioctl.h:961:1: SAVE_CTM = 4101 // /usr/x86_64-w64-mingw32/include/wingdi.h:298:1: SBM_ENABLE_ARROWS = 0x00E4 // /usr/x86_64-w64-mingw32/include/winuser.h:4869:1: @@ -13450,7 +13457,7 @@ const ( SCHAR_MAX = 127 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include-fixed/limits.h:75:1: SCHAR_MIN = -128 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include-fixed/limits.h:73:1: SCHED_E_SERVICE_NOT_LOCALSYSTEM = 6200 // /usr/x86_64-w64-mingw32/include/winerror.h:1097:1: - SCHEMA_ROOT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14497:1: + SCHEMA_ROOT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14539:1: SCHEME_OID_RETRIEVE_ENCODED_OBJECTW_FUNC = "SchemeDllRetrieveEncodedObjectW" // /usr/x86_64-w64-mingw32/include/wincrypt.h:4836:1: SCHEME_OID_RETRIEVE_ENCODED_OBJECT_FUNC = "SchemeDllRetrieveEncodedObject" // /usr/x86_64-w64-mingw32/include/wincrypt.h:4835:1: SCOPE_SECURITY_INFORMATION = 64 // /usr/x86_64-w64-mingw32/include/winnt.h:4016:1: @@ -13685,7 +13692,6 @@ const ( SEF_SACL_AUTO_INHERIT = 0x02 // /usr/x86_64-w64-mingw32/include/winnt.h:7906:1: SELECTDIB = 41 // /usr/x86_64-w64-mingw32/include/mmsystem.h:2625:1: SELECTPAPERSOURCE = 18 // /usr/x86_64-w64-mingw32/include/wingdi.h:251:1: - SELECTTRACE_ENABLED = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14439:1: SELECT_CAP_CONVERSION = 0x00000001 // /usr/x86_64-w64-mingw32/include/imm.h:328:1: SELECT_CAP_SENTENCE = 0x00000002 // /usr/x86_64-w64-mingw32/include/imm.h:329:1: SEMAPHORE_ALL_ACCESS = 2031619 // /usr/x86_64-w64-mingw32/include/winnt.h:4594:1: @@ -13772,14 +13778,14 @@ const ( SERVICE_WIN32 = 48 // /usr/x86_64-w64-mingw32/include/winnt.h:8567:1: SERVICE_WIN32_OWN_PROCESS = 0x00000010 // /usr/x86_64-w64-mingw32/include/winnt.h:8565:1: SERVICE_WIN32_SHARE_PROCESS = 0x00000020 // /usr/x86_64-w64-mingw32/include/winnt.h:8566:1: - SESSIONS_STRM_CHUNK_SIZE = 1024 // testdata/sqlite-amalgamation-3380500/sqlite3.c:210455:1: + SESSIONS_STRM_CHUNK_SIZE = 1024 // testdata/sqlite-amalgamation-3390200/sqlite3.c:212577:1: SESSION_ABORTED = 0x06 // /usr/x86_64-w64-mingw32/include/nb30.h:107:1: SESSION_ALL_ACCESS = 983043 // /usr/x86_64-w64-mingw32/include/winnt.h:4851:1: SESSION_ESTABLISHED = 0x03 // /usr/x86_64-w64-mingw32/include/nb30.h:104:1: - SESSION_MAX_BUFFER_SZ = 2147483391 // testdata/sqlite-amalgamation-3380500/sqlite3.c:212429:1: + SESSION_MAX_BUFFER_SZ = 2147483391 // testdata/sqlite-amalgamation-3390200/sqlite3.c:214551:1: SESSION_MODIFY_ACCESS = 0x2 // /usr/x86_64-w64-mingw32/include/winnt.h:4849:1: SESSION_QUERY_ACCESS = 0x1 // /usr/x86_64-w64-mingw32/include/winnt.h:4848:1: - SESSION_UPDATE_CACHE_SZ = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:214201:1: + SESSION_UPDATE_CACHE_SZ = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:216323:1: SETABORTPROC = 9 // /usr/x86_64-w64-mingw32/include/wingdi.h:242:1: SETALLJUSTVALUES = 771 // /usr/x86_64-w64-mingw32/include/wingdi.h:286:1: SETBREAK = 8 // /usr/x86_64-w64-mingw32/include/winbase.h:540:1: @@ -13853,37 +13859,37 @@ const ( SE_SECURITY_DESCRIPTOR_FLAG_NO_OWNER_ACE = 0x00000001 // /usr/x86_64-w64-mingw32/include/winnt.h:3626:1: SE_SECURITY_DESCRIPTOR_VALID_FLAGS = 0x00000003 // /usr/x86_64-w64-mingw32/include/winnt.h:3628:1: SE_SELF_RELATIVE = 32768 // /usr/x86_64-w64-mingw32/include/winnt.h:3536:1: - SF_Aggregate = 0x0000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18571:1: - SF_All = 0x0000002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18569:1: - SF_ComplexResult = 0x0040000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18586:1: - SF_Compound = 0x0000100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18576:1: - SF_Converted = 0x0010000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18584:1: - SF_CopyCte = 0x4000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18594:1: - SF_Distinct = 0x0000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18568:1: - SF_Expanded = 0x0000040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18574:1: - SF_FixedLimit = 0x0004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18582:1: - SF_HasAgg = 0x0000010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18572:1: - SF_HasTypeInfo = 0x0000080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18575:1: - SF_IncludeHidden = 0x0020000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18585:1: - SF_MaybeConvert = 0x0008000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18583:1: - SF_MinMaxAgg = 0x0001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18580:1: - SF_MultiPart = 0x2000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18593:1: - SF_MultiValue = 0x0000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18578:1: - SF_NestedFrom = 0x0000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18579:1: - SF_NoopOrderBy = 0x0400000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18590:1: - SF_OrderByReqd = 0x8000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18595:1: - SF_PushDown = 0x1000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18592:1: - SF_Recursive = 0x0002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18581:1: - SF_Resolved = 0x0000004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18570:1: - SF_UFSrcCheck = 0x0800000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18591:1: - SF_UsesEphemeral = 0x0000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18573:1: - SF_Values = 0x0000200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18577:1: - SF_View = 0x0200000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18589:1: - SF_WhereBegin = 0x0080000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18587:1: - SF_WinRewrite = 0x0100000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18588:1: + SF_Aggregate = 0x0000008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18667:1: + SF_All = 0x0000002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18665:1: + SF_ComplexResult = 0x0040000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18682:1: + SF_Compound = 0x0000100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18672:1: + SF_Converted = 0x0010000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18680:1: + SF_CopyCte = 0x4000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18690:1: + SF_Distinct = 0x0000001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18664:1: + SF_Expanded = 0x0000040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18670:1: + SF_FixedLimit = 0x0004000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18678:1: + SF_HasAgg = 0x0000010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18668:1: + SF_HasTypeInfo = 0x0000080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18671:1: + SF_IncludeHidden = 0x0020000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18681:1: + SF_MaybeConvert = 0x0008000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18679:1: + SF_MinMaxAgg = 0x0001000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18676:1: + SF_MultiPart = 0x2000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18689:1: + SF_MultiValue = 0x0000400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18674:1: + SF_NestedFrom = 0x0000800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18675:1: + SF_NoopOrderBy = 0x0400000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18686:1: + SF_OrderByReqd = 0x8000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18691:1: + SF_PushDown = 0x1000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18688:1: + SF_Recursive = 0x0002000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18677:1: + SF_Resolved = 0x0000004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18666:1: + SF_UFSrcCheck = 0x0800000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18687:1: + SF_UsesEphemeral = 0x0000020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18669:1: + SF_Values = 0x0000200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18673:1: + SF_View = 0x0200000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18685:1: + SF_WhereBegin = 0x0080000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18683:1: + SF_WinRewrite = 0x0100000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18684:1: SHADEBLENDCAPS = 120 // /usr/x86_64-w64-mingw32/include/wingdi.h:1554:1: - SHARED_LOCK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16320:1: - SHARED_SIZE = 510 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16387:1: + SHARED_LOCK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16371:1: + SHARED_SIZE = 510 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16438:1: SHAREVISTRINGA = "commdlg_ShareViolation" // /usr/x86_64-w64-mingw32/include/commdlg.h:488:1: SHERB_NOCONFIRMATION = 0x00000001 // /usr/x86_64-w64-mingw32/include/shellapi.h:404:1: SHERB_NOPROGRESSUI = 0x00000002 // /usr/x86_64-w64-mingw32/include/shellapi.h:405:1: @@ -14034,8 +14040,8 @@ const ( SLE_ERROR = 0x00000001 // /usr/x86_64-w64-mingw32/include/winuser.h:5873:1: SLE_MINORERROR = 0x00000002 // /usr/x86_64-w64-mingw32/include/winuser.h:5874:1: SLE_WARNING = 0x00000003 // /usr/x86_64-w64-mingw32/include/winuser.h:5875:1: - SLOT_2_0 = 0x001fc07f // testdata/sqlite-amalgamation-3380500/sqlite3.c:238104:1: - SLOT_4_2_0 = 0xf01fc07f // testdata/sqlite-amalgamation-3380500/sqlite3.c:238105:1: + SLOT_2_0 = 0x001fc07f // testdata/sqlite-amalgamation-3390200/sqlite3.c:240229:1: + SLOT_4_2_0 = 0xf01fc07f // testdata/sqlite-amalgamation-3390200/sqlite3.c:240230:1: SMART_ABORT_OFFLINE_SELFTEST = 127 // /usr/x86_64-w64-mingw32/include/winioctl.h:941:1: SMART_CMD = 0xB0 // /usr/x86_64-w64-mingw32/include/winioctl.h:901:1: SMART_CYL_HI = 0xC2 // /usr/x86_64-w64-mingw32/include/winioctl.h:904:1: @@ -14201,10 +14207,10 @@ const ( SORTED_CTL_EXT_HASHED_SUBJECT_IDENTIFIER_FLAG = 0x1 // /usr/x86_64-w64-mingw32/include/wincrypt.h:2193:1: SORTED_CTL_EXT_HASH_BUCKET_OFFSET = 12 // /usr/x86_64-w64-mingw32/include/wincrypt.h:2191:1: SORTED_CTL_EXT_MAX_COLLISION_OFFSET = 8 // /usr/x86_64-w64-mingw32/include/wincrypt.h:2190:1: - SORTER_MAX_MERGE_COUNT = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:96989:1: - SORTER_TYPE_INTEGER = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:96867:1: - SORTER_TYPE_TEXT = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:96868:1: - SORTFLAG_UseSorter = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:134339:1: + SORTER_MAX_MERGE_COUNT = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:98018:1: + SORTER_TYPE_INTEGER = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:97896:1: + SORTER_TYPE_TEXT = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:97897:1: + SORTFLAG_UseSorter = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:135594:1: SORT_CHINESE_BIG5 = 0x0 // /usr/x86_64-w64-mingw32/include/winnt.h:1266:1: SORT_CHINESE_BOPOMOFO = 0x3 // /usr/x86_64-w64-mingw32/include/winnt.h:1270:1: SORT_CHINESE_PRC = 0x2 // /usr/x86_64-w64-mingw32/include/winnt.h:1269:1: @@ -14279,9 +14285,9 @@ const ( SPIF_SENDCHANGE = 2 // /usr/x86_64-w64-mingw32/include/winuser.h:5402:1: SPIF_SENDWININICHANGE = 0x0002 // /usr/x86_64-w64-mingw32/include/winuser.h:5401:1: SPIF_UPDATEINIFILE = 0x0001 // /usr/x86_64-w64-mingw32/include/winuser.h:5400:1: - SPILLFLAG_NOSYNC = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53666:1: - SPILLFLAG_OFF = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53664:1: - SPILLFLAG_ROLLBACK = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53665:1: + SPILLFLAG_NOSYNC = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54304:1: + SPILLFLAG_OFF = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54302:1: + SPILLFLAG_ROLLBACK = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54303:1: SPI_GETACCESSTIMEOUT = 0x003C // /usr/x86_64-w64-mingw32/include/winuser.h:5145:1: SPI_GETACTIVEWINDOWTRACKING = 0x1000 // /usr/x86_64-w64-mingw32/include/winuser.h:5218:1: SPI_GETACTIVEWNDTRKTIMEOUT = 0x2002 // /usr/x86_64-w64-mingw32/include/winuser.h:5280:1: @@ -14463,220 +14469,220 @@ const ( SP_OUTOFDISK = -4 // /usr/x86_64-w64-mingw32/include/wingdi.h:421:1: SP_OUTOFMEMORY = -5 // /usr/x86_64-w64-mingw32/include/wingdi.h:422:1: SP_USERABORT = -3 // /usr/x86_64-w64-mingw32/include/wingdi.h:420:1: - SQLITE3EXT_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:128286:1: - SQLITE3_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:340:1: - SQLITE3_TEXT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5187:1: - SQLITEINT_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:41:1: - SQLITE_ABORT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:755:1: - SQLITE_ABORT_ROLLBACK = 516 // testdata/sqlite-amalgamation-3380500/sqlite3.c:857:1: - SQLITE_ACCESS_EXISTS = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1792:1: - SQLITE_ACCESS_READ = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1794:1: - SQLITE_ACCESS_READWRITE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1793:1: - SQLITE_AFF_BLOB = 0x41 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17423:1: - SQLITE_AFF_INTEGER = 0x44 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17426:1: - SQLITE_AFF_MASK = 0x47 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17435:1: - SQLITE_AFF_NONE = 0x40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17422:1: - SQLITE_AFF_NUMERIC = 0x43 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17425:1: - SQLITE_AFF_REAL = 0x45 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17427:1: - SQLITE_AFF_TEXT = 0x42 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17424:1: - SQLITE_ALLOW_COVERING_INDEX_SCAN = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21780:1: - SQLITE_ALTER_TABLE = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3482:1: - SQLITE_AMALGAMATION = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21:1: - SQLITE_ANALYZE = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3484:1: - SQLITE_ANY = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5645:1: - SQLITE_API = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:381:1: - SQLITE_APICALL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:387:1: - SQLITE_ASCII = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14169:1: - SQLITE_ATOMIC_INTRINSICS = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13359:1: - SQLITE_ATTACH = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3480:1: - SQLITE_AUTH = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:774:1: - SQLITE_AUTH_USER = 279 // testdata/sqlite-amalgamation-3380500/sqlite3.c:873:1: - SQLITE_AllOpts = 0xffffffff // testdata/sqlite-amalgamation-3380500/sqlite3.c:17036:1: - SQLITE_AutoIndex = 0x00008000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16964:1: - SQLITE_BIGENDIAN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14334:1: - SQLITE_BIG_DBL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14049:1: - SQLITE_BLDF1_INDEXED = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147295:1: - SQLITE_BLDF1_UNIQUE = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147296:1: - SQLITE_BLDF2_2NDPASS = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147298:1: - SQLITE_BLOB = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5180:1: - SQLITE_BTREE_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14936:1: - SQLITE_BUSY = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:756:1: - SQLITE_BUSY_RECOVERY = 261 // testdata/sqlite-amalgamation-3380500/sqlite3.c:839:1: - SQLITE_BUSY_SNAPSHOT = 517 // testdata/sqlite-amalgamation-3380500/sqlite3.c:840:1: - SQLITE_BUSY_TIMEOUT = 773 // testdata/sqlite-amalgamation-3380500/sqlite3.c:841:1: - SQLITE_BYTEORDER = 1234 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14321:1: - SQLITE_BalancedMerge = 0x00200000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17035:1: - SQLITE_BloomFilter = 0x00080000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17033:1: - SQLITE_BloomPulldown = 0x00100000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17034:1: - SQLITE_CALLBACK = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:393:1: - SQLITE_CANTOPEN = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:765:1: - SQLITE_CANTOPEN_CONVPATH = 1038 // testdata/sqlite-amalgamation-3380500/sqlite3.c:845:1: - SQLITE_CANTOPEN_DIRTYWAL = 1294 // testdata/sqlite-amalgamation-3380500/sqlite3.c:846:1: - SQLITE_CANTOPEN_FULLPATH = 782 // testdata/sqlite-amalgamation-3380500/sqlite3.c:844:1: - SQLITE_CANTOPEN_ISDIR = 526 // testdata/sqlite-amalgamation-3380500/sqlite3.c:843:1: - SQLITE_CANTOPEN_NOTEMPDIR = 270 // testdata/sqlite-amalgamation-3380500/sqlite3.c:842:1: - SQLITE_CANTOPEN_SYMLINK = 1550 // testdata/sqlite-amalgamation-3380500/sqlite3.c:847:1: - SQLITE_CDECL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:384:1: - SQLITE_CHANGESETAPPLY_INVERT = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12060:1: - SQLITE_CHANGESETAPPLY_NOSAVEPOINT = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12059:1: - SQLITE_CHANGESETSTART_INVERT = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:11375:1: - SQLITE_CHANGESET_ABORT = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12156:1: - SQLITE_CHANGESET_CONFLICT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12119:1: - SQLITE_CHANGESET_CONSTRAINT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12120:1: - SQLITE_CHANGESET_DATA = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12117:1: - SQLITE_CHANGESET_FOREIGN_KEY = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12121:1: - SQLITE_CHANGESET_NOTFOUND = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12118:1: - SQLITE_CHANGESET_OMIT = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12154:1: - SQLITE_CHANGESET_REPLACE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12155:1: - SQLITE_CHECKPOINT_FULL = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:9692:1: - SQLITE_CHECKPOINT_PASSIVE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:9691:1: - SQLITE_CHECKPOINT_RESTART = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:9693:1: - SQLITE_CHECKPOINT_TRUNCATE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:9694:1: - SQLITE_CONFIG_COVERING_INDEX_SCAN = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2413:1: - SQLITE_CONFIG_GETMALLOC = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2398:1: - SQLITE_CONFIG_GETMUTEX = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2404:1: - SQLITE_CONFIG_GETPCACHE = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2408:1: - SQLITE_CONFIG_GETPCACHE2 = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2412:1: - SQLITE_CONFIG_HEAP = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2401:1: - SQLITE_CONFIG_LOG = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2409:1: - SQLITE_CONFIG_LOOKASIDE = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2406:1: - SQLITE_CONFIG_MALLOC = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2397:1: - SQLITE_CONFIG_MEMDB_MAXSIZE = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2422:1: - SQLITE_CONFIG_MEMSTATUS = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2402:1: - SQLITE_CONFIG_MMAP_SIZE = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2415:1: - SQLITE_CONFIG_MULTITHREAD = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2395:1: - SQLITE_CONFIG_MUTEX = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2403:1: - SQLITE_CONFIG_PAGECACHE = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2400:1: - SQLITE_CONFIG_PCACHE = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2407:1: - SQLITE_CONFIG_PCACHE2 = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2411:1: - SQLITE_CONFIG_PCACHE_HDRSZ = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2417:1: - SQLITE_CONFIG_PMASZ = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2418:1: - SQLITE_CONFIG_SCRATCH = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2399:1: - SQLITE_CONFIG_SERIALIZED = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2396:1: - SQLITE_CONFIG_SINGLETHREAD = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2394:1: - SQLITE_CONFIG_SMALL_MALLOC = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2420:1: - SQLITE_CONFIG_SORTERREF_SIZE = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2421:1: - SQLITE_CONFIG_SQLLOG = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2414:1: - SQLITE_CONFIG_STMTJRNL_SPILL = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2419:1: - SQLITE_CONFIG_URI = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2410:1: - SQLITE_CONFIG_WIN32_HEAPSIZE = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2416:1: - SQLITE_CONSTRAINT = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:770:1: - SQLITE_CONSTRAINT_CHECK = 275 // testdata/sqlite-amalgamation-3380500/sqlite3.c:858:1: - SQLITE_CONSTRAINT_COMMITHOOK = 531 // testdata/sqlite-amalgamation-3380500/sqlite3.c:859:1: - SQLITE_CONSTRAINT_DATATYPE = 3091 // testdata/sqlite-amalgamation-3380500/sqlite3.c:869:1: - SQLITE_CONSTRAINT_FOREIGNKEY = 787 // testdata/sqlite-amalgamation-3380500/sqlite3.c:860:1: - SQLITE_CONSTRAINT_FUNCTION = 1043 // testdata/sqlite-amalgamation-3380500/sqlite3.c:861:1: - SQLITE_CONSTRAINT_NOTNULL = 1299 // testdata/sqlite-amalgamation-3380500/sqlite3.c:862:1: - SQLITE_CONSTRAINT_PINNED = 2835 // testdata/sqlite-amalgamation-3380500/sqlite3.c:868:1: - SQLITE_CONSTRAINT_PRIMARYKEY = 1555 // testdata/sqlite-amalgamation-3380500/sqlite3.c:863:1: - SQLITE_CONSTRAINT_ROWID = 2579 // testdata/sqlite-amalgamation-3380500/sqlite3.c:867:1: - SQLITE_CONSTRAINT_TRIGGER = 1811 // testdata/sqlite-amalgamation-3380500/sqlite3.c:864:1: - SQLITE_CONSTRAINT_UNIQUE = 2067 // testdata/sqlite-amalgamation-3380500/sqlite3.c:865:1: - SQLITE_CONSTRAINT_VTAB = 2323 // testdata/sqlite-amalgamation-3380500/sqlite3.c:866:1: - SQLITE_COPY = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3489:1: - SQLITE_CORE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20:1: - SQLITE_CORRUPT = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:762:1: - SQLITE_CORRUPT_INDEX = 779 // testdata/sqlite-amalgamation-3380500/sqlite3.c:850:1: - SQLITE_CORRUPT_SEQUENCE = 523 // testdata/sqlite-amalgamation-3380500/sqlite3.c:849:1: - SQLITE_CORRUPT_VTAB = 267 // testdata/sqlite-amalgamation-3380500/sqlite3.c:848:1: - SQLITE_CREATE_INDEX = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3457:1: - SQLITE_CREATE_TABLE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3458:1: - SQLITE_CREATE_TEMP_INDEX = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3459:1: - SQLITE_CREATE_TEMP_TABLE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3460:1: - SQLITE_CREATE_TEMP_TRIGGER = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3461:1: - SQLITE_CREATE_TEMP_VIEW = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3462:1: - SQLITE_CREATE_TRIGGER = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3463:1: - SQLITE_CREATE_VIEW = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3464:1: - SQLITE_CREATE_VTABLE = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3485:1: - SQLITE_CacheSpill = 0x00000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16952:1: - SQLITE_CellSizeCk = 0x00200000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16970:1: - SQLITE_CkptFullFSync = 0x00000010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16951:1: - SQLITE_CountOfView = 0x00000200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17021:1: - SQLITE_CoverIdxScan = 0x00000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17017:1: - SQLITE_CursorHints = 0x00000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17022:1: - SQLITE_DBCONFIG_DEFENSIVE = 1010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2715:1: - SQLITE_DBCONFIG_DQS_DDL = 1014 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2719:1: - SQLITE_DBCONFIG_DQS_DML = 1013 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2718:1: - SQLITE_DBCONFIG_ENABLE_FKEY = 1002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2707:1: - SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = 1004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2709:1: - SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION = 1005 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2710:1: - SQLITE_DBCONFIG_ENABLE_QPSG = 1007 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2712:1: - SQLITE_DBCONFIG_ENABLE_TRIGGER = 1003 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2708:1: - SQLITE_DBCONFIG_ENABLE_VIEW = 1015 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2720:1: - SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1012 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2717:1: - SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1016 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2721:1: - SQLITE_DBCONFIG_LOOKASIDE = 1001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2706:1: - SQLITE_DBCONFIG_MAINDBNAME = 1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2705:1: - SQLITE_DBCONFIG_MAX = 1017 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2723:1: - SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = 1006 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2711:1: - SQLITE_DBCONFIG_RESET_DATABASE = 1009 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2714:1: - SQLITE_DBCONFIG_TRIGGER_EQP = 1008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2713:1: - SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1017 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2722:1: - SQLITE_DBCONFIG_WRITABLE_SCHEMA = 1011 // testdata/sqlite-amalgamation-3380500/sqlite3.c:2716:1: - SQLITE_DBSTATUS_CACHE_HIT = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8746:1: - SQLITE_DBSTATUS_CACHE_MISS = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8747:1: - SQLITE_DBSTATUS_CACHE_SPILL = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8751:1: - SQLITE_DBSTATUS_CACHE_USED = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8740:1: - SQLITE_DBSTATUS_CACHE_USED_SHARED = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8750:1: - SQLITE_DBSTATUS_CACHE_WRITE = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8748:1: - SQLITE_DBSTATUS_DEFERRED_FKS = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8749:1: - SQLITE_DBSTATUS_LOOKASIDE_HIT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8743:1: - SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8745:1: - SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8744:1: - SQLITE_DBSTATUS_LOOKASIDE_USED = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8739:1: - SQLITE_DBSTATUS_MAX = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8752:1: - SQLITE_DBSTATUS_SCHEMA_USED = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8741:1: - SQLITE_DBSTATUS_STMT_USED = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8742:1: - SQLITE_DEFAULT_AUTOVACUUM = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14948:3: - SQLITE_DEFAULT_CACHE_SIZE = -2000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13233:1: - SQLITE_DEFAULT_FILE_FORMAT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14071:1: - SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT = -1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14698:3: - SQLITE_DEFAULT_LOOKASIDE = 40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21826:1: - SQLITE_DEFAULT_MEMSTATUS = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13477:1: - SQLITE_DEFAULT_MMAP_SIZE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14416:1: - SQLITE_DEFAULT_PAGE_SIZE = 4096 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13286:1: - SQLITE_DEFAULT_PCACHE_INITSZ = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14120:1: - SQLITE_DEFAULT_RECURSIVE_TRIGGERS = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14079:1: - SQLITE_DEFAULT_SECTOR_SIZE = 4096 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16274:1: - SQLITE_DEFAULT_SORTERREF_SIZE = 0x7fffffff // testdata/sqlite-amalgamation-3380500/sqlite3.c:14127:1: - SQLITE_DEFAULT_SYNCHRONOUS = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16552:1: - SQLITE_DEFAULT_WAL_AUTOCHECKPOINT = 1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13241:1: - SQLITE_DEFAULT_WAL_SYNCHRONOUS = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16555:1: - SQLITE_DEFAULT_WORKER_THREADS = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14103:1: - SQLITE_DELETE = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3465:1: - SQLITE_DENY = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3434:1: - SQLITE_DEPRECATED = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:412:1: - SQLITE_DESERIALIZE_FREEONCLOSE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10677:1: - SQLITE_DESERIALIZE_READONLY = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10679:1: - SQLITE_DESERIALIZE_RESIZEABLE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10678:1: - SQLITE_DETACH = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3481:1: - SQLITE_DETERMINISTIC = 0x000000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5713:1: - SQLITE_DIRECTONLY = 0x000080000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5714:1: - SQLITE_DONE = 101 // testdata/sqlite-amalgamation-3380500/sqlite3.c:781:1: - SQLITE_DQS = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:171812:1: - SQLITE_DROP_INDEX = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3466:1: - SQLITE_DROP_TABLE = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3467:1: - SQLITE_DROP_TEMP_INDEX = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3468:1: - SQLITE_DROP_TEMP_TABLE = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3469:1: - SQLITE_DROP_TEMP_TRIGGER = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3470:1: - SQLITE_DROP_TEMP_VIEW = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3471:1: - SQLITE_DROP_TRIGGER = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3472:1: - SQLITE_DROP_VIEW = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3473:1: - SQLITE_DROP_VTABLE = 30 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3486:1: - SQLITE_Defensive = 0x10000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16977:1: - SQLITE_DeferFKs = 0x00080000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16968:1: - SQLITE_DistinctOpt = 0x00000010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17016:1: - SQLITE_DqsDDL = 0x20000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16978:1: - SQLITE_DqsDML = 0x40000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16979:1: - SQLITE_ECEL_DUP = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19882:1: - SQLITE_ECEL_FACTOR = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19883:1: - SQLITE_ECEL_OMITREF = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19885:1: - SQLITE_ECEL_REF = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19884:1: - SQLITE_EMPTY = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:767:1: + SQLITE3EXT_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:129513:1: + SQLITE3_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:340:1: + SQLITE3_TEXT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5187:1: + SQLITEINT_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:41:1: + SQLITE_ABORT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:755:1: + SQLITE_ABORT_ROLLBACK = 516 // testdata/sqlite-amalgamation-3390200/sqlite3.c:857:1: + SQLITE_ACCESS_EXISTS = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1792:1: + SQLITE_ACCESS_READ = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1794:1: + SQLITE_ACCESS_READWRITE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1793:1: + SQLITE_AFF_BLOB = 0x41 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17479:1: + SQLITE_AFF_INTEGER = 0x44 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17482:1: + SQLITE_AFF_MASK = 0x47 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17491:1: + SQLITE_AFF_NONE = 0x40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17478:1: + SQLITE_AFF_NUMERIC = 0x43 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17481:1: + SQLITE_AFF_REAL = 0x45 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17483:1: + SQLITE_AFF_TEXT = 0x42 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17480:1: + SQLITE_ALLOW_COVERING_INDEX_SCAN = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:21922:1: + SQLITE_ALTER_TABLE = 26 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3482:1: + SQLITE_AMALGAMATION = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:21:1: + SQLITE_ANALYZE = 28 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3484:1: + SQLITE_ANY = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5645:1: + SQLITE_API = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:381:1: + SQLITE_APICALL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:387:1: + SQLITE_ASCII = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14199:1: + SQLITE_ATOMIC_INTRINSICS = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13389:1: + SQLITE_ATTACH = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3480:1: + SQLITE_AUTH = 23 // testdata/sqlite-amalgamation-3390200/sqlite3.c:774:1: + SQLITE_AUTH_USER = 279 // testdata/sqlite-amalgamation-3390200/sqlite3.c:873:1: + SQLITE_AllOpts = 0xffffffff // testdata/sqlite-amalgamation-3390200/sqlite3.c:17090:1: + SQLITE_AutoIndex = 0x00008000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17015:1: + SQLITE_BIGENDIAN = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14364:1: + SQLITE_BIG_DBL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14079:1: + SQLITE_BLDF1_INDEXED = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148954:1: + SQLITE_BLDF1_UNIQUE = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148955:1: + SQLITE_BLDF2_2NDPASS = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148957:1: + SQLITE_BLOB = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5180:1: + SQLITE_BTREE_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14980:1: + SQLITE_BUSY = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:756:1: + SQLITE_BUSY_RECOVERY = 261 // testdata/sqlite-amalgamation-3390200/sqlite3.c:839:1: + SQLITE_BUSY_SNAPSHOT = 517 // testdata/sqlite-amalgamation-3390200/sqlite3.c:840:1: + SQLITE_BUSY_TIMEOUT = 773 // testdata/sqlite-amalgamation-3390200/sqlite3.c:841:1: + SQLITE_BYTEORDER = 1234 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14351:1: + SQLITE_BalancedMerge = 0x00200000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17086:1: + SQLITE_BloomFilter = 0x00080000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17084:1: + SQLITE_BloomPulldown = 0x00100000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17085:1: + SQLITE_CALLBACK = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:393:1: + SQLITE_CANTOPEN = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:765:1: + SQLITE_CANTOPEN_CONVPATH = 1038 // testdata/sqlite-amalgamation-3390200/sqlite3.c:845:1: + SQLITE_CANTOPEN_DIRTYWAL = 1294 // testdata/sqlite-amalgamation-3390200/sqlite3.c:846:1: + SQLITE_CANTOPEN_FULLPATH = 782 // testdata/sqlite-amalgamation-3390200/sqlite3.c:844:1: + SQLITE_CANTOPEN_ISDIR = 526 // testdata/sqlite-amalgamation-3390200/sqlite3.c:843:1: + SQLITE_CANTOPEN_NOTEMPDIR = 270 // testdata/sqlite-amalgamation-3390200/sqlite3.c:842:1: + SQLITE_CANTOPEN_SYMLINK = 1550 // testdata/sqlite-amalgamation-3390200/sqlite3.c:847:1: + SQLITE_CDECL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:384:1: + SQLITE_CHANGESETAPPLY_INVERT = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12090:1: + SQLITE_CHANGESETAPPLY_NOSAVEPOINT = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12089:1: + SQLITE_CHANGESETSTART_INVERT = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:11405:1: + SQLITE_CHANGESET_ABORT = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12186:1: + SQLITE_CHANGESET_CONFLICT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12149:1: + SQLITE_CHANGESET_CONSTRAINT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12150:1: + SQLITE_CHANGESET_DATA = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12147:1: + SQLITE_CHANGESET_FOREIGN_KEY = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12151:1: + SQLITE_CHANGESET_NOTFOUND = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12148:1: + SQLITE_CHANGESET_OMIT = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12184:1: + SQLITE_CHANGESET_REPLACE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12185:1: + SQLITE_CHECKPOINT_FULL = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:9715:1: + SQLITE_CHECKPOINT_PASSIVE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:9714:1: + SQLITE_CHECKPOINT_RESTART = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:9716:1: + SQLITE_CHECKPOINT_TRUNCATE = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:9717:1: + SQLITE_CONFIG_COVERING_INDEX_SCAN = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2413:1: + SQLITE_CONFIG_GETMALLOC = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2398:1: + SQLITE_CONFIG_GETMUTEX = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2404:1: + SQLITE_CONFIG_GETPCACHE = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2408:1: + SQLITE_CONFIG_GETPCACHE2 = 19 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2412:1: + SQLITE_CONFIG_HEAP = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2401:1: + SQLITE_CONFIG_LOG = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2409:1: + SQLITE_CONFIG_LOOKASIDE = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2406:1: + SQLITE_CONFIG_MALLOC = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2397:1: + SQLITE_CONFIG_MEMDB_MAXSIZE = 29 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2422:1: + SQLITE_CONFIG_MEMSTATUS = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2402:1: + SQLITE_CONFIG_MMAP_SIZE = 22 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2415:1: + SQLITE_CONFIG_MULTITHREAD = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2395:1: + SQLITE_CONFIG_MUTEX = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2403:1: + SQLITE_CONFIG_PAGECACHE = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2400:1: + SQLITE_CONFIG_PCACHE = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2407:1: + SQLITE_CONFIG_PCACHE2 = 18 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2411:1: + SQLITE_CONFIG_PCACHE_HDRSZ = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2417:1: + SQLITE_CONFIG_PMASZ = 25 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2418:1: + SQLITE_CONFIG_SCRATCH = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2399:1: + SQLITE_CONFIG_SERIALIZED = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2396:1: + SQLITE_CONFIG_SINGLETHREAD = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2394:1: + SQLITE_CONFIG_SMALL_MALLOC = 27 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2420:1: + SQLITE_CONFIG_SORTERREF_SIZE = 28 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2421:1: + SQLITE_CONFIG_SQLLOG = 21 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2414:1: + SQLITE_CONFIG_STMTJRNL_SPILL = 26 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2419:1: + SQLITE_CONFIG_URI = 17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2410:1: + SQLITE_CONFIG_WIN32_HEAPSIZE = 23 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2416:1: + SQLITE_CONSTRAINT = 19 // testdata/sqlite-amalgamation-3390200/sqlite3.c:770:1: + SQLITE_CONSTRAINT_CHECK = 275 // testdata/sqlite-amalgamation-3390200/sqlite3.c:858:1: + SQLITE_CONSTRAINT_COMMITHOOK = 531 // testdata/sqlite-amalgamation-3390200/sqlite3.c:859:1: + SQLITE_CONSTRAINT_DATATYPE = 3091 // testdata/sqlite-amalgamation-3390200/sqlite3.c:869:1: + SQLITE_CONSTRAINT_FOREIGNKEY = 787 // testdata/sqlite-amalgamation-3390200/sqlite3.c:860:1: + SQLITE_CONSTRAINT_FUNCTION = 1043 // testdata/sqlite-amalgamation-3390200/sqlite3.c:861:1: + SQLITE_CONSTRAINT_NOTNULL = 1299 // testdata/sqlite-amalgamation-3390200/sqlite3.c:862:1: + SQLITE_CONSTRAINT_PINNED = 2835 // testdata/sqlite-amalgamation-3390200/sqlite3.c:868:1: + SQLITE_CONSTRAINT_PRIMARYKEY = 1555 // testdata/sqlite-amalgamation-3390200/sqlite3.c:863:1: + SQLITE_CONSTRAINT_ROWID = 2579 // testdata/sqlite-amalgamation-3390200/sqlite3.c:867:1: + SQLITE_CONSTRAINT_TRIGGER = 1811 // testdata/sqlite-amalgamation-3390200/sqlite3.c:864:1: + SQLITE_CONSTRAINT_UNIQUE = 2067 // testdata/sqlite-amalgamation-3390200/sqlite3.c:865:1: + SQLITE_CONSTRAINT_VTAB = 2323 // testdata/sqlite-amalgamation-3390200/sqlite3.c:866:1: + SQLITE_COPY = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3489:1: + SQLITE_CORE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20:1: + SQLITE_CORRUPT = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:762:1: + SQLITE_CORRUPT_INDEX = 779 // testdata/sqlite-amalgamation-3390200/sqlite3.c:850:1: + SQLITE_CORRUPT_SEQUENCE = 523 // testdata/sqlite-amalgamation-3390200/sqlite3.c:849:1: + SQLITE_CORRUPT_VTAB = 267 // testdata/sqlite-amalgamation-3390200/sqlite3.c:848:1: + SQLITE_CREATE_INDEX = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3457:1: + SQLITE_CREATE_TABLE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3458:1: + SQLITE_CREATE_TEMP_INDEX = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3459:1: + SQLITE_CREATE_TEMP_TABLE = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3460:1: + SQLITE_CREATE_TEMP_TRIGGER = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3461:1: + SQLITE_CREATE_TEMP_VIEW = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3462:1: + SQLITE_CREATE_TRIGGER = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3463:1: + SQLITE_CREATE_VIEW = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3464:1: + SQLITE_CREATE_VTABLE = 29 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3485:1: + SQLITE_CacheSpill = 0x00000020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17003:1: + SQLITE_CellSizeCk = 0x00200000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17021:1: + SQLITE_CkptFullFSync = 0x00000010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17002:1: + SQLITE_CountOfView = 0x00000200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17072:1: + SQLITE_CoverIdxScan = 0x00000020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17068:1: + SQLITE_CursorHints = 0x00000400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17073:1: + SQLITE_DBCONFIG_DEFENSIVE = 1010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2715:1: + SQLITE_DBCONFIG_DQS_DDL = 1014 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2719:1: + SQLITE_DBCONFIG_DQS_DML = 1013 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2718:1: + SQLITE_DBCONFIG_ENABLE_FKEY = 1002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2707:1: + SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = 1004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2709:1: + SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION = 1005 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2710:1: + SQLITE_DBCONFIG_ENABLE_QPSG = 1007 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2712:1: + SQLITE_DBCONFIG_ENABLE_TRIGGER = 1003 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2708:1: + SQLITE_DBCONFIG_ENABLE_VIEW = 1015 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2720:1: + SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = 1012 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2717:1: + SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = 1016 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2721:1: + SQLITE_DBCONFIG_LOOKASIDE = 1001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2706:1: + SQLITE_DBCONFIG_MAINDBNAME = 1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2705:1: + SQLITE_DBCONFIG_MAX = 1017 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2723:1: + SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = 1006 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2711:1: + SQLITE_DBCONFIG_RESET_DATABASE = 1009 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2714:1: + SQLITE_DBCONFIG_TRIGGER_EQP = 1008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2713:1: + SQLITE_DBCONFIG_TRUSTED_SCHEMA = 1017 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2722:1: + SQLITE_DBCONFIG_WRITABLE_SCHEMA = 1011 // testdata/sqlite-amalgamation-3390200/sqlite3.c:2716:1: + SQLITE_DBSTATUS_CACHE_HIT = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8769:1: + SQLITE_DBSTATUS_CACHE_MISS = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8770:1: + SQLITE_DBSTATUS_CACHE_SPILL = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8774:1: + SQLITE_DBSTATUS_CACHE_USED = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8763:1: + SQLITE_DBSTATUS_CACHE_USED_SHARED = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8773:1: + SQLITE_DBSTATUS_CACHE_WRITE = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8771:1: + SQLITE_DBSTATUS_DEFERRED_FKS = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8772:1: + SQLITE_DBSTATUS_LOOKASIDE_HIT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8766:1: + SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8768:1: + SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8767:1: + SQLITE_DBSTATUS_LOOKASIDE_USED = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8762:1: + SQLITE_DBSTATUS_MAX = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8775:1: + SQLITE_DBSTATUS_SCHEMA_USED = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8764:1: + SQLITE_DBSTATUS_STMT_USED = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8765:1: + SQLITE_DEFAULT_AUTOVACUUM = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14992:3: + SQLITE_DEFAULT_CACHE_SIZE = -2000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13263:1: + SQLITE_DEFAULT_FILE_FORMAT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14101:1: + SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT = -1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14741:3: + SQLITE_DEFAULT_LOOKASIDE = 40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:21968:1: + SQLITE_DEFAULT_MEMSTATUS = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13507:1: + SQLITE_DEFAULT_MMAP_SIZE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14457:1: + SQLITE_DEFAULT_PAGE_SIZE = 4096 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13316:1: + SQLITE_DEFAULT_PCACHE_INITSZ = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14150:1: + SQLITE_DEFAULT_RECURSIVE_TRIGGERS = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14109:1: + SQLITE_DEFAULT_SECTOR_SIZE = 4096 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16325:1: + SQLITE_DEFAULT_SORTERREF_SIZE = 0x7fffffff // testdata/sqlite-amalgamation-3390200/sqlite3.c:14157:1: + SQLITE_DEFAULT_SYNCHRONOUS = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16603:1: + SQLITE_DEFAULT_WAL_AUTOCHECKPOINT = 1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13271:1: + SQLITE_DEFAULT_WAL_SYNCHRONOUS = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16606:1: + SQLITE_DEFAULT_WORKER_THREADS = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14133:1: + SQLITE_DELETE = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3465:1: + SQLITE_DENY = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3434:1: + SQLITE_DEPRECATED = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:412:1: + SQLITE_DESERIALIZE_FREEONCLOSE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10707:1: + SQLITE_DESERIALIZE_READONLY = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10709:1: + SQLITE_DESERIALIZE_RESIZEABLE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10708:1: + SQLITE_DETACH = 25 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3481:1: + SQLITE_DETERMINISTIC = 0x000000800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5713:1: + SQLITE_DIRECTONLY = 0x000080000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5714:1: + SQLITE_DONE = 101 // testdata/sqlite-amalgamation-3390200/sqlite3.c:781:1: + SQLITE_DQS = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:173887:1: + SQLITE_DROP_INDEX = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3466:1: + SQLITE_DROP_TABLE = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3467:1: + SQLITE_DROP_TEMP_INDEX = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3468:1: + SQLITE_DROP_TEMP_TABLE = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3469:1: + SQLITE_DROP_TEMP_TRIGGER = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3470:1: + SQLITE_DROP_TEMP_VIEW = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3471:1: + SQLITE_DROP_TRIGGER = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3472:1: + SQLITE_DROP_VIEW = 17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3473:1: + SQLITE_DROP_VTABLE = 30 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3486:1: + SQLITE_Defensive = 0x10000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17028:1: + SQLITE_DeferFKs = 0x00080000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17019:1: + SQLITE_DistinctOpt = 0x00000010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17067:1: + SQLITE_DqsDDL = 0x20000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17029:1: + SQLITE_DqsDML = 0x40000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17030:1: + SQLITE_ECEL_DUP = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20023:1: + SQLITE_ECEL_FACTOR = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20024:1: + SQLITE_ECEL_OMITREF = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20026:1: + SQLITE_ECEL_REF = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20025:1: + SQLITE_EMPTY = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:767:1: SQLITE_ENABLE_COLUMN_METADATA = 1 // <defines>:6:1: SQLITE_ENABLE_FTS5 = 1 // <defines>:7:1: SQLITE_ENABLE_GEOPOLY = 1 // <defines>:8:1: - SQLITE_ENABLE_LOCKING_STYLE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129839:1: + SQLITE_ENABLE_LOCKING_STYLE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:131095:1: SQLITE_ENABLE_MATH_FUNCTIONS = 1 // <defines>:9:1: SQLITE_ENABLE_MEMORY_MANAGEMENT = 1 // <defines>:10:1: SQLITE_ENABLE_OFFSET_SQL_FUNC = 1 // <defines>:11:1: @@ -14687,540 +14693,542 @@ const ( SQLITE_ENABLE_SNAPSHOT = 1 // <defines>:16:1: SQLITE_ENABLE_STAT4 = 1 // <defines>:17:1: SQLITE_ENABLE_UNLOCK_NOTIFY = 1 // <defines>:18:1: - SQLITE_ERROR = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:752:1: - SQLITE_ERROR_MISSING_COLLSEQ = 257 // testdata/sqlite-amalgamation-3380500/sqlite3.c:801:1: - SQLITE_ERROR_RETRY = 513 // testdata/sqlite-amalgamation-3380500/sqlite3.c:802:1: - SQLITE_ERROR_SNAPSHOT = 769 // testdata/sqlite-amalgamation-3380500/sqlite3.c:803:1: - SQLITE_EXPERIMENTAL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:413:1: - SQLITE_EXTENSION_INIT1 = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:128951:1: - SQLITE_EXTENSION_INIT3 = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:128953:1: - SQLITE_EnableQPSG = 0x00800000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16972:1: - SQLITE_EnableTrigger = 0x00040000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16967:1: - SQLITE_EnableView = 0x80000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16980:1: - SQLITE_FAIL = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10099:1: - SQLITE_FAULTINJECTOR_COUNT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20464:1: - SQLITE_FAULTINJECTOR_MALLOC = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20463:1: - SQLITE_FCNTL_BEGIN_ATOMIC_WRITE = 31 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1522:1: - SQLITE_FCNTL_BUSYHANDLER = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1507:1: - SQLITE_FCNTL_CHUNK_SIZE = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1498:1: - SQLITE_FCNTL_CKPT_DONE = 37 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1528:1: - SQLITE_FCNTL_CKPT_START = 39 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1530:1: - SQLITE_FCNTL_CKSM_FILE = 41 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1532:1: - SQLITE_FCNTL_COMMIT_ATOMIC_WRITE = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1523:1: - SQLITE_FCNTL_COMMIT_PHASETWO = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1513:1: - SQLITE_FCNTL_DATA_VERSION = 35 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1526:1: - SQLITE_FCNTL_DB_UNCHANGED = 0xca093fa0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16408:1: - SQLITE_FCNTL_EXTERNAL_READER = 40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1531:1: - SQLITE_FCNTL_FILE_POINTER = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1499:1: - SQLITE_FCNTL_GET_LOCKPROXYFILE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1494:1: - SQLITE_FCNTL_HAS_MOVED = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1511:1: - SQLITE_FCNTL_JOURNAL_POINTER = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1519:1: - SQLITE_FCNTL_LAST_ERRNO = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1496:1: - SQLITE_FCNTL_LOCKSTATE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1493:1: - SQLITE_FCNTL_LOCK_TIMEOUT = 34 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1525:1: - SQLITE_FCNTL_MMAP_SIZE = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1509:1: - SQLITE_FCNTL_OVERWRITE = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1503:1: - SQLITE_FCNTL_PDB = 30 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1521:1: - SQLITE_FCNTL_PERSIST_WAL = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1502:1: - SQLITE_FCNTL_POWERSAFE_OVERWRITE = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1505:1: - SQLITE_FCNTL_PRAGMA = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1506:1: - SQLITE_FCNTL_RBU = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1517:1: - SQLITE_FCNTL_RBUCNT = 5149216 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203972:1: - SQLITE_FCNTL_RESERVE_BYTES = 38 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1529:1: - SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE = 33 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1524:1: - SQLITE_FCNTL_SET_LOCKPROXYFILE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1495:1: - SQLITE_FCNTL_SIZE_HINT = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1497:1: - SQLITE_FCNTL_SIZE_LIMIT = 36 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1527:1: - SQLITE_FCNTL_SYNC = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1512:1: - SQLITE_FCNTL_SYNC_OMITTED = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1500:1: - SQLITE_FCNTL_TEMPFILENAME = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1508:1: - SQLITE_FCNTL_TRACE = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1510:1: - SQLITE_FCNTL_VFSNAME = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1504:1: - SQLITE_FCNTL_VFS_POINTER = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1518:1: - SQLITE_FCNTL_WAL_BLOCK = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1515:1: - SQLITE_FCNTL_WIN32_AV_RETRY = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1501:1: - SQLITE_FCNTL_WIN32_GET_HANDLE = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1520:1: - SQLITE_FCNTL_WIN32_SET_HANDLE = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1514:1: - SQLITE_FCNTL_ZIPVFS = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1516:1: - SQLITE_FILE_HEADER = "SQLite format 3" // testdata/sqlite-amalgamation-3380500/sqlite3.c:65379:1: - SQLITE_FLOAT = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5179:1: - SQLITE_FORMAT = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:775:1: - SQLITE_FP_PRECISION_LIMIT = 100000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29635:1: - SQLITE_FRAME_MAGIC = 0x879fb71e // testdata/sqlite-amalgamation-3380500/sqlite3.c:22219:1: - SQLITE_FULL = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:764:1: - SQLITE_FUNCTION = 31 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3487:1: - SQLITE_FUNC_ANYORDER = 0x08000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17146:1: - SQLITE_FUNC_BUILTIN = 0x00800000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17145:1: - SQLITE_FUNC_CASE = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17125:1: - SQLITE_FUNC_CONSTANT = 0x0800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17133:1: - SQLITE_FUNC_COUNT = 0x0100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17130:1: - SQLITE_FUNC_DIRECT = 0x00080000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17141:1: - SQLITE_FUNC_ENCMASK = 0x0003 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17123:1: - SQLITE_FUNC_EPHEM = 0x0010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17126:1: - SQLITE_FUNC_HASH_SZ = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16719:1: - SQLITE_FUNC_INLINE = 0x00400000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17144:1: - SQLITE_FUNC_INTERNAL = 0x00040000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17140:1: - SQLITE_FUNC_LENGTH = 0x0040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17128:1: - SQLITE_FUNC_LIKE = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17124:1: - SQLITE_FUNC_MINMAX = 0x1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17134:1: - SQLITE_FUNC_NEEDCOLL = 0x0020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17127:1: - SQLITE_FUNC_OFFSET = 0x8000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17138:1: - SQLITE_FUNC_SLOCHNG = 0x2000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17135:1: - SQLITE_FUNC_SUBTYPE = 0x00100000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17142:1: - SQLITE_FUNC_TEST = 0x4000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17137:1: - SQLITE_FUNC_TYPEOF = 0x0080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17129:1: - SQLITE_FUNC_UNLIKELY = 0x0400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17132:1: - SQLITE_FUNC_UNSAFE = 0x00200000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17143:1: - SQLITE_FUNC_WINDOW = 0x00010000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17139:1: - SQLITE_FactorOutConst = 0x00000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17015:1: - SQLITE_ForeignKeys = 0x00004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16963:1: - SQLITE_Fts3Tokenizer = 0x00400000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16971:1: - SQLITE_FullColNames = 0x00000004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16949:1: - SQLITE_FullFSync = 0x00000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16950:1: - SQLITE_GET_LOCKPROXYFILE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1535:1: - SQLITE_GroupByOrder = 0x00000004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17014:1: - SQLITE_HASH_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13741:1: - SQLITE_HAVE_C99_MATH_FUNCS = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:234:1: - SQLITE_IDXTYPE_APPDEF = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17871:1: - SQLITE_IDXTYPE_IPK = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17874:1: - SQLITE_IDXTYPE_PRIMARYKEY = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17873:1: - SQLITE_IDXTYPE_UNIQUE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17872:1: - SQLITE_IGNORE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3435:1: - SQLITE_INDEX_CONSTRAINT_EQ = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7483:1: - SQLITE_INDEX_CONSTRAINT_FUNCTION = 150 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7499:1: - SQLITE_INDEX_CONSTRAINT_GE = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7487:1: - SQLITE_INDEX_CONSTRAINT_GLOB = 66 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7490:1: - SQLITE_INDEX_CONSTRAINT_GT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7484:1: - SQLITE_INDEX_CONSTRAINT_IS = 72 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7496:1: - SQLITE_INDEX_CONSTRAINT_ISNOT = 69 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7493:1: - SQLITE_INDEX_CONSTRAINT_ISNOTNULL = 70 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7494:1: - SQLITE_INDEX_CONSTRAINT_ISNULL = 71 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7495:1: - SQLITE_INDEX_CONSTRAINT_LE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7485:1: - SQLITE_INDEX_CONSTRAINT_LIKE = 65 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7489:1: - SQLITE_INDEX_CONSTRAINT_LIMIT = 73 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7497:1: - SQLITE_INDEX_CONSTRAINT_LT = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7486:1: - SQLITE_INDEX_CONSTRAINT_MATCH = 64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7488:1: - SQLITE_INDEX_CONSTRAINT_NE = 68 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7492:1: - SQLITE_INDEX_CONSTRAINT_OFFSET = 74 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7498:1: - SQLITE_INDEX_CONSTRAINT_REGEXP = 67 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7491:1: - SQLITE_INDEX_SCAN_UNIQUE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:7443:1: - SQLITE_INNOCUOUS = 0x000200000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5716:1: - SQLITE_INSERT = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3474:1: - SQLITE_INTEGER = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5178:1: - SQLITE_INTEGRITY_CHECK_ERROR_MAX = 100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:132099:1: - SQLITE_INTERNAL = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:753:1: - SQLITE_INTERRUPT = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:760:1: - SQLITE_IOCAP_ATOMIC = 0x00000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:958:1: - SQLITE_IOCAP_ATOMIC16K = 0x00000040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:964:1: - SQLITE_IOCAP_ATOMIC1K = 0x00000004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:960:1: - SQLITE_IOCAP_ATOMIC2K = 0x00000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:961:1: - SQLITE_IOCAP_ATOMIC32K = 0x00000080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:965:1: - SQLITE_IOCAP_ATOMIC4K = 0x00000010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:962:1: - SQLITE_IOCAP_ATOMIC512 = 0x00000002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:959:1: - SQLITE_IOCAP_ATOMIC64K = 0x00000100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:966:1: - SQLITE_IOCAP_ATOMIC8K = 0x00000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:963:1: - SQLITE_IOCAP_BATCH_ATOMIC = 0x00004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:972:1: - SQLITE_IOCAP_IMMUTABLE = 0x00002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:971:1: - SQLITE_IOCAP_POWERSAFE_OVERWRITE = 0x00001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:970:1: - SQLITE_IOCAP_SAFE_APPEND = 0x00000200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:967:1: - SQLITE_IOCAP_SEQUENTIAL = 0x00000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:968:1: - SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN = 0x00000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:969:1: - SQLITE_IOERR = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:761:1: - SQLITE_IOERR_ACCESS = 3338 // testdata/sqlite-amalgamation-3380500/sqlite3.c:816:1: - SQLITE_IOERR_AUTH = 7178 // testdata/sqlite-amalgamation-3380500/sqlite3.c:831:1: - SQLITE_IOERR_BEGIN_ATOMIC = 7434 // testdata/sqlite-amalgamation-3380500/sqlite3.c:832:1: - SQLITE_IOERR_BLOCKED = 2826 // testdata/sqlite-amalgamation-3380500/sqlite3.c:814:1: - SQLITE_IOERR_CHECKRESERVEDLOCK = 3594 // testdata/sqlite-amalgamation-3380500/sqlite3.c:817:1: - SQLITE_IOERR_CLOSE = 4106 // testdata/sqlite-amalgamation-3380500/sqlite3.c:819:1: - SQLITE_IOERR_COMMIT_ATOMIC = 7690 // testdata/sqlite-amalgamation-3380500/sqlite3.c:833:1: - SQLITE_IOERR_CONVPATH = 6666 // testdata/sqlite-amalgamation-3380500/sqlite3.c:829:1: - SQLITE_IOERR_CORRUPTFS = 8458 // testdata/sqlite-amalgamation-3380500/sqlite3.c:836:1: - SQLITE_IOERR_DATA = 8202 // testdata/sqlite-amalgamation-3380500/sqlite3.c:835:1: - SQLITE_IOERR_DELETE = 2570 // testdata/sqlite-amalgamation-3380500/sqlite3.c:813:1: - SQLITE_IOERR_DELETE_NOENT = 5898 // testdata/sqlite-amalgamation-3380500/sqlite3.c:826:1: - SQLITE_IOERR_DIR_CLOSE = 4362 // testdata/sqlite-amalgamation-3380500/sqlite3.c:820:1: - SQLITE_IOERR_DIR_FSYNC = 1290 // testdata/sqlite-amalgamation-3380500/sqlite3.c:808:1: - SQLITE_IOERR_FSTAT = 1802 // testdata/sqlite-amalgamation-3380500/sqlite3.c:810:1: - SQLITE_IOERR_FSYNC = 1034 // testdata/sqlite-amalgamation-3380500/sqlite3.c:807:1: - SQLITE_IOERR_GETTEMPPATH = 6410 // testdata/sqlite-amalgamation-3380500/sqlite3.c:828:1: - SQLITE_IOERR_LOCK = 3850 // testdata/sqlite-amalgamation-3380500/sqlite3.c:818:1: - SQLITE_IOERR_MMAP = 6154 // testdata/sqlite-amalgamation-3380500/sqlite3.c:827:1: - SQLITE_IOERR_NOMEM = 3082 // testdata/sqlite-amalgamation-3380500/sqlite3.c:815:1: - SQLITE_IOERR_NOMEM_BKPT = 3082 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19482:1: - SQLITE_IOERR_RDLOCK = 2314 // testdata/sqlite-amalgamation-3380500/sqlite3.c:812:1: - SQLITE_IOERR_READ = 266 // testdata/sqlite-amalgamation-3380500/sqlite3.c:804:1: - SQLITE_IOERR_ROLLBACK_ATOMIC = 7946 // testdata/sqlite-amalgamation-3380500/sqlite3.c:834:1: - SQLITE_IOERR_SEEK = 5642 // testdata/sqlite-amalgamation-3380500/sqlite3.c:825:1: - SQLITE_IOERR_SHMLOCK = 5130 // testdata/sqlite-amalgamation-3380500/sqlite3.c:823:1: - SQLITE_IOERR_SHMMAP = 5386 // testdata/sqlite-amalgamation-3380500/sqlite3.c:824:1: - SQLITE_IOERR_SHMOPEN = 4618 // testdata/sqlite-amalgamation-3380500/sqlite3.c:821:1: - SQLITE_IOERR_SHMSIZE = 4874 // testdata/sqlite-amalgamation-3380500/sqlite3.c:822:1: - SQLITE_IOERR_SHORT_READ = 522 // testdata/sqlite-amalgamation-3380500/sqlite3.c:805:1: - SQLITE_IOERR_TRUNCATE = 1546 // testdata/sqlite-amalgamation-3380500/sqlite3.c:809:1: - SQLITE_IOERR_UNLOCK = 2058 // testdata/sqlite-amalgamation-3380500/sqlite3.c:811:1: - SQLITE_IOERR_VNODE = 6922 // testdata/sqlite-amalgamation-3380500/sqlite3.c:830:1: - SQLITE_IOERR_WRITE = 778 // testdata/sqlite-amalgamation-3380500/sqlite3.c:806:1: - SQLITE_IgnoreChecks = 0x00000200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16958:1: - SQLITE_JUMPIFNULL = 0x10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17446:1: - SQLITE_LAST_ERRNO = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1537:1: + SQLITE_ERROR = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:752:1: + SQLITE_ERROR_MISSING_COLLSEQ = 257 // testdata/sqlite-amalgamation-3390200/sqlite3.c:801:1: + SQLITE_ERROR_RETRY = 513 // testdata/sqlite-amalgamation-3390200/sqlite3.c:802:1: + SQLITE_ERROR_SNAPSHOT = 769 // testdata/sqlite-amalgamation-3390200/sqlite3.c:803:1: + SQLITE_EXPERIMENTAL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:413:1: + SQLITE_EXTENSION_INIT1 = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130190:1: + SQLITE_EXTENSION_INIT3 = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130192:1: + SQLITE_EnableQPSG = 0x00800000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17023:1: + SQLITE_EnableTrigger = 0x00040000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17018:1: + SQLITE_EnableView = 0x80000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17031:1: + SQLITE_FAIL = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10129:1: + SQLITE_FAULTINJECTOR_COUNT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20606:1: + SQLITE_FAULTINJECTOR_MALLOC = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20605:1: + SQLITE_FCNTL_BEGIN_ATOMIC_WRITE = 31 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1522:1: + SQLITE_FCNTL_BUSYHANDLER = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1507:1: + SQLITE_FCNTL_CHUNK_SIZE = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1498:1: + SQLITE_FCNTL_CKPT_DONE = 37 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1528:1: + SQLITE_FCNTL_CKPT_START = 39 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1530:1: + SQLITE_FCNTL_CKSM_FILE = 41 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1532:1: + SQLITE_FCNTL_COMMIT_ATOMIC_WRITE = 32 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1523:1: + SQLITE_FCNTL_COMMIT_PHASETWO = 22 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1513:1: + SQLITE_FCNTL_DATA_VERSION = 35 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1526:1: + SQLITE_FCNTL_DB_UNCHANGED = 0xca093fa0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16459:1: + SQLITE_FCNTL_EXTERNAL_READER = 40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1531:1: + SQLITE_FCNTL_FILE_POINTER = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1499:1: + SQLITE_FCNTL_GET_LOCKPROXYFILE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1494:1: + SQLITE_FCNTL_HAS_MOVED = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1511:1: + SQLITE_FCNTL_JOURNAL_POINTER = 28 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1519:1: + SQLITE_FCNTL_LAST_ERRNO = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1496:1: + SQLITE_FCNTL_LOCKSTATE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1493:1: + SQLITE_FCNTL_LOCK_TIMEOUT = 34 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1525:1: + SQLITE_FCNTL_MMAP_SIZE = 18 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1509:1: + SQLITE_FCNTL_OVERWRITE = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1503:1: + SQLITE_FCNTL_PDB = 30 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1521:1: + SQLITE_FCNTL_PERSIST_WAL = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1502:1: + SQLITE_FCNTL_POWERSAFE_OVERWRITE = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1505:1: + SQLITE_FCNTL_PRAGMA = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1506:1: + SQLITE_FCNTL_RBU = 26 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1517:1: + SQLITE_FCNTL_RBUCNT = 5149216 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206094:1: + SQLITE_FCNTL_RESERVE_BYTES = 38 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1529:1: + SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE = 33 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1524:1: + SQLITE_FCNTL_SET_LOCKPROXYFILE = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1495:1: + SQLITE_FCNTL_SIZE_HINT = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1497:1: + SQLITE_FCNTL_SIZE_LIMIT = 36 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1527:1: + SQLITE_FCNTL_SYNC = 21 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1512:1: + SQLITE_FCNTL_SYNC_OMITTED = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1500:1: + SQLITE_FCNTL_TEMPFILENAME = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1508:1: + SQLITE_FCNTL_TRACE = 19 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1510:1: + SQLITE_FCNTL_VFSNAME = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1504:1: + SQLITE_FCNTL_VFS_POINTER = 27 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1518:1: + SQLITE_FCNTL_WAL_BLOCK = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1515:1: + SQLITE_FCNTL_WIN32_AV_RETRY = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1501:1: + SQLITE_FCNTL_WIN32_GET_HANDLE = 29 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1520:1: + SQLITE_FCNTL_WIN32_SET_HANDLE = 23 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1514:1: + SQLITE_FCNTL_ZIPVFS = 25 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1516:1: + SQLITE_FILE_HEADER = "SQLite format 3" // testdata/sqlite-amalgamation-3390200/sqlite3.c:66020:1: + SQLITE_FLOAT = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5179:1: + SQLITE_FORMAT = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:775:1: + SQLITE_FP_PRECISION_LIMIT = 100000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29834:1: + SQLITE_FRAME_MAGIC = 0x879fb71e // testdata/sqlite-amalgamation-3390200/sqlite3.c:22369:1: + SQLITE_FULL = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:764:1: + SQLITE_FUNCTION = 31 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3487:1: + SQLITE_FUNC_ANYORDER = 0x08000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17200:1: + SQLITE_FUNC_BUILTIN = 0x00800000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17199:1: + SQLITE_FUNC_CASE = 0x0008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17179:1: + SQLITE_FUNC_CONSTANT = 0x0800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17187:1: + SQLITE_FUNC_COUNT = 0x0100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17184:1: + SQLITE_FUNC_DIRECT = 0x00080000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17195:1: + SQLITE_FUNC_ENCMASK = 0x0003 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17177:1: + SQLITE_FUNC_EPHEM = 0x0010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17180:1: + SQLITE_FUNC_HASH_SZ = 23 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16770:1: + SQLITE_FUNC_INLINE = 0x00400000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17198:1: + SQLITE_FUNC_INTERNAL = 0x00040000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17194:1: + SQLITE_FUNC_LENGTH = 0x0040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17182:1: + SQLITE_FUNC_LIKE = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17178:1: + SQLITE_FUNC_MINMAX = 0x1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17188:1: + SQLITE_FUNC_NEEDCOLL = 0x0020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17181:1: + SQLITE_FUNC_SLOCHNG = 0x2000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17189:1: + SQLITE_FUNC_SUBTYPE = 0x00100000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17196:1: + SQLITE_FUNC_TEST = 0x4000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17191:1: + SQLITE_FUNC_TYPEOF = 0x0080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17183:1: + SQLITE_FUNC_UNLIKELY = 0x0400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17186:1: + SQLITE_FUNC_UNSAFE = 0x00200000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17197:1: + SQLITE_FUNC_WINDOW = 0x00010000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17193:1: + SQLITE_FactorOutConst = 0x00000008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17066:1: + SQLITE_FlttnUnionAll = 0x00800000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17088:1: + SQLITE_ForeignKeys = 0x00004000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17014:1: + SQLITE_Fts3Tokenizer = 0x00400000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17022:1: + SQLITE_FullColNames = 0x00000004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17000:1: + SQLITE_FullFSync = 0x00000008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17001:1: + SQLITE_GET_LOCKPROXYFILE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1535:1: + SQLITE_GroupByOrder = 0x00000004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17065:1: + SQLITE_HASH_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13771:1: + SQLITE_HAVE_C99_MATH_FUNCS = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:234:1: + SQLITE_IDXTYPE_APPDEF = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17932:1: + SQLITE_IDXTYPE_IPK = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17935:1: + SQLITE_IDXTYPE_PRIMARYKEY = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17934:1: + SQLITE_IDXTYPE_UNIQUE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17933:1: + SQLITE_IGNORE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3435:1: + SQLITE_INDEX_CONSTRAINT_EQ = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7506:1: + SQLITE_INDEX_CONSTRAINT_FUNCTION = 150 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7522:1: + SQLITE_INDEX_CONSTRAINT_GE = 32 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7510:1: + SQLITE_INDEX_CONSTRAINT_GLOB = 66 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7513:1: + SQLITE_INDEX_CONSTRAINT_GT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7507:1: + SQLITE_INDEX_CONSTRAINT_IS = 72 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7519:1: + SQLITE_INDEX_CONSTRAINT_ISNOT = 69 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7516:1: + SQLITE_INDEX_CONSTRAINT_ISNOTNULL = 70 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7517:1: + SQLITE_INDEX_CONSTRAINT_ISNULL = 71 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7518:1: + SQLITE_INDEX_CONSTRAINT_LE = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7508:1: + SQLITE_INDEX_CONSTRAINT_LIKE = 65 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7512:1: + SQLITE_INDEX_CONSTRAINT_LIMIT = 73 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7520:1: + SQLITE_INDEX_CONSTRAINT_LT = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7509:1: + SQLITE_INDEX_CONSTRAINT_MATCH = 64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7511:1: + SQLITE_INDEX_CONSTRAINT_NE = 68 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7515:1: + SQLITE_INDEX_CONSTRAINT_OFFSET = 74 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7521:1: + SQLITE_INDEX_CONSTRAINT_REGEXP = 67 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7514:1: + SQLITE_INDEX_SCAN_UNIQUE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:7466:1: + SQLITE_INNOCUOUS = 0x000200000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5716:1: + SQLITE_INSERT = 18 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3474:1: + SQLITE_INTEGER = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5178:1: + SQLITE_INTEGRITY_CHECK_ERROR_MAX = 100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:133354:1: + SQLITE_INTERNAL = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:753:1: + SQLITE_INTERRUPT = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:760:1: + SQLITE_IOCAP_ATOMIC = 0x00000001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:958:1: + SQLITE_IOCAP_ATOMIC16K = 0x00000040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:964:1: + SQLITE_IOCAP_ATOMIC1K = 0x00000004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:960:1: + SQLITE_IOCAP_ATOMIC2K = 0x00000008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:961:1: + SQLITE_IOCAP_ATOMIC32K = 0x00000080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:965:1: + SQLITE_IOCAP_ATOMIC4K = 0x00000010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:962:1: + SQLITE_IOCAP_ATOMIC512 = 0x00000002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:959:1: + SQLITE_IOCAP_ATOMIC64K = 0x00000100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:966:1: + SQLITE_IOCAP_ATOMIC8K = 0x00000020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:963:1: + SQLITE_IOCAP_BATCH_ATOMIC = 0x00004000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:972:1: + SQLITE_IOCAP_IMMUTABLE = 0x00002000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:971:1: + SQLITE_IOCAP_POWERSAFE_OVERWRITE = 0x00001000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:970:1: + SQLITE_IOCAP_SAFE_APPEND = 0x00000200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:967:1: + SQLITE_IOCAP_SEQUENTIAL = 0x00000400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:968:1: + SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN = 0x00000800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:969:1: + SQLITE_IOERR = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:761:1: + SQLITE_IOERR_ACCESS = 3338 // testdata/sqlite-amalgamation-3390200/sqlite3.c:816:1: + SQLITE_IOERR_AUTH = 7178 // testdata/sqlite-amalgamation-3390200/sqlite3.c:831:1: + SQLITE_IOERR_BEGIN_ATOMIC = 7434 // testdata/sqlite-amalgamation-3390200/sqlite3.c:832:1: + SQLITE_IOERR_BLOCKED = 2826 // testdata/sqlite-amalgamation-3390200/sqlite3.c:814:1: + SQLITE_IOERR_CHECKRESERVEDLOCK = 3594 // testdata/sqlite-amalgamation-3390200/sqlite3.c:817:1: + SQLITE_IOERR_CLOSE = 4106 // testdata/sqlite-amalgamation-3390200/sqlite3.c:819:1: + SQLITE_IOERR_COMMIT_ATOMIC = 7690 // testdata/sqlite-amalgamation-3390200/sqlite3.c:833:1: + SQLITE_IOERR_CONVPATH = 6666 // testdata/sqlite-amalgamation-3390200/sqlite3.c:829:1: + SQLITE_IOERR_CORRUPTFS = 8458 // testdata/sqlite-amalgamation-3390200/sqlite3.c:836:1: + SQLITE_IOERR_DATA = 8202 // testdata/sqlite-amalgamation-3390200/sqlite3.c:835:1: + SQLITE_IOERR_DELETE = 2570 // testdata/sqlite-amalgamation-3390200/sqlite3.c:813:1: + SQLITE_IOERR_DELETE_NOENT = 5898 // testdata/sqlite-amalgamation-3390200/sqlite3.c:826:1: + SQLITE_IOERR_DIR_CLOSE = 4362 // testdata/sqlite-amalgamation-3390200/sqlite3.c:820:1: + SQLITE_IOERR_DIR_FSYNC = 1290 // testdata/sqlite-amalgamation-3390200/sqlite3.c:808:1: + SQLITE_IOERR_FSTAT = 1802 // testdata/sqlite-amalgamation-3390200/sqlite3.c:810:1: + SQLITE_IOERR_FSYNC = 1034 // testdata/sqlite-amalgamation-3390200/sqlite3.c:807:1: + SQLITE_IOERR_GETTEMPPATH = 6410 // testdata/sqlite-amalgamation-3390200/sqlite3.c:828:1: + SQLITE_IOERR_LOCK = 3850 // testdata/sqlite-amalgamation-3390200/sqlite3.c:818:1: + SQLITE_IOERR_MMAP = 6154 // testdata/sqlite-amalgamation-3390200/sqlite3.c:827:1: + SQLITE_IOERR_NOMEM = 3082 // testdata/sqlite-amalgamation-3390200/sqlite3.c:815:1: + SQLITE_IOERR_NOMEM_BKPT = 3082 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19587:1: + SQLITE_IOERR_RDLOCK = 2314 // testdata/sqlite-amalgamation-3390200/sqlite3.c:812:1: + SQLITE_IOERR_READ = 266 // testdata/sqlite-amalgamation-3390200/sqlite3.c:804:1: + SQLITE_IOERR_ROLLBACK_ATOMIC = 7946 // testdata/sqlite-amalgamation-3390200/sqlite3.c:834:1: + SQLITE_IOERR_SEEK = 5642 // testdata/sqlite-amalgamation-3390200/sqlite3.c:825:1: + SQLITE_IOERR_SHMLOCK = 5130 // testdata/sqlite-amalgamation-3390200/sqlite3.c:823:1: + SQLITE_IOERR_SHMMAP = 5386 // testdata/sqlite-amalgamation-3390200/sqlite3.c:824:1: + SQLITE_IOERR_SHMOPEN = 4618 // testdata/sqlite-amalgamation-3390200/sqlite3.c:821:1: + SQLITE_IOERR_SHMSIZE = 4874 // testdata/sqlite-amalgamation-3390200/sqlite3.c:822:1: + SQLITE_IOERR_SHORT_READ = 522 // testdata/sqlite-amalgamation-3390200/sqlite3.c:805:1: + SQLITE_IOERR_TRUNCATE = 1546 // testdata/sqlite-amalgamation-3390200/sqlite3.c:809:1: + SQLITE_IOERR_UNLOCK = 2058 // testdata/sqlite-amalgamation-3390200/sqlite3.c:811:1: + SQLITE_IOERR_VNODE = 6922 // testdata/sqlite-amalgamation-3390200/sqlite3.c:830:1: + SQLITE_IOERR_WRITE = 778 // testdata/sqlite-amalgamation-3390200/sqlite3.c:806:1: + SQLITE_IgnoreChecks = 0x00000200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17009:1: + SQLITE_JUMPIFNULL = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17502:1: + SQLITE_LAST_ERRNO = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1537:1: SQLITE_LIKE_DOESNT_MATCH_BLOBS = 1 // <defines>:19:1: - SQLITE_LIMIT_ATTACHED = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4314:1: - SQLITE_LIMIT_COLUMN = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4309:1: - SQLITE_LIMIT_COMPOUND_SELECT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4311:1: - SQLITE_LIMIT_EXPR_DEPTH = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4310:1: - SQLITE_LIMIT_FUNCTION_ARG = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4313:1: - SQLITE_LIMIT_LENGTH = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4307:1: - SQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4315:1: - SQLITE_LIMIT_SQL_LENGTH = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4308:1: - SQLITE_LIMIT_TRIGGER_DEPTH = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4317:1: - SQLITE_LIMIT_VARIABLE_NUMBER = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4316:1: - SQLITE_LIMIT_VDBE_OP = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4312:1: - SQLITE_LIMIT_WORKER_THREADS = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4318:1: - SQLITE_LITTLEENDIAN = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14335:1: - SQLITE_LOCKED = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:757:1: - SQLITE_LOCKED_SHAREDCACHE = 262 // testdata/sqlite-amalgamation-3380500/sqlite3.c:837:1: - SQLITE_LOCKED_VTAB = 518 // testdata/sqlite-amalgamation-3380500/sqlite3.c:838:1: - SQLITE_LOCKFILEEX_FLAGS = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:46067:1: - SQLITE_LOCKFILE_FLAGS = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:46058:1: - SQLITE_LOCK_EXCLUSIVE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:985:1: - SQLITE_LOCK_NONE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:981:1: - SQLITE_LOCK_PENDING = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:984:1: - SQLITE_LOCK_RESERVED = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:983:1: - SQLITE_LOCK_SHARED = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:982:1: - SQLITE_LegacyAlter = 0x04000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16975:1: - SQLITE_LegacyFileFmt = 0x00000002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16948:1: - SQLITE_LoadExtFunc = 0x00020000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16966:1: - SQLITE_LoadExtension = 0x00010000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16965:1: - SQLITE_MALLOC_SOFT_LIMIT = 1024 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13518:1: - SQLITE_MATCH = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:121757:1: - SQLITE_MAX_ATTACHED = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13251:1: - SQLITE_MAX_COLUMN = 2000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13172:1: - SQLITE_MAX_COMPOUND_SELECT = 500 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13205:1: - SQLITE_MAX_DB = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16779:1: - SQLITE_MAX_DEFAULT_PAGE_SIZE = 8192 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13301:1: - SQLITE_MAX_EXPR_DEPTH = 1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13193:1: - SQLITE_MAX_FILE_FORMAT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14069:1: - SQLITE_MAX_FUNCTION_ARG = 127 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13220:1: - SQLITE_MAX_LENGTH = 1000000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13151:1: - SQLITE_MAX_LIKE_PATTERN_LENGTH = 50000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13325:1: - SQLITE_MAX_MEMORY = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:28627:1: - SQLITE_MAX_MMAP_SIZE = 0x7fff0000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14404:1: - SQLITE_MAX_PAGE_COUNT = 1073741823 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13317:1: - SQLITE_MAX_PAGE_SIZE = 65536 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13279:1: - SQLITE_MAX_PATHLEN = 260 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16267:1: - SQLITE_MAX_PMASZ = 536870912 // testdata/sqlite-amalgamation-3380500/sqlite3.c:96684:1: - SQLITE_MAX_PREPARE_RETRY = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:133876:1: - SQLITE_MAX_SCHEMA_RETRY = 50 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22055:1: - SQLITE_MAX_SQL_LENGTH = 1000000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13183:1: - SQLITE_MAX_SRCLIST = 200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:118665:1: - SQLITE_MAX_TRIGGER_DEPTH = 1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13336:1: - SQLITE_MAX_VARIABLE_NUMBER = 32766 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13262:1: - SQLITE_MAX_VDBE_OP = 250000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13213:1: - SQLITE_MAX_WORKER_THREADS = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14100:1: - SQLITE_MEMDB_DEFAULT_MAXSIZE = 1073741824 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21835:1: - SQLITE_MISMATCH = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:771:1: - SQLITE_MISUSE = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:772:1: - SQLITE_MSVC_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:101:1: + SQLITE_LIMIT_ATTACHED = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4314:1: + SQLITE_LIMIT_COLUMN = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4309:1: + SQLITE_LIMIT_COMPOUND_SELECT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4311:1: + SQLITE_LIMIT_EXPR_DEPTH = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4310:1: + SQLITE_LIMIT_FUNCTION_ARG = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4313:1: + SQLITE_LIMIT_LENGTH = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4307:1: + SQLITE_LIMIT_LIKE_PATTERN_LENGTH = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4315:1: + SQLITE_LIMIT_SQL_LENGTH = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4308:1: + SQLITE_LIMIT_TRIGGER_DEPTH = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4317:1: + SQLITE_LIMIT_VARIABLE_NUMBER = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4316:1: + SQLITE_LIMIT_VDBE_OP = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4312:1: + SQLITE_LIMIT_WORKER_THREADS = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4318:1: + SQLITE_LITTLEENDIAN = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14365:1: + SQLITE_LOCKED = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:757:1: + SQLITE_LOCKED_SHAREDCACHE = 262 // testdata/sqlite-amalgamation-3390200/sqlite3.c:837:1: + SQLITE_LOCKED_VTAB = 518 // testdata/sqlite-amalgamation-3390200/sqlite3.c:838:1: + SQLITE_LOCKFILEEX_FLAGS = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:46706:1: + SQLITE_LOCKFILE_FLAGS = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:46697:1: + SQLITE_LOCK_EXCLUSIVE = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:985:1: + SQLITE_LOCK_NONE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:981:1: + SQLITE_LOCK_PENDING = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:984:1: + SQLITE_LOCK_RESERVED = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:983:1: + SQLITE_LOCK_SHARED = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:982:1: + SQLITE_LegacyAlter = 0x04000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17026:1: + SQLITE_LegacyFileFmt = 0x00000002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16999:1: + SQLITE_LoadExtFunc = 0x00020000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17017:1: + SQLITE_LoadExtension = 0x00010000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17016:1: + SQLITE_MALLOC_SOFT_LIMIT = 1024 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13548:1: + SQLITE_MATCH = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:122975:1: + SQLITE_MAX_ATTACHED = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13281:1: + SQLITE_MAX_COLUMN = 2000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13202:1: + SQLITE_MAX_COMPOUND_SELECT = 500 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13235:1: + SQLITE_MAX_DB = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16830:1: + SQLITE_MAX_DEFAULT_PAGE_SIZE = 8192 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13331:1: + SQLITE_MAX_EXPR_DEPTH = 1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13223:1: + SQLITE_MAX_FILE_FORMAT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14099:1: + SQLITE_MAX_FUNCTION_ARG = 127 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13250:1: + SQLITE_MAX_LENGTH = 1000000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13181:1: + SQLITE_MAX_LIKE_PATTERN_LENGTH = 50000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13355:1: + SQLITE_MAX_MEMORY = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:28826:1: + SQLITE_MAX_MMAP_SIZE = 0x7fff0000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14445:1: + SQLITE_MAX_PAGE_COUNT = 1073741823 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13347:1: + SQLITE_MAX_PAGE_SIZE = 65536 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13309:1: + SQLITE_MAX_PATHLEN = 260 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16311:1: + SQLITE_MAX_PMASZ = 536870912 // testdata/sqlite-amalgamation-3390200/sqlite3.c:97713:1: + SQLITE_MAX_PREPARE_RETRY = 25 // testdata/sqlite-amalgamation-3390200/sqlite3.c:135131:1: + SQLITE_MAX_SCHEMA_RETRY = 50 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22200:1: + SQLITE_MAX_SQL_LENGTH = 1000000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13213:1: + SQLITE_MAX_SRCLIST = 200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:119841:1: + SQLITE_MAX_SYMLINK = 200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16318:1: + SQLITE_MAX_TRIGGER_DEPTH = 1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13366:1: + SQLITE_MAX_VARIABLE_NUMBER = 32766 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13292:1: + SQLITE_MAX_VDBE_OP = 250000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13243:1: + SQLITE_MAX_WORKER_THREADS = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14130:1: + SQLITE_MEMDB_DEFAULT_MAXSIZE = 1073741824 // testdata/sqlite-amalgamation-3390200/sqlite3.c:21977:1: + SQLITE_MISMATCH = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:771:1: + SQLITE_MISUSE = 21 // testdata/sqlite-amalgamation-3390200/sqlite3.c:772:1: + SQLITE_MSVC_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:101:1: SQLITE_MUTEX_APPDEF = 1 // <defines>:20:1: - SQLITE_MUTEX_FAST = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8167:1: + SQLITE_MUTEX_FAST = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8190:1: SQLITE_MUTEX_NOOP = 1 // <defines>:21:1: - SQLITE_MUTEX_RECURSIVE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8168:1: - SQLITE_MUTEX_STATIC_APP1 = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8177:1: - SQLITE_MUTEX_STATIC_APP2 = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8178:1: - SQLITE_MUTEX_STATIC_APP3 = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8179:1: - SQLITE_MUTEX_STATIC_LRU = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8174:1: - SQLITE_MUTEX_STATIC_LRU2 = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8175:1: - SQLITE_MUTEX_STATIC_MAIN = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8169:1: - SQLITE_MUTEX_STATIC_MASTER = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8185:1: - SQLITE_MUTEX_STATIC_MEM = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8170:1: - SQLITE_MUTEX_STATIC_MEM2 = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8171:1: - SQLITE_MUTEX_STATIC_OPEN = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8172:1: - SQLITE_MUTEX_STATIC_PMEM = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8176:1: - SQLITE_MUTEX_STATIC_PRNG = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8173:1: - SQLITE_MUTEX_STATIC_VFS1 = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8180:1: - SQLITE_MUTEX_STATIC_VFS2 = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8181:1: - SQLITE_MUTEX_STATIC_VFS3 = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8182:1: - SQLITE_MX_JUMP_OPCODE = 64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15737:1: - SQLITE_MinMaxOpt = 0x00010000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17029:1: - SQLITE_NOLFS = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:773:1: - SQLITE_NOMATCH = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:121758:1: - SQLITE_NOMEM = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:758:1: - SQLITE_NOMEM_BKPT = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19481:1: - SQLITE_NOTADB = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:777:1: - SQLITE_NOTFOUND = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:763:1: - SQLITE_NOTICE = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:778:1: - SQLITE_NOTICE_RECOVER_ROLLBACK = 539 // testdata/sqlite-amalgamation-3380500/sqlite3.c:871:1: - SQLITE_NOTICE_RECOVER_WAL = 283 // testdata/sqlite-amalgamation-3380500/sqlite3.c:870:1: - SQLITE_NOTNULL = 0x90 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17448:1: - SQLITE_NOWILDCARDMATCH = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:121759:1: - SQLITE_NO_TSAN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61740:1: - SQLITE_NTUNE = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19138:1: - SQLITE_NULL = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5181:1: - SQLITE_NULLEQ = 0x80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17447:1: - SQLITE_N_BTREE_META = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14941:1: - SQLITE_N_KEYWORD = 147 // testdata/sqlite-amalgamation-3380500/sqlite3.c:167420:1: - SQLITE_N_LIMIT = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16631:1: - SQLITE_N_STDTYPE = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17362:1: - SQLITE_NoCkptOnClose = 0x00000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16960:1: - SQLITE_NoSchemaError = 0x08000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16976:1: - SQLITE_NullCallback = 0x00000100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16956:1: - SQLITE_OK = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:750:1: - SQLITE_OK_LOAD_PERMANENTLY = 256 // testdata/sqlite-amalgamation-3380500/sqlite3.c:874:1: - SQLITE_OK_SYMLINK = 512 // testdata/sqlite-amalgamation-3380500/sqlite3.c:875:1: - SQLITE_OPEN_AUTOPROXY = 0x00000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:902:1: - SQLITE_OPEN_CREATE = 0x00000004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:899:1: - SQLITE_OPEN_DELETEONCLOSE = 0x00000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:900:1: - SQLITE_OPEN_EXCLUSIVE = 0x00000010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:901:1: - SQLITE_OPEN_EXRESCODE = 0x02000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:918:1: - SQLITE_OPEN_FULLMUTEX = 0x00010000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:913:1: - SQLITE_OPEN_MAIN_DB = 0x00000100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:905:1: - SQLITE_OPEN_MAIN_JOURNAL = 0x00000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:908:1: - SQLITE_OPEN_MASTER_JOURNAL = 0x00004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:922:1: - SQLITE_OPEN_MEMORY = 0x00000080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:904:1: - SQLITE_OPEN_NOFOLLOW = 0x01000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:917:1: - SQLITE_OPEN_NOMUTEX = 0x00008000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:912:1: - SQLITE_OPEN_PRIVATECACHE = 0x00040000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:915:1: - SQLITE_OPEN_READONLY = 0x00000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:897:1: - SQLITE_OPEN_READWRITE = 0x00000002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:898:1: - SQLITE_OPEN_SHAREDCACHE = 0x00020000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:914:1: - SQLITE_OPEN_SUBJOURNAL = 0x00002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:910:1: - SQLITE_OPEN_SUPER_JOURNAL = 0x00004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:911:1: - SQLITE_OPEN_TEMP_DB = 0x00000200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:906:1: - SQLITE_OPEN_TEMP_JOURNAL = 0x00001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:909:1: - SQLITE_OPEN_TRANSIENT_DB = 0x00000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:907:1: - SQLITE_OPEN_URI = 0x00000040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:903:1: - SQLITE_OPEN_WAL = 0x00080000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:916:1: - SQLITE_OS_OTHER = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16233:1: - SQLITE_OS_SETUP_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16212:1: - SQLITE_OS_UNIX = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16244:1: + SQLITE_MUTEX_RECURSIVE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8191:1: + SQLITE_MUTEX_STATIC_APP1 = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8200:1: + SQLITE_MUTEX_STATIC_APP2 = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8201:1: + SQLITE_MUTEX_STATIC_APP3 = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8202:1: + SQLITE_MUTEX_STATIC_LRU = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8197:1: + SQLITE_MUTEX_STATIC_LRU2 = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8198:1: + SQLITE_MUTEX_STATIC_MAIN = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8192:1: + SQLITE_MUTEX_STATIC_MASTER = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8208:1: + SQLITE_MUTEX_STATIC_MEM = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8193:1: + SQLITE_MUTEX_STATIC_MEM2 = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8194:1: + SQLITE_MUTEX_STATIC_OPEN = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8195:1: + SQLITE_MUTEX_STATIC_PMEM = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8199:1: + SQLITE_MUTEX_STATIC_PRNG = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8196:1: + SQLITE_MUTEX_STATIC_VFS1 = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8203:1: + SQLITE_MUTEX_STATIC_VFS2 = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8204:1: + SQLITE_MUTEX_STATIC_VFS3 = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8205:1: + SQLITE_MX_JUMP_OPCODE = 64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15780:1: + SQLITE_MinMaxOpt = 0x00010000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17080:1: + SQLITE_NOLFS = 22 // testdata/sqlite-amalgamation-3390200/sqlite3.c:773:1: + SQLITE_NOMATCH = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:122976:1: + SQLITE_NOMEM = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:758:1: + SQLITE_NOMEM_BKPT = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19586:1: + SQLITE_NOTADB = 26 // testdata/sqlite-amalgamation-3390200/sqlite3.c:777:1: + SQLITE_NOTFOUND = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:763:1: + SQLITE_NOTICE = 27 // testdata/sqlite-amalgamation-3390200/sqlite3.c:778:1: + SQLITE_NOTICE_RECOVER_ROLLBACK = 539 // testdata/sqlite-amalgamation-3390200/sqlite3.c:871:1: + SQLITE_NOTICE_RECOVER_WAL = 283 // testdata/sqlite-amalgamation-3390200/sqlite3.c:870:1: + SQLITE_NOTNULL = 0x90 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17504:1: + SQLITE_NOWILDCARDMATCH = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:122977:1: + SQLITE_NO_TSAN = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62381:1: + SQLITE_NTUNE = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19243:1: + SQLITE_NULL = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5181:1: + SQLITE_NULLEQ = 0x80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17503:1: + SQLITE_N_BTREE_META = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14985:1: + SQLITE_N_KEYWORD = 147 // testdata/sqlite-amalgamation-3390200/sqlite3.c:169494:1: + SQLITE_N_LIMIT = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16682:1: + SQLITE_N_STDTYPE = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17417:1: + SQLITE_NoCkptOnClose = 0x00000800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17011:1: + SQLITE_NoSchemaError = 0x08000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17027:1: + SQLITE_NullCallback = 0x00000100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17007:1: + SQLITE_OK = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:750:1: + SQLITE_OK_LOAD_PERMANENTLY = 256 // testdata/sqlite-amalgamation-3390200/sqlite3.c:874:1: + SQLITE_OK_SYMLINK = 512 // testdata/sqlite-amalgamation-3390200/sqlite3.c:875:1: + SQLITE_OPEN_AUTOPROXY = 0x00000020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:902:1: + SQLITE_OPEN_CREATE = 0x00000004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:899:1: + SQLITE_OPEN_DELETEONCLOSE = 0x00000008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:900:1: + SQLITE_OPEN_EXCLUSIVE = 0x00000010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:901:1: + SQLITE_OPEN_EXRESCODE = 0x02000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:918:1: + SQLITE_OPEN_FULLMUTEX = 0x00010000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:913:1: + SQLITE_OPEN_MAIN_DB = 0x00000100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:905:1: + SQLITE_OPEN_MAIN_JOURNAL = 0x00000800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:908:1: + SQLITE_OPEN_MASTER_JOURNAL = 0x00004000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:922:1: + SQLITE_OPEN_MEMORY = 0x00000080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:904:1: + SQLITE_OPEN_NOFOLLOW = 0x01000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:917:1: + SQLITE_OPEN_NOMUTEX = 0x00008000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:912:1: + SQLITE_OPEN_PRIVATECACHE = 0x00040000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:915:1: + SQLITE_OPEN_READONLY = 0x00000001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:897:1: + SQLITE_OPEN_READWRITE = 0x00000002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:898:1: + SQLITE_OPEN_SHAREDCACHE = 0x00020000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:914:1: + SQLITE_OPEN_SUBJOURNAL = 0x00002000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:910:1: + SQLITE_OPEN_SUPER_JOURNAL = 0x00004000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:911:1: + SQLITE_OPEN_TEMP_DB = 0x00000200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:906:1: + SQLITE_OPEN_TEMP_JOURNAL = 0x00001000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:909:1: + SQLITE_OPEN_TRANSIENT_DB = 0x00000400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:907:1: + SQLITE_OPEN_URI = 0x00000040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:903:1: + SQLITE_OPEN_WAL = 0x00080000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:916:1: + SQLITE_OS_OTHER = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16277:1: + SQLITE_OS_SETUP_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16256:1: + SQLITE_OS_UNIX = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16288:1: SQLITE_OS_WIN = 1 // <defines>:24:1: - SQLITE_OS_WINCE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:28176:1: - SQLITE_OS_WINNT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:28166:1: - SQLITE_OS_WINRT = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:28184:1: - SQLITE_OS_WIN_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:28136:1: - SQLITE_OS_WIN_THREADS = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:28203:1: - SQLITE_OmitNoopJoin = 0x00000100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17020:1: - SQLITE_OmitOrderBy = 0x00040000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17031:1: - SQLITE_OrderByIdxJoin = 0x00000040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17018:1: - SQLITE_PAGER_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14690:1: - SQLITE_PERM = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:754:1: - SQLITE_POWERSAFE_OVERWRITE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13468:1: - SQLITE_PRAGMA = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3475:1: - SQLITE_PREPARE_MASK = 0x0f // testdata/sqlite-amalgamation-3380500/sqlite3.c:15746:1: - SQLITE_PREPARE_NORMALIZE = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4356:1: - SQLITE_PREPARE_NO_VTAB = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4357:1: - SQLITE_PREPARE_PERSISTENT = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:4355:1: - SQLITE_PREPARE_SAVESQL = 0x80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15745:1: - SQLITE_PRINTF_INTERNAL = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19100:1: - SQLITE_PRINTF_MALLOCED = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19102:1: - SQLITE_PRINTF_SQLFUNC = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19101:1: - SQLITE_PRINT_BUF_SIZE = 70 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29627:1: + SQLITE_OS_WINCE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:28375:1: + SQLITE_OS_WINNT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:28365:1: + SQLITE_OS_WINRT = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:28383:1: + SQLITE_OS_WIN_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:28335:1: + SQLITE_OS_WIN_THREADS = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:28402:1: + SQLITE_OmitNoopJoin = 0x00000100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17071:1: + SQLITE_OmitOrderBy = 0x00040000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17082:1: + SQLITE_OrderByIdxJoin = 0x00000040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17069:1: + SQLITE_PAGER_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14733:1: + SQLITE_PERM = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:754:1: + SQLITE_POWERSAFE_OVERWRITE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13498:1: + SQLITE_PRAGMA = 19 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3475:1: + SQLITE_PREPARE_MASK = 0x0f // testdata/sqlite-amalgamation-3390200/sqlite3.c:15789:1: + SQLITE_PREPARE_NORMALIZE = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4356:1: + SQLITE_PREPARE_NO_VTAB = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4357:1: + SQLITE_PREPARE_PERSISTENT = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:4355:1: + SQLITE_PREPARE_SAVESQL = 0x80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15788:1: + SQLITE_PRINTF_INTERNAL = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19205:1: + SQLITE_PRINTF_MALLOCED = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19207:1: + SQLITE_PRINTF_SQLFUNC = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19206:1: + SQLITE_PRINT_BUF_SIZE = 70 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29826:1: SQLITE_PRIVATE = 0 // <defines>:1:1: - SQLITE_PROTOCOL = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:766:1: - SQLITE_PTRSIZE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14275:1: - SQLITE_PropagateConst = 0x00008000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17028:1: - SQLITE_PushDown = 0x00001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17025:1: - SQLITE_QUERY_PLANNER_LIMIT = 20000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147314:1: - SQLITE_QUERY_PLANNER_LIMIT_INCR = 1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147317:1: - SQLITE_QueryFlattener = 0x00000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17012:1: - SQLITE_QueryOnly = 0x00100000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16969:1: - SQLITE_RANGE = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:776:1: - SQLITE_RBU_STATE_CHECKPOINT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203782:1: - SQLITE_RBU_STATE_DONE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203783:1: - SQLITE_RBU_STATE_ERROR = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203784:1: - SQLITE_RBU_STATE_MOVE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203781:1: - SQLITE_RBU_STATE_OAL = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203780:1: - SQLITE_RBU_UPDATE_CACHESIZE = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203856:1: - SQLITE_READ = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3476:1: - SQLITE_READONLY = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:759:1: - SQLITE_READONLY_CANTINIT = 1288 // testdata/sqlite-amalgamation-3380500/sqlite3.c:855:1: - SQLITE_READONLY_CANTLOCK = 520 // testdata/sqlite-amalgamation-3380500/sqlite3.c:852:1: - SQLITE_READONLY_DBMOVED = 1032 // testdata/sqlite-amalgamation-3380500/sqlite3.c:854:1: - SQLITE_READONLY_DIRECTORY = 1544 // testdata/sqlite-amalgamation-3380500/sqlite3.c:856:1: - SQLITE_READONLY_RECOVERY = 264 // testdata/sqlite-amalgamation-3380500/sqlite3.c:851:1: - SQLITE_READONLY_ROLLBACK = 776 // testdata/sqlite-amalgamation-3380500/sqlite3.c:853:1: - SQLITE_RECURSIVE = 33 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3490:1: - SQLITE_REINDEX = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3483:1: - SQLITE_REPLACE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10101:1: - SQLITE_ROLLBACK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10097:1: - SQLITE_ROW = 100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:780:1: - SQLITE_ReadUncommit = 0x00000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16959:1: - SQLITE_RecTriggers = 0x00002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16962:1: - SQLITE_ResetDatabase = 0x02000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16974:1: - SQLITE_ReverseOrder = 0x00001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16961:1: - SQLITE_SAVEPOINT = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3488:1: - SQLITE_SCANSTAT_EST = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10152:1: - SQLITE_SCANSTAT_EXPLAIN = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10154:1: - SQLITE_SCANSTAT_NAME = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10153:1: - SQLITE_SCANSTAT_NLOOP = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10150:1: - SQLITE_SCANSTAT_NVISIT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10151:1: - SQLITE_SCANSTAT_SELECTID = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10155:1: - SQLITE_SCHEMA = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:768:1: - SQLITE_SELECT = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3477:1: - SQLITE_SERIALIZE_NOCOPY = 0x001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10612:1: - SQLITE_SESSION_CONFIG_STRMSIZE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12524:1: - SQLITE_SESSION_OBJCONFIG_SIZE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10925:1: - SQLITE_SET_LOCKPROXYFILE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1536:1: - SQLITE_SHM_EXCLUSIVE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1821:1: - SQLITE_SHM_LOCK = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1819:1: - SQLITE_SHM_NLOCK = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1831:1: - SQLITE_SHM_SHARED = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1820:1: - SQLITE_SHM_UNLOCK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1818:1: - SQLITE_SORTER_PMASZ = 250 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21794:1: + SQLITE_PROTOCOL = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:766:1: + SQLITE_PTRSIZE = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14305:1: + SQLITE_PropagateConst = 0x00008000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17079:1: + SQLITE_PushDown = 0x00001000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17076:1: + SQLITE_QUERY_PLANNER_LIMIT = 20000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148973:1: + SQLITE_QUERY_PLANNER_LIMIT_INCR = 1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148976:1: + SQLITE_QueryFlattener = 0x00000001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17063:1: + SQLITE_QueryOnly = 0x00100000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17020:1: + SQLITE_RANGE = 25 // testdata/sqlite-amalgamation-3390200/sqlite3.c:776:1: + SQLITE_RBU_STATE_CHECKPOINT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:205904:1: + SQLITE_RBU_STATE_DONE = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:205905:1: + SQLITE_RBU_STATE_ERROR = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:205906:1: + SQLITE_RBU_STATE_MOVE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:205903:1: + SQLITE_RBU_STATE_OAL = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:205902:1: + SQLITE_RBU_UPDATE_CACHESIZE = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:205978:1: + SQLITE_READ = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3476:1: + SQLITE_READONLY = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:759:1: + SQLITE_READONLY_CANTINIT = 1288 // testdata/sqlite-amalgamation-3390200/sqlite3.c:855:1: + SQLITE_READONLY_CANTLOCK = 520 // testdata/sqlite-amalgamation-3390200/sqlite3.c:852:1: + SQLITE_READONLY_DBMOVED = 1032 // testdata/sqlite-amalgamation-3390200/sqlite3.c:854:1: + SQLITE_READONLY_DIRECTORY = 1544 // testdata/sqlite-amalgamation-3390200/sqlite3.c:856:1: + SQLITE_READONLY_RECOVERY = 264 // testdata/sqlite-amalgamation-3390200/sqlite3.c:851:1: + SQLITE_READONLY_ROLLBACK = 776 // testdata/sqlite-amalgamation-3390200/sqlite3.c:853:1: + SQLITE_RECURSIVE = 33 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3490:1: + SQLITE_REINDEX = 27 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3483:1: + SQLITE_REPLACE = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10131:1: + SQLITE_ROLLBACK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10127:1: + SQLITE_ROW = 100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:780:1: + SQLITE_ReadUncommit = 0x00000400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17010:1: + SQLITE_RecTriggers = 0x00002000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17013:1: + SQLITE_ReleaseReg = 0x00400000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17087:1: + SQLITE_ResetDatabase = 0x02000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17025:1: + SQLITE_ReverseOrder = 0x00001000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17012:1: + SQLITE_SAVEPOINT = 32 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3488:1: + SQLITE_SCANSTAT_EST = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10182:1: + SQLITE_SCANSTAT_EXPLAIN = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10184:1: + SQLITE_SCANSTAT_NAME = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10183:1: + SQLITE_SCANSTAT_NLOOP = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10180:1: + SQLITE_SCANSTAT_NVISIT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10181:1: + SQLITE_SCANSTAT_SELECTID = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10185:1: + SQLITE_SCHEMA = 17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:768:1: + SQLITE_SELECT = 21 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3477:1: + SQLITE_SERIALIZE_NOCOPY = 0x001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10642:1: + SQLITE_SESSION_CONFIG_STRMSIZE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12554:1: + SQLITE_SESSION_OBJCONFIG_SIZE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10955:1: + SQLITE_SET_LOCKPROXYFILE = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1536:1: + SQLITE_SHM_EXCLUSIVE = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1821:1: + SQLITE_SHM_LOCK = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1819:1: + SQLITE_SHM_NLOCK = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1831:1: + SQLITE_SHM_SHARED = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1820:1: + SQLITE_SHM_UNLOCK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1818:1: + SQLITE_SORTER_PMASZ = 250 // testdata/sqlite-amalgamation-3390200/sqlite3.c:21936:1: SQLITE_SOUNDEX = 1 // <defines>:22:1: - SQLITE_SOURCE_ID = "2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe" // testdata/sqlite-amalgamation-3380500/sqlite3.c:457:1: - SQLITE_SO_ASC = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17404:1: - SQLITE_SO_DESC = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17405:1: - SQLITE_SO_UNDEFINED = -1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17406:1: - SQLITE_STAT4_SAMPLES = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:111389:1: - SQLITE_STATE_BUSY = 0x6d // testdata/sqlite-amalgamation-3380500/sqlite3.c:17057:1: - SQLITE_STATE_CLOSED = 0xce // testdata/sqlite-amalgamation-3380500/sqlite3.c:17055:1: - SQLITE_STATE_ERROR = 0xd5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17058:1: - SQLITE_STATE_OPEN = 0x76 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17054:1: - SQLITE_STATE_SICK = 0xba // testdata/sqlite-amalgamation-3380500/sqlite3.c:17056:1: - SQLITE_STATE_ZOMBIE = 0xa7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17059:1: - SQLITE_STATUS_MALLOC_COUNT = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8601:1: - SQLITE_STATUS_MALLOC_SIZE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8597:1: - SQLITE_STATUS_MEMORY_USED = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8592:1: - SQLITE_STATUS_PAGECACHE_OVERFLOW = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8594:1: - SQLITE_STATUS_PAGECACHE_SIZE = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8599:1: - SQLITE_STATUS_PAGECACHE_USED = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8593:1: - SQLITE_STATUS_PARSER_STACK = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8598:1: - SQLITE_STATUS_SCRATCH_OVERFLOW = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8596:1: - SQLITE_STATUS_SCRATCH_SIZE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8600:1: - SQLITE_STATUS_SCRATCH_USED = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8595:1: - SQLITE_STDCALL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:390:1: - SQLITE_STMTJRNL_SPILL = 65536 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21806:1: - SQLITE_STMTSTATUS_AUTOINDEX = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8848:1: - SQLITE_STMTSTATUS_FILTER_HIT = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8853:1: - SQLITE_STMTSTATUS_FILTER_MISS = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8852:1: - SQLITE_STMTSTATUS_FULLSCAN_STEP = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8846:1: - SQLITE_STMTSTATUS_MEMUSED = 99 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8854:1: - SQLITE_STMTSTATUS_REPREPARE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8850:1: - SQLITE_STMTSTATUS_RUN = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8851:1: - SQLITE_STMTSTATUS_SORT = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8847:1: - SQLITE_STMTSTATUS_VM_STEP = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8849:1: - SQLITE_SUBTYPE = 0x000100000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5715:1: - SQLITE_SYNC_DATAONLY = 0x00010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1015:1: - SQLITE_SYNC_FULL = 0x00003 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1014:1: - SQLITE_SYNC_NORMAL = 0x00002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:1013:1: - SQLITE_SYSAPI = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:396:1: - SQLITE_SYSTEM_MALLOC = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13510:1: - SQLITE_SeekScan = 0x00020000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17030:1: - SQLITE_ShortColNames = 0x00000040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16953:1: - SQLITE_SimplifyJoin = 0x00002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17026:1: - SQLITE_SkipScan = 0x00004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17027:1: - SQLITE_Stat4 = 0x00000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17023:1: - SQLITE_TCLAPI = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:75:1: - SQLITE_TEMP_FILE_PREFIX = "etilqs_" // testdata/sqlite-amalgamation-3380500/sqlite3.c:16299:1: - SQLITE_TEMP_STORE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14087:1: - SQLITE_TESTCTRL_ALWAYS = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8282:1: - SQLITE_TESTCTRL_ASSERT = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8281:1: - SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8279:1: - SQLITE_TESTCTRL_BITVEC_TEST = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8277:1: - SQLITE_TESTCTRL_BYTEORDER = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8293:1: - SQLITE_TESTCTRL_EXPLAIN_STMT = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8289:1: - SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8300:1: - SQLITE_TESTCTRL_FAULT_INSTALL = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8278:1: - SQLITE_TESTCTRL_FIRST = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8273:1: - SQLITE_TESTCTRL_IMPOSTER = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8296:1: - SQLITE_TESTCTRL_INTERNAL_FUNCTIONS = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8287:1: - SQLITE_TESTCTRL_ISINIT = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8294:1: - SQLITE_TESTCTRL_ISKEYWORD = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8285:1: - SQLITE_TESTCTRL_LAST = 33 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8305:1: - SQLITE_TESTCTRL_LOCALTIME_FAULT = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8288:1: - SQLITE_TESTCTRL_LOGEST = 33 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8304:1: - SQLITE_TESTCTRL_NEVER_CORRUPT = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8291:1: - SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8290:1: - SQLITE_TESTCTRL_OPTIMIZATIONS = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8284:1: - SQLITE_TESTCTRL_PARSER_COVERAGE = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8297:1: - SQLITE_TESTCTRL_PENDING_BYTE = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8280:1: - SQLITE_TESTCTRL_PRNG_RESET = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8276:1: - SQLITE_TESTCTRL_PRNG_RESTORE = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8275:1: - SQLITE_TESTCTRL_PRNG_SAVE = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8274:1: - SQLITE_TESTCTRL_PRNG_SEED = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8299:1: - SQLITE_TESTCTRL_RESERVE = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8283:1: - SQLITE_TESTCTRL_RESULT_INTREAL = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8298:1: - SQLITE_TESTCTRL_SCRATCHMALLOC = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8286:1: - SQLITE_TESTCTRL_SEEK_COUNT = 30 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8301:1: - SQLITE_TESTCTRL_SORTER_MMAP = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8295:1: - SQLITE_TESTCTRL_TRACEFLAGS = 31 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8302:1: - SQLITE_TESTCTRL_TUNE = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8303:1: - SQLITE_TESTCTRL_VDBE_COVERAGE = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:8292:1: - SQLITE_TEXT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5185:1: + SQLITE_SOURCE_ID = "2022-07-21 15:24:47 698edb77537b67c41adc68f9b892db56bcf9a55e00371a61420f3ddd668e6603" // testdata/sqlite-amalgamation-3390200/sqlite3.c:457:1: + SQLITE_SO_ASC = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17460:1: + SQLITE_SO_DESC = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17461:1: + SQLITE_SO_UNDEFINED = -1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17462:1: + SQLITE_STAT4_SAMPLES = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:112559:1: + SQLITE_STATE_BUSY = 0x6d // testdata/sqlite-amalgamation-3390200/sqlite3.c:17111:1: + SQLITE_STATE_CLOSED = 0xce // testdata/sqlite-amalgamation-3390200/sqlite3.c:17109:1: + SQLITE_STATE_ERROR = 0xd5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17112:1: + SQLITE_STATE_OPEN = 0x76 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17108:1: + SQLITE_STATE_SICK = 0xba // testdata/sqlite-amalgamation-3390200/sqlite3.c:17110:1: + SQLITE_STATE_ZOMBIE = 0xa7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17113:1: + SQLITE_STATUS_MALLOC_COUNT = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8624:1: + SQLITE_STATUS_MALLOC_SIZE = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8620:1: + SQLITE_STATUS_MEMORY_USED = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8615:1: + SQLITE_STATUS_PAGECACHE_OVERFLOW = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8617:1: + SQLITE_STATUS_PAGECACHE_SIZE = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8622:1: + SQLITE_STATUS_PAGECACHE_USED = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8616:1: + SQLITE_STATUS_PARSER_STACK = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8621:1: + SQLITE_STATUS_SCRATCH_OVERFLOW = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8619:1: + SQLITE_STATUS_SCRATCH_SIZE = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8623:1: + SQLITE_STATUS_SCRATCH_USED = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8618:1: + SQLITE_STDCALL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:390:1: + SQLITE_STMTJRNL_SPILL = 65536 // testdata/sqlite-amalgamation-3390200/sqlite3.c:21948:1: + SQLITE_STMTSTATUS_AUTOINDEX = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8871:1: + SQLITE_STMTSTATUS_FILTER_HIT = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8876:1: + SQLITE_STMTSTATUS_FILTER_MISS = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8875:1: + SQLITE_STMTSTATUS_FULLSCAN_STEP = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8869:1: + SQLITE_STMTSTATUS_MEMUSED = 99 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8877:1: + SQLITE_STMTSTATUS_REPREPARE = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8873:1: + SQLITE_STMTSTATUS_RUN = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8874:1: + SQLITE_STMTSTATUS_SORT = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8870:1: + SQLITE_STMTSTATUS_VM_STEP = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8872:1: + SQLITE_SUBTYPE = 0x000100000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5715:1: + SQLITE_SYNC_DATAONLY = 0x00010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1015:1: + SQLITE_SYNC_FULL = 0x00003 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1014:1: + SQLITE_SYNC_NORMAL = 0x00002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:1013:1: + SQLITE_SYSAPI = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:396:1: + SQLITE_SYSTEM_MALLOC = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13540:1: + SQLITE_SeekScan = 0x00020000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17081:1: + SQLITE_ShortColNames = 0x00000040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17004:1: + SQLITE_SimplifyJoin = 0x00002000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17077:1: + SQLITE_SkipScan = 0x00004000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17078:1: + SQLITE_Stat4 = 0x00000800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17074:1: + SQLITE_TCLAPI = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:75:1: + SQLITE_TEMP_FILE_PREFIX = "etilqs_" // testdata/sqlite-amalgamation-3390200/sqlite3.c:16350:1: + SQLITE_TEMP_STORE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14117:1: + SQLITE_TESTCTRL_ALWAYS = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8305:1: + SQLITE_TESTCTRL_ASSERT = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8304:1: + SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8302:1: + SQLITE_TESTCTRL_BITVEC_TEST = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8300:1: + SQLITE_TESTCTRL_BYTEORDER = 22 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8316:1: + SQLITE_TESTCTRL_EXPLAIN_STMT = 19 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8312:1: + SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS = 29 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8323:1: + SQLITE_TESTCTRL_FAULT_INSTALL = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8301:1: + SQLITE_TESTCTRL_FIRST = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8296:1: + SQLITE_TESTCTRL_IMPOSTER = 25 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8319:1: + SQLITE_TESTCTRL_INTERNAL_FUNCTIONS = 17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8310:1: + SQLITE_TESTCTRL_ISINIT = 23 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8317:1: + SQLITE_TESTCTRL_ISKEYWORD = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8308:1: + SQLITE_TESTCTRL_LAST = 33 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8328:1: + SQLITE_TESTCTRL_LOCALTIME_FAULT = 18 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8311:1: + SQLITE_TESTCTRL_LOGEST = 33 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8327:1: + SQLITE_TESTCTRL_NEVER_CORRUPT = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8314:1: + SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD = 19 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8313:1: + SQLITE_TESTCTRL_OPTIMIZATIONS = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8307:1: + SQLITE_TESTCTRL_PARSER_COVERAGE = 26 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8320:1: + SQLITE_TESTCTRL_PENDING_BYTE = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8303:1: + SQLITE_TESTCTRL_PRNG_RESET = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8299:1: + SQLITE_TESTCTRL_PRNG_RESTORE = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8298:1: + SQLITE_TESTCTRL_PRNG_SAVE = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8297:1: + SQLITE_TESTCTRL_PRNG_SEED = 28 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8322:1: + SQLITE_TESTCTRL_RESERVE = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8306:1: + SQLITE_TESTCTRL_RESULT_INTREAL = 27 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8321:1: + SQLITE_TESTCTRL_SCRATCHMALLOC = 17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8309:1: + SQLITE_TESTCTRL_SEEK_COUNT = 30 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8324:1: + SQLITE_TESTCTRL_SORTER_MMAP = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8318:1: + SQLITE_TESTCTRL_TRACEFLAGS = 31 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8325:1: + SQLITE_TESTCTRL_TUNE = 32 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8326:1: + SQLITE_TESTCTRL_VDBE_COVERAGE = 21 // testdata/sqlite-amalgamation-3390200/sqlite3.c:8315:1: + SQLITE_TEXT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5185:1: SQLITE_THREADSAFE = 1 // <defines>:23:1: - SQLITE_THREADS_IMPLEMENTED = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:31884:1: - SQLITE_TOKEN_KEYWORD = 0x2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17905:1: - SQLITE_TOKEN_QUOTED = 0x1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17904:1: - SQLITE_TOOBIG = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:769:1: - SQLITE_TRACE_CLOSE = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3584:1: - SQLITE_TRACE_LEGACY = 0x40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16767:1: - SQLITE_TRACE_NONLEGACY_MASK = 0x0f // testdata/sqlite-amalgamation-3380500/sqlite3.c:16773:1: - SQLITE_TRACE_PROFILE = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3582:1: - SQLITE_TRACE_ROW = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3583:1: - SQLITE_TRACE_STMT = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3581:1: - SQLITE_TRACE_XPROFILE = 0x80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16768:1: - SQLITE_TRANSACTION = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3478:1: - SQLITE_TXN_NONE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:6673:1: - SQLITE_TXN_READ = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:6674:1: - SQLITE_TXN_WRITE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:6675:1: - SQLITE_Transitive = 0x00000080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17019:1: - SQLITE_TriggerEQP = 0x01000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16973:1: - SQLITE_TrustedSchema = 0x00000080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16954:1: - SQLITE_UPDATE = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:3479:1: - SQLITE_USE_MALLOC_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:25115:1: - SQLITE_USE_MSIZE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:25116:1: - SQLITE_USE_URI = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21772:1: - SQLITE_UTF16 = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5644:1: - SQLITE_UTF16BE = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5643:1: - SQLITE_UTF16LE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5642:1: - SQLITE_UTF16NATIVE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14336:1: - SQLITE_UTF16_ALIGNED = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5646:1: - SQLITE_UTF8 = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:5641:1: - SQLITE_VDBEINT_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22048:1: - SQLITE_VDBE_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:15355:1: - SQLITE_VERSION = "3.38.5" // testdata/sqlite-amalgamation-3380500/sqlite3.c:455:1: - SQLITE_VERSION_NUMBER = 3038005 // testdata/sqlite-amalgamation-3380500/sqlite3.c:456:1: - SQLITE_VTABRISK_High = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17507:1: - SQLITE_VTABRISK_Low = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17505:1: - SQLITE_VTABRISK_Normal = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17506:1: - SQLITE_VTAB_CONSTRAINT_SUPPORT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:9778:1: - SQLITE_VTAB_DIRECTONLY = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:9780:1: - SQLITE_VTAB_INNOCUOUS = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:9779:1: - SQLITE_WAL_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53100:1: - SQLITE_WARNING = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:779:1: - SQLITE_WARNING_AUTOINDEX = 284 // testdata/sqlite-amalgamation-3380500/sqlite3.c:872:1: - SQLITE_WHEREINT_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:146909:1: - SQLITE_WIN32_CREATEFILEMAPPINGA = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:43025:1: - SQLITE_WIN32_DATA_DIRECTORY_TYPE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:6544:1: - SQLITE_WIN32_GETVERSIONEX = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:43012:1: - SQLITE_WIN32_HAS_ANSI = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:42968:1: - SQLITE_WIN32_HAS_WIDE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:42977:1: - SQLITE_WIN32_IOERR_RETRY = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:45030:1: - SQLITE_WIN32_IOERR_RETRY_DELAY = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:45033:1: - SQLITE_WIN32_MAX_ERRMSG_CHARS = 1024 // testdata/sqlite-amalgamation-3380500/sqlite3.c:43081:1: - SQLITE_WIN32_MAX_PATH_BYTES = 1040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:43065:1: - SQLITE_WIN32_MAX_PATH_CHARS = 260 // testdata/sqlite-amalgamation-3380500/sqlite3.c:43041:1: - SQLITE_WIN32_TEMP_DIRECTORY_TYPE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:6545:1: - SQLITE_WINNT_MAX_PATH_CHARS = 32767 // testdata/sqlite-amalgamation-3380500/sqlite3.c:43056:1: - SQLITE_WSD = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14547:3: - SQLITE_WindowFunc = 0x00000002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17013:1: - SQLITE_WriteSchema = 0x00000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16947:1: - SRT_Coroutine = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18687:1: - SRT_Discard = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18669:1: - SRT_DistFifo = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18670:1: - SRT_DistQueue = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18671:1: - SRT_EphemTab = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18686:1: - SRT_Except = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18667:1: - SRT_Exists = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18668:1: - SRT_Fifo = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18678:1: - SRT_Mem = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18684:1: - SRT_Output = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18683:1: - SRT_Queue = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18677:1: - SRT_Set = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18685:1: - SRT_Table = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18688:1: - SRT_Union = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18666:1: - SRT_Upfrom = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18689:1: + SQLITE_THREADS_IMPLEMENTED = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:32564:1: + SQLITE_TOKEN_KEYWORD = 0x2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17966:1: + SQLITE_TOKEN_QUOTED = 0x1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17965:1: + SQLITE_TOOBIG = 18 // testdata/sqlite-amalgamation-3390200/sqlite3.c:769:1: + SQLITE_TRACE_CLOSE = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3584:1: + SQLITE_TRACE_LEGACY = 0x40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16818:1: + SQLITE_TRACE_NONLEGACY_MASK = 0x0f // testdata/sqlite-amalgamation-3390200/sqlite3.c:16824:1: + SQLITE_TRACE_PROFILE = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3582:1: + SQLITE_TRACE_ROW = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3583:1: + SQLITE_TRACE_STMT = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3581:1: + SQLITE_TRACE_XPROFILE = 0x80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16819:1: + SQLITE_TRANSACTION = 22 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3478:1: + SQLITE_TXN_NONE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:6696:1: + SQLITE_TXN_READ = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:6697:1: + SQLITE_TXN_WRITE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:6698:1: + SQLITE_Transitive = 0x00000080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17070:1: + SQLITE_TriggerEQP = 0x01000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17024:1: + SQLITE_TrustedSchema = 0x00000080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17005:1: + SQLITE_UPDATE = 23 // testdata/sqlite-amalgamation-3390200/sqlite3.c:3479:1: + SQLITE_USE_MALLOC_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:25309:1: + SQLITE_USE_MSIZE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:25310:1: + SQLITE_USE_URI = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:21914:1: + SQLITE_UTF16 = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5644:1: + SQLITE_UTF16BE = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5643:1: + SQLITE_UTF16LE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5642:1: + SQLITE_UTF16NATIVE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14366:1: + SQLITE_UTF16_ALIGNED = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5646:1: + SQLITE_UTF8 = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:5641:1: + SQLITE_VDBEINT_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22193:1: + SQLITE_VDBE_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:15399:1: + SQLITE_VERSION = "3.39.2" // testdata/sqlite-amalgamation-3390200/sqlite3.c:455:1: + SQLITE_VERSION_NUMBER = 3039002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:456:1: + SQLITE_VTABRISK_High = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17563:1: + SQLITE_VTABRISK_Low = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17561:1: + SQLITE_VTABRISK_Normal = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17562:1: + SQLITE_VTAB_CONSTRAINT_SUPPORT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:9801:1: + SQLITE_VTAB_DIRECTONLY = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:9803:1: + SQLITE_VTAB_INNOCUOUS = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:9802:1: + SQLITE_WAL_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:53738:1: + SQLITE_WARNING = 28 // testdata/sqlite-amalgamation-3390200/sqlite3.c:779:1: + SQLITE_WARNING_AUTOINDEX = 284 // testdata/sqlite-amalgamation-3390200/sqlite3.c:872:1: + SQLITE_WHEREINT_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148545:1: + SQLITE_WIN32_CREATEFILEMAPPINGA = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43664:1: + SQLITE_WIN32_DATA_DIRECTORY_TYPE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:6545:1: + SQLITE_WIN32_GETVERSIONEX = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43651:1: + SQLITE_WIN32_HAS_ANSI = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43607:1: + SQLITE_WIN32_HAS_WIDE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43616:1: + SQLITE_WIN32_IOERR_RETRY = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:45669:1: + SQLITE_WIN32_IOERR_RETRY_DELAY = 25 // testdata/sqlite-amalgamation-3390200/sqlite3.c:45672:1: + SQLITE_WIN32_MAX_ERRMSG_CHARS = 1024 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43720:1: + SQLITE_WIN32_MAX_PATH_BYTES = 1040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43704:1: + SQLITE_WIN32_MAX_PATH_CHARS = 260 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43680:1: + SQLITE_WIN32_TEMP_DIRECTORY_TYPE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:6546:1: + SQLITE_WINNT_MAX_PATH_CHARS = 32767 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43695:1: + SQLITE_WSD = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14589:3: + SQLITE_WindowFunc = 0x00000002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17064:1: + SQLITE_WriteSchema = 0x00000001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16998:1: + SRT_Coroutine = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18786:1: + SRT_Discard = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18768:1: + SRT_DistFifo = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18769:1: + SRT_DistQueue = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18770:1: + SRT_EphemTab = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18785:1: + SRT_Except = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18766:1: + SRT_Exists = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18767:1: + SRT_Fifo = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18777:1: + SRT_Mem = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18783:1: + SRT_Output = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18782:1: + SRT_Queue = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18776:1: + SRT_Set = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18784:1: + SRT_Table = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18787:1: + SRT_Union = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18765:1: + SRT_Upfrom = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18788:1: SSF_AVAILABLE = 0x00000002 // /usr/x86_64-w64-mingw32/include/winuser.h:5779:1: SSF_INDICATOR = 0x00000004 // /usr/x86_64-w64-mingw32/include/winuser.h:5780:1: SSF_SOUNDSENTRYON = 0x00000001 // /usr/x86_64-w64-mingw32/include/winuser.h:5778:1: @@ -15330,11 +15338,11 @@ const ( STATE_SYSTEM_TRAVERSED = 0x00800000 // /usr/x86_64-w64-mingw32/include/winuser.h:6153:1: STATE_SYSTEM_UNAVAILABLE = 0x00000001 // /usr/x86_64-w64-mingw32/include/winuser.h:6129:1: STATE_SYSTEM_VALID = 0x3FFFFFFF // /usr/x86_64-w64-mingw32/include/winuser.h:6160:1: - STAT_GET_NDLT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:111925:1: - STAT_GET_NEQ = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:111923:1: - STAT_GET_NLT = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:111924:1: - STAT_GET_ROWID = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:111922:1: - STAT_GET_STAT1 = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:111921:1: + STAT_GET_NDLT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:113095:1: + STAT_GET_NEQ = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:113093:1: + STAT_GET_NLT = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:113094:1: + STAT_GET_ROWID = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:113092:1: + STAT_GET_STAT1 = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:113091:1: STDAPICALLTYPE = 0 // /usr/x86_64-w64-mingw32/include/winnt.h:432:1: STDERR_FILENO = 2 // /usr/x86_64-w64-mingw32/include/stdio.h:59:1: STDIN_FILENO = 0 // /usr/x86_64-w64-mingw32/include/stdio.h:57:1: @@ -15758,9 +15766,9 @@ const ( S_WHITE2048 = 6 // /usr/x86_64-w64-mingw32/include/winbase.h:569:1: S_WHITE512 = 4 // /usr/x86_64-w64-mingw32/include/winbase.h:567:1: S_WHITEVOICE = 7 // /usr/x86_64-w64-mingw32/include/winbase.h:570:1: - TABTYP_NORM = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17591:1: - TABTYP_VIEW = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17593:1: - TABTYP_VTAB = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17592:1: + TABTYP_NORM = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17647:1: + TABTYP_VIEW = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17649:1: + TABTYP_VTAB = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17648:1: TAPE_ABSOLUTE_BLOCK = 1 // /usr/x86_64-w64-mingw32/include/winnt.h:8654:1: TAPE_ABSOLUTE_POSITION = 0 // /usr/x86_64-w64-mingw32/include/winnt.h:8643:1: TAPE_CHECK_FOR_DRIVE_PROBLEM = 2 // /usr/x86_64-w64-mingw32/include/winnt.h:8784:1: @@ -15897,44 +15905,44 @@ const ( TC_UA_ABLE = 0x00000800 // /usr/x86_64-w64-mingw32/include/wingdi.h:1614:1: TC_VA_ABLE = 0x00004000 // /usr/x86_64-w64-mingw32/include/wingdi.h:1617:1: TECHNOLOGY = 2 // /usr/x86_64-w64-mingw32/include/wingdi.h:1512:1: - TERM_ANDINFO = 0x0020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147165:1: - TERM_CODED = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147162:1: - TERM_COPIED = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147163:1: - TERM_DYNAMIC = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147160:1: - TERM_HEURTRUTH = 0x2000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147173:1: - TERM_HIGHTRUTH = 0x4000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147175:1: - TERM_IS = 0x0800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147171:1: - TERM_LIKE = 0x0400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147170:1: - TERM_LIKECOND = 0x0200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147169:1: - TERM_LIKEOPT = 0x0100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147168:1: - TERM_OK = 0x0040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147166:1: - TERM_ORINFO = 0x0010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147164:1: - TERM_SLICE = 0x8000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147179:1: - TERM_VARSELECT = 0x1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147172:1: - TERM_VIRTUAL = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147161:1: - TERM_VNULL = 0x0080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147167:1: + TERM_ANDINFO = 0x0020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148824:1: + TERM_CODED = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148821:1: + TERM_COPIED = 0x0008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148822:1: + TERM_DYNAMIC = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148819:1: + TERM_HEURTRUTH = 0x2000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148832:1: + TERM_HIGHTRUTH = 0x4000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148834:1: + TERM_IS = 0x0800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148830:1: + TERM_LIKE = 0x0400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148829:1: + TERM_LIKECOND = 0x0200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148828:1: + TERM_LIKEOPT = 0x0100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148827:1: + TERM_OK = 0x0040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148825:1: + TERM_ORINFO = 0x0010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148823:1: + TERM_SLICE = 0x8000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148838:1: + TERM_VARSELECT = 0x1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148831:1: + TERM_VIRTUAL = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148820:1: + TERM_VNULL = 0x0080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:148826:1: TEXTCAPS = 34 // /usr/x86_64-w64-mingw32/include/wingdi.h:1528:1: - TF_Autoincrement = 0x00000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17571:1: + TF_Autoincrement = 0x00000008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17627:1: TF_DISCONNECT = 0x01 // /usr/x86_64-w64-mingw32/include/winsock.h:336:1: - TF_Ephemeral = 0x00004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17584:1: - TF_Eponymous = 0x00008000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17585:1: - TF_HasGenerated = 0x00000060 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17575:1: - TF_HasHidden = 0x00000002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17569:1: - TF_HasNotNull = 0x00000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17581:1: - TF_HasPrimaryKey = 0x00000004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17570:1: - TF_HasStat1 = 0x00000010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17572:1: - TF_HasStat4 = 0x00002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17583:1: - TF_HasStored = 0x00000040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17574:1: - TF_HasVirtual = 0x00000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17573:1: - TF_NoVisibleRowid = 0x00000200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17579:1: - TF_OOOHidden = 0x00000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17580:1: + TF_Ephemeral = 0x00004000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17640:1: + TF_Eponymous = 0x00008000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17641:1: + TF_HasGenerated = 0x00000060 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17631:1: + TF_HasHidden = 0x00000002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17625:1: + TF_HasNotNull = 0x00000800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17637:1: + TF_HasPrimaryKey = 0x00000004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17626:1: + TF_HasStat1 = 0x00000010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17628:1: + TF_HasStat4 = 0x00002000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17639:1: + TF_HasStored = 0x00000040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17630:1: + TF_HasVirtual = 0x00000020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17629:1: + TF_NoVisibleRowid = 0x00000200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17635:1: + TF_OOOHidden = 0x00000400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17636:1: TF_REUSE_SOCKET = 0x02 // /usr/x86_64-w64-mingw32/include/winsock.h:337:1: - TF_Readonly = 0x00000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17568:1: - TF_Shadow = 0x00001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17582:1: - TF_StatsUsed = 0x00000100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17577:1: - TF_Strict = 0x00010000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17586:1: + TF_Readonly = 0x00000001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17624:1: + TF_Shadow = 0x00001000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17638:1: + TF_StatsUsed = 0x00000100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17633:1: + TF_Strict = 0x00010000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17642:1: TF_WRITE_BEHIND = 0x04 // /usr/x86_64-w64-mingw32/include/winsock.h:338:1: - TF_WithoutRowid = 0x00000080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17576:1: + TF_WithoutRowid = 0x00000080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17632:1: THAI_CHARSET = 222 // /usr/x86_64-w64-mingw32/include/wingdi.h:1171:1: THREAD_ALL_ACCESS = 2032639 // /usr/x86_64-w64-mingw32/include/winnt.h:4082:1: THREAD_BASE_PRIORITY_IDLE = -15 // /usr/x86_64-w64-mingw32/include/winnt.h:4169:1: @@ -15970,10 +15978,10 @@ const ( TIMERR_STRUCT = 129 // /usr/x86_64-w64-mingw32/include/mmsystem.h:1345:1: TIMER_ABSTIME = 1 // /usr/x86_64-w64-mingw32/include/pthread_time.h:54:1: TIMER_ALL_ACCESS = 2031619 // /usr/x86_64-w64-mingw32/include/winnt.h:4599:1: - TIMER_END = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20757:1: + TIMER_END = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20899:1: TIMER_MODIFY_STATE = 0x0002 // /usr/x86_64-w64-mingw32/include/winnt.h:4597:1: TIMER_QUERY_STATE = 0x0001 // /usr/x86_64-w64-mingw32/include/winnt.h:4596:1: - TIMER_START = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20756:1: + TIMER_START = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20898:1: TIME_BYTES = 0x0004 // /usr/x86_64-w64-mingw32/include/mmsystem.h:62:1: TIME_CALLBACK_EVENT_PULSE = 0x0020 // /usr/x86_64-w64-mingw32/include/mmsystem.h:1355:1: TIME_CALLBACK_EVENT_SET = 0x0010 // /usr/x86_64-w64-mingw32/include/mmsystem.h:1354:1: @@ -16001,190 +16009,190 @@ const ( TKF_HOTKEYSOUND = 0x00000010 // /usr/x86_64-w64-mingw32/include/winuser.h:5870:1: TKF_INDICATOR = 0x00000020 // /usr/x86_64-w64-mingw32/include/winuser.h:5871:1: TKF_TOGGLEKEYSON = 0x00000001 // /usr/x86_64-w64-mingw32/include/winuser.h:5866:1: - TK_ABORT = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13853:1: - TK_ACTION = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13854:1: - TK_ADD = 163 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13989:1: - TK_AFTER = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13855:1: - TK_AGG_COLUMN = 169 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13995:1: - TK_AGG_FUNCTION = 168 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13994:1: - TK_ALL = 135 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13961:1: - TK_ALTER = 162 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13988:1: - TK_ALWAYS = 96 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13922:1: - TK_ANALYZE = 30 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13856:1: - TK_AND = 44 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13870:1: - TK_ANY = 101 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13927:1: - TK_AS = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13850:1: - TK_ASC = 31 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13857:1: - TK_ASTERISK = 180 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14006:1: - TK_ATTACH = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13858:1: - TK_AUTOINCR = 126 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13952:1: - TK_BEFORE = 33 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13859:1: - TK_BEGIN = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13831:1: - TK_BETWEEN = 48 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13874:1: - TK_BITAND = 102 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13928:1: - TK_BITNOT = 114 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13940:1: - TK_BITOR = 103 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13929:1: - TK_BLOB = 154 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13980:1: - TK_BY = 34 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13860:1: - TK_CASCADE = 35 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13861:1: - TK_CASE = 157 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13983:1: - TK_CAST = 36 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13862:1: - TK_CHECK = 124 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13950:1: - TK_COLLATE = 113 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13939:1: - TK_COLUMN = 167 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13993:1: - TK_COLUMNKW = 60 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13886:1: - TK_COMMA = 25 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13851:1: - TK_COMMIT = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13836:1: - TK_CONCAT = 111 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13937:1: - TK_CONFLICT = 37 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13863:1: - TK_CONSTRAINT = 119 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13945:1: - TK_CREATE = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13843:1: - TK_CTIME_KW = 100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13926:1: - TK_CURRENT = 85 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13911:1: - TK_DATABASE = 38 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13864:1: - TK_DEFAULT = 120 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13946:1: - TK_DEFERRABLE = 131 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13957:1: - TK_DEFERRED = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13833:1: - TK_DELETE = 128 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13954:1: - TK_DESC = 39 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13865:1: - TK_DETACH = 40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13866:1: - TK_DISTINCT = 140 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13966:1: - TK_DO = 61 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13887:1: - TK_DOT = 141 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13967:1: - TK_DROP = 133 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13959:1: - TK_EACH = 41 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13867:1: - TK_ELSE = 160 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13986:1: - TK_END = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13837:1: - TK_EQ = 53 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13879:1: - TK_ERROR = 182 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14008:1: - TK_ESCAPE = 58 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13884:1: - TK_EXCEPT = 136 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13962:1: - TK_EXCLUDE = 91 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13917:1: - TK_EXCLUSIVE = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13835:1: - TK_EXISTS = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13846:1: - TK_EXPLAIN = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13828:1: - TK_FAIL = 42 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13868:1: - TK_FILTER = 166 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13992:1: - TK_FIRST = 83 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13909:1: - TK_FLOAT = 153 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13979:1: - TK_FOLLOWING = 86 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13912:1: - TK_FOR = 62 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13888:1: - TK_FOREIGN = 132 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13958:1: - TK_FROM = 142 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13968:1: - TK_FUNCTION = 172 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13998:1: - TK_GE = 57 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13883:1: - TK_GENERATED = 95 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13921:1: - TK_GROUP = 146 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13972:1: - TK_GROUPS = 92 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13918:1: - TK_GT = 54 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13880:1: - TK_HAVING = 147 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13973:1: - TK_ID = 59 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13885:1: - TK_IF = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13844:1: - TK_IF_NULL_ROW = 179 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14005:1: - TK_IGNORE = 63 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13889:1: - TK_ILLEGAL = 184 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14010:1: - TK_IMMEDIATE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13834:1: - TK_IN = 49 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13875:1: - TK_INDEX = 161 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13987:1: - TK_INDEXED = 116 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13942:1: - TK_INITIALLY = 64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13890:1: - TK_INSERT = 127 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13953:1: - TK_INSTEAD = 65 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13891:1: - TK_INTEGER = 155 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13981:1: - TK_INTERSECT = 137 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13963:1: - TK_INTO = 151 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13977:1: - TK_IS = 45 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13871:1: - TK_ISNOT = 171 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13997:1: - TK_ISNULL = 50 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13876:1: - TK_JOIN = 143 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13969:1: - TK_JOIN_KW = 118 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13944:1: - TK_KEY = 67 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13893:1: - TK_LAST = 84 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13910:1: - TK_LE = 55 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13881:1: - TK_LIKE_KW = 47 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13873:1: - TK_LIMIT = 148 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13974:1: - TK_LP = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13848:1: - TK_LSHIFT = 104 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13930:1: - TK_LT = 56 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13882:1: - TK_MATCH = 46 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13872:1: - TK_MATERIALIZED = 97 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13923:1: - TK_MINUS = 107 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13933:1: - TK_NE = 52 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13878:1: - TK_NO = 66 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13892:1: - TK_NOT = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13845:1: - TK_NOTHING = 152 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13978:1: - TK_NOTNULL = 51 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13877:1: - TK_NULL = 121 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13947:1: - TK_NULLS = 82 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13908:1: - TK_OF = 68 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13894:1: - TK_OFFSET = 69 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13895:1: - TK_ON = 115 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13941:1: - TK_OR = 43 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13869:1: - TK_ORDER = 145 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13971:1: - TK_OTHERS = 93 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13919:1: - TK_OVER = 165 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13991:1: - TK_PARTITION = 87 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13913:1: - TK_PLAN = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13830:1: - TK_PLUS = 106 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13932:1: - TK_PRAGMA = 70 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13896:1: - TK_PRECEDING = 88 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13914:1: - TK_PRIMARY = 122 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13948:1: - TK_PTR = 112 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13938:1: - TK_QUERY = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13829:1: - TK_RAISE = 71 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13897:1: - TK_RANGE = 89 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13915:1: - TK_RECURSIVE = 72 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13898:1: - TK_REFERENCES = 125 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13951:1: - TK_REGISTER = 176 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14002:1: - TK_REINDEX = 98 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13924:1: - TK_RELEASE = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13840:1: - TK_REM = 110 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13936:1: - TK_RENAME = 99 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13925:1: - TK_REPLACE = 73 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13899:1: - TK_RESTRICT = 74 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13900:1: - TK_RETURNING = 150 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13976:1: - TK_ROLLBACK = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13838:1: - TK_ROW = 75 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13901:1: - TK_ROWS = 76 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13902:1: - TK_RP = 23 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13849:1: - TK_RSHIFT = 105 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13931:1: - TK_SAVEPOINT = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13839:1: - TK_SELECT = 138 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13964:1: - TK_SELECT_COLUMN = 178 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14004:1: - TK_SEMI = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13827:1: - TK_SET = 130 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13956:1: - TK_SLASH = 109 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13935:1: - TK_SPACE = 183 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14009:1: - TK_SPAN = 181 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14007:1: - TK_STAR = 108 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13934:1: - TK_STRING = 117 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13943:1: - TK_TABLE = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13842:1: - TK_TEMP = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13847:1: - TK_THEN = 159 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13985:1: - TK_TIES = 94 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13920:1: - TK_TO = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13841:1: - TK_TRANSACTION = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13832:1: - TK_TRIGGER = 77 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13903:1: - TK_TRUEFALSE = 170 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13996:1: - TK_TRUTH = 175 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14001:1: - TK_UMINUS = 173 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13999:1: - TK_UNBOUNDED = 90 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13916:1: - TK_UNION = 134 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13960:1: - TK_UNIQUE = 123 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13949:1: - TK_UPDATE = 129 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13955:1: - TK_UPLUS = 174 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14000:1: - TK_USING = 144 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13970:1: - TK_VACUUM = 78 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13904:1: - TK_VALUES = 139 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13965:1: - TK_VARIABLE = 156 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13982:1: - TK_VECTOR = 177 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14003:1: - TK_VIEW = 79 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13905:1: - TK_VIRTUAL = 80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13906:1: - TK_WHEN = 158 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13984:1: - TK_WHERE = 149 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13975:1: - TK_WINDOW = 164 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13990:1: - TK_WITH = 81 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13907:1: - TK_WITHOUT = 26 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13852:1: + TK_ABORT = 27 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13883:1: + TK_ACTION = 28 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13884:1: + TK_ADD = 163 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14019:1: + TK_AFTER = 29 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13885:1: + TK_AGG_COLUMN = 169 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14025:1: + TK_AGG_FUNCTION = 168 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14024:1: + TK_ALL = 135 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13991:1: + TK_ALTER = 162 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14018:1: + TK_ALWAYS = 96 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13952:1: + TK_ANALYZE = 30 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13886:1: + TK_AND = 44 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13900:1: + TK_ANY = 101 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13957:1: + TK_AS = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13880:1: + TK_ASC = 31 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13887:1: + TK_ASTERISK = 180 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14036:1: + TK_ATTACH = 32 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13888:1: + TK_AUTOINCR = 126 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13982:1: + TK_BEFORE = 33 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13889:1: + TK_BEGIN = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13861:1: + TK_BETWEEN = 48 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13904:1: + TK_BITAND = 102 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13958:1: + TK_BITNOT = 114 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13970:1: + TK_BITOR = 103 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13959:1: + TK_BLOB = 154 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14010:1: + TK_BY = 34 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13890:1: + TK_CASCADE = 35 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13891:1: + TK_CASE = 157 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14013:1: + TK_CAST = 36 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13892:1: + TK_CHECK = 124 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13980:1: + TK_COLLATE = 113 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13969:1: + TK_COLUMN = 167 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14023:1: + TK_COLUMNKW = 60 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13916:1: + TK_COMMA = 25 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13881:1: + TK_COMMIT = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13866:1: + TK_CONCAT = 111 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13967:1: + TK_CONFLICT = 37 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13893:1: + TK_CONSTRAINT = 119 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13975:1: + TK_CREATE = 17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13873:1: + TK_CTIME_KW = 100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13956:1: + TK_CURRENT = 85 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13941:1: + TK_DATABASE = 38 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13894:1: + TK_DEFAULT = 120 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13976:1: + TK_DEFERRABLE = 131 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13987:1: + TK_DEFERRED = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13863:1: + TK_DELETE = 128 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13984:1: + TK_DESC = 39 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13895:1: + TK_DETACH = 40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13896:1: + TK_DISTINCT = 140 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13996:1: + TK_DO = 61 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13917:1: + TK_DOT = 141 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13997:1: + TK_DROP = 133 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13989:1: + TK_EACH = 41 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13897:1: + TK_ELSE = 160 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14016:1: + TK_END = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13867:1: + TK_EQ = 53 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13909:1: + TK_ERROR = 182 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14038:1: + TK_ESCAPE = 58 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13914:1: + TK_EXCEPT = 136 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13992:1: + TK_EXCLUDE = 91 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13947:1: + TK_EXCLUSIVE = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13865:1: + TK_EXISTS = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13876:1: + TK_EXPLAIN = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13858:1: + TK_FAIL = 42 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13898:1: + TK_FILTER = 166 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14022:1: + TK_FIRST = 83 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13939:1: + TK_FLOAT = 153 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14009:1: + TK_FOLLOWING = 86 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13942:1: + TK_FOR = 62 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13918:1: + TK_FOREIGN = 132 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13988:1: + TK_FROM = 142 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13998:1: + TK_FUNCTION = 172 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14028:1: + TK_GE = 57 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13913:1: + TK_GENERATED = 95 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13951:1: + TK_GROUP = 146 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14002:1: + TK_GROUPS = 92 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13948:1: + TK_GT = 54 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13910:1: + TK_HAVING = 147 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14003:1: + TK_ID = 59 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13915:1: + TK_IF = 18 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13874:1: + TK_IF_NULL_ROW = 179 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14035:1: + TK_IGNORE = 63 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13919:1: + TK_ILLEGAL = 184 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14040:1: + TK_IMMEDIATE = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13864:1: + TK_IN = 49 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13905:1: + TK_INDEX = 161 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14017:1: + TK_INDEXED = 116 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13972:1: + TK_INITIALLY = 64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13920:1: + TK_INSERT = 127 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13983:1: + TK_INSTEAD = 65 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13921:1: + TK_INTEGER = 155 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14011:1: + TK_INTERSECT = 137 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13993:1: + TK_INTO = 151 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14007:1: + TK_IS = 45 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13901:1: + TK_ISNOT = 171 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14027:1: + TK_ISNULL = 50 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13906:1: + TK_JOIN = 143 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13999:1: + TK_JOIN_KW = 118 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13974:1: + TK_KEY = 67 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13923:1: + TK_LAST = 84 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13940:1: + TK_LE = 55 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13911:1: + TK_LIKE_KW = 47 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13903:1: + TK_LIMIT = 148 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14004:1: + TK_LP = 22 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13878:1: + TK_LSHIFT = 104 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13960:1: + TK_LT = 56 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13912:1: + TK_MATCH = 46 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13902:1: + TK_MATERIALIZED = 97 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13953:1: + TK_MINUS = 107 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13963:1: + TK_NE = 52 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13908:1: + TK_NO = 66 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13922:1: + TK_NOT = 19 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13875:1: + TK_NOTHING = 152 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14008:1: + TK_NOTNULL = 51 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13907:1: + TK_NULL = 121 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13977:1: + TK_NULLS = 82 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13938:1: + TK_OF = 68 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13924:1: + TK_OFFSET = 69 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13925:1: + TK_ON = 115 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13971:1: + TK_OR = 43 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13899:1: + TK_ORDER = 145 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14001:1: + TK_OTHERS = 93 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13949:1: + TK_OVER = 165 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14021:1: + TK_PARTITION = 87 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13943:1: + TK_PLAN = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13860:1: + TK_PLUS = 106 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13962:1: + TK_PRAGMA = 70 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13926:1: + TK_PRECEDING = 88 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13944:1: + TK_PRIMARY = 122 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13978:1: + TK_PTR = 112 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13968:1: + TK_QUERY = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13859:1: + TK_RAISE = 71 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13927:1: + TK_RANGE = 89 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13945:1: + TK_RECURSIVE = 72 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13928:1: + TK_REFERENCES = 125 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13981:1: + TK_REGISTER = 176 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14032:1: + TK_REINDEX = 98 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13954:1: + TK_RELEASE = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13870:1: + TK_REM = 110 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13966:1: + TK_RENAME = 99 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13955:1: + TK_REPLACE = 73 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13929:1: + TK_RESTRICT = 74 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13930:1: + TK_RETURNING = 150 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14006:1: + TK_ROLLBACK = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13868:1: + TK_ROW = 75 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13931:1: + TK_ROWS = 76 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13932:1: + TK_RP = 23 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13879:1: + TK_RSHIFT = 105 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13961:1: + TK_SAVEPOINT = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13869:1: + TK_SELECT = 138 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13994:1: + TK_SELECT_COLUMN = 178 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14034:1: + TK_SEMI = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13857:1: + TK_SET = 130 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13986:1: + TK_SLASH = 109 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13965:1: + TK_SPACE = 183 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14039:1: + TK_SPAN = 181 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14037:1: + TK_STAR = 108 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13964:1: + TK_STRING = 117 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13973:1: + TK_TABLE = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13872:1: + TK_TEMP = 21 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13877:1: + TK_THEN = 159 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14015:1: + TK_TIES = 94 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13950:1: + TK_TO = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13871:1: + TK_TRANSACTION = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13862:1: + TK_TRIGGER = 77 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13933:1: + TK_TRUEFALSE = 170 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14026:1: + TK_TRUTH = 175 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14031:1: + TK_UMINUS = 173 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14029:1: + TK_UNBOUNDED = 90 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13946:1: + TK_UNION = 134 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13990:1: + TK_UNIQUE = 123 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13979:1: + TK_UPDATE = 129 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13985:1: + TK_UPLUS = 174 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14030:1: + TK_USING = 144 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14000:1: + TK_VACUUM = 78 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13934:1: + TK_VALUES = 139 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13995:1: + TK_VARIABLE = 156 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14012:1: + TK_VECTOR = 177 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14033:1: + TK_VIEW = 79 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13935:1: + TK_VIRTUAL = 80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13936:1: + TK_WHEN = 158 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14014:1: + TK_WHERE = 149 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14005:1: + TK_WINDOW = 164 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14020:1: + TK_WITH = 81 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13937:1: + TK_WITHOUT = 26 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13882:1: TLOSS = 5 // /usr/x86_64-w64-mingw32/include/math.h:33:1: TLS_MINIMUM_AVAILABLE = 64 // /usr/x86_64-w64-mingw32/include/winnt.h:4099:1: TME_CANCEL = 0x80000000 // /usr/x86_64-w64-mingw32/include/winuser.h:1561:1: @@ -16302,11 +16310,12 @@ const ( TRANSPORT_TYPE_DG = 0x02 // /usr/x86_64-w64-mingw32/include/rpcdcep.h:169:1: TRANSPORT_TYPE_LPC = 0x04 // /usr/x86_64-w64-mingw32/include/rpcdcep.h:170:1: TRANSPORT_TYPE_WMSG = 0x08 // /usr/x86_64-w64-mingw32/include/rpcdcep.h:171:1: - TRANS_NONE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65505:1: - TRANS_READ = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65506:1: - TRANS_WRITE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65507:1: - TRIGGER_AFTER = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19017:1: - TRIGGER_BEFORE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19016:1: + TRANS_NONE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66146:1: + TRANS_READ = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66147:1: + TRANS_WRITE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66148:1: + TREETRACE_ENABLED = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14481:1: + TRIGGER_AFTER = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19117:1: + TRIGGER_BEFORE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19116:1: TRUE = 1 // /usr/x86_64-w64-mingw32/include/minwindef.h:52:1: TRUETYPE_FONTTYPE = 0x004 // /usr/x86_64-w64-mingw32/include/wingdi.h:1395:1: TRUNCATE_EXISTING = 5 // /usr/x86_64-w64-mingw32/include/fileapi.h:22:1: @@ -16351,7 +16360,7 @@ const ( UNICODE_STRING_MAX_CHARS = 32767 // /usr/x86_64-w64-mingw32/include/winnt.h:601:1: UNIQUE_NAME = 0x00 // /usr/x86_64-w64-mingw32/include/nb30.h:78:1: UNIVERSAL_NAME_INFO_LEVEL = 0x00000001 // /usr/x86_64-w64-mingw32/include/winnetwk.h:201:1: - UNKNOWN_LOCK = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53624:1: + UNKNOWN_LOCK = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54262:1: UNLOAD_DLL_DEBUG_EVENT = 7 // /usr/x86_64-w64-mingw32/include/minwinbase.h:230:1: UNLOCK_ELEMENT = 1 // /usr/x86_64-w64-mingw32/include/winioctl.h:1110:1: UNPROTECTED_DACL_SECURITY_INFORMATION = 536870912 // /usr/x86_64-w64-mingw32/include/winnt.h:4021:1: @@ -16580,12 +16589,11 @@ const ( VARIANT_NOUSEROVERRIDE = 0x04 // /usr/x86_64-w64-mingw32/include/oleauto.h:93:1: VARIANT_NOVALUEPROP = 0x01 // /usr/x86_64-w64-mingw32/include/oleauto.h:91:1: VARIANT_USE_NLS = 0x80 // /usr/x86_64-w64-mingw32/include/oleauto.h:98:1: - VDBE_DISPLAY_P4 = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22065:1: - VDBE_MAGIC_DEAD = 0x5606c3c8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22491:1: - VDBE_MAGIC_HALT = 0x319c2973 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22489:1: - VDBE_MAGIC_INIT = 0x16bceaa5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22487:1: - VDBE_MAGIC_RESET = 0x48fa9f76 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22490:1: - VDBE_MAGIC_RUN = 0x2df20da3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22488:1: + VDBE_DISPLAY_P4 = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22210:1: + VDBE_HALT_STATE = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22672:1: + VDBE_INIT_STATE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22669:1: + VDBE_READY_STATE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22670:1: + VDBE_RUN_STATE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22671:1: VENDOR_ID_LENGTH = 8 // /usr/x86_64-w64-mingw32/include/winioctl.h:989:1: VERTRES = 10 // /usr/x86_64-w64-mingw32/include/wingdi.h:1516:1: VERTSIZE = 6 // /usr/x86_64-w64-mingw32/include/wingdi.h:1514:1: @@ -16931,27 +16939,27 @@ const ( WAIT_CHILD = 0 // /usr/x86_64-w64-mingw32/include/process.h:152:1: WAIT_GRANDCHILD = 1 // /usr/x86_64-w64-mingw32/include/process.h:153:1: WAIT_TIMEOUT = 258 // /usr/x86_64-w64-mingw32/include/winerror.h:228:1: - WALINDEX_MAX_VERSION = 3007000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61231:1: - WAL_ALL_BUT_WRITE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61248:1: - WAL_CKPT_LOCK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61249:1: - WAL_EXCLUSIVE_MODE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61499:1: - WAL_FRAME_HDRSIZE = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61430:1: - WAL_HDRSIZE = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61433:1: - WAL_HEAPMEMORY_MODE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61500:1: - WAL_LOCK_CKPT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203969:1: - WAL_LOCK_READ0 = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203970:1: - WAL_LOCK_WRITE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203968:1: - WAL_MAGIC = 0x377f0682 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61444:1: - WAL_MAX_VERSION = 3007000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61230:1: - WAL_NORMAL_MODE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61498:1: - WAL_NREADER = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61252:1: - WAL_RDONLY = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61506:1: - WAL_RDWR = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61505:1: - WAL_RECOVER_LOCK = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61250:1: - WAL_RETRY = -1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:63328:1: - WAL_SAVEPOINT_NDATA = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53132:1: - WAL_SHM_RDONLY = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61507:1: - WAL_WRITE_LOCK = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:61247:1: + WALINDEX_MAX_VERSION = 3007000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:61872:1: + WAL_ALL_BUT_WRITE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:61889:1: + WAL_CKPT_LOCK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:61890:1: + WAL_EXCLUSIVE_MODE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62140:1: + WAL_FRAME_HDRSIZE = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62071:1: + WAL_HDRSIZE = 32 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62074:1: + WAL_HEAPMEMORY_MODE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62141:1: + WAL_LOCK_CKPT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206091:1: + WAL_LOCK_READ0 = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206092:1: + WAL_LOCK_WRITE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:206090:1: + WAL_MAGIC = 0x377f0682 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62085:1: + WAL_MAX_VERSION = 3007000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:61871:1: + WAL_NORMAL_MODE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62139:1: + WAL_NREADER = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:61893:1: + WAL_RDONLY = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62147:1: + WAL_RDWR = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62146:1: + WAL_RECOVER_LOCK = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:61891:1: + WAL_RETRY = -1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:63969:1: + WAL_SAVEPOINT_NDATA = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:53770:1: + WAL_SHM_RDONLY = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:62148:1: + WAL_WRITE_LOCK = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:61888:1: WARNING_IPSEC_MM_POLICY_PRUNED = 13024 // /usr/x86_64-w64-mingw32/include/winerror.h:1935:1: WARNING_IPSEC_QM_POLICY_PRUNED = 13025 // /usr/x86_64-w64-mingw32/include/winerror.h:1936:1: WAVECAPS_LRVOLUME = 0x0008 // /usr/x86_64-w64-mingw32/include/mmsystem.h:386:1: @@ -17053,50 +17061,51 @@ const ( WHDR_PREPARED = 0x00000002 // /usr/x86_64-w64-mingw32/include/mmsystem.h:318:1: WHEEL_DELTA = 120 // /usr/x86_64-w64-mingw32/include/winuser.h:1266:1: WHEEL_PAGESCROLL = 4294967295 // /usr/x86_64-w64-mingw32/include/winuser.h:1269:1: - WHERE_AGG_DISTINCT = 0x0400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18399:1: - WHERE_AUTO_INDEX = 0x00004000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147499:1: - WHERE_BIGNULL_SORT = 0x00080000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147504:1: - WHERE_BLOOMFILTER = 0x00400000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147507:1: - WHERE_BOTH_LIMIT = 0x00000030 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147491:1: - WHERE_BTM_LIMIT = 0x00000020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147490:1: - WHERE_COLUMN_EQ = 0x00000001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147484:1: - WHERE_COLUMN_IN = 0x00000004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147486:1: - WHERE_COLUMN_NULL = 0x00000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147487:1: - WHERE_COLUMN_RANGE = 0x00000002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147485:1: - WHERE_CONSTRAINT = 0x0000000f // testdata/sqlite-amalgamation-3380500/sqlite3.c:147488:1: - WHERE_DISTINCTBY = 0x0080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18396:1: - WHERE_DISTINCT_NOOP = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18408:1: - WHERE_DISTINCT_ORDERED = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18410:1: - WHERE_DISTINCT_UNIQUE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18409:1: - WHERE_DISTINCT_UNORDERED = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18411:1: - WHERE_DUPLICATES_OK = 0x0010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18392:1: - WHERE_GROUPBY = 0x0040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18395:1: - WHERE_IDX_ONLY = 0x00000040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147492:1: - WHERE_INDEXED = 0x00000200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147494:1: - WHERE_IN_ABLE = 0x00000800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147496:1: - WHERE_IN_EARLYOUT = 0x00040000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147503:1: - WHERE_IN_SEEKSCAN = 0x00100000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147505:1: - WHERE_IPK = 0x00000100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147493:1: - WHERE_MULTI_OR = 0x00002000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147498:1: - WHERE_OMIT_OFFSET = 0x01000000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147509:1: - WHERE_ONEPASS_DESIRED = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18390:1: - WHERE_ONEPASS_MULTIROW = 0x0008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18391:1: - WHERE_ONEROW = 0x00001000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147497:1: - WHERE_ORDERBY_LIMIT = 0x0800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18400:1: - WHERE_ORDERBY_MAX = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18389:1: - WHERE_ORDERBY_MIN = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18388:1: - WHERE_ORDERBY_NORMAL = 0x0000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18387:1: - WHERE_OR_SUBCLAUSE = 0x0020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18393:1: - WHERE_PARTIALIDX = 0x00020000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147502:1: - WHERE_SELFCULL = 0x00800000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147508:1: - WHERE_SKIPSCAN = 0x00008000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147500:1: - WHERE_SORTBYGROUP = 0x0200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18398:1: - WHERE_TOP_LIMIT = 0x00000010 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147489:1: - WHERE_TRANSCONS = 0x00200000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147506:1: - WHERE_UNQ_WANTED = 0x00010000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147501:1: - WHERE_USE_LIMIT = 0x4000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18403:1: - WHERE_VIRTUALTABLE = 0x00000400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147495:1: - WHERE_WANT_DISTINCT = 0x0100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18397:1: + WHERE_AGG_DISTINCT = 0x0400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18495:1: + WHERE_AUTO_INDEX = 0x00004000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149167:1: + WHERE_BIGNULL_SORT = 0x00080000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149172:1: + WHERE_BLOOMFILTER = 0x00400000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149175:1: + WHERE_BOTH_LIMIT = 0x00000030 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149159:1: + WHERE_BTM_LIMIT = 0x00000020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149158:1: + WHERE_COLUMN_EQ = 0x00000001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149152:1: + WHERE_COLUMN_IN = 0x00000004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149154:1: + WHERE_COLUMN_NULL = 0x00000008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149155:1: + WHERE_COLUMN_RANGE = 0x00000002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149153:1: + WHERE_CONSTRAINT = 0x0000000f // testdata/sqlite-amalgamation-3390200/sqlite3.c:149156:1: + WHERE_DISTINCTBY = 0x0080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18492:1: + WHERE_DISTINCT_NOOP = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18504:1: + WHERE_DISTINCT_ORDERED = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18506:1: + WHERE_DISTINCT_UNIQUE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18505:1: + WHERE_DISTINCT_UNORDERED = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18507:1: + WHERE_DUPLICATES_OK = 0x0010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18488:1: + WHERE_GROUPBY = 0x0040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18491:1: + WHERE_IDX_ONLY = 0x00000040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149160:1: + WHERE_INDEXED = 0x00000200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149162:1: + WHERE_IN_ABLE = 0x00000800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149164:1: + WHERE_IN_EARLYOUT = 0x00040000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149171:1: + WHERE_IN_SEEKSCAN = 0x00100000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149173:1: + WHERE_IPK = 0x00000100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149161:1: + WHERE_MULTI_OR = 0x00002000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149166:1: + WHERE_OMIT_OFFSET = 0x01000000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149177:1: + WHERE_ONEPASS_DESIRED = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18486:1: + WHERE_ONEPASS_MULTIROW = 0x0008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18487:1: + WHERE_ONEROW = 0x00001000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149165:1: + WHERE_ORDERBY_LIMIT = 0x0800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18496:1: + WHERE_ORDERBY_MAX = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18485:1: + WHERE_ORDERBY_MIN = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18484:1: + WHERE_ORDERBY_NORMAL = 0x0000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18483:1: + WHERE_OR_SUBCLAUSE = 0x0020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18489:1: + WHERE_PARTIALIDX = 0x00020000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149170:1: + WHERE_RIGHT_JOIN = 0x1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18497:1: + WHERE_SELFCULL = 0x00800000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149176:1: + WHERE_SKIPSCAN = 0x00008000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149168:1: + WHERE_SORTBYGROUP = 0x0200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18494:1: + WHERE_TOP_LIMIT = 0x00000010 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149157:1: + WHERE_TRANSCONS = 0x00200000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149174:1: + WHERE_UNQ_WANTED = 0x00010000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149169:1: + WHERE_USE_LIMIT = 0x4000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18499:1: + WHERE_VIRTUALTABLE = 0x00000400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149163:1: + WHERE_WANT_DISTINCT = 0x0100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18493:1: WHITEONBLACK = 2 // /usr/x86_64-w64-mingw32/include/wingdi.h:90:1: WHITE_BRUSH = 0 // /usr/x86_64-w64-mingw32/include/wingdi.h:1438:1: WHITE_PEN = 6 // /usr/x86_64-w64-mingw32/include/wingdi.h:1445:1: @@ -17134,22 +17143,22 @@ const ( WINAPI_PARTITION_DESKTOP = 0x1 // /usr/x86_64-w64-mingw32/include/winapifamily.h:9:1: WINCRYPT_DWORD_CPP_ONLY = 0 // /usr/x86_64-w64-mingw32/include/wincrypt.h:3653:1: WINDING = 2 // /usr/x86_64-w64-mingw32/include/wingdi.h:101:1: - WINDOW_AGGINVERSE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:160055:1: - WINDOW_AGGSTEP = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:160056:1: + WINDOW_AGGINVERSE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:162079:1: + WINDOW_AGGSTEP = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:162080:1: WINDOW_BUFFER_SIZE_EVENT = 0x4 // /usr/x86_64-w64-mingw32/include/wincon.h:107:1: - WINDOW_ENDING_INT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:159759:1: - WINDOW_ENDING_NUM = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:159762:1: - WINDOW_NTH_VALUE_INT = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:159760:1: - WINDOW_RETURN_ROW = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:160054:1: - WINDOW_STARTING_INT = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:159758:1: - WINDOW_STARTING_NUM = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:159761:1: + WINDOW_ENDING_INT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:161783:1: + WINDOW_ENDING_NUM = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:161786:1: + WINDOW_NTH_VALUE_INT = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:161784:1: + WINDOW_RETURN_ROW = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:162078:1: + WINDOW_STARTING_INT = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:161782:1: + WINDOW_STARTING_NUM = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:161785:1: WINEVENT_INCONTEXT = 0x0004 // /usr/x86_64-w64-mingw32/include/winuser.h:5895:1: WINEVENT_OUTOFCONTEXT = 0x0000 // /usr/x86_64-w64-mingw32/include/winuser.h:5892:1: WINEVENT_SKIPOWNPROCESS = 0x0002 // /usr/x86_64-w64-mingw32/include/winuser.h:5894:1: WINEVENT_SKIPOWNTHREAD = 0x0001 // /usr/x86_64-w64-mingw32/include/winuser.h:5893:1: - WINFILE_PERSIST_WAL = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:43228:1: - WINFILE_PSOW = 0x10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:43229:1: - WINFILE_RDONLY = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:43227:1: + WINFILE_PERSIST_WAL = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43867:1: + WINFILE_PSOW = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43868:1: + WINFILE_RDONLY = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43866:1: WININETINFO_OPTION_LOCK_HANDLE = 65534 // /usr/x86_64-w64-mingw32/include/urlmon.h:3881:1: WINNT = 1 // <predefined>:316:1: WINPERF_LOG_DEBUG = 2 // /usr/x86_64-w64-mingw32/include/winperf.h:189:1: @@ -17158,9 +17167,9 @@ const ( WINPERF_LOG_VERBOSE = 3 // /usr/x86_64-w64-mingw32/include/winperf.h:190:1: WINPTHREAD_API = 0 // /usr/x86_64-w64-mingw32/include/pthread_time.h:80:1: WINSCARDAPI = 0 // /usr/x86_64-w64-mingw32/include/winscard.h:31:1: - WINSHM_RDLCK = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:46705:1: - WINSHM_UNLCK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:46704:1: - WINSHM_WRLCK = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:46706:1: + WINSHM_RDLCK = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:47344:1: + WINSHM_UNLCK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:47343:1: + WINSHM_WRLCK = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:47345:1: WINSTA_ACCESSCLIPBOARD = 4 // /usr/x86_64-w64-mingw32/include/winuser.h:819:1: WINSTA_ACCESSGLOBALATOMS = 32 // /usr/x86_64-w64-mingw32/include/winuser.h:822:1: WINSTA_ALL_ACCESS = 895 // /usr/x86_64-w64-mingw32/include/winuser.h:826:1: @@ -17173,8 +17182,8 @@ const ( WINSTA_WRITEATTRIBUTES = 16 // /usr/x86_64-w64-mingw32/include/winuser.h:821:1: WINVER = 1282 // /usr/x86_64-w64-mingw32/include/sdkddkver.h:181:1: WIN_PTHREADS_TIME_H = 0 // /usr/x86_64-w64-mingw32/include/pthread_time.h:26:1: - WIN_SHM_BASE = 120 // testdata/sqlite-amalgamation-3380500/sqlite3.c:46698:1: - WIN_SHM_DMS = 128 // testdata/sqlite-amalgamation-3380500/sqlite3.c:46699:1: + WIN_SHM_BASE = 120 // testdata/sqlite-amalgamation-3390200/sqlite3.c:47337:1: + WIN_SHM_DMS = 128 // testdata/sqlite-amalgamation-3390200/sqlite3.c:47338:1: WIZ_BODYCX = 184 // /usr/x86_64-w64-mingw32/include/prsht.h:469:1: WIZ_BODYX = 92 // /usr/x86_64-w64-mingw32/include/prsht.h:468:1: WIZ_CXBMP = 80 // /usr/x86_64-w64-mingw32/include/prsht.h:466:1: @@ -17570,30 +17579,31 @@ const ( WOW64_CONTEXT_i486 = 0x00010000 // /usr/x86_64-w64-mingw32/include/winnt.h:9154:1: WOW64_MAXIMUM_SUPPORTED_EXTENSION = 512 // /usr/x86_64-w64-mingw32/include/winnt.h:9172:1: WOW64_SIZE_OF_80387_REGISTERS = 80 // /usr/x86_64-w64-mingw32/include/winnt.h:9171:1: - WO_ALL = 0x1fff // testdata/sqlite-amalgamation-3380500/sqlite3.c:147476:1: - WO_AND = 0x0400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147472:1: - WO_AUX = 0x0040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147468:1: - WO_EQ = 0x0002 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147463:1: - WO_EQUIV = 0x0800 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147473:1: - WO_GE = 32 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147467:1: - WO_GT = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147466:1: - WO_IN = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147462:1: - WO_IS = 0x0080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147469:1: - WO_ISNULL = 0x0100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147470:1: - WO_LE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147465:1: - WO_LT = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147464:1: - WO_NOOP = 0x1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147474:1: - WO_OR = 0x0200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:147471:1: - WO_SINGLE = 0x01ff // testdata/sqlite-amalgamation-3380500/sqlite3.c:147477:1: + WO_ALL = 0x3fff // testdata/sqlite-amalgamation-3390200/sqlite3.c:149144:1: + WO_AND = 0x0400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149139:1: + WO_AUX = 0x0040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149135:1: + WO_EQ = 0x0002 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149130:1: + WO_EQUIV = 0x0800 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149140:1: + WO_GE = 32 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149134:1: + WO_GT = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149133:1: + WO_IN = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149129:1: + WO_IS = 0x0080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149136:1: + WO_ISNULL = 0x0100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149137:1: + WO_LE = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149132:1: + WO_LT = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149131:1: + WO_NOOP = 0x1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149141:1: + WO_OR = 0x0200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149138:1: + WO_ROWVAL = 0x2000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:149142:1: + WO_SINGLE = 0x01ff // testdata/sqlite-amalgamation-3390200/sqlite3.c:149145:1: WPF_ASYNCWINDOWPLACEMENT = 0x0004 // /usr/x86_64-w64-mingw32/include/winuser.h:1878:1: WPF_RESTORETOMAXIMIZED = 0x0002 // /usr/x86_64-w64-mingw32/include/winuser.h:1877:1: WPF_SETMINPOSITION = 0x0001 // /usr/x86_64-w64-mingw32/include/winuser.h:1876:1: - WRC_Abort = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19309:1: - WRC_Continue = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19307:1: - WRC_Prune = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:19308:1: + WRC_Abort = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19414:1: + WRC_Continue = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19412:1: + WRC_Prune = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:19413:1: WRITE_COMPRESSION_INFO_VALID = 0x00000010 // /usr/x86_64-w64-mingw32/include/winioctl.h:281:1: WRITE_DAC = 262144 // /usr/x86_64-w64-mingw32/include/winnt.h:2881:1: - WRITE_LOCK = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65452:1: + WRITE_LOCK = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66093:1: WRITE_OWNER = 524288 // /usr/x86_64-w64-mingw32/include/winnt.h:2882:1: WRITE_RESTRICTED = 0x8 // /usr/x86_64-w64-mingw32/include/winnt.h:4006:1: WRITE_WATCH_FLAG_RESET = 0x01 // /usr/x86_64-w64-mingw32/include/winnt.h:4954:1: @@ -17830,8 +17840,8 @@ const ( XCLASS_FLAGS = 0x4000 // /usr/x86_64-w64-mingw32/include/ddeml.h:111:1: XCLASS_MASK = 0xFC00 // /usr/x86_64-w64-mingw32/include/ddeml.h:108:1: XCLASS_NOTIFICATION = 0x8000 // /usr/x86_64-w64-mingw32/include/ddeml.h:112:1: - XN_EXPR = -2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17886:1: - XN_ROWID = -1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17885:1: + XN_EXPR = -2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17947:1: + XN_ROWID = -1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17946:1: XSTATE_AVX = 2 // /usr/x86_64-w64-mingw32/include/winnt.h:4775:1: XSTATE_GSSE = 2 // /usr/x86_64-w64-mingw32/include/winnt.h:4774:1: XSTATE_LEGACY_FLOATING_POINT = 0 // /usr/x86_64-w64-mingw32/include/winnt.h:4772:1: @@ -17879,31 +17889,31 @@ const ( XTYP_UNREGISTER = 32978 // /usr/x86_64-w64-mingw32/include/ddeml.h:127:1: XTYP_WILDCONNECT = 8418 // /usr/x86_64-w64-mingw32/include/ddeml.h:128:1: XTYP_XACT_COMPLETE = 32896 // /usr/x86_64-w64-mingw32/include/ddeml.h:122:1: - YYFALLBACK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161914:1: - YYNOCODE = 319 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161876:1: - YYNOERRORRECOVERY = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161433:1: - YYNRULE = 402 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161916:1: - YYNRULE_WITH_ACTION = 340 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161917:1: - YYNSTATE = 574 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161915:1: - YYNTOKEN = 185 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161918:1: - YYPARSEFREENEVERNULL = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161444:1: - YYSTACKDEPTH = 100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161902:1: - YYWILDCARD = 101 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161878:1: - YY_ACCEPT_ACTION = 1234 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161923:1: - YY_ACTTAB_COUNT = 2070 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161993:1: - YY_ERROR_ACTION = 1233 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161922:1: - YY_MAX_REDUCE = 1637 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161926:1: - YY_MAX_SHIFT = 573 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161919:1: - YY_MAX_SHIFTREDUCE = 1232 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161921:1: - YY_MIN_REDUCE = 1236 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161925:1: - YY_MIN_SHIFTREDUCE = 831 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161920:1: - YY_NO_ACTION = 1235 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161924:1: - YY_REDUCE_COUNT = 408 // testdata/sqlite-amalgamation-3380500/sqlite3.c:162494:1: - YY_REDUCE_MAX = 1715 // testdata/sqlite-amalgamation-3380500/sqlite3.c:162496:1: - YY_REDUCE_MIN = -267 // testdata/sqlite-amalgamation-3380500/sqlite3.c:162495:1: - YY_SHIFT_COUNT = 573 // testdata/sqlite-amalgamation-3380500/sqlite3.c:162431:1: - YY_SHIFT_MAX = 2045 // testdata/sqlite-amalgamation-3380500/sqlite3.c:162433:1: - YY_SHIFT_MIN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:162432:1: + YYFALLBACK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163939:1: + YYNOCODE = 319 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163900:1: + YYNOERRORRECOVERY = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163457:1: + YYNRULE = 405 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163941:1: + YYNRULE_WITH_ACTION = 342 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163942:1: + YYNSTATE = 576 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163940:1: + YYNTOKEN = 185 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163943:1: + YYPARSEFREENEVERNULL = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163468:1: + YYSTACKDEPTH = 100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163927:1: + YYWILDCARD = 101 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163902:1: + YY_ACCEPT_ACTION = 1241 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163948:1: + YY_ACTTAB_COUNT = 2098 // testdata/sqlite-amalgamation-3390200/sqlite3.c:164018:1: + YY_ERROR_ACTION = 1240 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163947:1: + YY_MAX_REDUCE = 1647 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163951:1: + YY_MAX_SHIFT = 575 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163944:1: + YY_MAX_SHIFTREDUCE = 1239 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163946:1: + YY_MIN_REDUCE = 1243 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163950:1: + YY_MIN_SHIFTREDUCE = 835 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163945:1: + YY_NO_ACTION = 1242 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163949:1: + YY_REDUCE_COUNT = 408 // testdata/sqlite-amalgamation-3390200/sqlite3.c:164525:1: + YY_REDUCE_MAX = 1740 // testdata/sqlite-amalgamation-3390200/sqlite3.c:164527:1: + YY_REDUCE_MIN = -271 // testdata/sqlite-amalgamation-3390200/sqlite3.c:164526:1: + YY_SHIFT_COUNT = 575 // testdata/sqlite-amalgamation-3390200/sqlite3.c:164462:1: + YY_SHIFT_MAX = 2074 // testdata/sqlite-amalgamation-3390200/sqlite3.c:164464:1: + YY_SHIFT_MIN = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:164463:1: ZERO_PADDING = 3 // /usr/x86_64-w64-mingw32/include/wincrypt.h:419:1: X_ADXINTRIN_H_INCLUDED = 0 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/adxintrin.h:29:1: X_AGLOBAL = 0 // /usr/x86_64-w64-mingw32/include/_mingw.h:346:1: @@ -18106,15 +18116,15 @@ const ( X_FPOS_T_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/stdio.h:98:1: X_FREEA_INLINE = 0 // /usr/x86_64-w64-mingw32/include/malloc.h:161:1: X_FREEENTRY = 0 // /usr/x86_64-w64-mingw32/include/malloc.h:40:1: - X_FTS5INT_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:216840:1: - X_FTS5_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:12558:1: - X_FTSINT_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:173995:1: + X_FTS5INT_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:218962:1: + X_FTS5_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:12588:1: + X_FTSINT_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:176112:1: X_FXSRINTRIN_H_INCLUDED = 0 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/fxsrintrin.h:29:1: X_Field_z_ = 0 // /usr/x86_64-w64-mingw32/include/sal.h:217:1: X_GCC_LIMITS_H_ = 0 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include-fixed/limits.h:30:1: X_GCC_MAX_ALIGN_T = 0 // /usr/x86_64-w64-mingw32/include/stddef.h:419:1: X_GFNIINTRIN_H_INCLUDED = 0 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/gfniintrin.h:29:1: - X_GNU_SOURCE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:242:1: + X_GNU_SOURCE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:242:1: X_GUIDDEF_H_ = 0 // /usr/x86_64-w64-mingw32/include/guiddef.h:73:1: X_HEAPAPI_H_ = 0 // /usr/x86_64-w64-mingw32/include/heapapi.h:6:1: X_HEAPBADBEGIN = -3 // /usr/x86_64-w64-mingw32/include/malloc.h:34:1: @@ -18212,8 +18222,8 @@ const ( X_JOBAPISET_H_ = 0 // /usr/x86_64-w64-mingw32/include/jobapi.h:6:1: X_KTMTYPES_ = 0 // /usr/x86_64-w64-mingw32/include/ktmtypes.h:7:1: X_LANGID_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/winnt.h:460:1: - X_LARGEFILE_SOURCE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:201:1: - X_LARGE_FILE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:197:1: + X_LARGEFILE_SOURCE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:201:1: + X_LARGE_FILE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:197:1: X_LARGE_INTEGER_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/winnt.h:500:1: X_LCID_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/winnt.h:455:1: X_LDT_ENTRY_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/winnt.h:2414:1: @@ -18374,7 +18384,7 @@ const ( X_OLE2_H_ = 0 // /usr/x86_64-w64-mingw32/include/ole2.h:8:1: X_OLEAUTO_H_ = 0 // /usr/x86_64-w64-mingw32/include/oleauto.h:7:1: X_ONEXIT_T_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/stdlib.h:48:1: - X_OS_COMMON_H_ = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20638:1: + X_OS_COMMON_H_ = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20780:1: X_OUT_TO_DEFAULT = 0 // /usr/x86_64-w64-mingw32/include/stdlib.h:133:1: X_OUT_TO_MSGBOX = 2 // /usr/x86_64-w64-mingw32/include/stdlib.h:135:1: X_OUT_TO_STDERR = 1 // /usr/x86_64-w64-mingw32/include/stdlib.h:134:1: @@ -18483,9 +18493,9 @@ const ( X_SMMINTRIN_H_INCLUDED = 0 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/smmintrin.h:28:1: X_SPACE = 0x8 // /usr/x86_64-w64-mingw32/include/ctype.h:95:1: X_SPAWNV_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/stdio.h:1567:1: - X_SQLITE3RBU_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:203509:1: - X_SQLITE3RTREE_H_ = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10709:1: - X_SQLITE_OS_H_ = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16188:1: + X_SQLITE3RBU_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:205631:1: + X_SQLITE3RTREE_H_ = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10739:1: + X_SQLITE_OS_H_ = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16232:1: X_SSIZE_T_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/corecrt.h:47:1: X_STDARG_H = 0 // /usr/x86_64-w64-mingw32/include/stdarg.h:36:1: X_STDDEF_H = 0 // /usr/x86_64-w64-mingw32/include/stddef.h:49:1: @@ -18655,7 +18665,7 @@ const ( X_XFORM_ = 0 // /usr/x86_64-w64-mingw32/include/wingdi.h:450:1: X_XHRPLUGGABLEPROTOCOL_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/urlmon.h:9374:1: X_XMMINTRIN_H_INCLUDED = 0 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/xmmintrin.h:28:1: - X_XOPEN_SOURCE = 600 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13528:1: + X_XOPEN_SOURCE = 600 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13558:1: X_XOPMMINTRIN_H_INCLUDED = 0 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/xopintrin.h:29:1: X_XSAVECINTRIN_H_INCLUDED = 0 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/xsavecintrin.h:29:1: X_XSAVEINTRIN_H_INCLUDED = 0 // /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/xsaveintrin.h:29:1: @@ -18667,7 +18677,7 @@ const ( X_tagBLOB_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/wtypesbase.h:379:1: X_tagBSTRBLOB_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/wtypes.h:491:1: X_tagCY_DEFINED = 0 // /usr/x86_64-w64-mingw32/include/wtypes.h:424:1: - BBatch = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:59671:1: + BBatch = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:60312:1: CPRIV_KEY_CACHE_MAX_ITEMS_DEFAULT = 20 // /usr/x86_64-w64-mingw32/include/wincrypt.h:619:1: CPRIV_KEY_CACHE_PURGE_INTERVAL_SECONDS_DEFAULT = 86400 // /usr/x86_64-w64-mingw32/include/wincrypt.h:622:1: CbNDRContext = 20 // /usr/x86_64-w64-mingw32/include/rpcndr.h:137:1: @@ -18726,53 +18736,53 @@ const ( Edt7 = 0x0486 // /usr/x86_64-w64-mingw32/include/dlgs.h:154:1: Edt8 = 0x0487 // /usr/x86_64-w64-mingw32/include/dlgs.h:155:1: Edt9 = 0x0488 // /usr/x86_64-w64-mingw32/include/dlgs.h:156:1: - EtBUFSIZE = 70 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29629:1: - EtCHARX = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29454:1: - EtDECIMAL = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29464:1: - EtDYNSTRING = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29452:1: - EtEXP = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29448:1: - EtFLOAT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29447:1: - EtGENERIC = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29449:1: - EtINVALID = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29466:1: - EtORDINAL = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29463:1: - EtPERCENT = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29453:1: - EtPOINTER = 13 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29461:1: - EtRADIX = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29446:1: - EtSIZE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29450:1: - EtSQLESCAPE = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29456:1: - EtSQLESCAPE2 = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29457:1: - EtSQLESCAPE3 = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29462:1: - EtSRCITEM = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29460:1: - EtSTRING = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29451:1: - EtTOKEN = 11 // testdata/sqlite-amalgamation-3380500/sqlite3.c:29459:1: + EtBUFSIZE = 70 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29828:1: + EtCHARX = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29653:1: + EtDECIMAL = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29663:1: + EtDYNSTRING = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29651:1: + EtEXP = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29647:1: + EtFLOAT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29646:1: + EtGENERIC = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29648:1: + EtINVALID = 17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29665:1: + EtORDINAL = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29662:1: + EtPERCENT = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29652:1: + EtPOINTER = 13 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29660:1: + EtRADIX = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29645:1: + EtSIZE = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29649:1: + EtSQLESCAPE = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29655:1: + EtSQLESCAPE2 = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29656:1: + EtSQLESCAPE3 = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29661:1: + EtSRCITEM = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29659:1: + EtSTRING = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29650:1: + EtTOKEN = 11 // testdata/sqlite-amalgamation-3390200/sqlite3.c:29658:1: Far = 0 // /usr/x86_64-w64-mingw32/include/minwindef.h:73:1: Frm1 = 0x0434 // /usr/x86_64-w64-mingw32/include/dlgs.h:68:1: Frm2 = 0x0435 // /usr/x86_64-w64-mingw32/include/dlgs.h:69:1: Frm3 = 0x0436 // /usr/x86_64-w64-mingw32/include/dlgs.h:70:1: Frm4 = 0x0437 // /usr/x86_64-w64-mingw32/include/dlgs.h:71:1: - Fts5YYNFTS5TOKEN = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217860:1: - Fts5YYNOCODE = 27 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217832:1: - Fts5YYNOERRORRECOVERY = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217735:1: - Fts5YYNRULE = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217858:1: - Fts5YYNRULE_WITH_ACTION = 28 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217859:1: - Fts5YYNSTATE = 35 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217857:1: - Fts5YYPARSEFREENOTNULL = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217746:1: - Fts5YYSTACKDEPTH = 100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217845:1: - Fts5YY_ACCEPT_ACTION = 81 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217865:1: - Fts5YY_ACTTAB_COUNT = 105 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217935:1: - Fts5YY_ERROR_ACTION = 80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217864:1: - Fts5YY_MAX_REDUCE = 110 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217868:1: - Fts5YY_MAX_SHIFT = 34 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217861:1: - Fts5YY_MAX_SHIFTREDUCE = 79 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217863:1: - Fts5YY_MIN_REDUCE = 83 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217867:1: - Fts5YY_MIN_SHIFTREDUCE = 52 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217862:1: - Fts5YY_NO_ACTION = 82 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217866:1: - Fts5YY_REDUCE_COUNT = 17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217973:1: - Fts5YY_REDUCE_MAX = 67 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217975:1: - Fts5YY_REDUCE_MIN = -17 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217974:1: - Fts5YY_SHIFT_COUNT = 34 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217964:1: - Fts5YY_SHIFT_MAX = 93 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217966:1: - Fts5YY_SHIFT_MIN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217965:1: + Fts5YYNFTS5TOKEN = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219982:1: + Fts5YYNOCODE = 27 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219954:1: + Fts5YYNOERRORRECOVERY = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219857:1: + Fts5YYNRULE = 28 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219980:1: + Fts5YYNRULE_WITH_ACTION = 28 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219981:1: + Fts5YYNSTATE = 35 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219979:1: + Fts5YYPARSEFREENOTNULL = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219868:1: + Fts5YYSTACKDEPTH = 100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219967:1: + Fts5YY_ACCEPT_ACTION = 81 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219987:1: + Fts5YY_ACTTAB_COUNT = 105 // testdata/sqlite-amalgamation-3390200/sqlite3.c:220057:1: + Fts5YY_ERROR_ACTION = 80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219986:1: + Fts5YY_MAX_REDUCE = 110 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219990:1: + Fts5YY_MAX_SHIFT = 34 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219983:1: + Fts5YY_MAX_SHIFTREDUCE = 79 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219985:1: + Fts5YY_MIN_REDUCE = 83 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219989:1: + Fts5YY_MIN_SHIFTREDUCE = 52 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219984:1: + Fts5YY_NO_ACTION = 82 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219988:1: + Fts5YY_REDUCE_COUNT = 17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:220095:1: + Fts5YY_REDUCE_MAX = 67 // testdata/sqlite-amalgamation-3390200/sqlite3.c:220097:1: + Fts5YY_REDUCE_MIN = -17 // testdata/sqlite-amalgamation-3390200/sqlite3.c:220096:1: + Fts5YY_SHIFT_COUNT = 34 // testdata/sqlite-amalgamation-3390200/sqlite3.c:220086:1: + Fts5YY_SHIFT_MAX = 93 // testdata/sqlite-amalgamation-3390200/sqlite3.c:220088:1: + Fts5YY_SHIFT_MIN = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:220087:1: Grp1 = 0x0430 // /usr/x86_64-w64-mingw32/include/dlgs.h:64:1: Grp2 = 0x0431 // /usr/x86_64-w64-mingw32/include/dlgs.h:65:1: Grp3 = 0x0432 // /usr/x86_64-w64-mingw32/include/dlgs.h:66:1: @@ -18844,17 +18854,17 @@ const ( Scr6 = 0x0495 // /usr/x86_64-w64-mingw32/include/dlgs.h:170:1: Scr7 = 0x0496 // /usr/x86_64-w64-mingw32/include/dlgs.h:171:1: Scr8 = 0x0497 // /usr/x86_64-w64-mingw32/include/dlgs.h:172:1: - Sqlite3Fts5ParserCTX_FETCH = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217855:1: - Sqlite3Fts5ParserCTX_PARAM = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217854:1: - Sqlite3Fts5ParserCTX_PDECL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217853:1: - Sqlite3Fts5ParserCTX_SDECL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217852:1: - Sqlite3Fts5ParserCTX_STORE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:217856:1: - Sqlite3ParserARG_FETCH = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161907:1: - Sqlite3ParserARG_PARAM = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161906:1: - Sqlite3ParserARG_PDECL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161905:1: - Sqlite3ParserARG_SDECL = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161904:1: - Sqlite3ParserARG_STORE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161908:1: - Sqlite3Parser_ENGINEALWAYSONSTACK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161456:1: + Sqlite3Fts5ParserCTX_FETCH = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219977:1: + Sqlite3Fts5ParserCTX_PARAM = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219976:1: + Sqlite3Fts5ParserCTX_PDECL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219975:1: + Sqlite3Fts5ParserCTX_SDECL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219974:1: + Sqlite3Fts5ParserCTX_STORE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:219978:1: + Sqlite3ParserARG_FETCH = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163932:1: + Sqlite3ParserARG_PARAM = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163931:1: + Sqlite3ParserARG_PDECL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163930:1: + Sqlite3ParserARG_SDECL = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163929:1: + Sqlite3ParserARG_STORE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163933:1: + Sqlite3Parser_ENGINEALWAYSONSTACK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163480:1: Stc1 = 0x0440 // /usr/x86_64-w64-mingw32/include/dlgs.h:81:1: Stc10 = 0x0449 // /usr/x86_64-w64-mingw32/include/dlgs.h:90:1: Stc11 = 0x044a // /usr/x86_64-w64-mingw32/include/dlgs.h:91:1: @@ -19414,17 +19424,17 @@ const ( Sz_CERT_STORE_PROV_SYSTEM_REGISTRY_W = "SystemRegistry" // /usr/x86_64-w64-mingw32/include/wincrypt.h:3774:1: Sz_CERT_STORE_PROV_SYSTEM_W = "System" // /usr/x86_64-w64-mingw32/include/wincrypt.h:3767:1: Tag_inner_PROPVARIANT = 0 // /usr/x86_64-w64-mingw32/include/propidl.h:221:1: - TkCREATE = 4 // testdata/sqlite-amalgamation-3380500/sqlite3.c:168185:1: - TkEND = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:168188:1: - TkEXPLAIN = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:168184:1: - TkOTHER = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:168182:1: - TkSEMI = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:168180:1: - TkTEMP = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:168186:1: - TkTRIGGER = 6 // testdata/sqlite-amalgamation-3380500/sqlite3.c:168187:1: - TkWS = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:168181:1: - WsdAutoextInit = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129676:1: - WsdHooksInit = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:24920:1: - WsdStatInit = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22727:1: + TkCREATE = 4 // testdata/sqlite-amalgamation-3390200/sqlite3.c:170260:1: + TkEND = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:170263:1: + TkEXPLAIN = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:170259:1: + TkOTHER = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:170257:1: + TkSEMI = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:170255:1: + TkTEMP = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:170261:1: + TkTRIGGER = 6 // testdata/sqlite-amalgamation-3390200/sqlite3.c:170262:1: + TkWS = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:170256:1: + WsdAutoextInit = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130932:1: + WsdHooksInit = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:25114:1: + WsdStatInit = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22922:1: ) const ( /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avx512fintrin.h:4271:1: */ @@ -22195,7 +22205,7 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */ // ***************************************************************************** // // This file is an amalgamation of many separate C source files from SQLite -// version 3.38.5. By combining all the individual C code files into this +// version 3.39.2. By combining all the individual C code files into this // single large file, the entire code can be compiled as a single translation // unit. This allows many compilers to do optimizations that would not be // possible if the files were compiled separately. Performance improvements @@ -22538,12 +22548,10 @@ type X__gnuc_va_list = X__builtin_va_list /* /usr/x86_64-w64-mingw32/include/std // the header, and thus ensure that the application is // compiled with matching library and header files. // -// // assert( sqlite3_libversion_number()==SQLITE_VERSION_NUMBER ); // assert( strncmp(sqlite3_sourceid(),SQLITE_SOURCE_ID,80)==0 ); // assert( strcmp(sqlite3_libversion(),SQLITE_VERSION)==0 ); // -// // ^The sqlite3_version[] string constant contains the text of [SQLITE_VERSION] // macro. ^The sqlite3_libversion() function returns a pointer to the // to the sqlite3_version[] string constant. The sqlite3_libversion() @@ -22557,7 +22565,7 @@ type X__gnuc_va_list = X__builtin_va_list /* /usr/x86_64-w64-mingw32/include/std // of the hash might be different from [SQLITE_SOURCE_ID].)^ // // See also: [sqlite_version()] and [sqlite_source_id()]. -var Xsqlite3_version = *(*[7]int8)(unsafe.Pointer(ts)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:491:23 */ +var Xsqlite3_version = *(*[7]int8)(unsafe.Pointer(ts)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:491:23 */ // CAPI3REF: Database Connection Handle // KEYWORDS: {database connection} {database connections} @@ -22682,7 +22690,7 @@ type sqlite3 = struct { FpUnlockArg uintptr FxUnlockNotify uintptr FpNextBlocked uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // CAPI3REF: Database Connection Handle // KEYWORDS: {database connection} {database connections} @@ -22696,7 +22704,7 @@ type sqlite3 = struct { // [sqlite3_prepare_v2()], [sqlite3_create_function()], and // [sqlite3_busy_timeout()] to name but three) that are methods on an // sqlite3 object. -type Sqlite3 = sqlite3 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:24 */ +type Sqlite3 = sqlite3 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:24 */ // CAPI3REF: 64-Bit Integer Types // KEYWORDS: sqlite_int64 sqlite_uint64 @@ -22712,15 +22720,15 @@ type Sqlite3 = sqlite3 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:24 // between -9223372036854775808 and +9223372036854775807 inclusive. ^The // sqlite3_uint64 and sqlite_uint64 types can store integer values // between 0 and +18446744073709551615 inclusive. -type Sqlite_int64 = int64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:604:19 */ -type Sqlite_uint64 = uint64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:605:28 */ -type Sqlite3_int64 = Sqlite_int64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:610:22 */ -type Sqlite3_uint64 = Sqlite_uint64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:611:23 */ +type Sqlite_int64 = int64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:604:19 */ +type Sqlite_uint64 = uint64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:605:28 */ +type Sqlite3_int64 = Sqlite_int64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:610:22 */ +type Sqlite3_uint64 = Sqlite_uint64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:611:23 */ // The type for a callback function. // This is legacy and deprecated. It is included for historical // compatibility and is not documented. -type Sqlite3_callback = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:667:13 */ +type Sqlite3_callback = uintptr /* testdata/sqlite-amalgamation-3390200/sqlite3.c:667:13 */ // CAPI3REF: Result Codes // KEYWORDS: {result code definitions} @@ -22844,7 +22852,7 @@ type Sqlite3_callback = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3. // for their own use. The pMethods entry is a pointer to an // [sqlite3_io_methods] object that defines methods for performing // I/O operations on the open file. -type sqlite3_file = struct{ FpMethods uintptr } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +type sqlite3_file = struct{ FpMethods uintptr } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // CAPI3REF: Result Codes // KEYWORDS: {result code definitions} @@ -22968,7 +22976,7 @@ type sqlite3_file = struct{ FpMethods uintptr } /* testdata/sqlite-amalgamation- // for their own use. The pMethods entry is a pointer to an // [sqlite3_io_methods] object that defines methods for performing // I/O operations on the open file. -type Sqlite3_file = sqlite3_file /* testdata/sqlite-amalgamation-3380500/sqlite3.c:1028:29 */ +type Sqlite3_file = sqlite3_file /* testdata/sqlite-amalgamation-3390200/sqlite3.c:1028:29 */ type sqlite3_io_methods = struct { FiVersion int32 F__ccgo_pad1 [4]byte @@ -22990,7 +22998,7 @@ type sqlite3_io_methods = struct { FxShmUnmap uintptr FxFetch uintptr FxUnfetch uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // CAPI3REF: OS Interface File Virtual Methods Object // @@ -23084,7 +23092,7 @@ type sqlite3_io_methods = struct { // fails to zero-fill short reads might seem to work. However, // failure to zero-fill short reads will eventually lead to // database corruption. -type Sqlite3_io_methods = sqlite3_io_methods /* testdata/sqlite-amalgamation-3380500/sqlite3.c:1127:35 */ +type Sqlite3_io_methods = sqlite3_io_methods /* testdata/sqlite-amalgamation-3390200/sqlite3.c:1127:35 */ // CAPI3REF: Loadable Extension Thunk // @@ -23355,7 +23363,10 @@ type sqlite3_api_routines = struct { Fvtab_in uintptr Fvtab_in_first uintptr Fvtab_in_next uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:1560:9 */ + Fdeserialize uintptr + Fserialize uintptr + Fdb_name uintptr +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:1560:9 */ // CAPI3REF: Loadable Extension Thunk // @@ -23363,7 +23374,7 @@ type sqlite3_api_routines = struct { // the third parameter to entry points of [loadable extensions]. This // structure must be typedefed in order to work around compiler warnings // on some platforms. -type Sqlite3_api_routines = sqlite3_api_routines /* testdata/sqlite-amalgamation-3380500/sqlite3.c:1560:37 */ +type Sqlite3_api_routines = sqlite3_api_routines /* testdata/sqlite-amalgamation-3390200/sqlite3.c:1560:37 */ // CAPI3REF: OS Interface Object // @@ -23556,7 +23567,7 @@ type sqlite3_vfs = struct { FxSetSystemCall uintptr FxGetSystemCall uintptr FxNextSystemCall uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // CAPI3REF: OS Interface Object // @@ -23725,8 +23736,8 @@ type sqlite3_vfs = struct { // or all of these interfaces to be NULL or for their behavior to change // from one release to the next. Applications must not attempt to access // any of these methods if the iVersion of the VFS is less than 3. -type Sqlite3_vfs = sqlite3_vfs /* testdata/sqlite-amalgamation-3380500/sqlite3.c:1731:28 */ -type Sqlite3_syscall_ptr = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:1732:14 */ +type Sqlite3_vfs = sqlite3_vfs /* testdata/sqlite-amalgamation-3390200/sqlite3.c:1731:28 */ +type Sqlite3_syscall_ptr = uintptr /* testdata/sqlite-amalgamation-3390200/sqlite3.c:1732:14 */ // CAPI3REF: Memory Allocation Routines // @@ -23798,7 +23809,7 @@ type sqlite3_mem_methods = struct { FxInit uintptr FxShutdown uintptr FpAppData uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:2029:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:2029:9 */ // CAPI3REF: Memory Allocation Routines // @@ -23861,7 +23872,7 @@ type sqlite3_mem_methods = struct { // // SQLite will never invoke xInit() more than once without an intervening // call to xShutdown(). -type Sqlite3_mem_methods = sqlite3_mem_methods /* testdata/sqlite-amalgamation-3380500/sqlite3.c:2029:36 */ +type Sqlite3_mem_methods = sqlite3_mem_methods /* testdata/sqlite-amalgamation-3390200/sqlite3.c:2029:36 */ // CAPI3REF: Dynamically Typed Value Object // KEYWORDS: {protected sqlite3_value} {unprotected sqlite3_value} @@ -23905,17 +23916,17 @@ type Sqlite3_mem_methods = sqlite3_mem_methods /* testdata/sqlite-amalgamation-3 // interfaces require protected sqlite3_value objects. type sqlite3_value = struct { Fu struct{ Fr float64 } + Fz uintptr + Fn int32 Fflags U16 Fenc U8 FeSubtype U8 - Fn int32 - Fz uintptr - FzMalloc uintptr + Fdb uintptr FszMalloc int32 FuTemp U32 - Fdb uintptr + FzMalloc uintptr FxDel uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // CAPI3REF: Dynamically Typed Value Object // KEYWORDS: {protected sqlite3_value} {unprotected sqlite3_value} @@ -23957,7 +23968,7 @@ type sqlite3_value = struct { // [sqlite3_value_dup()]. // The [sqlite3_value_blob | sqlite3_value_type()] family of // interfaces require protected sqlite3_value objects. -type Sqlite3_value = sqlite3_value /* testdata/sqlite-amalgamation-3380500/sqlite3.c:4675:30 */ +type Sqlite3_value = sqlite3_value /* testdata/sqlite-amalgamation-3390200/sqlite3.c:4675:30 */ // CAPI3REF: SQL Function Context Object // @@ -23976,11 +23987,12 @@ type sqlite3_context = struct { FpVdbe uintptr FiOp int32 FisError int32 + Fenc U8 FskipFlag U8 Fargc U8 - F__ccgo_pad1 [6]byte + F__ccgo_pad1 [5]byte Fargv [1]uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // CAPI3REF: SQL Function Context Object // @@ -23992,7 +24004,7 @@ type sqlite3_context = struct { // [sqlite3_aggregate_context()], [sqlite3_user_data()], // [sqlite3_context_db_handle()], [sqlite3_get_auxdata()], // and/or [sqlite3_set_auxdata()]. -type Sqlite3_context = sqlite3_context /* testdata/sqlite-amalgamation-3380500/sqlite3.c:4689:32 */ +type Sqlite3_context = sqlite3_context /* testdata/sqlite-amalgamation-3390200/sqlite3.c:4689:32 */ // CAPI3REF: Constants Defining Special Destructor Behavior // @@ -24006,7 +24018,7 @@ type Sqlite3_context = sqlite3_context /* testdata/sqlite-amalgamation-3380500/s // // The typedef is necessary to work around problems in certain // C++ compilers. -type Sqlite3_destructor_type = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:6058:14 */ +type Sqlite3_destructor_type = uintptr /* testdata/sqlite-amalgamation-3390200/sqlite3.c:6059:14 */ // The interface to the virtual-table mechanism is currently considered // to be experimental. The interface might change in incompatible ways. @@ -24021,7 +24033,7 @@ type sqlite3_vtab = struct { FnRef int32 F__ccgo_pad1 [4]byte FzErrMsg uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // The interface to the virtual-table mechanism is currently considered // to be experimental. The interface might change in incompatible ways. @@ -24031,7 +24043,7 @@ type sqlite3_vtab = struct { // interface fixed, support it indefinitely, and remove this comment. // Structures used by the virtual table interface -type Sqlite3_vtab = sqlite3_vtab /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7243:29 */ +type Sqlite3_vtab = sqlite3_vtab /* testdata/sqlite-amalgamation-3390200/sqlite3.c:7266:29 */ type sqlite3_index_info = struct { FnConstraint int32 F__ccgo_pad1 [4]byte @@ -24050,12 +24062,12 @@ type sqlite3_index_info = struct { FidxFlags int32 F__ccgo_pad4 [4]byte FcolUsed Sqlite3_uint64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7244:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:7267:9 */ -type Sqlite3_index_info = sqlite3_index_info /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7244:35 */ -type sqlite3_vtab_cursor = struct{ FpVtab uintptr } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7245:9 */ +type Sqlite3_index_info = sqlite3_index_info /* testdata/sqlite-amalgamation-3390200/sqlite3.c:7267:35 */ +type sqlite3_vtab_cursor = struct{ FpVtab uintptr } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:7268:9 */ -type Sqlite3_vtab_cursor = sqlite3_vtab_cursor /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7245:36 */ +type Sqlite3_vtab_cursor = sqlite3_vtab_cursor /* testdata/sqlite-amalgamation-3390200/sqlite3.c:7268:36 */ type sqlite3_module = struct { FiVersion int32 F__ccgo_pad1 [4]byte @@ -24082,9 +24094,9 @@ type sqlite3_module = struct { FxRelease uintptr FxRollbackTo uintptr FxShadowName uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Sqlite3_module = sqlite3_module /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7246:31 */ +type Sqlite3_module = sqlite3_module /* testdata/sqlite-amalgamation-3390200/sqlite3.c:7269:31 */ // CAPI3REF: Virtual Table Indexing Information // KEYWORDS: sqlite3_index_info @@ -24192,7 +24204,7 @@ type sqlite3_index_constraint = struct { Fusable uint8 F__ccgo_pad1 [2]byte FiTermOffset int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7244:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:7267:9 */ // CAPI3REF: Virtual Table Indexing Information // KEYWORDS: sqlite3_index_info @@ -24298,7 +24310,7 @@ type sqlite3_index_orderby = struct { FiColumn int32 Fdesc uint8 F__ccgo_pad1 [3]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7244:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:7267:9 */ // CAPI3REF: Virtual Table Indexing Information // KEYWORDS: sqlite3_index_info @@ -24404,7 +24416,7 @@ type sqlite3_index_constraint_usage = struct { FargvIndex int32 Fomit uint8 F__ccgo_pad1 [3]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:7244:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:7267:9 */ // CAPI3REF: Mutex Methods Object // @@ -24438,13 +24450,15 @@ type sqlite3_index_constraint_usage = struct { // xMutexNotheld) implement the following interfaces (respectively): // // <ul> -// <li> [sqlite3_mutex_alloc()] </li> -// <li> [sqlite3_mutex_free()] </li> -// <li> [sqlite3_mutex_enter()] </li> -// <li> [sqlite3_mutex_try()] </li> -// <li> [sqlite3_mutex_leave()] </li> -// <li> [sqlite3_mutex_held()] </li> -// <li> [sqlite3_mutex_notheld()] </li> +// +// <li> [sqlite3_mutex_alloc()] </li> +// <li> [sqlite3_mutex_free()] </li> +// <li> [sqlite3_mutex_enter()] </li> +// <li> [sqlite3_mutex_try()] </li> +// <li> [sqlite3_mutex_leave()] </li> +// <li> [sqlite3_mutex_held()] </li> +// <li> [sqlite3_mutex_notheld()] </li> +// // </ul>)^ // // The only difference is that the public sqlite3_XXX functions enumerated @@ -24479,7 +24493,7 @@ type sqlite3_mutex_methods = struct { FxMutexLeave uintptr FxMutexHeld uintptr FxMutexNotheld uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:8110:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:8133:9 */ // CAPI3REF: Mutex Methods Object // @@ -24513,13 +24527,15 @@ type sqlite3_mutex_methods = struct { // xMutexNotheld) implement the following interfaces (respectively): // // <ul> -// <li> [sqlite3_mutex_alloc()] </li> -// <li> [sqlite3_mutex_free()] </li> -// <li> [sqlite3_mutex_enter()] </li> -// <li> [sqlite3_mutex_try()] </li> -// <li> [sqlite3_mutex_leave()] </li> -// <li> [sqlite3_mutex_held()] </li> -// <li> [sqlite3_mutex_notheld()] </li> +// +// <li> [sqlite3_mutex_alloc()] </li> +// <li> [sqlite3_mutex_free()] </li> +// <li> [sqlite3_mutex_enter()] </li> +// <li> [sqlite3_mutex_try()] </li> +// <li> [sqlite3_mutex_leave()] </li> +// <li> [sqlite3_mutex_held()] </li> +// <li> [sqlite3_mutex_notheld()] </li> +// // </ul>)^ // // The only difference is that the public sqlite3_XXX functions enumerated @@ -24544,7 +24560,7 @@ type sqlite3_mutex_methods = struct { // called, but only if the prior call to xMutexInit returned SQLITE_OK. // If xMutexInit fails in any way, it is expected to clean up after itself // prior to returning. -type Sqlite3_mutex_methods = sqlite3_mutex_methods /* testdata/sqlite-amalgamation-3380500/sqlite3.c:8110:38 */ +type Sqlite3_mutex_methods = sqlite3_mutex_methods /* testdata/sqlite-amalgamation-3390200/sqlite3.c:8133:38 */ // CAPI3REF: Dynamic String Object // KEYWORDS: {dynamic string} @@ -24569,7 +24585,7 @@ type sqlite3_str = struct { FaccError U8 FprintfFlags U8 F__ccgo_pad1 [2]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:8374:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:8397:9 */ // CAPI3REF: Dynamic String Object // KEYWORDS: {dynamic string} @@ -24585,7 +24601,7 @@ type sqlite3_str = struct { // <li> ^The sqlite3_str object is destroyed and the string it created // is returned using the [sqlite3_str_finish()] interface. // </ol> -type Sqlite3_str = sqlite3_str /* testdata/sqlite-amalgamation-3380500/sqlite3.c:8374:28 */ +type Sqlite3_str = sqlite3_str /* testdata/sqlite-amalgamation-3390200/sqlite3.c:8397:28 */ // CAPI3REF: Custom Page Cache Object // @@ -24598,7 +24614,7 @@ type Sqlite3_str = sqlite3_str /* testdata/sqlite-amalgamation-3380500/sqlite3.c type sqlite3_pcache_page = struct { FpBuf uintptr FpExtra uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // CAPI3REF: Custom Page Cache Object // @@ -24608,7 +24624,7 @@ type sqlite3_pcache_page = struct { // of this object as parameters or as their return value. // // See [sqlite3_pcache_methods2] for additional information. -type Sqlite3_pcache_page = sqlite3_pcache_page /* testdata/sqlite-amalgamation-3380500/sqlite3.c:8879:36 */ +type Sqlite3_pcache_page = sqlite3_pcache_page /* testdata/sqlite-amalgamation-3390200/sqlite3.c:8902:36 */ // CAPI3REF: Application Defined Page Cache. // KEYWORDS: {page cache} @@ -24718,9 +24734,13 @@ type Sqlite3_pcache_page = sqlite3_pcache_page /* testdata/sqlite-amalgamation-3 // <tr><th> createFlag <th> Behavior when page is not already in cache // <tr><td> 0 <td> Do not allocate a new page. Return NULL. // <tr><td> 1 <td> Allocate a new page if it easy and convenient to do so. -// Otherwise return NULL. +// +// Otherwise return NULL. +// // <tr><td> 2 <td> Make every effort to allocate a new page. Only return -// NULL if allocating a new page is effectively impossible. +// +// NULL if allocating a new page is effectively impossible. +// // </table> // // ^(SQLite will normally invoke xFetch() with a createFlag of 0 or 1. SQLite @@ -24782,7 +24802,7 @@ type sqlite3_pcache_methods2 = struct { FxTruncate uintptr FxDestroy uintptr FxShrink uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:9044:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:9067:9 */ // CAPI3REF: Application Defined Page Cache. // KEYWORDS: {page cache} @@ -24892,9 +24912,13 @@ type sqlite3_pcache_methods2 = struct { // <tr><th> createFlag <th> Behavior when page is not already in cache // <tr><td> 0 <td> Do not allocate a new page. Return NULL. // <tr><td> 1 <td> Allocate a new page if it easy and convenient to do so. -// Otherwise return NULL. +// +// Otherwise return NULL. +// // <tr><td> 2 <td> Make every effort to allocate a new page. Only return -// NULL if allocating a new page is effectively impossible. +// +// NULL if allocating a new page is effectively impossible. +// // </table> // // ^(SQLite will normally invoke xFetch() with a createFlag of 0 or 1. SQLite @@ -24941,7 +24965,7 @@ type sqlite3_pcache_methods2 = struct { // free up as much of heap memory as possible. The page cache implementation // is not obligated to free any memory, but well-behaved implementations should // do their best. -type Sqlite3_pcache_methods2 = sqlite3_pcache_methods2 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:9044:40 */ +type Sqlite3_pcache_methods2 = sqlite3_pcache_methods2 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:9067:40 */ // This is the obsolete pcache_methods object that has now been replaced // by sqlite3_pcache_methods2. This object is not used by SQLite. It is @@ -24958,12 +24982,12 @@ type sqlite3_pcache_methods = struct { FxRekey uintptr FxTruncate uintptr FxDestroy uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:9067:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:9090:9 */ // This is the obsolete pcache_methods object that has now been replaced // by sqlite3_pcache_methods2. This object is not used by SQLite. It is // retained in the header file for backwards compatibility only. -type Sqlite3_pcache_methods = sqlite3_pcache_methods /* testdata/sqlite-amalgamation-3380500/sqlite3.c:9067:39 */ +type Sqlite3_pcache_methods = sqlite3_pcache_methods /* testdata/sqlite-amalgamation-3390200/sqlite3.c:9090:39 */ // CAPI3REF: Online Backup Object // @@ -24987,7 +25011,7 @@ type sqlite3_backup = struct { FnPagecount Pgno FisAttached int32 FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // CAPI3REF: Online Backup Object // @@ -24997,7 +25021,7 @@ type sqlite3_backup = struct { // [sqlite3_backup_finish()]. // // See Also: [Using the SQLite Online Backup API] -type Sqlite3_backup = sqlite3_backup /* testdata/sqlite-amalgamation-3380500/sqlite3.c:9093:31 */ +type Sqlite3_backup = sqlite3_backup /* testdata/sqlite-amalgamation-3390200/sqlite3.c:9116:31 */ // CAPI3REF: Database Snapshot // KEYWORDS: {snapshot} {sqlite3_snapshot} @@ -25017,7 +25041,7 @@ type Sqlite3_backup = sqlite3_backup /* testdata/sqlite-amalgamation-3380500/sql // version of the database file so that it is possible to later open a new read // transaction that sees that historical version of the database rather than // the most recent version. -type sqlite3_snapshot = struct{ Fhidden [48]uint8 } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10385:9 */ +type sqlite3_snapshot = struct{ Fhidden [48]uint8 } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10415:9 */ // CAPI3REF: Database Snapshot // KEYWORDS: {snapshot} {sqlite3_snapshot} @@ -25037,7 +25061,7 @@ type sqlite3_snapshot = struct{ Fhidden [48]uint8 } /* testdata/sqlite-amalgamat // version of the database file so that it is possible to later open a new read // transaction that sees that historical version of the database rather than // the most recent version. -type Sqlite3_snapshot = sqlite3_snapshot /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10387:3 */ +type Sqlite3_snapshot = sqlite3_snapshot /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10417:3 */ // CAPI3REF: Flags for sqlite3_deserialize() // @@ -25081,7 +25105,7 @@ type sqlite3_rtree_geometry = struct { FaParam uintptr FpUser uintptr FxDelUser uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10716:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10746:9 */ // CAPI3REF: Flags for sqlite3_deserialize() // @@ -25118,7 +25142,7 @@ type sqlite3_rtree_geometry = struct { // // -type Sqlite3_rtree_geometry = sqlite3_rtree_geometry /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10716:39 */ +type Sqlite3_rtree_geometry = sqlite3_rtree_geometry /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10746:39 */ type sqlite3_rtree_query_info = struct { FpContext uintptr FnParam int32 @@ -25138,13 +25162,13 @@ type sqlite3_rtree_query_info = struct { FeWithin int32 FrScore Sqlite3_rtree_dbl FapSqlParam uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10717:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10747:9 */ -type Sqlite3_rtree_query_info = sqlite3_rtree_query_info /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10717:41 */ +type Sqlite3_rtree_query_info = sqlite3_rtree_query_info /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10747:41 */ // The double-precision datatype used by RTree depends on the // SQLITE_RTREE_INT_ONLY compile-time option. -type Sqlite3_rtree_dbl = float64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10725:18 */ +type Sqlite3_rtree_dbl = float64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10755:18 */ // Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin. @@ -25174,7 +25198,7 @@ type sqlite3_session = struct { FpNext uintptr FpTable uintptr Fhook SessionHook -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10832:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10862:9 */ // Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin. @@ -25187,7 +25211,7 @@ type sqlite3_session = struct { // // An instance of this object is a [session] that can be used to // record changes to a database. -type Sqlite3_session = sqlite3_session /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10832:32 */ +type Sqlite3_session = sqlite3_session /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10862:32 */ // CAPI3REF: Changeset Iterator Handle // @@ -25208,13 +25232,13 @@ type sqlite3_changeset_iter = struct { F__ccgo_pad1 [4]byte FabPK uintptr FapValue uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10840:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10870:9 */ // CAPI3REF: Changeset Iterator Handle // // An instance of this object acts as a cursor for iterating // over the elements of a [changeset] or [patchset]. -type Sqlite3_changeset_iter = sqlite3_changeset_iter /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10840:39 */ +type Sqlite3_changeset_iter = sqlite3_changeset_iter /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10870:39 */ // CAPI3REF: Changegroup Handle // @@ -25224,13 +25248,13 @@ type sqlite3_changegroup = struct { Frc int32 FbPatch int32 FpList uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:11692:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:11722:9 */ // CAPI3REF: Changegroup Handle // // A changegroup is an object used to combine two or more // [changesets] or [patchsets] -type Sqlite3_changegroup = sqlite3_changegroup /* testdata/sqlite-amalgamation-3380500/sqlite3.c:11692:36 */ +type Sqlite3_changegroup = sqlite3_changegroup /* testdata/sqlite-amalgamation-3390200/sqlite3.c:11722:36 */ // CAPI3REF: Flags for sqlite3changeset_apply_v2 // @@ -25353,46 +25377,50 @@ type Sqlite3_changegroup = sqlite3_changegroup /* testdata/sqlite-amalgamation-3 // For example, if both the local and remote changesets contain an // INSERT of the same key on "CREATE TABLE t1(a PRIMARY KEY, b)": // -// local: INSERT INTO t1 VALUES(1, 'v1'); -// remote: INSERT INTO t1 VALUES(1, 'v2'); +// local: INSERT INTO t1 VALUES(1, 'v1'); +// remote: INSERT INTO t1 VALUES(1, 'v2'); // // and the conflict resolution is REPLACE, then the INSERT change is // removed from the local changeset (it was overridden). Or, if the // conflict resolution was "OMIT", then the local changeset is modified // to instead contain: // -// UPDATE t1 SET b = 'v2' WHERE a=1; +// UPDATE t1 SET b = 'v2' WHERE a=1; // // Changes within the local changeset are rebased as follows: // // <dl> // <dt>Local INSERT<dd> -// This may only conflict with a remote INSERT. If the conflict -// resolution was OMIT, then add an UPDATE change to the rebased -// changeset. Or, if the conflict resolution was REPLACE, add -// nothing to the rebased changeset. +// +// This may only conflict with a remote INSERT. If the conflict +// resolution was OMIT, then add an UPDATE change to the rebased +// changeset. Or, if the conflict resolution was REPLACE, add +// nothing to the rebased changeset. // // <dt>Local DELETE<dd> -// This may conflict with a remote UPDATE or DELETE. In both cases the -// only possible resolution is OMIT. If the remote operation was a -// DELETE, then add no change to the rebased changeset. If the remote -// operation was an UPDATE, then the old.* fields of change are updated -// to reflect the new.* values in the UPDATE. +// +// This may conflict with a remote UPDATE or DELETE. In both cases the +// only possible resolution is OMIT. If the remote operation was a +// DELETE, then add no change to the rebased changeset. If the remote +// operation was an UPDATE, then the old.* fields of change are updated +// to reflect the new.* values in the UPDATE. // // <dt>Local UPDATE<dd> -// This may conflict with a remote UPDATE or DELETE. If it conflicts -// with a DELETE, and the conflict resolution was OMIT, then the update -// is changed into an INSERT. Any undefined values in the new.* record -// from the update change are filled in using the old.* values from -// the conflicting DELETE. Or, if the conflict resolution was REPLACE, -// the UPDATE change is simply omitted from the rebased changeset. -// -// If conflict is with a remote UPDATE and the resolution is OMIT, then -// the old.* values are rebased using the new.* values in the remote -// change. Or, if the resolution is REPLACE, then the change is copied -// into the rebased changeset with updates to columns also updated by -// the conflicting remote UPDATE removed. If this means no columns would -// be updated, the change is omitted. +// +// This may conflict with a remote UPDATE or DELETE. If it conflicts +// with a DELETE, and the conflict resolution was OMIT, then the update +// is changed into an INSERT. Any undefined values in the new.* record +// from the update change are filled in using the old.* values from +// the conflicting DELETE. Or, if the conflict resolution was REPLACE, +// the UPDATE change is simply omitted from the rebased changeset. +// +// If conflict is with a remote UPDATE and the resolution is OMIT, then +// the old.* values are rebased using the new.* values in the remote +// change. Or, if the resolution is REPLACE, then the change is copied +// into the rebased changeset with updates to columns also updated by +// the conflicting remote UPDATE removed. If this means no columns would +// be updated, the change is omitted. +// // </dl> // // A local change may be rebased against multiple remote changes @@ -25401,12 +25429,14 @@ type Sqlite3_changegroup = sqlite3_changegroup /* testdata/sqlite-amalgamation-3 // is rebased: // // <ul> -// <li> If there has been one or more REPLACE resolutions on a -// key, it is rebased according to a REPLACE. // -// <li> If there have been no REPLACE resolutions on a key, then -// the local changeset is rebased according to the most recent -// of the OMIT resolutions. +// <li> If there has been one or more REPLACE resolutions on a +// key, it is rebased according to a REPLACE. +// +// <li> If there have been no REPLACE resolutions on a key, then +// the local changeset is rebased according to the most recent +// of the OMIT resolutions. +// // </ul> // // Note that conflict resolutions from multiple remote changesets are @@ -25420,19 +25450,21 @@ type Sqlite3_changegroup = sqlite3_changegroup /* testdata/sqlite-amalgamation-3 // the buffer of rebase information captured. Then: // // <ol> -// <li> An sqlite3_rebaser object is created by calling -// sqlite3rebaser_create(). -// <li> The new object is configured with the rebase buffer obtained from -// sqlite3changeset_apply_v2() by calling sqlite3rebaser_configure(). -// If the local changeset is to be rebased against multiple remote -// changesets, then sqlite3rebaser_configure() should be called -// multiple times, in the same order that the multiple -// sqlite3changeset_apply_v2() calls were made. -// <li> Each local changeset is rebased by calling sqlite3rebaser_rebase(). -// <li> The sqlite3_rebaser object is deleted by calling -// sqlite3rebaser_delete(). +// +// <li> An sqlite3_rebaser object is created by calling +// sqlite3rebaser_create(). +// <li> The new object is configured with the rebase buffer obtained from +// sqlite3changeset_apply_v2() by calling sqlite3rebaser_configure(). +// If the local changeset is to be rebased against multiple remote +// changesets, then sqlite3rebaser_configure() should be called +// multiple times, in the same order that the multiple +// sqlite3changeset_apply_v2() calls were made. +// <li> Each local changeset is rebased by calling sqlite3rebaser_rebase(). +// <li> The sqlite3_rebaser object is deleted by calling +// sqlite3rebaser_delete(). +// // </ol> -type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12256:9 */ +type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:12286:9 */ // CAPI3REF: Flags for sqlite3changeset_apply_v2 // @@ -25555,46 +25587,50 @@ type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* testdata/sqlite-ama // For example, if both the local and remote changesets contain an // INSERT of the same key on "CREATE TABLE t1(a PRIMARY KEY, b)": // -// local: INSERT INTO t1 VALUES(1, 'v1'); -// remote: INSERT INTO t1 VALUES(1, 'v2'); +// local: INSERT INTO t1 VALUES(1, 'v1'); +// remote: INSERT INTO t1 VALUES(1, 'v2'); // // and the conflict resolution is REPLACE, then the INSERT change is // removed from the local changeset (it was overridden). Or, if the // conflict resolution was "OMIT", then the local changeset is modified // to instead contain: // -// UPDATE t1 SET b = 'v2' WHERE a=1; +// UPDATE t1 SET b = 'v2' WHERE a=1; // // Changes within the local changeset are rebased as follows: // // <dl> // <dt>Local INSERT<dd> -// This may only conflict with a remote INSERT. If the conflict -// resolution was OMIT, then add an UPDATE change to the rebased -// changeset. Or, if the conflict resolution was REPLACE, add -// nothing to the rebased changeset. +// +// This may only conflict with a remote INSERT. If the conflict +// resolution was OMIT, then add an UPDATE change to the rebased +// changeset. Or, if the conflict resolution was REPLACE, add +// nothing to the rebased changeset. // // <dt>Local DELETE<dd> -// This may conflict with a remote UPDATE or DELETE. In both cases the -// only possible resolution is OMIT. If the remote operation was a -// DELETE, then add no change to the rebased changeset. If the remote -// operation was an UPDATE, then the old.* fields of change are updated -// to reflect the new.* values in the UPDATE. +// +// This may conflict with a remote UPDATE or DELETE. In both cases the +// only possible resolution is OMIT. If the remote operation was a +// DELETE, then add no change to the rebased changeset. If the remote +// operation was an UPDATE, then the old.* fields of change are updated +// to reflect the new.* values in the UPDATE. // // <dt>Local UPDATE<dd> -// This may conflict with a remote UPDATE or DELETE. If it conflicts -// with a DELETE, and the conflict resolution was OMIT, then the update -// is changed into an INSERT. Any undefined values in the new.* record -// from the update change are filled in using the old.* values from -// the conflicting DELETE. Or, if the conflict resolution was REPLACE, -// the UPDATE change is simply omitted from the rebased changeset. -// -// If conflict is with a remote UPDATE and the resolution is OMIT, then -// the old.* values are rebased using the new.* values in the remote -// change. Or, if the resolution is REPLACE, then the change is copied -// into the rebased changeset with updates to columns also updated by -// the conflicting remote UPDATE removed. If this means no columns would -// be updated, the change is omitted. +// +// This may conflict with a remote UPDATE or DELETE. If it conflicts +// with a DELETE, and the conflict resolution was OMIT, then the update +// is changed into an INSERT. Any undefined values in the new.* record +// from the update change are filled in using the old.* values from +// the conflicting DELETE. Or, if the conflict resolution was REPLACE, +// the UPDATE change is simply omitted from the rebased changeset. +// +// If conflict is with a remote UPDATE and the resolution is OMIT, then +// the old.* values are rebased using the new.* values in the remote +// change. Or, if the resolution is REPLACE, then the change is copied +// into the rebased changeset with updates to columns also updated by +// the conflicting remote UPDATE removed. If this means no columns would +// be updated, the change is omitted. +// // </dl> // // A local change may be rebased against multiple remote changes @@ -25603,12 +25639,14 @@ type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* testdata/sqlite-ama // is rebased: // // <ul> -// <li> If there has been one or more REPLACE resolutions on a -// key, it is rebased according to a REPLACE. // -// <li> If there have been no REPLACE resolutions on a key, then -// the local changeset is rebased according to the most recent -// of the OMIT resolutions. +// <li> If there has been one or more REPLACE resolutions on a +// key, it is rebased according to a REPLACE. +// +// <li> If there have been no REPLACE resolutions on a key, then +// the local changeset is rebased according to the most recent +// of the OMIT resolutions. +// // </ul> // // Note that conflict resolutions from multiple remote changesets are @@ -25622,19 +25660,21 @@ type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* testdata/sqlite-ama // the buffer of rebase information captured. Then: // // <ol> -// <li> An sqlite3_rebaser object is created by calling -// sqlite3rebaser_create(). -// <li> The new object is configured with the rebase buffer obtained from -// sqlite3changeset_apply_v2() by calling sqlite3rebaser_configure(). -// If the local changeset is to be rebased against multiple remote -// changesets, then sqlite3rebaser_configure() should be called -// multiple times, in the same order that the multiple -// sqlite3changeset_apply_v2() calls were made. -// <li> Each local changeset is rebased by calling sqlite3rebaser_rebase(). -// <li> The sqlite3_rebaser object is deleted by calling -// sqlite3rebaser_delete(). +// +// <li> An sqlite3_rebaser object is created by calling +// sqlite3rebaser_create(). +// <li> The new object is configured with the rebase buffer obtained from +// sqlite3changeset_apply_v2() by calling sqlite3rebaser_configure(). +// If the local changeset is to be rebased against multiple remote +// changesets, then sqlite3rebaser_configure() should be called +// multiple times, in the same order that the multiple +// sqlite3changeset_apply_v2() calls were made. +// <li> Each local changeset is rebased by calling sqlite3rebaser_rebase(). +// <li> The sqlite3_rebaser object is deleted by calling +// sqlite3rebaser_delete(). +// // </ol> -type Sqlite3_rebaser = sqlite3_rebaser /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12256:32 */ +type Sqlite3_rebaser = sqlite3_rebaser /* testdata/sqlite-amalgamation-3390200/sqlite3.c:12286:32 */ // CAPI3REF: Values for sqlite3session_config(). @@ -25688,7 +25728,7 @@ type Fts5ExtensionApi1 = struct { FxPhraseNext uintptr FxPhraseFirstColumn uintptr FxPhraseNextColumn uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12572:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:12602:9 */ // CAPI3REF: Values for sqlite3session_config(). @@ -25720,22 +25760,22 @@ type Fts5ExtensionApi1 = struct { // Virtual table implementations may overload SQL functions by implementing // the sqlite3_module.xFindFunction() method. -type Fts5ExtensionApi = Fts5ExtensionApi1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12572:33 */ +type Fts5ExtensionApi = Fts5ExtensionApi1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:12602:33 */ type Fts5PhraseIter1 = struct { Fa uintptr Fb uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12574:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:12604:9 */ -type Fts5PhraseIter = Fts5PhraseIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12574:31 */ +type Fts5PhraseIter = Fts5PhraseIter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:12604:31 */ -type Fts5_extension_function = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:12576:14 */ +type Fts5_extension_function = uintptr /* testdata/sqlite-amalgamation-3390200/sqlite3.c:12606:14 */ type fts5_tokenizer = struct { FxCreate uintptr FxDelete uintptr FxTokenize uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13035:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:13065:9 */ -type Fts5_tokenizer = fts5_tokenizer /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13035:31 */ +type Fts5_tokenizer = fts5_tokenizer /* testdata/sqlite-amalgamation-3390200/sqlite3.c:13065:31 */ // Flags that may be passed as the third argument to xTokenize() @@ -25755,7 +25795,7 @@ type fts5_api = struct { FxCreateTokenizer uintptr FxFindTokenizer uintptr FxCreateFunction uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13071:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:13101:9 */ // Flags that may be passed as the third argument to xTokenize() @@ -25769,7 +25809,7 @@ type fts5_api = struct { // ************************************************************************ // // FTS5 EXTENSION REGISTRATION API -type Fts5_api = fts5_api /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13071:25 */ +type Fts5_api = fts5_api /* testdata/sqlite-amalgamation-3390200/sqlite3.c:13101:25 */ type Ssize_t = int64 /* /usr/x86_64-w64-mingw32/include/corecrt.h:50:35 */ @@ -25950,8 +25990,9 @@ type Jmp_buf = [16]X_JBTYPE /* /usr/x86_64-w64-mingw32/include/setjmp.h:199:19 * // Offset of member MEMBER in a struct of type TYPE. // Type whose alignment is supported in every context and is at least -// as great as that of any standard type not using alignment -// specifiers. +// +// as great as that of any standard type not using alignment +// specifiers. type Max_align_t = struct { F__max_align_ll int64 F__max_align_ld float64 @@ -26194,7 +26235,8 @@ type X_HEAPINFO = _heapinfo /* /usr/x86_64-w64-mingw32/include/malloc.h:50:5 */ // User Guide and Reference, version 9.0. // The Intel API is flexible enough that we must allow aliasing with other -// vector types, and their scalar components. +// +// vector types, and their scalar components. type X__m64 = [2]int32 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/mmintrin.h:44:13 */ // Unaligned version of the same type @@ -26211,7 +26253,8 @@ type X__v2sf = [2]float32 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/mm // processor. The selector I specifies the type of prefetch operation. // The Intel API is flexible enough that we must allow aliasing with other -// vector types, and their scalar components. +// +// vector types, and their scalar components. type X__m128 = [4]float32 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/xmmintrin.h:69:15 */ // Unaligned version of the same type. @@ -26289,7 +26332,8 @@ type X__v16qs = [16]int8 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/em type X__v16qu = [16]uint8 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/emmintrin.h:49:23 */ // The Intel API is flexible enough that we must allow aliasing with other -// vector types, and their scalar components. +// +// vector types, and their scalar components. type X__m128i = [2]int64 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/emmintrin.h:53:19 */ type X__m128d = [2]float64 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/emmintrin.h:54:16 */ @@ -26337,7 +26381,8 @@ type X__v32qs = [32]int8 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/a type X__v32qu = [32]uint8 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avxintrin.h:51:23 */ // The Intel API is flexible enough that we must allow aliasing with other -// vector types, and their scalar components. +// +// vector types, and their scalar components. type X__m256 = [8]float32 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avxintrin.h:55:15 */ type X__m256i = [4]int64 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avxintrin.h:57:19 */ type X__m256d = [4]float64 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avxintrin.h:59:16 */ @@ -26383,7 +26428,8 @@ type X__v64qi = [64]int8 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/ type X__v64qu = [64]uint8 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avx512fintrin.h:47:23 */ // The Intel API is flexible enough that we must allow aliasing with other -// vector types, and their scalar components. +// +// vector types, and their scalar components. type X__m512 = [16]float32 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avx512fintrin.h:51:15 */ type X__m512i = [8]int64 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avx512fintrin.h:52:19 */ type X__m512d = [8]float64 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avx512fintrin.h:53:16 */ @@ -26459,7 +26505,8 @@ type X__v16bh = [16]int16 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/av type X__v8bh = [8]int16 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avx512bf16vlintrin.h:39:15 */ // The Intel API is flexible enough that we must allow aliasing with other -// vector types, and their scalar components. +// +// vector types, and their scalar components. type X__m256bh = [16]int16 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avx512bf16vlintrin.h:43:15 */ type X__m128bh = [8]int16 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avx512bf16vlintrin.h:44:15 */ @@ -26490,7 +26537,8 @@ type X__m128bh = [8]int16 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/a type X__v32bh = [32]int16 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avx512bf16intrin.h:38:15 */ // The Intel API is flexible enough that we must allow aliasing with other -// vector types, and their scalar components. +// +// vector types, and their scalar components. type X__m512bh = [32]int16 /* /usr/lib/gcc/x86_64-w64-mingw32/10-win32/include/avx512bf16intrin.h:42:15 */ // The SQLITE_THREADSAFE macro must be defined as 0, 1, or 2. @@ -26645,7 +26693,7 @@ type Hash1 = struct { Fcount uint32 Ffirst uintptr Fht uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // The SQLITE_THREADSAFE macro must be defined as 0, 1, or 2. // 0 means mutexes are permanently disable and the library is never @@ -26794,15 +26842,15 @@ type Hash1 = struct { // used in SQLite. // Forward declarations of structures. -type Hash = Hash1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13744:21 */ +type Hash = Hash1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:13774:21 */ type HashElem1 = struct { Fnext uintptr Fprev uintptr Fdata uintptr FpKey uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type HashElem = HashElem1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:13745:25 */ +type HashElem = HashElem1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:13775:25 */ // A complete hash table is an instance of the following structure. // The internals of this structure are intended to be opaque -- client @@ -26828,7 +26876,7 @@ type _ht = struct { Fcount uint32 F__ccgo_pad1 [4]byte Fchain uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // Macros for looping over all elements of a hash table. The idiom is // like this: @@ -27004,14 +27052,14 @@ func vswprintf(tls *libc.TLS, __stream uintptr, __count Size_t, __format uintptr // where the sizes very. Preprocessor macros are available so that the // types can be conveniently redefined at compile-type. Like this: // -// cc '-DUINTPTR_TYPE=long long int' ... -type I64 = Sqlite_int64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14217:22 */ // 8-byte signed integer -type U64 = Sqlite_uint64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14218:23 */ // 8-byte unsigned integer -type U32 = uint32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14219:21 */ // 4-byte unsigned integer -type U16 = uint16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14220:21 */ // 2-byte unsigned integer -type I16 = int16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14221:20 */ // 2-byte signed integer -type U8 = uint8 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14222:20 */ // 1-byte unsigned integer -type I8 = int8 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14223:19 */ // 1-byte signed integer +// cc '-DUINTPTR_TYPE=long long int' ... +type I64 = Sqlite_int64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14247:22 */ // 8-byte signed integer +type U64 = Sqlite_uint64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14248:23 */ // 8-byte unsigned integer +type U32 = uint32 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14249:21 */ // 4-byte unsigned integer +type U16 = uint16 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14250:21 */ // 2-byte unsigned integer +type I16 = int16 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14251:20 */ // 2-byte signed integer +type U8 = uint8 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14252:20 */ // 1-byte unsigned integer +type I8 = int8 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14253:19 */ // 1-byte signed integer // SQLITE_MAX_U32 is a u64 constant that is the maximum u64 value // that can be stored in a u32 without loss of data. The value @@ -27022,7 +27070,7 @@ type I8 = int8 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14223 // table or index. This is an unsigned integer type. For 99.9% of // the world, a 32-bit integer is sufficient. But a 64-bit integer // can be used at compile-time if desired. -type TRowcnt = U32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14242:14 */ // 32-bit is the default +type TRowcnt = U32 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14272:14 */ // 32-bit is the default // Estimated quantities used for query planning are stored as 16-bit // logarithms. For quantity X, the value stored is 10*log2(X). This @@ -27035,22 +27083,23 @@ type TRowcnt = U32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14242:14 */ // "LogEst" is short for "Logarithmic Estimate". // // Examples: -// 1 -> 0 20 -> 43 10000 -> 132 -// 2 -> 10 25 -> 46 25000 -> 146 -// 3 -> 16 100 -> 66 1000000 -> 199 -// 4 -> 20 1000 -> 99 1048576 -> 200 -// 10 -> 33 1024 -> 100 4294967296 -> 320 +// +// 1 -> 0 20 -> 43 10000 -> 132 +// 2 -> 10 25 -> 46 25000 -> 146 +// 3 -> 16 100 -> 66 1000000 -> 199 +// 4 -> 20 1000 -> 99 1048576 -> 200 +// 10 -> 33 1024 -> 100 4294967296 -> 320 // // The LogEst can be negative to indicate fractional values. // Examples: // -// 0.5 -> -10 0.1 -> -33 0.0625 -> -40 -type LogEst = int16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14268:20 */ +// 0.5 -> -10 0.1 -> -33 0.0625 -> -40 +type LogEst = int16 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14298:20 */ // Set the SQLITE_PTRSIZE macro to the number of bytes in a pointer // The uptr type is an unsigned integer large enough to hold a pointer -type Uptr = U64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14293:15 */ +type Uptr = U64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14323:15 */ // An instance of the following structure is used to store the busy-handler // callback for a given sqlite handle. @@ -27064,7 +27113,7 @@ type BusyHandler1 = struct { FpBusyArg uintptr FnBusy int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // An instance of the following structure is used to store the busy-handler // callback for a given sqlite handle. @@ -27073,7 +27122,7 @@ type BusyHandler1 = struct { // callback for the database handle. Each pager opened via the sqlite // handle is passed a pointer to sqlite.busyHandler. The busy-handler // callback is currently invoked only from within pager.c. -type BusyHandler = BusyHandler1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14464:28 */ +type BusyHandler = BusyHandler1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14506:28 */ // Name of table that holds the database schema. // @@ -27152,7 +27201,7 @@ type AggInfo1 = struct { FaFunc uintptr FnFunc int32 FselId U32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // Name of table that holds the database schema. // @@ -27215,21 +27264,21 @@ type AggInfo1 = struct { // cases the parameters are named as per the usual conventions. // Forward references to structures -type AggInfo = AggInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14574:24 */ +type AggInfo = AggInfo1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14616:24 */ type AuthContext1 = struct { FzAuthContext uintptr FpParse uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14575:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14617:9 */ -type AuthContext = AuthContext1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14575:28 */ +type AuthContext = AuthContext1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14617:28 */ type AutoincInfo1 = struct { FpNext uintptr FpTab uintptr FiDb int32 FregCtr int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type AutoincInfo = AutoincInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14576:28 */ +type AutoincInfo = AutoincInfo1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14618:28 */ type Bitvec1 = struct { FiSize U32 FnSet U32 @@ -27239,9 +27288,9 @@ type Bitvec1 = struct { F__ccgo_pad1 [0]uint64 FaBitmap [496]U8 } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Bitvec = Bitvec1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14577:23 */ +type Bitvec = Bitvec1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14619:23 */ type CollSeq1 = struct { FzName uintptr Fenc U8 @@ -27249,9 +27298,9 @@ type CollSeq1 = struct { FpUser uintptr FxCmp uintptr FxDel uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type CollSeq = CollSeq1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14578:24 */ +type CollSeq = CollSeq1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14620:24 */ type Column1 = struct { FzCnName uintptr FnotNull uint8 /* unsigned notNull: 4, unsigned eCType: 4 */ @@ -27263,9 +27312,9 @@ type Column1 = struct { FiDflt U16 FcolFlags U16 F__ccgo_pad3 [6]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Column = Column1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14579:23 */ +type Column = Column1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14621:23 */ type Cte1 = struct { FzName uintptr FpCols uintptr @@ -27274,9 +27323,9 @@ type Cte1 = struct { FpUse uintptr FeM10d U8 F__ccgo_pad1 [7]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Cte = Cte1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14580:20 */ +type Cte = Cte1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14622:20 */ type CteUse1 = struct { FnUse int32 FaddrM9e int32 @@ -27285,9 +27334,9 @@ type CteUse1 = struct { FnRowEst LogEst FeM10d U8 F__ccgo_pad1 [1]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type CteUse = CteUse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14581:23 */ +type CteUse = CteUse1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14623:23 */ type Db1 = struct { FzDbSName uintptr FpBt uintptr @@ -27295,9 +27344,9 @@ type Db1 = struct { FbSyncSet U8 F__ccgo_pad1 [6]byte FpSchema uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Db = Db1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14582:19 */ +type Db = Db1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14624:19 */ type DbFixer1 = struct { FpParse uintptr Fw Walker @@ -27307,9 +27356,9 @@ type DbFixer1 = struct { FzDb uintptr FzType uintptr FpName uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14583:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14625:9 */ -type DbFixer = DbFixer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14583:24 */ +type DbFixer = DbFixer1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14625:24 */ type Schema1 = struct { Fschema_cookie int32 FiGeneration int32 @@ -27322,9 +27371,9 @@ type Schema1 = struct { Fenc U8 FschemaFlags U16 Fcache_size int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Schema = Schema1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14584:23 */ +type Schema = Schema1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14626:23 */ type Expr1 = struct { Fop U8 FaffExpr int8 @@ -27339,34 +27388,37 @@ type Expr1 = struct { FiTable int32 FiColumn YnVar FiAgg I16 - Fw struct{ FiRightJoinTable int32 } + Fw struct{ FiJoin int32 } FpAggInfo uintptr Fy struct{ FpTab uintptr } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Expr = Expr1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14585:21 */ +type Expr = Expr1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14627:21 */ type ExprList1 = struct { FnExpr int32 FnAlloc int32 Fa [1]struct { - FpExpr uintptr - FzEName uintptr - FsortFlags U8 - F__ccgo_pad1 [3]byte - FeEName uint8 /* unsigned eEName: 2, unsigned done: 1, unsigned reusable: 1, unsigned bSorterRef: 1, unsigned bNulls: 1 */ - F__ccgo_pad2 [3]byte - Fu struct { + FpExpr uintptr + FzEName uintptr + Ffg struct { + F__ccgo_pad1 [0]uint32 + FsortFlags U8 + F__ccgo_pad2 [3]byte + FeEName uint16 /* unsigned eEName: 2, unsigned done: 1, unsigned reusable: 1, unsigned bSorterRef: 1, unsigned bNulls: 1, unsigned bUsed: 1, unsigned bUsingTerm: 1, unsigned bNoExpand: 1 */ + F__ccgo_pad3 [2]byte + } + Fu struct { F__ccgo_pad1 [0]uint32 Fx struct { FiOrderByCol U16 FiAlias U16 } } - F__ccgo_pad3 [4]byte + F__ccgo_pad1 [4]byte } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type ExprList = ExprList1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14586:25 */ +type ExprList = ExprList1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14628:25 */ type FKey1 = struct { FpFrom uintptr FpNextFrom uintptr @@ -27383,17 +27435,17 @@ type FKey1 = struct { F__ccgo_pad1 [4]byte FzCol uintptr } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14587:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14629:9 */ -type FKey = FKey1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14587:21 */ +type FKey = FKey1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14629:21 */ type FuncDestructor1 = struct { FnRef int32 F__ccgo_pad1 [4]byte FxDestroy uintptr FpUserData uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14588:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14630:9 */ -type FuncDestructor = FuncDestructor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14588:31 */ +type FuncDestructor = FuncDestructor1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14630:31 */ type FuncDef1 = struct { FnArg I8 F__ccgo_pad1 [3]byte @@ -27406,19 +27458,27 @@ type FuncDef1 = struct { FxInverse uintptr FzName uintptr Fu struct{ FpHash uintptr } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type FuncDef = FuncDef1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14589:24 */ -type FuncDefHash1 = struct{ Fa [23]uintptr } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14590:9 */ +type FuncDef = FuncDef1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14631:24 */ +type FuncDefHash1 = struct{ Fa [23]uintptr } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14632:9 */ -type FuncDefHash = FuncDefHash1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14590:28 */ +type FuncDefHash = FuncDefHash1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14632:28 */ type IdList1 = struct { - Fa uintptr FnId int32 - F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ + FeU4 U8 + F__ccgo_pad1 [3]byte + Fa [1]struct { + FzName uintptr + Fu4 struct { + F__ccgo_pad1 [0]uint64 + Fidx int32 + F__ccgo_pad2 [4]byte + } + } +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type IdList = IdList1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14591:23 */ +type IdList = IdList1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14633:23 */ type Index1 = struct { FzName uintptr FaiColumn uintptr @@ -27447,9 +27507,9 @@ type Index1 = struct { FnRowEst0 TRowcnt F__ccgo_pad3 [4]byte FcolNotIdxed Bitmask -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Index = Index1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14592:22 */ +type Index = Index1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14634:22 */ type IndexSample1 = struct { Fp uintptr Fn int32 @@ -27457,9 +27517,9 @@ type IndexSample1 = struct { FanEq uintptr FanLt uintptr FanDLt uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type IndexSample = IndexSample1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14593:28 */ +type IndexSample = IndexSample1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14635:28 */ type KeyInfo1 = struct { FnRef U32 Fenc U8 @@ -27470,9 +27530,9 @@ type KeyInfo1 = struct { Fdb uintptr FaSortFlags uintptr FaColl [1]uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type KeyInfo = KeyInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14595:24 */ +type KeyInfo = KeyInfo1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14637:24 */ type Lookaside1 = struct { FbDisable U32 Fsz U16 @@ -27489,12 +27549,12 @@ type Lookaside1 = struct { FpMiddle uintptr FpStart uintptr FpEnd uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Lookaside = Lookaside1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14596:26 */ -type LookasideSlot1 = struct{ FpNext uintptr } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +type Lookaside = Lookaside1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14638:26 */ +type LookasideSlot1 = struct{ FpNext uintptr } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type LookasideSlot = LookasideSlot1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14597:30 */ +type LookasideSlot = LookasideSlot1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14639:30 */ type Module1 = struct { FpModule uintptr FzName uintptr @@ -27503,9 +27563,9 @@ type Module1 = struct { FpAux uintptr FxDestroy uintptr FpEpoTab uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Module = Module1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14598:23 */ +type Module = Module1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14640:23 */ type NameContext1 = struct { FpParse uintptr FpSrcList uintptr @@ -27516,9 +27576,15 @@ type NameContext1 = struct { FncFlags int32 F__ccgo_pad1 [4]byte FpWinSelect uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14599:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14641:9 */ -type NameContext = NameContext1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14599:28 */ +type NameContext = NameContext1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14641:28 */ +type OnOrUsing1 = struct { + FpOn uintptr + FpUsing uintptr +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14642:9 */ + +type OnOrUsing = OnOrUsing1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14642:26 */ type Parse1 = struct { Fdb uintptr FzErrMsg uintptr @@ -27534,7 +27600,8 @@ type Parse1 = struct { FokConstFactor U8 FdisableLookaside U8 FdisableVtab U8 - F__ccgo_pad1 [2]byte + FwithinRJSubrtn U8 + F__ccgo_pad1 [1]byte FnRangeReg int32 FiRangeReg int32 FnErr int32 @@ -27598,16 +27665,16 @@ type Parse1 = struct { FapVtabLock uintptr FpWith uintptr FpRename uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Parse = Parse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14600:22 */ +type Parse = Parse1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14643:22 */ type ParseCleanup1 = struct { FpNext uintptr FpPtr uintptr FxCleanup uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type ParseCleanup = ParseCleanup1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14601:29 */ +type ParseCleanup = ParseCleanup1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14644:29 */ type PreUpdate1 = struct { Fv uintptr FpCsr uintptr @@ -27624,23 +27691,23 @@ type PreUpdate1 = struct { FaNew uintptr FpTab uintptr FpPk uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type PreUpdate = PreUpdate1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14602:26 */ +type PreUpdate = PreUpdate1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14645:26 */ type PrintfArguments1 = struct { FnArg int32 FnUsed int32 FapArg uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14603:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14646:9 */ -type PrintfArguments = PrintfArguments1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14603:32 */ +type PrintfArguments = PrintfArguments1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14646:32 */ type RenameToken1 = struct { Fp uintptr Ft Token FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type RenameToken = RenameToken1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14604:28 */ +type RenameToken = RenameToken1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14647:28 */ type Returning1 = struct { FpParse uintptr FpReturnEL uintptr @@ -27650,9 +27717,9 @@ type Returning1 = struct { FnRetCol int32 FiRetReg int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14605:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14648:9 */ -type Returning = Returning1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14605:26 */ +type Returning = Returning1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14648:26 */ type RowSet1 = struct { FpChunk uintptr Fdb uintptr @@ -27663,17 +27730,17 @@ type RowSet1 = struct { FnFresh U16 FrsFlags U16 FiBatch int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14606:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14649:9 */ -type RowSet = RowSet1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14606:23 */ +type RowSet = RowSet1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14649:23 */ type Savepoint1 = struct { FzName uintptr FnDeferredCons I64 FnDeferredImmCons I64 FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Savepoint = Savepoint1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14607:26 */ +type Savepoint = Savepoint1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14650:26 */ type Select1 = struct { Fop U8 F__ccgo_pad1 [1]byte @@ -27696,9 +27763,9 @@ type Select1 = struct { FpWith uintptr FpWin uintptr FpWinDefn uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Select = Select1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14608:23 */ +type Select = Select1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14651:23 */ type SQLiteThread1 = struct { Ftid uintptr Fid uint32 @@ -27706,9 +27773,9 @@ type SQLiteThread1 = struct { FxTask uintptr FpIn uintptr FpResult uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14609:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14652:9 */ -type SQLiteThread = SQLiteThread1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14609:29 */ +type SQLiteThread = SQLiteThread1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14652:29 */ type SelectDest1 = struct { FeDest U8 F__ccgo_pad1 [3]byte @@ -27719,9 +27786,9 @@ type SelectDest1 = struct { F__ccgo_pad2 [4]byte FzAffSdst uintptr FpOrderBy uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14610:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14653:9 */ -type SelectDest = SelectDest1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14610:27 */ +type SelectDest = SelectDest1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14653:27 */ type SrcItem1 = struct { FpSchema uintptr FzDatabase uintptr @@ -27736,26 +27803,25 @@ type SrcItem1 = struct { F__ccgo_pad1 [0]uint32 Fjointype U8 F__ccgo_pad2 [3]byte - FnotIndexed uint16 /* unsigned notIndexed: 1, unsigned isIndexedBy: 1, unsigned isTabFunc: 1, unsigned isCorrelated: 1, unsigned viaCoroutine: 1, unsigned isRecursive: 1, unsigned fromDDL: 1, unsigned isCte: 1, unsigned notCte: 1 */ + FnotIndexed uint16 /* unsigned notIndexed: 1, unsigned isIndexedBy: 1, unsigned isTabFunc: 1, unsigned isCorrelated: 1, unsigned isMaterialized: 1, unsigned viaCoroutine: 1, unsigned isRecursive: 1, unsigned fromDDL: 1, unsigned isCte: 1, unsigned notCte: 1, unsigned isUsing: 1, unsigned isOn: 1, unsigned isSynthUsing: 1, unsigned isNestedFrom: 1 */ F__ccgo_pad3 [2]byte } FiCursor int32 - FpOn uintptr - FpUsing uintptr + Fu3 struct{ FpOn uintptr } FcolUsed Bitmask Fu1 struct{ FzIndexedBy uintptr } Fu2 struct{ FpIBIndex uintptr } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type SrcItem = SrcItem1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14611:24 */ +type SrcItem = SrcItem1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14654:24 */ type SrcList1 = struct { FnSrc int32 FnAlloc U32 Fa [1]SrcItem -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type SrcList = SrcList1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14612:24 */ -type StrAccum = sqlite3_str /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14613:28 */ // Internal alias for sqlite3_str +type SrcList = SrcList1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14655:24 */ +type StrAccum = sqlite3_str /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14656:28 */ // Internal alias for sqlite3_str type Table1 = struct { FzName uintptr FaCol uintptr @@ -27782,26 +27848,26 @@ type Table1 = struct { } FpTrigger uintptr FpSchema uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // Internal alias for sqlite3_str -type Table = Table1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14614:22 */ +type Table = Table1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14657:22 */ type TableLock1 = struct { FiDb int32 FiTab Pgno FisWriteLock U8 F__ccgo_pad1 [7]byte FzLockName uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type TableLock = TableLock1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14615:26 */ +type TableLock = TableLock1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14658:26 */ type Token1 = struct { Fz uintptr Fn uint32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Token = Token1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14616:22 */ +type Token = Token1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14659:22 */ type Trigger1 = struct { FzName uintptr Ftable uintptr @@ -27815,9 +27881,9 @@ type Trigger1 = struct { FpTabSchema uintptr Fstep_list uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Trigger = Trigger1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14618:24 */ +type Trigger = Trigger1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14661:24 */ type TriggerPrg1 = struct { FpTrigger uintptr FpNext uintptr @@ -27825,9 +27891,9 @@ type TriggerPrg1 = struct { Forconf int32 FaColmask [2]U32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type TriggerPrg = TriggerPrg1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14619:27 */ +type TriggerPrg = TriggerPrg1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14662:27 */ type TriggerStep1 = struct { Fop U8 Forconf U8 @@ -27843,22 +27909,24 @@ type TriggerStep1 = struct { FzSpan uintptr FpNext uintptr FpLast uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type TriggerStep = TriggerStep1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14620:28 */ +type TriggerStep = TriggerStep1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14663:28 */ type UnpackedRecord1 = struct { FpKeyInfo uintptr FaMem uintptr + Fu struct{ Fz uintptr } + Fn int32 FnField U16 Fdefault_rc I8 FerrCode U8 Fr1 I8 Fr2 I8 FeqSeen U8 - F__ccgo_pad1 [1]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ + F__ccgo_pad1 [5]byte +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type UnpackedRecord = UnpackedRecord1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14621:31 */ +type UnpackedRecord = UnpackedRecord1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14664:31 */ type Upsert1 = struct { FpUpsertTarget uintptr FpUpsertTargetWhere uintptr @@ -27874,9 +27942,9 @@ type Upsert1 = struct { FiDataCur int32 FiIdxCur int32 F__ccgo_pad2 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Upsert = Upsert1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14622:23 */ +type Upsert = Upsert1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14665:23 */ type VTable1 = struct { Fdb uintptr FpMod uintptr @@ -27888,18 +27956,18 @@ type VTable1 = struct { FiSavepoint int32 F__ccgo_pad2 [4]byte FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type VTable = VTable1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14623:23 */ +type VTable = VTable1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14666:23 */ type VtabCtx1 = struct { FpVTable uintptr FpTab uintptr FpPrior uintptr FbDeclared int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type VtabCtx = VtabCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14624:24 */ +type VtabCtx = VtabCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14667:24 */ type Walker1 = struct { FpParse uintptr FxExprCallback uintptr @@ -27909,9 +27977,9 @@ type Walker1 = struct { FeCode U16 F__ccgo_pad1 [2]byte Fu struct{ FpNC uintptr } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14583:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14625:9 */ -type Walker = Walker1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14625:23 */ +type Walker = Walker1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14668:23 */ type WhereInfo1 = struct { FpParse uintptr FpTabList uintptr @@ -27936,13 +28004,14 @@ type WhereInfo1 = struct { FiEndWhere int32 FpLoops uintptr FpExprMods uintptr + FpMemToFree uintptr FrevMask Bitmask FsWC WhereClause FsMaskSet WhereMaskSet Fa [1]WhereLevel -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14669:9 */ -type WhereInfo = WhereInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:26 */ +type WhereInfo = WhereInfo1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14669:26 */ type Window1 = struct { FzName uintptr FzBase uintptr @@ -27959,7 +28028,7 @@ type Window1 = struct { FppThis uintptr FpNextWin uintptr FpFilter uintptr - FpFunc uintptr + FpWFunc uintptr FiEphCsr int32 FregAccum int32 FregResult int32 @@ -27974,24 +28043,24 @@ type Window1 = struct { FregEndRowid int32 FbExprArgs U8 F__ccgo_pad2 [3]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type Window = Window1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14627:23 */ +type Window = Window1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14670:23 */ type With1 = struct { FnCte int32 FbView int32 FpOuter uintptr Fa [1]Cte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type With = With1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14628:21 */ +type With = With1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14671:21 */ // The bitmask datatype defined below is used for various optimizations. // // Changing this from a 64-bit to a 32-bit type limits the number of // tables in a join to 32 instead of 64. But it also reduces the size // of the library by 738 bytes on ix86. -type Bitmask = U64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14641:15 */ +type Bitmask = U64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14684:15 */ // The number of bits in a Bitmask. "BMS" means "BitMask Size". @@ -28002,7 +28071,7 @@ type Bitmask = U64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14641:15 */ // variable number associated with that parameter. See the format description // on the sqlite3VListAdd() routine for more information. A VList is really // just an array of integers. -type VList = int32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14664:13 */ +type VList = int32 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14707:13 */ // Defer sourcing vdbe.h and btree.h until after the "u8" and // "BusyHandler" typedefs. vdbe.h also requires a few of the opaque @@ -28029,7 +28098,7 @@ type VList = int32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14664:13 */ // The type used to represent a page number. The first page in a file // is called page 1. 0 is used to represent "not a page". -type Pgno = U32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14705:13 */ +type Pgno = U32 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14748:13 */ // Each open file is managed by a separate instance of the "Pager" structure. type Pager1 = struct { @@ -28084,6 +28153,8 @@ type Pager1 = struct { FvfsFlags U32 FsectorSize U32 FmxPgno Pgno + FlckPgno Pgno + F__ccgo_pad3 [4]byte FpageSize I64 FjournalSizeLimit I64 FzFilename uintptr @@ -28097,10 +28168,10 @@ type Pager1 = struct { FpPCache uintptr FpWal uintptr FzWal uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // Each open file is managed by a separate instance of the "Pager" structure. -type Pager = Pager1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14710:22 */ +type Pager = Pager1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14753:22 */ // Handle type for pages. type PgHdr2 = struct { @@ -28115,10 +28186,10 @@ type PgHdr2 = struct { FnRef I16 FpDirtyNext uintptr FpDirtyPrev uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // Handle type for pages. -type DbPage = PgHdr2 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14715:22 */ +type DbPage = PgHdr2 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14758:22 */ // Functions to support testing and debugging. @@ -28160,7 +28231,7 @@ type Btree1 = struct { FpNext uintptr FpPrev uintptr Flock BtLock -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // Functions to support testing and debugging. @@ -28189,7 +28260,7 @@ type Btree1 = struct { // it must be turned on for each database using "PRAGMA auto_vacuum = 1". // Forward declarations of structure -type Btree = Btree1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14958:22 */ +type Btree = Btree1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15002:22 */ type BtCursor1 = struct { FeState U8 FcurFlags U8 @@ -28212,9 +28283,9 @@ type BtCursor1 = struct { FpKeyInfo uintptr FpPage uintptr FapPage [19]uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type BtCursor = BtCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14959:25 */ +type BtCursor = BtCursor1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15003:25 */ type BtShared1 = struct { FpPager uintptr Fdb uintptr @@ -28251,9 +28322,9 @@ type BtShared1 = struct { FpTmpSpace uintptr FnPreformatSize int32 F__ccgo_pad5 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type BtShared = BtShared1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14960:25 */ +type BtShared = BtShared1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15004:25 */ type BtreePayload1 = struct { FpKey uintptr FnKey Sqlite3_int64 @@ -28264,9 +28335,9 @@ type BtreePayload1 = struct { FnData int32 FnZero int32 F__ccgo_pad2 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14961:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15005:9 */ -type BtreePayload = BtreePayload1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14961:29 */ +type BtreePayload = BtreePayload1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15005:29 */ //************* End of btree.h ********************************************** //************* Continuing where we left off in sqliteInt.h ***************** @@ -28299,16 +28370,14 @@ type Vdbe1 = struct { FpParse uintptr FnVar YnVar F__ccgo_pad1 [2]byte - FiVdbeMagic U32 FnMem int32 FnCursor int32 FcacheCtr U32 Fpc int32 Frc int32 - F__ccgo_pad2 [4]byte FnChange I64 FiStatement int32 - F__ccgo_pad3 [4]byte + F__ccgo_pad2 [4]byte FiCurrentTime I64 FnFkConstraint I64 FnStmtDefCons I64 @@ -28329,10 +28398,10 @@ type Vdbe1 = struct { FerrorAction U8 FminWriteFileFormat U8 FprepFlags U8 - FdoingRerun U8 - F__ccgo_pad4 [2]byte - Fexpired uint16 /* bft expired: 2, bft explain: 2, bft changeCntOn: 1, bft runOnlyOnce: 1, bft usesStmtJournal: 1, bft readOnly: 1, bft bIsReader: 1 */ - F__ccgo_pad5 [2]byte + FeVdbeState U8 + F__ccgo_pad3 [2]byte + Fexpired uint8 /* bft expired: 2, bft explain: 2, bft changeCntOn: 1, bft usesStmtJournal: 1, bft readOnly: 1, bft bIsReader: 1 */ + F__ccgo_pad4 [3]byte FbtreeMask YDbMask FlockMask YDbMask FaCounter [9]U32 @@ -28344,7 +28413,7 @@ type Vdbe1 = struct { Fexpmask U32 FpProgram uintptr FpAuxData uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ //************* End of btree.h ********************************************** //************* Continuing where we left off in sqliteInt.h ***************** @@ -28370,11 +28439,11 @@ type Vdbe1 = struct { // A single VDBE is an opaque structure named "Vdbe". Only routines // in the source file sqliteVdbe.c are allowed to see the insides // of this structure. -type Vdbe = Vdbe1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15363:21 */ +type Vdbe = Vdbe1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15407:21 */ // The names of the following types declared in vdbeInt.h are required // for the VdbeOp definition. -type Mem = sqlite3_value /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15369:30 */ +type Mem = sqlite3_value /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15413:30 */ type SubProgram1 = struct { FaOp uintptr FnOp int32 @@ -28384,9 +28453,9 @@ type SubProgram1 = struct { FaOnce uintptr Ftoken uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type SubProgram = SubProgram1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15370:27 */ +type SubProgram = SubProgram1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15414:27 */ // A single instruction of the virtual machine has an opcode // and as many as three operands. The instruction is recorded @@ -28403,7 +28472,7 @@ type VdbeOp1 = struct { Fi int32 F__ccgo_pad2 [4]byte } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // A single instruction of the virtual machine has an opcode // and as many as three operands. The instruction is recorded @@ -28412,9 +28481,9 @@ type p4union = struct { F__ccgo_pad1 [0]uint64 Fi int32 F__ccgo_pad2 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type VdbeOp = VdbeOp1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15416:23 */ +type VdbeOp = VdbeOp1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15459:23 */ // A smaller version of VdbeOp used for the VdbeAddOpList() function because // it takes up less space. @@ -28423,11 +28492,11 @@ type VdbeOpList1 = struct { Fp1 int8 Fp2 int8 Fp3 int8 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15436:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15479:1 */ -type VdbeOpList = VdbeOpList1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15442:27 */ +type VdbeOpList = VdbeOpList1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15485:27 */ -type RecordCompare = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15857:13 */ +type RecordCompare = uintptr /* testdata/sqlite-amalgamation-3390200/sqlite3.c:15901:13 */ // Use SQLITE_ENABLE_COMMENTS to enable generation of extra comments on // each VDBE opcode. @@ -28492,7 +28561,7 @@ type RecordCompare = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:1 // This header file defines the interface that the sqlite page cache // subsystem. -type PgHdr = PgHdr2 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15990:22 */ +type PgHdr = PgHdr2 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:16034:22 */ type PCache2 = struct { FpDirty uintptr FpDirtyTail uintptr @@ -28508,12 +28577,12 @@ type PCache2 = struct { FxStress uintptr FpStress uintptr FpCache uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type PCache = PCache2 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:15991:23 */ +type PCache = PCache2 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:16035:23 */ // typedef for the authorization callback function. -type Sqlite3_xauth = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:16759:15 */ +type Sqlite3_xauth = uintptr /* testdata/sqlite-amalgamation-3390200/sqlite3.c:16810:15 */ // This is an extra SQLITE_TRACE macro that indicates "legacy" tracing // in the style of sqlite3_trace() @@ -28530,7 +28599,7 @@ type sqlite3InitInfo = struct { ForphanTrigger uint8 /* unsigned orphanTrigger: 1, unsigned imposterTable: 1, unsigned reopenMemdb: 1 */ F__ccgo_pad2 [7]byte FazInit uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // Allowed values for Table.tabFlags. // @@ -28566,16 +28635,16 @@ type sqlite3InitInfo = struct { // key. The "to" table is the table that is named in the REFERENCES clause. // Consider this example: // -// CREATE TABLE ex1( -// a INTEGER PRIMARY KEY, -// b INTEGER CONSTRAINT fk1 REFERENCES ex2(x) -// ); +// CREATE TABLE ex1( +// a INTEGER PRIMARY KEY, +// b INTEGER CONSTRAINT fk1 REFERENCES ex2(x) +// ); // // For foreign key "fk1", the from-table is "ex1" and the to-table is "ex2". // Equivalent names: // -// from-table == child-table -// to-table == parent-table +// from-table == child-table +// to-table == parent-table // // Each REFERENCES clause generates an instance of the following structure // which is attached to the from-table. The to-table need not exist when @@ -28589,7 +28658,7 @@ type sColMap = struct { FiFrom int32 F__ccgo_pad1 [4]byte FzCol uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14587:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14629:9 */ // An instance of this structure contains information needed to generate // code for a SELECT that contains aggregate functions. @@ -28610,7 +28679,7 @@ type AggInfo_col = struct { FiColumn I16 FiSorterColumn I16 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // An instance of this structure contains information needed to generate // code for a SELECT that contains aggregate functions. @@ -28630,7 +28699,7 @@ type AggInfo_func = struct { FiDistinct int32 FiDistAddr int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // The datatype ynVar is a signed integer, either 16-bit or 32-bit. // Usually it is 16-bits. But if SQLITE_MAX_VARIABLE_NUMBER is greater @@ -28640,14 +28709,13 @@ type AggInfo_func = struct { // need more than about 10 or 20 variables. But some extreme users want // to have prepared statements with over 32766 variables, and for them // the option is available (at compile-time). -type YnVar = I16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:17979:13 */ +type YnVar = I16 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:18040:13 */ // The following are the meanings of bits in the Expr.flags field. // Value restrictions: // // EP_Agg == NC_HasAgg == SF_HasAgg // EP_Win == NC_HasWin -// 0x400000 // Available // 0x80000000 // Available // The EP_Propagate mask is a set of properties that automatically propagate @@ -28685,56 +28753,62 @@ type YnVar = I16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:17979:13 */ // In order to try to keep memory usage down, the Expr.a.zEName field // is used for multiple purposes: // -// eEName Usage -// ---------- ------------------------- -// ENAME_NAME (1) the AS of result set column -// (2) COLUMN= of an UPDATE +// eEName Usage +// ---------- ------------------------- +// ENAME_NAME (1) the AS of result set column +// (2) COLUMN= of an UPDATE // -// ENAME_TAB DB.TABLE.NAME used to resolve names -// of subqueries +// ENAME_TAB DB.TABLE.NAME used to resolve names +// of subqueries // -// ENAME_SPAN Text of the original result set -// expression. +// ENAME_SPAN Text of the original result set +// expression. type ExprList_item = struct { - FpExpr uintptr - FzEName uintptr - FsortFlags U8 - F__ccgo_pad1 [3]byte - FeEName uint8 /* unsigned eEName: 2, unsigned done: 1, unsigned reusable: 1, unsigned bSorterRef: 1, unsigned bNulls: 1 */ - F__ccgo_pad2 [3]byte - Fu struct { + FpExpr uintptr + FzEName uintptr + Ffg struct { + F__ccgo_pad1 [0]uint32 + FsortFlags U8 + F__ccgo_pad2 [3]byte + FeEName uint16 /* unsigned eEName: 2, unsigned done: 1, unsigned reusable: 1, unsigned bSorterRef: 1, unsigned bNulls: 1, unsigned bUsed: 1, unsigned bUsingTerm: 1, unsigned bNoExpand: 1 */ + F__ccgo_pad3 [2]byte + } + Fu struct { F__ccgo_pad1 [0]uint32 Fx struct { FiOrderByCol U16 FiAlias U16 } } - F__ccgo_pad3 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ + F__ccgo_pad1 [4]byte +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // Allowed values for Expr.a.eEName // An instance of this structure can hold a simple list of identifiers, // such as the list "a,b,c" in the following statements: // -// INSERT INTO t(a,b,c) VALUES ...; -// CREATE INDEX idx ON t(a,b,c); -// CREATE TRIGGER trig BEFORE UPDATE ON t(a,b,c) ...; +// INSERT INTO t(a,b,c) VALUES ...; +// CREATE INDEX idx ON t(a,b,c); +// CREATE TRIGGER trig BEFORE UPDATE ON t(a,b,c) ...; // // The IdList.a.idx field is used when the IdList represents the list of // column names after a table name in an INSERT statement. In the statement // -// INSERT INTO t(a,b,c) ... +// INSERT INTO t(a,b,c) ... // // If "a" is the k-th column of table "t", then IdList.a[0].idx==k. type IdList_item = struct { - FzName uintptr - Fidx int32 - F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ + FzName uintptr + Fu4 struct { + F__ccgo_pad1 [0]uint64 + Fidx int32 + F__ccgo_pad2 [4]byte + } +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // The yDbMask datatype for the bitmask of all attached databases. -type YDbMask = uint32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:18758:24 */ +type YDbMask = uint32 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:18857:24 */ // A pointer to this structure is used to communicate information // from sqlite3Init and OP_ParseSchema into the sqlite3InitCallback. @@ -28747,7 +28821,7 @@ type InitData = struct { FnInitRow U32 FmxPage Pgno F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19119:3 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:19224:3 */ // Allowed values for mInitFlags @@ -28812,7 +28886,7 @@ type Sqlite3Config = struct { FszSorterRef U32 FiPrngSeed uint32 F__ccgo_pad5 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19150:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:19255:1 */ // This macro is used inside of assert() statements to indicate that // the assert is only valid on a well-formed database. Instead of: @@ -28835,7 +28909,7 @@ type RefSrcList = struct { FpRef uintptr FnExclude I64 FaiExclude uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19250:5 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:19355:5 */ // This macro is used inside of assert() statements to indicate that // the assert is only valid on a well-formed database. Instead of: @@ -28857,7 +28931,7 @@ type IdxCover = struct { FpIdx uintptr FiCur int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19252:5 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:19357:5 */ // This macro is used inside of assert() statements to indicate that // the assert is only valid on a well-formed database. Instead of: @@ -28883,7 +28957,7 @@ type IdxExprTrans1 = struct { FiTabCol int32 FpWInfo uintptr Fdb uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19253:5 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:19358:5 */ // This macro is used inside of assert() statements to indicate that // the assert is only valid on a well-formed database. Instead of: @@ -28907,7 +28981,7 @@ type WindowRewrite1 = struct { FpSub uintptr FpTab uintptr FpSubSelect uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19256:5 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:19361:5 */ // This macro is used inside of assert() statements to indicate that // the assert is only valid on a well-formed database. Instead of: @@ -28931,9 +29005,9 @@ type WhereConst1 = struct { FnConst int32 FnChng int32 FbHasAffBlob int32 - F__ccgo_pad1 [4]byte + FmExcludeOn U32 FapExpr uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19257:5 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:19362:5 */ // This macro is used inside of assert() statements to indicate that // the assert is only valid on a well-formed database. Instead of: @@ -28957,7 +29031,7 @@ type RenameCtx1 = struct { FiCol int32 FpTab uintptr FzOld uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19258:5 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:19363:5 */ //************* End of sqliteInt.h ****************************************** //************* Begin file os_common.h ************************************** @@ -29085,9 +29159,9 @@ var sqlite3azCompileOpt = [51]uintptr{ ts + 1029, ts + 1043, ts + 1056, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:20869:19 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:21011:19 */ -func Xsqlite3CompileOptions(tls *libc.TLS, pnOpt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21596:27: */ +func Xsqlite3CompileOptions(tls *libc.TLS, pnOpt uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:21738:27: */ *(*int32)(unsafe.Pointer(pnOpt)) = int32(uint64(unsafe.Sizeof(sqlite3azCompileOpt)) / uint64(unsafe.Sizeof(uintptr(0)))) return uintptr(uintptr(unsafe.Pointer(&sqlite3azCompileOpt))) } @@ -29154,29 +29228,29 @@ var Xsqlite3UpperToLower = [274]uint8{ uint8(1), uint8(0), uint8(0), uint8(1), uint8(1), uint8(0), // aLTb[]: Use when compare(A,B) less than zero uint8(0), uint8(1), uint8(0), uint8(1), uint8(0), uint8(1), // aEQb[]: Use when compare(A,B) equals zero uint8(1), uint8(0), uint8(1), uint8(0), uint8(0), uint8(1), // aGTb[]: Use when compare(A,B) greater than zero -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21628:36 */ -var Xsqlite3aLTb uintptr = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21690:36 */ -var Xsqlite3aEQb uintptr = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21691:36 */ -var Xsqlite3aGTb uintptr = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21692:36 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:21770:36 */ +var Xsqlite3aLTb uintptr = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:21832:36 */ +var Xsqlite3aEQb uintptr = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:21833:36 */ +var Xsqlite3aGTb uintptr = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:21834:36 */ // The following 256 byte lookup table is used to support SQLites built-in // equivalents to the following standard library functions: // -// isspace() 0x01 -// isalpha() 0x02 -// isdigit() 0x04 -// isalnum() 0x06 -// isxdigit() 0x08 -// toupper() 0x20 -// SQLite identifier character 0x40 -// Quote character 0x80 +// isspace() 0x01 +// isalpha() 0x02 +// isdigit() 0x04 +// isalnum() 0x06 +// isxdigit() 0x08 +// toupper() 0x20 +// SQLite identifier character 0x40 +// Quote character 0x80 // // Bit 0x20 is set if the mapped character requires translation to upper // case. i.e. if the character is a lower-case ASCII character. // If x is a lower-case ASCII character, then its upper-case equivalent // is (x - 0x20). Therefore toupper() can be implemented as: // -// (x & ~(map[x]&0x20)) +// (x & ~(map[x]&0x20)) // // The equivalent of tolower() is implemented using the sqlite3UpperToLower[] // array. tolower() is used more often than toupper() by SQLite. @@ -29221,7 +29295,7 @@ var Xsqlite3CtypeMap = [256]uint8{ uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), // e8..ef ........ uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), // f0..f7 ........ uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), uint8(0x40), // f8..ff ........ -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21722:36 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:21864:36 */ // EVIDENCE-OF: R-02982-34736 In order to maintain full backwards // compatibility for legacy applications, the URI filename capability is @@ -29281,12 +29355,12 @@ var Xsqlite3Config = Sqlite3Config{ FmxMemdbSize: int64(SQLITE_MEMDB_DEFAULT_MAXSIZE), // xAltLocaltime FiOnceResetThreshold: 0x7ffffffe, // iOnceResetThreshold FszSorterRef: U32(SQLITE_DEFAULT_SORTERREF_SIZE), // iPrngSeed -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21842:48 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:21984:48 */ // Hash table for global functions - functions common to all // database connections. After initialization, this table is // read-only. -var Xsqlite3BuiltinFunctions FuncDefHash /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21904:28: */ +var Xsqlite3BuiltinFunctions FuncDefHash /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22049:28: */ // The value of the "pending" byte must be 0x40000000 (1 byte past the // 1-gibabyte boundary) in a compatible database. SQLite never uses @@ -29304,37 +29378,37 @@ var Xsqlite3BuiltinFunctions FuncDefHash /* testdata/sqlite-amalgamation-3380500 // 0x40000000 results in an incompatible database file format! // Changing the pending byte during operation will result in undefined // and incorrect behavior. -var Xsqlite3PendingByte int32 = 0x40000000 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21945:20 */ +var Xsqlite3PendingByte int32 = 0x40000000 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22090:20 */ // Tracing flags set by SQLITE_TESTCTRL_TRACEFLAGS. -var Xsqlite3SelectTrace U32 = U32(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21951:20 */ -var Xsqlite3WhereTrace U32 = U32(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21952:20 */ +var Xsqlite3TreeTrace U32 = U32(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22096:20 */ +var Xsqlite3WhereTrace U32 = U32(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22097:20 */ // #include "opcodes.h" // Properties of opcodes. The OPFLG_INITIALIZER macro is // created by mkopcodeh.awk during compilation. Data is obtained // from the comments following the "case OP_xxxx:" statements in // the vdbe.c file. -var Xsqlite3OpcodeProperty = [185]uint8{ /* 0 */ uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x00), uint8(0x10) /* 8 */, uint8(0x00), uint8(0x01), uint8(0x00), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x03), uint8(0x03) /* 16 */, uint8(0x01), uint8(0x01), uint8(0x03), uint8(0x12), uint8(0x03), uint8(0x03), uint8(0x01), uint8(0x09) /* 24 */, uint8(0x09), uint8(0x09), uint8(0x09), uint8(0x01), uint8(0x09), uint8(0x09), uint8(0x09), uint8(0x09) /* 32 */, uint8(0x09), uint8(0x09), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x01) /* 40 */, uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x26), uint8(0x26), uint8(0x23), uint8(0x0b), uint8(0x01) /* 48 */, uint8(0x01), uint8(0x03), uint8(0x03), uint8(0x03), uint8(0x0b), uint8(0x0b), uint8(0x0b), uint8(0x0b) /* 56 */, uint8(0x0b), uint8(0x0b), uint8(0x01), uint8(0x03), uint8(0x03), uint8(0x01), uint8(0x01), uint8(0x01) /* 64 */, uint8(0x01), uint8(0x00), uint8(0x00), uint8(0x02), uint8(0x02), uint8(0x08), uint8(0x00), uint8(0x10) /* 72 */, uint8(0x10), uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00) /* 80 */, uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x02), uint8(0x02), uint8(0x02) /* 88 */, uint8(0x00), uint8(0x00), uint8(0x12), uint8(0x1e), uint8(0x20), uint8(0x00), uint8(0x00), uint8(0x00) /* 96 */, uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x26), uint8(0x26) /* 104 */, uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26) /* 112 */, uint8(0x00), uint8(0x00), uint8(0x12), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00) /* 120 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x00) /* 128 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00) /* 136 */, uint8(0x00), uint8(0x04), uint8(0x04), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x10) /* 144 */, uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00) /* 152 */, uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x06), uint8(0x10), uint8(0x00), uint8(0x04), uint8(0x1a) /* 160 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00) /* 168 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00) /* 176 */, uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00) /* 184 */, uint8(0x00)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21961:36 */ +var Xsqlite3OpcodeProperty = [187]uint8{ /* 0 */ uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x01), uint8(0x00) /* 8 */, uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x03), uint8(0x03), uint8(0x01), uint8(0x01), uint8(0x03) /* 16 */, uint8(0x03), uint8(0x03), uint8(0x01), uint8(0x12), uint8(0x09), uint8(0x09), uint8(0x09), uint8(0x09) /* 24 */, uint8(0x01), uint8(0x09), uint8(0x09), uint8(0x09), uint8(0x09), uint8(0x09), uint8(0x09), uint8(0x01) /* 32 */, uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x01) /* 40 */, uint8(0x01), uint8(0x01), uint8(0x01), uint8(0x26), uint8(0x26), uint8(0x23), uint8(0x0b), uint8(0x01) /* 48 */, uint8(0x01), uint8(0x03), uint8(0x03), uint8(0x03), uint8(0x0b), uint8(0x0b), uint8(0x0b), uint8(0x0b) /* 56 */, uint8(0x0b), uint8(0x0b), uint8(0x01), uint8(0x03), uint8(0x03), uint8(0x01), uint8(0x01), uint8(0x01) /* 64 */, uint8(0x01), uint8(0x00), uint8(0x00), uint8(0x02), uint8(0x02), uint8(0x08), uint8(0x00), uint8(0x10) /* 72 */, uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x00) /* 80 */, uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x02), uint8(0x02) /* 88 */, uint8(0x02), uint8(0x00), uint8(0x00), uint8(0x12), uint8(0x1e), uint8(0x20), uint8(0x00), uint8(0x00) /* 96 */, uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x26), uint8(0x26) /* 104 */, uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26), uint8(0x26) /* 112 */, uint8(0x00), uint8(0x00), uint8(0x12), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00) /* 120 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x10) /* 128 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10) /* 136 */, uint8(0x00), uint8(0x00), uint8(0x04), uint8(0x04), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00) /* 144 */, uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00) /* 152 */, uint8(0x00), uint8(0x10), uint8(0x00), uint8(0x00), uint8(0x06), uint8(0x10), uint8(0x00), uint8(0x04) /* 160 */, uint8(0x1a), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00) /* 168 */, uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x10), uint8(0x00) /* 176 */, uint8(0x00), uint8(0x10), uint8(0x10), uint8(0x02), uint8(0x00), uint8(0x00), uint8(0x00), uint8(0x00) /* 184 */, uint8(0x00), uint8(0x00), uint8(0x00)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22106:36 */ // Name of the default collating sequence -var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1069)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21966:27 */ +var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1069)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22111:27 */ // Standard typenames. These names must match the COLTYPE_* definitions. // Adjust the SQLITE_N_STDTYPE value if adding or removing entries. // -// sqlite3StdType[] The actual names of the datatypes. +// sqlite3StdType[] The actual names of the datatypes. // -// sqlite3StdTypeLen[] The length (in bytes) of each entry -// in sqlite3StdType[]. +// sqlite3StdTypeLen[] The length (in bytes) of each entry +// in sqlite3StdType[]. // -// sqlite3StdTypeAffinity[] The affinity associated with each entry -// in sqlite3StdType[]. +// sqlite3StdTypeAffinity[] The affinity associated with each entry +// in sqlite3StdType[]. // -// sqlite3StdTypeMap[] The type value (as returned from -// sqlite3_column_type() or sqlite3_value_type()) -// for each entry in sqlite3StdType[]. -var Xsqlite3StdTypeLen = [6]uint8{uint8(3), uint8(4), uint8(3), uint8(7), uint8(4), uint8(4)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21984:36 */ +// sqlite3StdTypeMap[] The type value (as returned from +// sqlite3_column_type() or sqlite3_value_type()) +// for each entry in sqlite3StdType[]. +var Xsqlite3StdTypeLen = [6]uint8{uint8(3), uint8(4), uint8(3), uint8(7), uint8(4), uint8(4)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22129:36 */ var Xsqlite3StdTypeAffinity = [6]int8{ int8(SQLITE_AFF_NUMERIC), int8(SQLITE_AFF_BLOB), @@ -29342,7 +29416,7 @@ var Xsqlite3StdTypeAffinity = [6]int8{ int8(SQLITE_AFF_INTEGER), int8(SQLITE_AFF_REAL), int8(SQLITE_AFF_TEXT), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21985:27 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22130:27 */ var Xsqlite3StdTypeMap = [6]int8{ int8(0), int8(SQLITE_BLOB), @@ -29350,7 +29424,7 @@ var Xsqlite3StdTypeMap = [6]int8{ int8(SQLITE_INTEGER), int8(SQLITE_FLOAT), int8(SQLITE_TEXT), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21993:27 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22138:27 */ var Xsqlite3StdType = [6]uintptr{ ts + 1076, ts + 1080, @@ -29358,7 +29432,7 @@ var Xsqlite3StdType = [6]uintptr{ ts + 1089, ts + 1097, ts + 1102, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22001:27 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22146:27 */ //************* End of global.c ********************************************* //************* Begin file status.c ***************************************** @@ -29403,10 +29477,10 @@ var Xsqlite3StdType = [6]uintptr{ // SQL is translated into a sequence of instructions to be // executed by a virtual machine. Each instruction is an instance // of the following structure. -type Op = VdbeOp1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22075:23 */ +type Op = VdbeOp1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22220:23 */ // Boolean values -type Bool = uint32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22080:18 */ +type Bool = uint32 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22225:18 */ // Opaque type used by code in vdbesort.c type VdbeSorter1 = struct { @@ -29429,10 +29503,10 @@ type VdbeSorter1 = struct { FtypeMask U8 F__ccgo_pad1 [3]byte FaTask [1]SortSubtask -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22228:9 */ // Opaque type used by code in vdbesort.c -type VdbeSorter = VdbeSorter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:27 */ +type VdbeSorter = VdbeSorter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22228:27 */ // Elements of the linked list at Vdbe.pAuxData type AuxData1 = struct { @@ -29441,21 +29515,21 @@ type AuxData1 = struct { FpAux uintptr FxDeleteAux uintptr FpNextAux uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // Elements of the linked list at Vdbe.pAuxData -type AuxData = AuxData1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22086:24 */ +type AuxData = AuxData1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22231:24 */ // Types of VDBE cursors // A VdbeCursor is an superclass (a wrapper) for various cursor objects: // -// * A b-tree cursor -// - In the main database or in an ephemeral database -// - On either an index or a table -// * A sorter -// * A virtual table -// * A one-row "pseudotable" stored in a single register +// - A b-tree cursor +// - In the main database or in an ephemeral database +// - On either an index or a table +// - A sorter +// - A virtual table +// - A one-row "pseudotable" stored in a single register type VdbeCursor1 = struct { FeCurType U8 FiDb I8 @@ -29463,7 +29537,7 @@ type VdbeCursor1 = struct { FdeferredMoveto U8 FisTable U8 F__ccgo_pad1 [3]byte - FisEphemeral uint8 /* Bool isEphemeral: 1, Bool useRandomRowid: 1, Bool isOrdered: 1, Bool hasBeenDuped: 1 */ + FisEphemeral uint8 /* Bool isEphemeral: 1, Bool useRandomRowid: 1, Bool isOrdered: 1, Bool noReuse: 1 */ F__ccgo_pad2 [1]byte FseekHit U16 F__ccgo_pad3 [4]byte @@ -29486,19 +29560,21 @@ type VdbeCursor1 = struct { FszRow U32 FaType [1]U32 F__ccgo_pad5 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // Types of VDBE cursors // A VdbeCursor is an superclass (a wrapper) for various cursor objects: // -// * A b-tree cursor -// - In the main database or in an ephemeral database -// - On either an index or a table -// * A sorter -// * A virtual table -// * A one-row "pseudotable" stored in a single register -type VdbeCursor = VdbeCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22104:27 */ +// - A b-tree cursor +// - In the main database or in an ephemeral database +// - On either an index or a table +// - A sorter +// - A virtual table +// - A one-row "pseudotable" stored in a single register +type VdbeCursor = VdbeCursor1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22249:27 */ + +// Return true if P is a null-only cursor // A value for VdbeCursor.cacheStatus that means the cache is always invalid. @@ -29540,7 +29616,9 @@ type VdbeFrame1 = struct { FnChildCsr int32 FnChange I64 FnDbChange I64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ + +// Return true if P is a null-only cursor // A value for VdbeCursor.cacheStatus that means the cache is always invalid. @@ -29563,7 +29641,7 @@ type VdbeFrame1 = struct { // // The currently executing frame is stored in Vdbe.pFrame. Vdbe.pFrame is // set to NULL if the currently executing frame is the main program. -type VdbeFrame = VdbeFrame1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22193:26 */ +type VdbeFrame = VdbeFrame1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22343:26 */ // Magic number for sanity checking on VdbeFrame objects @@ -29573,11 +29651,11 @@ type VdbeFrame = VdbeFrame1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22 // Internally, the vdbe manipulates nearly all SQL values as Mem // structures. Each Mem struct may cache multiple representations (string, // integer etc.) of the same value. -type MemValue = struct{ Fr float64 } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +type MemValue = struct{ Fr float64 } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ // A bitfield type for use inside of structures. Always follow with :N where // N is the number of bits. -type Bft = uint32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22376:18 */ // Bit Field Type +type Bft = uint32 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22560:18 */ // Bit Field Type // The ScanStatus object holds a single value for the // sqlite3_stmt_scanstatus() interface. @@ -29589,13 +29667,13 @@ type ScanStatus1 = struct { FnEst LogEst F__ccgo_pad1 [6]byte FzName uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22381:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22565:9 */ // Bit Field Type // The ScanStatus object holds a single value for the // sqlite3_stmt_scanstatus() interface. -type ScanStatus = ScanStatus1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22381:27 */ +type ScanStatus = ScanStatus1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22565:27 */ // The DblquoteStr object holds the text of a double-quoted // string for a prepared statement. A linked list of these objects @@ -29606,7 +29684,7 @@ type ScanStatus = ScanStatus1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c: type DblquoteStr1 = struct { FpNextStr uintptr Fz [8]int8 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22398:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22582:9 */ // The DblquoteStr object holds the text of a double-quoted // string for a prepared statement. A linked list of these objects @@ -29614,7 +29692,7 @@ type DblquoteStr1 = struct { // When computing a normalized SQL statement for an SQL statement, that // list is consulted for each double-quoted identifier to see if the // identifier should really be a string literal. -type DblquoteStr = DblquoteStr1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22398:28 */ +type DblquoteStr = DblquoteStr1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22582:28 */ // An instance of this object is used to pass an vector of values into // OP_VFilter, the xFilter method of a virtual table. The vector is the @@ -29629,7 +29707,7 @@ type DblquoteStr = DblquoteStr1 /* testdata/sqlite-amalgamation-3380500/sqlite3. type ValueList1 = struct { FpCsr uintptr FpOut uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22526:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22707:9 */ // An instance of this object is used to pass an vector of values into // OP_VFilter, the xFilter method of a virtual table. The vector is the @@ -29641,20 +29719,20 @@ type ValueList1 = struct { // and a subtype of 'p'. The sqlite3_vtab_in_first() and _next() interfaces // know how to use this object to step through all the values in the // right operand of the IN constraint. -type ValueList = ValueList1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22526:26 */ +type ValueList = ValueList1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22707:26 */ //************* End of vdbeInt.h ******************************************** //************* Continuing where we left off in status.c ******************** // Variables in which to record status information. -type Sqlite3StatValueType = Sqlite3_int64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22689:23 */ +type Sqlite3StatValueType = Sqlite3_int64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22884:23 */ type sqlite3StatType = struct { FnowValue [10]Sqlite3StatValueType FmxValue [10]Sqlite3StatValueType -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22693:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22888:9 */ -type Sqlite3StatType = sqlite3StatType /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22693:32 */ -var sqlite3Stat = sqlite3StatType{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22697:3 */ +type Sqlite3StatType = sqlite3StatType /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22888:32 */ +var sqlite3Stat = sqlite3StatType{} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22892:3 */ // Elements of sqlite3Stat[] are protected by either the memory allocator // mutex, or by the pcache1 mutex. The following array determines which. @@ -29669,7 +29747,7 @@ var statMutex = [10]int8{ int8(1), // SQLITE_STATUS_PAGECACHE_SIZE int8(0), // SQLITE_STATUS_SCRATCH_SIZE int8(0), // SQLITE_STATUS_MALLOC_COUNT -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22703:19 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22898:19 */ // The "wsdStat" macro will resolve to the status information // state vector. If writable static data is unsupported on the target, @@ -29679,7 +29757,7 @@ var statMutex = [10]int8{ // Return the current value of a status parameter. The caller must // be holding the appropriate mutex. -func Xsqlite3StatusValue(tls *libc.TLS, op int32) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22735:30: */ +func Xsqlite3StatusValue(tls *libc.TLS, op int32) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22930:30: */ return *(*Sqlite3StatValueType)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Stat)) + uintptr(op)*8)) } @@ -29693,7 +29771,7 @@ func Xsqlite3StatusValue(tls *libc.TLS, op int32) Sqlite3_int64 { /* testdata/sq // // The StatusDown() routine lowers the current value by N. The highwater // mark is unchanged. N must be non-negative for StatusDown(). -func Xsqlite3StatusUp(tls *libc.TLS, op int32, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22755:21: */ +func Xsqlite3StatusUp(tls *libc.TLS, op int32, N int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22950:21: */ *(*Sqlite3StatValueType)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Stat)) + uintptr(op)*8)) += Sqlite3StatValueType(N) if *(*Sqlite3StatValueType)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Stat)) + uintptr(op)*8)) > *(*Sqlite3StatValueType)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Stat)) + 80 + uintptr(op)*8)) { @@ -29701,14 +29779,14 @@ func Xsqlite3StatusUp(tls *libc.TLS, op int32, N int32) { /* testdata/sqlite-ama } } -func Xsqlite3StatusDown(tls *libc.TLS, op int32, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22766:21: */ +func Xsqlite3StatusDown(tls *libc.TLS, op int32, N int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22961:21: */ *(*Sqlite3StatValueType)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Stat)) + uintptr(op)*8)) -= Sqlite3StatValueType(N) } // Adjust the highwater mark if necessary. // The caller must hold the appropriate mutex. -func Xsqlite3StatusHighwater(tls *libc.TLS, op int32, X int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22780:21: */ +func Xsqlite3StatusHighwater(tls *libc.TLS, op int32, X int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22975:21: */ var newValue Sqlite3StatValueType newValue = Sqlite3StatValueType(X) @@ -29719,12 +29797,12 @@ func Xsqlite3StatusHighwater(tls *libc.TLS, op int32, X int32) { /* testdata/sql } // Query status information. -func Xsqlite3_status64(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22800:16: */ +func Xsqlite3_status64(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22995:16: */ var pMutex uintptr _ = pMutex if op < 0 || op >= int32(uint64(unsafe.Sizeof([10]Sqlite3StatValueType{}))/uint64(unsafe.Sizeof(Sqlite3StatValueType(0)))) { - return Xsqlite3MisuseError(tls, 22809) + return Xsqlite3MisuseError(tls, 23004) } if statMutex[op] != 0 { pMutex = Xsqlite3Pcache1Mutex(tls) @@ -29742,7 +29820,7 @@ func Xsqlite3_status64(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uin return SQLITE_OK } -func Xsqlite3_status(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22825:16: */ +func Xsqlite3_status(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23020:16: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -29758,7 +29836,7 @@ func Xsqlite3_status(tls *libc.TLS, op int32, pCurrent uintptr, pHighwater uintp } // Return the number of LookasideSlot elements on the linked list -func countLookasideSlots(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22842:12: */ +func countLookasideSlots(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23037:12: */ var cnt U32 = U32(0) for p != 0 { p = (*LookasideSlot)(unsafe.Pointer(p)).FpNext @@ -29768,7 +29846,7 @@ func countLookasideSlots(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amal } // Count the number of slots of lookaside memory that are outstanding -func Xsqlite3LookasideUsed(tls *libc.TLS, db uintptr, pHighwater uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22854:20: */ +func Xsqlite3LookasideUsed(tls *libc.TLS, db uintptr, pHighwater uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23049:20: */ var nInit U32 = countLookasideSlots(tls, (*Sqlite3)(unsafe.Pointer(db)).Flookaside.FpInit) var nFree U32 = countLookasideSlots(tls, (*Sqlite3)(unsafe.Pointer(db)).Flookaside.FpFree) nInit = nInit + countLookasideSlots(tls, (*Sqlite3)(unsafe.Pointer(db)).Flookaside.FpSmallInit) @@ -29780,7 +29858,7 @@ func Xsqlite3LookasideUsed(tls *libc.TLS, db uintptr, pHighwater uintptr) int32 } // Query status information for a single database connection -func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22868:16: */ +func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, pHighwater uintptr, resetFlag int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23063:16: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -29909,8 +29987,7 @@ func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, p (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed = bp + 4 /* &nByte */ for pVdbe = (*Sqlite3)(unsafe.Pointer(db)).FpVdbe; pVdbe != 0; pVdbe = (*Vdbe1)(unsafe.Pointer(pVdbe)).FpNext { - Xsqlite3VdbeClearObject(tls, db, pVdbe) - Xsqlite3DbFree(tls, db, pVdbe) + Xsqlite3VdbeDelete(tls, pVdbe) } (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed = uintptr(0) @@ -30181,14 +30258,14 @@ type DateTime1 = struct { FtzSet int8 FisError int8 F__ccgo_pad1 [1]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23128:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23322:9 */ // The MSVC CRT on Windows CE may not have a localtime() function. // So declare a substitute. The substitute function itself is // defined in "os_win.c". // A structure for holding a single date and time. -type DateTime = DateTime1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23128:25 */ +type DateTime = DateTime1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23322:25 */ // Convert zDate into one or more integers according to the conversion // specifier zFormat. @@ -30197,17 +30274,17 @@ type DateTime = DateTime1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:2312 // the last integer which is specified by three characters. The meaning // of a four-character format specifiers ABCD is: // -// A: number of digits to convert. Always "2" or "4". -// B: minimum value. Always "0" or "1". -// C: maximum value, decoded as: -// a: 12 -// b: 14 -// c: 24 -// d: 31 -// e: 59 -// f: 9999 -// D: the separator character, or \000 to indicate this is the -// last number to convert. +// A: number of digits to convert. Always "2" or "4". +// B: minimum value. Always "0" or "1". +// C: maximum value, decoded as: +// a: 12 +// b: 14 +// c: 24 +// d: 31 +// e: 59 +// f: 9999 +// D: the separator character, or \000 to indicate this is the +// last number to convert. // // Example: To translate an ISO-8601 date YYYY-MM-DD, the format would // be "40f-21a-20c". The "40f-" indicates the 4-digit year followed by "-". @@ -30215,7 +30292,7 @@ type DateTime = DateTime1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:2312 // the 2-digit day which is the last integer in the set. // // The function returns the number of successful conversions. -func getDigits(tls *libc.TLS, zDate uintptr, zFormat uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23172:12: */ +func getDigits(tls *libc.TLS, zDate uintptr, zFormat uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23366:12: */ var ap Va_list _ = ap var cnt int32 @@ -30272,23 +30349,23 @@ end_getDigits: return cnt } -var aMx = [6]U16{U16(12), U16(14), U16(24), U16(31), U16(59), U16(9999)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23175:20 */ +var aMx = [6]U16{U16(12), U16(14), U16(24), U16(31), U16(59), U16(9999)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23369:20 */ // Parse a timezone extension on the end of a date-time. // The extension is of the form: // -// (+/-)HH:MM +// (+/-)HH:MM // // Or the "zulu" notation: // -// Z +// Z // // If the parse is successful, write the number of minutes // of change in p->tz and return 0. If a parser error occurs, // return non-zero. // // A missing specifier is not considered an error. -func parseTimezone(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23226:12: */ +func parseTimezone(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23420:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -30362,7 +30439,7 @@ __11: // fractional seconds FFFF can be one or more digits. // // Return 1 if there is a parsing error and 0 on success. -func parseHhMmSs(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23262:12: */ +func parseHhMmSs(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23456:12: */ bp := tls.Alloc(36) defer tls.Free(36) @@ -30415,7 +30492,7 @@ func parseHhMmSs(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* testdata/sq } // Put the DateTime object into its error state. -func datetimeError(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23302:13: */ +func datetimeError(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23496:13: */ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(DateTime{}))) (*DateTime)(unsafe.Pointer(p)).FisError = int8(1) } @@ -30424,7 +30501,7 @@ func datetimeError(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3 // that the YYYY-MM-DD is according to the Gregorian calendar. // // Reference: Meeus page 61 -func computeJD(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23313:13: */ +func computeJD(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23507:13: */ var Y int32 var M int32 var D int32 @@ -30472,15 +30549,15 @@ func computeJD(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-33805 // Parse dates of the form // -// YYYY-MM-DD HH:MM:SS.FFF -// YYYY-MM-DD HH:MM:SS -// YYYY-MM-DD HH:MM -// YYYY-MM-DD +// YYYY-MM-DD HH:MM:SS.FFF +// YYYY-MM-DD HH:MM:SS +// YYYY-MM-DD HH:MM +// YYYY-MM-DD // // Write the result into the DateTime structure and return 0 // on success and 1 if the input string is not a well-formed // date. -func parseYyyyMmDd(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23363:12: */ +func parseYyyyMmDd(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23557:12: */ bp := tls.Alloc(36) defer tls.Free(36) @@ -30531,7 +30608,7 @@ func parseYyyyMmDd(tls *libc.TLS, zDate uintptr, p uintptr) int32 { /* testdata/ // Set the time to the current time reported by the VFS. // // Return the number of errors. -func setDateTimeToCurrent(tls *libc.TLS, context uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23400:12: */ +func setDateTimeToCurrent(tls *libc.TLS, context uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23594:12: */ (*DateTime)(unsafe.Pointer(p)).FiJD = Xsqlite3StmtCurrentTime(tls, context) if (*DateTime)(unsafe.Pointer(p)).FiJD > int64(0) { (*DateTime)(unsafe.Pointer(p)).FvalidJD = int8(1) @@ -30546,7 +30623,7 @@ func setDateTimeToCurrent(tls *libc.TLS, context uintptr, p uintptr) int32 { /* // or the number of seconds since 1970. If the value if r is within // range of a julian day number, install it as such and set validJD. // If the value is a valid unix timestamp, put it in p->s and set p->rawS. -func setRawDateNumber(tls *libc.TLS, p uintptr, r float64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23416:13: */ +func setRawDateNumber(tls *libc.TLS, p uintptr, r float64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23610:13: */ (*DateTime)(unsafe.Pointer(p)).Fs = r (*DateTime)(unsafe.Pointer(p)).FrawS = int8(1) if r >= 0.0 && r < 5373484.5 { @@ -30560,16 +30637,16 @@ func setRawDateNumber(tls *libc.TLS, p uintptr, r float64) { /* testdata/sqlite- // // The following are acceptable forms for the input string: // -// YYYY-MM-DD HH:MM:SS.FFF +/-HH:MM -// DDDD.DD -// now +// YYYY-MM-DD HH:MM:SS.FFF +/-HH:MM +// DDDD.DD +// now // // In the first form, the +/-HH:MM is always optional. The fractional // seconds extension (the ".FFF") is optional. The seconds portion // (":SS.FFF") is option. The year and date can be omitted as long // as there is a time string. The time string can be omitted as long // as there is a year and date. -func parseDateOrTime(tls *libc.TLS, context uintptr, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23441:12: */ +func parseDateOrTime(tls *libc.TLS, context uintptr, zDate uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23635:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -30598,12 +30675,12 @@ func parseDateOrTime(tls *libc.TLS, context uintptr, zDate uintptr, p uintptr) i // Return TRUE if the given julian day number is within range. // // The input is the JulianDay times 86400000. -func validJulianDay(tls *libc.TLS, iJD Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23474:12: */ +func validJulianDay(tls *libc.TLS, iJD Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23668:12: */ return libc.Bool32(iJD >= int64(0) && iJD <= I64(int64(0x1a640))<<32|int64(0x1072fdff)) } // Compute the Year, Month, and Day from the julian day number. -func computeYMD(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23481:13: */ +func computeYMD(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23675:13: */ var Z int32 var A int32 var B int32 @@ -30648,7 +30725,7 @@ func computeYMD(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380 } // Compute the Hour, Minute, and Seconds from the julian day number. -func computeHMS(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23510:13: */ +func computeHMS(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23704:13: */ var s int32 if (*DateTime)(unsafe.Pointer(p)).FvalidHMS != 0 { return @@ -30667,13 +30744,13 @@ func computeHMS(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380 } // Compute both YMD and HMS -func computeYMD_HMS(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23529:13: */ +func computeYMD_HMS(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23723:13: */ computeYMD(tls, p) computeHMS(tls, p) } // Clear the YMD and HMS and the TZ -func clearYMD_HMS_TZ(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23537:13: */ +func clearYMD_HMS_TZ(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23731:13: */ (*DateTime)(unsafe.Pointer(p)).FvalidYMD = int8(0) (*DateTime)(unsafe.Pointer(p)).FvalidHMS = int8(0) (*DateTime)(unsafe.Pointer(p)).FvalidTZ = int8(0) @@ -30703,7 +30780,7 @@ func clearYMD_HMS_TZ(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation // EVIDENCE-OF: R-62172-00036 In this implementation, the standard C // library function localtime_r() is used to assist in the calculation of // local time. -func osLocaltime(tls *libc.TLS, t uintptr, pTm uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23577:12: */ +func osLocaltime(tls *libc.TLS, t uintptr, pTm uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23771:12: */ var rc int32 var pX uintptr var mutex uintptr = Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN) @@ -30728,7 +30805,7 @@ func osLocaltime(tls *libc.TLS, t uintptr, pTm uintptr) int32 { /* testdata/sqli } // Assuming the input DateTime is UTC, move it to its localtime equivalent. -func toLocaltime(tls *libc.TLS, p uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23627:12: */ +func toLocaltime(tls *libc.TLS, p uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23821:12: */ bp := tls.Alloc(96) defer tls.Free(96) @@ -30780,7 +30857,7 @@ func toLocaltime(tls *libc.TLS, p uintptr, pCtx uintptr) int32 { /* testdata/sql // The following table defines various date transformations of the form // -// 'NNN days' +// 'NNN days' // // Where NNN is an arbitrary floating-point number and "days" can be one // of several units of time. @@ -30796,31 +30873,31 @@ var aXformType = [6]struct { {FnName: U8(3), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1187 /* "day\x00\x00\x00" */)), FrLimit: 5373485.0, FrXform: 86400.0}, {FnName: U8(5), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1194 /* "month\x00" */)), FrLimit: 176546.0, FrXform: 2592000.0}, {FnName: U8(4), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1201 /* "year\x00\x00" */)), FrLimit: 14713.0, FrXform: 31536000.0}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23691:3 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23885:3 */ // Process a modifier to a date-time stamp. The modifiers are // as follows: // -// NNN days -// NNN hours -// NNN minutes -// NNN.NNNN seconds -// NNN months -// NNN years -// start of month -// start of year -// start of week -// start of day -// weekday N -// unixepoch -// localtime -// utc +// NNN days +// NNN hours +// NNN minutes +// NNN.NNNN seconds +// NNN months +// NNN years +// start of month +// start of year +// start of week +// start of day +// weekday N +// unixepoch +// localtime +// utc // // Return 0 on success and 1 if there is any kind of error. If the error // is in a system call (i.e. localtime()), then an error message is written // to context pCtx. If the error is an unrecognized modifier, no error is // written to pCtx. -func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr, idx int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23724:12: */ +func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr, idx int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:23918:12: */ bp := tls.Alloc(104) defer tls.Free(104) @@ -31146,7 +31223,7 @@ func parseModifier(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, p uintptr, i // // If there are zero parameters (if even argv[0] is undefined) // then assume a default value of "now" for argv[0]. -func isDate(tls *libc.TLS, context uintptr, argc int32, argv uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:23999:12: */ +func isDate(tls *libc.TLS, context uintptr, argc int32, argv uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24193:12: */ var i int32 var n int32 var z uintptr @@ -31184,10 +31261,10 @@ func isDate(tls *libc.TLS, context uintptr, argc int32, argv uintptr, p uintptr) // The following routines implement the various date and time functions // of SQLite. -// julianday( TIMESTRING, MOD, MOD, ...) +// julianday( TIMESTRING, MOD, MOD, ...) // // Return the julian day number of the date specified in the arguments -func juliandayFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24043:13: */ +func juliandayFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24237:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -31199,11 +31276,11 @@ func juliandayFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { / } } -// unixepoch( TIMESTRING, MOD, MOD, ...) +// unixepoch( TIMESTRING, MOD, MOD, ...) // // Return the number of seconds (including fractional seconds) since // the unix epoch of 1970-01-01 00:00:00 GMT. -func unixepochFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24061:13: */ +func unixepochFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24255:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -31215,10 +31292,10 @@ func unixepochFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { / } } -// datetime( TIMESTRING, MOD, MOD, ...) +// datetime( TIMESTRING, MOD, MOD, ...) // // Return YYYY-MM-DD HH:MM:SS -func datetimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24078:13: */ +func datetimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24272:13: */ bp := tls.Alloc(72) defer tls.Free(72) @@ -31264,10 +31341,10 @@ func datetimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* } } -// time( TIMESTRING, MOD, MOD, ...) +// time( TIMESTRING, MOD, MOD, ...) // // Return HH:MM:SS -func timeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24125:13: */ +func timeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24319:13: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -31292,10 +31369,10 @@ func timeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* tes } } -// date( TIMESTRING, MOD, MOD, ...) +// date( TIMESTRING, MOD, MOD, ...) // // Return YYYY-MM-DD -func dateFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24154:13: */ +func dateFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24348:13: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -31330,24 +31407,24 @@ func dateFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* tes } } -// strftime( FORMAT, TIMESTRING, MOD, MOD, ...) +// strftime( FORMAT, TIMESTRING, MOD, MOD, ...) // // Return a string described by FORMAT. Conversions as follows: // -// %d day of month -// %f ** fractional seconds SS.SSS -// %H hour 00-24 -// %j day of year 000-366 -// %J ** julian day number -// %m month 01-12 -// %M minute 00-59 -// %s seconds since 1970-01-01 -// %S seconds 00-59 -// %w day of week 0-6 sunday==0 -// %W week of year 00-53 -// %Y year 0000-9999 -// %% % -func strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24205:13: */ +// %d day of month +// %f ** fractional seconds SS.SSS +// %H hour 00-24 +// %j day of year 000-366 +// %J ** julian day number +// %m month 01-12 +// %M minute 00-59 +// %s seconds since 1970-01-01 +// %S seconds 00-59 +// %w day of week 0-6 sunday==0 +// %W week of year 00-53 +// %Y year 0000-9999 +// %% % +func strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24399:13: */ bp := tls.Alloc(216) defer tls.Free(216) @@ -31491,7 +31568,7 @@ func strftimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* // current_time() // // This function returns the same value as time('now'). -func ctimeFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24312:13: */ +func ctimeFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24506:13: */ _ = NotUsed _ = NotUsed2 timeFunc(tls, context, 0, uintptr(0)) @@ -31500,7 +31577,7 @@ func ctimeFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) // current_date() // // This function returns the same value as date('now'). -func cdateFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24326:13: */ +func cdateFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24520:13: */ _ = NotUsed _ = NotUsed2 dateFunc(tls, context, 0, uintptr(0)) @@ -31509,7 +31586,7 @@ func cdateFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) // current_timestamp() // // This function returns the same value as datetime('now'). -func ctimestampFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24340:13: */ +func ctimestampFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24534:13: */ _ = NotUsed _ = NotUsed2 datetimeFunc(tls, context, 0, uintptr(0)) @@ -31518,7 +31595,7 @@ func ctimestampFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uint // This function registered all of the above C functions as SQL // functions. This should be the only routine in this file with // external linkage. -func Xsqlite3RegisterDateTimeFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24400:21: */ +func Xsqlite3RegisterDateTimeFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24594:21: */ Xsqlite3InsertBuiltinFuncs(tls, uintptr(unsafe.Pointer(&aDateTimeFuncs)), int32(uint64(unsafe.Sizeof(aDateTimeFuncs))/uint64(unsafe.Sizeof(FuncDef{})))) } @@ -31531,7 +31608,7 @@ var aDateTimeFuncs = [9]FuncDef{ {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FpUserData: 0, FxSFunc: 0, FzName: ts + 1333}, {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1342}, {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1355}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1373}} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24401:18 */ + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1373}} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24595:18 */ //************* End of date.c *********************************************** //************* Begin file os.c ********************************************* @@ -31583,7 +31660,7 @@ var aDateTimeFuncs = [9]FuncDef{ // of the sqlite3_file object. This is mostly just syntactic sugar. All // of this would be completely automatic if SQLite were coded using // C++ instead of plain old C. -func Xsqlite3OsClose(tls *libc.TLS, pId uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24504:21: */ +func Xsqlite3OsClose(tls *libc.TLS, pId uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24698:21: */ if (*Sqlite3_file)(unsafe.Pointer(pId)).FpMethods != 0 { (*struct { f func(*libc.TLS, uintptr) int32 @@ -31592,27 +31669,27 @@ func Xsqlite3OsClose(tls *libc.TLS, pId uintptr) { /* testdata/sqlite-amalgamati } } -func Xsqlite3OsRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24510:20: */ +func Xsqlite3OsRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24704:20: */ return (*struct { f func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32 })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxRead})).f(tls, id, pBuf, amt, offset) } -func Xsqlite3OsWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24514:20: */ +func Xsqlite3OsWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24708:20: */ return (*struct { f func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32 })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxWrite})).f(tls, id, pBuf, amt, offset) } -func Xsqlite3OsTruncate(tls *libc.TLS, id uintptr, size I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24518:20: */ +func Xsqlite3OsTruncate(tls *libc.TLS, id uintptr, size I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24712:20: */ return (*struct { f func(*libc.TLS, uintptr, Sqlite3_int64) int32 })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxTruncate})).f(tls, id, size) } -func Xsqlite3OsSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24521:20: */ +func Xsqlite3OsSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24715:20: */ if flags != 0 { return (*struct { @@ -31622,27 +31699,27 @@ func Xsqlite3OsSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/ return SQLITE_OK } -func Xsqlite3OsFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24525:20: */ +func Xsqlite3OsFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24719:20: */ return (*struct { f func(*libc.TLS, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxFileSize})).f(tls, id, pSize) } -func Xsqlite3OsLock(tls *libc.TLS, id uintptr, lockType int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24529:20: */ +func Xsqlite3OsLock(tls *libc.TLS, id uintptr, lockType int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24723:20: */ return (*struct { f func(*libc.TLS, uintptr, int32) int32 })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxLock})).f(tls, id, lockType) } -func Xsqlite3OsUnlock(tls *libc.TLS, id uintptr, lockType int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24533:20: */ +func Xsqlite3OsUnlock(tls *libc.TLS, id uintptr, lockType int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24727:20: */ return (*struct { f func(*libc.TLS, uintptr, int32) int32 })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxUnlock})).f(tls, id, lockType) } -func Xsqlite3OsCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24536:20: */ +func Xsqlite3OsCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24730:20: */ return (*struct { f func(*libc.TLS, uintptr, uintptr) int32 @@ -31655,7 +31732,7 @@ func Xsqlite3OsCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int // really care if the VFS receives and understands the information since it // is only a hint and can be safely ignored. The sqlite3OsFileControlHint() // routine has no return value since the return value would be meaningless. -func Xsqlite3OsFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24549:20: */ +func Xsqlite3OsFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24743:20: */ if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods == uintptr(0) { return SQLITE_NOTFOUND } @@ -31664,7 +31741,7 @@ func Xsqlite3OsFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) in })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxFileControl})).f(tls, id, op, pArg) } -func Xsqlite3OsFileControlHint(tls *libc.TLS, id uintptr, op int32, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24577:21: */ +func Xsqlite3OsFileControlHint(tls *libc.TLS, id uintptr, op int32, pArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24771:21: */ if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods != 0 { (*struct { f func(*libc.TLS, uintptr, int32, uintptr) int32 @@ -31672,7 +31749,7 @@ func Xsqlite3OsFileControlHint(tls *libc.TLS, id uintptr, op int32, pArg uintptr } } -func Xsqlite3OsSectorSize(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24581:20: */ +func Xsqlite3OsSectorSize(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24775:20: */ var xSectorSize uintptr = (*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxSectorSize return func() int32 { if xSectorSize != 0 { @@ -31684,7 +31761,7 @@ func Xsqlite3OsSectorSize(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite- }() } -func Xsqlite3OsDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24585:20: */ +func Xsqlite3OsDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24779:20: */ if (*Sqlite3_file)(unsafe.Pointer(id)).FpMethods == uintptr(0) { return 0 } @@ -31693,23 +31770,23 @@ func Xsqlite3OsDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* testd })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxDeviceCharacteristics})).f(tls, id) } -func Xsqlite3OsShmLock(tls *libc.TLS, id uintptr, offset int32, n int32, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24590:20: */ +func Xsqlite3OsShmLock(tls *libc.TLS, id uintptr, offset int32, n int32, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24784:20: */ return (*struct { f func(*libc.TLS, uintptr, int32, int32, int32) int32 })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxShmLock})).f(tls, id, offset, n, flags) } -func Xsqlite3OsShmBarrier(tls *libc.TLS, id uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24593:21: */ +func Xsqlite3OsShmBarrier(tls *libc.TLS, id uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24787:21: */ (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxShmBarrier})).f(tls, id) } -func Xsqlite3OsShmUnmap(tls *libc.TLS, id uintptr, deleteFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24596:20: */ +func Xsqlite3OsShmUnmap(tls *libc.TLS, id uintptr, deleteFlag int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24790:20: */ return (*struct { f func(*libc.TLS, uintptr, int32) int32 })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxShmUnmap})).f(tls, id, deleteFlag) } -func Xsqlite3OsShmMap(tls *libc.TLS, id uintptr, iPage int32, pgsz int32, bExtend int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24599:20: */ +func Xsqlite3OsShmMap(tls *libc.TLS, id uintptr, iPage int32, pgsz int32, bExtend int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24793:20: */ return (*struct { f func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32 @@ -31717,14 +31794,14 @@ func Xsqlite3OsShmMap(tls *libc.TLS, id uintptr, iPage int32, pgsz int32, bExten } // The real implementation of xFetch and xUnfetch -func Xsqlite3OsFetch(tls *libc.TLS, id uintptr, iOff I64, iAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24613:20: */ +func Xsqlite3OsFetch(tls *libc.TLS, id uintptr, iOff I64, iAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24807:20: */ return (*struct { f func(*libc.TLS, uintptr, Sqlite3_int64, int32, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxFetch})).f(tls, id, iOff, iAmt, pp) } -func Xsqlite3OsUnfetch(tls *libc.TLS, id uintptr, iOff I64, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24617:20: */ +func Xsqlite3OsUnfetch(tls *libc.TLS, id uintptr, iOff I64, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24811:20: */ return (*struct { f func(*libc.TLS, uintptr, Sqlite3_int64, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer(id)).FpMethods)).FxUnfetch})).f(tls, id, iOff, p) @@ -31732,7 +31809,7 @@ func Xsqlite3OsUnfetch(tls *libc.TLS, id uintptr, iOff I64, p uintptr) int32 { / // The next group of routines are convenience wrappers around the // VFS methods. -func Xsqlite3OsOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, flags int32, pFlagsOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24635:20: */ +func Xsqlite3OsOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, flags int32, pFlagsOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24829:20: */ var rc int32 // 0x87f7f is a mask of SQLITE_OPEN_ flags that are valid to be passed @@ -31746,7 +31823,7 @@ func Xsqlite3OsOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, f return rc } -func Xsqlite3OsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24652:20: */ +func Xsqlite3OsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24846:20: */ if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxDelete != uintptr(0) { return (*struct { @@ -31756,14 +31833,14 @@ func Xsqlite3OsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) return SQLITE_OK } -func Xsqlite3OsAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24657:20: */ +func Xsqlite3OsAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24851:20: */ return (*struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxAccess})).f(tls, pVfs, zPath, flags, pResOut) } -func Xsqlite3OsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nPathOut int32, zPathOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24666:20: */ +func Xsqlite3OsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nPathOut int32, zPathOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24860:20: */ *(*int8)(unsafe.Pointer(zPathOut)) = int8(0) return (*struct { @@ -31771,7 +31848,7 @@ func Xsqlite3OsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nPathOut })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxFullPathname})).f(tls, pVfs, zPath, nPathOut, zPathOut) } -func Xsqlite3OsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24677:21: */ +func Xsqlite3OsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24871:21: */ // tag-20210611-1 return (*struct { @@ -31779,25 +31856,25 @@ func Xsqlite3OsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* t })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxDlOpen})).f(tls, pVfs, zPath) } -func Xsqlite3OsDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24682:21: */ +func Xsqlite3OsDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24876:21: */ (*struct { f func(*libc.TLS, uintptr, int32, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxDlError})).f(tls, pVfs, nByte, zBufOut) } -func Xsqlite3OsDlSym(tls *libc.TLS, pVfs uintptr, pHdle uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24685:21: */ +func Xsqlite3OsDlSym(tls *libc.TLS, pVfs uintptr, pHdle uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24879:21: */ return (*struct { f func(*libc.TLS, uintptr, uintptr, uintptr) uintptr })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxDlSym})).f(tls, pVfs, pHdle, zSym) } -func Xsqlite3OsDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24688:21: */ +func Xsqlite3OsDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24882:21: */ (*struct { f func(*libc.TLS, uintptr, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxDlClose})).f(tls, pVfs, pHandle) } -func Xsqlite3OsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24692:20: */ +func Xsqlite3OsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24886:20: */ if Xsqlite3Config.FiPrngSeed != 0 { libc.Xmemset(tls, zBufOut, 0, uint64(nByte)) if nByte > int32(unsafe.Sizeof(uint32(0))) { @@ -31814,13 +31891,13 @@ func Xsqlite3OsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uint } -func Xsqlite3OsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24703:20: */ +func Xsqlite3OsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24897:20: */ return (*struct { f func(*libc.TLS, uintptr, int32) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxSleep})).f(tls, pVfs, nMicro) } -func Xsqlite3OsGetLastError(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24706:20: */ +func Xsqlite3OsGetLastError(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24900:20: */ if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxGetLastError != 0 { return (*struct { f func(*libc.TLS, uintptr, int32, uintptr) int32 @@ -31829,7 +31906,7 @@ func Xsqlite3OsGetLastError(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sql return 0 } -func Xsqlite3OsCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24709:20: */ +func Xsqlite3OsCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24903:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -31854,7 +31931,7 @@ func Xsqlite3OsCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) i return rc } -func Xsqlite3OsOpenMalloc(tls *libc.TLS, pVfs uintptr, zFile uintptr, ppFile uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24727:20: */ +func Xsqlite3OsOpenMalloc(tls *libc.TLS, pVfs uintptr, zFile uintptr, ppFile uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24921:20: */ var rc int32 var pFile uintptr pFile = Xsqlite3MallocZero(tls, uint64((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile)) @@ -31874,7 +31951,7 @@ func Xsqlite3OsOpenMalloc(tls *libc.TLS, pVfs uintptr, zFile uintptr, ppFile uin return rc } -func Xsqlite3OsCloseFree(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24752:21: */ +func Xsqlite3OsCloseFree(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24946:21: */ Xsqlite3OsClose(tls, pFile) Xsqlite3_free(tls, pFile) @@ -31884,7 +31961,7 @@ func Xsqlite3OsCloseFree(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amal // sqlite3_os_init(). The purpose of the wrapper is to provide the // ability to simulate a malloc failure, so that the handling of an // error in sqlite3_os_init() by the upper layers can be tested. -func Xsqlite3OsInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24764:20: */ +func Xsqlite3OsInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24958:20: */ var p uintptr = Xsqlite3_malloc(tls, 10) if p == uintptr(0) { return SQLITE_NOMEM @@ -31894,11 +31971,11 @@ func Xsqlite3OsInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-33805 } // The list of all registered VFS implementations. -var vfsList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24774:20 */ +var vfsList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24968:20 */ // Locate a VFS by name. If no name is given, simply return the // first VFS on the list. -func Xsqlite3_vfs_find(tls *libc.TLS, zVfs uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24781:24: */ +func Xsqlite3_vfs_find(tls *libc.TLS, zVfs uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24975:24: */ var pVfs uintptr = uintptr(0) var mutex uintptr var rc int32 = Xsqlite3_initialize(tls) @@ -31920,7 +31997,7 @@ func Xsqlite3_vfs_find(tls *libc.TLS, zVfs uintptr) uintptr { /* testdata/sqlite } // Unlink a VFS from the linked list -func vfsUnlink(tls *libc.TLS, pVfs uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24805:13: */ +func vfsUnlink(tls *libc.TLS, pVfs uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24999:13: */ if pVfs == uintptr(0) { // No-op @@ -31940,7 +32017,7 @@ func vfsUnlink(tls *libc.TLS, pVfs uintptr) { /* testdata/sqlite-amalgamation-33 // Register a VFS with the system. It is harmless to register the same // VFS multiple times. The new VFS becomes the default if makeDflt is // true. -func Xsqlite3_vfs_register(tls *libc.TLS, pVfs uintptr, makeDflt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24827:16: */ +func Xsqlite3_vfs_register(tls *libc.TLS, pVfs uintptr, makeDflt int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25021:16: */ var mutex uintptr var rc int32 = Xsqlite3_initialize(tls) if rc != 0 { @@ -31963,7 +32040,7 @@ func Xsqlite3_vfs_register(tls *libc.TLS, pVfs uintptr, makeDflt int32) int32 { } // Unregister a VFS so that it is no longer accessible. -func Xsqlite3_vfs_unregister(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24855:16: */ +func Xsqlite3_vfs_unregister(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25049:16: */ var mutex uintptr var rc int32 = Xsqlite3_initialize(tls) if rc != 0 { @@ -32008,7 +32085,7 @@ func Xsqlite3_vfs_unregister(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sq type BenignMallocHooks1 = struct { FxBenignBegin uintptr FxBenignEnd uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24903:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25097:9 */ //************* End of os.c ************************************************* //************* Begin file fault.c ****************************************** @@ -32039,8 +32116,8 @@ type BenignMallocHooks1 = struct { // #include "sqliteInt.h" // Global variables. -type BenignMallocHooks = BenignMallocHooks1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24903:34 */ -var sqlite3Hooks = BenignMallocHooks1{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24907:3 */ +type BenignMallocHooks = BenignMallocHooks1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25097:34 */ +var sqlite3Hooks = BenignMallocHooks1{} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25101:3 */ // The "wsdHooks" macro will resolve to the appropriate BenignMallocHooks // structure. If writable static data is unsupported on the target, @@ -32050,7 +32127,7 @@ var sqlite3Hooks = BenignMallocHooks1{} /* testdata/sqlite-amalgamation-3380 // Register hooks to call when sqlite3BeginBenignMalloc() and // sqlite3EndBenignMalloc() are called, respectively. -func Xsqlite3BenignMallocHooks(tls *libc.TLS, xBenignBegin uintptr, xBenignEnd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24929:21: */ +func Xsqlite3BenignMallocHooks(tls *libc.TLS, xBenignBegin uintptr, xBenignEnd uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25123:21: */ sqlite3Hooks.FxBenignBegin = xBenignBegin sqlite3Hooks.FxBenignEnd = xBenignEnd @@ -32059,14 +32136,14 @@ func Xsqlite3BenignMallocHooks(tls *libc.TLS, xBenignBegin uintptr, xBenignEnd u // This (sqlite3EndBenignMalloc()) is called by SQLite code to indicate that // subsequent malloc failures are benign. A call to sqlite3EndBenignMalloc() // indicates that subsequent malloc failures are non-benign. -func Xsqlite3BeginBenignMalloc(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24943:21: */ +func Xsqlite3BeginBenignMalloc(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25137:21: */ if sqlite3Hooks.FxBenignBegin != 0 { (*struct{ f func(*libc.TLS) })(unsafe.Pointer(&struct{ uintptr }{sqlite3Hooks.FxBenignBegin})).f(tls) } } -func Xsqlite3EndBenignMalloc(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24949:21: */ +func Xsqlite3EndBenignMalloc(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25143:21: */ if sqlite3Hooks.FxBenignEnd != 0 { (*struct{ f func(*libc.TLS) })(unsafe.Pointer(&struct{ uintptr }{sqlite3Hooks.FxBenignEnd})).f(tls) @@ -32168,7 +32245,7 @@ func Xsqlite3EndBenignMalloc(tls *libc.TLS) { /* testdata/sqlite-amalgamation-33 // For this low-level routine, we are guaranteed that nByte>0 because // cases of nByte<=0 will be intercepted and dealt with by higher level // routines. -func sqlite3MemMalloc(tls *libc.TLS, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25149:13: */ +func sqlite3MemMalloc(tls *libc.TLS, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25343:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -32188,13 +32265,13 @@ func sqlite3MemMalloc(tls *libc.TLS, nByte int32) uintptr { /* testdata/sqlite-a // For this low-level routine, we already know that pPrior!=0 since // cases where pPrior==0 will have been intecepted and dealt with // by higher-level routines. -func sqlite3MemFree(tls *libc.TLS, pPrior uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25183:13: */ +func sqlite3MemFree(tls *libc.TLS, pPrior uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25377:13: */ libc.Xfree(tls, pPrior) } // Report the allocated size of a prior return from xMalloc() // or xRealloc(). -func sqlite3MemSize(tls *libc.TLS, pPrior uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25198:12: */ +func sqlite3MemSize(tls *libc.TLS, pPrior uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25392:12: */ return int32(libc.X_msize(tls, pPrior)) } @@ -32207,7 +32284,7 @@ func sqlite3MemSize(tls *libc.TLS, pPrior uintptr) int32 { /* testdata/sqlite-am // redirected to xMalloc. Similarly, we know that nByte>0 because // cases where nByte<=0 will have been intercepted by higher-level // routines and redirected to xFree. -func sqlite3MemRealloc(tls *libc.TLS, pPrior uintptr, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25221:13: */ +func sqlite3MemRealloc(tls *libc.TLS, pPrior uintptr, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25415:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -32222,18 +32299,18 @@ func sqlite3MemRealloc(tls *libc.TLS, pPrior uintptr, nByte int32) uintptr { /* } // Round up a request size to the next valid allocation size. -func sqlite3MemRoundup(tls *libc.TLS, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25253:12: */ +func sqlite3MemRoundup(tls *libc.TLS, n int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25447:12: */ return (n + 7) & libc.CplInt32(7) } // Initialize this module. -func sqlite3MemInit(tls *libc.TLS, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25260:12: */ +func sqlite3MemInit(tls *libc.TLS, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25454:12: */ _ = NotUsed return SQLITE_OK } // Deinitialize this module. -func sqlite3MemShutdown(tls *libc.TLS, NotUsed uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25287:13: */ +func sqlite3MemShutdown(tls *libc.TLS, NotUsed uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25481:13: */ _ = NotUsed return } @@ -32242,7 +32319,7 @@ func sqlite3MemShutdown(tls *libc.TLS, NotUsed uintptr) { /* testdata/sqlite-ama // // Populate the low-level memory allocation function pointers in // sqlite3GlobalConfig.m with pointers to the routines in this file. -func Xsqlite3MemSetDefault(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25298:21: */ +func Xsqlite3MemSetDefault(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25492:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -32257,7 +32334,7 @@ var defaultMethods = Sqlite3_mem_methods{ FxRoundup: 0, FxInit: 0, FxShutdown: 0, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:25299:36 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:25493:36 */ //************* End of mem1.c *********************************************** //************* Begin file mem2.c ******************************************* @@ -32391,7 +32468,7 @@ var defaultMethods = Sqlite3_mem_methods{ // #include "sqliteInt.h" // Initialize the mutex system. -func Xsqlite3MutexInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27334:20: */ +func Xsqlite3MutexInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27533:20: */ var rc int32 = SQLITE_OK if !(int32(Xsqlite3Config.Fmutex.FxMutexAlloc) != 0) { // If the xMutexAlloc method has not been set, then the user did not @@ -32425,7 +32502,7 @@ func Xsqlite3MutexInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-33 // Shutdown the mutex system. This call frees resources allocated by // sqlite3MutexInit(). -func Xsqlite3MutexEnd(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27380:20: */ +func Xsqlite3MutexEnd(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27579:20: */ var rc int32 = SQLITE_OK if Xsqlite3Config.Fmutex.FxMutexEnd != 0 { rc = (*struct{ f func(*libc.TLS) int32 })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexEnd})).f(tls) @@ -32435,7 +32512,7 @@ func Xsqlite3MutexEnd(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-338 } // Retrieve a pointer to a static mutex or allocate a new dynamic one. -func Xsqlite3_mutex_alloc(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27396:26: */ +func Xsqlite3_mutex_alloc(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27595:26: */ if id <= SQLITE_MUTEX_RECURSIVE && Xsqlite3_initialize(tls) != 0 { return uintptr(0) } @@ -32448,7 +32525,7 @@ func Xsqlite3_mutex_alloc(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite- })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexAlloc})).f(tls, id) } -func Xsqlite3MutexAlloc(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27405:30: */ +func Xsqlite3MutexAlloc(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27604:30: */ if !(int32(Xsqlite3Config.FbCoreMutex) != 0) { return uintptr(0) } @@ -32459,7 +32536,7 @@ func Xsqlite3MutexAlloc(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-am } // Free a dynamic mutex. -func Xsqlite3_mutex_free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27417:17: */ +func Xsqlite3_mutex_free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27616:17: */ if p != 0 { (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexFree})).f(tls, p) @@ -32468,7 +32545,7 @@ func Xsqlite3_mutex_free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama // Obtain the mutex p. If some other thread already has the mutex, block // until it can be obtained. -func Xsqlite3_mutex_enter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27428:17: */ +func Xsqlite3_mutex_enter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27627:17: */ if p != 0 { (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexEnter})).f(tls, p) @@ -32477,7 +32554,7 @@ func Xsqlite3_mutex_enter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgam // Obtain the mutex p. If successful, return SQLITE_OK. Otherwise, if another // thread holds the mutex and it cannot be obtained, return SQLITE_BUSY. -func Xsqlite3_mutex_try(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27439:16: */ +func Xsqlite3_mutex_try(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27638:16: */ var rc int32 = SQLITE_OK if p != 0 { @@ -32492,7 +32569,7 @@ func Xsqlite3_mutex_try(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-ama // entered by the same thread. The behavior is undefined if the mutex // is not currently entered. If a NULL pointer is passed as an argument // this function is a no-op. -func Xsqlite3_mutex_leave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27454:17: */ +func Xsqlite3_mutex_leave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27653:17: */ if p != 0 { (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fmutex.FxMutexLeave})).f(tls, p) @@ -32531,40 +32608,40 @@ func Xsqlite3_mutex_leave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgam // Stub routines for all mutex methods. // // This routines provide no mutual exclusion or error checking. -func noopMutexInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27517:12: */ +func noopMutexInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27716:12: */ return SQLITE_OK } -func noopMutexEnd(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27518:12: */ +func noopMutexEnd(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27717:12: */ return SQLITE_OK } -func noopMutexAlloc(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27519:22: */ +func noopMutexAlloc(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27718:22: */ _ = id return uintptr(8) } -func noopMutexFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27523:13: */ +func noopMutexFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27722:13: */ _ = p return } -func noopMutexEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27524:13: */ +func noopMutexEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27723:13: */ _ = p return } -func noopMutexTry(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27525:12: */ +func noopMutexTry(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27724:12: */ _ = p return SQLITE_OK } -func noopMutexLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27529:13: */ +func noopMutexLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27728:13: */ _ = p return } -func Xsqlite3NoopMutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27531:44: */ +func Xsqlite3NoopMutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27730:44: */ return uintptr(unsafe.Pointer(&sMutex)) } @@ -32577,11 +32654,11 @@ var sMutex = Sqlite3_mutex_methods{ FxMutexEnter: 0, FxMutexTry: 0, FxMutexLeave: 0, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27532:38 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27731:38 */ // If compiled with SQLITE_MUTEX_NOOP, then the no-op mutex implementation // is used regardless of the run-time threadsafety setting. -func Xsqlite3DefaultMutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:27690:44: */ +func Xsqlite3DefaultMutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:27889:44: */ return Xsqlite3NoopMutex(tls) } @@ -36661,15 +36738,15 @@ type _COMPATIBILITY_CONTEXT_ELEMENT = struct { type COMPATIBILITY_CONTEXT_ELEMENT = _COMPATIBILITY_CONTEXT_ELEMENT /* /usr/x86_64-w64-mingw32/include/winnt.h:8213:7 */ type PCOMPATIBILITY_CONTEXT_ELEMENT = uintptr /* /usr/x86_64-w64-mingw32/include/winnt.h:8213:37 */ -//Vista: {e2011457-1546-43c5-a5fe-008deee3d3f0} -//Seven: {35138b9a-5d96-4fbd-8e2d-a2440225f93a} +// Vista: {e2011457-1546-43c5-a5fe-008deee3d3f0} +// Seven: {35138b9a-5d96-4fbd-8e2d-a2440225f93a} type _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION = struct { F__ccgo_pad1 [0]uint32 FElementCount DWORD } /* /usr/x86_64-w64-mingw32/include/winnt.h:8217:13 */ -//Vista: {e2011457-1546-43c5-a5fe-008deee3d3f0} -//Seven: {35138b9a-5d96-4fbd-8e2d-a2440225f93a} +// Vista: {e2011457-1546-43c5-a5fe-008deee3d3f0} +// Seven: {35138b9a-5d96-4fbd-8e2d-a2440225f93a} type ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION = _ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION /* /usr/x86_64-w64-mingw32/include/winnt.h:8220:7 */ type PACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION = uintptr /* /usr/x86_64-w64-mingw32/include/winnt.h:8220:52 */ @@ -63320,7 +63397,7 @@ type REGISTERWORDENUMPROCW = uintptr /* /usr/x86_64-w64-mingw32/include/imm.h:18 // Attempt to release up to n bytes of non-essential memory currently // held by SQLite. An example of non-essential memory is memory used to // cache database pages that are not currently in use. -func Xsqlite3_release_memory(tls *libc.TLS, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28611:16: */ +func Xsqlite3_release_memory(tls *libc.TLS, n int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28810:16: */ return Xsqlite3PcacheReleaseMemory(tls, n) } @@ -63333,22 +63410,22 @@ type Mem0Global = struct { FhardLimit Sqlite3_int64 FnearlyFull int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28633:19 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28832:19 */ // Default value of the hard heap limit. 0 means "no limit". // State information local to the memory allocation subsystem. -var mem0 = Mem0Global{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28643:3 */ +var mem0 = Mem0Global{} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28842:3 */ // Return the memory allocator mutex. sqlite3_status() needs it. -func Xsqlite3MallocMutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28650:30: */ +func Xsqlite3MallocMutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28849:30: */ return mem0.Fmutex } // Deprecated external interface. It used to set an alarm callback // that was invoked when memory usage grew too large. Now it is a // no-op. -func Xsqlite3_memory_alarm(tls *libc.TLS, xCallback uintptr, pArg uintptr, iThreshold Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28660:16: */ +func Xsqlite3_memory_alarm(tls *libc.TLS, xCallback uintptr, pArg uintptr, iThreshold Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28859:16: */ _ = xCallback _ = pArg _ = iThreshold @@ -63364,7 +63441,7 @@ func Xsqlite3_memory_alarm(tls *libc.TLS, xCallback uintptr, pArg uintptr, iThre // // If the hard heap limit is enabled, then the soft heap limit cannot // be disabled nor raised above the hard heap limit. -func Xsqlite3_soft_heap_limit64(tls *libc.TLS, n Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28683:26: */ +func Xsqlite3_soft_heap_limit64(tls *libc.TLS, n Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28882:26: */ var priorLimit Sqlite3_int64 var excess Sqlite3_int64 var nUsed Sqlite3_int64 @@ -63392,7 +63469,7 @@ func Xsqlite3_soft_heap_limit64(tls *libc.TLS, n Sqlite3_int64) Sqlite3_int64 { return priorLimit } -func Xsqlite3_soft_heap_limit(tls *libc.TLS, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28708:17: */ +func Xsqlite3_soft_heap_limit(tls *libc.TLS, n int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28907:17: */ if n < 0 { n = 0 } @@ -63409,7 +63486,7 @@ func Xsqlite3_soft_heap_limit(tls *libc.TLS, n int32) { /* testdata/sqlite-amalg // Setting the hard heap limit will also activate the soft heap limit // and constrain the soft heap limit to be no more than the hard heap // limit. -func Xsqlite3_hard_heap_limit64(tls *libc.TLS, n Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28725:26: */ +func Xsqlite3_hard_heap_limit64(tls *libc.TLS, n Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28924:26: */ var priorLimit Sqlite3_int64 var rc int32 = Xsqlite3_initialize(tls) if rc != 0 { @@ -63428,7 +63505,7 @@ func Xsqlite3_hard_heap_limit64(tls *libc.TLS, n Sqlite3_int64) Sqlite3_int64 { } // Initialize the memory allocation subsystem. -func Xsqlite3MallocInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28747:20: */ +func Xsqlite3MallocInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28946:20: */ var rc int32 if Xsqlite3Config.Fm.FxMalloc == uintptr(0) { Xsqlite3MemSetDefault(tls) @@ -63451,12 +63528,12 @@ func Xsqlite3MallocInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3 // Return true if the heap is currently under memory pressure - in other // words if the amount of heap used is close to the limit set by // sqlite3_soft_heap_limit(). -func Xsqlite3HeapNearlyFull(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28768:20: */ +func Xsqlite3HeapNearlyFull(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28967:20: */ return libc.AtomicLoadNInt32(uintptr(unsafe.Pointer(&mem0))+24, 0) } // Deinitialize the memory allocation subsystem. -func Xsqlite3MallocEnd(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28775:21: */ +func Xsqlite3MallocEnd(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28974:21: */ if Xsqlite3Config.Fm.FxShutdown != 0 { (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fm.FxShutdown})).f(tls, Xsqlite3Config.Fm.FpAppData) } @@ -63464,7 +63541,7 @@ func Xsqlite3MallocEnd(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/ } // Return the amount of memory currently checked out. -func Xsqlite3_memory_used(tls *libc.TLS) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28785:26: */ +func Xsqlite3_memory_used(tls *libc.TLS) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28984:26: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -63479,7 +63556,7 @@ func Xsqlite3_memory_used(tls *libc.TLS) Sqlite3_int64 { /* testdata/sqlite-amal // Return the maximum amount of memory that has ever been // checked out since either the beginning of this process // or since the most recent reset. -func Xsqlite3_memory_highwater(tls *libc.TLS, resetFlag int32) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28796:26: */ +func Xsqlite3_memory_highwater(tls *libc.TLS, resetFlag int32) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:28995:26: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -63492,7 +63569,7 @@ func Xsqlite3_memory_highwater(tls *libc.TLS, resetFlag int32) Sqlite3_int64 { / } // Trigger the alarm -func sqlite3MallocAlarm(tls *libc.TLS, nByte int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28805:13: */ +func sqlite3MallocAlarm(tls *libc.TLS, nByte int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29004:13: */ if mem0.FalarmThreshold <= int64(0) { return } @@ -63503,7 +63580,7 @@ func sqlite3MallocAlarm(tls *libc.TLS, nByte int32) { /* testdata/sqlite-amalgam // Do a memory allocation with statistics and alarms. Assume the // lock is already held. -func mallocWithAlarm(tls *libc.TLS, n int32, pp uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28816:13: */ +func mallocWithAlarm(tls *libc.TLS, n int32, pp uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29015:13: */ var p uintptr var nFull int32 @@ -63550,7 +63627,7 @@ func mallocWithAlarm(tls *libc.TLS, n int32, pp uintptr) { /* testdata/sqlite-am // Allocate memory. This routine is like sqlite3_malloc() except that it // assumes the memory subsystem has already been initialized. -func Xsqlite3Malloc(tls *libc.TLS, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28865:21: */ +func Xsqlite3Malloc(tls *libc.TLS, n U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29064:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -63579,7 +63656,7 @@ func Xsqlite3Malloc(tls *libc.TLS, n U64) uintptr { /* testdata/sqlite-amalgamat // This version of the memory allocation is for use by the application. // First make sure the memory subsystem is initialized, then do the // allocation. -func Xsqlite3_malloc(tls *libc.TLS, n int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28890:17: */ +func Xsqlite3_malloc(tls *libc.TLS, n int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29089:17: */ if Xsqlite3_initialize(tls) != 0 { return uintptr(0) } @@ -63589,7 +63666,7 @@ func Xsqlite3_malloc(tls *libc.TLS, n int32) uintptr { /* testdata/sqlite-amalga return Xsqlite3Malloc(tls, uint64(n)) } -func Xsqlite3_malloc64(tls *libc.TLS, n Sqlite3_uint64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28896:17: */ +func Xsqlite3_malloc64(tls *libc.TLS, n Sqlite3_uint64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29095:17: */ if Xsqlite3_initialize(tls) != 0 { return uintptr(0) } @@ -63597,27 +63674,27 @@ func Xsqlite3_malloc64(tls *libc.TLS, n Sqlite3_uint64) uintptr { /* testdata/sq } // TRUE if p is a lookaside memory allocation from db -func isLookaside(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28907:12: */ +func isLookaside(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29106:12: */ return libc.Bool32(Uptr(p) >= Uptr((*Sqlite3)(unsafe.Pointer(db)).Flookaside.FpStart) && Uptr(p) < Uptr((*Sqlite3)(unsafe.Pointer(db)).Flookaside.FpEnd)) } // Return the size of a memory allocation previously obtained from // sqlite3Malloc() or sqlite3_malloc(). -func Xsqlite3MallocSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28918:20: */ +func Xsqlite3MallocSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29117:20: */ return (*struct { f func(*libc.TLS, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fm.FxSize})).f(tls, p) } -func lookasideMallocSize(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28922:12: */ +func lookasideMallocSize(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29121:12: */ if p < (*Sqlite3)(unsafe.Pointer(db)).Flookaside.FpMiddle { return int32((*Sqlite3)(unsafe.Pointer(db)).Flookaside.FszTrue) } return LOOKASIDE_SMALL } -func Xsqlite3DbMallocSize(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28929:20: */ +func Xsqlite3DbMallocSize(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29128:20: */ if db != 0 { if Uptr(p) < Uptr((*Sqlite3)(unsafe.Pointer(db)).Flookaside.FpEnd) { @@ -63636,7 +63713,7 @@ func Xsqlite3DbMallocSize(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testd })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fm.FxSize})).f(tls, p) } -func Xsqlite3_msize(tls *libc.TLS, p uintptr) Sqlite3_uint64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28958:27: */ +func Xsqlite3_msize(tls *libc.TLS, p uintptr) Sqlite3_uint64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29157:27: */ if p != 0 { return uint64((*struct { @@ -63647,7 +63724,7 @@ func Xsqlite3_msize(tls *libc.TLS, p uintptr) Sqlite3_uint64 { /* testdata/sqlit } // Free memory previously obtained from sqlite3Malloc(). -func Xsqlite3_free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28967:17: */ +func Xsqlite3_free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29166:17: */ if p == uintptr(0) { return } // IMP: R-49053-54554 @@ -63665,14 +63742,14 @@ func Xsqlite3_free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3 // Add the size of memory allocation "p" to the count in // *db->pnBytesFreed. -func measureAllocationSize(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28986:29: */ +func measureAllocationSize(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29185:29: */ *(*int32)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed)) += Xsqlite3DbMallocSize(tls, db, p) } // Free memory that might be associated with a particular database // connection. Calling sqlite3DbFree(D,X) for X==0 is a harmless no-op. // The sqlite3DbFreeNN(D,X) version requires that X be non-NULL. -func Xsqlite3DbFreeNN(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:28995:21: */ +func Xsqlite3DbFreeNN(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29194:21: */ if db != 0 { if (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed != 0 { @@ -63698,7 +63775,7 @@ func Xsqlite3DbFreeNN(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite Xsqlite3_free(tls, p) } -func Xsqlite3DbFree(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29032:21: */ +func Xsqlite3DbFree(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29231:21: */ if p != 0 { Xsqlite3DbFreeNN(tls, db, p) @@ -63706,7 +63783,7 @@ func Xsqlite3DbFree(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-a } // Change the size of an existing memory allocation -func Xsqlite3Realloc(tls *libc.TLS, pOld uintptr, nBytes U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29040:21: */ +func Xsqlite3Realloc(tls *libc.TLS, pOld uintptr, nBytes U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29239:21: */ var nOld int32 var nNew int32 var nDiff int32 @@ -63767,7 +63844,7 @@ func Xsqlite3Realloc(tls *libc.TLS, pOld uintptr, nBytes U64) uintptr { /* testd // The public interface to sqlite3Realloc. Make sure that the memory // subsystem is initialized prior to invoking sqliteRealloc. -func Xsqlite3_realloc(tls *libc.TLS, pOld uintptr, n int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29099:17: */ +func Xsqlite3_realloc(tls *libc.TLS, pOld uintptr, n int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29298:17: */ if Xsqlite3_initialize(tls) != 0 { return uintptr(0) } @@ -63777,7 +63854,7 @@ func Xsqlite3_realloc(tls *libc.TLS, pOld uintptr, n int32) uintptr { /* testdat return Xsqlite3Realloc(tls, pOld, uint64(n)) } -func Xsqlite3_realloc64(tls *libc.TLS, pOld uintptr, n Sqlite3_uint64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29106:17: */ +func Xsqlite3_realloc64(tls *libc.TLS, pOld uintptr, n Sqlite3_uint64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29305:17: */ if Xsqlite3_initialize(tls) != 0 { return uintptr(0) } @@ -63785,7 +63862,7 @@ func Xsqlite3_realloc64(tls *libc.TLS, pOld uintptr, n Sqlite3_uint64) uintptr { } // Allocate and zero memory. -func Xsqlite3MallocZero(tls *libc.TLS, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29117:21: */ +func Xsqlite3MallocZero(tls *libc.TLS, n U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29316:21: */ var p uintptr = Xsqlite3Malloc(tls, n) if p != 0 { libc.Xmemset(tls, p, 0, n) @@ -63795,7 +63872,7 @@ func Xsqlite3MallocZero(tls *libc.TLS, n U64) uintptr { /* testdata/sqlite-amalg // Allocate and zero memory. If the allocation fails, make // the mallocFailed flag in the connection pointer. -func Xsqlite3DbMallocZero(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29129:21: */ +func Xsqlite3DbMallocZero(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29328:21: */ var p uintptr p = Xsqlite3DbMallocRaw(tls, db, n) @@ -63807,7 +63884,7 @@ func Xsqlite3DbMallocZero(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdat // Finish the work of sqlite3DbMallocRawNN for the unusual and // slower case when the allocation cannot be fulfilled using lookaside. -func dbMallocRawFinish(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29141:29: */ +func dbMallocRawFinish(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29340:29: */ var p uintptr p = Xsqlite3Malloc(tls, n) @@ -63829,16 +63906,16 @@ func dbMallocRawFinish(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/s // This is an important assumption. There are many places in the // code that do things like this: // -// int *a = (int*)sqlite3DbMallocRaw(db, 100); -// int *b = (int*)sqlite3DbMallocRaw(db, 200); -// if( b ) a[10] = 9; +// int *a = (int*)sqlite3DbMallocRaw(db, 100); +// int *b = (int*)sqlite3DbMallocRaw(db, 200); +// if( b ) a[10] = 9; // // In other words, if a subsequent malloc (ex: "b") worked, it is assumed // that all prior mallocs (ex: "a") worked too. // // The sqlite3MallocRawNN() variant guarantees that the "db" parameter is // not a NULL pointer. -func Xsqlite3DbMallocRaw(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29173:21: */ +func Xsqlite3DbMallocRaw(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29372:21: */ var p uintptr if db != 0 { return Xsqlite3DbMallocRawNN(tls, db, n) @@ -63848,7 +63925,7 @@ func Xsqlite3DbMallocRaw(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata return p } -func Xsqlite3DbMallocRawNN(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29180:21: */ +func Xsqlite3DbMallocRawNN(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29379:21: */ var pBuf uintptr if n > U64((*Sqlite3)(unsafe.Pointer(db)).Flookaside.Fsz) { @@ -63886,7 +63963,7 @@ func Xsqlite3DbMallocRawNN(tls *libc.TLS, db uintptr, n U64) uintptr { /* testda // Resize the block of memory pointed to by p to n bytes. If the // resize fails, set the mallocFailed flag in the connection object. -func Xsqlite3DbRealloc(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29236:21: */ +func Xsqlite3DbRealloc(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29435:21: */ if p == uintptr(0) { return Xsqlite3DbMallocRawNN(tls, db, n) @@ -63906,7 +63983,7 @@ func Xsqlite3DbRealloc(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* return dbReallocFinish(tls, db, p, n) } -func dbReallocFinish(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29252:29: */ +func dbReallocFinish(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29451:29: */ var pNew uintptr = uintptr(0) if int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0 { @@ -63930,7 +64007,7 @@ func dbReallocFinish(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* t // Attempt to reallocate p. If the reallocation fails, then free p // and set the mallocFailed flag in the database connection. -func Xsqlite3DbReallocOrFree(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29282:21: */ +func Xsqlite3DbReallocOrFree(tls *libc.TLS, db uintptr, p uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29481:21: */ var pNew uintptr pNew = Xsqlite3DbRealloc(tls, db, p, n) if !(pNew != 0) { @@ -63944,7 +64021,7 @@ func Xsqlite3DbReallocOrFree(tls *libc.TLS, db uintptr, p uintptr, n U64) uintpt // is because when memory debugging is turned on, these two functions are // called via macros that record the current file and line number in the // ThreadData structure. -func Xsqlite3DbStrDup(tls *libc.TLS, db uintptr, z uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29298:21: */ +func Xsqlite3DbStrDup(tls *libc.TLS, db uintptr, z uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29497:21: */ var zNew uintptr var n Size_t if z == uintptr(0) { @@ -63958,7 +64035,7 @@ func Xsqlite3DbStrDup(tls *libc.TLS, db uintptr, z uintptr) uintptr { /* testdat return zNew } -func Xsqlite3DbStrNDup(tls *libc.TLS, db uintptr, z uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29311:21: */ +func Xsqlite3DbStrNDup(tls *libc.TLS, db uintptr, z uintptr, n U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29510:21: */ var zNew uintptr if z != 0 { @@ -63976,7 +64053,7 @@ func Xsqlite3DbStrNDup(tls *libc.TLS, db uintptr, z uintptr, n U64) uintptr { /* // The text between zStart and zEnd represents a phrase within a larger // SQL statement. Make a copy of this phrase in space obtained form // sqlite3DbMalloc(). Omit leading and trailing whitespace. -func Xsqlite3DbSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29329:21: */ +func Xsqlite3DbSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29528:21: */ var n int32 for int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zStart)))])&0x01 != 0 { zStart++ @@ -63989,7 +64066,7 @@ func Xsqlite3DbSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr) } // Free any prior content in *pz and replace it with a copy of zNew. -func Xsqlite3SetString(tls *libc.TLS, pz uintptr, db uintptr, zNew uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29340:21: */ +func Xsqlite3SetString(tls *libc.TLS, pz uintptr, db uintptr, zNew uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29539:21: */ var z uintptr = Xsqlite3DbStrDup(tls, db, zNew) Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pz))) *(*uintptr)(unsafe.Pointer(pz)) = z @@ -64002,11 +64079,11 @@ func Xsqlite3SetString(tls *libc.TLS, pz uintptr, db uintptr, zNew uintptr) { /* // // Always return a NULL pointer so that this routine can be invoked using // -// return sqlite3OomFault(db); +// return sqlite3OomFault(db); // // and thereby avoid unnecessary stack frame allocations for the overwhelmingly // common case where no OOM occurs. -func Xsqlite3OomFault(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29359:21: */ +func Xsqlite3OomFault(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29558:21: */ if int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0 && int32((*Sqlite3)(unsafe.Pointer(db)).FbBenignMalloc) == 0 { (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed = U8(1) if (*Sqlite3)(unsafe.Pointer(db)).FnVdbeExec > 0 { @@ -64027,7 +64104,7 @@ func Xsqlite3OomFault(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-am // // The memory allocator is not restarted if there are running // VDBEs. -func Xsqlite3OomClear(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29381:21: */ +func Xsqlite3OomClear(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29580:21: */ if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 && (*Sqlite3)(unsafe.Pointer(db)).FnVdbeExec == 0 { (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed = U8(0) libc.AtomicStoreNInt32(db+432, int32(0), 0) @@ -64043,7 +64120,7 @@ func Xsqlite3OomClear(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamati } // Take actions at the end of an API call to deal with error codes. -func apiHandleError(tls *libc.TLS, db uintptr, rc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29393:28: */ +func apiHandleError(tls *libc.TLS, db uintptr, rc int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29592:28: */ if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 || rc == SQLITE_IOERR|int32(12)<<8 { Xsqlite3OomClear(tls, db) Xsqlite3Error(tls, db, SQLITE_NOMEM) @@ -64062,7 +64139,7 @@ func apiHandleError(tls *libc.TLS, db uintptr, rc int32) int32 { /* testdata/sql // // If an OOM as occurred, then the connection error-code (the value // returned by sqlite3_errcode()) is set to SQLITE_NOMEM. -func Xsqlite3ApiExit(tls *libc.TLS, db uintptr, rc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29414:20: */ +func Xsqlite3ApiExit(tls *libc.TLS, db uintptr, rc int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29613:20: */ // If the db handle must hold the connection handle mutex here. // Otherwise the read (and possible write) of db->mallocFailed // is unsafe, as is the call to sqlite3Error(). @@ -64091,7 +64168,7 @@ func Xsqlite3ApiExit(tls *libc.TLS, db uintptr, rc int32) int32 { /* testdata/sq // The rest are extensions, not normally found in printf() // An "etByte" is an 8-bit unsigned value. -type EtByte = uint8 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29472:23 */ +type EtByte = uint8 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29671:23 */ // Each builtin conversion character (ex: the 'd' in "%d") is described // by an instance of the following structure @@ -64102,18 +64179,18 @@ type et_info = struct { Ftype EtByte Fcharset EtByte Fprefix EtByte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29478:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29677:9 */ // Each builtin conversion character (ex: the 'd' in "%d") is described // by an instance of the following structure -type Et_info = et_info /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29485:3 */ +type Et_info = et_info /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29684:3 */ // Allowed values for et_info.flags // The following table is searched linearly, so it is good to put the // most frequently used conversion types first. -var aDigits = *(*[33]int8)(unsafe.Pointer(ts + 1474)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29498:19 */ -var aPrefix = *(*[7]int8)(unsafe.Pointer(ts + 1507)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29499:19 */ +var aDigits = *(*[33]int8)(unsafe.Pointer(ts + 1474)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29697:19 */ +var aPrefix = *(*[7]int8)(unsafe.Pointer(ts + 1507)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29698:19 */ var fmtinfo = [23]Et_info{ {Ffmttype: int8('d'), Fbase: EtByte(10), Fflags: EtByte(1), Ftype: EtByte(EtDECIMAL)}, {Ffmttype: int8('s'), Fflags: EtByte(4), Ftype: EtByte(EtSTRING)}, @@ -64140,7 +64217,7 @@ var fmtinfo = [23]Et_info{ {Ffmttype: int8('T'), Ftype: EtByte(EtTOKEN)}, {Ffmttype: int8('S'), Ftype: EtByte(EtSRCITEM)}, {Ffmttype: int8('r'), Fbase: EtByte(10), Fflags: EtByte(1), Ftype: EtByte(EtORDINAL)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29500:22 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29699:22 */ // Notes: // @@ -64151,7 +64228,7 @@ var fmtinfo = [23]Et_info{ var arRound = [10]float64{ 5.0e-01, 5.0e-02, 5.0e-03, 5.0e-04, 5.0e-05, 5.0e-06, 5.0e-07, 5.0e-08, 5.0e-09, 5.0e-10, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29537:21 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29736:21 */ // If SQLITE_OMIT_FLOATING_POINT is defined, then none of the floating point // conversions will work. @@ -64160,13 +64237,14 @@ var arRound = [10]float64{ // multiply "*val" by 10.0 to renormalize. // // Example: -// input: *val = 3.14159 -// output: *val = 1.4159 function return = '3' +// +// input: *val = 3.14159 +// output: *val = 1.4159 function return = '3' // // The counter *cnt is incremented each time. After counter exceeds // 16 (the number of significant digits in a 64-bit float) '0' is // always returned. -func et_getdigit(tls *libc.TLS, val uintptr, cnt uintptr) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29560:13: */ +func et_getdigit(tls *libc.TLS, val uintptr, cnt uintptr) int8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29759:13: */ var digit int32 var d float64 if *(*int32)(unsafe.Pointer(cnt)) <= 0 { @@ -64181,7 +64259,7 @@ func et_getdigit(tls *libc.TLS, val uintptr, cnt uintptr) int8 { /* testdata/sql } // Set the StrAccum object to an error mode. -func Xsqlite3StrAccumSetError(tls *libc.TLS, p uintptr, eError U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29576:21: */ +func Xsqlite3StrAccumSetError(tls *libc.TLS, p uintptr, eError U8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29775:21: */ (*StrAccum)(unsafe.Pointer(p)).FaccError = eError if (*StrAccum)(unsafe.Pointer(p)).FmxAlloc != 0 { @@ -64193,21 +64271,21 @@ func Xsqlite3StrAccumSetError(tls *libc.TLS, p uintptr, eError U8) { /* testdata } // Extra argument values from a PrintfArguments object -func getIntArg(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29586:22: */ +func getIntArg(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29785:22: */ if (*PrintfArguments)(unsafe.Pointer(p)).FnArg <= (*PrintfArguments)(unsafe.Pointer(p)).FnUsed { return int64(0) } return Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer((*PrintfArguments)(unsafe.Pointer(p)).FapArg + uintptr(libc.PostIncInt32(&(*PrintfArguments)(unsafe.Pointer(p)).FnUsed, 1))*8))) } -func getDoubleArg(tls *libc.TLS, p uintptr) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29590:15: */ +func getDoubleArg(tls *libc.TLS, p uintptr) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29789:15: */ if (*PrintfArguments)(unsafe.Pointer(p)).FnArg <= (*PrintfArguments)(unsafe.Pointer(p)).FnUsed { return 0.0 } return Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer((*PrintfArguments)(unsafe.Pointer(p)).FapArg + uintptr(libc.PostIncInt32(&(*PrintfArguments)(unsafe.Pointer(p)).FnUsed, 1))*8))) } -func getTextArg(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29594:13: */ +func getTextArg(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29793:13: */ if (*PrintfArguments)(unsafe.Pointer(p)).FnArg <= (*PrintfArguments)(unsafe.Pointer(p)).FnUsed { return uintptr(0) } @@ -64221,7 +64299,7 @@ func getTextArg(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamat // Do the size check before the memory allocation to prevent rogue // SQL from requesting large allocations using the precision or width // field of the printf() function. -func printfTempBuf(tls *libc.TLS, pAccum uintptr, n Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29608:13: */ +func printfTempBuf(tls *libc.TLS, pAccum uintptr, n Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29807:13: */ var z uintptr if (*Sqlite3_str)(unsafe.Pointer(pAccum)).FaccError != 0 { return uintptr(0) @@ -64243,9 +64321,9 @@ func printfTempBuf(tls *libc.TLS, pAccum uintptr, n Sqlite3_int64) uintptr { /* // Hard limit on the precision of floating-point conversions. // Render a string given by "fmt" into the StrAccum object. -func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Va_list) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29641:17: */ - bp := tls.Alloc(108) - defer tls.Free(108) +func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Va_list) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29840:17: */ + bp := tls.Alloc(116) + defer tls.Free(116) var c int32 // Next character in the format string var bufpt uintptr // Pointer to the conversion buffer @@ -64265,7 +64343,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Va_lis var bArgList U8 // True for SQLITE_PRINTF_SQLFUNC var prefix int8 // Prefix character. "+" or "-" or " " or '\0'. var longvalue Sqlite_uint64 // Value for integer types - // var realvalue float64 at bp+96, 8 + // var realvalue float64 at bp+104, 8 // Value for real types var infop uintptr // Pointer to the appropriate info structure var zOut uintptr // Rendering buffer @@ -64273,13 +64351,13 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Va_lis var zExtra uintptr // Malloced memory used by some conversion var exp int32 var e2 int32 // exponent of real numbers - // var nsd int32 at bp+104, 4 + // var nsd int32 at bp+112, 4 // Number of significant digits returned var rounder float64 // Used for rounding floating point values var flag_dp EtByte // True if decimal point should be shown var flag_rtz EtByte // True if trailing zeros should be removed var pArgList uintptr // Arguments for SQLITE_PRINTF_SQLFUNC - // var buf [70]int8 at bp+8, 70 + // var buf [70]int8 at bp+16, 70 var wx uint32 var px uint32 @@ -64292,9 +64370,9 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Va_lis var ix int32 // Add "0" or "0x" var pre uintptr var x1 int8 - // var rx float64 at bp+88, 8 + // var rx float64 at bp+96, 8 - // var u Sqlite3_uint64 at bp+80, 8 + // var u Sqlite3_uint64 at bp+88, 8 var ex int32 var scale float64 @@ -64307,12 +64385,12 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Va_lis var z uintptr // Adjust width to account for extra bytes in UTF-8 characters var ii int32 // %w: Escape " characters - var i1 int32 - var j int32 - var k int32 - var n1 int32 - var isnull int32 + var i1 I64 + var j I64 + var k I64 + var n1 I64 var needQuote int32 + var isnull int32 var ch1 int8 var q int8 // Quote character var escarg uintptr @@ -64320,6 +64398,7 @@ func Xsqlite3_str_vappendf(tls *libc.TLS, pAccum uintptr, fmt uintptr, ap Va_lis var pExpr uintptr // %T means a Token pointer var pToken uintptr + var pSel uintptr var pItem uintptr xtype = EtByte(EtINVALID) zExtra = uintptr(0) @@ -64765,7 +64844,7 @@ __94: goto __95 } nOut = SQLITE_PRINT_BUF_SIZE - zOut = bp + 8 /* &buf[0] */ + zOut = bp + 16 /* &buf[0] */ goto __96 __95: n = U64(precision) + uint64(10) @@ -64887,10 +64966,10 @@ __65: if !(bArgList != 0) { goto __116 } - *(*float64)(unsafe.Pointer(bp + 96 /* realvalue */)) = getDoubleArg(tls, pArgList) + *(*float64)(unsafe.Pointer(bp + 104 /* realvalue */)) = getDoubleArg(tls, pArgList) goto __117 __116: - *(*float64)(unsafe.Pointer(bp + 96 /* realvalue */)) = float64(libc.VaFloat64(&ap)) + *(*float64)(unsafe.Pointer(bp + 104 /* realvalue */)) = float64(libc.VaFloat64(&ap)) __117: ; if !(precision < 0) { @@ -64905,10 +64984,10 @@ __118: precision = SQLITE_FP_PRECISION_LIMIT __119: ; - if !(*(*float64)(unsafe.Pointer(bp + 96)) < 0.0) { + if !(*(*float64)(unsafe.Pointer(bp + 104)) < 0.0) { goto __120 } - *(*float64)(unsafe.Pointer(bp + 96 /* realvalue */)) = -*(*float64)(unsafe.Pointer(bp + 96 /* realvalue */)) + *(*float64)(unsafe.Pointer(bp + 104 /* realvalue */)) = -*(*float64)(unsafe.Pointer(bp + 104 /* realvalue */)) prefix = int8('-') goto __121 __120: @@ -64936,21 +65015,21 @@ __124: if !(int32(xtype) == EtFLOAT) { goto __125 } - *(*float64)(unsafe.Pointer(bp + 88 /* rx */)) = *(*float64)(unsafe.Pointer(bp + 96 /* realvalue */)) - libc.Xmemcpy(tls, bp+80, bp+88, uint64(unsafe.Sizeof(Sqlite3_uint64(0)))) - ex = -1023 + int32(*(*Sqlite3_uint64)(unsafe.Pointer(bp + 80))>>52&uint64(0x7ff)) + *(*float64)(unsafe.Pointer(bp + 96 /* rx */)) = *(*float64)(unsafe.Pointer(bp + 104 /* realvalue */)) + libc.Xmemcpy(tls, bp+88, bp+96, uint64(unsafe.Sizeof(Sqlite3_uint64(0)))) + ex = -1023 + int32(*(*Sqlite3_uint64)(unsafe.Pointer(bp + 88))>>52&uint64(0x7ff)) if !(precision+ex/3 < 15) { goto __126 } - rounder = rounder + *(*float64)(unsafe.Pointer(bp + 96))*3e-16 + rounder = rounder + *(*float64)(unsafe.Pointer(bp + 104))*3e-16 __126: ; - *(*float64)(unsafe.Pointer(bp + 96 /* realvalue */)) += rounder + *(*float64)(unsafe.Pointer(bp + 104 /* realvalue */)) += rounder __125: ; // Normalize realvalue to within 10.0 > realvalue >= 1.0 exp = 0 - if !(Xsqlite3IsNaN(tls, *(*float64)(unsafe.Pointer(bp + 96))) != 0) { + if !(Xsqlite3IsNaN(tls, *(*float64)(unsafe.Pointer(bp + 104))) != 0) { goto __127 } bufpt = ts + 1516 /* "NaN" */ @@ -64958,12 +65037,12 @@ __125: goto __58 __127: ; - if !(*(*float64)(unsafe.Pointer(bp + 96)) > 0.0) { + if !(*(*float64)(unsafe.Pointer(bp + 104)) > 0.0) { goto __128 } scale = 1.0 __129: - if !(*(*float64)(unsafe.Pointer(bp + 96)) >= 1e100*scale && exp <= 350) { + if !(*(*float64)(unsafe.Pointer(bp + 104)) >= 1e100*scale && exp <= 350) { goto __130 } scale = scale * 1e100 @@ -64972,7 +65051,7 @@ __129: __130: ; __131: - if !(*(*float64)(unsafe.Pointer(bp + 96)) >= 1e10*scale && exp <= 350) { + if !(*(*float64)(unsafe.Pointer(bp + 104)) >= 1e10*scale && exp <= 350) { goto __132 } scale = scale * 1e10 @@ -64981,7 +65060,7 @@ __131: __132: ; __133: - if !(*(*float64)(unsafe.Pointer(bp + 96)) >= 10.0*scale && exp <= 350) { + if !(*(*float64)(unsafe.Pointer(bp + 104)) >= 10.0*scale && exp <= 350) { goto __134 } scale = scale * 10.0 @@ -64989,21 +65068,21 @@ __133: goto __133 __134: ; - *(*float64)(unsafe.Pointer(bp + 96 /* realvalue */)) /= scale + *(*float64)(unsafe.Pointer(bp + 104 /* realvalue */)) /= scale __135: - if !(*(*float64)(unsafe.Pointer(bp + 96)) < 1e-8) { + if !(*(*float64)(unsafe.Pointer(bp + 104)) < 1e-8) { goto __136 } - *(*float64)(unsafe.Pointer(bp + 96 /* realvalue */)) *= 1e8 + *(*float64)(unsafe.Pointer(bp + 104 /* realvalue */)) *= 1e8 exp = exp - 8 goto __135 __136: ; __137: - if !(*(*float64)(unsafe.Pointer(bp + 96)) < 1.0) { + if !(*(*float64)(unsafe.Pointer(bp + 104)) < 1.0) { goto __138 } - *(*float64)(unsafe.Pointer(bp + 96 /* realvalue */)) *= 10.0 + *(*float64)(unsafe.Pointer(bp + 104 /* realvalue */)) *= 10.0 exp-- goto __137 __138: @@ -65011,26 +65090,26 @@ __138: if !(exp > 350) { goto __139 } - bufpt = bp + 8 /* &buf[0] */ - *(*int8)(unsafe.Pointer(bp + 8)) = prefix - libc.Xmemcpy(tls, bp+8+uintptr(libc.Bool32(int32(prefix) != 0)), ts+1520, uint64(4)) + bufpt = bp + 16 /* &buf[0] */ + *(*int8)(unsafe.Pointer(bp + 16)) = prefix + libc.Xmemcpy(tls, bp+16+uintptr(libc.Bool32(int32(prefix) != 0)), ts+1520, uint64(4)) length = 3 + libc.Bool32(int32(prefix) != 0) goto __58 __139: ; __128: ; - bufpt = bp + 8 /* &buf[0] */ + bufpt = bp + 16 /* &buf[0] */ // If the field type is etGENERIC, then convert to either etEXP // or etFLOAT, as appropriate. if !(int32(xtype) != EtFLOAT) { goto __140 } - *(*float64)(unsafe.Pointer(bp + 96 /* realvalue */)) += rounder - if !(*(*float64)(unsafe.Pointer(bp + 96)) >= 10.0) { + *(*float64)(unsafe.Pointer(bp + 104 /* realvalue */)) += rounder + if !(*(*float64)(unsafe.Pointer(bp + 104)) >= 10.0) { goto __141 } - *(*float64)(unsafe.Pointer(bp + 96 /* realvalue */)) *= 0.1 + *(*float64)(unsafe.Pointer(bp + 104 /* realvalue */)) *= 0.1 exp++ __141: ; @@ -65085,7 +65164,7 @@ __148: ; zOut = bufpt - *(*int32)(unsafe.Pointer(bp + 104 /* nsd */)) = 16 + int32(flag_altform2)*10 + *(*int32)(unsafe.Pointer(bp + 112 /* nsd */)) = 16 + int32(flag_altform2)*10 flag_dp = EtByte(func() int32 { if precision > 0 { return 1 @@ -65111,7 +65190,7 @@ __153: if !(e2 >= 0) { goto __155 } - *(*int8)(unsafe.Pointer(libc.PostIncUintptr(&bufpt, 1))) = et_getdigit(tls, bp+96, bp+104) + *(*int8)(unsafe.Pointer(libc.PostIncUintptr(&bufpt, 1))) = et_getdigit(tls, bp+104, bp+112) goto __154 __154: e2-- @@ -65150,7 +65229,7 @@ __160: if !(libc.PostDecInt32(&precision, 1) > 0) { goto __161 } - *(*int8)(unsafe.Pointer(libc.PostIncUintptr(&bufpt, 1))) = et_getdigit(tls, bp+96, bp+104) + *(*int8)(unsafe.Pointer(libc.PostIncUintptr(&bufpt, 1))) = et_getdigit(tls, bp+104, bp+112) goto __160 __161: ; @@ -65259,8 +65338,8 @@ __178: length = libc.AssignInt32(&width, 0) goto __58 __67: - *(*int8)(unsafe.Pointer(bp + 8)) = int8('%') - bufpt = bp + 8 /* &buf[0] */ + *(*int8)(unsafe.Pointer(bp + 16)) = int8('%') + bufpt = bp + 16 /* &buf[0] */ length = 1 goto __58 __68: @@ -65272,7 +65351,7 @@ __68: if !(bufpt != 0) { goto __181 } - *(*int8)(unsafe.Pointer(bp + 8)) = int8(libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&bufpt, 1)))))) + *(*int8)(unsafe.Pointer(bp + 16)) = int8(libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&bufpt, 1)))))) if !(c&0xc0 == 0xc0) { goto __183 } @@ -65280,7 +65359,7 @@ __184: if !(length < 4 && int32(*(*int8)(unsafe.Pointer(bufpt)))&0xc0 == 0x80) { goto __185 } - *(*int8)(unsafe.Pointer(bp + 8 + uintptr(libc.PostIncInt32(&length, 1)))) = *(*int8)(unsafe.Pointer(libc.PostIncUintptr(&bufpt, 1))) + *(*int8)(unsafe.Pointer(bp + 16 + uintptr(libc.PostIncInt32(&length, 1)))) = *(*int8)(unsafe.Pointer(libc.PostIncUintptr(&bufpt, 1))) goto __184 __185: ; @@ -65288,7 +65367,7 @@ __183: ; goto __182 __181: - *(*int8)(unsafe.Pointer(bp + 8)) = int8(0) + *(*int8)(unsafe.Pointer(bp + 16)) = int8(0) __182: ; goto __180 @@ -65297,31 +65376,31 @@ __179: if !(ch < uint32(0x00080)) { goto __186 } - *(*int8)(unsafe.Pointer(bp + 8)) = int8(ch & uint32(0xff)) + *(*int8)(unsafe.Pointer(bp + 16)) = int8(ch & uint32(0xff)) length = 1 goto __187 __186: if !(ch < uint32(0x00800)) { goto __188 } - *(*int8)(unsafe.Pointer(bp + 8)) = int8(0xc0 + int32(U8(ch>>6&uint32(0x1f)))) - *(*int8)(unsafe.Pointer(bp + 8 + 1)) = int8(0x80 + int32(U8(ch&uint32(0x3f)))) + *(*int8)(unsafe.Pointer(bp + 16)) = int8(0xc0 + int32(U8(ch>>6&uint32(0x1f)))) + *(*int8)(unsafe.Pointer(bp + 16 + 1)) = int8(0x80 + int32(U8(ch&uint32(0x3f)))) length = 2 goto __189 __188: if !(ch < uint32(0x10000)) { goto __190 } - *(*int8)(unsafe.Pointer(bp + 8)) = int8(0xe0 + int32(U8(ch>>12&uint32(0x0f)))) - *(*int8)(unsafe.Pointer(bp + 8 + 1)) = int8(0x80 + int32(U8(ch>>6&uint32(0x3f)))) - *(*int8)(unsafe.Pointer(bp + 8 + 2)) = int8(0x80 + int32(U8(ch&uint32(0x3f)))) + *(*int8)(unsafe.Pointer(bp + 16)) = int8(0xe0 + int32(U8(ch>>12&uint32(0x0f)))) + *(*int8)(unsafe.Pointer(bp + 16 + 1)) = int8(0x80 + int32(U8(ch>>6&uint32(0x3f)))) + *(*int8)(unsafe.Pointer(bp + 16 + 2)) = int8(0x80 + int32(U8(ch&uint32(0x3f)))) length = 3 goto __191 __190: - *(*int8)(unsafe.Pointer(bp + 8)) = int8(0xf0 + int32(U8(ch>>18&uint32(0x07)))) - *(*int8)(unsafe.Pointer(bp + 8 + 1)) = int8(0x80 + int32(U8(ch>>12&uint32(0x3f)))) - *(*int8)(unsafe.Pointer(bp + 8 + 2)) = int8(0x80 + int32(U8(ch>>6&uint32(0x3f)))) - *(*int8)(unsafe.Pointer(bp + 8 + 3)) = int8(0x80 + int32(U8(ch&uint32(0x3f)))) + *(*int8)(unsafe.Pointer(bp + 16)) = int8(0xf0 + int32(U8(ch>>18&uint32(0x07)))) + *(*int8)(unsafe.Pointer(bp + 16 + 1)) = int8(0x80 + int32(U8(ch>>12&uint32(0x3f)))) + *(*int8)(unsafe.Pointer(bp + 16 + 2)) = int8(0x80 + int32(U8(ch>>6&uint32(0x3f)))) + *(*int8)(unsafe.Pointer(bp + 16 + 3)) = int8(0x80 + int32(U8(ch&uint32(0x3f)))) length = 4 __191: ; @@ -65346,13 +65425,13 @@ __194: if !(libc.PostDecInt32(&precision, 1) > 1) { goto __195 } - Xsqlite3_str_append(tls, pAccum, bp+8, length) + Xsqlite3_str_append(tls, pAccum, bp+16, length) goto __194 __195: ; __192: ; - bufpt = bp + 8 /* &buf[0] */ + bufpt = bp + 16 /* &buf[0] */ flag_altform2 = EtByte(1) goto adjust_width_for_utf8 __69: @@ -65509,10 +65588,10 @@ __220: // characters if the ! flags is present) to use from the input. // Because of the extra quoting characters inserted, the number // of output characters may be larger than the precision. - k = precision - i1 = libc.AssignInt32(&n1, 0) + k = I64(precision) + i1 = libc.AssignInt64(&n1, int64(0)) __221: - if !(k != 0 && int32(libc.AssignInt8(&ch1, *(*int8)(unsafe.Pointer(escarg + uintptr(i1))))) != 0) { + if !(k != int64(0) && int32(libc.AssignInt8(&ch1, *(*int8)(unsafe.Pointer(escarg + uintptr(i1))))) != 0) { goto __223 } if !(int32(ch1) == int32(q)) { @@ -65525,7 +65604,7 @@ __224: goto __225 } __226: - if !(int32(*(*int8)(unsafe.Pointer(escarg + uintptr(i1+1))))&0xc0 == 0x80) { + if !(int32(*(*int8)(unsafe.Pointer(escarg + uintptr(i1+int64(1)))))&0xc0 == 0x80) { goto __227 } i1++ @@ -65543,11 +65622,11 @@ __222: __223: ; needQuote = libc.Bool32(!(isnull != 0) && int32(xtype) == EtSQLESCAPE2) - n1 = n1 + (i1 + 3) - if !(n1 > SQLITE_PRINT_BUF_SIZE) { + n1 = n1 + (i1 + int64(3)) + if !(n1 > int64(SQLITE_PRINT_BUF_SIZE)) { goto __228 } - bufpt = libc.AssignUintptr(&zExtra, printfTempBuf(tls, pAccum, int64(n1))) + bufpt = libc.AssignUintptr(&zExtra, printfTempBuf(tls, pAccum, n1)) if !(bufpt == uintptr(0)) { goto __230 } @@ -65556,27 +65635,27 @@ __230: ; goto __229 __228: - bufpt = bp + 8 /* &buf[0] */ + bufpt = bp + 16 /* &buf[0] */ __229: ; - j = 0 + j = int64(0) if !(needQuote != 0) { goto __231 } - *(*int8)(unsafe.Pointer(bufpt + uintptr(libc.PostIncInt32(&j, 1)))) = q + *(*int8)(unsafe.Pointer(bufpt + uintptr(libc.PostIncInt64(&j, 1)))) = q __231: ; k = i1 - i1 = 0 + i1 = int64(0) __232: if !(i1 < k) { goto __234 } - *(*int8)(unsafe.Pointer(bufpt + uintptr(libc.PostIncInt32(&j, 1)))) = libc.AssignInt8(&ch1, *(*int8)(unsafe.Pointer(escarg + uintptr(i1)))) + *(*int8)(unsafe.Pointer(bufpt + uintptr(libc.PostIncInt64(&j, 1)))) = libc.AssignInt8(&ch1, *(*int8)(unsafe.Pointer(escarg + uintptr(i1)))) if !(int32(ch1) == int32(q)) { goto __235 } - *(*int8)(unsafe.Pointer(bufpt + uintptr(libc.PostIncInt32(&j, 1)))) = ch1 + *(*int8)(unsafe.Pointer(bufpt + uintptr(libc.PostIncInt64(&j, 1)))) = ch1 __235: ; goto __233 @@ -65589,11 +65668,11 @@ __234: if !(needQuote != 0) { goto __236 } - *(*int8)(unsafe.Pointer(bufpt + uintptr(libc.PostIncInt32(&j, 1)))) = q + *(*int8)(unsafe.Pointer(bufpt + uintptr(libc.PostIncInt64(&j, 1)))) = q __236: ; *(*int8)(unsafe.Pointer(bufpt + uintptr(j))) = int8(0) - length = j + length = int32(j) goto adjust_width_for_utf8 __74: @@ -65666,11 +65745,16 @@ __245: Xsqlite3_str_appendall(tls, pAccum, (*SrcItem)(unsafe.Pointer(pItem)).FzAlias) goto __249 __248: - if !((*SrcItem)(unsafe.Pointer(pItem)).FpSelect != 0) { + pSel = (*SrcItem)(unsafe.Pointer(pItem)).FpSelect + + if !((*Select)(unsafe.Pointer(pSel)).FselFlags&U32(SF_NestedFrom) != 0) { goto __250 } - Xsqlite3_str_appendf(tls, pAccum, ts+1539, libc.VaList(bp, (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpSelect)).FselId)) + Xsqlite3_str_appendf(tls, pAccum, ts+1539, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId)) + goto __251 __250: + Xsqlite3_str_appendf(tls, pAccum, ts+1549, libc.VaList(bp+8, (*Select)(unsafe.Pointer(pSel)).FselId)) +__251: ; __249: ; @@ -65695,33 +65779,33 @@ __58: // then the values have been translated prior to reaching this point. width = width - length if !(width > 0) { - goto __251 + goto __252 } if !!(flag_leftjustify != 0) { - goto __253 + goto __254 } Xsqlite3_str_appendchar(tls, pAccum, width, int8(' ')) -__253: +__254: ; Xsqlite3_str_append(tls, pAccum, bufpt, length) if !(flag_leftjustify != 0) { - goto __254 + goto __255 } Xsqlite3_str_appendchar(tls, pAccum, width, int8(' ')) -__254: +__255: ; - goto __252 -__251: - Xsqlite3_str_append(tls, pAccum, bufpt, length) + goto __253 __252: + Xsqlite3_str_append(tls, pAccum, bufpt, length) +__253: ; if !(zExtra != 0) { - goto __255 + goto __256 } Xsqlite3DbFree(tls, (*Sqlite3_str)(unsafe.Pointer(pAccum)).Fdb, zExtra) zExtra = uintptr(0) -__255: +__256: ; goto __4 __4: @@ -65732,7 +65816,7 @@ __5: // End for loop over the format string } -var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1551)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29904:29 */ +var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1563)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30103:29 */ // End of function @@ -65740,7 +65824,7 @@ var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1551)) /* testdata/sqlite-amalgamatio // associated with an error. If db does not already have an error // byte offset recorded, try to compute the error byte offset for // z and set the error byte offset in db. -func Xsqlite3RecordErrorByteOffset(tls *libc.TLS, db uintptr, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30357:21: */ +func Xsqlite3RecordErrorByteOffset(tls *libc.TLS, db uintptr, z uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30562:21: */ var pParse uintptr var zText uintptr var zEnd uintptr @@ -65767,8 +65851,9 @@ func Xsqlite3RecordErrorByteOffset(tls *libc.TLS, db uintptr, z uintptr) { /* te // If pExpr has a byte offset for the start of a token, record that as // as the error offset. -func Xsqlite3RecordErrorOffsetOfExpr(tls *libc.TLS, db uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30378:21: */ - for pExpr != 0 && ((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) || *(*int32)(unsafe.Pointer(pExpr + 52)) <= 0) { +func Xsqlite3RecordErrorOffsetOfExpr(tls *libc.TLS, db uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30583:21: */ + for pExpr != 0 && + ((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON|EP_InnerON) != U32(0) || *(*int32)(unsafe.Pointer(pExpr + 52)) <= 0) { pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft } if pExpr == uintptr(0) { @@ -65782,7 +65867,7 @@ func Xsqlite3RecordErrorOffsetOfExpr(tls *libc.TLS, db uintptr, pExpr uintptr) { // // Return the number of bytes of text that StrAccum is able to accept // after the attempted enlargement. The value returned might be zero. -func Xsqlite3StrAccumEnlarge(tls *libc.TLS, p uintptr, N int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30393:20: */ +func Xsqlite3StrAccumEnlarge(tls *libc.TLS, p uintptr, N int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30600:20: */ var zNew uintptr // Only called if really needed if (*StrAccum)(unsafe.Pointer(p)).FaccError != 0 { @@ -65836,7 +65921,7 @@ func Xsqlite3StrAccumEnlarge(tls *libc.TLS, p uintptr, N int32) int32 { /* testd } // Append N copies of character c to the given string buffer. -func Xsqlite3_str_appendchar(tls *libc.TLS, p uintptr, N int32, c int8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30443:17: */ +func Xsqlite3_str_appendchar(tls *libc.TLS, p uintptr, N int32, c int8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30650:17: */ if I64((*Sqlite3_str)(unsafe.Pointer(p)).FnChar)+I64(N) >= I64((*Sqlite3_str)(unsafe.Pointer(p)).FnAlloc) && libc.AssignInt32(&N, Xsqlite3StrAccumEnlarge(tls, p, N)) <= 0 { return @@ -65852,7 +65937,7 @@ func Xsqlite3_str_appendchar(tls *libc.TLS, p uintptr, N int32, c int8) { /* tes // This is a helper routine to sqlite3_str_append() that does special-case // work (enlarging the buffer) using tail recursion, so that the // sqlite3_str_append() routine can use fast calling semantics. -func enlargeAndAppend(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30459:29: */ +func enlargeAndAppend(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30666:29: */ N = Xsqlite3StrAccumEnlarge(tls, p, N) if N > 0 { libc.Xmemcpy(tls, (*StrAccum)(unsafe.Pointer(p)).FzText+uintptr((*StrAccum)(unsafe.Pointer(p)).FnChar), z, uint64(N)) @@ -65862,7 +65947,7 @@ func enlargeAndAppend(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* testdat // Append N bytes of text from z to the StrAccum object. Increase the // size of the memory allocation for StrAccum if necessary. -func Xsqlite3_str_append(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30471:17: */ +func Xsqlite3_str_append(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30678:17: */ if (*Sqlite3_str)(unsafe.Pointer(p)).FnChar+U32(N) >= (*Sqlite3_str)(unsafe.Pointer(p)).FnAlloc { enlargeAndAppend(tls, p, z, N) @@ -65874,14 +65959,14 @@ func Xsqlite3_str_append(tls *libc.TLS, p uintptr, z uintptr, N int32) { /* test } // Append the complete text of zero-terminated string z[] to the p string. -func Xsqlite3_str_appendall(tls *libc.TLS, p uintptr, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30488:17: */ +func Xsqlite3_str_appendall(tls *libc.TLS, p uintptr, z uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30695:17: */ Xsqlite3_str_append(tls, p, z, Xsqlite3Strlen30(tls, z)) } // Finish off a string by making sure it is zero-terminated. // Return a pointer to the resulting string. Return a NULL // pointer if any kind of error was encountered. -func strAccumFinishRealloc(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30498:29: */ +func strAccumFinishRealloc(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30705:29: */ var zText uintptr zText = Xsqlite3DbMallocRaw(tls, (*StrAccum)(unsafe.Pointer(p)).Fdb, uint64((*StrAccum)(unsafe.Pointer(p)).FnChar+U32(1))) @@ -65895,7 +65980,7 @@ func strAccumFinishRealloc(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlit return zText } -func Xsqlite3StrAccumFinish(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30511:21: */ +func Xsqlite3StrAccumFinish(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30718:21: */ if (*StrAccum)(unsafe.Pointer(p)).FzText != 0 { *(*int8)(unsafe.Pointer((*StrAccum)(unsafe.Pointer(p)).FzText + uintptr((*StrAccum)(unsafe.Pointer(p)).FnChar))) = int8(0) if (*StrAccum)(unsafe.Pointer(p)).FmxAlloc > U32(0) && !(int32((*StrAccum)(unsafe.Pointer(p)).FprintfFlags)&SQLITE_PRINTF_MALLOCED != 0) { @@ -65907,14 +65992,12 @@ func Xsqlite3StrAccumFinish(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqli // Use the content of the StrAccum passed as the second argument // as the result of an SQL function. -func Xsqlite3ResultStrAccum(tls *libc.TLS, pCtx uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30525:21: */ +func Xsqlite3ResultStrAccum(tls *libc.TLS, pCtx uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30732:21: */ if (*StrAccum)(unsafe.Pointer(p)).FaccError != 0 { Xsqlite3_result_error_code(tls, pCtx, int32((*StrAccum)(unsafe.Pointer(p)).FaccError)) Xsqlite3_str_reset(tls, p) } else if int32((*StrAccum)(unsafe.Pointer(p)).FprintfFlags)&SQLITE_PRINTF_MALLOCED != 0 { - Xsqlite3_result_text(tls, pCtx, (*StrAccum)(unsafe.Pointer(p)).FzText, int32((*StrAccum)(unsafe.Pointer(p)).FnChar), *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr) uintptr - }{Xsqlite3OomFault}))) + Xsqlite3_result_text(tls, pCtx, (*StrAccum)(unsafe.Pointer(p)).FzText, int32((*StrAccum)(unsafe.Pointer(p)).FnChar), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3OomClear}))) } else { Xsqlite3_result_text(tls, pCtx, ts+1524, 0, uintptr(0)) Xsqlite3_str_reset(tls, p) @@ -65925,10 +66008,10 @@ func Xsqlite3ResultStrAccum(tls *libc.TLS, pCtx uintptr, p uintptr) { /* testdat // sqlite3_malloc() fails to provide space for a real one. This // sqlite3_str object accepts no new text and always returns // an SQLITE_NOMEM error. -var sqlite3OomStr = Sqlite3_str{FaccError: U8(SQLITE_NOMEM)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30543:20 */ +var sqlite3OomStr = Sqlite3_str{FaccError: U8(SQLITE_NOMEM)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30750:20 */ // Finalize a string created using sqlite3_str_new(). -func Xsqlite3_str_finish(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30549:17: */ +func Xsqlite3_str_finish(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30756:17: */ var z uintptr if p != uintptr(0) && p != uintptr(unsafe.Pointer(&sqlite3OomStr)) { z = Xsqlite3StrAccumFinish(tls, p) @@ -65940,7 +66023,7 @@ func Xsqlite3_str_finish(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite- } // Return any error code associated with p -func Xsqlite3_str_errcode(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30561:16: */ +func Xsqlite3_str_errcode(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30768:16: */ if p != 0 { return int32((*Sqlite3_str)(unsafe.Pointer(p)).FaccError) } @@ -65948,7 +66031,7 @@ func Xsqlite3_str_errcode(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-a } // Return the current length of p in bytes -func Xsqlite3_str_length(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30566:16: */ +func Xsqlite3_str_length(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30773:16: */ if p != 0 { return int32((*Sqlite3_str)(unsafe.Pointer(p)).FnChar) } @@ -65956,7 +66039,7 @@ func Xsqlite3_str_length(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-am } // Return the current value for p -func Xsqlite3_str_value(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30571:17: */ +func Xsqlite3_str_value(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30778:17: */ if p == uintptr(0) || (*Sqlite3_str)(unsafe.Pointer(p)).FnChar == U32(0) { return uintptr(0) } @@ -65965,7 +66048,7 @@ func Xsqlite3_str_value(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-a } // Reset an StrAccum string. Reclaim all malloced memory. -func Xsqlite3_str_reset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30580:17: */ +func Xsqlite3_str_reset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30787:17: */ if int32((*StrAccum)(unsafe.Pointer(p)).FprintfFlags)&SQLITE_PRINTF_MALLOCED != 0 { Xsqlite3DbFree(tls, (*StrAccum)(unsafe.Pointer(p)).Fdb, (*StrAccum)(unsafe.Pointer(p)).FzText) *(*U8)(unsafe.Pointer(p + 29)) &= libc.Uint8FromInt32(libc.CplInt32(SQLITE_PRINTF_MALLOCED)) @@ -65979,15 +66062,22 @@ func Xsqlite3_str_reset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamat // // p: The accumulator to be initialized. // db: Pointer to a database connection. May be NULL. Lookaside -// memory is used if not NULL. db->mallocFailed is set appropriately -// when not NULL. +// +// memory is used if not NULL. db->mallocFailed is set appropriately +// when not NULL. +// // zBase: An initial buffer. May be NULL in which case the initial buffer -// is malloced. +// +// is malloced. +// // n: Size of zBase in bytes. If total space requirements never exceed -// n then no memory allocations ever occur. +// +// n then no memory allocations ever occur. +// // mx: Maximum number of bytes to accumulate. If mx==0 then no memory -// allocations will ever occur. -func Xsqlite3StrAccumInit(tls *libc.TLS, p uintptr, db uintptr, zBase uintptr, n int32, mx int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30604:21: */ +// +// allocations will ever occur. +func Xsqlite3StrAccumInit(tls *libc.TLS, p uintptr, db uintptr, zBase uintptr, n int32, mx int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30811:21: */ (*StrAccum)(unsafe.Pointer(p)).FzText = zBase (*StrAccum)(unsafe.Pointer(p)).Fdb = db (*StrAccum)(unsafe.Pointer(p)).FnAlloc = U32(n) @@ -65998,7 +66088,7 @@ func Xsqlite3StrAccumInit(tls *libc.TLS, p uintptr, db uintptr, zBase uintptr, n } // Allocate and initialize a new dynamic string object -func Xsqlite3_str_new(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30615:24: */ +func Xsqlite3_str_new(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30822:24: */ var p uintptr = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(Sqlite3_str{}))) if p != 0 { Xsqlite3StrAccumInit(tls, p, uintptr(0), uintptr(0), 0, @@ -66016,7 +66106,7 @@ func Xsqlite3_str_new(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-am // Print into memory obtained from sqliteMalloc(). Use the internal // %-conversion extensions. -func Xsqlite3VMPrintf(tls *libc.TLS, db uintptr, zFormat uintptr, ap Va_list) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30630:21: */ +func Xsqlite3VMPrintf(tls *libc.TLS, db uintptr, zFormat uintptr, ap Va_list) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30837:21: */ bp := tls.Alloc(102) defer tls.Free(102) @@ -66038,7 +66128,7 @@ func Xsqlite3VMPrintf(tls *libc.TLS, db uintptr, zFormat uintptr, ap Va_list) ui // Print into memory obtained from sqliteMalloc(). Use the internal // %-conversion extensions. -func Xsqlite3MPrintf(tls *libc.TLS, db uintptr, zFormat uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30650:21: */ +func Xsqlite3MPrintf(tls *libc.TLS, db uintptr, zFormat uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30857:21: */ var ap Va_list _ = ap var z uintptr @@ -66050,7 +66140,7 @@ func Xsqlite3MPrintf(tls *libc.TLS, db uintptr, zFormat uintptr, va uintptr) uin // Print into memory obtained from sqlite3_malloc(). Omit the internal // %-conversion extensions. -func Xsqlite3_vmprintf(tls *libc.TLS, zFormat uintptr, ap Va_list) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30663:17: */ +func Xsqlite3_vmprintf(tls *libc.TLS, zFormat uintptr, ap Va_list) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30870:17: */ bp := tls.Alloc(102) defer tls.Free(102) @@ -66070,7 +66160,7 @@ func Xsqlite3_vmprintf(tls *libc.TLS, zFormat uintptr, ap Va_list) uintptr { /* // Print into memory obtained from sqlite3_malloc()(). Omit the internal // %-conversion extensions. -func Xsqlite3_mprintf(tls *libc.TLS, zFormat uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30687:17: */ +func Xsqlite3_mprintf(tls *libc.TLS, zFormat uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30894:17: */ var ap Va_list _ = ap var z uintptr @@ -66094,7 +66184,7 @@ func Xsqlite3_mprintf(tls *libc.TLS, zFormat uintptr, va uintptr) uintptr { /* t // mistake. // // sqlite3_vsnprintf() is the varargs version. -func Xsqlite3_vsnprintf(tls *libc.TLS, n int32, zBuf uintptr, zFormat uintptr, ap Va_list) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30712:17: */ +func Xsqlite3_vsnprintf(tls *libc.TLS, n int32, zBuf uintptr, zFormat uintptr, ap Va_list) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30919:17: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -66109,7 +66199,7 @@ func Xsqlite3_vsnprintf(tls *libc.TLS, n int32, zBuf uintptr, zFormat uintptr, a return zBuf } -func Xsqlite3_snprintf(tls *libc.TLS, n int32, zBuf uintptr, zFormat uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30727:17: */ +func Xsqlite3_snprintf(tls *libc.TLS, n int32, zBuf uintptr, zFormat uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30934:17: */ var z uintptr var ap Va_list _ = ap @@ -66131,7 +66221,7 @@ func Xsqlite3_snprintf(tls *libc.TLS, n int32, zBuf uintptr, zFormat uintptr, va // certain format characters (%q) or for very large precisions or widths. // Care must be taken that any sqlite3_log() calls that occur while the // memory mutex is held do not use these mechanisms. -func renderLogMsg(tls *libc.TLS, iErrCode int32, zFormat uintptr, ap Va_list) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30750:13: */ +func renderLogMsg(tls *libc.TLS, iErrCode int32, zFormat uintptr, ap Va_list) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30957:13: */ bp := tls.Alloc(242) defer tls.Free(242) @@ -66149,7 +66239,7 @@ func renderLogMsg(tls *libc.TLS, iErrCode int32, zFormat uintptr, ap Va_list) { } // Format and write a message to the log if logging is enabled. -func Xsqlite3_log(tls *libc.TLS, iErrCode int32, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30763:17: */ +func Xsqlite3_log(tls *libc.TLS, iErrCode int32, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30970:17: */ var ap Va_list _ = ap // Vararg list if Xsqlite3Config.FxLog != 0 { @@ -66161,7 +66251,7 @@ func Xsqlite3_log(tls *libc.TLS, iErrCode int32, zFormat uintptr, va uintptr) { // variable-argument wrapper around sqlite3_str_vappendf(). The bFlags argument // can contain the bit SQLITE_PRINTF_INTERNAL enable internal formats. -func Xsqlite3_str_appendf(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:30804:17: */ +func Xsqlite3_str_appendf(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:31011:17: */ var ap Va_list _ = ap ap = va @@ -66216,7 +66306,7 @@ type sqlite3PrngType = struct { Fi uint8 Fj uint8 Fs [256]uint8 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31656:19 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32336:19 */ //************* End of printf.c ********************************************* //************* Begin file treeview.c *************************************** @@ -66260,10 +66350,10 @@ type sqlite3PrngType = struct { // All threads share a single random number generator. // This structure is the current state of the generator. -var sqlite3Prng sqlite3PrngType /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31660:3: */ +var sqlite3Prng sqlite3PrngType /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32340:3: */ // Return N random bytes. -func Xsqlite3_randomness(tls *libc.TLS, N int32, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31665:17: */ +func Xsqlite3_randomness(tls *libc.TLS, N int32, pBuf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32345:17: */ bp := tls.Alloc(256) defer tls.Free(256) @@ -66342,16 +66432,16 @@ func Xsqlite3_randomness(tls *libc.TLS, N int32, pBuf uintptr) { /* testdata/sql // // The sqlite3_test_control() interface calls these routines to // control the PRNG. -var sqlite3SavedPrng sqlite3PrngType /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31756:42: */ +var sqlite3SavedPrng sqlite3PrngType /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32436:42: */ -func Xsqlite3PrngSaveState(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31757:21: */ +func Xsqlite3PrngSaveState(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32437:21: */ libc.Xmemcpy(tls, uintptr(unsafe.Pointer(&sqlite3SavedPrng)), uintptr(unsafe.Pointer(&sqlite3Prng)), uint64(unsafe.Sizeof(sqlite3Prng))) } -func Xsqlite3PrngRestoreState(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31764:21: */ +func Xsqlite3PrngRestoreState(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32444:21: */ libc.Xmemcpy(tls, uintptr(unsafe.Pointer(&sqlite3Prng)), uintptr(unsafe.Pointer(&sqlite3SavedPrng)), @@ -66405,7 +66495,7 @@ type X_beginthreadex_proc_type = uintptr /* /usr/x86_64-w64-mingw32/include/proc type X_tls_callback_type = uintptr /* /usr/x86_64-w64-mingw32/include/process.h:61:16 */ // Thread procedure Win32 compatibility shim -func sqlite3ThreadProc(tls *libc.TLS, pArg uintptr) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31897:27: */ +func sqlite3ThreadProc(tls *libc.TLS, pArg uintptr) uint32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32577:27: */ var p uintptr = pArg (*SQLiteThread)(unsafe.Pointer(p)).FpResult = (*struct { @@ -66417,7 +66507,7 @@ func sqlite3ThreadProc(tls *libc.TLS, pArg uintptr) uint32 { /* testdata/sqlite- } // Create a new thread -func Xsqlite3ThreadCreate(tls *libc.TLS, ppThread uintptr, xTask uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31920:20: */ +func Xsqlite3ThreadCreate(tls *libc.TLS, ppThread uintptr, xTask uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32600:20: */ var p uintptr *(*uintptr)(unsafe.Pointer(ppThread)) = uintptr(0) @@ -66455,7 +66545,7 @@ func Xsqlite3ThreadCreate(tls *libc.TLS, ppThread uintptr, xTask uintptr, pIn ui // os_win.c // Get the results of the thread -func Xsqlite3ThreadJoin(tls *libc.TLS, p uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:31958:20: */ +func Xsqlite3ThreadJoin(tls *libc.TLS, p uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32638:20: */ var rc DWORD var bRc WINBOOL _ = bRc @@ -66539,7 +66629,7 @@ var sqlite3Utf8Trans1 = [64]uint8{ uint8(0x08), uint8(0x09), uint8(0x0a), uint8(0x0b), uint8(0x0c), uint8(0x0d), uint8(0x0e), uint8(0x0f), uint8(0x00), uint8(0x01), uint8(0x02), uint8(0x03), uint8(0x04), uint8(0x05), uint8(0x06), uint8(0x07), uint8(0x00), uint8(0x01), uint8(0x02), uint8(0x03), uint8(0x00), uint8(0x01), uint8(0x00), uint8(0x00), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32103:28 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32783:28 */ // Translate a single UTF-8 character. Return the unicode value. // @@ -66550,23 +66640,23 @@ var sqlite3Utf8Trans1 = [64]uint8{ // // Notes On Invalid UTF-8: // -// * This routine never allows a 7-bit character (0x00 through 0x7f) to +// - This routine never allows a 7-bit character (0x00 through 0x7f) to // be encoded as a multi-byte character. Any multi-byte character that // attempts to encode a value between 0x00 and 0x7f is rendered as 0xfffd. // -// * This routine never allows a UTF16 surrogate value to be encoded. +// - This routine never allows a UTF16 surrogate value to be encoded. // If a multi-byte character attempts to encode a value between // 0xd800 and 0xe000 then it is rendered as 0xfffd. // -// * Bytes in the range of 0x80 through 0xbf which occur as the first +// - Bytes in the range of 0x80 through 0xbf which occur as the first // byte of a character are interpreted as single-byte characters // and rendered as themselves even though they are technically // invalid characters. // -// * This routine accepts over-length UTF8 encodings +// - This routine accepts over-length UTF8 encodings // for unicode values 0x80 and greater. It does not change over-length // encodings to 0xfffd as some systems recommend. -func Xsqlite3Utf8Read(tls *libc.TLS, pz uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32197:20: */ +func Xsqlite3Utf8Read(tls *libc.TLS, pz uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32877:20: */ var c uint32 // Same as READ_UTF8() above but without the zTerm parameter. @@ -66593,7 +66683,7 @@ func Xsqlite3Utf8Read(tls *libc.TLS, pz uintptr) U32 { /* testdata/sqlite-amalga // This routine transforms the internal text encoding used by pMem to // desiredEnc. It is an error if the string is already of the desired // encoding, or if *pMem does not contain a string value. -func Xsqlite3VdbeMemTranslate(tls *libc.TLS, pMem uintptr, desiredEnc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32233:36: */ +func Xsqlite3VdbeMemTranslate(tls *libc.TLS, pMem uintptr, desiredEnc U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32913:36: */ var len Sqlite3_int64 // Maximum length of output string in bytes var zOut uintptr // Output buffer var zIn uintptr // Input iterator @@ -66645,7 +66735,7 @@ __1: // translating a 2-byte character to a 4-byte UTF-8 character. // A single byte is required for the output string // nul-terminator. - *(*int32)(unsafe.Pointer(pMem + 12)) &= libc.CplInt32(1) + *(*int32)(unsafe.Pointer(pMem + 16)) &= libc.CplInt32(1) len = int64(2)*Sqlite3_int64((*Mem)(unsafe.Pointer(pMem)).Fn) + int64(1) goto __6 __5: @@ -66918,7 +67008,7 @@ translate_out: // // The allocation (static, dynamic etc.) and encoding of the Mem may be // changed by this function. -func Xsqlite3VdbeMemHandleBom(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32428:20: */ +func Xsqlite3VdbeMemHandleBom(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33108:20: */ var rc int32 = SQLITE_OK var bom U8 = U8(0) @@ -66936,11 +67026,11 @@ func Xsqlite3VdbeMemHandleBom(tls *libc.TLS, pMem uintptr) int32 { /* testdata/s if bom != 0 { rc = Xsqlite3VdbeMemMakeWriteable(tls, pMem) if rc == SQLITE_OK { - *(*int32)(unsafe.Pointer(pMem + 12)) -= 2 + *(*int32)(unsafe.Pointer(pMem + 16)) -= 2 libc.Xmemmove(tls, (*Mem)(unsafe.Pointer(pMem)).Fz, (*Mem)(unsafe.Pointer(pMem)).Fz+2, uint64((*Mem)(unsafe.Pointer(pMem)).Fn)) *(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pMem)).Fz + uintptr((*Mem)(unsafe.Pointer(pMem)).Fn))) = int8(0) *(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pMem)).Fz + uintptr((*Mem)(unsafe.Pointer(pMem)).Fn+1))) = int8(0) - *(*U16)(unsafe.Pointer(pMem + 8)) |= U16(MEM_Term) + *(*U16)(unsafe.Pointer(pMem + 20)) |= U16(MEM_Term) (*Mem)(unsafe.Pointer(pMem)).Fenc = bom } } @@ -66952,7 +67042,7 @@ func Xsqlite3VdbeMemHandleBom(tls *libc.TLS, pMem uintptr) int32 { /* testdata/s // the first 0x00 byte. If nByte is not less than zero, return the // number of unicode characters in the first nByte of pZ (or up to // the first 0x00, whichever comes first). -func Xsqlite3Utf8CharLen(tls *libc.TLS, zIn uintptr, nByte int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32466:20: */ +func Xsqlite3Utf8CharLen(tls *libc.TLS, zIn uintptr, nByte int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33146:20: */ var r int32 = 0 var z uintptr = zIn var zTerm uintptr @@ -66984,7 +67074,7 @@ func Xsqlite3Utf8CharLen(tls *libc.TLS, zIn uintptr, nByte int32) int32 { /* tes // be freed by the calling function. // // NULL is returned if there is an allocation error. -func Xsqlite3Utf16to8(tls *libc.TLS, db uintptr, z uintptr, nByte int32, enc U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32520:21: */ +func Xsqlite3Utf16to8(tls *libc.TLS, db uintptr, z uintptr, nByte int32, enc U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33200:21: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -67005,7 +67095,7 @@ func Xsqlite3Utf16to8(tls *libc.TLS, db uintptr, z uintptr, nByte int32, enc U8) // zIn is a UTF-16 encoded unicode string at least nChar characters long. // Return the number of bytes in the first nChar unicode characters // in pZ. nChar must be non-negative. -func Xsqlite3Utf16ByteLen(tls *libc.TLS, zIn uintptr, nChar int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32541:20: */ +func Xsqlite3Utf16ByteLen(tls *libc.TLS, zIn uintptr, nChar int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33221:20: */ var c int32 var z uintptr = zIn var n int32 = 0 @@ -67094,7 +67184,8 @@ type _complex = struct { } /* /usr/x86_64-w64-mingw32/include/math.h:260:3 */ // Use the compiler's builtin define for FLT_EVAL_METHOD to -// set float_t and double_t. +// +// set float_t and double_t. type Float_t = float32 /* /usr/x86_64-w64-mingw32/include/math.h:362:15 */ type Double_t = float64 /* /usr/x86_64-w64-mingw32/include/math.h:363:16 */ @@ -67119,7 +67210,7 @@ type Double_t = float64 /* /usr/x86_64-w64-mingw32/include/math.h:363:16 */ // sqlite3FaultSim() instance is being invoked. Each call to sqlite3FaultSim() // should have a unique code. To prevent legacy testing applications from // breaking, the codes should not be changed or reused. -func Xsqlite3FaultSim(tls *libc.TLS, iTest int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32633:20: */ +func Xsqlite3FaultSim(tls *libc.TLS, iTest int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33313:20: */ var xCallback uintptr = Xsqlite3Config.FxTestCallback if xCallback != 0 { return (*struct{ f func(*libc.TLS, int32) int32 })(unsafe.Pointer(&struct{ uintptr }{xCallback})).f(tls, iTest) @@ -67131,7 +67222,7 @@ func Xsqlite3FaultSim(tls *libc.TLS, iTest int32) int32 { /* testdata/sqlite-ama // // Use the math library isnan() function if compiled with SQLITE_HAVE_ISNAN. // Otherwise, we have our own implementation that works on most systems. -func Xsqlite3IsNaN(tls *libc.TLS, x float64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32646:20: */ +func Xsqlite3IsNaN(tls *libc.TLS, x float64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33326:20: */ bp := tls.Alloc(16) defer tls.Free(16) *(*float64)(unsafe.Pointer(bp + 8)) = x @@ -67151,7 +67242,7 @@ func Xsqlite3IsNaN(tls *libc.TLS, x float64) int32 { /* testdata/sqlite-amalgama // The value returned will never be negative. Nor will it ever be greater // than the actual length of the string. For very long strings (greater // than 1GiB) the value returned might be less than the true string length. -func Xsqlite3Strlen30(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32668:20: */ +func Xsqlite3Strlen30(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33348:20: */ if z == uintptr(0) { return 0 } @@ -67163,7 +67254,7 @@ func Xsqlite3Strlen30(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalg // // The column type is an extra string stored after the zero-terminator on // the column name if and only if the COLFLAG_HASTYPE flag is set. -func Xsqlite3ColumnType(tls *libc.TLS, pCol uintptr, zDflt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32680:21: */ +func Xsqlite3ColumnType(tls *libc.TLS, pCol uintptr, zDflt uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33360:21: */ if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_HASTYPE != 0 { return (*Column)(unsafe.Pointer(pCol)).FzCnName + uintptr(libc.Xstrlen(tls, (*Column)(unsafe.Pointer(pCol)).FzCnName)) + uintptr(1) } else if uint32(int32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf0>>4)) != 0 { @@ -67178,7 +67269,7 @@ func Xsqlite3ColumnType(tls *libc.TLS, pCol uintptr, zDflt uintptr) uintptr { /* // Helper function for sqlite3Error() - called rarely. Broken out into // a separate routine to avoid unnecessary register saves on entry to // sqlite3Error(). -func sqlite3ErrorFinish(tls *libc.TLS, db uintptr, err_code int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32696:30: */ +func sqlite3ErrorFinish(tls *libc.TLS, db uintptr, err_code int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33376:30: */ if (*Sqlite3)(unsafe.Pointer(db)).FpErr != 0 { Xsqlite3ValueSetNull(tls, (*Sqlite3)(unsafe.Pointer(db)).FpErr) } @@ -67188,7 +67279,7 @@ func sqlite3ErrorFinish(tls *libc.TLS, db uintptr, err_code int32) { /* testdata // Set the current error code to err_code and clear any prior error message. // Also set iSysErrno (by calling sqlite3System) if the err_code indicates // that would be appropriate. -func Xsqlite3Error(tls *libc.TLS, db uintptr, err_code int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32706:21: */ +func Xsqlite3Error(tls *libc.TLS, db uintptr, err_code int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33386:21: */ (*Sqlite3)(unsafe.Pointer(db)).FerrCode = err_code if err_code != 0 || (*Sqlite3)(unsafe.Pointer(db)).FpErr != 0 { @@ -67200,7 +67291,7 @@ func Xsqlite3Error(tls *libc.TLS, db uintptr, err_code int32) { /* testdata/sqli // The equivalent of sqlite3Error(db, SQLITE_OK). Clear the error state // and error message. -func Xsqlite3ErrorClear(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32720:21: */ +func Xsqlite3ErrorClear(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33400:21: */ (*Sqlite3)(unsafe.Pointer(db)).FerrCode = SQLITE_OK (*Sqlite3)(unsafe.Pointer(db)).FerrByteOffset = -1 @@ -67211,7 +67302,7 @@ func Xsqlite3ErrorClear(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgama // Load the sqlite3.iSysErrno field if that is an appropriate thing // to do based on the SQLite error code in rc. -func Xsqlite3SystemError(tls *libc.TLS, db uintptr, rc int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32731:21: */ +func Xsqlite3SystemError(tls *libc.TLS, db uintptr, rc int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33411:21: */ if rc == SQLITE_IOERR|int32(12)<<8 { return } @@ -67231,7 +67322,7 @@ func Xsqlite3SystemError(tls *libc.TLS, db uintptr, rc int32) { /* testdata/sqli // To clear the most recent error for sqlite handle "db", sqlite3Error // should be called with err_code set to SQLITE_OK and zFormat set // to NULL. -func Xsqlite3ErrorWithMsg(tls *libc.TLS, db uintptr, err_code int32, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32751:21: */ +func Xsqlite3ErrorWithMsg(tls *libc.TLS, db uintptr, err_code int32, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33431:21: */ (*Sqlite3)(unsafe.Pointer(db)).FerrCode = err_code Xsqlite3SystemError(tls, db, err_code) @@ -67244,9 +67335,7 @@ func Xsqlite3ErrorWithMsg(tls *libc.TLS, db uintptr, err_code int32, zFormat uin ap = va z = Xsqlite3VMPrintf(tls, db, zFormat, ap) _ = ap - Xsqlite3ValueSetStr(tls, (*Sqlite3)(unsafe.Pointer(db)).FpErr, -1, z, uint8(SQLITE_UTF8), *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr) uintptr - }{Xsqlite3OomFault}))) + Xsqlite3ValueSetStr(tls, (*Sqlite3)(unsafe.Pointer(db)).FpErr, -1, z, uint8(SQLITE_UTF8), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3OomClear}))) } } @@ -67258,7 +67347,7 @@ func Xsqlite3ErrorWithMsg(tls *libc.TLS, db uintptr, err_code int32, zFormat uin // stored by this function into the database handle using sqlite3Error(). // Functions sqlite3Error() or sqlite3ErrorWithMsg() should be used // during statement execution (sqlite3_step() etc.). -func Xsqlite3ErrorMsg(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32777:21: */ +func Xsqlite3ErrorMsg(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33457:21: */ var zMsg uintptr var ap Va_list _ = ap @@ -67289,7 +67378,7 @@ func Xsqlite3ErrorMsg(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uintptr // If database connection db is currently parsing SQL, then transfer // error code errCode to that parser if the parser has not already // encountered some other kind of error. -func Xsqlite3ErrorToParser(tls *libc.TLS, db uintptr, errCode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32808:20: */ +func Xsqlite3ErrorToParser(tls *libc.TLS, db uintptr, errCode int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33488:20: */ var pParse uintptr if db == uintptr(0) || libc.AssignUintptr(&pParse, (*Sqlite3)(unsafe.Pointer(db)).FpParse) == uintptr(0) { return errCode @@ -67314,7 +67403,7 @@ func Xsqlite3ErrorToParser(tls *libc.TLS, db uintptr, errCode int32) int32 { /* // 2002-02-14: This routine is extended to remove MS-Access style // brackets from around identifiers. For example: "[a-b-c]" becomes // "a-b-c". -func Xsqlite3Dequote(tls *libc.TLS, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32833:21: */ +func Xsqlite3Dequote(tls *libc.TLS, z uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33513:21: */ var quote int8 var i int32 var j int32 @@ -67346,7 +67435,7 @@ func Xsqlite3Dequote(tls *libc.TLS, z uintptr) { /* testdata/sqlite-amalgamation *(*int8)(unsafe.Pointer(z + uintptr(j))) = int8(0) } -func Xsqlite3DequoteExpr(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32855:21: */ +func Xsqlite3DequoteExpr(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33535:21: */ *(*U32)(unsafe.Pointer(p + 4)) |= func() uint32 { if int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 8))))) == '"' { @@ -67360,13 +67449,13 @@ func Xsqlite3DequoteExpr(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama // If the input token p is quoted, try to adjust the token to remove // the quotes. This is not always possible: // -// "abc" -> abc -// "ab""cd" -> (not possible because of the interior "") +// "abc" -> abc +// "ab""cd" -> (not possible because of the interior "") // // Remove the quotes if possible. This is a optimization. The overall // system should still return the correct answer even if this routine // is always a no-op. -func Xsqlite3DequoteToken(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32873:21: */ +func Xsqlite3DequoteToken(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33553:21: */ var i uint32 if (*Token)(unsafe.Pointer(p)).Fn < uint32(2) { return @@ -67384,7 +67473,7 @@ func Xsqlite3DequoteToken(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgam } // Generate a Token object from a string -func Xsqlite3TokenInit(tls *libc.TLS, p uintptr, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32887:21: */ +func Xsqlite3TokenInit(tls *libc.TLS, p uintptr, z uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33567:21: */ (*Token)(unsafe.Pointer(p)).Fz = z (*Token)(unsafe.Pointer(p)).Fn = uint32(Xsqlite3Strlen30(tls, z)) } @@ -67399,7 +67488,7 @@ func Xsqlite3TokenInit(tls *libc.TLS, p uintptr, z uintptr) { /* testdata/sqlite // the contents of two buffers containing UTF-8 strings in a // case-independent fashion, using the same definition of "case // independence" that SQLite uses internally when comparing identifiers. -func Xsqlite3_stricmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32905:16: */ +func Xsqlite3_stricmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33585:16: */ if zLeft == uintptr(0) { if zRight != 0 { return -1 @@ -67411,7 +67500,7 @@ func Xsqlite3_stricmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* t return Xsqlite3StrICmp(tls, zLeft, zRight) } -func Xsqlite3StrICmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32913:20: */ +func Xsqlite3StrICmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33593:20: */ var a uintptr var b uintptr var c int32 @@ -67437,7 +67526,7 @@ func Xsqlite3StrICmp(tls *libc.TLS, zLeft uintptr, zRight uintptr) int32 { /* te return c } -func Xsqlite3_strnicmp(tls *libc.TLS, zLeft uintptr, zRight uintptr, N int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32932:16: */ +func Xsqlite3_strnicmp(tls *libc.TLS, zLeft uintptr, zRight uintptr, N int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33612:16: */ var a uintptr var b uintptr if zLeft == uintptr(0) { @@ -67461,7 +67550,7 @@ func Xsqlite3_strnicmp(tls *libc.TLS, zLeft uintptr, zRight uintptr, N int32) in } // Compute an 8-bit hash on a string that is insensitive to case differences -func Xsqlite3StrIHash(tls *libc.TLS, z uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32948:19: */ +func Xsqlite3StrIHash(tls *libc.TLS, z uintptr) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33628:19: */ var h U8 = U8(0) if z == uintptr(0) { return U8(0) @@ -67477,7 +67566,7 @@ func Xsqlite3StrIHash(tls *libc.TLS, z uintptr) U8 { /* testdata/sqlite-amalgama // E==2 results in 100. E==50 results in 1.0e50. // // This routine only works for values of E between 1 and 341. -func sqlite3Pow10(tls *libc.TLS, E int32) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32964:24: */ +func sqlite3Pow10(tls *libc.TLS, E int32) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33644:24: */ var r float64 = 1.0 var i int32 @@ -67513,7 +67602,7 @@ var x = [9]float64{ 1.0e+064, 1.0e+128, 1.0e+256, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32966:32 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33646:32 */ // The string z[] is an text representation of a real number. // Convert this string to a double and write it into *pResult. @@ -67524,17 +67613,18 @@ var x = [9]float64{ // Return TRUE if the result is a valid real number (or integer) and FALSE // if the string is empty or contains extraneous text. More specifically // return -// 1 => The input string is a pure integer -// 2 or more => The input has a decimal point or eNNN clause -// 0 or less => The input string is not a valid number -// -1 => Not a valid number, but has a valid prefix which -// includes a decimal point and/or an eNNN clause +// +// 1 => The input string is a pure integer +// 2 or more => The input has a decimal point or eNNN clause +// 0 or less => The input string is not a valid number +// -1 => Not a valid number, but has a valid prefix which +// includes a decimal point and/or an eNNN clause // // Valid numbers are in one of these formats: // -// [+-]digits[E[+-]digits] -// [+-]digits.[digits][E[+-]digits] -// [+-].digits[E[+-]digits] +// [+-]digits[E[+-]digits] +// [+-]digits.[digits][E[+-]digits] +// [+-].digits[E[+-]digits] // // Leading and trailing whitespace is ignored for the purpose of determining // validity. @@ -67542,7 +67632,7 @@ var x = [9]float64{ // If some prefix of the input string is a valid number, this routine // returns FALSE but it still converts the prefix and writes the result // into *pResult. -func Xsqlite3AtoF(tls *libc.TLS, z uintptr, pResult uintptr, length int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33029:20: */ +func Xsqlite3AtoF(tls *libc.TLS, z uintptr, pResult uintptr, length int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33709:20: */ var incr int32 var zEnd uintptr // sign * significand * (10 ^ (esign * exponent)) @@ -67922,7 +68012,7 @@ __57: // Render an signed 64-bit integer as text. Store the result in zOut[]. // // The caller must ensure that zOut[] is at least 21 bytes in size. -func Xsqlite3Int64ToText(tls *libc.TLS, v I64, zOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33228:21: */ +func Xsqlite3Int64ToText(tls *libc.TLS, v I64, zOut uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33908:21: */ bp := tls.Alloc(22) defer tls.Free(22) @@ -67960,14 +68050,14 @@ func Xsqlite3Int64ToText(tls *libc.TLS, v I64, zOut uintptr) { /* testdata/sqlit // in the values of the last digit if the only difference is in the // last digit. So, for example, // -// compare2pow63("9223372036854775800", 1) +// compare2pow63("9223372036854775800", 1) // // will return -8. -func compare2pow63(tls *libc.TLS, zNum uintptr, incr int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33261:12: */ +func compare2pow63(tls *libc.TLS, zNum uintptr, incr int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33941:12: */ var c int32 = 0 var i int32 // 012345678901234567 - var pow63 uintptr = ts + 1560 /* "9223372036854775..." */ + var pow63 uintptr = ts + 1572 /* "9223372036854775..." */ for i = 0; c == 0 && i < 18; i++ { c = (int32(*(*int8)(unsafe.Pointer(zNum + uintptr(i*incr)))) - int32(*(*int8)(unsafe.Pointer(pow63 + uintptr(i))))) * 10 } @@ -67983,16 +68073,16 @@ func compare2pow63(tls *libc.TLS, zNum uintptr, incr int32) int32 { /* testdata/ // // Returns: // -// -1 Not even a prefix of the input text looks like an integer -// 0 Successful transformation. Fits in a 64-bit signed integer. -// 1 Excess non-space text after the integer value -// 2 Integer too large for a 64-bit signed integer or is malformed -// 3 Special case of 9223372036854775808 +// -1 Not even a prefix of the input text looks like an integer +// 0 Successful transformation. Fits in a 64-bit signed integer. +// 1 Excess non-space text after the integer value +// 2 Integer too large for a 64-bit signed integer or is malformed +// 3 Special case of 9223372036854775808 // // length is the number of bytes in the string (bytes, not characters). // The string is not necessarily zero-terminated. The encoding is // given by enc. -func Xsqlite3Atoi64(tls *libc.TLS, zNum uintptr, pNum uintptr, length int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33294:20: */ +func Xsqlite3Atoi64(tls *libc.TLS, zNum uintptr, pNum uintptr, length int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:33974:20: */ var incr int32 var u U64 = uint64(0) var neg int32 = 0 // assume positive @@ -68110,11 +68200,11 @@ func Xsqlite3Atoi64(tls *libc.TLS, zNum uintptr, pNum uintptr, length int32, enc // // Returns: // -// 0 Successful transformation. Fits in a 64-bit signed integer. -// 1 Excess text after the integer value -// 2 Integer too large for a 64-bit signed integer or is malformed -// 3 Special case of 9223372036854775808 -func Xsqlite3DecOrHexToI64(tls *libc.TLS, z uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33397:20: */ +// 0 Successful transformation. Fits in a 64-bit signed integer. +// 1 Excess text after the integer value +// 2 Integer too large for a 64-bit signed integer or is malformed +// 3 Special case of 9223372036854775808 +func Xsqlite3DecOrHexToI64(tls *libc.TLS, z uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34077:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -68147,7 +68237,7 @@ func Xsqlite3DecOrHexToI64(tls *libc.TLS, z uintptr, pOut uintptr) int32 { /* te // Any non-numeric characters that following zNum are ignored. // This is different from sqlite3Atoi64() which requires the // input number to be zero-terminated. -func Xsqlite3GetInt32(tls *libc.TLS, zNum uintptr, pValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33427:20: */ +func Xsqlite3GetInt32(tls *libc.TLS, zNum uintptr, pValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34107:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -68209,7 +68299,7 @@ func Xsqlite3GetInt32(tls *libc.TLS, zNum uintptr, pValue uintptr) int32 { /* te // Return a 32-bit integer value extracted from a string. If the // string is not an integer, just return 0. -func Xsqlite3Atoi(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33486:20: */ +func Xsqlite3Atoi(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34166:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -68222,7 +68312,7 @@ func Xsqlite3Atoi(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamat // success and false if there is an error. // // Only decimal notation is accepted. -func Xsqlite3GetUInt32(tls *libc.TLS, z uintptr, pI uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33498:20: */ +func Xsqlite3GetUInt32(tls *libc.TLS, z uintptr, pI uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34178:20: */ var v U64 = uint64(0) var i int32 for i = 0; int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(i))))])&0x04 != 0; i++ { @@ -68265,7 +68355,7 @@ func Xsqlite3GetUInt32(tls *libc.TLS, z uintptr, pI uintptr) int32 { /* testdata // for all bytes that have the 8th bit set and one byte with the 8th // bit clear. Except, if we get to the 9th byte, it stores the full // 8 bits and is the last byte. -func putVarint64(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33539:28: */ +func putVarint64(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34219:28: */ bp := tls.Alloc(10) defer tls.Free(10) @@ -68311,7 +68401,7 @@ __3: return n } -func Xsqlite3PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33563:20: */ +func Xsqlite3PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34243:20: */ if v <= uint64(0x7f) { *(*uint8)(unsafe.Pointer(p)) = uint8(v & uint64(0x7f)) return 1 @@ -68334,7 +68424,7 @@ func Xsqlite3PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqli // Read a 64-bit variable-length integer from memory starting at p[0]. // Return the number of bytes read. The value is stored in *v. -func Xsqlite3GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33593:19: */ +func Xsqlite3GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34273:19: */ var a U32 var b U32 var s U32 @@ -68487,7 +68577,7 @@ func Xsqlite3GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/sql // A MACRO version, getVarint32, is provided which inlines the // single-byte case. All code should use the MACRO version as // this function assumes the single-byte case has already been handled. -func Xsqlite3GetVarint32(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33754:19: */ +func Xsqlite3GetVarint32(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34434:19: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -68555,7 +68645,7 @@ func Xsqlite3GetVarint32(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/s // Return the number of bytes that will be needed to store the given // 64-bit integer. -func Xsqlite3VarintLen(tls *libc.TLS, v U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33876:20: */ +func Xsqlite3VarintLen(tls *libc.TLS, v U64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34556:20: */ var i int32 for i = 1; libc.AssignShrUint64(&v, int(uint64(7))) != uint64(0); i++ { } @@ -68563,7 +68653,7 @@ func Xsqlite3VarintLen(tls *libc.TLS, v U64) int32 { /* testdata/sqlite-amalgama } // Read or write a four-byte big-endian integer value. -func Xsqlite3Get4byte(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33886:20: */ +func Xsqlite3Get4byte(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34566:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -68573,7 +68663,7 @@ func Xsqlite3Get4byte(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalgam return libc.X__builtin_bswap32(tls, *(*U32)(unsafe.Pointer(bp /* x */))) } -func Xsqlite3Put4byte(tls *libc.TLS, p uintptr, v U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33904:21: */ +func Xsqlite3Put4byte(tls *libc.TLS, p uintptr, v U32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34584:21: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -68584,7 +68674,7 @@ func Xsqlite3Put4byte(tls *libc.TLS, p uintptr, v U32) { /* testdata/sqlite-amal // Translate a single byte of Hex into an integer. // This routine only works if h really is a valid hexadecimal // character: 0..9a..fA..F -func Xsqlite3HexToInt(tls *libc.TLS, h int32) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33928:19: */ +func Xsqlite3HexToInt(tls *libc.TLS, h int32) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34608:19: */ h = h + 9*(1&(h>>6)) return U8(h & 0xf) @@ -68594,7 +68684,7 @@ func Xsqlite3HexToInt(tls *libc.TLS, h int32) U8 { /* testdata/sqlite-amalgamati // value. Return a pointer to its binary value. Space to hold the // binary value has been obtained from malloc and must be freed by // the calling routine. -func Xsqlite3HexToBlob(tls *libc.TLS, db uintptr, z uintptr, n int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33946:21: */ +func Xsqlite3HexToBlob(tls *libc.TLS, db uintptr, z uintptr, n int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34626:21: */ var zBlob uintptr var i int32 @@ -68612,12 +68702,12 @@ func Xsqlite3HexToBlob(tls *libc.TLS, db uintptr, z uintptr, n int32) uintptr { // Log an error that is an API call on a connection pointer that should // not have been used. The "type" of connection pointer is given as the // argument. The zType is a word like "NULL" or "closed" or "invalid". -func logBadConnection(tls *libc.TLS, zType uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33967:13: */ +func logBadConnection(tls *libc.TLS, zType uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34647:13: */ bp := tls.Alloc(8) defer tls.Free(8) Xsqlite3_log(tls, SQLITE_MISUSE, - ts+1579, + ts+1591, libc.VaList(bp, zType)) } @@ -68633,7 +68723,7 @@ func logBadConnection(tls *libc.TLS, zType uintptr) { /* testdata/sqlite-amalgam // use. sqlite3SafetyCheckSickOrOk() allows a db pointer that failed to // open properly and is not fit for general use but which can be // used as an argument to sqlite3_errmsg() or sqlite3_close(). -func Xsqlite3SafetyCheckOk(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:33988:20: */ +func Xsqlite3SafetyCheckOk(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34668:20: */ var eOpenState U8 if db == uintptr(0) { logBadConnection(tls, ts+1525) @@ -68643,7 +68733,7 @@ func Xsqlite3SafetyCheckOk(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite if int32(eOpenState) != SQLITE_STATE_OPEN { if Xsqlite3SafetyCheckSickOrOk(tls, db) != 0 { - logBadConnection(tls, ts+1624) + logBadConnection(tls, ts+1636) } return 0 } else { @@ -68652,12 +68742,12 @@ func Xsqlite3SafetyCheckOk(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite return int32(0) } -func Xsqlite3SafetyCheckSickOrOk(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34005:20: */ +func Xsqlite3SafetyCheckSickOrOk(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34685:20: */ var eOpenState U8 eOpenState = (*Sqlite3)(unsafe.Pointer(db)).FeOpenState if int32(eOpenState) != SQLITE_STATE_SICK && int32(eOpenState) != SQLITE_STATE_OPEN && int32(eOpenState) != SQLITE_STATE_BUSY { - logBadConnection(tls, ts+1633) + logBadConnection(tls, ts+1645) return 0 } else { return 1 @@ -68669,21 +68759,21 @@ func Xsqlite3SafetyCheckSickOrOk(tls *libc.TLS, db uintptr) int32 { /* testdata/ // the other 64-bit signed integer at *pA and store the result in *pA. // Return 0 on success. Or if the operation would have resulted in an // overflow, leave *pA unchanged and return 1. -func Xsqlite3AddInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34025:20: */ +func Xsqlite3AddInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34705:20: */ return libc.X__builtin_add_overflowInt64(tls, *(*I64)(unsafe.Pointer(pA)), iB, pA) } -func Xsqlite3SubInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34045:20: */ +func Xsqlite3SubInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34725:20: */ return libc.X__builtin_sub_overflowInt64(tls, *(*I64)(unsafe.Pointer(pA)), iB, pA) } -func Xsqlite3MulInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34060:20: */ +func Xsqlite3MulInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34740:20: */ return libc.X__builtin_mul_overflowInt64(tls, *(*I64)(unsafe.Pointer(pA)), iB, pA) } // Compute the absolute value of a 32-bit signed integer, of possible. Or // if the integer has a value of -2147483648, return +2147483647 -func Xsqlite3AbsInt32(tls *libc.TLS, x int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34086:20: */ +func Xsqlite3AbsInt32(tls *libc.TLS, x int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34766:20: */ if x >= 0 { return x } @@ -68696,8 +68786,7 @@ func Xsqlite3AbsInt32(tls *libc.TLS, x int32) int32 { /* testdata/sqlite-amalgam // Find (an approximate) sum of two LogEst values. This computation is // not a simple "+" operator because LogEst is stored as a logarithmic // value. -// -func Xsqlite3LogEstAdd(tls *libc.TLS, a LogEst, b LogEst) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34129:23: */ +func Xsqlite3LogEstAdd(tls *libc.TLS, a LogEst, b LogEst) LogEst { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34809:23: */ if int32(a) >= int32(b) { if int32(a) > int32(b)+49 { return a @@ -68728,11 +68817,11 @@ var x1 = [32]uint8{ uint8(4), uint8(4), uint8(4), uint8(4), // 15-18 uint8(3), uint8(3), uint8(3), uint8(3), uint8(3), uint8(3), // 19-24 uint8(2), uint8(2), uint8(2), uint8(2), uint8(2), uint8(2), uint8(2), // 25-31 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34130:30 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34810:30 */ // Convert an integer into a LogEst. In other words, compute an // approximation for 10*log2(x). -func Xsqlite3LogEst(tls *libc.TLS, x U64) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34156:23: */ +func Xsqlite3LogEst(tls *libc.TLS, x U64) LogEst { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34836:23: */ var y LogEst = int16(40) if x < uint64(8) { if x < uint64(2) { @@ -68750,11 +68839,11 @@ func Xsqlite3LogEst(tls *libc.TLS, x U64) LogEst { /* testdata/sqlite-amalgamati return LogEst(int32(a[x&uint64(7)]) + int32(y) - 10) } -var a = [8]LogEst{int16(0), int16(2), int16(3), int16(5), int16(6), int16(7), int16(8), int16(9)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34157:17 */ +var a = [8]LogEst{int16(0), int16(2), int16(3), int16(5), int16(6), int16(7), int16(8), int16(9)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34837:17 */ // Convert a double into a LogEst // In other words, compute an approximation for 10*log2(x). -func Xsqlite3LogEstFromDouble(tls *libc.TLS, x float64) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34179:23: */ +func Xsqlite3LogEstFromDouble(tls *libc.TLS, x float64) LogEst { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34859:23: */ bp := tls.Alloc(16) defer tls.Free(16) *(*float64)(unsafe.Pointer(bp + 8)) = x @@ -68775,7 +68864,7 @@ func Xsqlite3LogEstFromDouble(tls *libc.TLS, x float64) LogEst { /* testdata/sql } // Convert a LogEst into an integer. -func Xsqlite3LogEstToInt(tls *libc.TLS, x LogEst) U64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34193:20: */ +func Xsqlite3LogEstToInt(tls *libc.TLS, x LogEst) U64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34873:20: */ var n U64 n = U64(int32(x) % 10) x = int16(int32(x) / 10) @@ -68813,21 +68902,21 @@ func Xsqlite3LogEstToInt(tls *libc.TLS, x LogEst) U64 { /* testdata/sqlite-amalg // // Conceptually: // -// struct VList { -// int nAlloc; // Number of allocated slots -// int nUsed; // Number of used slots -// struct VListEntry { -// int iValue; // Value for this entry -// int nSlot; // Slots used by this entry -// // ... variable name goes here -// } a[0]; -// } +// struct VList { +// int nAlloc; // Number of allocated slots +// int nUsed; // Number of used slots +// struct VListEntry { +// int iValue; // Value for this entry +// int nSlot; // Slots used by this entry +// // ... variable name goes here +// } a[0]; +// } // // During code generation, pointers to the variable names within the // VList are taken. When that happens, nAlloc is set to zero as an // indication that the VList may never again be enlarged, since the // accompanying realloc() would invalidate the pointers. -func Xsqlite3VListAdd(tls *libc.TLS, db uintptr, pIn uintptr, zName uintptr, nName int32, iVal int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34239:22: */ +func Xsqlite3VListAdd(tls *libc.TLS, db uintptr, pIn uintptr, zName uintptr, nName int32, iVal int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34919:22: */ var nInt int32 // number of sizeof(int) objects needed for zName var z uintptr // Pointer to where zName will be stored var i int32 // Index in pIn[] where zName is stored @@ -68866,7 +68955,7 @@ func Xsqlite3VListAdd(tls *libc.TLS, db uintptr, pIn uintptr, zName uintptr, nNa // Return a pointer to the name of a variable in the given VList that // has the value iVal. Or return a NULL if there is no such variable in // the list -func Xsqlite3VListNumToName(tls *libc.TLS, pIn uintptr, iVal int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34277:27: */ +func Xsqlite3VListNumToName(tls *libc.TLS, pIn uintptr, iVal int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34957:27: */ var i int32 var mx int32 if pIn == uintptr(0) { @@ -68885,7 +68974,7 @@ func Xsqlite3VListNumToName(tls *libc.TLS, pIn uintptr, iVal int32) uintptr { /* // Return the number of the variable named zName, if it is in VList. // or return 0 if there is no such variable. -func Xsqlite3VListNameToNum(tls *libc.TLS, pIn uintptr, zName uintptr, nName int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34293:20: */ +func Xsqlite3VListNameToNum(tls *libc.TLS, pIn uintptr, zName uintptr, nName int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:34973:20: */ var i int32 var mx int32 if pIn == uintptr(0) { @@ -68924,7 +69013,7 @@ func Xsqlite3VListNameToNum(tls *libc.TLS, pIn uintptr, zName uintptr, nName int // fields of the Hash structure. // // "pNew" is a pointer to the hash table that is to be initialized. -func Xsqlite3HashInit(tls *libc.TLS, pNew uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34330:21: */ +func Xsqlite3HashInit(tls *libc.TLS, pNew uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35010:21: */ (*Hash)(unsafe.Pointer(pNew)).Ffirst = uintptr(0) (*Hash)(unsafe.Pointer(pNew)).Fcount = uint32(0) @@ -68935,7 +69024,7 @@ func Xsqlite3HashInit(tls *libc.TLS, pNew uintptr) { /* testdata/sqlite-amalgama // Remove all entries from a hash table. Reclaim all memory. // Call this routine to delete a hash table or to reset a hash table // to the empty state. -func Xsqlite3HashClear(tls *libc.TLS, pH uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34342:21: */ +func Xsqlite3HashClear(tls *libc.TLS, pH uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35022:21: */ var elem uintptr // For looping over all elements of the table elem = (*Hash)(unsafe.Pointer(pH)).Ffirst @@ -68952,7 +69041,7 @@ func Xsqlite3HashClear(tls *libc.TLS, pH uintptr) { /* testdata/sqlite-amalgamat } // The hashing function. -func strHash(tls *libc.TLS, z uintptr) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34362:21: */ +func strHash(tls *libc.TLS, z uintptr) uint32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35042:21: */ var h uint32 = uint32(0) var c uint8 for int32(libc.AssignUint8(&c, uint8(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1)))))) != 0 { //OPTIMIZATION-IF-TRUE @@ -68967,7 +69056,7 @@ func strHash(tls *libc.TLS, z uintptr) uint32 { /* testdata/sqlite-amalgamation- // Link pNew element into the hash table pH. If pEntry!=0 then also // insert pNew into the pEntry hash bucket. -func insertElement(tls *libc.TLS, pH uintptr, pEntry uintptr, pNew uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34379:13: */ +func insertElement(tls *libc.TLS, pH uintptr, pEntry uintptr, pNew uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35059:13: */ var pHead uintptr // First element already in pEntry if pEntry != 0 { if (*_ht)(unsafe.Pointer(pEntry)).Fcount != 0 { @@ -69004,7 +69093,7 @@ func insertElement(tls *libc.TLS, pH uintptr, pEntry uintptr, pNew uintptr) { /* // The hash table might fail to resize if sqlite3_malloc() fails or // if the new size is the same as the prior size. // Return TRUE if the resize occurs and false if not. -func rehash(tls *libc.TLS, pH uintptr, new_size uint32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34413:12: */ +func rehash(tls *libc.TLS, pH uintptr, new_size uint32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35093:12: */ var new_ht uintptr // The new hash table var elem uintptr var next_elem uintptr // For looping over existing elements @@ -69048,7 +69137,7 @@ func rehash(tls *libc.TLS, pH uintptr, new_size uint32) int32 { /* testdata/sqli // hash table that matches the given key. If no element is found, // a pointer to a static null element with HashElem.data==0 is returned. // If pH is not NULL, then the hash for this key is written to *pH. -func findElementWithHash(tls *libc.TLS, pH uintptr, pKey uintptr, pHash uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34454:17: */ +func findElementWithHash(tls *libc.TLS, pH uintptr, pKey uintptr, pHash uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35134:17: */ var elem uintptr // Used to loop thru the element list var count uint32 // Number of elements left to test var h uint32 @@ -69077,11 +69166,11 @@ func findElementWithHash(tls *libc.TLS, pH uintptr, pKey uintptr, pHash uintptr) return uintptr(unsafe.Pointer(&nullElement)) } -var nullElement = HashElem{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34462:19 */ +var nullElement = HashElem{} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35142:19 */ // Remove a single entry from the hash table given a pointer to that // element and a hash on the element's key. -func removeElementGivenHash(tls *libc.TLS, pH uintptr, elem uintptr, h uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34489:13: */ +func removeElementGivenHash(tls *libc.TLS, pH uintptr, elem uintptr, h uint32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35169:13: */ var pEntry uintptr if (*HashElem)(unsafe.Pointer(elem)).Fprev != 0 { (*HashElem)(unsafe.Pointer((*HashElem)(unsafe.Pointer(elem)).Fprev)).Fnext = (*HashElem)(unsafe.Pointer(elem)).Fnext @@ -69110,7 +69199,7 @@ func removeElementGivenHash(tls *libc.TLS, pH uintptr, elem uintptr, h uint32) { // Attempt to locate an element of the hash table pH with a key // that matches pKey. Return the data for this element if it is // found, or NULL if there is no match. -func Xsqlite3HashFind(tls *libc.TLS, pH uintptr, pKey uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34524:21: */ +func Xsqlite3HashFind(tls *libc.TLS, pH uintptr, pKey uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35204:21: */ return (*HashElem)(unsafe.Pointer(findElementWithHash(tls, pH, pKey, uintptr(0)))).Fdata } @@ -69128,7 +69217,7 @@ func Xsqlite3HashFind(tls *libc.TLS, pH uintptr, pKey uintptr) uintptr { /* test // // If the "data" parameter to this function is NULL, then the // element corresponding to "key" is removed from the hash table. -func Xsqlite3HashInsert(tls *libc.TLS, pH uintptr, pKey uintptr, data uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34544:21: */ +func Xsqlite3HashInsert(tls *libc.TLS, pH uintptr, pKey uintptr, data uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35224:21: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -69173,201 +69262,203 @@ func Xsqlite3HashInsert(tls *libc.TLS, pH uintptr, pKey uintptr, data uintptr) u return uintptr(0) } -//************* End of hash.c *********************************************** -//************* Begin file opcodes.c **************************************** +// ************* End of hash.c *********************************************** +// ************* Begin file opcodes.c **************************************** // Automatically generated. Do not edit // See the tool/mkopcodec.tcl script for details. -func Xsqlite3OpcodeName(tls *libc.TLS, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34590:27: */ +func Xsqlite3OpcodeName(tls *libc.TLS, i int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35270:27: */ return azName[i] } -var azName = [185]uintptr{ - ts + 1641, - ts + 1651, - ts + 1662, +var azName = [187]uintptr{ + ts + 1653, + ts + 1663, ts + 1674, - ts + 1685, - ts + 1690, - ts + 1695, - ts + 1706, - ts + 1718, - ts + 1725, - ts + 1733, - ts + 1741, - ts + 1746, - ts + 1752, - ts + 1766, - ts + 1772, - ts + 1782, - ts + 1787, + ts + 1686, + ts + 1697, + ts + 1709, + ts + 1716, + ts + 1724, + ts + 1732, + ts + 1737, + ts + 1743, + ts + 1757, + ts + 1763, + ts + 1773, + ts + 1778, + ts + 1783, + ts + 1786, ts + 1792, - ts + 1795, - ts + 1799, ts + 1805, - ts + 1818, - ts + 1828, - ts + 1835, - ts + 1842, - ts + 1849, - ts + 1856, + ts + 1815, + ts + 1819, + ts + 1826, + ts + 1833, + ts + 1840, + ts + 1847, + ts + 1857, ts + 1866, - ts + 1875, + ts + 1877, ts + 1886, - ts + 1895, - ts + 1901, - ts + 1911, - ts + 1921, - ts + 1926, - ts + 1936, - ts + 1947, - ts + 1952, - ts + 1959, - ts + 1965, + ts + 1892, + ts + 1902, + ts + 1912, + ts + 1917, + ts + 1927, + ts + 1938, + ts + 1943, + ts + 1950, + ts + 1961, + ts + 1966, ts + 1971, ts + 1977, ts + 1983, - ts + 1986, - ts + 1990, - ts + 2001, - ts + 2012, - ts + 2020, - ts + 2029, - ts + 2035, - ts + 2042, - ts + 2050, - ts + 2053, - ts + 2056, - ts + 2059, + ts + 1989, + ts + 1995, + ts + 1998, + ts + 2002, + ts + 2013, + ts + 2024, + ts + 2032, + ts + 2041, + ts + 2047, + ts + 2054, ts + 2062, ts + 2065, ts + 2068, - ts + 2075, - ts + 2085, - ts + 2098, - ts + 2109, - ts + 2115, - ts + 2122, + ts + 2071, + ts + 2074, + ts + 2077, + ts + 2080, + ts + 2087, + ts + 2097, + ts + 2110, + ts + 2121, ts + 2127, - ts + 2136, - ts + 2145, - ts + 2152, - ts + 2165, - ts + 2176, - ts + 2181, - ts + 2189, - ts + 2195, - ts + 2202, + ts + 2134, + ts + 2139, + ts + 2148, + ts + 2157, + ts + 2164, + ts + 2177, + ts + 2188, + ts + 2193, + ts + 2201, ts + 2207, - ts + 2216, - ts + 2221, - ts + 2230, - ts + 2235, + ts + 2214, + ts + 2226, + ts + 2231, ts + 2240, - ts + 2246, + ts + 2245, ts + 2254, - ts + 2262, - ts + 2272, - ts + 2280, - ts + 2287, - ts + 2300, - ts + 2305, - ts + 2317, - ts + 2325, - ts + 2332, - ts + 2343, - ts + 2350, - ts + 2357, + ts + 2259, + ts + 2264, + ts + 2270, + ts + 2278, + ts + 2286, + ts + 2296, + ts + 2304, + ts + 2311, + ts + 2324, + ts + 2329, + ts + 2341, + ts + 2349, + ts + 2356, ts + 2367, - ts + 2376, - ts + 2387, - ts + 2393, - ts + 2404, - ts + 2414, - ts + 2424, - ts + 2433, - ts + 2440, - ts + 2446, - ts + 2456, - ts + 2467, + ts + 2374, + ts + 2381, + ts + 2391, + ts + 2400, + ts + 2411, + ts + 2417, + ts + 2428, + ts + 2438, + ts + 2448, + ts + 2455, + ts + 2461, ts + 2471, - ts + 2480, - ts + 2489, - ts + 2496, - ts + 2506, - ts + 2513, - ts + 2523, - ts + 2531, - ts + 2538, - ts + 2552, - ts + 2566, - ts + 2574, - ts + 2585, + ts + 2482, + ts + 2486, + ts + 2495, + ts + 2504, + ts + 2511, + ts + 2521, + ts + 2528, + ts + 2537, + ts + 2547, + ts + 2554, + ts + 2562, + ts + 2576, + ts + 2584, ts + 2598, ts + 2609, - ts + 2615, - ts + 2627, - ts + 2636, - ts + 2644, - ts + 2653, - ts + 2662, - ts + 2669, + ts + 2622, + ts + 2633, + ts + 2639, + ts + 2651, + ts + 2660, + ts + 2668, ts + 2677, - ts + 2684, - ts + 2695, - ts + 2709, - ts + 2720, - ts + 2728, - ts + 2734, - ts + 2742, - ts + 2750, - ts + 2760, - ts + 2773, - ts + 2783, - ts + 2796, - ts + 2805, - ts + 2816, - ts + 2824, - ts + 2830, - ts + 2842, + ts + 2686, + ts + 2693, + ts + 2701, + ts + 2708, + ts + 2719, + ts + 2733, + ts + 2744, + ts + 2752, + ts + 2758, + ts + 2766, + ts + 2774, + ts + 2784, + ts + 2797, + ts + 2807, + ts + 2820, + ts + 2829, + ts + 2840, + ts + 2848, ts + 2854, - ts + 2862, - ts + 2874, - ts + 2887, - ts + 2897, - ts + 2907, - ts + 2919, - ts + 2924, + ts + 2866, + ts + 2878, + ts + 2886, + ts + 2898, + ts + 2911, + ts + 2921, + ts + 2931, ts + 2936, - ts + 2946, - ts + 2952, - ts + 2962, - ts + 2969, - ts + 2981, - ts + 2992, - ts + 3000, - ts + 3009, - ts + 3018, - ts + 3027, - ts + 3034, - ts + 3045, + ts + 2948, + ts + 2960, + ts + 2970, + ts + 2976, + ts + 2986, + ts + 2993, + ts + 3005, + ts + 3016, + ts + 3024, + ts + 3033, + ts + 3042, + ts + 3051, ts + 3058, - ts + 3068, - ts + 3075, - ts + 3083, + ts + 3069, + ts + 3082, ts + 3092, - ts + 3098, - ts + 3106, - ts + 3114, + ts + 3099, + ts + 3107, + ts + 3116, ts + 3122, - ts + 3132, - ts + 3141, - ts + 3151, - ts + 3157, - ts + 3168, - ts + 3179, - ts + 3184, + ts + 3130, + ts + 3138, + ts + 3146, + ts + 3156, + ts + 3165, + ts + 3176, + ts + 3186, ts + 3192, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34591:20 */ + ts + 3203, + ts + 3214, + ts + 3219, + ts + 3227, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35271:20 */ //************* End of opcodes.c ******************************************** //************* Begin file os_unix.c **************************************** @@ -69501,7 +69592,7 @@ type winShm = struct { FsharedMask U16 FexclMask U16 F__ccgo_pad2 [2]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43162:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43801:9 */ //************* End of opcodes.c ******************************************** //************* Begin file os_unix.c **************************************** @@ -69627,7 +69718,7 @@ type winShm = struct { // Some Microsoft compilers lack this definition. // Forward references to structures used for WAL -type WinShm = winShm /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43162:23 */ // A connection to shared-memory +type WinShm = winShm /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43801:23 */ // A connection to shared-memory type winShmNode = struct { Fmutex uintptr FzFilename uintptr @@ -69642,10 +69733,10 @@ type winShmNode = struct { FnRef int32 FpFirst uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43162:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43801:9 */ // A connection to shared-memory -type WinShmNode = winShmNode /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43163:27 */ // A region of shared-memory +type WinShmNode = winShmNode /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43802:27 */ // A region of shared-memory // WinCE lacks native support for file locking so we have to fake it // with some code of our own. @@ -69671,7 +69762,7 @@ type winFile = struct { FpMapRegion uintptr FmmapSize Sqlite3_int64 FmmapSizeMax Sqlite3_int64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43162:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43801:9 */ // A region of shared-memory @@ -69680,7 +69771,7 @@ type winFile = struct { // The winFile structure is a subclass of sqlite3_file* specific to the win32 // portability layer. -type WinFile = winFile /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43183:24 */ +type WinFile = winFile /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43822:24 */ // The winVfsAppData structure is used for the pAppData member for all of the // Win32 VFS variants. @@ -69689,11 +69780,11 @@ type winVfsAppData = struct { FpAppData uintptr FbNoLock WINBOOL F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43217:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43856:9 */ // The winVfsAppData structure is used for the pAppData member for all of the // Win32 VFS variants. -type WinVfsAppData = winVfsAppData /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43217:30 */ +type WinVfsAppData = winVfsAppData /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43856:30 */ // Allowed values for winFile.ctrlFlags @@ -69712,7 +69803,7 @@ type WinVfsAppData = winVfsAppData /* testdata/sqlite-amalgamation-3380500/sqlit // // In order to facilitate testing on a WinNT system, the test fixture // can manually set this value to 1 to emulate Win98 behavior. -var sqlite3_os_type LONG = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43405:35 */ +var sqlite3_os_type LONG = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:44044:35 */ // This function is not available on Windows CE or WinRT. @@ -69724,7 +69815,7 @@ type win_syscall = struct { FzName uintptr FpCurrent Sqlite3_syscall_ptr FpDefault Sqlite3_syscall_ptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43426:8 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:44065:8 */ // This function is not available on Windows CE or WinRT. @@ -69733,171 +69824,171 @@ type win_syscall = struct { // testing and sandboxing. The following array holds the names and pointers // to all overrideable system calls. var aSyscall = [80]win_syscall{ - {FzName: ts + 3202, FpCurrent: 0}, + {FzName: ts + 3237, FpCurrent: 0}, - {FzName: ts + 3218}, + {FzName: ts + 3253}, - {FzName: ts + 3229}, + {FzName: ts + 3264}, - {FzName: ts + 3240, FpCurrent: 0}, + {FzName: ts + 3275, FpCurrent: 0}, - {FzName: ts + 3252, FpCurrent: 0}, + {FzName: ts + 3287, FpCurrent: 0}, - {FzName: ts + 3264, FpCurrent: 0}, + {FzName: ts + 3299, FpCurrent: 0}, - {FzName: ts + 3276, FpCurrent: 0}, + {FzName: ts + 3311, FpCurrent: 0}, - {FzName: ts + 3295, FpCurrent: 0}, + {FzName: ts + 3330, FpCurrent: 0}, - {FzName: ts + 3314, FpCurrent: 0}, + {FzName: ts + 3349, FpCurrent: 0}, - {FzName: ts + 3327, FpCurrent: 0}, + {FzName: ts + 3362, FpCurrent: 0}, - {FzName: ts + 3339, FpCurrent: 0}, + {FzName: ts + 3374, FpCurrent: 0}, - {FzName: ts + 3351}, + {FzName: ts + 3386}, - {FzName: ts + 3375}, + {FzName: ts + 3410}, - {FzName: ts + 3396, FpCurrent: 0}, + {FzName: ts + 3431, FpCurrent: 0}, - {FzName: ts + 3413, FpCurrent: 0}, + {FzName: ts + 3448, FpCurrent: 0}, - {FzName: ts + 3428, FpCurrent: 0}, + {FzName: ts + 3463, FpCurrent: 0}, - {FzName: ts + 3443, FpCurrent: 0}, + {FzName: ts + 3478, FpCurrent: 0}, - {FzName: ts + 3455, FpCurrent: 0}, + {FzName: ts + 3490, FpCurrent: 0}, - {FzName: ts + 3475, FpCurrent: 0}, + {FzName: ts + 3510, FpCurrent: 0}, - {FzName: ts + 3493, FpCurrent: 0}, + {FzName: ts + 3528, FpCurrent: 0}, - {FzName: ts + 3511, FpCurrent: 0}, + {FzName: ts + 3546, FpCurrent: 0}, - {FzName: ts + 3530, FpCurrent: 0}, + {FzName: ts + 3565, FpCurrent: 0}, - {FzName: ts + 3549, FpCurrent: 0}, + {FzName: ts + 3584, FpCurrent: 0}, - {FzName: ts + 3570, FpCurrent: 0}, + {FzName: ts + 3605, FpCurrent: 0}, - {FzName: ts + 3582, FpCurrent: 0}, + {FzName: ts + 3617, FpCurrent: 0}, - {FzName: ts + 3599, FpCurrent: 0}, + {FzName: ts + 3634, FpCurrent: 0}, - {FzName: ts + 3616, FpCurrent: 0}, + {FzName: ts + 3651, FpCurrent: 0}, // All other Windows platforms expect GetProcAddress() to take // an ANSI string regardless of the _UNICODE setting - {FzName: ts + 3629, FpCurrent: 0}, + {FzName: ts + 3664, FpCurrent: 0}, - {FzName: ts + 3645, FpCurrent: 0}, + {FzName: ts + 3680, FpCurrent: 0}, - {FzName: ts + 3659, FpCurrent: 0}, + {FzName: ts + 3694, FpCurrent: 0}, - {FzName: ts + 3673, FpCurrent: 0}, + {FzName: ts + 3708, FpCurrent: 0}, - {FzName: ts + 3697, FpCurrent: 0}, + {FzName: ts + 3732, FpCurrent: 0}, - {FzName: ts + 3710, FpCurrent: 0}, + {FzName: ts + 3745, FpCurrent: 0}, - {FzName: ts + 3723, FpCurrent: 0}, + {FzName: ts + 3758, FpCurrent: 0}, - {FzName: ts + 3736, FpCurrent: 0}, + {FzName: ts + 3771, FpCurrent: 0}, - {FzName: ts + 3750, FpCurrent: 0}, + {FzName: ts + 3785, FpCurrent: 0}, - {FzName: ts + 3764, FpCurrent: 0}, + {FzName: ts + 3799, FpCurrent: 0}, - {FzName: ts + 3774, FpCurrent: 0}, + {FzName: ts + 3809, FpCurrent: 0}, - {FzName: ts + 3785, FpCurrent: 0}, + {FzName: ts + 3820, FpCurrent: 0}, - {FzName: ts + 3797, FpCurrent: 0}, + {FzName: ts + 3832, FpCurrent: 0}, - {FzName: ts + 3806, FpCurrent: 0}, + {FzName: ts + 3841, FpCurrent: 0}, - {FzName: ts + 3818, FpCurrent: 0}, + {FzName: ts + 3853, FpCurrent: 0}, - {FzName: ts + 3827, FpCurrent: 0}, + {FzName: ts + 3862, FpCurrent: 0}, - {FzName: ts + 3840, FpCurrent: 0}, + {FzName: ts + 3875, FpCurrent: 0}, - {FzName: ts + 3852, FpCurrent: 0}, + {FzName: ts + 3887, FpCurrent: 0}, - {FzName: ts + 3865, FpCurrent: 0}, + {FzName: ts + 3900, FpCurrent: 0}, - {FzName: ts + 3878, FpCurrent: 0}, + {FzName: ts + 3913, FpCurrent: 0}, - {FzName: ts + 3888, FpCurrent: 0}, + {FzName: ts + 3923, FpCurrent: 0}, - {FzName: ts + 3897, FpCurrent: 0}, + {FzName: ts + 3932, FpCurrent: 0}, - {FzName: ts + 3908, FpCurrent: 0}, + {FzName: ts + 3943, FpCurrent: 0}, - {FzName: ts + 3922, FpCurrent: 0}, + {FzName: ts + 3957, FpCurrent: 0}, - {FzName: ts + 3942, FpCurrent: 0}, + {FzName: ts + 3977, FpCurrent: 0}, - {FzName: ts + 3966, FpCurrent: 0}, + {FzName: ts + 4001, FpCurrent: 0}, - {FzName: ts + 3975, FpCurrent: 0}, + {FzName: ts + 4010, FpCurrent: 0}, - {FzName: ts + 3988, FpCurrent: 0}, + {FzName: ts + 4023, FpCurrent: 0}, - {FzName: ts + 4003, FpCurrent: 0}, + {FzName: ts + 4038, FpCurrent: 0}, - {FzName: ts + 4009, FpCurrent: 0}, + {FzName: ts + 4044, FpCurrent: 0}, - {FzName: ts + 4030, FpCurrent: 0}, + {FzName: ts + 4065, FpCurrent: 0}, - {FzName: ts + 4041, FpCurrent: 0}, + {FzName: ts + 4076, FpCurrent: 0}, - {FzName: ts + 4054, FpCurrent: 0}, + {FzName: ts + 4089, FpCurrent: 0}, - {FzName: ts + 4070, FpCurrent: 0}, + {FzName: ts + 4105, FpCurrent: 0}, - {FzName: ts + 4090, FpCurrent: 0}, + {FzName: ts + 4125, FpCurrent: 0}, - {FzName: ts + 4100}, + {FzName: ts + 4135}, - {FzName: ts + 4115, FpCurrent: 0}, + {FzName: ts + 4150, FpCurrent: 0}, - {FzName: ts + 4135, FpCurrent: 0}, + {FzName: ts + 4170, FpCurrent: 0}, - {FzName: ts + 4157}, + {FzName: ts + 4192}, - {FzName: ts + 4174}, + {FzName: ts + 4209}, - {FzName: ts + 4203}, + {FzName: ts + 4238}, - {FzName: ts + 4224}, + {FzName: ts + 4259}, - {FzName: ts + 4236}, + {FzName: ts + 4271}, - {FzName: ts + 4256}, + {FzName: ts + 4291}, - {FzName: ts + 4271}, + {FzName: ts + 4306}, - {FzName: ts + 4291, FpCurrent: 0}, + {FzName: ts + 4326, FpCurrent: 0}, - {FzName: ts + 4310, FpCurrent: 0}, + {FzName: ts + 4345, FpCurrent: 0}, - {FzName: ts + 4329, FpCurrent: 0}, + {FzName: ts + 4364, FpCurrent: 0}, - {FzName: ts + 4344}, + {FzName: ts + 4379}, // NOTE: On some sub-platforms, the InterlockedCompareExchange "function" // is really just a macro that uses a compiler intrinsic (e.g. x64). // So do not try to make this is into a redefinable interface. - {FzName: ts + 4369}, + {FzName: ts + 4404}, - {FzName: ts + 4396}, + {FzName: ts + 4431}, - {FzName: ts + 4407}, + {FzName: ts + 4442}, - {FzName: ts + 4428, FpCurrent: 0}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43430:3 */ + {FzName: ts + 4463, FpCurrent: 0}, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:44069:3 */ // End of the overrideable system calls @@ -69905,7 +69996,7 @@ var aSyscall = [80]win_syscall{ // "win32" VFSes. Return SQLITE_OK opon successfully updating the // system call pointer, or SQLITE_NOTFOUND if there is no configurable // system call named zName. -func winSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc Sqlite3_syscall_ptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44087:12: */ +func winSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc Sqlite3_syscall_ptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:44726:12: */ var i uint32 var rc int32 = SQLITE_NOTFOUND @@ -69942,7 +70033,7 @@ func winSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc S // Return the value of a system call. Return NULL if zName is not a // recognized system call name. NULL is also returned if the system call // is currently undefined. -func winGetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr) Sqlite3_syscall_ptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44130:28: */ +func winGetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr) Sqlite3_syscall_ptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:44769:28: */ var i uint32 _ = pNotUsed @@ -69958,7 +70049,7 @@ func winGetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr) Sqlite3_sy // then return the name of the first system call. Return NULL if zName // is the last system call or if zName is not the name of a valid // system call. -func winNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44149:19: */ +func winNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:44788:19: */ var i int32 = -1 _ = p @@ -69980,7 +70071,7 @@ func winNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) uintptr { /* tes // This function outputs the specified (ANSI) string to the Win32 debugger // (if available). -func Xsqlite3_win32_write_debug(tls *libc.TLS, zBuf uintptr, nBuf int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44257:17: */ +func Xsqlite3_win32_write_debug(tls *libc.TLS, zBuf uintptr, nBuf int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:44896:17: */ bp := tls.Alloc(4092) defer tls.Free(4092) @@ -70008,11 +70099,11 @@ func Xsqlite3_win32_write_debug(tls *libc.TLS, zBuf uintptr, nBuf int32) { /* te // The following routine suspends the current thread for at least ms // milliseconds. This is equivalent to the Win32 Sleep() interface. -func Xsqlite3_win32_sleep(tls *libc.TLS, milliseconds DWORD) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44303:17: */ +func Xsqlite3_win32_sleep(tls *libc.TLS, milliseconds DWORD) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:44942:17: */ (*(*func(*libc.TLS, DWORD))(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 55*24 + 8)))(tls, milliseconds) } -func Xsqlite3Win32Wait(tls *libc.TLS, hObject HANDLE) DWORD { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44318:22: */ +func Xsqlite3Win32Wait(tls *libc.TLS, hObject HANDLE) DWORD { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:44957:22: */ var rc DWORD for libc.AssignUint32(&rc, (*(*func(*libc.TLS, HANDLE, DWORD, WINBOOL) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 64*24 + 8)))(tls, hObject, INFINITE, TRUE)) == DWORD(0x000000C0) { @@ -70032,7 +70123,7 @@ func Xsqlite3Win32Wait(tls *libc.TLS, hObject HANDLE) DWORD { /* testdata/sqlite // This function determines if the machine is running a version of Windows // based on the NT kernel. -func Xsqlite3_win32_is_nt(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44352:16: */ +func Xsqlite3_win32_is_nt(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:44991:16: */ bp := tls.Alloc(148) defer tls.Free(148) @@ -70055,7 +70146,7 @@ func Xsqlite3_win32_is_nt(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation // Convert a UTF-8 string to Microsoft Unicode. // // Space to hold the returned string is obtained from sqlite3_malloc(). -func winUtf8ToUnicode(tls *libc.TLS, zText uintptr) LPWSTR { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44597:15: */ +func winUtf8ToUnicode(tls *libc.TLS, zText uintptr) LPWSTR { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45236:15: */ var nChar int32 var zWideText LPWSTR @@ -70079,7 +70170,7 @@ func winUtf8ToUnicode(tls *libc.TLS, zText uintptr) LPWSTR { /* testdata/sqlite- // Convert a Microsoft Unicode string to UTF-8. // // Space to hold the returned string is obtained from sqlite3_malloc(). -func winUnicodeToUtf8(tls *libc.TLS, zWideText LPCWSTR) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44623:13: */ +func winUnicodeToUtf8(tls *libc.TLS, zWideText LPCWSTR) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45262:13: */ var nByte int32 var zText uintptr @@ -70104,7 +70195,7 @@ func winUnicodeToUtf8(tls *libc.TLS, zWideText LPCWSTR) uintptr { /* testdata/sq // code page. // // Space to hold the returned string is obtained from sqlite3_malloc(). -func winMbcsToUnicode(tls *libc.TLS, zText uintptr, useAnsi int32) LPWSTR { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44650:15: */ +func winMbcsToUnicode(tls *libc.TLS, zText uintptr, useAnsi int32) LPWSTR { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45289:15: */ var nByte int32 var zMbcsText LPWSTR var codepage int32 @@ -70136,7 +70227,7 @@ func winMbcsToUnicode(tls *libc.TLS, zText uintptr, useAnsi int32) LPWSTR { /* t // using the ANSI or OEM code page. // // Space to hold the returned string is obtained from sqlite3_malloc(). -func winUnicodeToMbcs(tls *libc.TLS, zWideText LPCWSTR, useAnsi int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44679:13: */ +func winUnicodeToMbcs(tls *libc.TLS, zWideText LPCWSTR, useAnsi int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45318:13: */ var nByte int32 var zText uintptr var codepage int32 @@ -70166,7 +70257,7 @@ func winUnicodeToMbcs(tls *libc.TLS, zWideText LPCWSTR, useAnsi int32) uintptr { // Convert a multi-byte character string to UTF-8. // // Space to hold the returned string is obtained from sqlite3_malloc(). -func winMbcsToUtf8(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44706:13: */ +func winMbcsToUtf8(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45345:13: */ var zTextUtf8 uintptr var zTmpWide LPWSTR @@ -70182,7 +70273,7 @@ func winMbcsToUtf8(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* tes // Convert a UTF-8 string to a multi-byte character string. // // Space to hold the returned string is obtained from sqlite3_malloc(). -func winUtf8ToMbcs(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44724:13: */ +func winUtf8ToMbcs(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45363:13: */ var zTextMbcs uintptr var zTmpWide LPWSTR @@ -70196,7 +70287,7 @@ func winUtf8ToMbcs(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* tes } // This is a public wrapper for the winUtf8ToUnicode() function. -func Xsqlite3_win32_utf8_to_unicode(tls *libc.TLS, zText uintptr) LPWSTR { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44740:19: */ +func Xsqlite3_win32_utf8_to_unicode(tls *libc.TLS, zText uintptr) LPWSTR { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45379:19: */ if Xsqlite3_initialize(tls) != 0 { return uintptr(0) } @@ -70204,7 +70295,7 @@ func Xsqlite3_win32_utf8_to_unicode(tls *libc.TLS, zText uintptr) LPWSTR { /* te } // This is a public wrapper for the winUnicodeToUtf8() function. -func Xsqlite3_win32_unicode_to_utf8(tls *libc.TLS, zWideText LPCWSTR) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44756:17: */ +func Xsqlite3_win32_unicode_to_utf8(tls *libc.TLS, zWideText LPCWSTR) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45395:17: */ if Xsqlite3_initialize(tls) != 0 { return uintptr(0) } @@ -70212,7 +70303,7 @@ func Xsqlite3_win32_unicode_to_utf8(tls *libc.TLS, zWideText LPCWSTR) uintptr { } // This is a public wrapper for the winMbcsToUtf8() function. -func Xsqlite3_win32_mbcs_to_utf8(tls *libc.TLS, zText uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44772:17: */ +func Xsqlite3_win32_mbcs_to_utf8(tls *libc.TLS, zText uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45411:17: */ if Xsqlite3_initialize(tls) != 0 { return uintptr(0) } @@ -70220,7 +70311,7 @@ func Xsqlite3_win32_mbcs_to_utf8(tls *libc.TLS, zText uintptr) uintptr { /* test } // This is a public wrapper for the winMbcsToUtf8() function. -func Xsqlite3_win32_mbcs_to_utf8_v2(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44788:17: */ +func Xsqlite3_win32_mbcs_to_utf8_v2(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45427:17: */ if Xsqlite3_initialize(tls) != 0 { return uintptr(0) } @@ -70228,7 +70319,7 @@ func Xsqlite3_win32_mbcs_to_utf8_v2(tls *libc.TLS, zText uintptr, useAnsi int32) } // This is a public wrapper for the winUtf8ToMbcs() function. -func Xsqlite3_win32_utf8_to_mbcs(tls *libc.TLS, zText uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44804:17: */ +func Xsqlite3_win32_utf8_to_mbcs(tls *libc.TLS, zText uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45443:17: */ if Xsqlite3_initialize(tls) != 0 { return uintptr(0) } @@ -70236,7 +70327,7 @@ func Xsqlite3_win32_utf8_to_mbcs(tls *libc.TLS, zText uintptr) uintptr { /* test } // This is a public wrapper for the winUtf8ToMbcs() function. -func Xsqlite3_win32_utf8_to_mbcs_v2(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44820:17: */ +func Xsqlite3_win32_utf8_to_mbcs_v2(tls *libc.TLS, zText uintptr, useAnsi int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45459:17: */ if Xsqlite3_initialize(tls) != 0 { return uintptr(0) } @@ -70245,7 +70336,7 @@ func Xsqlite3_win32_utf8_to_mbcs_v2(tls *libc.TLS, zText uintptr, useAnsi int32) // This function is the same as sqlite3_win32_set_directory (below); however, // it accepts a UTF-8 string. -func Xsqlite3_win32_set_directory8(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44837:16: */ +func Xsqlite3_win32_set_directory8(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45476:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -70263,7 +70354,7 @@ func Xsqlite3_win32_set_directory8(tls *libc.TLS, type1 uint32, zValue uintptr) if ppDirectory != 0 { var zCopy uintptr = uintptr(0) if zValue != 0 && *(*int8)(unsafe.Pointer(zValue)) != 0 { - zCopy = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, zValue)) + zCopy = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, zValue)) if zCopy == uintptr(0) { return SQLITE_NOMEM } @@ -70277,7 +70368,7 @@ func Xsqlite3_win32_set_directory8(tls *libc.TLS, type1 uint32, zValue uintptr) // This function is the same as sqlite3_win32_set_directory (below); however, // it accepts a UTF-16 string. -func Xsqlite3_win32_set_directory16(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44874:16: */ +func Xsqlite3_win32_set_directory16(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45513:16: */ var rc int32 var zUtf8 uintptr = uintptr(0) if zValue != 0 { @@ -70298,14 +70389,14 @@ func Xsqlite3_win32_set_directory16(tls *libc.TLS, type1 uint32, zValue uintptr) // data directory or 2 in order to set the temporary directory. The zValue // argument is the name of the directory to use. The return value will be // SQLITE_OK if successful. -func Xsqlite3_win32_set_directory(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44896:16: */ +func Xsqlite3_win32_set_directory(tls *libc.TLS, type1 uint32, zValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45535:16: */ return Xsqlite3_win32_set_directory16(tls, type1, zValue) } // The return value of winGetLastErrorMsg // is zero if the error message fits in the buffer, or non-zero // otherwise (if the message was truncated). -func winGetLastErrorMsg(tls *libc.TLS, lastErrno DWORD, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44908:12: */ +func winGetLastErrorMsg(tls *libc.TLS, lastErrno DWORD, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45547:12: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -70351,17 +70442,16 @@ func winGetLastErrorMsg(tls *libc.TLS, lastErrno DWORD, nBuf int32, zBuf uintptr } } if DWORD(0) == dwLen { - Xsqlite3_snprintf(tls, nBuf, zBuf, ts+4447, libc.VaList(bp, lastErrno, lastErrno)) + Xsqlite3_snprintf(tls, nBuf, zBuf, ts+4482, libc.VaList(bp, lastErrno, lastErrno)) } else { // copy a maximum of nBuf chars to output buffer - Xsqlite3_snprintf(tls, nBuf, zBuf, ts+4444, libc.VaList(bp+16, zOut)) + Xsqlite3_snprintf(tls, nBuf, zBuf, ts+4479, libc.VaList(bp+16, zOut)) // free the UTF8 buffer Xsqlite3_free(tls, zOut) } return 0 } -// // This function - winLogErrorAtLine() - is only ever called via the macro // winLogError(). // @@ -70374,7 +70464,7 @@ func winGetLastErrorMsg(tls *libc.TLS, lastErrno DWORD, nBuf int32, zBuf uintptr // will be returned to SQLite (e.g. SQLITE_IOERR_DELETE, SQLITE_CANTOPEN). // The two subsequent arguments should be the name of the OS function that // failed and the associated file-system path, if any. -func winLogErrorAtLine(tls *libc.TLS, errcode int32, lastErrno DWORD, zFunc uintptr, zPath uintptr, iLine int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:44999:12: */ +func winLogErrorAtLine(tls *libc.TLS, errcode int32, lastErrno DWORD, zFunc uintptr, zPath uintptr, iLine int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45638:12: */ bp := tls.Alloc(540) defer tls.Free(540) @@ -70392,7 +70482,7 @@ func winLogErrorAtLine(tls *libc.TLS, errcode int32, lastErrno DWORD, zFunc uint } *(*int8)(unsafe.Pointer(bp + 40 + uintptr(i))) = int8(0) Xsqlite3_log(tls, errcode, - ts+4467, + ts+4502, libc.VaList(bp, iLine, lastErrno, zFunc, zPath, bp+40)) return errcode @@ -70402,8 +70492,8 @@ func winLogErrorAtLine(tls *libc.TLS, errcode int32, lastErrno DWORD, zFunc uint // will be retried following a locking error - probably caused by // antivirus software. Also the initial delay before the first retry. // The delay increases linearly with each retry. -var winIoerrRetry int32 = SQLITE_WIN32_IOERR_RETRY /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45035:12 */ -var winIoerrRetryDelay int32 = SQLITE_WIN32_IOERR_RETRY_DELAY /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45036:12 */ +var winIoerrRetry int32 = SQLITE_WIN32_IOERR_RETRY /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45674:12 */ +var winIoerrRetryDelay int32 = SQLITE_WIN32_IOERR_RETRY_DELAY /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45675:12 */ // The "winIoerrCanRetry1" macro is used to determine if a particular I/O // error code obtained via GetLastError() is eligible to be retried. It @@ -70423,7 +70513,7 @@ var winIoerrRetryDelay int32 = SQLITE_WIN32_IOERR_RETRY_DELAY /* testdata/sqlite // If a ReadFile() or WriteFile() error occurs, invoke this routine // to see if it should be retried. Return TRUE to retry. Return FALSE // to give up with an error. -func winRetryIoerr(tls *libc.TLS, pnRetry uintptr, pError uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45069:12: */ +func winRetryIoerr(tls *libc.TLS, pnRetry uintptr, pError uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45708:12: */ var e DWORD = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls) if *(*int32)(unsafe.Pointer(pnRetry)) >= winIoerrRetry { if pError != 0 { @@ -70443,13 +70533,13 @@ func winRetryIoerr(tls *libc.TLS, pnRetry uintptr, pError uintptr) int32 { /* te } // Log a I/O error retry episode. -func winLogIoerr(tls *libc.TLS, nRetry int32, lineno int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45098:13: */ +func winLogIoerr(tls *libc.TLS, nRetry int32, lineno int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:45737:13: */ bp := tls.Alloc(16) defer tls.Free(16) if nRetry != 0 { Xsqlite3_log(tls, SQLITE_NOTICE, - ts+4498, + ts+4533, libc.VaList(bp, winIoerrRetryDelay*nRetry*(nRetry+1)/2, lineno)) } } @@ -70458,7 +70548,7 @@ func winLogIoerr(tls *libc.TLS, nRetry int32, lineno int32) { /* testdata/sqlite // corresponding section in "date.c" cannot use it. // Lock a file region. -func winLockFile(tls *libc.TLS, phFile LPHANDLE, flags DWORD, offsetLow DWORD, offsetHigh DWORD, numBytesLow DWORD, numBytesHigh DWORD) WINBOOL { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45428:13: */ +func winLockFile(tls *libc.TLS, phFile LPHANDLE, flags DWORD, offsetLow DWORD, offsetHigh DWORD, numBytesLow DWORD, numBytesHigh DWORD) WINBOOL { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46067:13: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -70477,7 +70567,7 @@ func winLockFile(tls *libc.TLS, phFile LPHANDLE, flags DWORD, offsetLow DWORD, o } // Unlock a file region. -func winUnlockFile(tls *libc.TLS, phFile LPHANDLE, offsetLow DWORD, offsetHigh DWORD, numBytesLow DWORD, numBytesHigh DWORD) WINBOOL { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45460:13: */ +func winUnlockFile(tls *libc.TLS, phFile LPHANDLE, offsetLow DWORD, offsetHigh DWORD, numBytesLow DWORD, numBytesHigh DWORD) WINBOOL { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46099:13: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -70506,7 +70596,7 @@ func winUnlockFile(tls *libc.TLS, phFile LPHANDLE, offsetLow DWORD, offsetHigh D // Move the current position of the file handle passed as the first // argument to offset iOffset within the file. If successful, return 0. // Otherwise, set pFile->lastErrno and return non-zero. -func winSeekFile(tls *libc.TLS, pFile uintptr, iOffset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45505:12: */ +func winSeekFile(tls *libc.TLS, pFile uintptr, iOffset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46144:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -70530,7 +70620,7 @@ func winSeekFile(tls *libc.TLS, pFile uintptr, iOffset Sqlite3_int64) int32 { /* if dwRet == libc.Uint32(libc.Uint32FromInt32(-1)) && libc.AssignUint32(&lastErrno, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)) != DWORD(0) { (*WinFile)(unsafe.Pointer(pFile)).FlastErrno = lastErrno - winLogErrorAtLine(tls, SQLITE_IOERR|int32(22)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4548, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45529) + winLogErrorAtLine(tls, SQLITE_IOERR|int32(22)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4583, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46168) return 1 } @@ -70546,7 +70636,7 @@ func winSeekFile(tls *libc.TLS, pFile uintptr, iOffset Sqlite3_int64) int32 { /* // the close fails, we pause for 100 milliseconds and try again. As // many as MX_CLOSE_ATTEMPT attempts to close the handle are made before // giving up and returning an error. -func winClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45578:12: */ +func winClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46217:12: */ var rc int32 var cnt int32 = 0 var pFile uintptr = id @@ -70564,13 +70654,13 @@ func winClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation if rc != 0 { return SQLITE_OK } - return winLogErrorAtLine(tls, SQLITE_IOERR|int32(16)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4560, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45625) + return winLogErrorAtLine(tls, SQLITE_IOERR|int32(16)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4595, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46264) } // Read data from a file into a buffer. Return SQLITE_OK if all // bytes were read successfully and SQLITE_IOERR if anything goes // wrong. -func winRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45634:12: */ +func winRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46273:12: */ bp := tls.Alloc(44) defer tls.Free(44) @@ -70607,9 +70697,9 @@ func winRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_ } (*WinFile)(unsafe.Pointer(pFile)).FlastErrno = *(*DWORD)(unsafe.Pointer(bp + 40 /* lastErrno */)) - return winLogErrorAtLine(tls, SQLITE_IOERR|int32(1)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4569, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45693) + return winLogErrorAtLine(tls, SQLITE_IOERR|int32(1)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4604, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46332) } - winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* nRetry */)), 45696) + winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* nRetry */)), 46335) if *(*DWORD)(unsafe.Pointer(bp + 32)) < DWORD(amt) { // Unread parts of the buffer must be zero-filled libc.Xmemset(tls, pBuf+uintptr(*(*DWORD)(unsafe.Pointer(bp + 32))), 0, uint64(DWORD(amt)-*(*DWORD)(unsafe.Pointer(bp + 32)))) @@ -70622,7 +70712,7 @@ func winRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_ // Write data from a buffer into a file. Return SQLITE_OK on success // or some other error code on failure. -func winWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45714:12: */ +func winWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46353:12: */ bp := tls.Alloc(44) defer tls.Free(44) @@ -70672,19 +70762,19 @@ func winWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3 if (*WinFile)(unsafe.Pointer(pFile)).FlastErrno == DWORD(39) || (*WinFile)(unsafe.Pointer(pFile)).FlastErrno == DWORD(112) { - return winLogErrorAtLine(tls, SQLITE_FULL, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4577, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45805) + return winLogErrorAtLine(tls, SQLITE_FULL, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4612, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46444) } - return winLogErrorAtLine(tls, SQLITE_IOERR|int32(3)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4587, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45810) + return winLogErrorAtLine(tls, SQLITE_IOERR|int32(3)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4622, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46449) } else { - winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* nRetry */)), 45813) + winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* nRetry */)), 46452) } return SQLITE_OK } // Truncate an open file to a specified size -func winTruncate(tls *libc.TLS, id uintptr, nByte Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45823:12: */ +func winTruncate(tls *libc.TLS, id uintptr, nByte Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46462:12: */ var pFile uintptr = id // File handle object var rc int32 = SQLITE_OK // Return code for this function var lastErrno DWORD @@ -70726,10 +70816,10 @@ func winTruncate(tls *libc.TLS, id uintptr, nByte Sqlite3_int64) int32 { /* test // SetEndOfFile() returns non-zero when successful, or zero when it fails. if winSeekFile(tls, pFile, nByte) != 0 { - rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4597, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45876) + rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4632, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46515) } else if 0 == (*(*func(*libc.TLS, HANDLE) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 53*24 + 8)))(tls, (*WinFile)(unsafe.Pointer(pFile)).Fh) && libc.AssignUint32(&lastErrno, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)) != DWORD(1224) { (*WinFile)(unsafe.Pointer(pFile)).FlastErrno = lastErrno - rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4610, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45881) + rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4645, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46520) } if rc == SQLITE_OK && oldMmapSize > int64(0) { @@ -70744,7 +70834,7 @@ func winTruncate(tls *libc.TLS, id uintptr, nByte Sqlite3_int64) int32 { /* test } // Make sure all writes to a particular file are committed to disk. -func winSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45912:12: */ +func winSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46551:12: */ // Used only when SQLITE_NO_SYNC is not defined. var rc WINBOOL // Used when SQLITE_NO_SYNC is not defined and by the assert() and/or @@ -70766,7 +70856,7 @@ func winSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite- } else { (*WinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls) - return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4623, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45973) + return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4658, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46612) } } rc = (*(*func(*libc.TLS, HANDLE) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 13*24 + 8)))(tls, (*WinFile)(unsafe.Pointer(pFile)).Fh) @@ -70777,13 +70867,13 @@ func winSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite- } else { (*WinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls) - return winLogErrorAtLine(tls, SQLITE_IOERR|int32(4)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4632, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 45988) + return winLogErrorAtLine(tls, SQLITE_IOERR|int32(4)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4667, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46627) } return int32(0) } // Determine the current size of a file in bytes -func winFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:45997:12: */ +func winFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46636:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -70801,7 +70891,7 @@ func winFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* testdata/s if lowerBits == 0xffffffff && libc.AssignUint32(&lastErrno, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)) != DWORD(0) { (*WinFile)(unsafe.Pointer(pFile)).FlastErrno = lastErrno - rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(7)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4641, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46029) + rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(7)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4676, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46668) } } @@ -70823,7 +70913,7 @@ func winFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* testdata/s // Acquire a reader lock. // Different API routines are called depending on whether or not this // is Win9x or WinNT. -func winGetReadLock(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46075:12: */ +func winGetReadLock(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46714:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -70849,7 +70939,7 @@ func winGetReadLock(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-ama } // Undo a readlock -func winUnlockReadLock(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46110:12: */ +func winUnlockReadLock(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46749:12: */ var res int32 var lastErrno DWORD @@ -70860,7 +70950,7 @@ func winUnlockReadLock(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite- } if res == 0 && libc.AssignUint32(&lastErrno, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls)) != DWORD(158) { (*WinFile)(unsafe.Pointer(pFile)).FlastErrno = lastErrno - winLogErrorAtLine(tls, SQLITE_IOERR|int32(8)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4653, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46124) + winLogErrorAtLine(tls, SQLITE_IOERR|int32(8)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4688, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46763) } return res @@ -70869,10 +70959,10 @@ func winUnlockReadLock(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite- // Lock the file with the lock specified by parameter locktype - one // of the following: // -// (1) SHARED_LOCK -// (2) RESERVED_LOCK -// (3) PENDING_LOCK -// (4) EXCLUSIVE_LOCK +// (1) SHARED_LOCK +// (2) RESERVED_LOCK +// (3) PENDING_LOCK +// (4) EXCLUSIVE_LOCK // // Sometimes when requesting one lock state, additional lock states // are inserted in between. The locking might fail on one of the later @@ -70880,17 +70970,17 @@ func winUnlockReadLock(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite- // still short of its goal. The following chart shows the allowed // transitions and the inserted intermediate states: // -// UNLOCKED -> SHARED -// SHARED -> RESERVED -// SHARED -> (PENDING) -> EXCLUSIVE -// RESERVED -> (PENDING) -> EXCLUSIVE -// PENDING -> EXCLUSIVE +// UNLOCKED -> SHARED +// SHARED -> RESERVED +// SHARED -> (PENDING) -> EXCLUSIVE +// RESERVED -> (PENDING) -> EXCLUSIVE +// PENDING -> EXCLUSIVE // // This routine will only increase a lock. The winUnlock() routine // erases all locks at once and returns us immediately to locking level 0. // It is not possible to lower the locking level one step at a time. You // must go straight to locking level 0. -func winLock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46157:12: */ +func winLock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46796:12: */ var rc int32 = SQLITE_OK // Return code from subroutines var res int32 = 1 // Result of a Windows lock call var newLocktype int32 // Set pFile->locktype to this value before exiting @@ -71010,7 +71100,7 @@ func winLock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testdata/sqli // This routine checks if there is a RESERVED lock held on the specified // file by this or any other process. If such a lock is held, return // non-zero, otherwise zero. -func winCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46300:12: */ +func winCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46939:12: */ var res int32 var pFile uintptr = id @@ -71039,7 +71129,7 @@ func winCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* // It is not possible for this routine to fail if the second argument // is NO_LOCK. If the second argument is SHARED_LOCK then this routine // might return SQLITE_IOERR; -func winUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46336:12: */ +func winUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:46975:12: */ var type1 int32 var pFile uintptr = id var rc int32 = SQLITE_OK @@ -71050,7 +71140,7 @@ func winUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testdata/sq if locktype == SHARED_LOCK && !(winGetReadLock(tls, pFile) != 0) { // This should never happen. We should always be able to // reacquire the read lock - rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(8)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4671, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46350) + rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(8)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4706, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 46989) } } if type1 >= RESERVED_LOCK { @@ -71084,19 +71174,19 @@ func winUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testdata/sq // database connections are accessing the same database file at the same // time and one or more of those connections are writing. -func winNolockLock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46386:12: */ +func winNolockLock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47025:12: */ _ = id _ = locktype return SQLITE_OK } -func winNolockCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46392:12: */ +func winNolockCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47031:12: */ _ = id _ = pResOut return SQLITE_OK } -func winNolockUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46398:12: */ +func winNolockUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47037:12: */ _ = id _ = locktype return SQLITE_OK @@ -71110,7 +71200,7 @@ func winNolockUnlock(tls *libc.TLS, id uintptr, locktype int32) int32 { /* testd // 1 or 0 depending on whether or not bit mask of pFile->ctrlFlags is set. // // If *pArg is 0 or 1, then clear or set the mask bit of pFile->ctrlFlags. -func winModeBit(tls *libc.TLS, pFile uintptr, mask uint8, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46413:13: */ +func winModeBit(tls *libc.TLS, pFile uintptr, mask uint8, pArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47052:13: */ if *(*int32)(unsafe.Pointer(pArg)) < 0 { *(*int32)(unsafe.Pointer(pArg)) = libc.Bool32(int32((*WinFile)(unsafe.Pointer(pFile)).FctrlFlags)&int32(mask) != 0) } else if *(*int32)(unsafe.Pointer(pArg)) == 0 { @@ -71121,7 +71211,7 @@ func winModeBit(tls *libc.TLS, pFile uintptr, mask uint8, pArg uintptr) { /* tes } // Control and query of the open file handle. -func winFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46432:12: */ +func winFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47071:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -71186,7 +71276,7 @@ func winFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { / } case SQLITE_FCNTL_VFSNAME: { - *(*uintptr)(unsafe.Pointer(pArg)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, (*Sqlite3_vfs)(unsafe.Pointer((*WinFile)(unsafe.Pointer(pFile)).FpVfs)).FzName)) + *(*uintptr)(unsafe.Pointer(pArg)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, (*Sqlite3_vfs)(unsafe.Pointer((*WinFile)(unsafe.Pointer(pFile)).FpVfs)).FzName)) return SQLITE_OK @@ -71267,13 +71357,13 @@ func winFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { / // if two files are created in the same file-system directory (i.e. // a database and its journal file) that the sector size will be the // same for both. -func winSectorSize(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46567:12: */ +func winSectorSize(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47206:12: */ _ = id return SQLITE_DEFAULT_SECTOR_SIZE } // Return a vector of device characteristics. -func winDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46575:12: */ +func winDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47214:12: */ var p uintptr = id return SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN | func() int32 { if int32((*WinFile)(unsafe.Pointer(p)).FctrlFlags)&WINFILE_PSOW != 0 { @@ -71287,7 +71377,7 @@ func winDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* testdata/sql // on allocation size granularity boundaries. // During sqlite3_os_init() we do a GetSystemInfo() // to get the granularity size. -var winSysInfo SYSTEM_INFO /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46587:20: */ +var winSysInfo SYSTEM_INFO /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47226:20: */ // Helper functions to obtain and relinquish the global mutex. The // global mutex is used to protect the winLockInfo objects used by @@ -71297,16 +71387,16 @@ var winSysInfo SYSTEM_INFO /* testdata/sqlite-amalgamation-3380500/sqlite3.c:465 // is held when required. This function is only used as part of assert() // statements. e.g. // -// winShmEnterMutex() -// assert( winShmMutexHeld() ); -// winShmLeaveMutex() -var winBigLock uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46604:22 */ +// winShmEnterMutex() +// assert( winShmMutexHeld() ); +// winShmLeaveMutex() +var winBigLock uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47243:22 */ -func winShmEnterMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46605:13: */ +func winShmEnterMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47244:13: */ Xsqlite3_mutex_enter(tls, winBigLock) } -func winShmLeaveMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46608:13: */ +func winShmLeaveMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47247:13: */ Xsqlite3_mutex_leave(tls, winBigLock) } @@ -71319,32 +71409,31 @@ func winShmLeaveMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/s // winShmMutexHeld() must be true when creating or destroying // this object or while reading or writing the following fields: // -// nRef -// pNext +// nRef +// pNext // // The following fields are read-only after the object is created: // -// fid -// zFilename +// fid +// zFilename // // Either winShmNode.mutex must be held or winShmNode.nRef==0 and // winShmMutexHeld() is true when reading or writing any other field // in this structure. -// type ShmRegion = struct { FhMap HANDLE FpMap uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:43162:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43801:9 */ // A global array of all winShmNode objects. // // The winShmMutexHeld() must be true while reading or writing this list. -var winShmNodeList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46669:19 */ +var winShmNodeList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47308:19 */ // Constants used for locking // Apply advisory locks for all n bytes beginning at ofst. -func winShmSystemLock(tls *libc.TLS, pFile uintptr, lockType int32, ofst int32, nByte int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46707:12: */ +func winShmSystemLock(tls *libc.TLS, pFile uintptr, lockType int32, ofst int32, nByte int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47346:12: */ var rc int32 = 0 // Result code form Lock/UnlockFileEx() // Access to the winShmNode object is serialized by the caller @@ -71375,7 +71464,7 @@ func winShmSystemLock(tls *libc.TLS, pFile uintptr, lockType int32, ofst int32, // // This is not a VFS shared-memory method; it is a utility function called // by VFS shared-memory methods. -func winShmPurge(tls *libc.TLS, pVfs uintptr, deleteFlag int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46755:13: */ +func winShmPurge(tls *libc.TLS, pVfs uintptr, deleteFlag int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47394:13: */ var pp uintptr var p uintptr @@ -71423,7 +71512,7 @@ func winShmPurge(tls *libc.TLS, pVfs uintptr, deleteFlag int32) { /* testdata/sq // If the DMS cannot be locked because this is a readonly_shm=1 // connection and no other process already holds a lock, return // SQLITE_READONLY_CANTINIT and set pShmNode->isUnlocked=1. -func winLockSharedMemory(tls *libc.TLS, pShmNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46806:12: */ +func winLockSharedMemory(tls *libc.TLS, pShmNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47445:12: */ var rc int32 = winShmSystemLock(tls, pShmNode, WINSHM_WRLCK, (22+SQLITE_SHM_NLOCK)*4+SQLITE_SHM_NLOCK, 1) if rc == SQLITE_OK { @@ -71433,7 +71522,7 @@ func winLockSharedMemory(tls *libc.TLS, pShmNode uintptr) int32 { /* testdata/sq return SQLITE_READONLY | int32(5)<<8 } else if winTruncate(tls, pShmNode+16, int64(0)) != 0 { winShmSystemLock(tls, pShmNode, WINSHM_UNLCK, (22+SQLITE_SHM_NLOCK)*4+SQLITE_SHM_NLOCK, 1) - return winLogErrorAtLine(tls, SQLITE_IOERR|int32(18)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4681, (*WinShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 46816) + return winLogErrorAtLine(tls, SQLITE_IOERR|int32(18)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4716, (*WinShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 47455) } } @@ -71449,7 +71538,7 @@ func winLockSharedMemory(tls *libc.TLS, pShmNode uintptr) int32 { /* testdata/sq // When opening a new shared-memory file, if no other instances of that // file are currently open, in this process or in other processes, then // the file must be truncated to zero length or have its header cleared. -func winOpenSharedMemory(tls *libc.TLS, pDbFd uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46835:12: */ +func winOpenSharedMemory(tls *libc.TLS, pDbFd uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47474:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -71484,7 +71573,7 @@ __1: __2: ; (*WinShmNode)(unsafe.Pointer(pNew)).FzFilename = pNew + 1*160 - Xsqlite3_snprintf(tls, nName+15, (*WinShmNode)(unsafe.Pointer(pNew)).FzFilename, ts+4701, libc.VaList(bp, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath)) + Xsqlite3_snprintf(tls, nName+15, (*WinShmNode)(unsafe.Pointer(pNew)).FzFilename, ts+4736, libc.VaList(bp, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath)) // Look to see if there is an existing winShmNode that can be used. // If no matching winShmNode currently exists, create a new one. @@ -71538,7 +71627,7 @@ __10: __9: ; - if !(0 == Xsqlite3_uri_boolean(tls, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, ts+4708, 0)) { + if !(0 == Xsqlite3_uri_boolean(tls, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, ts+4743, 0)) { goto __11 } inFlags = inFlags | (SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE) @@ -71553,7 +71642,7 @@ __12: if !(rc != SQLITE_OK) { goto __13 } - rc = winLogErrorAtLine(tls, rc, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4721, (*WinShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 46898) + rc = winLogErrorAtLine(tls, rc, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4756, (*WinShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 47537) goto shm_open_err __13: ; @@ -71604,7 +71693,7 @@ shm_open_err: // Close a connection to shared-memory. Delete the underlying // storage if deleteFlag is true. -func winShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46944:12: */ +func winShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47583:12: */ var pDbFd uintptr // Database holding shared-memory var p uintptr // The connection to be closed var pShmNode uintptr // The underlying shared-memory file @@ -71643,7 +71732,7 @@ func winShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* testdat } // Change the lock state for a shared-memory segment. -func winShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:46985:12: */ +func winShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47624:12: */ var pDbFd uintptr = fd // Connection holding shared memory var p uintptr = (*WinFile)(unsafe.Pointer(pDbFd)).FpShm // The shared memory being locked var pX uintptr // For looping over all siblings @@ -71742,7 +71831,7 @@ func winShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) int // // All loads and stores begun before the barrier must complete before // any load or store begun after the barrier. -func winShmBarrier(tls *libc.TLS, fd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47098:13: */ +func winShmBarrier(tls *libc.TLS, fd uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47737:13: */ _ = fd // compiler-defined memory barrier winShmEnterMutex(tls) // Also mutex, for redundancy @@ -71766,7 +71855,7 @@ func winShmBarrier(tls *libc.TLS, fd uintptr) { /* testdata/sqlite-amalgamation- // this call as described above, then it is mapped into this processes // address space (if it is not already), *pp is set to point to the mapped // memory and SQLITE_OK returned. -func winShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47126:12: */ +func winShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47765:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -71838,7 +71927,7 @@ __3: if !(rc != SQLITE_OK) { goto __6 } - rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4732, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47169) + rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4767, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47808) goto shmpage_out __6: ; @@ -71861,7 +71950,7 @@ __8: if !(rc != SQLITE_OK) { goto __9 } - rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4743, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47184) + rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4778, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47823) goto shmpage_out __9: ; @@ -71912,7 +72001,7 @@ __14: goto __15 } (*WinShmNode)(unsafe.Pointer(pShmNode)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls) - rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(21)<<8, (*WinShmNode)(unsafe.Pointer(pShmNode)).FlastErrno, ts+4754, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47243) + rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(21)<<8, (*WinShmNode)(unsafe.Pointer(pShmNode)).FlastErrno, ts+4789, (*WinFile)(unsafe.Pointer(pDbFd)).FzPath, 47882) if !(hMap != 0) { goto __16 } @@ -71956,13 +72045,13 @@ __19: } // Cleans up the mapped region of the specified file, if any. -func winUnmapfile(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47280:12: */ +func winUnmapfile(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47919:12: */ if (*WinFile)(unsafe.Pointer(pFile)).FpMapRegion != 0 { if !((*(*func(*libc.TLS, LPCVOID) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 59*24 + 8)))(tls, (*WinFile)(unsafe.Pointer(pFile)).FpMapRegion) != 0) { (*WinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls) - return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4765, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 47292) + return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4800, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 47931) } (*WinFile)(unsafe.Pointer(pFile)).FpMapRegion = uintptr(0) (*WinFile)(unsafe.Pointer(pFile)).FmmapSize = int64(0) @@ -71971,7 +72060,7 @@ func winUnmapfile(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalg if !((*(*func(*libc.TLS, HANDLE) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 3*24 + 8)))(tls, (*WinFile)(unsafe.Pointer(pFile)).FhMap) != 0) { (*WinFile)(unsafe.Pointer(pFile)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls) - return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4779, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 47303) + return winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4814, (*WinFile)(unsafe.Pointer(pFile)).FzPath, 47942) } (*WinFile)(unsafe.Pointer(pFile)).FhMap = uintptr(0) } @@ -71993,7 +72082,7 @@ func winUnmapfile(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalg // SQLITE_OK is returned if no error occurs (even if the mapping is not // recreated as a result of outstanding references) or an SQLite error // code otherwise. -func winMapfile(tls *libc.TLS, pFd uintptr, nByte Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47329:12: */ +func winMapfile(tls *libc.TLS, pFd uintptr, nByte Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:47968:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -72030,7 +72119,7 @@ func winMapfile(tls *libc.TLS, pFd uintptr, nByte Sqlite3_int64) int32 { /* test DWORD(*(*Sqlite3_int64)(unsafe.Pointer(bp))&int64(0xffffffff)), uintptr(0)) if (*WinFile)(unsafe.Pointer(pFd)).FhMap == uintptr(0) { (*WinFile)(unsafe.Pointer(pFd)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls) - rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFd)).FlastErrno, ts+4793, (*WinFile)(unsafe.Pointer(pFd)).FzPath, 47380) + rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFd)).FlastErrno, ts+4828, (*WinFile)(unsafe.Pointer(pFd)).FzPath, 48019) // Log the error, but continue normal operation using xRead/xWrite return SQLITE_OK @@ -72041,7 +72130,7 @@ func winMapfile(tls *libc.TLS, pFd uintptr, nByte Sqlite3_int64) int32 { /* test (*(*func(*libc.TLS, HANDLE) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 3*24 + 8)))(tls, (*WinFile)(unsafe.Pointer(pFd)).FhMap) (*WinFile)(unsafe.Pointer(pFd)).FhMap = uintptr(0) (*WinFile)(unsafe.Pointer(pFd)).FlastErrno = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls) - rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFd)).FlastErrno, ts+4805, (*WinFile)(unsafe.Pointer(pFd)).FzPath, 47398) + rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(24)<<8, (*WinFile)(unsafe.Pointer(pFd)).FlastErrno, ts+4840, (*WinFile)(unsafe.Pointer(pFd)).FzPath, 48037) // Log the error, but continue normal operation using xRead/xWrite return SQLITE_OK @@ -72063,7 +72152,7 @@ func winMapfile(tls *libc.TLS, pFd uintptr, nByte Sqlite3_int64) int32 { /* test // // If this function does return a pointer, the caller must eventually // release the reference by calling winUnfetch(). -func winFetch(tls *libc.TLS, fd uintptr, iOff I64, nAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47427:12: */ +func winFetch(tls *libc.TLS, fd uintptr, iOff I64, nAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48066:12: */ var pFd uintptr = fd // The underlying database file *(*uintptr)(unsafe.Pointer(pp)) = uintptr(0) @@ -72093,7 +72182,7 @@ func winFetch(tls *libc.TLS, fd uintptr, iOff I64, nAmt int32, pp uintptr) int32 // Or, if the third argument is NULL, then this function is being called // to inform the VFS layer that, according to POSIX, any existing mapping // may now be invalid and should be unmapped. -func winUnfetch(tls *libc.TLS, fd uintptr, iOff I64, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47469:12: */ +func winUnfetch(tls *libc.TLS, fd uintptr, iOff I64, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48108:12: */ var pFd uintptr = fd // The underlying database file // If p==0 (unmap the entire file) then there must be no outstanding @@ -72143,7 +72232,7 @@ var winIoMethod = Sqlite3_io_methods{ FxShmUnmap: 0, // xShmUnmap FxFetch: 0, // xFetch FxUnfetch: 0, // xUnfetch -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47512:33 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48151:33 */ // This vector defines all the methods that can operate on an // sqlite3_file for win32 without performing any locking. @@ -72167,16 +72256,16 @@ var winIoNolockMethod = Sqlite3_io_methods{ FxShmUnmap: 0, // xShmUnmap FxFetch: 0, // xFetch FxUnfetch: 0, // xUnfetch -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47538:33 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48177:33 */ var winAppData = WinVfsAppData{ FpMethod: 0, // bNoLock -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47560:22 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48199:22 */ var winNolockAppData = WinVfsAppData{ FpMethod: 0, // pAppData FbNoLock: 1, // bNoLock -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47566:22 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48205:22 */ // *************************************************************************** // @@ -72189,7 +72278,7 @@ var winNolockAppData = WinVfsAppData{ // operating system wants filenames in. Space to hold the result // is obtained from malloc and must be freed by the calling // function. -func winConvertFromUtf8Filename(tls *libc.TLS, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47606:13: */ +func winConvertFromUtf8Filename(tls *libc.TLS, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48245:13: */ var zConverted uintptr = uintptr(0) if sqlite3_os_type == 2 || Xsqlite3_win32_is_nt(tls) != 0 { zConverted = winUtf8ToUnicode(tls, zFilename) @@ -72203,7 +72292,7 @@ func winConvertFromUtf8Filename(tls *libc.TLS, zFilename uintptr) uintptr { /* t // This function returns non-zero if the specified UTF-8 string buffer // ends with a directory separator character or one was successfully // added to it. -func winMakeEndInDirSep(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47625:12: */ +func winMakeEndInDirSep(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48264:12: */ if zBuf != 0 { var nLen int32 = Xsqlite3Strlen30(tls, zBuf) if nLen > 0 { @@ -72221,13 +72310,13 @@ func winMakeEndInDirSep(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* test // Create a temporary file name and store the resulting pointer into pzBuf. // The pointer returned in pzBuf must be freed via sqlite3_free(). -func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47645:12: */ +func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48284:12: */ bp := tls.Alloc(24) defer tls.Free(24) var i Size_t var j Size_t - var nPre int32 = Xsqlite3Strlen30(tls, ts+4817) + var nPre int32 = Xsqlite3Strlen30(tls, ts+4852) var nMax int32 var nBuf int32 var nDir int32 @@ -72262,9 +72351,9 @@ func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* testd if nDirLen > nDir { Xsqlite3_free(tls, zBuf) - return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4825, uintptr(0), 47686) + return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4860, uintptr(0), 48325) } - Xsqlite3_snprintf(tls, nMax, zBuf, ts+4444, libc.VaList(bp, Xsqlite3_temp_directory)) + Xsqlite3_snprintf(tls, nMax, zBuf, ts+4479, libc.VaList(bp, Xsqlite3_temp_directory)) } } else if sqlite3_os_type == 2 || Xsqlite3_win32_is_nt(tls) != 0 { var zMulti uintptr @@ -72278,11 +72367,11 @@ func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* testd Xsqlite3_free(tls, zWidePath) Xsqlite3_free(tls, zBuf) - return winLogErrorAtLine(tls, SQLITE_IOERR|int32(25)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4841, uintptr(0), 47784) + return winLogErrorAtLine(tls, SQLITE_IOERR|int32(25)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4876, uintptr(0), 48423) } zMulti = winUnicodeToUtf8(tls, zWidePath) if zMulti != 0 { - Xsqlite3_snprintf(tls, nMax, zBuf, ts+4444, libc.VaList(bp+8, zMulti)) + Xsqlite3_snprintf(tls, nMax, zBuf, ts+4479, libc.VaList(bp+8, zMulti)) Xsqlite3_free(tls, zMulti) Xsqlite3_free(tls, zWidePath) } else { @@ -72302,11 +72391,11 @@ func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* testd if (*(*func(*libc.TLS, DWORD, LPSTR) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 31*24 + 8)))(tls, uint32(nMax), zMbcsPath) == DWORD(0) { Xsqlite3_free(tls, zBuf) - return winLogErrorAtLine(tls, SQLITE_IOERR|int32(25)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4857, uintptr(0), 47811) + return winLogErrorAtLine(tls, SQLITE_IOERR|int32(25)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+4892, uintptr(0), 48450) } zUtf8 = winMbcsToUtf8(tls, zMbcsPath, (*(*func(*libc.TLS) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8)))(tls)) if zUtf8 != 0 { - Xsqlite3_snprintf(tls, nMax, zBuf, ts+4444, libc.VaList(bp+16, zUtf8)) + Xsqlite3_snprintf(tls, nMax, zBuf, ts+4479, libc.VaList(bp+16, zUtf8)) Xsqlite3_free(tls, zUtf8) } else { Xsqlite3_free(tls, zBuf) @@ -72321,7 +72410,7 @@ func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* testd if !(winMakeEndInDirSep(tls, nDir+1, zBuf) != 0) { Xsqlite3_free(tls, zBuf) - return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4873, uintptr(0), 47835) + return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4908, uintptr(0), 48474) } // Check that the output buffer is large enough for the temporary file @@ -72337,10 +72426,10 @@ func winGetTempname(tls *libc.TLS, pVfs uintptr, pzBuf uintptr) int32 { /* testd if nLen+nPre+17 > nBuf { Xsqlite3_free(tls, zBuf) - return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4889, uintptr(0), 47853) + return winLogErrorAtLine(tls, SQLITE_ERROR, uint32(0), ts+4924, uintptr(0), 48492) } - Xsqlite3_snprintf(tls, nBuf-16-nLen, zBuf+uintptr(nLen), ts+4817, 0) + Xsqlite3_snprintf(tls, nBuf-16-nLen, zBuf+uintptr(nLen), ts+4852, 0) j = Size_t(Xsqlite3Strlen30(tls, zBuf)) Xsqlite3_randomness(tls, 15, zBuf+uintptr(j)) @@ -72368,12 +72457,12 @@ __3: return SQLITE_OK } -var zChars = *(*[63]int8)(unsafe.Pointer(ts + 4905)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47646:15 */ +var zChars = *(*[63]int8)(unsafe.Pointer(ts + 4940)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48285:15 */ // Return TRUE if the named file is really a directory. Return false if // it is something other than a directory, or if there is any kind of memory // allocation failure. -func winIsDir(tls *libc.TLS, zConverted uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47876:12: */ +func winIsDir(tls *libc.TLS, zConverted uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48515:12: */ bp := tls.Alloc(44) defer tls.Free(44) @@ -72401,7 +72490,7 @@ func winIsDir(tls *libc.TLS, zConverted uintptr) int32 { /* testdata/sqlite-amal } // Open a file. -func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:47911:12: */ +func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48550:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -72496,7 +72585,7 @@ func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32 dwCreationDisposition = DWORD(OPEN_EXISTING) } - if 0 == Xsqlite3_uri_boolean(tls, zName, ts+4968, 0) { + if 0 == Xsqlite3_uri_boolean(tls, zName, ts+5003, 0) { dwShareMode = DWORD(FILE_SHARE_READ | FILE_SHARE_WRITE) } else { dwShareMode = DWORD(0) @@ -72557,7 +72646,7 @@ func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32 } } } - winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 8 /* cnt */)), 48142) + winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 8 /* cnt */)), 48781) if h == libc.UintptrFromInt64(int64(-1)) { Xsqlite3_free(tls, zConverted) @@ -72568,8 +72657,8 @@ func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32 pOutFlags) } else { (*WinFile)(unsafe.Pointer(pFile)).FlastErrno = *(*DWORD)(unsafe.Pointer(bp + 12 /* lastErrno */)) - winLogErrorAtLine(tls, SQLITE_CANTOPEN, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+4978, zUtf8Name, 48157) - return Xsqlite3CantopenError(tls, 48158) + winLogErrorAtLine(tls, SQLITE_CANTOPEN, (*WinFile)(unsafe.Pointer(pFile)).FlastErrno, ts+5013, zUtf8Name, 48796) + return Xsqlite3CantopenError(tls, 48797) } } @@ -72601,7 +72690,7 @@ func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32 *(*U8)(unsafe.Pointer(pFile + 28)) |= U8(WINFILE_RDONLY) } if flags&SQLITE_OPEN_MAIN_DB != 0 && - Xsqlite3_uri_boolean(tls, zName, ts+4986, SQLITE_POWERSAFE_OVERWRITE) != 0 { + Xsqlite3_uri_boolean(tls, zName, ts+5021, SQLITE_POWERSAFE_OVERWRITE) != 0 { *(*U8)(unsafe.Pointer(pFile + 28)) |= U8(WINFILE_PSOW) } (*WinFile)(unsafe.Pointer(pFile)).FlastErrno = DWORD(0) @@ -72624,7 +72713,7 @@ func winOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, id uintptr, flags int32 // problem, we delay 100 milliseconds and try to delete again. Up // to MX_DELETION_ATTEMPTs deletion attempts are run before giving // up and returning an error. -func winDelete(tls *libc.TLS, pVfs uintptr, zFilename uintptr, syncDir int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48234:12: */ +func winDelete(tls *libc.TLS, pVfs uintptr, zFilename uintptr, syncDir int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48873:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -72695,9 +72784,9 @@ func winDelete(tls *libc.TLS, pVfs uintptr, zFilename uintptr, syncDir int32) in } } if rc != 0 && rc != SQLITE_IOERR|int32(23)<<8 { - rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(10)<<8, *(*DWORD)(unsafe.Pointer(bp + 4 /* lastErrno */)), ts+4991, zFilename, 48330) + rc = winLogErrorAtLine(tls, SQLITE_IOERR|int32(10)<<8, *(*DWORD)(unsafe.Pointer(bp + 4 /* lastErrno */)), ts+5026, zFilename, 48969) } else { - winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp /* cnt */)), 48332) + winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp /* cnt */)), 48971) } Xsqlite3_free(tls, zConverted) @@ -72705,7 +72794,7 @@ func winDelete(tls *libc.TLS, pVfs uintptr, zFilename uintptr, syncDir int32) in } // Check the existence and status of a file. -func winAccess(tls *libc.TLS, pVfs uintptr, zFilename uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48342:12: */ +func winAccess(tls *libc.TLS, pVfs uintptr, zFilename uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:48981:12: */ bp := tls.Alloc(44) defer tls.Free(44) @@ -72740,10 +72829,10 @@ func winAccess(tls *libc.TLS, pVfs uintptr, zFilename uintptr, flags int32, pRes attr = (*WIN32_FILE_ATTRIBUTE_DATA)(unsafe.Pointer(bp /* &sAttrData */)).FdwFileAttributes } } else { - winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* cnt */)), 48382) + winLogIoerr(tls, *(*int32)(unsafe.Pointer(bp + 36 /* cnt */)), 49021) if *(*DWORD)(unsafe.Pointer(bp + 40)) != DWORD(2) && *(*DWORD)(unsafe.Pointer(bp + 40)) != DWORD(3) { Xsqlite3_free(tls, zConverted) - return winLogErrorAtLine(tls, SQLITE_IOERR|int32(13)<<8, *(*DWORD)(unsafe.Pointer(bp + 40 /* lastErrno */)), ts+5001, zFilename, 48385) + return winLogErrorAtLine(tls, SQLITE_IOERR|int32(13)<<8, *(*DWORD)(unsafe.Pointer(bp + 40 /* lastErrno */)), ts+5036, zFilename, 49024) } else { attr = libc.Uint32(libc.Uint32FromInt32(-1)) } @@ -72771,14 +72860,14 @@ func winAccess(tls *libc.TLS, pVfs uintptr, zFilename uintptr, flags int32, pRes // Returns non-zero if the specified path name starts with the "long path" // prefix. -func winIsLongPathPrefix(tls *libc.TLS, zPathname uintptr) WINBOOL { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48420:13: */ +func winIsLongPathPrefix(tls *libc.TLS, zPathname uintptr) WINBOOL { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49059:13: */ return libc.Bool32(int32(*(*int8)(unsafe.Pointer(zPathname))) == '\\' && int32(*(*int8)(unsafe.Pointer(zPathname + 1))) == '\\' && int32(*(*int8)(unsafe.Pointer(zPathname + 2))) == '?' && int32(*(*int8)(unsafe.Pointer(zPathname + 3))) == '\\') } // Returns non-zero if the specified path name starts with a drive letter // followed by a colon character. -func winIsDriveLetterAndColon(tls *libc.TLS, zPathname uintptr) WINBOOL { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48431:13: */ +func winIsDriveLetterAndColon(tls *libc.TLS, zPathname uintptr) WINBOOL { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49070:13: */ return libc.Bool32(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zPathname)))])&0x02 != 0 && int32(*(*int8)(unsafe.Pointer(zPathname + 1))) == ':') } @@ -72786,7 +72875,7 @@ func winIsDriveLetterAndColon(tls *libc.TLS, zPathname uintptr) WINBOOL { /* tes // non-zero is returned from this function, the calling function must simply // use the provided path name verbatim -OR- resolve it into a full path name // using the GetFullPathName Win32 API function (if available). -func winIsVerbatimPathname(tls *libc.TLS, zPathname uintptr) WINBOOL { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48443:13: */ +func winIsVerbatimPathname(tls *libc.TLS, zPathname uintptr) WINBOOL { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49082:13: */ // If the path name starts with a forward slash or a backslash, it is either // a legal UNC name, a volume relative path, or an absolute path name in the // "Unix" format on Windows. There is no easy way to differentiate between @@ -72812,7 +72901,7 @@ func winIsVerbatimPathname(tls *libc.TLS, zPathname uintptr) WINBOOL { /* testda // Turn a relative pathname into a full pathname. Write the full // pathname into zOut[]. zOut[] will be at least pVfs->mxPathname // bytes in size. -func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32, zFull uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48479:12: */ +func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32, zFull uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49118:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -72842,7 +72931,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32 return nFull } return (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FmxPathname - }(), zFull, ts+5011, + }(), zFull, ts+5046, libc.VaList(bp, Xsqlite3_data_directory, '\\', zRelative)) return SQLITE_OK } @@ -72855,7 +72944,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32 nByte = (*(*func(*libc.TLS, LPCWSTR, DWORD, LPWSTR, uintptr) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 25*24 + 8)))(tls, zConverted, uint32(0), uintptr(0), uintptr(0)) if nByte == DWORD(0) { Xsqlite3_free(tls, zConverted) - return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5018, zRelative, 48602) + return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5053, zRelative, 49241) } nByte = nByte + DWORD(3) zTemp = Xsqlite3MallocZero(tls, uint64(nByte)*uint64(unsafe.Sizeof(WCHAR(0)))) @@ -72867,7 +72956,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32 if nByte == DWORD(0) { Xsqlite3_free(tls, zConverted) Xsqlite3_free(tls, zTemp) - return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5035, zRelative, 48615) + return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5070, zRelative, 49254) } Xsqlite3_free(tls, zConverted) zOut = winUnicodeToUtf8(tls, zTemp) @@ -72877,7 +72966,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32 nByte = (*(*func(*libc.TLS, LPCSTR, DWORD, LPSTR, uintptr) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 24*24 + 8)))(tls, zConverted, uint32(0), uintptr(0), uintptr(0)) if nByte == DWORD(0) { Xsqlite3_free(tls, zConverted) - return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5052, zRelative, 48628) + return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5087, zRelative, 49267) } nByte = nByte + DWORD(3) zTemp = Xsqlite3MallocZero(tls, uint64(nByte)*uint64(unsafe.Sizeof(int8(0)))) @@ -72889,7 +72978,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32 if nByte == DWORD(0) { Xsqlite3_free(tls, zConverted) Xsqlite3_free(tls, zTemp) - return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5069, zRelative, 48641) + return winLogErrorAtLine(tls, SQLITE_CANTOPEN|int32(3)<<8, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), ts+5104, zRelative, 49280) } Xsqlite3_free(tls, zConverted) zOut = winMbcsToUtf8(tls, zTemp, (*(*func(*libc.TLS) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8)))(tls)) @@ -72901,7 +72990,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32 return nFull } return (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FmxPathname - }(), zFull, ts+4444, libc.VaList(bp+24, zOut)) + }(), zFull, ts+4479, libc.VaList(bp+24, zOut)) Xsqlite3_free(tls, zOut) return SQLITE_OK } else { @@ -72912,7 +73001,7 @@ func winFullPathname(tls *libc.TLS, pVfs uintptr, zRelative uintptr, nFull int32 // Interfaces for opening a shared library, finding entry points // within the shared library, and closing the shared library. -func winDlOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48664:13: */ +func winDlOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49303:13: */ var h HANDLE var zConverted uintptr = winConvertFromUtf8Filename(tls, zFilename) _ = pVfs @@ -72930,12 +73019,12 @@ func winDlOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr) uintptr { /* test return h } -func winDlError(tls *libc.TLS, pVfs uintptr, nBuf int32, zBufOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48705:13: */ +func winDlError(tls *libc.TLS, pVfs uintptr, nBuf int32, zBufOut uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49344:13: */ _ = pVfs winGetLastErrorMsg(tls, (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls), nBuf, zBufOut) } -func winDlSym(tls *libc.TLS, pVfs uintptr, pH uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48709:13: */ +func winDlSym(tls *libc.TLS, pVfs uintptr, pH uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49348:13: */ var proc FARPROC _ = pVfs proc = (*(*func(*libc.TLS, HMODULE, LPCSTR) FARPROC)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 27*24 + 8)))(tls, pH, zSym) @@ -72943,7 +73032,7 @@ func winDlSym(tls *libc.TLS, pVfs uintptr, pH uintptr, zSym uintptr) uintptr { / return proc } -func winDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48717:13: */ +func winDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49356:13: */ _ = pVfs (*(*func(*libc.TLS, HMODULE) WINBOOL)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 16*24 + 8)))(tls, pHandle) @@ -72956,13 +73045,13 @@ type EntropyGatherer1 = struct { Fi int32 FnXor int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48730:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49369:9 */ // State information for the randomness gatherer. -type EntropyGatherer = EntropyGatherer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48730:32 */ +type EntropyGatherer = EntropyGatherer1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49369:32 */ // Mix sz bytes of entropy into p. -func xorMemory(tls *libc.TLS, p uintptr, x uintptr, sz int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48740:13: */ +func xorMemory(tls *libc.TLS, p uintptr, x uintptr, sz int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49379:13: */ var j int32 var k int32 j = 0 @@ -72978,7 +73067,7 @@ func xorMemory(tls *libc.TLS, p uintptr, x uintptr, sz int32) { /* testdata/sqli } // Write up to nBuf bytes of randomness into zBuf. -func winRandomness(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48754:12: */ +func winRandomness(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49393:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -73021,7 +73110,7 @@ func winRandomness(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int32 } // Sleep for a little while. Return the amount of time slept. -func winSleep(tls *libc.TLS, pVfs uintptr, microsec int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48811:12: */ +func winSleep(tls *libc.TLS, pVfs uintptr, microsec int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49450:12: */ Xsqlite3_win32_sleep(tls, uint32((microsec+999)/1000)) _ = pVfs return (microsec + 999) / 1000 * 1000 @@ -73039,7 +73128,7 @@ func winSleep(tls *libc.TLS, pVfs uintptr, microsec int32) int32 { /* testdata/s // // On success, return SQLITE_OK. Return SQLITE_ERROR if the time and date // cannot be found. -func winCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, piNow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48836:12: */ +func winCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, piNow uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49475:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -73056,13 +73145,13 @@ func winCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, piNow uintptr) int32 { /* return SQLITE_OK } -var winFiletimeEpoch Sqlite3_int64 = int64(23058135) * int64(8640000) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48841:30 */ -var max32BitValue Sqlite3_int64 = int64(2000000000) + int64(2000000000) + int64(294967296) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48846:30 */ +var winFiletimeEpoch Sqlite3_int64 = int64(23058135) * int64(8640000) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49480:30 */ +var max32BitValue Sqlite3_int64 = int64(2000000000) + int64(2000000000) + int64(294967296) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49485:30 */ // Find the current time (in Universal Coordinated Time). Write the // current time and date as a Julian Day number into *prNow and // return 0. Return 1 if the time and date cannot be found. -func winCurrentTime(tls *libc.TLS, pVfs uintptr, prNow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48879:12: */ +func winCurrentTime(tls *libc.TLS, pVfs uintptr, prNow uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49518:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -73096,15 +73185,15 @@ func winCurrentTime(tls *libc.TLS, pVfs uintptr, prNow uintptr) int32 { /* testd // on SQLite. It is fine to have an implementation that never // returns an error message: // -// int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){ -// assert(zBuf[0]=='\0'); -// return 0; -// } +// int xGetLastError(sqlite3_vfs *pVfs, int nBuf, char *zBuf){ +// assert(zBuf[0]=='\0'); +// return 0; +// } // // However if an error message is supplied, it will be incorporated // by sqlite into the error message available to the user using // sqlite3_errmsg(), possibly making IO errors easier to debug. -func winGetLastError(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48919:12: */ +func winGetLastError(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49558:12: */ var e DWORD = (*(*func(*libc.TLS) DWORD)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls) _ = pVfs if nBuf > 0 { @@ -73114,7 +73203,7 @@ func winGetLastError(tls *libc.TLS, pVfs uintptr, nBuf int32, zBuf uintptr) int3 } // Initialize and deinitialize the operating system interface. -func Xsqlite3_os_init(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48929:16: */ +func Xsqlite3_os_init(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49568:16: */ // Double-check that the aSyscall[] array has been constructed // correctly. See ticket [bb3a86e890c8e96ab] @@ -73140,7 +73229,7 @@ var winVfs = Sqlite3_vfs{ FiVersion: 3, // iVersion FszOsFile: int32(unsafe.Sizeof(WinFile{})), // szOsFile FmxPathname: MAX_PATH * 4, - FzName: ts + 5086, + FzName: ts + 5121, FpAppData: 0, // pAppData FxOpen: 0, // xOpen FxDelete: 0, // xDelete @@ -73158,12 +73247,12 @@ var winVfs = Sqlite3_vfs{ FxSetSystemCall: 0, // xSetSystemCall FxGetSystemCall: 0, // xGetSystemCall FxNextSystemCall: 0, // xNextSystemCall -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48930:22 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49569:22 */ var winLongPathVfs = Sqlite3_vfs{ FiVersion: 3, // iVersion FszOsFile: int32(unsafe.Sizeof(WinFile{})), // szOsFile FmxPathname: int32(uint64(unsafe.Sizeof(WCHAR(0))) * uint64(32767)), - FzName: ts + 5092, + FzName: ts + 5127, FpAppData: 0, // pAppData FxOpen: 0, // xOpen FxDelete: 0, // xDelete @@ -73181,12 +73270,12 @@ var winLongPathVfs = Sqlite3_vfs{ FxSetSystemCall: 0, // xSetSystemCall FxGetSystemCall: 0, // xGetSystemCall FxNextSystemCall: 0, // xNextSystemCall -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48955:22 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49594:22 */ var winNolockVfs = Sqlite3_vfs{ FiVersion: 3, // iVersion FszOsFile: int32(unsafe.Sizeof(WinFile{})), // szOsFile FmxPathname: MAX_PATH * 4, - FzName: ts + 5107, + FzName: ts + 5142, FpAppData: 0, // pAppData FxOpen: 0, // xOpen FxDelete: 0, // xDelete @@ -73204,12 +73293,12 @@ var winNolockVfs = Sqlite3_vfs{ FxSetSystemCall: 0, // xSetSystemCall FxGetSystemCall: 0, // xGetSystemCall FxNextSystemCall: 0, // xNextSystemCall -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:48980:22 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49619:22 */ var winLongPathNolockVfs = Sqlite3_vfs{ FiVersion: 3, // iVersion FszOsFile: int32(unsafe.Sizeof(WinFile{})), // szOsFile FmxPathname: int32(uint64(unsafe.Sizeof(WCHAR(0))) * uint64(32767)), - FzName: ts + 5118, + FzName: ts + 5153, FpAppData: 0, // pAppData FxOpen: 0, // xOpen FxDelete: 0, // xDelete @@ -73227,9 +73316,9 @@ var winLongPathNolockVfs = Sqlite3_vfs{ FxSetSystemCall: 0, // xSetSystemCall FxGetSystemCall: 0, // xGetSystemCall FxNextSystemCall: 0, // xNextSystemCall -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49005:22 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49644:22 */ -func Xsqlite3_os_end(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49064:16: */ +func Xsqlite3_os_end(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49703:16: */ winBigLock = uintptr(0) @@ -73257,15 +73346,15 @@ func Xsqlite3_os_end(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380 // #include "sqliteInt.h" // Forward declaration of objects used by this utility -type MemVfs = sqlite3_vfs /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49107:28 */ +type MemVfs = sqlite3_vfs /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49746:28 */ type MemFile1 = struct { Fbase Sqlite3_file FpStore uintptr FeLock int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49108:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49747:9 */ -type MemFile = MemFile1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49108:24 */ +type MemFile = MemFile1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49747:24 */ type MemStore1 = struct { Fsz Sqlite3_int64 FszAlloc Sqlite3_int64 @@ -73279,9 +73368,9 @@ type MemStore1 = struct { FnRef int32 F__ccgo_pad1 [4]byte FzFName uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49108:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49747:9 */ -type MemStore = MemStore1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49109:25 */ +type MemStore = MemStore1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49748:25 */ // File-scope variables for holding the memdb files that are accessible // to multiple database connections in separate threads. @@ -73291,18 +73380,18 @@ type MemFS = struct { FnMemStore int32 F__ccgo_pad1 [4]byte FapMemStore uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49179:8 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49818:8 */ // File-scope variables for holding the memdb files that are accessible // to multiple database connections in separate threads. // // Must hold SQLITE_MUTEX_STATIC_VFS1 to access any part of this object. -var memdb_g MemFS /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49182:3: */ +var memdb_g MemFS /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49821:3: */ var memdb_vfs = Sqlite3_vfs{ FiVersion: 2, // szOsFile (set when registered) FmxPathname: 1024, // pNext - FzName: ts + 5138, + FzName: ts + 5173, FxOpen: 0, /* memdbDelete, */ // xDelete FxAccess: 0, // xAccess FxFullPathname: 0, // xFullPathname @@ -73314,7 +73403,7 @@ var memdb_vfs = Sqlite3_vfs{ FxSleep: 0, /* memdbCurrentTime, */ // xCurrentTime FxGetLastError: 0, // xGetLastError FxCurrentTimeInt64: 0, // xNextSystemCall -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49218:20 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49857:20 */ var memdb_io_methods = Sqlite3_io_methods{ FiVersion: 3, // iVersion @@ -73330,21 +73419,21 @@ var memdb_io_methods = Sqlite3_io_methods{ FxDeviceCharacteristics: 0, // xShmUnmap FxFetch: 0, // xFetch FxUnfetch: 0, // xUnfetch -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49243:33 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49882:33 */ // Enter/leave the mutex on a MemStore -func memdbEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49276:13: */ +func memdbEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49915:13: */ Xsqlite3_mutex_enter(tls, (*MemStore)(unsafe.Pointer(p)).FpMutex) } -func memdbLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49279:13: */ +func memdbLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49918:13: */ Xsqlite3_mutex_leave(tls, (*MemStore)(unsafe.Pointer(p)).FpMutex) } // Close an memdb-file. // Free the underlying MemStore object when its refcount drops to zero // or less. -func memdbClose(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49291:12: */ +func memdbClose(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49930:12: */ var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore if (*MemStore)(unsafe.Pointer(p)).FzFName != 0 { var i int32 @@ -73382,7 +73471,7 @@ func memdbClose(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgam } // Read data from an memdb-file. -func memdbRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49333:12: */ +func memdbRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49972:12: */ var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore memdbEnter(tls, p) if iOfst+Sqlite_int64(iAmt) > (*MemStore)(unsafe.Pointer(p)).Fsz { @@ -73399,7 +73488,7 @@ func memdbRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sql } // Try to enlarge the memory allocation to hold at least sz bytes -func memdbEnlarge(tls *libc.TLS, p uintptr, newSz Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49355:12: */ +func memdbEnlarge(tls *libc.TLS, p uintptr, newSz Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:49994:12: */ var pNew uintptr if (*MemStore)(unsafe.Pointer(p)).FmFlags&uint32(SQLITE_DESERIALIZE_RESIZEABLE) == uint32(0) || (*MemStore)(unsafe.Pointer(p)).FnMmap > 0 { return SQLITE_FULL @@ -73421,7 +73510,7 @@ func memdbEnlarge(tls *libc.TLS, p uintptr, newSz Sqlite3_int64) int32 { /* test } // Write data to an memdb-file. -func memdbWrite(tls *libc.TLS, pFile uintptr, z uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49375:12: */ +func memdbWrite(tls *libc.TLS, pFile uintptr, z uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50014:12: */ var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore memdbEnter(tls, p) if (*MemStore)(unsafe.Pointer(p)).FmFlags&uint32(SQLITE_DESERIALIZE_READONLY) != 0 { @@ -73452,7 +73541,7 @@ func memdbWrite(tls *libc.TLS, pFile uintptr, z uintptr, iAmt int32, iOfst Sqlit // In rollback mode (which is always the case for memdb, as it does not // support WAL mode) the truncate() method is only used to reduce // the size of a file, never to increase the size. -func memdbTruncate(tls *libc.TLS, pFile uintptr, size Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49412:12: */ +func memdbTruncate(tls *libc.TLS, pFile uintptr, size Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50051:12: */ var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore var rc int32 = SQLITE_OK memdbEnter(tls, p) @@ -73467,14 +73556,14 @@ func memdbTruncate(tls *libc.TLS, pFile uintptr, size Sqlite_int64) int32 { /* t } // Sync an memdb-file. -func memdbSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49429:12: */ +func memdbSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50068:12: */ _ = pFile _ = flags return SQLITE_OK } // Return the current file-size of an memdb-file. -func memdbFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49438:12: */ +func memdbFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50077:12: */ var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore memdbEnter(tls, p) *(*Sqlite_int64)(unsafe.Pointer(pSize)) = (*MemStore)(unsafe.Pointer(p)).Fsz @@ -73483,7 +73572,7 @@ func memdbFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* testd } // Lock an memdb-file. -func memdbLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49449:12: */ +func memdbLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50088:12: */ var pThis uintptr = pFile var p uintptr = (*MemFile)(unsafe.Pointer(pThis)).FpStore var rc int32 = SQLITE_OK @@ -73527,7 +73616,7 @@ func memdbLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata/sq } // File control method. For custom operations on an memdb-file. -func memdbFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49503:12: */ +func memdbFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50142:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -73535,7 +73624,7 @@ func memdbFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int3 var rc int32 = SQLITE_NOTFOUND memdbEnter(tls, p) if op == SQLITE_FCNTL_VFSNAME { - *(*uintptr)(unsafe.Pointer(pArg)) = Xsqlite3_mprintf(tls, ts+5144, libc.VaList(bp, (*MemStore)(unsafe.Pointer(p)).FaData, (*MemStore)(unsafe.Pointer(p)).Fsz)) + *(*uintptr)(unsafe.Pointer(pArg)) = Xsqlite3_mprintf(tls, ts+5179, libc.VaList(bp, (*MemStore)(unsafe.Pointer(p)).FaData, (*MemStore)(unsafe.Pointer(p)).Fsz)) rc = SQLITE_OK } if op == SQLITE_FCNTL_SIZE_LIMIT { @@ -73556,13 +73645,13 @@ func memdbFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int3 } // Return the device characteristic flags supported by an memdb-file. -func memdbDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49540:12: */ +func memdbDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50179:12: */ _ = pFile return SQLITE_IOCAP_ATOMIC | SQLITE_IOCAP_POWERSAFE_OVERWRITE | SQLITE_IOCAP_SAFE_APPEND | SQLITE_IOCAP_SEQUENTIAL } // Fetch a page of a memory-mapped file -func memdbFetch(tls *libc.TLS, pFile uintptr, iOfst Sqlite3_int64, iAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49549:12: */ +func memdbFetch(tls *libc.TLS, pFile uintptr, iOfst Sqlite3_int64, iAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50188:12: */ var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore memdbEnter(tls, p) if iOfst+Sqlite3_int64(iAmt) > (*MemStore)(unsafe.Pointer(p)).Fsz || (*MemStore)(unsafe.Pointer(p)).FmFlags&uint32(SQLITE_DESERIALIZE_RESIZEABLE) != uint32(0) { @@ -73576,7 +73665,7 @@ func memdbFetch(tls *libc.TLS, pFile uintptr, iOfst Sqlite3_int64, iAmt int32, p } // Release a memory-mapped page -func memdbUnfetch(tls *libc.TLS, pFile uintptr, iOfst Sqlite3_int64, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49568:12: */ +func memdbUnfetch(tls *libc.TLS, pFile uintptr, iOfst Sqlite3_int64, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50207:12: */ var p uintptr = (*MemFile)(unsafe.Pointer(pFile)).FpStore _ = iOfst _ = pPage @@ -73587,7 +73676,7 @@ func memdbUnfetch(tls *libc.TLS, pFile uintptr, iOfst Sqlite3_int64, pPage uintp } // Open an mem file handle. -func memdbOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFd uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49581:12: */ +func memdbOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFd uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50220:12: */ var pFile uintptr = pFd var p uintptr = uintptr(0) var szName int32 @@ -73662,7 +73751,7 @@ func memdbOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFd uintptr, flags in // is available, or false otherwise. // // With memdb, no files ever exist on disk. So always return false. -func memdbAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49678:12: */ +func memdbAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50317:12: */ _ = pVfs _ = zPath _ = flags @@ -73673,17 +73762,17 @@ func memdbAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOu // Populate buffer zOut with the full canonical pathname corresponding // to the pathname in zPath. zOut is guaranteed to point to a buffer // of at least (INST_MAX_PATHNAME+1) bytes. -func memdbFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49696:12: */ +func memdbFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50335:12: */ bp := tls.Alloc(8) defer tls.Free(8) _ = pVfs - Xsqlite3_snprintf(tls, nOut, zOut, ts+4444, libc.VaList(bp, zPath)) + Xsqlite3_snprintf(tls, nOut, zOut, ts+4479, libc.VaList(bp, zPath)) return SQLITE_OK } // Open the dynamic library located at zPath and return a handle. -func memdbDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49710:13: */ +func memdbDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50349:13: */ return (*struct { f func(*libc.TLS, uintptr, uintptr) uintptr })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FxDlOpen})).f(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData, zPath) @@ -73692,21 +73781,21 @@ func memdbDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* testda // Populate the buffer zErrMsg (size nByte bytes) with a human readable // utf-8 string describing the most recent error encountered associated // with dynamic libraries. -func memdbDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49719:13: */ +func memdbDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50358:13: */ (*struct { f func(*libc.TLS, uintptr, int32, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FxDlError})).f(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData, nByte, zErrMsg) } // Return a pointer to the symbol zSymbol in the dynamic library pHandle. -func memdbDlSym(tls *libc.TLS, pVfs uintptr, p uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49726:13: */ +func memdbDlSym(tls *libc.TLS, pVfs uintptr, p uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50365:13: */ return (*struct { f func(*libc.TLS, uintptr, uintptr, uintptr) uintptr })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FxDlSym})).f(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData, p, zSym) } // Close the dynamic library handle pHandle. -func memdbDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49733:13: */ +func memdbDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50372:13: */ (*struct { f func(*libc.TLS, uintptr, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FxDlClose})).f(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData, pHandle) @@ -73714,7 +73803,7 @@ func memdbDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sq // Populate the buffer pointed to by zBufOut with nByte bytes of // random data. -func memdbRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49741:12: */ +func memdbRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50380:12: */ return (*struct { f func(*libc.TLS, uintptr, int32, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FxRandomness})).f(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData, nByte, zBufOut) @@ -73722,19 +73811,19 @@ func memdbRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) // Sleep for nMicro microseconds. Return the number of microseconds // actually slept. -func memdbSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49749:12: */ +func memdbSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50388:12: */ return (*struct { f func(*libc.TLS, uintptr, int32) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FxSleep})).f(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData, nMicro) } -func memdbGetLastError(tls *libc.TLS, pVfs uintptr, a int32, b uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49762:12: */ +func memdbGetLastError(tls *libc.TLS, pVfs uintptr, a int32, b uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50401:12: */ return (*struct { f func(*libc.TLS, uintptr, int32, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FxGetLastError})).f(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData, a, b) } -func memdbCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49765:12: */ +func memdbCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50404:12: */ return (*struct { f func(*libc.TLS, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_vfs)(unsafe.Pointer((*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FxCurrentTimeInt64})).f(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData, p) @@ -73742,7 +73831,7 @@ func memdbCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, p uintptr) int32 { /* te // Translate a database connection pointer and schema name into a // MemFile pointer. -func memdbFromDbSchema(tls *libc.TLS, db uintptr, zSchema uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49773:16: */ +func memdbFromDbSchema(tls *libc.TLS, db uintptr, zSchema uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50412:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -73765,7 +73854,7 @@ func memdbFromDbSchema(tls *libc.TLS, db uintptr, zSchema uintptr) uintptr { /* } // Return the serialization of a database -func Xsqlite3_serialize(tls *libc.TLS, db uintptr, zSchema uintptr, piSize uintptr, mFlags uint32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49789:26: */ +func Xsqlite3_serialize(tls *libc.TLS, db uintptr, zSchema uintptr, piSize uintptr, mFlags uint32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50428:26: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -73811,7 +73900,7 @@ func Xsqlite3_serialize(tls *libc.TLS, db uintptr, zSchema uintptr, piSize uintp return uintptr(0) } szPage = Xsqlite3BtreeGetPageSize(tls, pBt) - zSql = Xsqlite3_mprintf(tls, ts+5159, libc.VaList(bp, zSchema)) + zSql = Xsqlite3_mprintf(tls, ts+5194, libc.VaList(bp, zSchema)) if zSql != 0 { rc = Xsqlite3_prepare_v2(tls, db, zSql, -1, bp+8, uintptr(0)) } else { @@ -73856,7 +73945,7 @@ func Xsqlite3_serialize(tls *libc.TLS, db uintptr, zSchema uintptr, piSize uintp } // Convert zSchema to a MemDB and initialize its content. -func Xsqlite3_deserialize(tls *libc.TLS, db uintptr, zSchema uintptr, pData uintptr, szDb Sqlite3_int64, szBuf Sqlite3_int64, mFlags uint32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49870:16: */ +func Xsqlite3_deserialize(tls *libc.TLS, db uintptr, zSchema uintptr, pData uintptr, szDb Sqlite3_int64, szBuf Sqlite3_int64, mFlags uint32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50509:16: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -73885,7 +73974,7 @@ __1: goto end_deserialize __2: ; - zSql = Xsqlite3_mprintf(tls, ts+5182, libc.VaList(bp, zSchema)) + zSql = Xsqlite3_mprintf(tls, ts+5217, libc.VaList(bp, zSchema)) if !(zSql == uintptr(0)) { goto __3 } @@ -73951,7 +74040,7 @@ __10: // This routine is called when the extension is loaded. // Register the new VFS. -func Xsqlite3MemdbInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:49946:20: */ +func Xsqlite3MemdbInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50585:20: */ var pLower uintptr = Xsqlite3_vfs_find(tls, uintptr(0)) var sz uint32 if pLower == uintptr(0) { @@ -73973,7 +74062,7 @@ func Xsqlite3MemdbInit(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-33 // Create a new bitmap object able to handle bits between 0 and iSize, // inclusive. Return a pointer to the new object. Return NULL if // malloc fails. -func Xsqlite3BitvecCreate(tls *libc.TLS, iSize U32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50078:23: */ +func Xsqlite3BitvecCreate(tls *libc.TLS, iSize U32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50717:23: */ var p uintptr p = Xsqlite3MallocZero(tls, uint64(unsafe.Sizeof(Bitvec{}))) @@ -73986,7 +74075,7 @@ func Xsqlite3BitvecCreate(tls *libc.TLS, iSize U32) uintptr { /* testdata/sqlite // Check to see if the i-th bit is set. Return true or false. // If p is NULL (if the bitmap has not been created) or if // i is out of range, then return false. -func Xsqlite3BitvecTestNotNull(tls *libc.TLS, p uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50093:20: */ +func Xsqlite3BitvecTestNotNull(tls *libc.TLS, p uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50732:20: */ i-- if i >= (*Bitvec)(unsafe.Pointer(p)).FiSize { @@ -74015,7 +74104,7 @@ func Xsqlite3BitvecTestNotNull(tls *libc.TLS, p uintptr, i U32) int32 { /* testd return int32(0) } -func Xsqlite3BitvecTest(tls *libc.TLS, p uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50116:20: */ +func Xsqlite3BitvecTest(tls *libc.TLS, p uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50755:20: */ return libc.Bool32(p != uintptr(0) && Xsqlite3BitvecTestNotNull(tls, p, i) != 0) } @@ -74029,7 +74118,7 @@ func Xsqlite3BitvecTest(tls *libc.TLS, p uintptr, i U32) int32 { /* testdata/sql // The calling function must ensure that p is a valid Bitvec object // and that the value for "i" is within range of the Bitvec object. // Otherwise the behavior is undefined. -func Xsqlite3BitvecSet(tls *libc.TLS, p uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50132:20: */ +func Xsqlite3BitvecSet(tls *libc.TLS, p uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50771:20: */ var h U32 var bin U32 var j uint32 @@ -74166,7 +74255,7 @@ bitvec_set_end: // // pBuf must be a pointer to at least BITVEC_SZ bytes of temporary storage // that BitvecClear can use to rebuilt its hash table. -func Xsqlite3BitvecClear(tls *libc.TLS, p uintptr, i U32, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50203:21: */ +func Xsqlite3BitvecClear(tls *libc.TLS, p uintptr, i U32, pBuf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50842:21: */ if p == uintptr(0) { return } @@ -74205,7 +74294,7 @@ func Xsqlite3BitvecClear(tls *libc.TLS, p uintptr, i U32, pBuf uintptr) { /* tes } // Destroy a bitmap object. Reclaim all memory used. -func Xsqlite3BitvecDestroy(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50240:21: */ +func Xsqlite3BitvecDestroy(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50879:21: */ if p == uintptr(0) { return } @@ -74220,7 +74309,7 @@ func Xsqlite3BitvecDestroy(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalga // Return the value of the iSize parameter specified when Bitvec *p // was created. -func Xsqlite3BitvecSize(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50255:20: */ +func Xsqlite3BitvecSize(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50894:20: */ return (*Bitvec)(unsafe.Pointer(p)).FiSize } @@ -74239,12 +74328,12 @@ func Xsqlite3BitvecSize(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalg // There are 6 opcodes numbered from 0 through 5. 0 is the // "halt" opcode and causes the test to end. // -// 0 Halt and return the number of errors -// 1 N S X Set N bits beginning with S and incrementing by X -// 2 N S X Clear N bits beginning with S and incrementing by X -// 3 N Set N randomly chosen bits -// 4 N Clear N randomly chosen bits -// 5 N S X Set N bits from S increment X in array only, not in bitvec +// 0 Halt and return the number of errors +// 1 N S X Set N bits beginning with S and incrementing by X +// 2 N S X Clear N bits beginning with S and incrementing by X +// 3 N Set N randomly chosen bits +// 4 N Clear N randomly chosen bits +// 5 N S X Set N bits from S increment X in array only, not in bitvec // // The opcodes 1 through 4 perform set and clear operations are performed // on both a Bitvec object and on a linear array of bits obtained from malloc. @@ -74257,7 +74346,7 @@ func Xsqlite3BitvecSize(tls *libc.TLS, p uintptr) U32 { /* testdata/sqlite-amalg // an error is returned. If they are the same, zero is returned. // // If a memory allocation error occurs, return -1. -func Xsqlite3BitvecBuiltinTest(tls *libc.TLS, sz int32, aOp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50300:20: */ +func Xsqlite3BitvecBuiltinTest(tls *libc.TLS, sz int32, aOp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:50939:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -74420,7 +74509,7 @@ bitvec_end: // argument determines what operation to do. The 0x01 bit means first // remove pPage from the dirty list. The 0x02 means add pPage back to // the dirty list. Doing both moves pPage to the front of the dirty list. -func pcacheManageDirtyList(tls *libc.TLS, pPage uintptr, addRemove U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50535:13: */ +func pcacheManageDirtyList(tls *libc.TLS, pPage uintptr, addRemove U8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51174:13: */ var p uintptr = (*PgHdr)(unsafe.Pointer(pPage)).FpCache if int32(addRemove)&PCACHE_DIRTYLIST_REMOVE != 0 { @@ -74482,7 +74571,7 @@ func pcacheManageDirtyList(tls *libc.TLS, pPage uintptr, addRemove U8) { /* test // Wrapper around the pluggable caches xUnpin method. If the cache is // being used for an in-memory database, this function is a no-op. -func pcacheUnpin(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50605:13: */ +func pcacheUnpin(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51244:13: */ if (*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FbPurgeable != 0 { (*struct { @@ -74494,7 +74583,7 @@ func pcacheUnpin(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-338 // Compute the number of pages of cache requested. p->szCache is the // cache size requested by the "PRAGMA cache_size" statement. -func numberOfCachePages(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50617:12: */ +func numberOfCachePages(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51256:12: */ if (*PCache)(unsafe.Pointer(p)).FszCache >= 0 { // IMPLEMENTATION-OF: R-42059-47211 If the argument N is positive then the // suggested cache size is set to N. @@ -74516,10 +74605,9 @@ func numberOfCachePages(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-ama // ************************************************** General Interfaces ****** // -// // Initialize and shutdown the page cache subsystem. Neither of these // functions are threadsafe. -func Xsqlite3PcacheInitialize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50639:20: */ +func Xsqlite3PcacheInitialize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51278:20: */ if Xsqlite3Config.Fpcache2.FxInit == uintptr(0) { // IMPLEMENTATION-OF: R-26801-64137 If the xInit() method is NULL, then the // built-in default page cache is used instead of the application defined @@ -74532,7 +74620,7 @@ func Xsqlite3PcacheInitialize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgama })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fpcache2.FxInit})).f(tls, Xsqlite3Config.Fpcache2.FpArg) } -func Xsqlite3PcacheShutdown(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50649:21: */ +func Xsqlite3PcacheShutdown(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51288:21: */ if Xsqlite3Config.Fpcache2.FxShutdown != 0 { // IMPLEMENTATION-OF: R-26000-56589 The xShutdown() method may be NULL. (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fpcache2.FxShutdown})).f(tls, Xsqlite3Config.Fpcache2.FpArg) @@ -74540,7 +74628,7 @@ func Xsqlite3PcacheShutdown(tls *libc.TLS) { /* testdata/sqlite-amalgamation-338 } // Return the size in bytes of a PCache object. -func Xsqlite3PcacheSize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50659:20: */ +func Xsqlite3PcacheSize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51298:20: */ return int32(unsafe.Sizeof(PCache{})) } @@ -74554,7 +74642,7 @@ func Xsqlite3PcacheSize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3 // but remaining content will be uninitialized. Though it is opaque // to this module, the extra space really ends up being the MemPage // structure in the pager. -func Xsqlite3PcacheOpen(tls *libc.TLS, szPage int32, szExtra int32, bPurgeable int32, xStress uintptr, pStress uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50673:20: */ +func Xsqlite3PcacheOpen(tls *libc.TLS, szPage int32, szExtra int32, bPurgeable int32, xStress uintptr, pStress uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51312:20: */ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(PCache{}))) (*PCache)(unsafe.Pointer(p)).FszPage = 1 (*PCache)(unsafe.Pointer(p)).FszExtra = szExtra @@ -74571,7 +74659,7 @@ func Xsqlite3PcacheOpen(tls *libc.TLS, szPage int32, szExtra int32, bPurgeable i // Change the page size for PCache object. The caller must ensure that there // are no outstanding page references when this function is called. -func Xsqlite3PcacheSetPageSize(tls *libc.TLS, pCache uintptr, szPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50699:20: */ +func Xsqlite3PcacheSetPageSize(tls *libc.TLS, pCache uintptr, szPage int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51338:20: */ if (*PCache)(unsafe.Pointer(pCache)).FszPage != 0 { var pNew uintptr @@ -74618,7 +74706,7 @@ func Xsqlite3PcacheSetPageSize(tls *libc.TLS, pCache uintptr, szPage int32) int3 // they can both (usually) operate without having to push values to // the stack on entry and pop them back off on exit, which saves a // lot of pushing and popping. -func Xsqlite3PcacheFetch(tls *libc.TLS, pCache uintptr, pgno Pgno, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50743:36: */ +func Xsqlite3PcacheFetch(tls *libc.TLS, pCache uintptr, pgno Pgno, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51382:36: */ var eCreate int32 var pRes uintptr @@ -74646,7 +74734,7 @@ func Xsqlite3PcacheFetch(tls *libc.TLS, pCache uintptr, pgno Pgno, createFlag in // an OOM error. // // This routine should be invoked only after sqlite3PcacheFetch() fails. -func Xsqlite3PcacheFetchStress(tls *libc.TLS, pCache uintptr, pgno Pgno, ppPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50784:20: */ +func Xsqlite3PcacheFetchStress(tls *libc.TLS, pCache uintptr, pgno Pgno, ppPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51423:20: */ var pPg uintptr if int32((*PCache)(unsafe.Pointer(pCache)).FeCreate) == 2 { return 0 @@ -74697,7 +74785,7 @@ func Xsqlite3PcacheFetchStress(tls *libc.TLS, pCache uintptr, pgno Pgno, ppPage // This routine is broken out into a separate function since it // requires extra stack manipulation that can be avoided in the common // case. -func pcacheFetchFinishWithInit(tls *libc.TLS, pCache uintptr, pgno Pgno, pPage uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50840:30: */ +func pcacheFetchFinishWithInit(tls *libc.TLS, pCache uintptr, pgno Pgno, pPage uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51479:30: */ var pPgHdr uintptr pPgHdr = (*Sqlite3_pcache_page)(unsafe.Pointer(pPage)).FpExtra @@ -74717,7 +74805,7 @@ func pcacheFetchFinishWithInit(tls *libc.TLS, pCache uintptr, pgno Pgno, pPage u // sqlite3PcacheFetch() into an initialized PgHdr object. This routine // must be called after sqlite3PcacheFetch() in order to get a usable // result. -func Xsqlite3PcacheFetchFinish(tls *libc.TLS, pCache uintptr, pgno Pgno, pPage uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50866:22: */ +func Xsqlite3PcacheFetchFinish(tls *libc.TLS, pCache uintptr, pgno Pgno, pPage uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51505:22: */ var pPgHdr uintptr pPgHdr = (*Sqlite3_pcache_page)(unsafe.Pointer(pPage)).FpExtra @@ -74733,7 +74821,7 @@ func Xsqlite3PcacheFetchFinish(tls *libc.TLS, pCache uintptr, pgno Pgno, pPage u // Decrement the reference count on a page. If the page is clean and the // reference count drops to 0, then it is made eligible for recycling. -func Xsqlite3PcacheRelease(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50889:37: */ +func Xsqlite3PcacheRelease(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51528:37: */ (*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FnRefSum-- if int32(libc.PreDecInt16(&(*PgHdr)(unsafe.Pointer(p)).FnRef, 1)) == 0 { @@ -74746,7 +74834,7 @@ func Xsqlite3PcacheRelease(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalga } // Increase the reference count of a supplied page by 1. -func Xsqlite3PcacheRef(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50904:21: */ +func Xsqlite3PcacheRef(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51543:21: */ (*PgHdr)(unsafe.Pointer(p)).FnRef++ (*PCache)(unsafe.Pointer((*PgHdr)(unsafe.Pointer(p)).FpCache)).FnRefSum++ @@ -74755,7 +74843,7 @@ func Xsqlite3PcacheRef(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamati // Drop a page from the cache. There must be exactly one reference to the // page. This function deletes that reference, so after it returns the // page pointed to by p is invalid. -func Xsqlite3PcacheDrop(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50916:21: */ +func Xsqlite3PcacheDrop(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51555:21: */ if int32((*PgHdr)(unsafe.Pointer(p)).Fflags)&PGHDR_DIRTY != 0 { pcacheManageDirtyList(tls, p, uint8(PCACHE_DIRTYLIST_REMOVE)) @@ -74768,7 +74856,7 @@ func Xsqlite3PcacheDrop(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamat // Make sure the page is marked as dirty. If it isn't dirty already, // make it so. -func Xsqlite3PcacheMakeDirty(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50930:21: */ +func Xsqlite3PcacheMakeDirty(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51569:21: */ if int32((*PgHdr)(unsafe.Pointer(p)).Fflags)&(PGHDR_CLEAN|PGHDR_DONT_WRITE) != 0 { //OPTIMIZATION-IF-FALSE *(*U16)(unsafe.Pointer(p + 52)) &= libc.Uint16FromInt32(libc.CplInt32(PGHDR_DONT_WRITE)) @@ -74783,7 +74871,7 @@ func Xsqlite3PcacheMakeDirty(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amal // Make sure the page is marked as clean. If it isn't clean already, // make it so. -func Xsqlite3PcacheMakeClean(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50950:21: */ +func Xsqlite3PcacheMakeClean(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51588:21: */ pcacheManageDirtyList(tls, p, uint8(PCACHE_DIRTYLIST_REMOVE)) *(*U16)(unsafe.Pointer(p + 52)) &= libc.Uint16FromInt32(libc.CplInt32(PGHDR_DIRTY | PGHDR_NEED_SYNC | PGHDR_WRITEABLE)) @@ -74795,7 +74883,7 @@ func Xsqlite3PcacheMakeClean(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amal } // Make every page in the cache clean. -func Xsqlite3PcacheCleanAll(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50967:21: */ +func Xsqlite3PcacheCleanAll(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51605:21: */ var p uintptr for libc.AssignUintptr(&p, (*PCache)(unsafe.Pointer(pCache)).FpDirty) != uintptr(0) { @@ -74804,7 +74892,7 @@ func Xsqlite3PcacheCleanAll(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite- } // Clear the PGHDR_NEED_SYNC and PGHDR_WRITEABLE flag from all dirty pages. -func Xsqlite3PcacheClearWritable(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50978:21: */ +func Xsqlite3PcacheClearWritable(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51616:21: */ var p uintptr for p = (*PCache)(unsafe.Pointer(pCache)).FpDirty; p != 0; p = (*PgHdr)(unsafe.Pointer(p)).FpDirtyNext { @@ -74814,7 +74902,7 @@ func Xsqlite3PcacheClearWritable(tls *libc.TLS, pCache uintptr) { /* testdata/sq } // Clear the PGHDR_NEED_SYNC flag from all dirty pages. -func Xsqlite3PcacheClearSyncFlags(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:50990:21: */ +func Xsqlite3PcacheClearSyncFlags(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51628:21: */ var p uintptr for p = (*PCache)(unsafe.Pointer(pCache)).FpDirty; p != 0; p = (*PgHdr)(unsafe.Pointer(p)).FpDirtyNext { *(*U16)(unsafe.Pointer(p + 52)) &= libc.Uint16FromInt32(libc.CplInt32(PGHDR_NEED_SYNC)) @@ -74823,7 +74911,7 @@ func Xsqlite3PcacheClearSyncFlags(tls *libc.TLS, pCache uintptr) { /* testdata/s } // Change the page number of page p to newPgno. -func Xsqlite3PcacheMove(tls *libc.TLS, p uintptr, newPgno Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51001:21: */ +func Xsqlite3PcacheMove(tls *libc.TLS, p uintptr, newPgno Pgno) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51639:21: */ var pCache uintptr = (*PgHdr)(unsafe.Pointer(p)).FpCache (*struct { @@ -74842,7 +74930,7 @@ func Xsqlite3PcacheMove(tls *libc.TLS, p uintptr, newPgno Pgno) { /* testdata/sq // If there is a reference to page 1 and the pgno parameter passed to this // function is 0, then the data area associated with page 1 is zeroed, but // the page object is not dropped. -func Xsqlite3PcacheTruncate(tls *libc.TLS, pCache uintptr, pgno Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51023:21: */ +func Xsqlite3PcacheTruncate(tls *libc.TLS, pCache uintptr, pgno Pgno) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51661:21: */ if (*PCache)(unsafe.Pointer(pCache)).FpCache != 0 { var p uintptr var pNext uintptr @@ -74876,19 +74964,19 @@ func Xsqlite3PcacheTruncate(tls *libc.TLS, pCache uintptr, pgno Pgno) { /* testd } // Close a cache. -func Xsqlite3PcacheClose(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51056:21: */ +func Xsqlite3PcacheClose(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51694:21: */ (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fpcache2.FxDestroy})).f(tls, (*PCache)(unsafe.Pointer(pCache)).FpCache) } // Discard the contents of the cache. -func Xsqlite3PcacheClear(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51065:21: */ +func Xsqlite3PcacheClear(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51703:21: */ Xsqlite3PcacheTruncate(tls, pCache, uint32(0)) } // Merge two lists of pages connected by pDirty and in pgno order. // Do not bother fixing the pDirtyPrev pointers. -func pcacheMergeDirtyList(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51073:14: */ +func pcacheMergeDirtyList(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51711:14: */ bp := tls.Alloc(72) defer tls.Free(72) @@ -74927,7 +75015,7 @@ func pcacheMergeDirtyList(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* te // there cannot be more than 31 buckets required by the merge sorter. // One extra bucket is added to catch overflow in case something // ever changes to make the previous sentence incorrect. -func pcacheSortDirtyList(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51110:14: */ +func pcacheSortDirtyList(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51748:14: */ bp := tls.Alloc(256) defer tls.Free(256) @@ -74970,7 +75058,7 @@ func pcacheSortDirtyList(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlit } // Return a list of all dirty pages in the cache, sorted by page number. -func Xsqlite3PcacheDirtyList(tls *libc.TLS, pCache uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51145:22: */ +func Xsqlite3PcacheDirtyList(tls *libc.TLS, pCache uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51783:22: */ var p uintptr for p = (*PCache)(unsafe.Pointer(pCache)).FpDirty; p != 0; p = (*PgHdr)(unsafe.Pointer(p)).FpDirtyNext { (*PgHdr)(unsafe.Pointer(p)).FpDirty = (*PgHdr)(unsafe.Pointer(p)).FpDirtyNext @@ -74982,17 +75070,17 @@ func Xsqlite3PcacheDirtyList(tls *libc.TLS, pCache uintptr) uintptr { /* testdat // // This is not the total number of pages referenced, but the sum of the // reference count for all pages. -func Xsqlite3PcacheRefCount(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51159:20: */ +func Xsqlite3PcacheRefCount(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51797:20: */ return (*PCache)(unsafe.Pointer(pCache)).FnRefSum } // Return the number of references to the page supplied as an argument. -func Xsqlite3PcachePageRefcount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51166:20: */ +func Xsqlite3PcachePageRefcount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51804:20: */ return int32((*PgHdr)(unsafe.Pointer(p)).FnRef) } // Return the total number of pages in the cache. -func Xsqlite3PcachePagecount(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51173:20: */ +func Xsqlite3PcachePagecount(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51811:20: */ return (*struct { f func(*libc.TLS, uintptr) int32 @@ -75000,7 +75088,7 @@ func Xsqlite3PcachePagecount(tls *libc.TLS, pCache uintptr) int32 { /* testdata/ } // Set the suggested cache-size value. -func Xsqlite3PcacheSetCachesize(tls *libc.TLS, pCache uintptr, mxPage int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51190:21: */ +func Xsqlite3PcacheSetCachesize(tls *libc.TLS, pCache uintptr, mxPage int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51828:21: */ (*PCache)(unsafe.Pointer(pCache)).FszCache = mxPage (*struct { @@ -75012,7 +75100,7 @@ func Xsqlite3PcacheSetCachesize(tls *libc.TLS, pCache uintptr, mxPage int32) { / // Set the suggested cache-spill value. Make no changes if if the // argument is zero. Return the effective cache-spill size, which will // be the larger of the szSpill and szCache. -func Xsqlite3PcacheSetSpillsize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51202:20: */ +func Xsqlite3PcacheSetSpillsize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51840:20: */ var res int32 if mxPage != 0 { @@ -75029,20 +75117,20 @@ func Xsqlite3PcacheSetSpillsize(tls *libc.TLS, p uintptr, mxPage int32) int32 { } // Free up as much memory as possible from the page cache. -func Xsqlite3PcacheShrink(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51219:21: */ +func Xsqlite3PcacheShrink(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51857:21: */ (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{Xsqlite3Config.Fpcache2.FxShrink})).f(tls, (*PCache)(unsafe.Pointer(pCache)).FpCache) } // Return the size of the header added by this middleware layer // in the page-cache hierarchy. -func Xsqlite3HeaderSizePcache(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51228:20: */ +func Xsqlite3HeaderSizePcache(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51866:20: */ return int32((uint64(unsafe.Sizeof(PgHdr{})) + uint64(7)) & libc.Uint64FromInt32(libc.CplInt32(7))) } // Return the number of dirty pages currently in the cache, as a percentage // of the configured cache size. -func Xsqlite3PCachePercentDirty(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51234:20: */ +func Xsqlite3PCachePercentDirty(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51872:20: */ var pDirty uintptr var nDirty int32 = 0 var nCache int32 = numberOfCachePages(tls, pCache) @@ -75157,7 +75245,7 @@ type PCache11 = struct { FapHash uintptr FpFree uintptr FpBulk uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51351:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51989:9 */ //************* End of pcache.c ********************************************* //************* Begin file pcache1.c **************************************** @@ -75243,7 +75331,7 @@ type PCache11 = struct { // common workloads. // #include "sqliteInt.h" -type PCache1 = PCache11 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51351:24 */ +type PCache1 = PCache11 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51989:24 */ type PgHdr11 = struct { Fpage Sqlite3_pcache_page FiKey uint32 @@ -75253,12 +75341,12 @@ type PgHdr11 = struct { FpCache uintptr FpLruNext uintptr FpLruPrev uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51351:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51989:9 */ -type PgHdr1 = PgHdr11 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51352:23 */ -type PgFreeslot1 = struct{ FpNext uintptr } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51353:9 */ +type PgHdr1 = PgHdr11 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51990:23 */ +type PgFreeslot1 = struct{ FpNext uintptr } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51991:9 */ -type PgFreeslot = PgFreeslot1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51353:27 */ +type PgFreeslot = PgFreeslot1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51991:27 */ type PGroup1 = struct { Fmutex uintptr FnMaxPage uint32 @@ -75266,9 +75354,9 @@ type PGroup1 = struct { FmxPinned uint32 FnPurgeable uint32 Flru PgHdr1 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51351:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51989:9 */ -type PGroup = PGroup1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51354:23 */ +type PGroup = PGroup1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:51992:23 */ // Global data used by this cache. type PCacheGlobal = struct { @@ -75285,10 +75373,10 @@ type PCacheGlobal = struct { FpFree uintptr FnFreeSlot int32 FbUnderPressure int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51471:19 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52109:19 */ // Global data used by this cache. -var pcache1_g PCacheGlobal /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51495:3: */ +var pcache1_g PCacheGlobal /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52133:3: */ // All code in this file should access the global structure above via the // alias "pcache1". This ensures that the WSD emulation is used when @@ -75306,7 +75394,7 @@ var pcache1_g PCacheGlobal /* testdata/sqlite-amalgamation-3380500/sqlite3.c:514 // // This routine is called from sqlite3_initialize() and so it is guaranteed // to be serialized already. There is no need for further mutexing. -func Xsqlite3PCacheBufferSetup(tls *libc.TLS, pBuf uintptr, sz int32, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51530:21: */ +func Xsqlite3PCacheBufferSetup(tls *libc.TLS, pBuf uintptr, sz int32, n int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52168:21: */ if pcache1_g.FisInit != 0 { var p uintptr if pBuf == uintptr(0) { @@ -75339,7 +75427,7 @@ func Xsqlite3PCacheBufferSetup(tls *libc.TLS, pBuf uintptr, sz int32, n int32) { // Try to initialize the pCache->pFree and pCache->pBulk fields. Return // true if pCache->pFree ends up containing one or more free pages. -func pcache1InitBulk(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51556:12: */ +func pcache1InitBulk(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52194:12: */ var szBulk I64 var zBulk uintptr if pcache1_g.FnInitPage == 0 { @@ -75384,7 +75472,7 @@ func pcache1InitBulk(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-a // // Multiple threads can run this routine at the same time. Global variables // in pcache1 need to be protected via mutex. -func pcache1Alloc(tls *libc.TLS, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51599:13: */ +func pcache1Alloc(tls *libc.TLS, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52237:13: */ var p uintptr = uintptr(0) if nByte <= pcache1_g.FszSlot { @@ -75417,7 +75505,7 @@ func pcache1Alloc(tls *libc.TLS, nByte int32) uintptr { /* testdata/sqlite-amalg } // Free an allocated buffer obtained from pcache1Alloc(). -func pcache1Free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51637:13: */ +func pcache1Free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52275:13: */ if p == uintptr(0) { return } @@ -75447,7 +75535,7 @@ func pcache1Free(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-338 } // Return the size of a pcache allocation -func pcache1MemSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51670:12: */ +func pcache1MemSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52308:12: */ if p >= pcache1_g.FpStart && p < pcache1_g.FpEnd { return pcache1_g.FszSlot } else { @@ -75461,7 +75549,7 @@ func pcache1MemSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgam } // Allocate a new page object initially associated with cache pCache. -func pcache1AllocPage(tls *libc.TLS, pCache uintptr, benignMalloc int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51687:15: */ +func pcache1AllocPage(tls *libc.TLS, pCache uintptr, benignMalloc int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52325:15: */ var p uintptr = uintptr(0) var pPg uintptr @@ -75499,7 +75587,7 @@ func pcache1AllocPage(tls *libc.TLS, pCache uintptr, benignMalloc int32) uintptr } // Free a page object allocated by pcache1AllocPage(). -func pcache1FreePage(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51739:13: */ +func pcache1FreePage(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52377:13: */ var pCache uintptr pCache = (*PgHdr1)(unsafe.Pointer(p)).FpCache @@ -75516,13 +75604,13 @@ func pcache1FreePage(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation // Malloc function used by SQLite to obtain space from the buffer configured // using sqlite3_config(SQLITE_CONFIG_PAGECACHE) option. If no such buffer // exists, this function falls back to sqlite3Malloc(). -func Xsqlite3PageMalloc(tls *libc.TLS, sz int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51761:21: */ +func Xsqlite3PageMalloc(tls *libc.TLS, sz int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52399:21: */ // These allocations are never very large return pcache1Alloc(tls, sz) } // Free an allocated buffer obtained from sqlite3PageMalloc(). -func Xsqlite3PageFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51769:21: */ +func Xsqlite3PageFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52407:21: */ pcache1Free(tls, p) } @@ -75540,7 +75628,7 @@ func Xsqlite3PageFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamatio // under memory pressure, then again it is desirable to avoid // allocating a new page cache entry in order to avoid stressing // the heap even further. -func pcache1UnderMemoryPressure(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51790:12: */ +func pcache1UnderMemoryPressure(tls *libc.TLS, pCache uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52428:12: */ if pcache1_g.FnSlot != 0 && (*PCache1)(unsafe.Pointer(pCache)).FszPage+(*PCache1)(unsafe.Pointer(pCache)).FszExtra <= pcache1_g.FszSlot { return pcache1_g.FbUnderPressure } else { @@ -75556,7 +75644,7 @@ func pcache1UnderMemoryPressure(tls *libc.TLS, pCache uintptr) int32 { /* testda // as the first argument. // // The PCache mutex must be held when this function is called. -func pcache1ResizeHash(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51807:13: */ +func pcache1ResizeHash(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52445:13: */ var apNew uintptr var nNew uint32 var i uint32 @@ -75597,7 +75685,7 @@ func pcache1ResizeHash(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamati // LRU list, then this function is a no-op. // // The PGroup mutex must be held when this function is called. -func pcache1PinPage(tls *libc.TLS, pPage uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51848:15: */ +func pcache1PinPage(tls *libc.TLS, pPage uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52486:15: */ (*PgHdr1)(unsafe.Pointer((*PgHdr1)(unsafe.Pointer(pPage)).FpLruPrev)).FpLruNext = (*PgHdr1)(unsafe.Pointer(pPage)).FpLruNext (*PgHdr1)(unsafe.Pointer((*PgHdr1)(unsafe.Pointer(pPage)).FpLruNext)).FpLruPrev = (*PgHdr1)(unsafe.Pointer(pPage)).FpLruPrev @@ -75614,7 +75702,7 @@ func pcache1PinPage(tls *libc.TLS, pPage uintptr) uintptr { /* testdata/sqlite-a // Also free the page if freePage is true. // // The PGroup mutex must be held when this function is called. -func pcache1RemoveFromHash(tls *libc.TLS, pPage uintptr, freeFlag int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51873:13: */ +func pcache1RemoveFromHash(tls *libc.TLS, pPage uintptr, freeFlag int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52511:13: */ var h uint32 var pCache uintptr = (*PgHdr1)(unsafe.Pointer(pPage)).FpCache var pp uintptr @@ -75632,7 +75720,7 @@ func pcache1RemoveFromHash(tls *libc.TLS, pPage uintptr, freeFlag int32) { /* te // If there are currently more than nMaxPage pages allocated, try // to recycle pages to reduce the number allocated to nMaxPage. -func pcache1EnforceMaxPage(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51891:13: */ +func pcache1EnforceMaxPage(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52529:13: */ var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup var p uintptr @@ -75653,7 +75741,7 @@ func pcache1EnforceMaxPage(tls *libc.TLS, pCache uintptr) { /* testdata/sqlite-a // criteria are unpinned before they are discarded. // // The PCache mutex must be held when this function is called. -func pcache1TruncateUnsafe(tls *libc.TLS, pCache uintptr, iLimit uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51916:13: */ +func pcache1TruncateUnsafe(tls *libc.TLS, pCache uintptr, iLimit uint32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52554:13: */ var h uint32 var iStop uint32 @@ -75701,7 +75789,7 @@ func pcache1TruncateUnsafe(tls *libc.TLS, pCache uintptr, iLimit uint32) { /* te //******* sqlite3_pcache Methods ********************************************* // Implementation of the sqlite3_pcache.xInit method. -func pcache1Init(tls *libc.TLS, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:51967:12: */ +func pcache1Init(tls *libc.TLS, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52605:12: */ _ = NotUsed libc.Xmemset(tls, uintptr(unsafe.Pointer(&pcache1_g)), 0, uint64(unsafe.Sizeof(pcache1_g))) @@ -75739,7 +75827,7 @@ func pcache1Init(tls *libc.TLS, NotUsed uintptr) int32 { /* testdata/sqlite-amal // Implementation of the sqlite3_pcache.xShutdown method. // Note that the static mutex allocated in xInit does // not need to be freed. -func pcache1Shutdown(tls *libc.TLS, NotUsed uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52020:13: */ +func pcache1Shutdown(tls *libc.TLS, NotUsed uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52658:13: */ _ = NotUsed libc.Xmemset(tls, uintptr(unsafe.Pointer(&pcache1_g)), 0, uint64(unsafe.Sizeof(pcache1_g))) @@ -75748,7 +75836,7 @@ func pcache1Shutdown(tls *libc.TLS, NotUsed uintptr) { /* testdata/sqlite-amalga // Implementation of the sqlite3_pcache.xCreate method. // // Allocate a new cache. -func pcache1Create(tls *libc.TLS, szPage int32, szExtra int32, bPurgeable int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52034:23: */ +func pcache1Create(tls *libc.TLS, szPage int32, szExtra int32, bPurgeable int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52672:23: */ var pCache uintptr // The newly created page cache var pGroup uintptr // The group the new page cache will belong to var sz int32 // Bytes of memory required to allocate the new cache @@ -75798,7 +75886,7 @@ func pcache1Create(tls *libc.TLS, szPage int32, szExtra int32, bPurgeable int32) // Implementation of the sqlite3_pcache.xCachesize method. // // Configure the cache_size limit for a cache. -func pcache1Cachesize(tls *libc.TLS, p uintptr, nMax int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52084:13: */ +func pcache1Cachesize(tls *libc.TLS, p uintptr, nMax int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52722:13: */ var pCache uintptr = p var n U32 @@ -75821,7 +75909,7 @@ func pcache1Cachesize(tls *libc.TLS, p uintptr, nMax int32) { /* testdata/sqlite // Implementation of the sqlite3_pcache.xShrink method. // // Free up as much memory as possible. -func pcache1Shrink(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52109:13: */ +func pcache1Shrink(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52747:13: */ var pCache uintptr = p if (*PCache1)(unsafe.Pointer(pCache)).FbPurgeable != 0 { var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup @@ -75836,7 +75924,7 @@ func pcache1Shrink(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3 } // Implementation of the sqlite3_pcache.xPagecount method. -func pcache1Pagecount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52126:12: */ +func pcache1Pagecount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52764:12: */ var n int32 var pCache uintptr = p Xsqlite3_mutex_enter(tls, (*PGroup)(unsafe.Pointer((*PCache1)(unsafe.Pointer(pCache)).FpGroup)).Fmutex) @@ -75851,7 +75939,7 @@ func pcache1Pagecount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // This steps are broken out into a separate procedure because they are // usually not needed, and by avoiding the stack initialization required // for these steps, the main pcache1Fetch() procedure can run faster. -func pcache1FetchStage2(tls *libc.TLS, pCache uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52144:31: */ +func pcache1FetchStage2(tls *libc.TLS, pCache uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52782:31: */ var nPinned uint32 var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup var pPage uintptr = uintptr(0) @@ -75929,47 +76017,47 @@ func pcache1FetchStage2(tls *libc.TLS, pCache uintptr, iKey uint32, createFlag i // There are three different approaches to obtaining space for a page, // depending on the value of parameter createFlag (which may be 0, 1 or 2). // -// 1. Regardless of the value of createFlag, the cache is searched for a -// copy of the requested page. If one is found, it is returned. +// 1. Regardless of the value of createFlag, the cache is searched for a +// copy of the requested page. If one is found, it is returned. // -// 2. If createFlag==0 and the page is not already in the cache, NULL is -// returned. +// 2. If createFlag==0 and the page is not already in the cache, NULL is +// returned. // -// 3. If createFlag is 1, and the page is not already in the cache, then -// return NULL (do not allocate a new page) if any of the following -// conditions are true: +// 3. If createFlag is 1, and the page is not already in the cache, then +// return NULL (do not allocate a new page) if any of the following +// conditions are true: // -// (a) the number of pages pinned by the cache is greater than -// PCache1.nMax, or +// (a) the number of pages pinned by the cache is greater than +// PCache1.nMax, or // -// (b) the number of pages pinned by the cache is greater than -// the sum of nMax for all purgeable caches, less the sum of -// nMin for all other purgeable caches, or +// (b) the number of pages pinned by the cache is greater than +// the sum of nMax for all purgeable caches, less the sum of +// nMin for all other purgeable caches, or // -// 4. If none of the first three conditions apply and the cache is marked -// as purgeable, and if one of the following is true: +// 4. If none of the first three conditions apply and the cache is marked +// as purgeable, and if one of the following is true: // -// (a) The number of pages allocated for the cache is already -// PCache1.nMax, or +// (a) The number of pages allocated for the cache is already +// PCache1.nMax, or // -// (b) The number of pages allocated for all purgeable caches is -// already equal to or greater than the sum of nMax for all -// purgeable caches, +// (b) The number of pages allocated for all purgeable caches is +// already equal to or greater than the sum of nMax for all +// purgeable caches, // -// (c) The system is under memory pressure and wants to avoid -// unnecessary pages cache entry allocations +// (c) The system is under memory pressure and wants to avoid +// unnecessary pages cache entry allocations // -// then attempt to recycle a page from the LRU list. If it is the right -// size, return the recycled buffer. Otherwise, free the buffer and -// proceed to step 5. +// then attempt to recycle a page from the LRU list. If it is the right +// size, return the recycled buffer. Otherwise, free the buffer and +// proceed to step 5. // -// 5. Otherwise, allocate and return a new page buffer. +// 5. Otherwise, allocate and return a new page buffer. // // There are two versions of this routine. pcache1FetchWithMutex() is // the general case. pcache1FetchNoMutex() is a faster implementation for // the common case where pGroup->mutex is NULL. The pcache1Fetch() wrapper // invokes the appropriate routine. -func pcache1FetchNoMutex(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52272:15: */ +func pcache1FetchNoMutex(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52910:15: */ var pCache uintptr = p var pPage uintptr = uintptr(0) @@ -75998,7 +76086,7 @@ func pcache1FetchNoMutex(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32 return uintptr(0) } -func pcache1FetchWithMutex(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52302:15: */ +func pcache1FetchWithMutex(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52940:15: */ var pCache uintptr = p var pPage uintptr @@ -76009,7 +76097,7 @@ func pcache1FetchWithMutex(tls *libc.TLS, p uintptr, iKey uint32, createFlag int return pPage } -func pcache1Fetch(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52317:28: */ +func pcache1Fetch(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52955:28: */ var pCache uintptr = p if (*PGroup)(unsafe.Pointer((*PCache1)(unsafe.Pointer(pCache)).FpGroup)).Fmutex != 0 { @@ -76023,7 +76111,7 @@ func pcache1Fetch(tls *libc.TLS, p uintptr, iKey uint32, createFlag int32) uintp // Implementation of the sqlite3_pcache.xUnpin method. // // Mark a page as unpinned (eligible for asynchronous recycling). -func pcache1Unpin(tls *libc.TLS, p uintptr, pPg uintptr, reuseUnlikely int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52348:13: */ +func pcache1Unpin(tls *libc.TLS, p uintptr, pPg uintptr, reuseUnlikely int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:52986:13: */ var pCache uintptr = p var pPage uintptr = pPg var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup @@ -76048,7 +76136,7 @@ func pcache1Unpin(tls *libc.TLS, p uintptr, pPg uintptr, reuseUnlikely int32) { } // Implementation of the sqlite3_pcache.xRekey method. -func pcache1Rekey(tls *libc.TLS, p uintptr, pPg uintptr, iOld uint32, iNew uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52383:13: */ +func pcache1Rekey(tls *libc.TLS, p uintptr, pPg uintptr, iOld uint32, iNew uint32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53021:13: */ var pCache uintptr = p var pPage uintptr = pPg var pp uintptr @@ -76079,7 +76167,7 @@ func pcache1Rekey(tls *libc.TLS, p uintptr, pPg uintptr, iOld uint32, iNew uint3 // Discard all unpinned pages in the cache with a page number equal to // or greater than parameter iLimit. Any pinned pages with a page number // equal to or greater than iLimit are implicitly unpinned. -func pcache1Truncate(tls *libc.TLS, p uintptr, iLimit uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52423:13: */ +func pcache1Truncate(tls *libc.TLS, p uintptr, iLimit uint32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53061:13: */ var pCache uintptr = p Xsqlite3_mutex_enter(tls, (*PGroup)(unsafe.Pointer((*PCache1)(unsafe.Pointer(pCache)).FpGroup)).Fmutex) if iLimit <= (*PCache1)(unsafe.Pointer(pCache)).FiMaxKey { @@ -76092,7 +76180,7 @@ func pcache1Truncate(tls *libc.TLS, p uintptr, iLimit uint32) { /* testdata/sqli // Implementation of the sqlite3_pcache.xDestroy method. // // Destroy a cache allocated using pcache1Create(). -func pcache1Destroy(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52438:13: */ +func pcache1Destroy(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53076:13: */ var pCache uintptr = p var pGroup uintptr = (*PCache1)(unsafe.Pointer(pCache)).FpGroup @@ -76115,7 +76203,7 @@ func pcache1Destroy(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation- // This function is called during initialization (sqlite3_initialize()) to // install the default pluggable cache module, assuming the user has not // already provided an alternative. -func Xsqlite3PCacheSetDefault(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52461:21: */ +func Xsqlite3PCacheSetDefault(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53099:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -76135,16 +76223,16 @@ var defaultMethods1 = Sqlite3_pcache_methods2{ FxTruncate: 0, // xTruncate FxDestroy: 0, // xDestroy FxShrink: 0, // xShrink -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52462:40 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53100:40 */ // Return the size of the header on each page of this PCACHE implementation. -func Xsqlite3HeaderSizePcache1(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52483:20: */ +func Xsqlite3HeaderSizePcache1(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53121:20: */ return int32((uint64(unsafe.Sizeof(PgHdr1{})) + uint64(7)) & libc.Uint64FromInt32(libc.CplInt32(7))) } // Return the global mutex used by this PCACHE implementation. The // sqlite3_status() routine needs access to this mutex. -func Xsqlite3Pcache1Mutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52489:30: */ +func Xsqlite3Pcache1Mutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53127:30: */ return pcache1_g.Fmutex } @@ -76155,7 +76243,7 @@ func Xsqlite3Pcache1Mutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamati // nReq is the number of bytes of memory required. Once this much has // been released, the function returns. The return value is the total number // of bytes of memory released. -func Xsqlite3PcacheReleaseMemory(tls *libc.TLS, nReq int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52503:20: */ +func Xsqlite3PcacheReleaseMemory(tls *libc.TLS, nReq int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53141:20: */ var nFree int32 = 0 if Xsqlite3Config.FpPage == uintptr(0) { @@ -76253,7 +76341,7 @@ type RowSetEntry = struct { Fv I64 FpRight uintptr FpLeft uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14606:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14649:9 */ // RowSetEntry objects are allocated in large chunks (instances of the // following structure) to reduce memory allocation overhead. The @@ -76266,13 +76354,13 @@ type RowSetChunk = struct { FpRight uintptr FpLeft uintptr } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14606:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14649:9 */ // Allowed values for RowSet.rsFlags // Allocate a RowSet object. Return NULL if a memory allocation // error occurs. -func Xsqlite3RowSetInit(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52683:23: */ +func Xsqlite3RowSetInit(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53321:23: */ var p uintptr = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(RowSet{}))) if p != 0 { var N int32 = Xsqlite3DbMallocSize(tls, db, p) @@ -76292,7 +76380,7 @@ func Xsqlite3RowSetInit(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite- // Deallocate all chunks from a RowSet. This frees all memory that // the RowSet has allocated over its lifetime. This routine is // the destructor for the RowSet. -func Xsqlite3RowSetClear(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52705:21: */ +func Xsqlite3RowSetClear(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53343:21: */ var p uintptr = pArg var pChunk uintptr var pNextChunk uintptr @@ -76311,7 +76399,7 @@ func Xsqlite3RowSetClear(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalg // Deallocate all chunks from a RowSet. This frees all memory that // the RowSet has allocated over its lifetime. This routine is // the destructor for the RowSet. -func Xsqlite3RowSetDelete(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52725:21: */ +func Xsqlite3RowSetDelete(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53363:21: */ Xsqlite3RowSetClear(tls, pArg) Xsqlite3DbFree(tls, (*RowSet)(unsafe.Pointer(pArg)).Fdb, pArg) } @@ -76322,7 +76410,7 @@ func Xsqlite3RowSetDelete(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amal // // In an OOM situation, the RowSet.db->mallocFailed flag is set and this // routine returns NULL. -func rowSetEntryAlloc(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52738:27: */ +func rowSetEntryAlloc(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53376:27: */ if int32((*RowSet)(unsafe.Pointer(p)).FnFresh) == 0 { //OPTIMIZATION-IF-FALSE // We could allocate a fresh RowSetEntry each time one is needed, but it @@ -76345,7 +76433,7 @@ func rowSetEntryAlloc(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-ama // // The mallocFailed flag of the database connection is set if a // memory allocation fails. -func Xsqlite3RowSetInsert(tls *libc.TLS, p uintptr, rowid I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52763:21: */ +func Xsqlite3RowSetInsert(tls *libc.TLS, p uintptr, rowid I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53401:21: */ var pEntry uintptr // The new entry var pLast uintptr // The last prior entry @@ -76375,7 +76463,7 @@ func Xsqlite3RowSetInsert(tls *libc.TLS, p uintptr, rowid I64) { /* testdata/sql // // The input lists are connected via pRight pointers and are // assumed to each already be in sorted order. -func rowSetEntryMerge(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52794:27: */ +func rowSetEntryMerge(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53432:27: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -76410,7 +76498,7 @@ func rowSetEntryMerge(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* testda // Sort all elements on the list of RowSetEntry objects into order of // increasing v. -func rowSetEntrySort(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52829:27: */ +func rowSetEntrySort(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53467:27: */ bp := tls.Alloc(320) defer tls.Free(320) @@ -76446,7 +76534,7 @@ func rowSetEntrySort(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-am // The input, pIn, is a binary tree (or subtree) of RowSetEntry objects. // Convert this tree into a linked list connected by the pRight pointers // and return pointers to the first and last elements of the new list. -func rowSetTreeToList(tls *libc.TLS, pIn uintptr, ppFirst uintptr, ppLast uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52858:13: */ +func rowSetTreeToList(tls *libc.TLS, pIn uintptr, ppFirst uintptr, ppLast uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53496:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -76477,7 +76565,7 @@ func rowSetTreeToList(tls *libc.TLS, pIn uintptr, ppFirst uintptr, ppLast uintpt // and leave *ppList set to NULL. // // Return a pointer to the root of the constructed binary tree. -func rowSetNDeepTree(tls *libc.TLS, ppList uintptr, iDepth int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52893:27: */ +func rowSetNDeepTree(tls *libc.TLS, ppList uintptr, iDepth int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53531:27: */ var p uintptr // Root of the new tree var pLeft uintptr // Left subtree if *(*uintptr)(unsafe.Pointer(ppList)) == uintptr(0) { //OPTIMIZATION-IF-TRUE @@ -76508,7 +76596,7 @@ func rowSetNDeepTree(tls *libc.TLS, ppList uintptr, iDepth int32) uintptr { /* t // Convert a sorted list of elements into a binary tree. Make the tree // as deep as it needs to be in order to contain the entire list. -func rowSetListToTree(tls *libc.TLS, pList uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52929:27: */ +func rowSetListToTree(tls *libc.TLS, pList uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53567:27: */ bp := tls.Alloc(8) defer tls.Free(8) *(*uintptr)(unsafe.Pointer(bp)) = pList @@ -76541,7 +76629,7 @@ func rowSetListToTree(tls *libc.TLS, pList uintptr) uintptr { /* testdata/sqlite // been used. Older versions of RowSet allowed that, but as the // capability was not used by the code generator, it was removed // for code economy. -func Xsqlite3RowSetNext(tls *libc.TLS, p uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52961:20: */ +func Xsqlite3RowSetNext(tls *libc.TLS, p uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53599:20: */ // Cannot be used with sqlite3RowSetText() @@ -76574,7 +76662,7 @@ func Xsqlite3RowSetNext(tls *libc.TLS, p uintptr, pRowid uintptr) int32 { /* tes // If this is the first test of a new batch and if there exist entries // on pRowSet->pEntry, then sort those entries into the forest at // pRowSet->pForest so that they can be tested. -func Xsqlite3RowSetTest(tls *libc.TLS, pRowSet uintptr, iBatch int32, iRowid Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:52995:20: */ +func Xsqlite3RowSetTest(tls *libc.TLS, pRowSet uintptr, iBatch int32, iRowid Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53633:20: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -76713,7 +76801,7 @@ type Wal1 = struct { FnCkpt U32 F__ccgo_pad3 [4]byte FpSnapshot uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ //************* End of rowset.c ********************************************* //************* Begin file pager.c ****************************************** @@ -76759,7 +76847,7 @@ type Wal1 = struct { // Connection to a write-ahead log (WAL) file. // There is one object of this type for each pager. -type Wal = Wal1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:53137:20 */ +type Wal = Wal1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:53775:20 */ //************* End of wal.h ************************************************ //************* Continuing where we left off in pager.c ********************* @@ -77148,7 +77236,7 @@ type PagerSavepoint1 = struct { FbTruncateOnRelease int32 FaWalData [4]U32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ //************* End of wal.h ************************************************ //************* Continuing where we left off in pager.c ********************* @@ -77528,7 +77616,7 @@ type PagerSavepoint1 = struct { // immediately following the last journal record written into the main // journal before the journal-header. This is required during savepoint // rollback (see pagerPlaybackSavepoint()). -type PagerSavepoint = PagerSavepoint1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:53648:31 */ +type PagerSavepoint = PagerSavepoint1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:54286:31 */ // Indexes for use with Pager.aStat[]. The Pager.aStat[] array contains // the values accessed by passing SQLITE_DBSTATUS_CACHE_HIT, CACHE_MISS @@ -77561,11 +77649,11 @@ type PagerSavepoint = PagerSavepoint1 /* testdata/sqlite-amalgamation-3380500/sq // is different for every journal, we minimize that risk. var aJournalMagic = [8]uint8{ uint8(0xd9), uint8(0xd5), uint8(0x05), uint8(0xf9), uint8(0x20), uint8(0xa1), uint8(0x63), uint8(0xd7), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:53970:28 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:54609:28 */ // Set the Pager.xGet method for the appropriate routine used to fetch // content from the pager. -func setGetterMethod(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54263:13: */ +func setGetterMethod(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:54902:13: */ if (*Pager)(unsafe.Pointer(pPager)).FerrCode != 0 { (*Pager)(unsafe.Pointer(pPager)).FxGet = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, Pgno, uintptr, int32) int32 @@ -77585,10 +77673,10 @@ func setGetterMethod(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgam // A page needs to be written into the sub-journal if there exists one // or more open savepoints for which: // -// * The page-number is less than or equal to PagerSavepoint.nOrig, and -// * The bit corresponding to the page-number is not set in +// - The page-number is less than or equal to PagerSavepoint.nOrig, and +// - The bit corresponding to the page-number is not set in // PagerSavepoint.pInSavepoint. -func subjRequiresPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54284:12: */ +func subjRequiresPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:54923:12: */ var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager var p uintptr var pgno Pgno = (*PgHdr)(unsafe.Pointer(pPg)).Fpgno @@ -77610,7 +77698,7 @@ func subjRequiresPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-ama // error code is something goes wrong. // // All values are stored on disk as big-endian. -func read32bits(tls *libc.TLS, fd uintptr, offset I64, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54317:12: */ +func read32bits(tls *libc.TLS, fd uintptr, offset I64, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:54956:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -77627,7 +77715,7 @@ func read32bits(tls *libc.TLS, fd uintptr, offset I64, pRes uintptr) int32 { /* // Write a 32-bit integer into the given file descriptor. Return SQLITE_OK // on success or an error code is something goes wrong. -func write32bits(tls *libc.TLS, fd uintptr, offset I64, val U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54336:12: */ +func write32bits(tls *libc.TLS, fd uintptr, offset I64, val U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:54975:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -77644,7 +77732,7 @@ func write32bits(tls *libc.TLS, fd uintptr, offset I64, val U32) int32 { /* test // Except, if Pager.eLock is set to UNKNOWN_LOCK when this function is // called, do not modify it. See the comment above the #define of // UNKNOWN_LOCK for an explanation of this. -func pagerUnlockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54351:12: */ +func pagerUnlockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:54990:12: */ var rc int32 = SQLITE_OK if (*Sqlite3_file)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).Ffd)).FpMethods != uintptr(0) { @@ -77671,7 +77759,7 @@ func pagerUnlockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* testda // called, do not modify it unless the new locking state is EXCLUSIVE_LOCK. // See the comment above the #define of UNKNOWN_LOCK for an explanation // of this. -func pagerLockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54379:12: */ +func pagerLockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55018:12: */ var rc int32 = SQLITE_OK if int32((*Pager)(unsafe.Pointer(pPager)).FeLock) < eLock || int32((*Pager)(unsafe.Pointer(pPager)).FeLock) == EXCLUSIVE_LOCK+1 { @@ -77692,10 +77780,10 @@ func pagerLockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* testdata // atomic-batch-write optimizations can be used with this pager. The // atomic-write optimization can be used if: // -// (a) the value returned by OsDeviceCharacteristics() indicates that -// a database page may be written atomically, and -// (b) the value returned by OsSectorSize() is less than or equal -// to the page size. +// (a) the value returned by OsDeviceCharacteristics() indicates that +// a database page may be written atomically, and +// (b) the value returned by OsSectorSize() is less than or equal +// to the page size. // // If it can be used, then the value returned is the size of the journal // file when it contains rollback data for exactly one page. @@ -77705,7 +77793,7 @@ func pagerLockDb(tls *libc.TLS, pPager uintptr, eLock int32) int32 { /* testdata // returned in this case. // // If neither optimization can be used, 0 is returned. -func jrnlBufferSize(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54412:12: */ +func jrnlBufferSize(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55051:12: */ _ = pPager @@ -77739,7 +77827,7 @@ func jrnlBufferSize(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-am // // If an error occurs while reading from the journal file, an SQLite // error code is returned. -func readSuperJournal(tls *libc.TLS, pJrnl uintptr, zSuper uintptr, nSuper U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54517:12: */ +func readSuperJournal(tls *libc.TLS, pJrnl uintptr, zSuper uintptr, nSuper U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55156:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -77791,14 +77879,13 @@ func readSuperJournal(tls *libc.TLS, pJrnl uintptr, zSuper uintptr, nSuper U32) // // i.e for a sector size of 512: // -// Pager.journalOff Return value -// --------------------------------------- -// 0 0 -// 512 512 -// 100 512 -// 2000 2048 -// -func journalHdrOffset(tls *libc.TLS, pPager uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54573:12: */ +// Pager.journalOff Return value +// --------------------------------------- +// 0 0 +// 512 512 +// 100 512 +// 2000 2048 +func journalHdrOffset(tls *libc.TLS, pPager uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55212:12: */ var offset I64 = int64(0) var c I64 = (*Pager)(unsafe.Pointer(pPager)).FjournalOff if c != 0 { @@ -77827,7 +77914,7 @@ func journalHdrOffset(tls *libc.TLS, pPager uintptr) I64 { /* testdata/sqlite-am // // If an IO error occurs, abandon processing and return the IO error code. // Otherwise, return SQLITE_OK. -func zeroJournalHdr(tls *libc.TLS, pPager uintptr, doTruncate int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54606:12: */ +func zeroJournalHdr(tls *libc.TLS, pPager uintptr, doTruncate int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55245:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -77862,7 +77949,7 @@ func zeroJournalHdr(tls *libc.TLS, pPager uintptr, doTruncate int32) int32 { /* return rc } -var zeroHdr = [28]int8{0: int8(0)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54617:25 */ +var zeroHdr = [28]int8{0: int8(0)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55256:25 */ // The journal file must be open when this routine is called. A journal // header (JOURNAL_HDR_SZ bytes) is written into the journal file at the @@ -77877,7 +77964,7 @@ var zeroHdr = [28]int8{0: int8(0)} /* testdata/sqlite-amalgamation-3380500/sqlit // - 4 bytes: Database page size. // // Followed by (JOURNAL_HDR_SZ - 28) bytes of unused space. -func writeJournalHdr(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54656:12: */ +func writeJournalHdr(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55295:12: */ var rc int32 = SQLITE_OK // Return code var zHeader uintptr = (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace // Temporary space used to build header var nHeader U32 = U32((*Pager)(unsafe.Pointer(pPager)).FpageSize) // Size of buffer pointed to by zHeader @@ -77987,7 +78074,7 @@ func writeJournalHdr(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-a // If the journal header file appears to be corrupted, SQLITE_DONE is // returned and *pNRec and *PDbSize are undefined. If JOURNAL_HDR_SZ bytes // cannot be read from the journal file an error code is returned. -func readJournalHdr(tls *libc.TLS, pPager uintptr, isHot int32, journalSize I64, pNRec uintptr, pDbSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54774:12: */ +func readJournalHdr(tls *libc.TLS, pPager uintptr, isHot int32, journalSize I64, pNRec uintptr, pDbSize uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55413:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -78086,18 +78173,18 @@ func readJournalHdr(tls *libc.TLS, pPager uintptr, isHot int32, journalSize I64, // journal file descriptor is advanced to the next sector boundary before // anything is written. The format is: // -// + 4 bytes: PAGER_MJ_PGNO. -// + N bytes: super-journal filename in utf-8. -// + 4 bytes: N (length of super-journal name in bytes, no nul-terminator). -// + 4 bytes: super-journal name checksum. -// + 8 bytes: aJournalMagic[]. +// - 4 bytes: PAGER_SJ_PGNO. +// - N bytes: super-journal filename in utf-8. +// - 4 bytes: N (length of super-journal name in bytes, no nul-terminator). +// - 4 bytes: super-journal name checksum. +// - 8 bytes: aJournalMagic[]. // // The super-journal page checksum is the sum of the bytes in thesuper-journal // name, where each byte is interpreted as a signed 8-bit integer. // // If zSuper is a NULL pointer (occurs for a single database transaction), // this call is a no-op. -func writeSuperJournal(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54899:12: */ +func writeSuperJournal(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55538:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -78130,7 +78217,7 @@ func writeSuperJournal(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* // Write the super-journal data to the end of the journal file. If // an error occurs, return the error code to the caller. - if 0 != libc.AssignInt32(&rc, write32bits(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd, iHdrOff, Pgno(I64(Xsqlite3PendingByte)/(*Pager)(unsafe.Pointer(pPager)).FpageSize+int64(1)))) || + if 0 != libc.AssignInt32(&rc, write32bits(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd, iHdrOff, (*Pager)(unsafe.Pointer(pPager)).FlckPgno)) || 0 != libc.AssignInt32(&rc, Xsqlite3OsWrite(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd, zSuper, nSuper, iHdrOff+int64(4))) || 0 != libc.AssignInt32(&rc, write32bits(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd, iHdrOff+int64(4)+I64(nSuper), uint32(nSuper))) || 0 != libc.AssignInt32(&rc, write32bits(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd, iHdrOff+int64(4)+I64(nSuper)+int64(4), cksum)) || @@ -78157,21 +78244,21 @@ func writeSuperJournal(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* } // Discard the entire contents of the in-memory page-cache. -func pager_reset(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54967:13: */ +func pager_reset(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55606:13: */ (*Pager)(unsafe.Pointer(pPager)).FiDataVersion++ Xsqlite3BackupRestart(tls, (*Pager)(unsafe.Pointer(pPager)).FpBackup) Xsqlite3PcacheClear(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache) } // Return the pPager->iDataVersion value -func Xsqlite3PagerDataVersion(tls *libc.TLS, pPager uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54976:20: */ +func Xsqlite3PagerDataVersion(tls *libc.TLS, pPager uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55615:20: */ return (*Pager)(unsafe.Pointer(pPager)).FiDataVersion } // Free all structures in the Pager.aSavepoint[] array and set both // Pager.aSavepoint and Pager.nSavepoint to zero. Close the sub-journal // if it is open and the pager is not in exclusive mode. -func releaseAllSavepoints(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54985:13: */ +func releaseAllSavepoints(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55624:13: */ var ii int32 // Iterator for looping through Pager.aSavepoint for ii = 0; ii < (*Pager)(unsafe.Pointer(pPager)).FnSavepoint; ii++ { Xsqlite3BitvecDestroy(tls, (*PagerSavepoint)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).FaSavepoint+uintptr(ii)*56)).FpInSavepoint) @@ -78188,7 +78275,7 @@ func releaseAllSavepoints(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-am // Set the bit number pgno in the PagerSavepoint.pInSavepoint // bitvecs of all open savepoints. Return SQLITE_OK if successful // or SQLITE_NOMEM if a malloc failure occurs. -func addToSavepointBitvecs(tls *libc.TLS, pPager uintptr, pgno Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55004:12: */ +func addToSavepointBitvecs(tls *libc.TLS, pPager uintptr, pgno Pgno) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55643:12: */ var ii int32 // Loop counter var rc int32 = SQLITE_OK // Result code @@ -78217,7 +78304,7 @@ func addToSavepointBitvecs(tls *libc.TLS, pPager uintptr, pgno Pgno) int32 { /* // or not, any journal file left in the file-system will be treated // as a hot-journal and rolled back the next time a read-transaction // is opened (by this or by any other connection). -func pager_unlock(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55036:13: */ +func pager_unlock(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55675:13: */ Xsqlite3BitvecDestroy(tls, (*Pager)(unsafe.Pointer(pPager)).FpInJournal) (*Pager)(unsafe.Pointer(pPager)).FpInJournal = uintptr(0) @@ -78309,7 +78396,7 @@ func pager_unlock(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamati // the persistent error occurred, then the rollback journal may need // to be replayed to restore the contents of the database file (as if // it were a hot-journal). -func pager_error(tls *libc.TLS, pPager uintptr, rc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55133:12: */ +func pager_error(tls *libc.TLS, pPager uintptr, rc int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55772:12: */ var rc2 int32 = rc & 0xff if rc2 == SQLITE_FULL || rc2 == SQLITE_IOERR { @@ -78327,14 +78414,14 @@ func pager_error(tls *libc.TLS, pPager uintptr, rc int32) int32 { /* testdata/sq // // Rules: // -// * For non-TEMP databases, always sync to disk. This is necessary -// for transactions to be durable. +// - For non-TEMP databases, always sync to disk. This is necessary +// for transactions to be durable. // -// * Sync TEMP database only on a COMMIT (not a ROLLBACK) when the backing -// file has been created already (via a spill on pagerStress()) and -// when the number of dirty pages in memory exceeds 25% of the total -// cache size. -func pagerFlushOnCommit(tls *libc.TLS, pPager uintptr, bCommit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55167:12: */ +// - Sync TEMP database only on a COMMIT (not a ROLLBACK) when the backing +// file has been created already (via a spill on pagerStress()) and +// when the number of dirty pages in memory exceeds 25% of the total +// cache size. +func pagerFlushOnCommit(tls *libc.TLS, pPager uintptr, bCommit int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55806:12: */ if int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) == 0 { return 1 } @@ -78366,25 +78453,25 @@ func pagerFlushOnCommit(tls *libc.TLS, pPager uintptr, bCommit int32) int32 { /* // depends on whether or not the pager is running in exclusive mode and // the current journal-mode (Pager.journalMode value), as follows: // -// journalMode==MEMORY -// Journal file descriptor is simply closed. This destroys an -// in-memory journal. +// journalMode==MEMORY +// Journal file descriptor is simply closed. This destroys an +// in-memory journal. // -// journalMode==TRUNCATE -// Journal file is truncated to zero bytes in size. +// journalMode==TRUNCATE +// Journal file is truncated to zero bytes in size. // -// journalMode==PERSIST -// The first 28 bytes of the journal file are zeroed. This invalidates -// the first journal header in the file, and hence the entire journal -// file. An invalid journal file cannot be rolled back. +// journalMode==PERSIST +// The first 28 bytes of the journal file are zeroed. This invalidates +// the first journal header in the file, and hence the entire journal +// file. An invalid journal file cannot be rolled back. // -// journalMode==DELETE -// The journal file is closed and deleted using sqlite3OsDelete(). +// journalMode==DELETE +// The journal file is closed and deleted using sqlite3OsDelete(). // -// If the pager is running in exclusive mode, this method of finalizing -// the journal file is never used. Instead, if the journalMode is -// DELETE and the pager is in exclusive mode, the method described under -// journalMode==PERSIST is used instead. +// If the pager is running in exclusive mode, this method of finalizing +// the journal file is never used. Instead, if the journalMode is +// DELETE and the pager is in exclusive mode, the method described under +// journalMode==PERSIST is used instead. // // After the journal is finalized, the pager moves to PAGER_READER state. // If running in non-exclusive rollback mode, the lock on the file is @@ -78398,7 +78485,7 @@ func pagerFlushOnCommit(tls *libc.TLS, pPager uintptr, bCommit int32) int32 { /* // unlock operation fails as well, then the first error code related // to the first error encountered (the journal finalization one) is // returned. -func pager_end_transaction(tls *libc.TLS, pPager uintptr, hasSuper int32, bCommit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55227:12: */ +func pager_end_transaction(tls *libc.TLS, pPager uintptr, hasSuper int32, bCommit int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:55866:12: */ var rc int32 = SQLITE_OK // Error code from journal finalization operation var rc2 int32 = SQLITE_OK // Error code from db file unlock operation @@ -78525,7 +78612,7 @@ func pager_end_transaction(tls *libc.TLS, pPager uintptr, hasSuper int32, bCommi // malloc error occurs during a rollback, then this will itself cause // the pager to enter the ERROR state. Which will be cleared by the // call to pager_unlock(), as described above. -func pagerUnlockAndRollback(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55374:13: */ +func pagerUnlockAndRollback(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56013:13: */ if int32((*Pager)(unsafe.Pointer(pPager)).FeState) != PAGER_ERROR && int32((*Pager)(unsafe.Pointer(pPager)).FeState) != PAGER_OPEN { if int32((*Pager)(unsafe.Pointer(pPager)).FeState) >= PAGER_WRITER_LOCKED { @@ -78557,7 +78644,7 @@ func pagerUnlockAndRollback(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite- // It is much less likely that the two ends of the journal record will be // correct and the middle be corrupt. Thus, this "checksum" scheme, // though fast and simple, catches the mostly likely kind of corruption. -func pager_cksum(tls *libc.TLS, pPager uintptr, aData uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55408:12: */ +func pager_cksum(tls *libc.TLS, pPager uintptr, aData uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56047:12: */ var cksum U32 = (*Pager)(unsafe.Pointer(pPager)).FcksumInit // Checksum value to return var i int32 = int32((*Pager)(unsafe.Pointer(pPager)).FpageSize - int64(200)) // Loop counter for i > 0 { @@ -78593,8 +78680,8 @@ func pager_cksum(tls *libc.TLS, pPager uintptr, aData uintptr) U32 { /* testdata // corrupted, SQLITE_DONE is returned. Data is considered corrupted in // two circumstances: // -// * If the record page-number is illegal (0 or PAGER_MJ_PGNO), or -// * If the record is being rolled back from the main journal file +// - If the record page-number is illegal (0 or PAGER_SJ_PGNO), or +// - If the record is being rolled back from the main journal file // and the checksum field does not match the record content. // // Neither of these two scenarios are possible during a savepoint rollback. @@ -78602,7 +78689,7 @@ func pager_cksum(tls *libc.TLS, pPager uintptr, aData uintptr) U32 { /* testdata // If this is a savepoint rollback, then memory may have to be dynamically // allocated by this function. If this is the case and an allocation fails, // SQLITE_NOMEM is returned. -func pager_playback_one_page(tls *libc.TLS, pPager uintptr, pOffset uintptr, pDone uintptr, isMainJrnl int32, isSavepnt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55455:12: */ +func pager_playback_one_page(tls *libc.TLS, pPager uintptr, pOffset uintptr, pDone uintptr, isMainJrnl int32, isSavepnt int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56094:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -78652,7 +78739,7 @@ func pager_playback_one_page(tls *libc.TLS, pPager uintptr, pOffset uintptr, pDo // thought. If a power failure occurs while the journal is being written, // it could cause invalid data to be written into the journal. We need to // detect this invalid data (with high probability) and ignore it. - if *(*Pgno)(unsafe.Pointer(bp)) == Pgno(0) || *(*Pgno)(unsafe.Pointer(bp)) == Pgno(I64(Xsqlite3PendingByte)/(*Pager)(unsafe.Pointer(pPager)).FpageSize+int64(1)) { + if *(*Pgno)(unsafe.Pointer(bp)) == Pgno(0) || *(*Pgno)(unsafe.Pointer(bp)) == (*Pager)(unsafe.Pointer(pPager)).FlckPgno { return SQLITE_DONE } @@ -78809,7 +78896,7 @@ func pager_playback_one_page(tls *libc.TLS, pPager uintptr, pOffset uintptr, pDo // nul-terminator byte (0x00). i.e. the entire contents of a super-journal // file for a transaction involving two databases might be: // -// "/home/bill/a.db-journal\x00/home/bill/b.db-journal\x00" +// "/home/bill/a.db-journal\x00/home/bill/b.db-journal\x00" // // A super-journal file may only be deleted once all of its child // journals have been rolled back. @@ -78818,8 +78905,8 @@ func pager_playback_one_page(tls *libc.TLS, pPager uintptr, pOffset uintptr, pDo // memory and loops through each of the child journal names. For // each child journal, it checks if: // -// * if the child journal exists, and if so -// * if the child journal contains a reference to super-journal +// - if the child journal exists, and if so +// - if the child journal contains a reference to super-journal // file zSuper // // If a child journal can be found that matches both of the criteria @@ -78836,7 +78923,7 @@ func pager_playback_one_page(tls *libc.TLS, pPager uintptr, pOffset uintptr, pDo // the entire contents of the super-journal file. This could be // a couple of kilobytes or so - potentially larger than the page // size. -func pager_delsuper(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55702:12: */ +func pager_delsuper(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56341:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -79002,9 +79089,9 @@ __14: // // If successful, return SQLITE_OK. If an IO error occurs while modifying // the database file, return the error code to the caller. -func pager_truncate(tls *libc.TLS, pPager uintptr, nPage Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55820:12: */ - bp := tls.Alloc(8) - defer tls.Free(8) +func pager_truncate(tls *libc.TLS, pPager uintptr, nPage Pgno) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56459:12: */ + bp := tls.Alloc(16) + defer tls.Free(16) var rc int32 = SQLITE_OK @@ -79012,20 +79099,22 @@ func pager_truncate(tls *libc.TLS, pPager uintptr, nPage Pgno) int32 { /* testda (int32((*Pager)(unsafe.Pointer(pPager)).FeState) >= PAGER_WRITER_DBMOD || int32((*Pager)(unsafe.Pointer(pPager)).FeState) == PAGER_OPEN) { // var currentSize I64 at bp, 8 - var newSize I64 + // var newSize I64 at bp+8, 8 + var szPage int32 = int32((*Pager)(unsafe.Pointer(pPager)).FpageSize) // TODO: Is it safe to use Pager.dbFileSize here? rc = Xsqlite3OsFileSize(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, bp) - newSize = I64(szPage) * I64(nPage) - if rc == SQLITE_OK && *(*I64)(unsafe.Pointer(bp)) != newSize { - if *(*I64)(unsafe.Pointer(bp)) > newSize { - rc = Xsqlite3OsTruncate(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, newSize) - } else if *(*I64)(unsafe.Pointer(bp))+I64(szPage) <= newSize { + *(*I64)(unsafe.Pointer(bp + 8 /* newSize */)) = I64(szPage) * I64(nPage) + if rc == SQLITE_OK && *(*I64)(unsafe.Pointer(bp)) != *(*I64)(unsafe.Pointer(bp + 8)) { + if *(*I64)(unsafe.Pointer(bp)) > *(*I64)(unsafe.Pointer(bp + 8)) { + rc = Xsqlite3OsTruncate(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, *(*I64)(unsafe.Pointer(bp + 8 /* newSize */))) + } else if *(*I64)(unsafe.Pointer(bp))+I64(szPage) <= *(*I64)(unsafe.Pointer(bp + 8)) { var pTmp uintptr = (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace libc.Xmemset(tls, pTmp, 0, uint64(szPage)) - rc = Xsqlite3OsWrite(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, pTmp, szPage, newSize-I64(szPage)) + Xsqlite3OsFileControlHint(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, SQLITE_FCNTL_SIZE_HINT, bp+8) + rc = Xsqlite3OsWrite(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, pTmp, szPage, *(*I64)(unsafe.Pointer(bp + 8))-I64(szPage)) } if rc == SQLITE_OK { (*Pager)(unsafe.Pointer(pPager)).FdbFileSize = nPage @@ -79037,7 +79126,7 @@ func pager_truncate(tls *libc.TLS, pPager uintptr, nPage Pgno) int32 { /* testda // Return a sanitized version of the sector-size of OS file pFile. The // return value is guaranteed to lie between 32 and MAX_SECTOR_SIZE. -func Xsqlite3SectorSize(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55856:20: */ +func Xsqlite3SectorSize(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56496:20: */ var iRet int32 = Xsqlite3OsSectorSize(tls, pFile) if iRet < 32 { iRet = 512 @@ -79069,7 +79158,7 @@ func Xsqlite3SectorSize(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite // (that is what POWERSAFE_OVERWRITE means), so we minimize the sector // size. For backwards compatibility of the rollback journal file format, // we cannot reduce the effective sector size below 512. -func setSectorSize(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55890:13: */ +func setSectorSize(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56530:13: */ if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 || Xsqlite3OsDeviceCharacteristics(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd)&SQLITE_IOCAP_POWERSAFE_OVERWRITE != 0 { @@ -79087,22 +79176,22 @@ func setSectorSize(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamat // // The journal file format is as follows: // -// (1) 8 byte prefix. A copy of aJournalMagic[]. -// (2) 4 byte big-endian integer which is the number of valid page records -// in the journal. If this value is 0xffffffff, then compute the -// number of page records from the journal size. -// (3) 4 byte big-endian integer which is the initial value for the -// sanity checksum. -// (4) 4 byte integer which is the number of pages to truncate the -// database to during a rollback. -// (5) 4 byte big-endian integer which is the sector size. The header -// is this many bytes in size. -// (6) 4 byte big-endian integer which is the page size. -// (7) zero padding out to the next sector size. -// (8) Zero or more pages instances, each as follows: -// + 4 byte page number. -// + pPager->pageSize bytes of data. -// + 4 byte checksum +// (1) 8 byte prefix. A copy of aJournalMagic[]. +// (2) 4 byte big-endian integer which is the number of valid page records +// in the journal. If this value is 0xffffffff, then compute the +// number of page records from the journal size. +// (3) 4 byte big-endian integer which is the initial value for the +// sanity checksum. +// (4) 4 byte integer which is the number of pages to truncate the +// database to during a rollback. +// (5) 4 byte big-endian integer which is the sector size. The header +// is this many bytes in size. +// (6) 4 byte big-endian integer which is the page size. +// (7) zero padding out to the next sector size. +// (8) Zero or more pages instances, each as follows: +// + 4 byte page number. +// + pPager->pageSize bytes of data. +// + 4 byte checksum // // When we speak of the journal header, we mean the first 7 items above. // Each entry in the journal is an instance of the 8th item. @@ -79137,7 +79226,7 @@ func setSectorSize(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamat // If the journal really is hot, reset the pager cache prior rolling // back any content. If the journal is merely persistent, no reset is // needed. -func pager_playback(tls *libc.TLS, pPager uintptr, isHot int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:55963:12: */ +func pager_playback(tls *libc.TLS, pPager uintptr, isHot int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56603:12: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -79406,7 +79495,7 @@ __27: if !(isHot != 0 && nPlayback != 0) { goto __28 } - Xsqlite3_log(tls, SQLITE_NOTICE|int32(2)<<8, ts+5197, + Xsqlite3_log(tls, SQLITE_NOTICE|int32(2)<<8, ts+5232, libc.VaList(bp, nPlayback, (*Pager)(unsafe.Pointer(pPager)).FzJournal)) __28: ; @@ -79428,7 +79517,7 @@ __28: // // If an IO error occurs, then the IO error is returned to the caller. // Otherwise, SQLITE_OK is returned. -func readDbPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56183:12: */ +func readDbPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56823:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -79482,7 +79571,7 @@ func readDbPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamat // This is an unconditional update. See also the pager_incr_changecounter() // routine which only updates the change-counter if the update is actually // needed, as determined by the pPager->changeCountDone state variable. -func pager_write_changecounter(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56246:13: */ +func pager_write_changecounter(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56886:13: */ var change_counter U32 if pPg == uintptr(0) { return @@ -79509,7 +79598,7 @@ func pager_write_changecounter(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite- // references, the page content is reloaded from the database. If the // attempt to reload content from the database is required and fails, // return an SQLite error code. Otherwise, SQLITE_OK. -func pagerUndoCallback(tls *libc.TLS, pCtx uintptr, iPg Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56274:12: */ +func pagerUndoCallback(tls *libc.TLS, pCtx uintptr, iPg Pgno) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56914:12: */ var rc int32 = SQLITE_OK var pPager uintptr = pCtx var pPg uintptr @@ -79540,7 +79629,7 @@ func pagerUndoCallback(tls *libc.TLS, pCtx uintptr, iPg Pgno) int32 { /* testdat } // This function is called to rollback a transaction on a WAL database. -func pagerRollbackWal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56309:12: */ +func pagerRollbackWal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56949:12: */ var rc int32 // Return Code var pList uintptr // List of dirty pages to revert @@ -79571,7 +79660,7 @@ func pagerRollbackWal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite- // // The list of pages passed into this routine is always sorted by page number. // Hence, if page 1 appears anywhere on the list, it will be the first page. -func pagerWalFrames(tls *libc.TLS, pPager uintptr, pList uintptr, nTruncate Pgno, isCommit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56341:12: */ +func pagerWalFrames(tls *libc.TLS, pPager uintptr, pList uintptr, nTruncate Pgno, isCommit int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:56981:12: */ bp := tls.Alloc(8) defer tls.Free(8) *(*uintptr)(unsafe.Pointer(bp)) = pList @@ -79597,7 +79686,7 @@ func pagerWalFrames(tls *libc.TLS, pPager uintptr, pList uintptr, nTruncate Pgno } else { nList = 1 } - *(*int32)(unsafe.Pointer(pPager + 240 + 2*4)) += nList + *(*int32)(unsafe.Pointer(pPager + 248 + 2*4)) += nList if (*PgHdr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).Fpgno == Pgno(1) { pager_write_changecounter(tls, *(*uintptr)(unsafe.Pointer(bp /* pList */))) @@ -79619,7 +79708,7 @@ func pagerWalFrames(tls *libc.TLS, pPager uintptr, pList uintptr, nTruncate Pgno // makes a snapshot of the database at the current point in time and preserves // that snapshot for use by the reader in spite of concurrently changes by // other writers or checkpointers. -func pagerBeginReadTransaction(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56408:12: */ +func pagerBeginReadTransaction(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57048:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -79650,7 +79739,7 @@ func pagerBeginReadTransaction(tls *libc.TLS, pPager uintptr) int32 { /* testdat // If no error occurs, SQLITE_OK is returned and the size of the database // in pages is stored in *pnPage. Otherwise, an error code (perhaps // SQLITE_IOERR_FSTAT) is returned and *pnPage is left unmodified. -func pagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56441:12: */ +func pagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57081:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -79704,7 +79793,7 @@ func pagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) int32 { /* te // a WAL on a none-empty database, this ensures there is no race condition // between the xAccess() below and an xDelete() being executed by some // other connection. -func pagerOpenWalIfPresent(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56501:12: */ +func pagerOpenWalIfPresent(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57141:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -79747,16 +79836,16 @@ func pagerOpenWalIfPresent(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sq // being rolled back), then the rollback consists of up to three stages, // performed in the order specified: // -// * Pages are played back from the main journal starting at byte +// - Pages are played back from the main journal starting at byte // offset PagerSavepoint.iOffset and continuing to // PagerSavepoint.iHdrOffset, or to the end of the main journal // file if PagerSavepoint.iHdrOffset is zero. // -// * If PagerSavepoint.iHdrOffset is not zero, then pages are played +// - If PagerSavepoint.iHdrOffset is not zero, then pages are played // back starting from the journal header immediately following // PagerSavepoint.iHdrOffset to the end of the main journal file. // -// * Pages are then played back from the sub-journal file, starting +// - Pages are then played back from the sub-journal file, starting // with the PagerSavepoint.iSubRec and continuing to the end of // the journal file. // @@ -79772,7 +79861,7 @@ func pagerOpenWalIfPresent(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sq // is reset to the value that it held at the start of the savepoint // (or transaction). No page with a page-number greater than this value // is played back. If one is encountered it is simply skipped. -func pagerPlaybackSavepoint(tls *libc.TLS, pPager uintptr, pSavepoint uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56568:12: */ +func pagerPlaybackSavepoint(tls *libc.TLS, pPager uintptr, pSavepoint uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57208:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -79881,18 +79970,18 @@ func pagerPlaybackSavepoint(tls *libc.TLS, pPager uintptr, pSavepoint uintptr) i // Change the maximum number of in-memory pages that are allowed // before attempting to recycle clean and unused pages. -func Xsqlite3PagerSetCachesize(tls *libc.TLS, pPager uintptr, mxPage int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56680:21: */ +func Xsqlite3PagerSetCachesize(tls *libc.TLS, pPager uintptr, mxPage int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57320:21: */ Xsqlite3PcacheSetCachesize(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache, mxPage) } // Change the maximum number of in-memory pages that are allowed // before attempting to spill pages to journal. -func Xsqlite3PagerSetSpillsize(tls *libc.TLS, pPager uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56688:20: */ +func Xsqlite3PagerSetSpillsize(tls *libc.TLS, pPager uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57328:20: */ return Xsqlite3PcacheSetSpillsize(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache, mxPage) } // Invoke SQLITE_FCNTL_MMAP_SIZE based on the current value of szMmap. -func pagerFixMaplimit(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56695:13: */ +func pagerFixMaplimit(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57335:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -79908,13 +79997,13 @@ func pagerFixMaplimit(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalga } // Change the maximum size of any memory mapping made of the database file. -func Xsqlite3PagerSetMmapLimit(tls *libc.TLS, pPager uintptr, szMmap Sqlite3_int64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56711:21: */ +func Xsqlite3PagerSetMmapLimit(tls *libc.TLS, pPager uintptr, szMmap Sqlite3_int64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57351:21: */ (*Pager)(unsafe.Pointer(pPager)).FszMmap = szMmap pagerFixMaplimit(tls, pPager) } // Free as much memory as possible from the pager. -func Xsqlite3PagerShrink(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56719:21: */ +func Xsqlite3PagerShrink(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57359:21: */ Xsqlite3PcacheShrink(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache) } @@ -79925,27 +80014,27 @@ func Xsqlite3PagerShrink(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-ama // changing the number of syncs()s when writing the journals. // There are four levels: // -// OFF sqlite3OsSync() is never called. This is the default -// for temporary and transient files. +// OFF sqlite3OsSync() is never called. This is the default +// for temporary and transient files. // -// NORMAL The journal is synced once before writes begin on the -// database. This is normally adequate protection, but -// it is theoretically possible, though very unlikely, -// that an inopertune power failure could leave the journal -// in a state which would cause damage to the database -// when it is rolled back. +// NORMAL The journal is synced once before writes begin on the +// database. This is normally adequate protection, but +// it is theoretically possible, though very unlikely, +// that an inopertune power failure could leave the journal +// in a state which would cause damage to the database +// when it is rolled back. // -// FULL The journal is synced twice before writes begin on the -// database (with some additional information - the nRec field -// of the journal header - being written in between the two -// syncs). If we assume that writing a -// single disk sector is atomic, then this mode provides -// assurance that the journal will not be corrupted to the -// point of causing damage to the database during rollback. +// FULL The journal is synced twice before writes begin on the +// database (with some additional information - the nRec field +// of the journal header - being written in between the two +// syncs). If we assume that writing a +// single disk sector is atomic, then this mode provides +// assurance that the journal will not be corrupted to the +// point of causing damage to the database during rollback. // -// EXTRA This is like FULL except that is also syncs the directory -// that contains the rollback journal after the rollback -// journal is unlinked. +// EXTRA This is like FULL except that is also syncs the directory +// that contains the rollback journal after the rollback +// journal is unlinked. // // The above is for a rollback-journal mode. For WAL mode, OFF continues // to mean that no syncs ever occur. NORMAL means that the WAL is synced @@ -79967,7 +80056,7 @@ func Xsqlite3PagerShrink(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-ama // // Numeric values associated with these states are OFF==1, NORMAL=2, // and FULL=3. -func Xsqlite3PagerSetFlags(tls *libc.TLS, pPager uintptr, pgFlags uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56775:21: */ +func Xsqlite3PagerSetFlags(tls *libc.TLS, pPager uintptr, pgFlags uint32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57415:21: */ var level uint32 = pgFlags & uint32(PAGER_SYNCHRONOUS_MASK) if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 { (*Pager)(unsafe.Pointer(pPager)).FnoSync = U8(1) @@ -80027,11 +80116,11 @@ func Xsqlite3PagerSetFlags(tls *libc.TLS, pPager uintptr, pgFlags uint32) { /* t // The flags passed to the VFS layer xOpen() call are those specified // by parameter vfsFlags ORed with the following: // -// SQLITE_OPEN_READWRITE -// SQLITE_OPEN_CREATE -// SQLITE_OPEN_EXCLUSIVE -// SQLITE_OPEN_DELETEONCLOSE -func pagerOpentemp(tls *libc.TLS, pPager uintptr, pFile uintptr, vfsFlags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56835:12: */ +// SQLITE_OPEN_READWRITE +// SQLITE_OPEN_CREATE +// SQLITE_OPEN_EXCLUSIVE +// SQLITE_OPEN_DELETEONCLOSE +func pagerOpentemp(tls *libc.TLS, pPager uintptr, pFile uintptr, vfsFlags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57475:12: */ var rc int32 // Return code vfsFlags = vfsFlags | (SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE) @@ -80049,21 +80138,21 @@ func pagerOpentemp(tls *libc.TLS, pPager uintptr, pFile uintptr, vfsFlags int32) // SHARED to RESERVED, or when upgrading from SHARED to EXCLUSIVE // (which occurs during hot-journal rollback). Summary: // -// Transition | Invokes xBusyHandler -// -------------------------------------------------------- -// NO_LOCK -> SHARED_LOCK | Yes -// SHARED_LOCK -> RESERVED_LOCK | No -// SHARED_LOCK -> EXCLUSIVE_LOCK | No -// RESERVED_LOCK -> EXCLUSIVE_LOCK | Yes +// Transition | Invokes xBusyHandler +// -------------------------------------------------------- +// NO_LOCK -> SHARED_LOCK | Yes +// SHARED_LOCK -> RESERVED_LOCK | No +// SHARED_LOCK -> EXCLUSIVE_LOCK | No +// RESERVED_LOCK -> EXCLUSIVE_LOCK | Yes // // If the busy-handler callback returns non-zero, the lock is // retried. If it returns zero, then the SQLITE_BUSY error is // returned to the caller of the pager API function. -func Xsqlite3PagerSetBusyHandler(tls *libc.TLS, pPager uintptr, xBusyHandler uintptr, pBusyHandlerArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56874:21: */ +func Xsqlite3PagerSetBusyHandler(tls *libc.TLS, pPager uintptr, xBusyHandler uintptr, pBusyHandlerArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57514:21: */ var ap uintptr (*Pager)(unsafe.Pointer(pPager)).FxBusyHandler = xBusyHandler (*Pager)(unsafe.Pointer(pPager)).FpBusyHandlerArg = pBusyHandlerArg - ap = pPager + 224 + ap = pPager + 232 Xsqlite3OsFileControlHint(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, SQLITE_FCNTL_BUSYHANDLER, ap) } @@ -80077,12 +80166,12 @@ func Xsqlite3PagerSetBusyHandler(tls *libc.TLS, pPager uintptr, xBusyHandler uin // // Otherwise, if all of the following are true: // -// * the new page size (value of *pPageSize) is valid (a power +// - the new page size (value of *pPageSize) is valid (a power // of two between 512 and SQLITE_MAX_PAGE_SIZE, inclusive), and // -// * there are no outstanding page references, and +// - there are no outstanding page references, and // -// * the database is either not an in-memory database or it is +// - the database is either not an in-memory database or it is // an in-memory database that currently consists of zero pages. // // then the pager object page size is set to *pPageSize. @@ -80096,7 +80185,7 @@ func Xsqlite3PagerSetBusyHandler(tls *libc.TLS, pPager uintptr, xBusyHandler uin // conditions above is not true, the pager was in error state when this // function was called, or because the memory allocation attempt failed, // then *pPageSize is set to the old, retained page size before returning. -func Xsqlite3PagerSetPagesize(tls *libc.TLS, pPager uintptr, pPageSize uintptr, nReserve int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56918:20: */ +func Xsqlite3PagerSetPagesize(tls *libc.TLS, pPager uintptr, pPageSize uintptr, nReserve int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57558:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -80142,6 +80231,7 @@ func Xsqlite3PagerSetPagesize(tls *libc.TLS, pPager uintptr, pPageSize uintptr, (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace = pNew (*Pager)(unsafe.Pointer(pPager)).FdbSize = Pgno((*(*I64)(unsafe.Pointer(bp)) + I64(pageSize) - int64(1)) / I64(pageSize)) (*Pager)(unsafe.Pointer(pPager)).FpageSize = I64(pageSize) + (*Pager)(unsafe.Pointer(pPager)).FlckPgno = U32(Xsqlite3PendingByte)/pageSize + Pgno(1) } else { Xsqlite3PageFree(tls, pNew) } @@ -80165,7 +80255,7 @@ func Xsqlite3PagerSetPagesize(tls *libc.TLS, pPager uintptr, pPageSize uintptr, // during rollback and will be overwritten whenever a rollback // occurs. But other modules are free to use it too, as long as // no rollbacks are happening. -func Xsqlite3PagerTempSpace(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56986:21: */ +func Xsqlite3PagerTempSpace(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57627:21: */ return (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace } @@ -80174,7 +80264,7 @@ func Xsqlite3PagerTempSpace(tls *libc.TLS, pPager uintptr) uintptr { /* testdata // maximum page count below the current size of the database. // // Regardless of mxPage, return the current maximum page count. -func Xsqlite3PagerMaxPageCount(tls *libc.TLS, pPager uintptr, mxPage Pgno) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:56997:21: */ +func Xsqlite3PagerMaxPageCount(tls *libc.TLS, pPager uintptr, mxPage Pgno) Pgno { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57638:21: */ if mxPage > Pgno(0) { (*Pager)(unsafe.Pointer(pPager)).FmxPgno = mxPage } @@ -80205,7 +80295,7 @@ func Xsqlite3PagerMaxPageCount(tls *libc.TLS, pPager uintptr, mxPage Pgno) Pgno // If any IO error apart from SQLITE_IOERR_SHORT_READ is encountered, // the error code is returned to the caller and the contents of the // output buffer undefined. -func Xsqlite3PagerReadFileheader(tls *libc.TLS, pPager uintptr, N int32, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57047:20: */ +func Xsqlite3PagerReadFileheader(tls *libc.TLS, pPager uintptr, N int32, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57688:20: */ var rc int32 = SQLITE_OK libc.Xmemset(tls, pDest, 0, uint64(N)) @@ -80228,7 +80318,7 @@ func Xsqlite3PagerReadFileheader(tls *libc.TLS, pPager uintptr, N int32, pDest u // // However, if the file is between 1 and <page-size> bytes in size, then // this is considered a 1 page file. -func Xsqlite3PagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57075:21: */ +func Xsqlite3PagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57716:21: */ *(*int32)(unsafe.Pointer(pnPage)) = int32((*Pager)(unsafe.Pointer(pPager)).FdbSize) } @@ -80245,7 +80335,7 @@ func Xsqlite3PagerPagecount(tls *libc.TLS, pPager uintptr, pnPage uintptr) { /* // Return SQLITE_OK on success and an error code if we cannot obtain // the lock. If the lock is obtained successfully, set the Pager.state // variable to locktype before returning. -func pager_wait_on_lock(tls *libc.TLS, pPager uintptr, locktype int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57096:12: */ +func pager_wait_on_lock(tls *libc.TLS, pPager uintptr, locktype int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57737:12: */ var rc int32 // Return code // Check that this is either a no-op (because the requested lock is @@ -80290,7 +80380,7 @@ func pager_wait_on_lock(tls *libc.TLS, pPager uintptr, locktype int32) int32 { / // Once this function has been called, the transaction must either be // rolled back or committed. It is not safe to call this function and // then continue writing to the database. -func Xsqlite3PagerTruncateImage(tls *libc.TLS, pPager uintptr, nPage Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57167:21: */ +func Xsqlite3PagerTruncateImage(tls *libc.TLS, pPager uintptr, nPage Pgno) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57808:21: */ (*Pager)(unsafe.Pointer(pPager)).FdbSize = nPage @@ -80317,7 +80407,7 @@ func Xsqlite3PagerTruncateImage(tls *libc.TLS, pPager uintptr, nPage Pgno) { /* // // If everything goes as planned, SQLITE_OK is returned. Otherwise, // an SQLite error code. -func pagerSyncHotJournal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57198:12: */ +func pagerSyncHotJournal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57839:12: */ var rc int32 = SQLITE_OK if !(int32((*Pager)(unsafe.Pointer(pPager)).FnoSync) != 0) { rc = Xsqlite3OsSync(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd, SQLITE_SYNC_NORMAL) @@ -80336,7 +80426,7 @@ func pagerSyncHotJournal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqli // // Page references obtained by calling this function should be released // by calling pagerReleaseMapPage(). -func pagerAcquireMapPage(tls *libc.TLS, pPager uintptr, pgno Pgno, pData uintptr, ppPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57220:12: */ +func pagerAcquireMapPage(tls *libc.TLS, pPager uintptr, pgno Pgno, pData uintptr, ppPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57861:12: */ var p uintptr // Memory mapped page to return if (*Pager)(unsafe.Pointer(pPager)).FpMmapFreelist != 0 { @@ -80366,7 +80456,7 @@ func pagerAcquireMapPage(tls *libc.TLS, pPager uintptr, pgno Pgno, pData uintptr // Release a reference to page pPg. pPg must have been returned by an // earlier call to pagerAcquireMapPage(). -func pagerReleaseMapPage(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57264:13: */ +func pagerReleaseMapPage(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57905:13: */ var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager (*Pager)(unsafe.Pointer(pPager)).FnMmapOut-- (*PgHdr)(unsafe.Pointer(pPg)).FpDirty = (*Pager)(unsafe.Pointer(pPager)).FpMmapFreelist @@ -80376,7 +80466,7 @@ func pagerReleaseMapPage(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalga } // Free all PgHdr objects stored in the Pager.pMmapFreelist list. -func pagerFreeMapHdrs(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57277:13: */ +func pagerFreeMapHdrs(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57918:13: */ var p uintptr var pNext uintptr for p = (*Pager)(unsafe.Pointer(pPager)).FpMmapFreelist; p != 0; p = pNext { @@ -80389,7 +80479,7 @@ func pagerFreeMapHdrs(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalga // under the pager. Return SQLITE_OK if the database is still where it ought // to be on disk. Return non-zero (SQLITE_READONLY_DBMOVED or some other error // code from sqlite3OsAccess()) if the database has gone missing. -func databaseIsUnmoved(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57291:12: */ +func databaseIsUnmoved(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57932:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -80427,7 +80517,7 @@ func databaseIsUnmoved(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite // is made to roll it back. If an error occurs during the rollback // a hot journal may be left in the filesystem but no error is returned // to the caller. -func Xsqlite3PagerClose(tls *libc.TLS, pPager uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57325:20: */ +func Xsqlite3PagerClose(tls *libc.TLS, pPager uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:57966:20: */ var pTmp uintptr = (*Pager)(unsafe.Pointer(pPager)).FpTmpSpace Xsqlite3BeginBenignMalloc(tls) @@ -80476,7 +80566,7 @@ func Xsqlite3PagerClose(tls *libc.TLS, pPager uintptr, db uintptr) int32 { /* te } // Increment the reference count for page pPg. -func Xsqlite3PagerRef(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57394:21: */ +func Xsqlite3PagerRef(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58035:21: */ Xsqlite3PcacheRef(tls, pPg) } @@ -80488,32 +80578,32 @@ func Xsqlite3PagerRef(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamat // Otherwise, the actions required depend on the journal-mode and the // device characteristics of the file-system, as follows: // -// * If the journal file is an in-memory journal file, no action need +// - If the journal file is an in-memory journal file, no action need // be taken. // -// * Otherwise, if the device does not support the SAFE_APPEND property, +// - Otherwise, if the device does not support the SAFE_APPEND property, // then the nRec field of the most recently written journal header // is updated to contain the number of journal records that have // been written following it. If the pager is operating in full-sync // mode, then the journal file is synced before this field is updated. // -// * If the device does not support the SEQUENTIAL property, then +// - If the device does not support the SEQUENTIAL property, then // journal file is synced. // // Or, in pseudo-code: // -// if( NOT <in-memory journal> ){ -// if( NOT SAFE_APPEND ){ -// if( <full-sync mode> ) xSync(<journal file>); -// <update nRec field> -// } -// if( NOT SEQUENTIAL ) xSync(<journal file>); -// } +// if( NOT <in-memory journal> ){ +// if( NOT SAFE_APPEND ){ +// if( <full-sync mode> ) xSync(<journal file>); +// <update nRec field> +// } +// if( NOT SEQUENTIAL ) xSync(<journal file>); +// } // // If successful, this routine clears the PGHDR_NEED_SYNC flag of every // page currently held in memory before returning SQLITE_OK. If an IO // error is encountered, then the IO error code is returned to the caller. -func syncJournal(tls *libc.TLS, pPager uintptr, newHdr int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57433:12: */ +func syncJournal(tls *libc.TLS, pPager uintptr, newHdr int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58074:12: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -80627,7 +80717,7 @@ func syncJournal(tls *libc.TLS, pPager uintptr, newHdr int32) int32 { /* testdat return SQLITE_OK } -var zerobyte U8 = U8(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57484:27 */ +var zerobyte U8 = U8(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58125:27 */ // The argument is the first in a linked list of dirty pages connected // by the PgHdr.pDirty pointer. This function writes each one of the @@ -80648,8 +80738,8 @@ var zerobyte U8 = U8(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57484: // the pages are written out to the database file in list order. Writing // a page is skipped if it meets either of the following criteria: // -// * The page number is greater than Pager.dbSize, or -// * The PGHDR_DONT_WRITE flag is set on the page. +// - The page number is greater than Pager.dbSize, or +// - The PGHDR_DONT_WRITE flag is set on the page. // // If writing out a page causes the database file to grow, Pager.dbFileSize // is updated accordingly. If page 1 is written out, then the value cached @@ -80659,7 +80749,7 @@ var zerobyte U8 = U8(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57484: // If everything is successful, SQLITE_OK is returned. If an IO error // occurs, an IO error code is returned. Or, if the EXCLUSIVE lock cannot // be obtained, SQLITE_BUSY is returned. -func pager_write_pagelist(tls *libc.TLS, pPager uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57576:12: */ +func pager_write_pagelist(tls *libc.TLS, pPager uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58217:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -80718,7 +80808,7 @@ func pager_write_pagelist(tls *libc.TLS, pPager uintptr, pList uintptr) int32 { if pgno > (*Pager)(unsafe.Pointer(pPager)).FdbFileSize { (*Pager)(unsafe.Pointer(pPager)).FdbFileSize = pgno } - *(*int32)(unsafe.Pointer(pPager + 240 + 2*4))++ + *(*int32)(unsafe.Pointer(pPager + 248 + 2*4))++ // Update any backup objects copying the contents of this pager. Xsqlite3BackupUpdate(tls, (*Pager)(unsafe.Pointer(pPager)).FpBackup, pgno, (*PgHdr)(unsafe.Pointer(pList)).FpData) @@ -80739,7 +80829,7 @@ func pager_write_pagelist(tls *libc.TLS, pPager uintptr, pList uintptr) int32 { // SQLITE_OK is returned if everything goes according to plan. An // SQLITE_IOERR_XXX error code is returned if a call to sqlite3OsOpen() // fails. -func openSubJournal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57667:12: */ +func openSubJournal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58308:12: */ var rc int32 = SQLITE_OK if !((*Sqlite3_file)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).Fsjfd)).FpMethods != uintptr(0)) { var flags int32 = SQLITE_OPEN_SUBJOURNAL | SQLITE_OPEN_READWRITE | @@ -80763,7 +80853,7 @@ func openSubJournal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-am // error code if the attempt to write to the sub-journal fails, or // SQLITE_NOMEM if a malloc fails while setting a bit in a savepoint // bitvec. -func subjournalPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57693:12: */ +func subjournalPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58334:12: */ var rc int32 = SQLITE_OK var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager if int32((*Pager)(unsafe.Pointer(pPager)).FjournalMode) != PAGER_JOURNALMODE_OFF { @@ -80794,7 +80884,7 @@ func subjournalPage(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalg return rc } -func subjournalPageIfRequired(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57729:12: */ +func subjournalPageIfRequired(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58370:12: */ if subjRequiresPage(tls, pPg) != 0 { return subjournalPage(tls, pPg) } else { @@ -80820,7 +80910,7 @@ func subjournalPageIfRequired(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sq // page clean, the IO error code is returned. If the page cannot be // made clean for some other reason, but no error occurs, then SQLITE_OK // is returned by sqlite3PcacheMakeClean() is not called. -func pagerStress(tls *libc.TLS, p uintptr, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57756:12: */ +func pagerStress(tls *libc.TLS, p uintptr, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58397:12: */ var pPager uintptr = p var rc int32 = SQLITE_OK @@ -80849,7 +80939,7 @@ func pagerStress(tls *libc.TLS, p uintptr, pPg uintptr) int32 { /* testdata/sqli return SQLITE_OK } - *(*int32)(unsafe.Pointer(pPager + 240 + 3*4))++ + *(*int32)(unsafe.Pointer(pPager + 248 + 3*4))++ (*PgHdr)(unsafe.Pointer(pPg)).FpDirty = uintptr(0) if (*Pager)(unsafe.Pointer(pPager)).FpWal != uintptr(0) { // Write a single frame for this page to the log. @@ -80882,7 +80972,7 @@ func pagerStress(tls *libc.TLS, p uintptr, pPg uintptr) int32 { /* testdata/sqli } // Flush all unreferenced dirty pages to disk. -func Xsqlite3PagerFlush(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57833:20: */ +func Xsqlite3PagerFlush(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58474:20: */ var rc int32 = (*Pager)(unsafe.Pointer(pPager)).FerrCode if !(int32((*Pager)(unsafe.Pointer(pPager)).FmemDb) != 0) { var pList uintptr = Xsqlite3PcacheDirtyList(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache) @@ -80929,7 +81019,7 @@ func Xsqlite3PagerFlush(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlit // and error code returned. This function may return SQLITE_NOMEM // (sqlite3Malloc() is used to allocate memory), SQLITE_CANTOPEN or // various SQLITE_IO_XXX errors. -func Xsqlite3PagerOpen(tls *libc.TLS, pVfs uintptr, ppPager uintptr, zFilename uintptr, nExtra int32, flags int32, vfsFlags int32, xReinit uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:57882:20: */ +func Xsqlite3PagerOpen(tls *libc.TLS, pVfs uintptr, ppPager uintptr, zFilename uintptr, nExtra int32, flags int32, vfsFlags int32, xReinit uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58523:20: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -81055,7 +81145,7 @@ __11: // bytes in length. This means the database cannot be opened, // as it will not be possible to open the journal file or even // check for a hot-journal before reading. - rc = Xsqlite3CantopenError(tls, 57969) + rc = Xsqlite3CantopenError(tls, 58610) __12: ; if !(rc != SQLITE_OK) { @@ -81163,7 +81253,7 @@ __15: (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPager */)))).FzJournal = pPtr libc.Xmemcpy(tls, pPtr, zPathname, uint64(nPathname)) pPtr += uintptr(nPathname) - libc.Xmemcpy(tls, pPtr, ts+5224, uint64(8)) + libc.Xmemcpy(tls, pPtr, ts+5259, uint64(8)) pPtr += uintptr(8 + 1) goto __19 __18: @@ -81178,7 +81268,7 @@ __19: (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPager */)))).FzWal = pPtr libc.Xmemcpy(tls, pPtr, zPathname, uint64(nPathname)) pPtr += uintptr(nPathname) - libc.Xmemcpy(tls, pPtr, ts+5233, uint64(4)) + libc.Xmemcpy(tls, pPtr, ts+5268, uint64(4)) pPtr += uintptr(4 + 1) goto __21 __20: @@ -81238,9 +81328,9 @@ __27: ; __26: ; - (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPager */)))).FnoLock = U8(Xsqlite3_uri_boolean(tls, (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPager */)))).FzFilename, ts+5238, 0)) + (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPager */)))).FnoLock = U8(Xsqlite3_uri_boolean(tls, (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPager */)))).FzFilename, ts+5273, 0)) if !(iDc&SQLITE_IOCAP_IMMUTABLE != 0 || - Xsqlite3_uri_boolean(tls, (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, ts+5245, 0) != 0) { + Xsqlite3_uri_boolean(tls, (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, ts+5280, 0) != 0) { goto __30 } vfsFlags = vfsFlags | SQLITE_OPEN_READONLY @@ -81374,7 +81464,7 @@ __37: // Return the sqlite3_file for the main database given the name // of the corresonding WAL or Journal name as passed into // xOpen. -func Xsqlite3_database_file_object(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58254:25: */ +func Xsqlite3_database_file_object(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58895:25: */ var pPager uintptr for int32(*(*int8)(unsafe.Pointer(zName + libc.UintptrFromInt32(-1)))) != 0 || int32(*(*int8)(unsafe.Pointer(zName + libc.UintptrFromInt32(-2)))) != 0 || int32(*(*int8)(unsafe.Pointer(zName + libc.UintptrFromInt32(-3)))) != 0 || int32(*(*int8)(unsafe.Pointer(zName + libc.UintptrFromInt32(-4)))) != 0 { zName-- @@ -81389,10 +81479,10 @@ func Xsqlite3_database_file_object(tls *libc.TLS, zName uintptr) uintptr { /* te // needs to be played back. According to this function, a hot-journal // file exists if the following criteria are met: // -// * The journal file exists in the file system, and -// * No process holds a RESERVED or greater lock on the database file, and -// * The database file itself is greater than 0 bytes in size, and -// * The first byte of the journal file exists and is not 0x00. +// - The journal file exists in the file system, and +// - No process holds a RESERVED or greater lock on the database file, and +// - The database file itself is greater than 0 bytes in size, and +// - The first byte of the journal file exists and is not 0x00. // // If the current size of the database file is 0 but a journal file // exists, that is probably an old journal left over from a prior @@ -81412,7 +81502,7 @@ func Xsqlite3_database_file_object(tls *libc.TLS, zName uintptr) uintptr { /* te // set to 0 and SQLITE_OK returned. If an IO error occurs while trying // to determine whether or not a hot-journal file exists, the IO error // code is returned and the value of *pExists is undefined. -func hasHotJournal(tls *libc.TLS, pPager uintptr, pExists uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58295:12: */ +func hasHotJournal(tls *libc.TLS, pPager uintptr, pExists uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:58936:12: */ bp := tls.Alloc(17) defer tls.Free(17) @@ -81505,25 +81595,25 @@ func hasHotJournal(tls *libc.TLS, pPager uintptr, pExists uintptr) int32 { /* te // // The following operations are also performed by this function. // -// 1) If the pager is currently in PAGER_OPEN state (no lock held -// on the database file), then an attempt is made to obtain a -// SHARED lock on the database file. Immediately after obtaining -// the SHARED lock, the file-system is checked for a hot-journal, -// which is played back if present. Following any hot-journal -// rollback, the contents of the cache are validated by checking -// the 'change-counter' field of the database file header and -// discarded if they are found to be invalid. -// -// 2) If the pager is running in exclusive-mode, and there are currently -// no outstanding references to any pages, and is in the error state, -// then an attempt is made to clear the error state by discarding -// the contents of the page cache and rolling back any open journal -// file. +// 1. If the pager is currently in PAGER_OPEN state (no lock held +// on the database file), then an attempt is made to obtain a +// SHARED lock on the database file. Immediately after obtaining +// the SHARED lock, the file-system is checked for a hot-journal, +// which is played back if present. Following any hot-journal +// rollback, the contents of the cache are validated by checking +// the 'change-counter' field of the database file header and +// discarded if they are found to be invalid. +// +// 2. If the pager is running in exclusive-mode, and there are currently +// no outstanding references to any pages, and is in the error state, +// then an attempt is made to clear the error state by discarding +// the contents of the page cache and rolling back any open journal +// file. // // If everything is successful, SQLITE_OK is returned. If an IO error // occurs while locking the database, checking for a hot-journal file or // rolling back a journal file, the IO error code is returned. -func Xsqlite3PagerSharedLock(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58415:20: */ +func Xsqlite3PagerSharedLock(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59056:20: */ bp := tls.Alloc(28) defer tls.Free(28) @@ -81649,7 +81739,7 @@ __7: if !(rc == SQLITE_OK && *(*int32)(unsafe.Pointer(bp + 8))&SQLITE_OPEN_READONLY != 0) { goto __10 } - rc = Xsqlite3CantopenError(tls, 58499) + rc = Xsqlite3CantopenError(tls, 59140) Xsqlite3OsClose(tls, (*Pager)(unsafe.Pointer(pPager)).Fjfd) __10: ; @@ -81798,7 +81888,7 @@ __24: // Except, in locking_mode=EXCLUSIVE when there is nothing to in // the rollback journal, the unlock is not performed and there is // nothing to rollback, so this routine is a no-op. -func pagerUnlockIfUnused(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58632:13: */ +func pagerUnlockIfUnused(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59273:13: */ if Xsqlite3PcacheRefCount(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache) == 0 { // because page1 is never memory mapped pagerUnlockAndRollback(tls, pPager) @@ -81812,9 +81902,9 @@ func pagerUnlockIfUnused(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-ama // There are different implementations of the getter method depending // on the current state of the pager. // -// getPageNormal() -- The normal getter -// getPageError() -- Used if the pager is in an error state -// getPageMmap() -- Used if memory-mapped I/O is enabled +// getPageNormal() -- The normal getter +// getPageError() -- Used if the pager is in an error state +// getPageMmap() -- Used if memory-mapped I/O is enabled // // If the requested page is already in the cache, it is returned. // Otherwise, a new page object is allocated and populated with data @@ -81836,11 +81926,11 @@ func pagerUnlockIfUnused(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-ama // If PAGER_GET_NOCONTENT is true, it means that we do not care about // the contents of the page. This occurs in two scenarios: // -// a) When reading a free-list leaf page from the database, and +// a) When reading a free-list leaf page from the database, and // -// b) When a savepoint is being rolled back and we need to load -// a new page into the cache to be filled with the data read -// from the savepoint journal. +// b) When a savepoint is being rolled back and we need to load +// a new page into the cache to be filled with the data read +// from the savepoint journal. // // If PAGER_GET_NOCONTENT is true, then the data returned is zeroed instead // of being read from the database. Additionally, the bits corresponding @@ -81860,7 +81950,7 @@ func pagerUnlockIfUnused(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-ama // has to go to disk, and could also playback an old journal if necessary. // Since Lookup() never goes to disk, it never has to deal with locks // or journal files. -func getPageNormal(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58696:12: */ +func getPageNormal(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59337:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -81873,7 +81963,7 @@ func getPageNormal(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, fla if !(pgno == Pgno(0)) { goto __1 } - return Xsqlite3CorruptError(tls, 58712) + return Xsqlite3CorruptError(tls, 59353) __1: ; *(*uintptr)(unsafe.Pointer(bp /* pBase */)) = Xsqlite3PcacheFetch(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache, pgno, 3) @@ -81906,7 +81996,7 @@ __2: // In this case the pcache already contains an initialized copy of // the page. Return without further ado. - *(*int32)(unsafe.Pointer(pPager + 240))++ + *(*int32)(unsafe.Pointer(pPager + 248))++ return SQLITE_OK goto __6 @@ -81916,10 +82006,10 @@ __5: // // (*) obsolete. Was: maximum page number is 2^31 // (2) Never try to fetch the locking page - if !(pgno == Pgno(I64(Xsqlite3PendingByte)/(*Pager)(unsafe.Pointer(pPager)).FpageSize+int64(1))) { + if !(pgno == (*Pager)(unsafe.Pointer(pPager)).FlckPgno) { goto __7 } - rc = Xsqlite3CorruptError(tls, 58744) + rc = Xsqlite3CorruptError(tls, 59385) goto pager_acquire_err __7: ; @@ -81962,7 +82052,7 @@ __11: goto __9 __8: ; - *(*int32)(unsafe.Pointer(pPager + 240 + 1*4))++ + *(*int32)(unsafe.Pointer(pPager + 248 + 1*4))++ rc = readDbPage(tls, pPg) if !(rc != SQLITE_OK) { goto __13 @@ -81991,7 +82081,7 @@ __14: } // The page getter for when memory-mapped I/O is enabled -func getPageMMap(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58798:12: */ +func getPageMMap(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59439:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -82011,7 +82101,7 @@ func getPageMMap(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags // test in the previous statement, and avoid testing pgno==0 in the // common case where pgno is large. if pgno <= Pgno(1) && pgno == Pgno(0) { - return Xsqlite3CorruptError(tls, 58823) + return Xsqlite3CorruptError(tls, 59464) } if bMmapOk != 0 && (*Pager)(unsafe.Pointer(pPager)).FpWal != uintptr(0) { @@ -82049,7 +82139,7 @@ func getPageMMap(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags } // The page getter method for when the pager is an error state -func getPageError(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58867:12: */ +func getPageError(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59508:12: */ _ = pgno _ = flags @@ -82058,7 +82148,7 @@ func getPageError(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flag } // Dispatch all page fetch requests to the appropriate getter method. -func Xsqlite3PagerGet(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58883:20: */ +func Xsqlite3PagerGet(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59524:20: */ // printf("PAGE %u\n", pgno); fflush(stdout); return (*struct { f func(*libc.TLS, uintptr, Pgno, uintptr, int32) int32 @@ -82074,7 +82164,7 @@ func Xsqlite3PagerGet(tls *libc.TLS, pPager uintptr, pgno Pgno, ppPage uintptr, // in the page if the page is not already in cache. This routine // returns NULL if the page is not in cache or if a disk I/O error // has ever happened. -func Xsqlite3PagerLookup(tls *libc.TLS, pPager uintptr, pgno Pgno) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58904:23: */ +func Xsqlite3PagerLookup(tls *libc.TLS, pPager uintptr, pgno Pgno) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59545:23: */ var pPage uintptr pPage = Xsqlite3PcacheFetch(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache, pgno, 0) @@ -82095,7 +82185,7 @@ func Xsqlite3PagerLookup(tls *libc.TLS, pPager uintptr, pgno Pgno) uintptr { /* // Use sqlite3PagerUnrefPageOne() to release page1. This latter routine // checks the total number of outstanding pages and if the number of // pages reaches zero it drops the database lock. -func Xsqlite3PagerUnrefNotNull(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58927:21: */ +func Xsqlite3PagerUnrefNotNull(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59568:21: */ if int32((*DbPage)(unsafe.Pointer(pPg)).Fflags)&PGHDR_MMAP != 0 { // Page1 is never memory mapped @@ -82107,13 +82197,13 @@ func Xsqlite3PagerUnrefNotNull(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite- } -func Xsqlite3PagerUnref(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58939:21: */ +func Xsqlite3PagerUnref(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59580:21: */ if pPg != 0 { Xsqlite3PagerUnrefNotNull(tls, pPg) } } -func Xsqlite3PagerUnrefPageOne(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58942:21: */ +func Xsqlite3PagerUnrefPageOne(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59583:21: */ var pPager uintptr // Page1 is never memory mapped @@ -82142,7 +82232,7 @@ func Xsqlite3PagerUnrefPageOne(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite- // Return SQLITE_OK if everything is successful. Otherwise, return // SQLITE_NOMEM if the attempt to allocate Pager.pInJournal fails, or // an IO error code if opening or writing the journal file fails. -func pager_open_journal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:58974:12: */ +func pager_open_journal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59615:12: */ var rc int32 = SQLITE_OK // Return code var pVfs uintptr = (*Pager)(unsafe.Pointer(pPager)).FpVfs // Local cache of vfs pointer @@ -82224,7 +82314,7 @@ func pager_open_journal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlit // sub-journal. If the subjInMemory argument is zero, then any required // sub-journal is implemented in-memory if pPager is an in-memory database, // or using a temporary file otherwise. -func Xsqlite3PagerBegin(tls *libc.TLS, pPager uintptr, exFlag int32, subjInMemory int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59063:20: */ +func Xsqlite3PagerBegin(tls *libc.TLS, pPager uintptr, exFlag int32, subjInMemory int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59704:20: */ var rc int32 = SQLITE_OK if (*Pager)(unsafe.Pointer(pPager)).FerrCode != 0 { @@ -82284,7 +82374,7 @@ func Xsqlite3PagerBegin(tls *libc.TLS, pPager uintptr, exFlag int32, subjInMemor } // Write page pPg onto the end of the rollback journal. -func pagerAddPageToRollbackJournal(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59132:28: */ +func pagerAddPageToRollbackJournal(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59773:28: */ var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager var rc int32 var cksum U32 @@ -82334,7 +82424,7 @@ func pagerAddPageToRollbackJournal(tls *libc.TLS, pPg uintptr) int32 { /* testda // one of the journals, the corresponding bit is set in the // Pager.pInJournal bitvec and the PagerSavepoint.pInSavepoint bitvecs // of any open savepoints as appropriate. -func pager_write(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59189:12: */ +func pager_write(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59830:12: */ var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager var rc int32 = SQLITE_OK @@ -82408,7 +82498,7 @@ func pager_write(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgama // Usually, the sector size is less than or equal to the page size, in which // case pages can be individually written. This routine only runs in the // exceptional case where the page size is smaller than the sector size. -func pagerWriteLargeSector(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59281:28: */ +func pagerWriteLargeSector(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:59922:28: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -82446,7 +82536,7 @@ func pagerWriteLargeSector(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlit // var pPage uintptr at bp, 8 if pg == (*PgHdr)(unsafe.Pointer(pPg)).Fpgno || !(Xsqlite3BitvecTest(tls, (*Pager)(unsafe.Pointer(pPager)).FpInJournal, pg) != 0) { - if pg != Pgno(I64(Xsqlite3PendingByte)/(*Pager)(unsafe.Pointer(pPager)).FpageSize+int64(1)) { + if pg != (*Pager)(unsafe.Pointer(pPager)).FlckPgno { rc = Xsqlite3PagerGet(tls, pPager, pg, bp, 0) if rc == SQLITE_OK { rc = pager_write(tls, *(*uintptr)(unsafe.Pointer(bp /* pPage */))) @@ -82496,7 +82586,7 @@ func pagerWriteLargeSector(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlit // // If an error occurs, SQLITE_NOMEM or an IO error code is returned // as appropriate. Otherwise, SQLITE_OK. -func Xsqlite3PagerWrite(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59375:20: */ +func Xsqlite3PagerWrite(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60016:20: */ var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager if int32((*PgHdr)(unsafe.Pointer(pPg)).Fflags)&PGHDR_WRITEABLE != 0 && (*Pager)(unsafe.Pointer(pPager)).FdbSize >= (*PgHdr)(unsafe.Pointer(pPg)).Fpgno { @@ -82537,7 +82627,7 @@ func Xsqlite3PagerWrite(tls *libc.TLS, pPg uintptr) int32 { /* testdata/sqlite-a // memory pressure forces page pPg out of the cache, the data does need // to be written out to disk so that it may be read back in if the // current transaction is rolled back. -func Xsqlite3PagerDontWrite(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59424:21: */ +func Xsqlite3PagerDontWrite(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60065:21: */ var pPager uintptr = (*PgHdr)(unsafe.Pointer(pPg)).FpPager if !(int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) != 0) && int32((*PgHdr)(unsafe.Pointer(pPg)).Fflags)&PGHDR_DIRTY != 0 && (*Pager)(unsafe.Pointer(pPager)).FnSavepoint == 0 { @@ -82567,7 +82657,7 @@ func Xsqlite3PagerDontWrite(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-ama // if isDirect is non-zero, then the database file is updated directly // by writing an updated version of page 1 using a call to the // sqlite3OsWrite() function. -func pager_incr_changecounter(tls *libc.TLS, pPager uintptr, isDirectMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59458:12: */ +func pager_incr_changecounter(tls *libc.TLS, pPager uintptr, isDirectMode int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60099:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -82611,7 +82701,7 @@ func pager_incr_changecounter(tls *libc.TLS, pPager uintptr, isDirectMode int32) zBuf = (*PgHdr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPgHdr */)))).FpData if rc == SQLITE_OK { rc = Xsqlite3OsWrite(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, zBuf, int32((*Pager)(unsafe.Pointer(pPager)).FpageSize), int64(0)) - *(*int32)(unsafe.Pointer(pPager + 240 + 2*4))++ + *(*int32)(unsafe.Pointer(pPager + 248 + 2*4))++ } if rc == SQLITE_OK { // Update the pager's copy of the change-counter. Otherwise, the @@ -82637,7 +82727,7 @@ func pager_incr_changecounter(tls *libc.TLS, pPager uintptr, isDirectMode int32) // // If successful, or if called on a pager for which it is a no-op, this // function returns SQLITE_OK. Otherwise, an IO error code is returned. -func Xsqlite3PagerSync(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59541:20: */ +func Xsqlite3PagerSync(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60182:20: */ var rc int32 = SQLITE_OK var pArg uintptr = zSuper rc = Xsqlite3OsFileControl(tls, (*Pager)(unsafe.Pointer(pPager)).Ffd, SQLITE_FCNTL_SYNC, pArg) @@ -82660,7 +82750,7 @@ func Xsqlite3PagerSync(tls *libc.TLS, pPager uintptr, zSuper uintptr) int32 { /* // successful, or the connection is in WAL mode, SQLITE_OK is returned. // Otherwise, either SQLITE_BUSY or an SQLITE_IOERR_XXX error code is // returned. -func Xsqlite3PagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59564:20: */ +func Xsqlite3PagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60205:20: */ var rc int32 = (*Pager)(unsafe.Pointer(pPager)).FerrCode if rc == SQLITE_OK { @@ -82679,11 +82769,11 @@ func Xsqlite3PagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* testda // // This routine ensures that: // -// * The database file change-counter is updated, -// * the journal is synced (unless the atomic-write optimization is used), -// * all dirty pages are written to the database file, -// * the database file is truncated (if required), and -// * the database file synced. +// - The database file change-counter is updated, +// - the journal is synced (unless the atomic-write optimization is used), +// - all dirty pages are written to the database file, +// - the database file is truncated (if required), and +// - the database file synced. // // The only thing that remains to commit the transaction is to finalize // (delete, truncate or zero the first part of) the journal file (or @@ -82696,7 +82786,7 @@ func Xsqlite3PagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* testda // is not synced. The caller must call sqlite3PagerSync() directly to // sync the database file before calling CommitPhaseTwo() to delete the // journal file in this case. -func Xsqlite3PagerCommitPhaseOne(tls *libc.TLS, pPager uintptr, zSuper uintptr, noSync int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59606:20: */ +func Xsqlite3PagerCommitPhaseOne(tls *libc.TLS, pPager uintptr, zSuper uintptr, noSync int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60247:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -82838,7 +82928,7 @@ __15: if !((*Pager)(unsafe.Pointer(pPager)).FdbSize > (*Pager)(unsafe.Pointer(pPager)).FdbFileSize) { goto __16 } - nNew = (*Pager)(unsafe.Pointer(pPager)).FdbSize - Pgno(libc.Bool32((*Pager)(unsafe.Pointer(pPager)).FdbSize == Pgno(I64(Xsqlite3PendingByte)/(*Pager)(unsafe.Pointer(pPager)).FpageSize+int64(1)))) + nNew = (*Pager)(unsafe.Pointer(pPager)).FdbSize - Pgno(libc.Bool32((*Pager)(unsafe.Pointer(pPager)).FdbSize == (*Pager)(unsafe.Pointer(pPager)).FlckPgno)) rc = pager_truncate(tls, pPager, nNew) if !(rc != SQLITE_OK) { @@ -82886,7 +82976,7 @@ __19: // // If an error occurs, an IO error code is returned and the pager // moves into the error state. Otherwise, SQLITE_OK is returned. -func Xsqlite3PagerCommitPhaseTwo(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59836:20: */ +func Xsqlite3PagerCommitPhaseTwo(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60477:20: */ var rc int32 = SQLITE_OK // Return code // This routine should not be called if a prior error has occurred. @@ -82929,12 +83019,12 @@ func Xsqlite3PagerCommitPhaseTwo(tls *libc.TLS, pPager uintptr) int32 { /* testd // // Otherwise, in rollback mode, this function performs two functions: // -// 1) It rolls back the journal file, restoring all database file and -// in-memory cache pages to the state they were in when the transaction -// was opened, and +// 1. It rolls back the journal file, restoring all database file and +// in-memory cache pages to the state they were in when the transaction +// was opened, and // -// 2) It finalizes the journal file, so that it is not used for hot -// rollback at any point in the future. +// 2. It finalizes the journal file, so that it is not used for hot +// rollback at any point in the future. // // Finalization of the journal file (task 2) is only performed if the // rollback is successful. @@ -82943,7 +83033,7 @@ func Xsqlite3PagerCommitPhaseTwo(tls *libc.TLS, pPager uintptr) int32 { /* testd // current transaction are either expelled from the cache or reverted to // their pre-transaction state by re-reading data from the database or // WAL files. The WAL transaction is then closed. -func Xsqlite3PagerRollback(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59902:20: */ +func Xsqlite3PagerRollback(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60543:20: */ var rc int32 = SQLITE_OK // Return code // PagerRollback() is a no-op if called in READER or OPEN state. If @@ -82987,13 +83077,13 @@ func Xsqlite3PagerRollback(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sq // Return TRUE if the database file is opened read-only. Return FALSE // if the database is (in theory) writable. -func Xsqlite3PagerIsreadonly(tls *libc.TLS, pPager uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59952:19: */ +func Xsqlite3PagerIsreadonly(tls *libc.TLS, pPager uintptr) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60593:19: */ return (*Pager)(unsafe.Pointer(pPager)).FreadOnly } // Return the approximate number of bytes of memory currently // used by the pager and its associated cache. -func Xsqlite3PagerMemUsed(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59969:20: */ +func Xsqlite3PagerMemUsed(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60610:20: */ var perPageSize int32 = int32((*Pager)(unsafe.Pointer(pPager)).FpageSize + I64((*Pager)(unsafe.Pointer(pPager)).FnExtra) + I64(int32(uint64(unsafe.Sizeof(PgHdr{}))+uint64(5)*uint64(unsafe.Sizeof(uintptr(0)))))) return int32(I64(perPageSize*Xsqlite3PcachePagecount(tls, (*Pager)(unsafe.Pointer(pPager)).FpPCache)+ @@ -83002,7 +83092,7 @@ func Xsqlite3PagerMemUsed(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sql } // Return the number of references to the specified page. -func Xsqlite3PagerPageRefcount(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:59980:20: */ +func Xsqlite3PagerPageRefcount(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60621:20: */ return Xsqlite3PcachePageRefcount(tls, pPage) } @@ -83015,17 +83105,17 @@ func Xsqlite3PagerPageRefcount(tls *libc.TLS, pPage uintptr) int32 { /* testdata // current cache hit or miss count, according to the value of eStat. If the // reset parameter is non-zero, the cache hit or miss count is zeroed before // returning. -func Xsqlite3PagerCacheStat(tls *libc.TLS, pPager uintptr, eStat int32, reset int32, pnVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60016:21: */ +func Xsqlite3PagerCacheStat(tls *libc.TLS, pPager uintptr, eStat int32, reset int32, pnVal uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60657:21: */ eStat = eStat - SQLITE_DBSTATUS_CACHE_HIT - *(*int32)(unsafe.Pointer(pnVal)) += *(*int32)(unsafe.Pointer(pPager + 240 + uintptr(eStat)*4)) + *(*int32)(unsafe.Pointer(pnVal)) += *(*int32)(unsafe.Pointer(pPager + 248 + uintptr(eStat)*4)) if reset != 0 { - *(*int32)(unsafe.Pointer(pPager + 240 + uintptr(eStat)*4)) = 0 + *(*int32)(unsafe.Pointer(pPager + 248 + uintptr(eStat)*4)) = 0 } } // Return true if this is an in-memory or temp-file backed pager. -func Xsqlite3PagerIsMemdb(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60039:20: */ +func Xsqlite3PagerIsMemdb(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60680:20: */ return libc.Bool32((*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 || (*Pager)(unsafe.Pointer(pPager)).FmemVfs != 0) } @@ -83037,7 +83127,7 @@ func Xsqlite3PagerIsMemdb(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sql // If a memory allocation fails, SQLITE_NOMEM is returned. If an error // occurs while opening the sub-journal file, then an IO error code is // returned. Otherwise, SQLITE_OK. -func pagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60053:28: */ +func pagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60694:28: */ var rc int32 = SQLITE_OK // Return code var nCurrent int32 = (*Pager)(unsafe.Pointer(pPager)).FnSavepoint // Current number of savepoints var ii int32 // Iterator variable @@ -83077,7 +83167,7 @@ func pagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) int32 { return rc } -func Xsqlite3PagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60099:20: */ +func Xsqlite3PagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60740:20: */ if nSavepoint > (*Pager)(unsafe.Pointer(pPager)).FnSavepoint && (*Pager)(unsafe.Pointer(pPager)).FuseJournal != 0 { return pagerOpenSavepoint(tls, pPager, nSavepoint) @@ -83115,7 +83205,7 @@ func Xsqlite3PagerOpenSavepoint(tls *libc.TLS, pPager uintptr, nSavepoint int32) // This function may return SQLITE_NOMEM if a memory allocation fails, // or an IO error code if an IO error occurs while rolling back a // savepoint. If no errors occur, SQLITE_OK is returned. -func Xsqlite3PagerSavepoint(tls *libc.TLS, pPager uintptr, op int32, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60141:20: */ +func Xsqlite3PagerSavepoint(tls *libc.TLS, pPager uintptr, op int32, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60782:20: */ var rc int32 = (*Pager)(unsafe.Pointer(pPager)).FerrCode if rc == SQLITE_OK && iSavepoint < (*Pager)(unsafe.Pointer(pPager)).FnSavepoint { @@ -83176,30 +83266,30 @@ func Xsqlite3PagerSavepoint(tls *libc.TLS, pPager uintptr, op int32, iSavepoint // // The return value to this routine is always safe to use with // sqlite3_uri_parameter() and sqlite3_filename_database() and friends. -func Xsqlite3PagerFilename(tls *libc.TLS, pPager uintptr, nullIfMemDb int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60222:27: */ +func Xsqlite3PagerFilename(tls *libc.TLS, pPager uintptr, nullIfMemDb int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60863:27: */ if nullIfMemDb != 0 && (*Pager)(unsafe.Pointer(pPager)).FmemDb != 0 { return uintptr(unsafe.Pointer(&zFake)) + 4 } return (*Pager)(unsafe.Pointer(pPager)).FzFilename } -var zFake = [8]int8{int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60223:21 */ +var zFake = [8]int8{int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60864:21 */ // Return the VFS structure for the pager. -func Xsqlite3PagerVfs(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60230:28: */ +func Xsqlite3PagerVfs(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60871:28: */ return (*Pager)(unsafe.Pointer(pPager)).FpVfs } // Return the file handle for the database file associated // with the pager. This might return NULL if the file has // not yet been opened. -func Xsqlite3PagerFile(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60239:29: */ +func Xsqlite3PagerFile(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60880:29: */ return (*Pager)(unsafe.Pointer(pPager)).Ffd } // Return the file handle for the journal file (if it exists). // This will be either the rollback journal or the WAL file. -func Xsqlite3PagerJrnlFile(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60247:29: */ +func Xsqlite3PagerJrnlFile(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60888:29: */ if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 { return Xsqlite3WalFile(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal) } @@ -83207,7 +83297,7 @@ func Xsqlite3PagerJrnlFile(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/ } // Return the full pathname of the journal file. -func Xsqlite3PagerJournalname(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60258:27: */ +func Xsqlite3PagerJournalname(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60899:27: */ return (*Pager)(unsafe.Pointer(pPager)).FzJournal } @@ -83234,7 +83324,7 @@ func Xsqlite3PagerJournalname(tls *libc.TLS, pPager uintptr) uintptr { /* testda // // This function may return SQLITE_NOMEM or an IO error code if an error // occurs. Otherwise, it returns SQLITE_OK. -func Xsqlite3PagerMovepage(tls *libc.TLS, pPager uintptr, pPg uintptr, pgno Pgno, isCommit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60288:20: */ +func Xsqlite3PagerMovepage(tls *libc.TLS, pPager uintptr, pPg uintptr, pgno Pgno, isCommit int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:60929:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -83296,7 +83386,7 @@ func Xsqlite3PagerMovepage(tls *libc.TLS, pPager uintptr, pPg uintptr, pgno Pgno if pPgOld != 0 { if int32((*PgHdr)(unsafe.Pointer(pPgOld)).FnRef) > 1 { Xsqlite3PagerUnrefNotNull(tls, pPgOld) - return Xsqlite3CorruptError(tls, 60362) + return Xsqlite3CorruptError(tls, 61003) } *(*U16)(unsafe.Pointer(pPg + 52)) |= U16(int32((*PgHdr)(unsafe.Pointer(pPgOld)).Fflags) & PGHDR_NEED_SYNC) if (*Pager)(unsafe.Pointer(pPager)).FtempFile != 0 { @@ -83356,21 +83446,21 @@ func Xsqlite3PagerMovepage(tls *libc.TLS, pPager uintptr, pPg uintptr, pgno Pgno // with a page number other than iNew. This function changes the page's // page number to iNew and sets the value of the PgHdr.flags field to // the value passed as the third parameter. -func Xsqlite3PagerRekey(tls *libc.TLS, pPg uintptr, iNew Pgno, flags U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60426:21: */ +func Xsqlite3PagerRekey(tls *libc.TLS, pPg uintptr, iNew Pgno, flags U16) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61067:21: */ (*DbPage)(unsafe.Pointer(pPg)).Fflags = flags Xsqlite3PcacheMove(tls, pPg, iNew) } // Return a pointer to the data for the specified page. -func Xsqlite3PagerGetData(tls *libc.TLS, pPg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60435:21: */ +func Xsqlite3PagerGetData(tls *libc.TLS, pPg uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61076:21: */ return (*DbPage)(unsafe.Pointer(pPg)).FpData } // Return a pointer to the Pager.nExtra bytes of "extra" space // allocated along with the specified page. -func Xsqlite3PagerGetExtra(tls *libc.TLS, pPg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60444:21: */ +func Xsqlite3PagerGetExtra(tls *libc.TLS, pPg uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61085:21: */ return (*DbPage)(unsafe.Pointer(pPg)).FpExtra } @@ -83382,7 +83472,7 @@ func Xsqlite3PagerGetExtra(tls *libc.TLS, pPg uintptr) uintptr { /* testdata/sql // The returned value is either PAGER_LOCKINGMODE_NORMAL or // PAGER_LOCKINGMODE_EXCLUSIVE, indicating the current (possibly updated) // locking-mode. -func Xsqlite3PagerLockingMode(tls *libc.TLS, pPager uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60458:20: */ +func Xsqlite3PagerLockingMode(tls *libc.TLS, pPager uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61099:20: */ if eMode >= 0 && !(int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) != 0) && !(Xsqlite3WalHeapMemory(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal) != 0) { (*Pager)(unsafe.Pointer(pPager)).FexclusiveMode = U8(eMode) @@ -83392,23 +83482,23 @@ func Xsqlite3PagerLockingMode(tls *libc.TLS, pPager uintptr, eMode int32) int32 // Set the journal-mode for this pager. Parameter eMode must be one of: // -// PAGER_JOURNALMODE_DELETE -// PAGER_JOURNALMODE_TRUNCATE -// PAGER_JOURNALMODE_PERSIST -// PAGER_JOURNALMODE_OFF -// PAGER_JOURNALMODE_MEMORY -// PAGER_JOURNALMODE_WAL +// PAGER_JOURNALMODE_DELETE +// PAGER_JOURNALMODE_TRUNCATE +// PAGER_JOURNALMODE_PERSIST +// PAGER_JOURNALMODE_OFF +// PAGER_JOURNALMODE_MEMORY +// PAGER_JOURNALMODE_WAL // // The journalmode is set to the value specified if the change is allowed. // The change may be disallowed for the following reasons: // -// * An in-memory database can only have its journal_mode set to _OFF -// or _MEMORY. +// - An in-memory database can only have its journal_mode set to _OFF +// or _MEMORY. // -// * Temporary databases cannot have _WAL journalmode. +// - Temporary databases cannot have _WAL journalmode. // // The returned indicate the current (possibly updated) journal-mode. -func Xsqlite3PagerSetJournalMode(tls *libc.TLS, pPager uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60491:20: */ +func Xsqlite3PagerSetJournalMode(tls *libc.TLS, pPager uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61132:20: */ var eOld U8 = (*Pager)(unsafe.Pointer(pPager)).FjournalMode // Prior journalmode // The eMode parameter is always valid @@ -83478,14 +83568,14 @@ func Xsqlite3PagerSetJournalMode(tls *libc.TLS, pPager uintptr, eMode int32) int } // Return the current journal mode. -func Xsqlite3PagerGetJournalMode(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60581:20: */ +func Xsqlite3PagerGetJournalMode(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61222:20: */ return int32((*Pager)(unsafe.Pointer(pPager)).FjournalMode) } // Return TRUE if the pager is in a state where it is OK to change the // journalmode. Journalmode changes can only happen when the database // is unmodified. -func Xsqlite3PagerOkToChangeJournalMode(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60590:20: */ +func Xsqlite3PagerOkToChangeJournalMode(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61231:20: */ if int32((*Pager)(unsafe.Pointer(pPager)).FeState) >= PAGER_WRITER_CACHEMOD { return 0 @@ -83500,7 +83590,7 @@ func Xsqlite3PagerOkToChangeJournalMode(tls *libc.TLS, pPager uintptr) int32 { / // // Setting the size limit to -1 means no limit is enforced. // An attempt to set a limit smaller than -1 is a no-op. -func Xsqlite3PagerJournalSizeLimit(tls *libc.TLS, pPager uintptr, iLimit I64) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60603:20: */ +func Xsqlite3PagerJournalSizeLimit(tls *libc.TLS, pPager uintptr, iLimit I64) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61244:20: */ if iLimit >= int64(-1) { (*Pager)(unsafe.Pointer(pPager)).FjournalSizeLimit = iLimit Xsqlite3WalLimit(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, iLimit) @@ -83512,12 +83602,12 @@ func Xsqlite3PagerJournalSizeLimit(tls *libc.TLS, pPager uintptr, iLimit I64) I6 // in backup.c maintains the content of this variable. This module // uses it opaquely as an argument to sqlite3BackupRestart() and // sqlite3BackupUpdate() only. -func Xsqlite3PagerBackupPtr(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60617:31: */ +func Xsqlite3PagerBackupPtr(tls *libc.TLS, pPager uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61258:31: */ return pPager + 112 } // Unless this is an in-memory or temporary database, clear the pager cache. -func Xsqlite3PagerClearCache(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60625:21: */ +func Xsqlite3PagerClearCache(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61266:21: */ if int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) == 0 { pager_reset(tls, pPager) @@ -83529,7 +83619,7 @@ func Xsqlite3PagerClearCache(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite // or wal_blocking_checkpoint() API functions. // // Parameter eMode is one of SQLITE_CHECKPOINT_PASSIVE, FULL or RESTART. -func Xsqlite3PagerCheckpoint(tls *libc.TLS, pPager uintptr, db uintptr, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60640:20: */ +func Xsqlite3PagerCheckpoint(tls *libc.TLS, pPager uintptr, db uintptr, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61281:20: */ var rc int32 = SQLITE_OK if (*Pager)(unsafe.Pointer(pPager)).FpWal == uintptr(0) && int32((*Pager)(unsafe.Pointer(pPager)).FjournalMode) == PAGER_JOURNALMODE_WAL { // This only happens when a database file is zero bytes in size opened and @@ -83540,7 +83630,7 @@ func Xsqlite3PagerCheckpoint(tls *libc.TLS, pPager uintptr, db uintptr, eMode in // including all ATTACHed databases. This seems expensive for a single // sqlite3_wal_checkpoint() call, but it happens very rarely. // https://sqlite.org/forum/forumpost/fd0f19d229156939 - Xsqlite3_exec(tls, db, ts+5255, uintptr(0), uintptr(0), uintptr(0)) + Xsqlite3_exec(tls, db, ts+5290, uintptr(0), uintptr(0), uintptr(0)) } if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 { rc = Xsqlite3WalCheckpoint(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, db, eMode, @@ -83557,13 +83647,13 @@ func Xsqlite3PagerCheckpoint(tls *libc.TLS, pPager uintptr, db uintptr, eMode in return rc } -func Xsqlite3PagerWalCallback(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60671:20: */ +func Xsqlite3PagerWalCallback(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61312:20: */ return Xsqlite3WalCallback(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal) } // Return true if the underlying VFS for the given pager supports the // primitives necessary for write-ahead logging. -func Xsqlite3PagerWalSupported(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60679:20: */ +func Xsqlite3PagerWalSupported(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61320:20: */ var pMethods uintptr = (*Sqlite3_file)(unsafe.Pointer((*Pager)(unsafe.Pointer(pPager)).Ffd)).FpMethods if (*Pager)(unsafe.Pointer(pPager)).FnoLock != 0 { return 0 @@ -83573,7 +83663,7 @@ func Xsqlite3PagerWalSupported(tls *libc.TLS, pPager uintptr) int32 { /* testdat // Attempt to take an exclusive lock on the database file. If a PENDING lock // is obtained instead, immediately release it. -func pagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60689:12: */ +func pagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61330:12: */ var rc int32 // Return code rc = pagerLockDb(tls, pPager, EXCLUSIVE_LOCK) @@ -83590,7 +83680,7 @@ func pagerExclusiveLock(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlit // exclusive-locking mode when this function is called, take an EXCLUSIVE // lock on the database file and use heap-memory to store the wal-index // in. Otherwise, use the normal shared-memory. -func pagerOpenWal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60709:12: */ +func pagerOpenWal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61350:12: */ var rc int32 = SQLITE_OK // If the pager is already in exclusive-mode, the WAL module will use @@ -83606,7 +83696,7 @@ func pagerOpenWal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amal if rc == SQLITE_OK { rc = Xsqlite3WalOpen(tls, (*Pager)(unsafe.Pointer(pPager)).FpVfs, (*Pager)(unsafe.Pointer(pPager)).Ffd, (*Pager)(unsafe.Pointer(pPager)).FzWal, int32((*Pager)(unsafe.Pointer(pPager)).FexclusiveMode), - (*Pager)(unsafe.Pointer(pPager)).FjournalSizeLimit, pPager+288) + (*Pager)(unsafe.Pointer(pPager)).FjournalSizeLimit, pPager+296) } pagerFixMaplimit(tls, pPager) @@ -83626,7 +83716,7 @@ func pagerOpenWal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amal // If the pager is open on a temp-file (or in-memory database), or if // the WAL file is already open, set *pbOpen to 1 and return SQLITE_OK // without doing anything. -func Xsqlite3PagerOpenWal(tls *libc.TLS, pPager uintptr, pbOpen uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60754:20: */ +func Xsqlite3PagerOpenWal(tls *libc.TLS, pPager uintptr, pbOpen uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61395:20: */ var rc int32 = SQLITE_OK // Return code if !(int32((*Pager)(unsafe.Pointer(pPager)).FtempFile) != 0) && !(int32((*Pager)(unsafe.Pointer(pPager)).FpWal) != 0) { @@ -83656,7 +83746,7 @@ func Xsqlite3PagerOpenWal(tls *libc.TLS, pPager uintptr, pbOpen uintptr) int32 { // EXCLUSIVE lock on the database file. If this cannot be obtained, an // error (SQLITE_BUSY) is returned and the log connection is not closed. // If successful, the EXCLUSIVE lock is not released before returning. -func Xsqlite3PagerCloseWal(tls *libc.TLS, pPager uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60793:20: */ +func Xsqlite3PagerCloseWal(tls *libc.TLS, pPager uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61434:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -83696,7 +83786,7 @@ func Xsqlite3PagerCloseWal(tls *libc.TLS, pPager uintptr, db uintptr) int32 { /* // If this is a WAL database, obtain a snapshot handle for the snapshot // currently open. Otherwise, return an error. -func Xsqlite3PagerSnapshotGet(tls *libc.TLS, pPager uintptr, ppSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60862:20: */ +func Xsqlite3PagerSnapshotGet(tls *libc.TLS, pPager uintptr, ppSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61503:20: */ var rc int32 = SQLITE_ERROR if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 { rc = Xsqlite3WalSnapshotGet(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, ppSnapshot) @@ -83707,7 +83797,7 @@ func Xsqlite3PagerSnapshotGet(tls *libc.TLS, pPager uintptr, ppSnapshot uintptr) // If this is a WAL database, store a pointer to pSnapshot. Next time a // read transaction is opened, attempt to read from the snapshot it // identifies. If this is not a WAL database, return an error. -func Xsqlite3PagerSnapshotOpen(tls *libc.TLS, pPager uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60875:20: */ +func Xsqlite3PagerSnapshotOpen(tls *libc.TLS, pPager uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61516:20: */ var rc int32 = SQLITE_OK if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 { Xsqlite3WalSnapshotOpen(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, pSnapshot) @@ -83719,7 +83809,7 @@ func Xsqlite3PagerSnapshotOpen(tls *libc.TLS, pPager uintptr, pSnapshot uintptr) // If this is a WAL database, call sqlite3WalSnapshotRecover(). If this // is not a WAL database, return an error. -func Xsqlite3PagerSnapshotRecover(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60892:20: */ +func Xsqlite3PagerSnapshotRecover(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61533:20: */ var rc int32 if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 { rc = Xsqlite3WalSnapshotRecover(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal) @@ -83739,7 +83829,7 @@ func Xsqlite3PagerSnapshotRecover(tls *libc.TLS, pPager uintptr) int32 { /* test // the CHECKPOINTER lock cannot be obtained, SQLITE_BUSY. If any error // occurs (any value other than SQLITE_OK is returned), the CHECKPOINTER // lock is released before returning. -func Xsqlite3PagerSnapshotCheck(tls *libc.TLS, pPager uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60914:20: */ +func Xsqlite3PagerSnapshotCheck(tls *libc.TLS, pPager uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61555:20: */ var rc int32 if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 { rc = Xsqlite3WalSnapshotCheck(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, pSnapshot) @@ -83751,7 +83841,7 @@ func Xsqlite3PagerSnapshotCheck(tls *libc.TLS, pPager uintptr, pSnapshot uintptr // Release a lock obtained by an earlier successful call to // sqlite3PagerSnapshotCheck(). -func Xsqlite3PagerSnapshotUnlock(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:60928:21: */ +func Xsqlite3PagerSnapshotUnlock(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61569:21: */ Xsqlite3WalSnapshotUnlock(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal) } @@ -84048,7 +84138,7 @@ type WalIndexHdr1 = struct { FaFrameCksum [2]U32 FaSalt [2]U32 FaCksum [2]U32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ //************* End of pager.c ********************************************** //************* Begin file wal.c ******************************************** @@ -84330,7 +84420,7 @@ type WalIndexHdr1 = struct { // byte. // Object declarations -type WalIndexHdr = WalIndexHdr1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61256:28 */ +type WalIndexHdr = WalIndexHdr1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61897:28 */ type WalIterator1 = struct { FiPrior U32 FnSegment int32 @@ -84342,18 +84432,18 @@ type WalIterator1 = struct { FnEntry int32 FiZero int32 } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61257:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61898:9 */ -type WalIterator = WalIterator1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61257:28 */ +type WalIterator = WalIterator1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61898:28 */ type WalCkptInfo1 = struct { FnBackfill U32 FaReadMark [5]U32 FaLock [8]U8 FnBackfillAttempted U32 FnotUsed0 U32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61258:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61899:9 */ -type WalCkptInfo = WalCkptInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61258:28 */ +type WalCkptInfo = WalCkptInfo1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61899:28 */ // Candidate values for Wal.exclusiveMode. @@ -84361,7 +84451,7 @@ type WalCkptInfo = WalCkptInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3. // Each page of the wal-index mapping contains a hash-table made up of // an array of HASHTABLE_NSLOT elements of the following type. -type Ht_slot = U16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61513:13 */ +type Ht_slot = U16 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62154:13 */ // This structure is used to implement an iterator that loops through // all frames in the WAL in database page order. Where two or more frames @@ -84371,9 +84461,9 @@ type Ht_slot = U16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61513:13 */ // // The internals of this structure are only accessed by: // -// walIteratorInit() - Create a new iterator, -// walIteratorNext() - Step an iterator, -// walIteratorFree() - Free an iterator. +// walIteratorInit() - Create a new iterator, +// walIteratorNext() - Step an iterator, +// walIteratorFree() - Free an iterator. // // This functionality is used by the checkpoint code (see walCheckpoint()). type WalSegment = struct { @@ -84383,7 +84473,7 @@ type WalSegment = struct { FaPgno uintptr FnEntry int32 FiZero int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61257:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:61898:9 */ // Define the parameters of the hash tables in the wal-index file. There // is a hash-table following every HASHTABLE_NPAGE page numbers in the @@ -84409,12 +84499,12 @@ type WalSegment = struct { // // Three possible result scenarios: // -// (1) rc==SQLITE_OK and *ppPage==Requested-Wal-Index-Page -// (2) rc>=SQLITE_ERROR and *ppPage==NULL -// (3) rc==SQLITE_OK and *ppPage==NULL // only if iPage==0 +// (1) rc==SQLITE_OK and *ppPage==Requested-Wal-Index-Page +// (2) rc>=SQLITE_ERROR and *ppPage==NULL +// (3) rc==SQLITE_OK and *ppPage==NULL // only if iPage==0 // // Scenario (3) can only occur when pWal->writeLock is false and iPage==0 -func walIndexPageRealloc(tls *libc.TLS, pWal uintptr, iPage int32, ppPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61584:28: */ +func walIndexPageRealloc(tls *libc.TLS, pWal uintptr, iPage int32, ppPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62225:28: */ var rc int32 = SQLITE_OK // Enlarge the pWal->apWiData[] array if required @@ -84460,7 +84550,7 @@ func walIndexPageRealloc(tls *libc.TLS, pWal uintptr, iPage int32, ppPage uintpt return rc } -func walIndexPage(tls *libc.TLS, pWal uintptr, iPage int32, ppPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61633:12: */ +func walIndexPage(tls *libc.TLS, pWal uintptr, iPage int32, ppPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62274:12: */ if (*Wal)(unsafe.Pointer(pWal)).FnWiData <= iPage || libc.AssignPtrUintptr(ppPage, *(*uintptr)(unsafe.Pointer((*Wal)(unsafe.Pointer(pWal)).FapWiData + uintptr(iPage)*8))) == uintptr(0) { return walIndexPageRealloc(tls, pWal, iPage, ppPage) } @@ -84468,13 +84558,13 @@ func walIndexPage(tls *libc.TLS, pWal uintptr, iPage int32, ppPage uintptr) int3 } // Return a pointer to the WalCkptInfo structure in the wal-index. -func walCkptInfo(tls *libc.TLS, pWal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61647:29: */ +func walCkptInfo(tls *libc.TLS, pWal uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62288:29: */ return *(*uintptr)(unsafe.Pointer((*Wal)(unsafe.Pointer(pWal)).FapWiData)) + 24*4 } // Return a pointer to the WalIndexHdr structure in the wal-index. -func walIndexHdr(tls *libc.TLS, pWal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61655:29: */ +func walIndexHdr(tls *libc.TLS, pWal uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62296:29: */ return *(*uintptr)(unsafe.Pointer((*Wal)(unsafe.Pointer(pWal)).FapWiData)) } @@ -84492,7 +84582,7 @@ func walIndexHdr(tls *libc.TLS, pWal uintptr) uintptr { /* testdata/sqlite-amalg // The checksum is written back into aOut[] before returning. // // nByte must be a positive multiple of 8. -func walChecksumBytes(tls *libc.TLS, nativeCksum int32, a uintptr, nByte int32, aIn uintptr, aOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61681:13: */ +func walChecksumBytes(tls *libc.TLS, nativeCksum int32, a uintptr, nByte int32, aIn uintptr, aOut uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62322:13: */ var s1 U32 var s2 U32 var aData uintptr = a @@ -84524,7 +84614,7 @@ func walChecksumBytes(tls *libc.TLS, nativeCksum int32, a uintptr, nByte int32, // If there is the possibility of concurrent access to the SHM file // from multiple threads and/or processes, then do a memory barrier. -func walShmBarrier(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61724:13: */ +func walShmBarrier(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62365:13: */ if int32((*Wal)(unsafe.Pointer(pWal)).FexclusiveMode) != WAL_HEAPMEMORY_MODE { Xsqlite3OsShmBarrier(tls, (*Wal)(unsafe.Pointer(pWal)).FpDbFd) } @@ -84539,7 +84629,7 @@ func walShmBarrier(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamatio // Write the header information in pWal->hdr into the wal-index. // // The checksum on pWal->hdr is updated before it is written. -func walIndexWriteHdr(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61748:28: */ +func walIndexWriteHdr(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62389:28: */ var aHdr uintptr = walIndexHdr(tls, pWal) var nCksum int32 = int32(uintptr(0) + 40) @@ -84556,14 +84646,14 @@ func walIndexWriteHdr(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgama // supplied by the caller. A frame-header is made up of a series of // 4-byte big-endian integers, as follows: // -// 0: Page number. -// 4: For commit records, the size of the database image in pages -// after the commit. For all other records, zero. -// 8: Salt-1 (copied from the wal-header) -// 12: Salt-2 (copied from the wal-header) -// 16: Checksum-1. -// 20: Checksum-2. -func walEncodeFrame(tls *libc.TLS, pWal uintptr, iPage U32, nTruncate U32, aData uintptr, aFrame uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61775:13: */ +// 0: Page number. +// 4: For commit records, the size of the database image in pages +// after the commit. For all other records, zero. +// 8: Salt-1 (copied from the wal-header) +// 12: Salt-2 (copied from the wal-header) +// 16: Checksum-1. +// 20: Checksum-2. +func walEncodeFrame(tls *libc.TLS, pWal uintptr, iPage U32, nTruncate U32, aData uintptr, aFrame uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62416:13: */ var nativeCksum int32 // True for native byte-order checksums var aCksum uintptr = pWal + 72 + 24 @@ -84586,7 +84676,7 @@ func walEncodeFrame(tls *libc.TLS, pWal uintptr, iPage U32, nTruncate U32, aData // Check to see if the frame with header in aFrame[] and content // in aData[] is valid. If it is a valid frame, fill *piPage and // *pnTruncate and return true. Return if the frame is not valid. -func walDecodeFrame(tls *libc.TLS, pWal uintptr, piPage uintptr, pnTruncate uintptr, aData uintptr, aFrame uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61806:12: */ +func walDecodeFrame(tls *libc.TLS, pWal uintptr, piPage uintptr, pnTruncate uintptr, aData uintptr, aFrame uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62447:12: */ var nativeCksum int32 // True for native byte-order checksums var aCksum uintptr = pWal + 72 + 24 var pgno U32 // Page number of the frame @@ -84628,7 +84718,7 @@ func walDecodeFrame(tls *libc.TLS, pWal uintptr, piPage uintptr, pnTruncate uint // through the unlocked state first. // // In locking_mode=EXCLUSIVE, all of these routines become no-ops. -func walLockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61885:12: */ +func walLockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62526:12: */ var rc int32 if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 { return SQLITE_OK @@ -84639,7 +84729,7 @@ func walLockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) int32 { /* testda return rc } -func walUnlockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61895:13: */ +func walUnlockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62536:13: */ if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 { return } @@ -84648,7 +84738,7 @@ func walUnlockShared(tls *libc.TLS, pWal uintptr, lockIdx int32) { /* testdata/s } -func walLockExclusive(tls *libc.TLS, pWal uintptr, lockIdx int32, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61901:12: */ +func walLockExclusive(tls *libc.TLS, pWal uintptr, lockIdx int32, n int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62542:12: */ var rc int32 if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 { return SQLITE_OK @@ -84659,7 +84749,7 @@ func walLockExclusive(tls *libc.TLS, pWal uintptr, lockIdx int32, n int32) int32 return rc } -func walUnlockExclusive(tls *libc.TLS, pWal uintptr, lockIdx int32, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61911:13: */ +func walUnlockExclusive(tls *libc.TLS, pWal uintptr, lockIdx int32, n int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62552:13: */ if (*Wal)(unsafe.Pointer(pWal)).FexclusiveMode != 0 { return } @@ -84671,12 +84761,12 @@ func walUnlockExclusive(tls *libc.TLS, pWal uintptr, lockIdx int32, n int32) { / // Compute a hash on a page number. The resulting hash value must land // between 0 and (HASHTABLE_NSLOT-1). The walHashNext() function advances // the hash to the next value in the event of a collision. -func walHash(tls *libc.TLS, iPage U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61924:12: */ +func walHash(tls *libc.TLS, iPage U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62565:12: */ return int32(iPage * U32(HASHTABLE_HASH_1) & U32(HASHTABLE_NPAGE*2-1)) } -func walNextHash(tls *libc.TLS, iPriorHash int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61929:12: */ +func walNextHash(tls *libc.TLS, iPriorHash int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62570:12: */ return (iPriorHash + 1) & (HASHTABLE_NPAGE*2 - 1) } @@ -84688,12 +84778,12 @@ type WalHashLoc1 = struct { FaPgno uintptr FiZero U32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61938:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62579:9 */ // An instance of the WalHashLoc object is used to describe the location // of a page hash table in the wal-index. This becomes the return value // from walHashGet(). -type WalHashLoc = WalHashLoc1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61938:27 */ +type WalHashLoc = WalHashLoc1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62579:27 */ // Return pointers to the hash table and page number array stored on // page iHash of the wal-index. The wal-index is broken into 32KB pages @@ -84707,7 +84797,7 @@ type WalHashLoc = WalHashLoc1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c: // // Finally, set pLoc->aPgno so that pLoc->aPgno[0] is the page number of the // first frame indexed by the hash table, frame (pLoc->iZero). -func walHashGet(tls *libc.TLS, pWal uintptr, iHash int32, pLoc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61959:12: */ +func walHashGet(tls *libc.TLS, pWal uintptr, iHash int32, pLoc uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62600:12: */ var rc int32 // Return code rc = walIndexPage(tls, pWal, iHash, pLoc+8) @@ -84730,14 +84820,14 @@ func walHashGet(tls *libc.TLS, pWal uintptr, iHash int32, pLoc uintptr) int32 { // and page-number array that contain entries corresponding to WAL frame // iFrame. The wal-index is broken up into 32KB pages. Wal-index pages // are numbered starting from 0. -func walFramePage(tls *libc.TLS, iFrame U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:61989:12: */ +func walFramePage(tls *libc.TLS, iFrame U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62630:12: */ var iHash int32 = int32((uint64(iFrame+U32(HASHTABLE_NPAGE)) - (uint64(HASHTABLE_NPAGE) - (uint64(unsafe.Sizeof(WalIndexHdr{}))*uint64(2)+uint64(unsafe.Sizeof(WalCkptInfo{})))/uint64(unsafe.Sizeof(U32(0)))) - uint64(1)) / uint64(HASHTABLE_NPAGE)) return iHash } // Return the page number associated with frame iFrame in this WAL. -func walFramePgno(tls *libc.TLS, pWal uintptr, iFrame U32) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62004:12: */ +func walFramePgno(tls *libc.TLS, pWal uintptr, iFrame U32) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62645:12: */ var iHash int32 = walFramePage(tls, iFrame) if iHash == 0 { return *(*U32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Wal)(unsafe.Pointer(pWal)).FapWiData)) + uintptr((uint64(unsafe.Sizeof(WalIndexHdr{}))*uint64(2)+uint64(unsafe.Sizeof(WalCkptInfo{})))/uint64(unsafe.Sizeof(U32(0)))+uint64(iFrame)-uint64(1))*4)) @@ -84755,7 +84845,7 @@ func walFramePgno(tls *libc.TLS, pWal uintptr, iFrame U32) U32 { /* testdata/sql // updated. Any later hash tables will be automatically cleared when // pWal->hdr.mxFrame advances to the point where those hash tables are // actually needed. -func walCleanupHash(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62024:13: */ +func walCleanupHash(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62665:13: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -84798,7 +84888,7 @@ func walCleanupHash(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamati // Set an entry in the wal-index that will map database page number // pPage into WAL frame iFrame. -func walIndexAppend(tls *libc.TLS, pWal uintptr, iFrame U32, iPage U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62086:12: */ +func walIndexAppend(tls *libc.TLS, pWal uintptr, iFrame U32, iPage U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62727:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -84839,7 +84929,7 @@ func walIndexAppend(tls *libc.TLS, pWal uintptr, iFrame U32, iPage U32) int32 { nCollide = idx for iKey = walHash(tls, iPage); *(*Ht_slot)(unsafe.Pointer((*WalHashLoc)(unsafe.Pointer(bp /* &sLoc */)).FaHash + uintptr(iKey)*2)) != 0; iKey = walNextHash(tls, iKey) { if libc.PostDecInt32(&nCollide, 1) == 0 { - return Xsqlite3CorruptError(tls, 62126) + return Xsqlite3CorruptError(tls, 62767) } } *(*U32)(unsafe.Pointer((*WalHashLoc)(unsafe.Pointer(bp /* &sLoc */)).FaPgno + uintptr(idx-1)*4)) = iPage @@ -84858,7 +84948,7 @@ func walIndexAppend(tls *libc.TLS, pWal uintptr, iFrame U32, iPage U32) int32 { // WAL_RECOVER_LOCK is also held so that other threads will know // that this thread is running recovery. If unable to establish // the necessary locks, this routine returns SQLITE_BUSY. -func walIndexRecover(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62175:12: */ +func walIndexRecover(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:62816:12: */ bp := tls.Alloc(80) defer tls.Free(80) @@ -84973,7 +85063,7 @@ __6: if !(version != U32(WAL_MAX_VERSION)) { goto __7 } - rc = Xsqlite3CantopenError(tls, 62258) + rc = Xsqlite3CantopenError(tls, 62899) goto finished __7: ; @@ -85163,7 +85253,7 @@ __24: goto __30 } Xsqlite3_log(tls, SQLITE_NOTICE|int32(1)<<8, - ts+5273, + ts+5308, libc.VaList(bp, (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame, (*Wal)(unsafe.Pointer(pWal)).FzWalName)) __30: ; @@ -85177,7 +85267,7 @@ recovery_error: } // Close an open wal-index. -func walIndexClose(tls *libc.TLS, pWal uintptr, isDelete int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62398:13: */ +func walIndexClose(tls *libc.TLS, pWal uintptr, isDelete int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63039:13: */ if int32((*Wal)(unsafe.Pointer(pWal)).FexclusiveMode) == WAL_HEAPMEMORY_MODE || (*Wal)(unsafe.Pointer(pWal)).FbShmUnreliable != 0 { var i int32 for i = 0; i < (*Wal)(unsafe.Pointer(pWal)).FnWiData; i++ { @@ -85203,7 +85293,7 @@ func walIndexClose(tls *libc.TLS, pWal uintptr, isDelete int32) { /* testdata/sq // If the log file is successfully opened, SQLITE_OK is returned and // *ppWal is set to point to a new WAL handle. If an error occurs, // an SQLite error code is returned and *ppWal is left unmodified. -func Xsqlite3WalOpen(tls *libc.TLS, pVfs uintptr, pDbFd uintptr, zWalName uintptr, bNoShm int32, mxWalSize I64, ppWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62426:20: */ +func Xsqlite3WalOpen(tls *libc.TLS, pVfs uintptr, pDbFd uintptr, zWalName uintptr, bNoShm int32, mxWalSize I64, ppWal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63067:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -85275,7 +85365,7 @@ func Xsqlite3WalOpen(tls *libc.TLS, pVfs uintptr, pDbFd uintptr, zWalName uintpt } // Change the size to which the WAL file is trucated on each reset. -func Xsqlite3WalLimit(tls *libc.TLS, pWal uintptr, iLimit I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62529:21: */ +func Xsqlite3WalLimit(tls *libc.TLS, pWal uintptr, iLimit I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63170:21: */ if pWal != 0 { (*Wal)(unsafe.Pointer(pWal)).FmxWalSize = iLimit } @@ -85289,7 +85379,7 @@ func Xsqlite3WalLimit(tls *libc.TLS, pWal uintptr, iLimit I64) { /* testdata/sql // // Return 0 on success. If there are no pages in the WAL with a page // number larger than *piPage, then return 1. -func walIteratorNext(tls *libc.TLS, p uintptr, piPage uintptr, piFrame uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62543:12: */ +func walIteratorNext(tls *libc.TLS, p uintptr, piPage uintptr, piFrame uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63184:12: */ var iMin U32 // Result pgno must be greater than iMin var iRet U32 = 0xFFFFFFFF // 0xffffffff is never a valid page number var i int32 // For looping through segments @@ -85321,8 +85411,8 @@ func walIteratorNext(tls *libc.TLS, p uintptr, piPage uintptr, piFrame uintptr) // aContent[aLeft[]] and aContent[aRight[]]. Upon entry, the following // is guaranteed for all J<K: // -// aContent[aLeft[J]] < aContent[aLeft[K]] -// aContent[aRight[J]] < aContent[aRight[K]] +// aContent[aLeft[J]] < aContent[aLeft[K]] +// aContent[aRight[J]] < aContent[aRight[K]] // // This routine overwrites aRight[] with a new (probably longer) sequence // of indices such that the aRight[] contains every index that appears in @@ -85333,10 +85423,10 @@ func walIteratorNext(tls *libc.TLS, p uintptr, piPage uintptr, piFrame uintptr) // aContent[aRight[X]] values will be unique too. But there might be // one or more combinations of X and Y such that // -// aLeft[X]!=aRight[Y] && aContent[aLeft[X]] == aContent[aRight[Y]] +// aLeft[X]!=aRight[Y] && aContent[aLeft[X]] == aContent[aRight[Y]] // // When that happens, omit the aLeft[X] and use the aRight[Y] index. -func walMerge(tls *libc.TLS, aContent uintptr, aLeft uintptr, nLeft int32, paRight uintptr, pnRight uintptr, aTmp uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62596:13: */ +func walMerge(tls *libc.TLS, aContent uintptr, aLeft uintptr, nLeft int32, paRight uintptr, pnRight uintptr, aTmp uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63237:13: */ var iLeft int32 = 0 // Current index in aLeft var iRight int32 = 0 // Current index in aRight var iOut int32 = 0 // Current index in output buffer @@ -85374,15 +85464,15 @@ func walMerge(tls *libc.TLS, aContent uintptr, aLeft uintptr, nLeft int32, paRig // The aList[] entries are indices into aContent[]. The values in // aList[] are to be sorted so that for all J<K: // -// aContent[aList[J]] < aContent[aList[K]] +// aContent[aList[J]] < aContent[aList[K]] // // For any X and Y such that // -// aContent[aList[X]] == aContent[aList[Y]] +// aContent[aList[X]] == aContent[aList[Y]] // // Keep the larger of the two values aList[X] and aList[Y] and discard // the smaller. -func walMergesort(tls *libc.TLS, aContent uintptr, aBuffer uintptr, aList uintptr, pnList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62653:13: */ +func walMergesort(tls *libc.TLS, aContent uintptr, aBuffer uintptr, aList uintptr, pnList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63294:13: */ bp := tls.Alloc(220) defer tls.Free(220) @@ -85428,10 +85518,10 @@ type Sublist = struct { FnList int32 F__ccgo_pad1 [4]byte FaList uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62659:3 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63300:3 */ // Free an iterator allocated by walIteratorInit(). -func walIteratorFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62716:13: */ +func walIteratorFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63357:13: */ Xsqlite3_free(tls, p) } @@ -85446,7 +85536,7 @@ func walIteratorFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation // // The calling routine should invoke walIteratorFree() to destroy the // WalIterator object when it has finished with it. -func walIteratorInit(tls *libc.TLS, pWal uintptr, nBackfill U32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62733:12: */ +func walIteratorInit(tls *libc.TLS, pWal uintptr, nBackfill U32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63374:12: */ bp := tls.Alloc(28) defer tls.Free(28) @@ -85530,7 +85620,7 @@ func walIteratorInit(tls *libc.TLS, pWal uintptr, nBackfill U32, pp uintptr) int // n. If the attempt fails and parameter xBusy is not NULL, then it is a // busy-handler function. Invoke it and retry the lock until either the // lock is successfully obtained or the busy-handler returns 0. -func walBusyLock(tls *libc.TLS, pWal uintptr, xBusy uintptr, pBusyArg uintptr, lockIdx int32, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62896:12: */ +func walBusyLock(tls *libc.TLS, pWal uintptr, xBusy uintptr, pBusyArg uintptr, lockIdx int32, n int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63537:12: */ var rc int32 for __ccgo := true; __ccgo; __ccgo = xBusy != 0 && rc == SQLITE_BUSY && (*struct { f func(*libc.TLS, uintptr) int32 @@ -85542,17 +85632,17 @@ func walBusyLock(tls *libc.TLS, pWal uintptr, xBusy uintptr, pBusyArg uintptr, l // The cache of the wal-index header must be valid to call this function. // Return the page-size in bytes used by the database. -func walPagesize(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62920:12: */ +func walPagesize(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63561:12: */ return int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)&0xfe00 + int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage)&0x0001<<16 } // The following is guaranteed when this function is called: // -// a) the WRITER lock is held, -// b) the entire log file has been checkpointed, and -// c) any existing readers are reading exclusively from the database -// file - there are no readers that may attempt to read a frame from -// the log file. +// a) the WRITER lock is held, +// b) the entire log file has been checkpointed, and +// c) any existing readers are reading exclusively from the database +// file - there are no readers that may attempt to read a frame from +// the log file. // // This function updates the shared-memory structures so that the next // client to write to the database (which may be this one) does so by @@ -85561,7 +85651,7 @@ func walPagesize(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgam // The value of parameter salt1 is used as the aSalt[1] value in the // new wal-index header. It should be passed a pseudo-random value (i.e. // one obtained from sqlite3_randomness()). -func walRestartHdr(tls *libc.TLS, pWal uintptr, salt1 U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62941:13: */ +func walRestartHdr(tls *libc.TLS, pWal uintptr, salt1 U32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63582:13: */ bp := tls.Alloc(4) defer tls.Free(4) *(*U32)(unsafe.Pointer(bp)) = salt1 @@ -85612,7 +85702,7 @@ func walRestartHdr(tls *libc.TLS, pWal uintptr, salt1 U32) { /* testdata/sqlite- // The caller must be holding sufficient locks to ensure that no other // checkpoint is running (in any other thread or process) at the same // time. -func walCheckpoint(tls *libc.TLS, pWal uintptr, db uintptr, eMode int32, xBusy uintptr, pBusyArg uintptr, sync_flags int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:62988:12: */ +func walCheckpoint(tls *libc.TLS, pWal uintptr, db uintptr, eMode int32, xBusy uintptr, pBusyArg uintptr, sync_flags int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63629:12: */ bp := tls.Alloc(36) defer tls.Free(36) @@ -85743,7 +85833,7 @@ __10: // database plus the amount of data in the wal file, plus the // maximum size of the pending-byte page (65536 bytes), then // must be corruption somewhere. - rc = Xsqlite3CorruptError(tls, 63072) + rc = Xsqlite3CorruptError(tls, 63713) goto __15 __14: Xsqlite3OsFileControlHint(tls, (*Wal)(unsafe.Pointer(pWal)).FpDbFd, SQLITE_FCNTL_SIZE_HINT, bp+16) @@ -85904,7 +85994,7 @@ walcheckpoint_out: // If the WAL file is currently larger than nMax bytes in size, truncate // it to exactly nMax bytes. If an error occurs while doing so, ignore it. -func walLimitSize(tls *libc.TLS, pWal uintptr, nMax I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63174:13: */ +func walLimitSize(tls *libc.TLS, pWal uintptr, nMax I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63815:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -85918,12 +86008,12 @@ func walLimitSize(tls *libc.TLS, pWal uintptr, nMax I64) { /* testdata/sqlite-am } Xsqlite3EndBenignMalloc(tls) if rx != 0 { - Xsqlite3_log(tls, rx, ts+5310, libc.VaList(bp, (*Wal)(unsafe.Pointer(pWal)).FzWalName)) + Xsqlite3_log(tls, rx, ts+5345, libc.VaList(bp, (*Wal)(unsafe.Pointer(pWal)).FzWalName)) } } // Close a connection to a log file. -func Xsqlite3WalClose(tls *libc.TLS, pWal uintptr, db uintptr, sync_flags int32, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63191:20: */ +func Xsqlite3WalClose(tls *libc.TLS, pWal uintptr, db uintptr, sync_flags int32, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63832:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -85995,7 +86085,7 @@ func Xsqlite3WalClose(tls *libc.TLS, pWal uintptr, db uintptr, sync_flags int32, // // If the checksum cannot be verified return non-zero. If the header // is read successfully and the checksum verified, return zero. -func walIndexTryHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63272:27: */ +func walIndexTryHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63913:27: */ bp := tls.Alloc(104) defer tls.Free(104) @@ -86064,7 +86154,7 @@ func walIndexTryHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* te // // If the wal-index header is successfully read, return SQLITE_OK. // Otherwise an SQLite error code. -func walIndexReadHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63342:12: */ +func walIndexReadHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:63983:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -86144,7 +86234,7 @@ func walIndexReadHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* t // sure the wal-index was not constructed with some future format that // this version of SQLite cannot understand. if badHdr == 0 && (*Wal)(unsafe.Pointer(pWal)).Fhdr.FiVersion != U32(WALINDEX_MAX_VERSION) { - rc = Xsqlite3CantopenError(tls, 63421) + rc = Xsqlite3CantopenError(tls, 64062) } if (*Wal)(unsafe.Pointer(pWal)).FbShmUnreliable != 0 { if rc != SQLITE_OK { @@ -86176,9 +86266,9 @@ func walIndexReadHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* t // // Precondition: // -// The *-wal file has been read and an appropriate wal-index has been -// constructed in pWal->apWiData[] using heap memory instead of shared -// memory. +// The *-wal file has been read and an appropriate wal-index has been +// constructed in pWal->apWiData[] using heap memory instead of shared +// memory. // // If this function returns SQLITE_OK, then the read transaction has // been successfully opened. In this case output variable (*pChanged) @@ -86189,7 +86279,7 @@ func walIndexReadHdr(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* t // beginning (including attempting to map the *-shm file). // // If an error occurs, an SQLite error code is returned. -func walBeginShmUnreliable(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63466:12: */ +func walBeginShmUnreliable(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64107:12: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -86455,7 +86545,7 @@ __15: // update values of the aReadMark[] array in the header, but if it does // so it takes care to hold an exclusive lock on the corresponding // WAL_READ_LOCK() while changing values. -func walTryBeginRead(tls *libc.TLS, pWal uintptr, pChanged uintptr, useWal int32, cnt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63663:12: */ +func walTryBeginRead(tls *libc.TLS, pWal uintptr, pChanged uintptr, useWal int32, cnt int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64304:12: */ var pInfo uintptr // Checkpoint information in wal-index var mxReadMark U32 // Largest aReadMark[] value var mxI int32 // Index of largest aReadMark[] value @@ -86672,7 +86762,7 @@ func walTryBeginRead(tls *libc.TLS, pWal uintptr, pChanged uintptr, useWal int32 // SQLITE_OK is returned if successful, or an SQLite error code if an // error occurs. It is not an error if nBackfillAttempted cannot be // decreased at all. -func Xsqlite3WalSnapshotRecover(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63893:20: */ +func Xsqlite3WalSnapshotRecover(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64534:20: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -86746,7 +86836,7 @@ func Xsqlite3WalSnapshotRecover(tls *libc.TLS, pWal uintptr) int32 { /* testdata // transaction, then *pChanged is set to 1 before returning. The // Pager layer will use this to know that its cache is stale and // needs to be flushed. -func Xsqlite3WalBeginReadTransaction(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:63964:20: */ +func Xsqlite3WalBeginReadTransaction(tls *libc.TLS, pWal uintptr, pChanged uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64605:20: */ var rc int32 // Return code var cnt int32 = 0 // Number of TryBeginRead attempts var bChanged int32 = 0 @@ -86834,7 +86924,7 @@ func Xsqlite3WalBeginReadTransaction(tls *libc.TLS, pWal uintptr, pChanged uintp // Finish with a read transaction. All this does is release the // read-lock. -func Xsqlite3WalEndReadTransaction(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64072:21: */ +func Xsqlite3WalEndReadTransaction(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64713:21: */ Xsqlite3WalEndWriteTransaction(tls, pWal) if int32((*Wal)(unsafe.Pointer(pWal)).FreadLock) >= 0 { walUnlockShared(tls, pWal, 3+int32((*Wal)(unsafe.Pointer(pWal)).FreadLock)) @@ -86848,7 +86938,7 @@ func Xsqlite3WalEndReadTransaction(tls *libc.TLS, pWal uintptr) { /* testdata/sq // // Return SQLITE_OK if successful, or an error code if an error occurs. If an // error does occur, the final value of *piRead is undefined. -func Xsqlite3WalFindFrame(tls *libc.TLS, pWal uintptr, pgno Pgno, piRead uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64088:20: */ +func Xsqlite3WalFindFrame(tls *libc.TLS, pWal uintptr, pgno Pgno, piRead uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64729:20: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -86915,7 +87005,7 @@ func Xsqlite3WalFindFrame(tls *libc.TLS, pWal uintptr, pgno Pgno, piRead uintptr iRead = iFrame } if libc.PostDecInt32(&nCollide, 1) == 0 { - return Xsqlite3CorruptError(tls, 64158) + return Xsqlite3CorruptError(tls, 64799) } iKey = walNextHash(tls, iKey) } @@ -86931,7 +87021,7 @@ func Xsqlite3WalFindFrame(tls *libc.TLS, pWal uintptr, pgno Pgno, piRead uintptr // Read the contents of frame iRead from the wal file into buffer pOut // (which is nOut bytes in size). Return SQLITE_OK if successful, or an // error code otherwise. -func Xsqlite3WalReadFrame(tls *libc.TLS, pWal uintptr, iRead U32, nOut int32, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64192:20: */ +func Xsqlite3WalReadFrame(tls *libc.TLS, pWal uintptr, iRead U32, nOut int32, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64833:20: */ var sz int32 var iOffset I64 sz = int32((*Wal)(unsafe.Pointer(pWal)).Fhdr.FszPage) @@ -86948,7 +87038,7 @@ func Xsqlite3WalReadFrame(tls *libc.TLS, pWal uintptr, iRead U32, nOut int32, pO } // Return the size of the database in pages (or zero, if unknown). -func Xsqlite3WalDbsize(tls *libc.TLS, pWal uintptr) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64212:21: */ +func Xsqlite3WalDbsize(tls *libc.TLS, pWal uintptr) Pgno { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64853:21: */ if pWal != 0 && int32((*Wal)(unsafe.Pointer(pWal)).FreadLock) >= 0 { return (*Wal)(unsafe.Pointer(pWal)).Fhdr.FnPage } @@ -86966,7 +87056,7 @@ func Xsqlite3WalDbsize(tls *libc.TLS, pWal uintptr) Pgno { /* testdata/sqlite-am // returns SQLITE_BUSY in that case and no write transaction is started. // // There can only be a single writer active at a time. -func Xsqlite3WalBeginWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64233:20: */ +func Xsqlite3WalBeginWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64874:20: */ var rc int32 // Cannot start a write transaction without first holding a read @@ -86998,7 +87088,7 @@ func Xsqlite3WalBeginWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* te // End a write transaction. The commit has already been done. This // routine merely releases the lock. -func Xsqlite3WalEndWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64281:20: */ +func Xsqlite3WalEndWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64922:20: */ if (*Wal)(unsafe.Pointer(pWal)).FwriteLock != 0 { walUnlockExclusive(tls, pWal, WAL_WRITE_LOCK, 1) (*Wal)(unsafe.Pointer(pWal)).FwriteLock = U8(0) @@ -87018,7 +87108,7 @@ func Xsqlite3WalEndWriteTransaction(tls *libc.TLS, pWal uintptr) int32 { /* test // // Otherwise, if the callback function does not return an error, this // function returns SQLITE_OK. -func Xsqlite3WalUndo(tls *libc.TLS, pWal uintptr, xUndo uintptr, pUndoCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64303:20: */ +func Xsqlite3WalUndo(tls *libc.TLS, pWal uintptr, xUndo uintptr, pUndoCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64944:20: */ var rc int32 = SQLITE_OK if (*Wal)(unsafe.Pointer(pWal)).FwriteLock != 0 { var iMax Pgno = (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame @@ -87055,7 +87145,7 @@ func Xsqlite3WalUndo(tls *libc.TLS, pWal uintptr, xUndo uintptr, pUndoCtx uintpt // values. This function populates the array with values required to // "rollback" the write position of the WAL handle back to the current // point in the event of a savepoint rollback (via WalSavepointUndo()). -func Xsqlite3WalSavepoint(tls *libc.TLS, pWal uintptr, aWalData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64343:21: */ +func Xsqlite3WalSavepoint(tls *libc.TLS, pWal uintptr, aWalData uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64984:21: */ *(*U32)(unsafe.Pointer(aWalData)) = (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame *(*U32)(unsafe.Pointer(aWalData + 1*4)) = *(*U32)(unsafe.Pointer(pWal + 72 + 24)) @@ -87067,7 +87157,7 @@ func Xsqlite3WalSavepoint(tls *libc.TLS, pWal uintptr, aWalData uintptr) { /* te // the values in the aWalData[] array. aWalData must point to an array // of WAL_SAVEPOINT_NDATA u32 values that has been previously populated // by a call to WalSavepoint(). -func Xsqlite3WalSavepointUndo(tls *libc.TLS, pWal uintptr, aWalData uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64357:20: */ +func Xsqlite3WalSavepointUndo(tls *libc.TLS, pWal uintptr, aWalData uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:64998:20: */ var rc int32 = SQLITE_OK if *(*U32)(unsafe.Pointer(aWalData + 3*4)) != (*Wal)(unsafe.Pointer(pWal)).FnCkpt { @@ -87098,7 +87188,7 @@ func Xsqlite3WalSavepointUndo(tls *libc.TLS, pWal uintptr, aWalData uintptr) int // SQLITE_OK is returned if no error is encountered (regardless of whether // or not pWal->hdr.mxFrame is modified). An SQLite error code is returned // if an error occurs. -func walRestartLog(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64394:12: */ +func walRestartLog(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65035:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -87152,12 +87242,12 @@ type WalWriter1 = struct { FiSyncPoint Sqlite3_int64 FsyncFlags int32 FszPage int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64441:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65082:9 */ // Information about the current state of the WAL file and where // the next fsync should occur - passed from sqlite3WalFrames() into // walWriteToLog(). -type WalWriter = WalWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64447:3 */ +type WalWriter = WalWriter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65088:3 */ // Write iAmt bytes of content into the WAL file beginning at iOffset. // Do a sync when crossing the p->iSyncPoint boundary. @@ -87165,7 +87255,7 @@ type WalWriter = WalWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64 // In other words, if iSyncPoint is in between iOffset and iOffset+iAmt, // first write the part before iSyncPoint, then sync, then write the // rest. -func walWriteToLog(tls *libc.TLS, p uintptr, pContent uintptr, iAmt int32, iOffset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64457:12: */ +func walWriteToLog(tls *libc.TLS, p uintptr, pContent uintptr, iAmt int32, iOffset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65098:12: */ var rc int32 if iOffset < (*WalWriter)(unsafe.Pointer(p)).FiSyncPoint && iOffset+Sqlite3_int64(iAmt) >= (*WalWriter)(unsafe.Pointer(p)).FiSyncPoint { var iFirstAmt int32 = int32((*WalWriter)(unsafe.Pointer(p)).FiSyncPoint - iOffset) @@ -87187,7 +87277,7 @@ func walWriteToLog(tls *libc.TLS, p uintptr, pContent uintptr, iAmt int32, iOffs } // Write out a single frame of the WAL -func walWriteOneFrame(tls *libc.TLS, p uintptr, pPage uintptr, nTruncate int32, iOffset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64482:12: */ +func walWriteOneFrame(tls *libc.TLS, p uintptr, pPage uintptr, nTruncate int32, iOffset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65123:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -87212,7 +87302,7 @@ func walWriteOneFrame(tls *libc.TLS, p uintptr, pPage uintptr, nTruncate int32, // with the earliest to have been overwritten. // // SQLITE_OK is returned if successful, or an SQLite error code otherwise. -func walRewriteChecksums(tls *libc.TLS, pWal uintptr, iLast U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64508:12: */ +func walRewriteChecksums(tls *libc.TLS, pWal uintptr, iLast U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65149:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -87266,7 +87356,7 @@ func walRewriteChecksums(tls *libc.TLS, pWal uintptr, iLast U32) int32 { /* test // Write a set of frames to the log. The caller must hold the write-lock // on the log file (obtained using sqlite3WalBeginWriteTransaction()). -func Xsqlite3WalFrames(tls *libc.TLS, pWal uintptr, szPage int32, pList uintptr, nTruncate Pgno, isCommit int32, sync_flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64557:20: */ +func Xsqlite3WalFrames(tls *libc.TLS, pWal uintptr, szPage int32, pList uintptr, nTruncate Pgno, isCommit int32, sync_flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65198:20: */ bp := tls.Alloc(80) defer tls.Free(80) @@ -87499,7 +87589,7 @@ func Xsqlite3WalFrames(tls *libc.TLS, pWal uintptr, szPage int32, pList uintptr, // // If parameter xBusy is not NULL, it is a pointer to a busy-handler // callback. In this case this function runs a blocking checkpoint. -func Xsqlite3WalCheckpoint(tls *libc.TLS, pWal uintptr, db uintptr, eMode int32, xBusy uintptr, pBusyArg uintptr, sync_flags int32, nBuf int32, zBuf uintptr, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64795:20: */ +func Xsqlite3WalCheckpoint(tls *libc.TLS, pWal uintptr, db uintptr, eMode int32, xBusy uintptr, pBusyArg uintptr, sync_flags int32, nBuf int32, zBuf uintptr, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65436:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -87564,7 +87654,7 @@ func Xsqlite3WalCheckpoint(tls *libc.TLS, pWal uintptr, db uintptr, eMode int32, if rc == SQLITE_OK { if (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame != 0 && walPagesize(tls, pWal) != nBuf { - rc = Xsqlite3CorruptError(tls, 64877) + rc = Xsqlite3CorruptError(tls, 65518) } else { rc = walCheckpoint(tls, pWal, db, eMode2, xBusy2, pBusyArg, sync_flags, zBuf) } @@ -87608,7 +87698,7 @@ func Xsqlite3WalCheckpoint(tls *libc.TLS, pWal uintptr, db uintptr, eMode int32, // number of frames in the WAL at the point of the last commit since // sqlite3WalCallback() was called. If no commits have occurred since // the last call, then return 0. -func Xsqlite3WalCallback(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64920:20: */ +func Xsqlite3WalCallback(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65561:20: */ var ret U32 = U32(0) if pWal != 0 { ret = (*Wal)(unsafe.Pointer(pWal)).FiCallback @@ -87639,7 +87729,7 @@ func Xsqlite3WalCallback(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite // not actually change anything. The pager uses this to see if it // should acquire the database exclusive lock prior to invoking // the op==1 case. -func Xsqlite3WalExclusiveMode(tls *libc.TLS, pWal uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64953:20: */ +func Xsqlite3WalExclusiveMode(tls *libc.TLS, pWal uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65594:20: */ var rc int32 // pWal->readLock is usually set, but might be -1 if there was a @@ -87673,14 +87763,14 @@ func Xsqlite3WalExclusiveMode(tls *libc.TLS, pWal uintptr, op int32) int32 { /* // Return true if the argument is non-NULL and the WAL module is using // heap-memory for the wal-index. Otherwise, if the argument is NULL or the // WAL module is using shared-memory, return false. -func Xsqlite3WalHeapMemory(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:64995:20: */ +func Xsqlite3WalHeapMemory(tls *libc.TLS, pWal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65636:20: */ return libc.Bool32(pWal != 0 && int32((*Wal)(unsafe.Pointer(pWal)).FexclusiveMode) == WAL_HEAPMEMORY_MODE) } // Create a snapshot object. The content of a snapshot is opaque to // every other subsystem, so the WAL module can put whatever it needs // in the object. -func Xsqlite3WalSnapshotGet(tls *libc.TLS, pWal uintptr, ppSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65004:20: */ +func Xsqlite3WalSnapshotGet(tls *libc.TLS, pWal uintptr, ppSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65645:20: */ var rc int32 = SQLITE_OK var pRet uintptr @@ -87699,16 +87789,16 @@ func Xsqlite3WalSnapshotGet(tls *libc.TLS, pWal uintptr, ppSnapshot uintptr) int return rc } -var aZero = [4]U32{U32(0), U32(0), U32(0), U32(0)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65007:20 */ +var aZero = [4]U32{U32(0), U32(0), U32(0), U32(0)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65648:20 */ // Try to open on pSnapshot when the next read-transaction starts -func Xsqlite3WalSnapshotOpen(tls *libc.TLS, pWal uintptr, pSnapshot uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65028:21: */ +func Xsqlite3WalSnapshotOpen(tls *libc.TLS, pWal uintptr, pSnapshot uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65669:21: */ (*Wal)(unsafe.Pointer(pWal)).FpSnapshot = pSnapshot } // Return a +ve value if snapshot p1 is newer than p2. A -ve value if // p1 is older than p2 and zero if p1 and p2 are the same snapshot. -func Xsqlite3_snapshot_cmp(tls *libc.TLS, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65039:16: */ +func Xsqlite3_snapshot_cmp(tls *libc.TLS, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65680:16: */ var pHdr1 uintptr = p1 var pHdr2 uintptr = p2 @@ -87738,7 +87828,7 @@ func Xsqlite3_snapshot_cmp(tls *libc.TLS, p1 uintptr, p2 uintptr) int32 { /* tes // the CHECKPOINTER lock cannot be obtained, SQLITE_BUSY. If any error // occurs (any value other than SQLITE_OK is returned), the CHECKPOINTER // lock is released before returning. -func Xsqlite3WalSnapshotCheck(tls *libc.TLS, pWal uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65063:20: */ +func Xsqlite3WalSnapshotCheck(tls *libc.TLS, pWal uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65704:20: */ var rc int32 rc = walLockShared(tls, pWal, WAL_CKPT_LOCK) if rc == SQLITE_OK { @@ -87754,13 +87844,13 @@ func Xsqlite3WalSnapshotCheck(tls *libc.TLS, pWal uintptr, pSnapshot uintptr) in // Release a lock obtained by an earlier successful call to // sqlite3WalSnapshotCheck(). -func Xsqlite3WalSnapshotUnlock(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65082:21: */ +func Xsqlite3WalSnapshotUnlock(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65723:21: */ walUnlockShared(tls, pWal, WAL_CKPT_LOCK) } // Return the sqlite3_file object for the WAL file -func Xsqlite3WalFile(tls *libc.TLS, pWal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65104:29: */ +func Xsqlite3WalFile(tls *libc.TLS, pWal uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:65745:29: */ return (*Wal)(unsafe.Pointer(pWal)).FpWalFd } @@ -88036,7 +88126,7 @@ type MemPage1 = struct { FpDbPage uintptr FxCellSize uintptr FxParseCell uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ //************* End of wal.c ************************************************ //************* Begin file btmutex.c **************************************** @@ -88281,25 +88371,25 @@ type MemPage1 = struct { // small cells will be rare, but they are possible. // Forward declarations -type MemPage = MemPage1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65362:24 */ +type MemPage = MemPage1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66003:24 */ type BtLock1 = struct { FpBtree uintptr FiTable Pgno FeLock U8 F__ccgo_pad1 [3]byte FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type BtLock = BtLock1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65363:23 */ +type BtLock = BtLock1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66004:23 */ type CellInfo1 = struct { FnKey I64 FpPayload uintptr FnPayload U32 FnLocal U16 FnSize U16 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:578:9 */ -type CellInfo = CellInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65364:25 */ +type CellInfo = CellInfo1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66005:25 */ // Legal values for BtCursor.curFlags @@ -88409,7 +88499,7 @@ type IntegrityCk1 = struct { FerrMsg StrAccum Fheap uintptr Fdb uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65823:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66464:9 */ // Legal values for BtCursor.curFlags @@ -88505,7 +88595,7 @@ type IntegrityCk1 = struct { // the database the corresponding bit is set. This allows integrity-check to // detect pages that are used twice and orphaned pages (both of which // indicate corruption). -type IntegrityCk = IntegrityCk1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65823:28 */ +type IntegrityCk = IntegrityCk1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66464:28 */ // Routines to read or write a two- and four-byte big-endian integer values. @@ -88519,7 +88609,7 @@ type IntegrityCk = IntegrityCk1 /* testdata/sqlite-amalgamation-3380500/sqlite3. // Obtain the BtShared mutex associated with B-Tree handle p. Also, // set BtShared.db to the database handle associated with p and the // p->locked boolean to true. -func lockBtreeMutex(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65873:13: */ +func lockBtreeMutex(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66514:13: */ Xsqlite3_mutex_enter(tls, (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).Fmutex) (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).Fdb = (*Btree)(unsafe.Pointer(p)).Fdb @@ -88528,7 +88618,7 @@ func lockBtreeMutex(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation- // Release the BtShared mutex associated with B-Tree handle p and // clear the p->locked boolean. -func unlockBtreeMutex(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65887:29: */ +func unlockBtreeMutex(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66528:29: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt Xsqlite3_mutex_leave(tls, (*BtShared)(unsafe.Pointer(pBt)).Fmutex) @@ -88549,7 +88639,7 @@ func unlockBtreeMutex(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamatio // p, then first unlock all of the others on p->pNext, then wait // for the lock to become available on p, then relock all of the // subsequent Btrees that desire a lock. -func Xsqlite3BtreeEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65917:21: */ +func Xsqlite3BtreeEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66558:21: */ // Some basic sanity checking on the Btree. The list of Btrees // connected by pNext and pPrev should be in sorted order by // Btree.pBt value. All elements of the list should belong to @@ -88577,7 +88667,7 @@ func Xsqlite3BtreeEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamat // into this routine, we avoid unnecessary stack pointer changes // and thus help the sqlite3BtreeLock() routine to run much faster // in the common case. -func btreeLockCarefully(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65951:29: */ +func btreeLockCarefully(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66592:29: */ var pLater uintptr // In most cases, we should be able to acquire the lock we @@ -88608,7 +88698,7 @@ func btreeLockCarefully(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamat } // Exit the recursive mutex on a Btree. -func Xsqlite3BtreeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:65989:21: */ +func Xsqlite3BtreeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66630:21: */ if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 { @@ -88631,7 +88721,7 @@ func Xsqlite3BtreeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamat // to avoid the possibility of deadlock when two threads with // two or more btrees in common both try to lock all their btrees // at the same instant. -func btreeEnterAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66032:29: */ +func btreeEnterAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66673:29: */ var i int32 var skipOk int32 = 1 var p uintptr @@ -88646,13 +88736,13 @@ func btreeEnterAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation- (*Sqlite3)(unsafe.Pointer(db)).FnoSharedCache = U8(skipOk) } -func Xsqlite3BtreeEnterAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66046:21: */ +func Xsqlite3BtreeEnterAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66687:21: */ if int32((*Sqlite3)(unsafe.Pointer(db)).FnoSharedCache) == 0 { btreeEnterAll(tls, db) } } -func btreeLeaveAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66049:29: */ +func btreeLeaveAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66690:29: */ var i int32 var p uintptr @@ -88664,7 +88754,7 @@ func btreeLeaveAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation- } } -func Xsqlite3BtreeLeaveAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66058:21: */ +func Xsqlite3BtreeLeaveAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66699:21: */ if int32((*Sqlite3)(unsafe.Pointer(db)).FnoSharedCache) == 0 { btreeLeaveAll(tls, db) } @@ -88675,11 +88765,11 @@ func Xsqlite3BtreeLeaveAll(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalg // These entry points are used by incremental I/O only. Enter() is required // any time OMIT_SHARED_CACHE is not defined, regardless of whether or not // the build is threadsafe. Leave() is only required by threadsafe builds. -func Xsqlite3BtreeEnterCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66144:21: */ +func Xsqlite3BtreeEnterCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66785:21: */ Xsqlite3BtreeEnter(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree) } -func Xsqlite3BtreeLeaveCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66148:21: */ +func Xsqlite3BtreeLeaveCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66789:21: */ Xsqlite3BtreeLeave(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree) } @@ -88702,7 +88792,7 @@ func Xsqlite3BtreeLeaveCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite- // The header string that appears at the beginning of every // SQLite database. -var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 5336)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66179:19 */ +var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 5371)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66820:19 */ // Set this global variable to 1 to enable tracing using the TRACE // macro. @@ -88728,14 +88818,14 @@ var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 5336)) /* testdata/sqlite-am // test builds. // // Access to this variable is protected by SQLITE_MUTEX_STATIC_MAIN. -var sqlite3SharedCacheList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66234:17 */ +var sqlite3SharedCacheList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66875:17 */ // Enable or disable the shared pager and schema features. // // This routine has no effect on existing database connections. // The shared cache setting effects only future calls to // sqlite3_open(), sqlite3_open16(), or sqlite3_open_v2(). -func Xsqlite3_enable_shared_cache(tls *libc.TLS, enable int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66246:16: */ +func Xsqlite3_enable_shared_cache(tls *libc.TLS, enable int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66887:16: */ Xsqlite3Config.FsharedCacheEnabled = enable return SQLITE_OK } @@ -88752,7 +88842,7 @@ func Xsqlite3_enable_shared_cache(tls *libc.TLS, enable int32) int32 { /* testda // (READ_LOCK or WRITE_LOCK) on the table with root-page iTab. Return // SQLITE_OK if the lock may be obtained (by calling // setSharedCacheTableLock()), or SQLITE_LOCKED if not. -func querySharedCacheTableLock(tls *libc.TLS, p uintptr, iTab Pgno, eLock U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66445:12: */ +func querySharedCacheTableLock(tls *libc.TLS, p uintptr, iTab Pgno, eLock U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67086:12: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt var pIter uintptr @@ -88800,16 +88890,16 @@ func querySharedCacheTableLock(tls *libc.TLS, p uintptr, iTab Pgno, eLock U8) in // // This function assumes the following: // -// (a) The specified Btree object p is connected to a sharable -// database (one with the BtShared.sharable flag set), and +// (a) The specified Btree object p is connected to a sharable +// database (one with the BtShared.sharable flag set), and // -// (b) No other Btree objects hold a lock that conflicts -// with the requested lock (i.e. querySharedCacheTableLock() has -// already been called and returned SQLITE_OK). +// (b) No other Btree objects hold a lock that conflicts +// with the requested lock (i.e. querySharedCacheTableLock() has +// already been called and returned SQLITE_OK). // // SQLITE_OK is returned if the lock is added successfully. SQLITE_NOMEM // is returned if a malloc attempt fails. -func setSharedCacheTableLock(tls *libc.TLS, p uintptr, iTable Pgno, eLock U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66517:12: */ +func setSharedCacheTableLock(tls *libc.TLS, p uintptr, iTable Pgno, eLock U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67158:12: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt var pLock uintptr = uintptr(0) var pIter uintptr @@ -88860,7 +88950,7 @@ func setSharedCacheTableLock(tls *libc.TLS, p uintptr, iTable Pgno, eLock U8) in // This function assumes that Btree p has an open read or write // transaction. If it does not, then the BTS_PENDING flag // may be incorrectly cleared. -func clearAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66581:13: */ +func clearAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67222:13: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt var ppIter uintptr = pBt + 120 @@ -88895,7 +88985,7 @@ func clearAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* testdata/sqlit } // This function changes all write-locks held by Btree p into read-locks. -func downgradeAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66625:13: */ +func downgradeAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67266:13: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt if (*BtShared)(unsafe.Pointer(pBt)).FpWriter == p { var pLock uintptr @@ -88919,7 +89009,7 @@ func downgradeAllSharedCacheTableLocks(tls *libc.TLS, p uintptr) { /* testdata/s // Invalidate the overflow page-list cache for all cursors opened // on the shared btree structure pBt. -func invalidateAllOverflowCache(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66678:13: */ +func invalidateAllOverflowCache(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67319:13: */ var p uintptr for p = (*BtShared)(unsafe.Pointer(pBt)).FpCursor; p != 0; p = (*BtCursor)(unsafe.Pointer(p)).FpNext { @@ -88938,7 +89028,7 @@ func invalidateAllOverflowCache(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite // Otherwise, if argument isClearTable is false, then the row with // rowid iRow is being replaced or deleted. In this case invalidate // only those incrblob cursors open on that specific row. -func invalidateIncrblobCursors(tls *libc.TLS, pBtree uintptr, pgnoRoot Pgno, iRow I64, isClearTable int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66700:13: */ +func invalidateIncrblobCursors(tls *libc.TLS, pBtree uintptr, pgnoRoot Pgno, iRow I64, isClearTable int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67341:13: */ var p uintptr (*Btree)(unsafe.Pointer(pBtree)).FhasIncrblobCur = U8(0) @@ -88960,15 +89050,15 @@ func invalidateIncrblobCursors(tls *libc.TLS, pBtree uintptr, pgnoRoot Pgno, iRo // bug caused by the interaction of two useful IO optimizations surrounding // free-list leaf pages: // -// 1) When all data is deleted from a page and the page becomes -// a free-list leaf page, the page is not written to the database -// (as free-list leaf pages contain no meaningful data). Sometimes -// such a page is not even journalled (as it will not be modified, -// why bother journalling it?). +// 1. When all data is deleted from a page and the page becomes +// a free-list leaf page, the page is not written to the database +// (as free-list leaf pages contain no meaningful data). Sometimes +// such a page is not even journalled (as it will not be modified, +// why bother journalling it?). // -// 2) When a free-list leaf page is reused, its content is not read -// from the database or written to the journal file (why should it -// be, if it is not at all meaningful?). +// 2. When a free-list leaf page is reused, its content is not read +// from the database or written to the journal file (why should it +// be, if it is not at all meaningful?). // // By themselves, these optimizations work fine and provide a handy // performance boost to bulk delete or insert operations. However, if @@ -88985,7 +89075,7 @@ func invalidateIncrblobCursors(tls *libc.TLS, pBtree uintptr, pgnoRoot Pgno, iRo // optimization 2 above is omitted if the corresponding bit is already // set in BtShared.pHasContent. The contents of the bitvec are cleared // at the end of every transaction. -func btreeSetHasContent(tls *libc.TLS, pBt uintptr, pgno Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66760:12: */ +func btreeSetHasContent(tls *libc.TLS, pBt uintptr, pgno Pgno) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67401:12: */ var rc int32 = SQLITE_OK if !(int32((*BtShared)(unsafe.Pointer(pBt)).FpHasContent) != 0) { @@ -89005,20 +89095,20 @@ func btreeSetHasContent(tls *libc.TLS, pBt uintptr, pgno Pgno) int32 { /* testda // This function is called when a free-list leaf page is removed from the // free-list for reuse. It returns false if it is safe to retrieve the // page from the pager layer with the 'no-content' flag set. True otherwise. -func btreeGetHasContent(tls *libc.TLS, pBt uintptr, pgno Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66782:12: */ +func btreeGetHasContent(tls *libc.TLS, pBt uintptr, pgno Pgno) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67423:12: */ var p uintptr = (*BtShared)(unsafe.Pointer(pBt)).FpHasContent return libc.Bool32(p != 0 && (pgno > Xsqlite3BitvecSize(tls, p) || Xsqlite3BitvecTestNotNull(tls, p, pgno) != 0)) } // Clear (destroy) the BtShared.pHasContent bitvec. This should be // invoked at the conclusion of each write-transaction. -func btreeClearHasContent(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66791:13: */ +func btreeClearHasContent(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67432:13: */ Xsqlite3BitvecDestroy(tls, (*BtShared)(unsafe.Pointer(pBt)).FpHasContent) (*BtShared)(unsafe.Pointer(pBt)).FpHasContent = uintptr(0) } // Release all of the apPage[] pages for a cursor. -func btreeReleaseAllCursorPages(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66799:13: */ +func btreeReleaseAllCursorPages(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67440:13: */ var i int32 if int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) >= 0 { for i = 0; i < int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage); i++ { @@ -89040,7 +89130,7 @@ func btreeReleaseAllCursorPages(tls *libc.TLS, pCur uintptr) { /* testdata/sqlit // NULL. If the cursor is open on a non-intkey table, then pCur->pKey is // set to point to a malloced buffer pCur->nKey bytes in size containing // the key. -func saveCursorKey(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66823:12: */ +func saveCursorKey(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67464:12: */ var rc int32 = SQLITE_OK if (*BtCursor)(unsafe.Pointer(pCur)).FcurIntKey != 0 { @@ -89077,7 +89167,7 @@ func saveCursorKey(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalg // // The caller must ensure that the cursor is valid (has eState==CURSOR_VALID) // prior to calling this routine. -func saveCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66865:12: */ +func saveCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67506:12: */ var rc int32 if int32((*BtCursor)(unsafe.Pointer(pCur)).FcurFlags)&BTCF_Pinned != 0 { @@ -89118,7 +89208,7 @@ func saveCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite- // Implementation note: This routine merely checks to see if any cursors // need to be saved. It calls out to saveCursorsOnList() in the (unusual) // event that cursors are in need to being saved. -func saveAllCursors(tls *libc.TLS, pBt uintptr, iRoot Pgno, pExcept uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66915:12: */ +func saveAllCursors(tls *libc.TLS, pBt uintptr, iRoot Pgno, pExcept uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67556:12: */ var p uintptr for p = (*BtShared)(unsafe.Pointer(pBt)).FpCursor; p != 0; p = (*BtCursor)(unsafe.Pointer(p)).FpNext { @@ -89139,7 +89229,7 @@ func saveAllCursors(tls *libc.TLS, pBt uintptr, iRoot Pgno, pExcept uintptr) int // the cursors if and when a cursor is found that actually requires saving. // The common case is that no cursors need to be saved, so this routine is // broken out from its caller to avoid unnecessary stack pointer movement. -func saveCursorsOnList(tls *libc.TLS, p uintptr, iRoot Pgno, pExcept uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66932:28: */ +func saveCursorsOnList(tls *libc.TLS, p uintptr, iRoot Pgno, pExcept uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67573:28: */ for __ccgo := true; __ccgo; __ccgo = p != 0 { if p != pExcept && (Pgno(0) == iRoot || (*BtCursor)(unsafe.Pointer(p)).FpgnoRoot == iRoot) { if int32((*BtCursor)(unsafe.Pointer(p)).FeState) == CURSOR_VALID || int32((*BtCursor)(unsafe.Pointer(p)).FeState) == CURSOR_SKIPNEXT { @@ -89158,7 +89248,7 @@ func saveCursorsOnList(tls *libc.TLS, p uintptr, iRoot Pgno, pExcept uintptr) in } // Clear the current cursor position. -func Xsqlite3BtreeClearCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66957:21: */ +func Xsqlite3BtreeClearCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67598:21: */ Xsqlite3_free(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpKey) (*BtCursor)(unsafe.Pointer(pCur)).FpKey = uintptr(0) @@ -89167,8 +89257,8 @@ func Xsqlite3BtreeClearCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite- // In this version of BtreeMoveto, pKey is a packed index record // such as is generated by the OP_MakeRecord opcode. Unpack the -// record and then call BtreeMovetoUnpacked() to do the work. -func btreeMoveto(tls *libc.TLS, pCur uintptr, pKey uintptr, nKey I64, bias int32, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66969:12: */ +// record and then call sqlite3BtreeIndexMoveto() to do the work. +func btreeMoveto(tls *libc.TLS, pCur uintptr, pKey uintptr, nKey I64, bias int32, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67610:12: */ var rc int32 // Status code var pIdxKey uintptr // Unpacked index key @@ -89181,7 +89271,7 @@ func btreeMoveto(tls *libc.TLS, pCur uintptr, pKey uintptr, nKey I64, bias int32 } Xsqlite3VdbeRecordUnpack(tls, pKeyInfo, int32(nKey), pKey, pIdxKey) if int32((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FnField) == 0 || int32((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FnField) > int32((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnAllField) { - rc = Xsqlite3CorruptError(tls, 66986) + rc = Xsqlite3CorruptError(tls, 67627) } else { rc = Xsqlite3BtreeIndexMoveto(tls, pCur, pIdxKey, pRes) } @@ -89198,7 +89288,7 @@ func btreeMoveto(tls *libc.TLS, pCur uintptr, pKey uintptr, nKey I64, bias int32 // saved position info stored by saveCursorPosition(), so there can be // at most one effective restoreCursorPosition() call after each // saveCursorPosition(). -func btreeRestoreCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67005:12: */ +func btreeRestoreCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67646:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -89238,7 +89328,7 @@ func btreeRestoreCursorPosition(tls *libc.TLS, pCur uintptr) int32 { /* testdata // // Use the separate sqlite3BtreeCursorRestore() routine to restore a cursor // back to where it ought to be if this routine returns true. -func Xsqlite3BtreeCursorHasMoved(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67048:20: */ +func Xsqlite3BtreeCursorHasMoved(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67689:20: */ return libc.Bool32(CURSOR_VALID != int32(*(*U8)(unsafe.Pointer(pCur)))) } @@ -89246,12 +89336,12 @@ func Xsqlite3BtreeCursorHasMoved(tls *libc.TLS, pCur uintptr) int32 { /* testdat // Return a pointer to a fake BtCursor object that will always answer // false to the sqlite3BtreeCursorHasMoved() routine above. The fake // cursor returned must not be used with any other Btree interface. -func Xsqlite3BtreeFakeValidCursor(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67061:25: */ +func Xsqlite3BtreeFakeValidCursor(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67702:25: */ return uintptr(unsafe.Pointer(&fakeCursor)) } -var fakeCursor U8 = U8(CURSOR_VALID) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67062:13 */ +var fakeCursor U8 = U8(CURSOR_VALID) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67703:13 */ // This routine restores a cursor back to its original position after it // has been moved by some outside activity (such as a btree rebalance or @@ -89264,7 +89354,7 @@ var fakeCursor U8 = U8(CURSOR_VALID) /* testdata/sqlite-amalgamation-3380500/sql // // This routine should only be called for a cursor that just returned // TRUE from sqlite3BtreeCursorHasMoved(). -func Xsqlite3BtreeCursorRestore(tls *libc.TLS, pCur uintptr, pDifferentRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67080:20: */ +func Xsqlite3BtreeCursorRestore(tls *libc.TLS, pCur uintptr, pDifferentRow uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67721:20: */ var rc int32 rc = func() int32 { @@ -89286,7 +89376,7 @@ func Xsqlite3BtreeCursorRestore(tls *libc.TLS, pCur uintptr, pDifferentRow uintp } // Provide flag hints to the cursor. -func Xsqlite3BtreeCursorHintFlags(tls *libc.TLS, pCur uintptr, x uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67112:21: */ +func Xsqlite3BtreeCursorHintFlags(tls *libc.TLS, pCur uintptr, x uint32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67753:21: */ (*BtCursor)(unsafe.Pointer(pCur)).Fhints = U8(x) } @@ -89298,7 +89388,7 @@ func Xsqlite3BtreeCursorHintFlags(tls *libc.TLS, pCur uintptr, x uint32) { /* te // Return 0 (not a valid page) for pgno==1 since there is // no pointer map associated with page 1. The integrity_check logic // requires that ptrmapPageno(*,1)!=1. -func ptrmapPageno(tls *libc.TLS, pBt uintptr, pgno Pgno) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67128:13: */ +func ptrmapPageno(tls *libc.TLS, pBt uintptr, pgno Pgno) Pgno { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67769:13: */ var nPagesPerMapPage int32 var iPtrMap Pgno var ret Pgno @@ -89323,7 +89413,7 @@ func ptrmapPageno(tls *libc.TLS, pBt uintptr, pgno Pgno) Pgno { /* testdata/sqli // If *pRC is initially non-zero (non-SQLITE_OK) then this routine is // a no-op. If an error occurs, the appropriate error code is written // into *pRC. -func ptrmapPut(tls *libc.TLS, pBt uintptr, key Pgno, eType U8, parent Pgno, pRC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67152:13: */ +func ptrmapPut(tls *libc.TLS, pBt uintptr, key Pgno, eType U8, parent Pgno, pRC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67793:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -89346,7 +89436,7 @@ __1: if !(key == Pgno(0)) { goto __2 } - *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67167) + *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67808) return __2: ; @@ -89365,7 +89455,7 @@ __3: // The first byte of the extra data is the MemPage.isInit byte. // If that byte is set, it means this page is also being used // as a btree page. - *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67180) + *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67821) goto ptrmap_exit __4: ; @@ -89373,7 +89463,7 @@ __4: if !(offset < 0) { goto __5 } - *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67185) + *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67826) goto ptrmap_exit __5: ; @@ -89404,7 +89494,7 @@ ptrmap_exit: // This routine retrieves the pointer map entry for page 'key', writing // the type and parent page number to *pEType and *pPgno respectively. // An error code is returned if something goes wrong, otherwise SQLITE_OK. -func ptrmapGet(tls *libc.TLS, pBt uintptr, key Pgno, pEType uintptr, pPgno uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67211:12: */ +func ptrmapGet(tls *libc.TLS, pBt uintptr, key Pgno, pEType uintptr, pPgno uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67852:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -89425,7 +89515,7 @@ func ptrmapGet(tls *libc.TLS, pBt uintptr, key Pgno, pEType uintptr, pPgno uintp offset = int32(Pgno(5) * (key - Pgno(iPtrmap) - Pgno(1))) if offset < 0 { Xsqlite3PagerUnref(tls, *(*uintptr)(unsafe.Pointer(bp /* pDbPage */))) - return Xsqlite3CorruptError(tls, 67230) + return Xsqlite3CorruptError(tls, 67871) } *(*U8)(unsafe.Pointer(pEType)) = *(*U8)(unsafe.Pointer(pPtrmap + uintptr(offset))) @@ -89435,7 +89525,7 @@ func ptrmapGet(tls *libc.TLS, pBt uintptr, key Pgno, pEType uintptr, pPgno uintp Xsqlite3PagerUnref(tls, *(*uintptr)(unsafe.Pointer(bp /* pDbPage */))) if int32(*(*U8)(unsafe.Pointer(pEType))) < 1 || int32(*(*U8)(unsafe.Pointer(pEType))) > 5 { - return Xsqlite3CorruptError(tls, 67238) + return Xsqlite3CorruptError(tls, 67879) } return SQLITE_OK } @@ -89453,7 +89543,7 @@ func ptrmapGet(tls *libc.TLS, pBt uintptr, key Pgno, pEType uintptr, pPgno uintp // btreeParseCellPtrIndex() for the case when the cell does not fit entirely // on a single B-tree page. Make necessary adjustments to the CellInfo // structure. -func btreeParseCellAdjustSizeForOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67270:29: */ +func btreeParseCellAdjustSizeForOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67911:29: */ // If the payload will not fit completely on the local page, we have // to decide how much to store locally and how much to spill onto // overflow pages. The strategy is to minimize the amount of unused @@ -89480,7 +89570,7 @@ func btreeParseCellAdjustSizeForOverflow(tls *libc.TLS, pPage uintptr, pCell uin // Given a record with nPayload bytes of payload stored within btree // page pPage, return the number of bytes of payload stored locally. -func btreePayloadToLocal(tls *libc.TLS, pPage uintptr, nPayload I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67305:12: */ +func btreePayloadToLocal(tls *libc.TLS, pPage uintptr, nPayload I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67946:12: */ var maxLocal int32 // Maximum amount of payload held locally maxLocal = int32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal) if nPayload <= I64(maxLocal) { @@ -89510,7 +89600,7 @@ func btreePayloadToLocal(tls *libc.TLS, pPage uintptr, nPayload I64) int32 { /* // There is also a wrapper function btreeParseCell() that works for // all MemPage types and that references the cell by index rather than // by pointer. -func btreeParseCellPtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67333:13: */ +func btreeParseCellPtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67974:13: */ _ = pPage (*CellInfo)(unsafe.Pointer(pInfo)).FnSize = U16(4 + int32(Xsqlite3GetVarint(tls, pCell+4, pInfo))) @@ -89520,7 +89610,7 @@ func btreeParseCellPtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr, pIn return } -func btreeParseCellPtr(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67350:13: */ +func btreeParseCellPtr(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:67991:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -89597,7 +89687,7 @@ func btreeParseCellPtr(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintpt } } -func btreeParseCellPtrIndex(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67432:13: */ +func btreeParseCellPtrIndex(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68073:13: */ var pIter uintptr // For scanning through pCell var nPayload U32 // Number of bytes of cell payload @@ -89628,7 +89718,7 @@ func btreeParseCellPtrIndex(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo u } } -func btreeParseCell(tls *libc.TLS, pPage uintptr, iCell int32, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67469:13: */ +func btreeParseCell(tls *libc.TLS, pPage uintptr, iCell int32, pInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68110:13: */ (*struct { f func(*libc.TLS, uintptr, uintptr, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*MemPage)(unsafe.Pointer(pPage)).FxParseCell})).f(tls, pPage, (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*iCell)))))), pInfo) @@ -89643,8 +89733,9 @@ func btreeParseCell(tls *libc.TLS, pPage uintptr, iCell int32, pInfo uintptr) { // the space used by the cell pointer. // // cellSizePtrNoPayload() => table internal nodes +// cellSizePtrTableLeaf() => table leaf nodes // cellSizePtr() => all index nodes & table leaf nodes -func cellSizePtr(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67489:12: */ +func cellSizePtr(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68131:12: */ var pIter uintptr = pCell + uintptr((*MemPage)(unsafe.Pointer(pPage)).FchildPtrSize) // For looping over bytes of pCell var pEnd uintptr // End mark for a varint var nSize U32 // Size value to return @@ -89658,14 +89749,6 @@ func cellSizePtr(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* testdata/ } } pIter++ - if (*MemPage)(unsafe.Pointer(pPage)).FintKey != 0 { - // pIter now points at the 64-bit integer key value, a variable length - // integer. The following block moves pIter to point at the first byte - // past the end of the key value. - pEnd = pIter + 9 - for int32(*(*U8)(unsafe.Pointer(libc.PostIncUintptr(&pIter, 1))))&0x80 != 0 && pIter < pEnd { - } - } if nSize <= U32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal) { nSize = nSize + U32((int64(pIter)-int64(pCell))/1) @@ -89685,7 +89768,7 @@ func cellSizePtr(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* testdata/ return U16(nSize) } -func cellSizePtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67537:12: */ +func cellSizePtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68172:12: */ var pIter uintptr = pCell + uintptr(4) // For looping over bytes of pCell var pEnd uintptr // End mark for a varint @@ -89698,11 +89781,57 @@ func cellSizePtrNoPayload(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* return U16((int64(pIter) - int64(pCell)) / 1) } +func cellSizePtrTableLeaf(tls *libc.TLS, pPage uintptr, pCell uintptr) U16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68193:12: */ + var pIter uintptr = pCell // For looping over bytes of pCell + var pEnd uintptr // End mark for a varint + var nSize U32 // Size value to return + + nSize = U32(*(*U8)(unsafe.Pointer(pIter))) + if nSize >= U32(0x80) { + pEnd = pIter + 8 + nSize = nSize & U32(0x7f) + for __ccgo := true; __ccgo; __ccgo = int32(*(*U8)(unsafe.Pointer(pIter))) >= 0x80 && pIter < pEnd { + nSize = nSize<<7 | U32(int32(*(*U8)(unsafe.Pointer(libc.PreIncUintptr(&pIter, 1))))&0x7f) + } + } + pIter++ + // pIter now points at the 64-bit integer key value, a variable length + // integer. The following block moves pIter to point at the first byte + // past the end of the key value. + if int32(*(*U8)(unsafe.Pointer(libc.PostIncUintptr(&pIter, 1))))&0x80 != 0 && + int32(*(*U8)(unsafe.Pointer(libc.PostIncUintptr(&pIter, 1))))&0x80 != 0 && + int32(*(*U8)(unsafe.Pointer(libc.PostIncUintptr(&pIter, 1))))&0x80 != 0 && + int32(*(*U8)(unsafe.Pointer(libc.PostIncUintptr(&pIter, 1))))&0x80 != 0 && + int32(*(*U8)(unsafe.Pointer(libc.PostIncUintptr(&pIter, 1))))&0x80 != 0 && + int32(*(*U8)(unsafe.Pointer(libc.PostIncUintptr(&pIter, 1))))&0x80 != 0 && + int32(*(*U8)(unsafe.Pointer(libc.PostIncUintptr(&pIter, 1))))&0x80 != 0 && + int32(*(*U8)(unsafe.Pointer(libc.PostIncUintptr(&pIter, 1))))&0x80 != 0 { + pIter++ + } + + if nSize <= U32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal) { + nSize = nSize + U32((int64(pIter)-int64(pCell))/1) + if nSize < U32(4) { + nSize = U32(4) + } + } else { + var minLocal int32 = int32((*MemPage)(unsafe.Pointer(pPage)).FminLocal) + nSize = U32(minLocal) + (nSize-U32(minLocal))%((*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize-U32(4)) + + if nSize > U32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal) { + nSize = U32(minLocal) + } + nSize = nSize + U32(4+int32(U16((int64(pIter)-int64(pCell))/1))) + } + + return U16(nSize) +} + // The cell pCell is currently part of page pSrc but will ultimately be part -// of pPage. (pSrc and pPager are often the same.) If pCell contains a +// of pPage. (pSrc and pPage are often the same.) If pCell contains a // pointer to an overflow page, insert an entry into the pointer-map for // the overflow page that will be valid after pCell has been moved to pPage. -func ptrmapPutOvflPtr(tls *libc.TLS, pPage uintptr, pSrc uintptr, pCell uintptr, pRC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67575:13: */ +func ptrmapPutOvflPtr(tls *libc.TLS, pPage uintptr, pSrc uintptr, pCell uintptr, pRC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68262:13: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -89719,7 +89848,7 @@ func ptrmapPutOvflPtr(tls *libc.TLS, pPage uintptr, pSrc uintptr, pCell uintptr, var ovfl Pgno if Uptr((*MemPage)(unsafe.Pointer(pSrc)).FaDataEnd) >= Uptr(pCell) && Uptr((*MemPage)(unsafe.Pointer(pSrc)).FaDataEnd) < Uptr(pCell+uintptr((*CellInfo)(unsafe.Pointer(bp)).FnLocal)) { - *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67584) + *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 68271) return } ovfl = Xsqlite3Get4byte(tls, pCell+uintptr(int32((*CellInfo)(unsafe.Pointer(bp)).FnSize)-4)) @@ -89737,7 +89866,7 @@ func ptrmapPutOvflPtr(tls *libc.TLS, pPage uintptr, pSrc uintptr, pCell uintptr, // b-tree page so that there are no freeblocks or fragment bytes, all // unused bytes are contained in the unallocated space region, and all // cells are packed tightly at the end of the page. -func defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67606:12: */ +func defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68293:12: */ var i int32 // Loop counter var pc int32 // Address of the i-th cell var hdr int32 // Offset to the page header @@ -89782,7 +89911,7 @@ func defragmentPage(tls *libc.TLS, pPage uintptr, nMaxFrag int32) int32 { /* tes if !(iFree > usableSize-4) { goto __2 } - return Xsqlite3CorruptError(tls, 67643) + return Xsqlite3CorruptError(tls, 68330) __2: ; if !(iFree != 0) { @@ -89792,7 +89921,7 @@ __2: if !(iFree2 > usableSize-4) { goto __4 } - return Xsqlite3CorruptError(tls, 67646) + return Xsqlite3CorruptError(tls, 68333) __4: ; if !(0 == iFree2 || int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2)))) == 0 && int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2+1)))) == 0) { @@ -89805,7 +89934,7 @@ __4: if !(top >= iFree) { goto __6 } - return Xsqlite3CorruptError(tls, 67654) + return Xsqlite3CorruptError(tls, 68341) __6: ; if !(iFree2 != 0) { @@ -89814,14 +89943,14 @@ __6: if !(iFree+sz > iFree2) { goto __9 } - return Xsqlite3CorruptError(tls, 67657) + return Xsqlite3CorruptError(tls, 68344) __9: ; sz2 = int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2+2))))<<8 | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFree2+2) + 1))) if !(iFree2+sz2 > usableSize) { goto __10 } - return Xsqlite3CorruptError(tls, 67659) + return Xsqlite3CorruptError(tls, 68346) __10: ; libc.Xmemmove(tls, data+uintptr(iFree+sz+sz2), data+uintptr(iFree+sz), uint64(iFree2-(iFree+sz))) @@ -89831,7 +89960,7 @@ __7: if !(iFree+sz > usableSize) { goto __11 } - return Xsqlite3CorruptError(tls, 67663) + return Xsqlite3CorruptError(tls, 68350) __11: ; __8: @@ -89893,7 +90022,7 @@ __18: if !(pc < iCellStart || pc > iCellLast) { goto __21 } - return Xsqlite3CorruptError(tls, 67692) + return Xsqlite3CorruptError(tls, 68379) __21: ; @@ -89904,7 +90033,7 @@ __21: if !(cbrk < iCellStart || pc+size > usableSize) { goto __22 } - return Xsqlite3CorruptError(tls, 67698) + return Xsqlite3CorruptError(tls, 68385) __22: ; @@ -89939,7 +90068,7 @@ defragment_out: if !(int32(*(*uint8)(unsafe.Pointer(data + uintptr(hdr+7))))+cbrk-iCellFirst != (*MemPage)(unsafe.Pointer(pPage)).FnFree) { goto __25 } - return Xsqlite3CorruptError(tls, 67717) + return Xsqlite3CorruptError(tls, 68404) __25: ; @@ -89964,20 +90093,22 @@ __25: // Slots on the free list that are between 1 and 3 bytes larger than nByte // will be ignored if adding the extra space to the fragmentation count // causes the fragmentation count to exceed 60. -func pageFindSlot(tls *libc.TLS, pPg uintptr, nByte int32, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67742:11: */ - var hdr int32 = int32((*MemPage)(unsafe.Pointer(pPg)).FhdrOffset) // Offset to page header - var aData uintptr = (*MemPage)(unsafe.Pointer(pPg)).FaData // Page data - var iAddr int32 = hdr + 1 // Address of ptr to pc - var pc int32 = int32(*(*U8)(unsafe.Pointer(aData + uintptr(iAddr))))<<8 | int32(*(*U8)(unsafe.Pointer(aData + uintptr(iAddr) + 1))) // Address of a free slot - var x int32 // Excess size of the slot - var maxPC int32 = int32((*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPg)).FpBt)).FusableSize - U32(nByte)) // Max address for a usable slot - var size int32 // Size of the free slot +func pageFindSlot(tls *libc.TLS, pPg uintptr, nByte int32, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68429:11: */ + var hdr int32 = int32((*MemPage)(unsafe.Pointer(pPg)).FhdrOffset) // Offset to page header + var aData uintptr = (*MemPage)(unsafe.Pointer(pPg)).FaData // Page data + var iAddr int32 = hdr + 1 // Address of ptr to pc + var pTmp uintptr = aData + uintptr(iAddr) // Temporary ptr into aData[] + var pc int32 = int32(*(*U8)(unsafe.Pointer(pTmp)))<<8 | int32(*(*U8)(unsafe.Pointer(pTmp + 1))) // Address of a free slot + var x int32 // Excess size of the slot + var maxPC int32 = int32((*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPg)).FpBt)).FusableSize - U32(nByte)) // Max address for a usable slot + var size int32 // Size of the free slot for pc <= maxPC { // EVIDENCE-OF: R-22710-53328 The third and fourth bytes of each // freeblock form a big-endian integer which is the size of the freeblock // in bytes, including the 4-byte header. - size = int32(*(*U8)(unsafe.Pointer(aData + uintptr(pc+2))))<<8 | int32(*(*U8)(unsafe.Pointer(aData + uintptr(pc+2) + 1))) + pTmp = aData + uintptr(pc+2) + size = int32(*(*U8)(unsafe.Pointer(pTmp)))<<8 | int32(*(*U8)(unsafe.Pointer(pTmp + 1))) if libc.AssignInt32(&x, size-nByte) >= 0 { if x < 4 { @@ -89995,7 +90126,7 @@ func pageFindSlot(tls *libc.TLS, pPg uintptr, nByte int32, pRc uintptr) uintptr return aData + uintptr(pc) } else if x+pc > maxPC { // This slot extends off the end of the usable part of the page - *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 67773) + *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 68462) return uintptr(0) } else { // The slot remains on the free-list. Reduce its size to account @@ -90006,18 +90137,19 @@ func pageFindSlot(tls *libc.TLS, pPg uintptr, nByte int32, pRc uintptr) uintptr return aData + uintptr(pc+x) } iAddr = pc - pc = int32(*(*U8)(unsafe.Pointer(aData + uintptr(pc))))<<8 | int32(*(*U8)(unsafe.Pointer(aData + uintptr(pc) + 1))) + pTmp = aData + uintptr(pc) + pc = int32(*(*U8)(unsafe.Pointer(pTmp)))<<8 | int32(*(*U8)(unsafe.Pointer(pTmp + 1))) if pc <= iAddr+size { if pc != 0 { // The next slot in the chain is not past the end of the current slot - *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 67787) + *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 68477) } return uintptr(0) } } if pc > maxPC+nByte-4 { // The free slot chain extends off the end of the page - *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 67794) + *(*int32)(unsafe.Pointer(pRc)) = Xsqlite3CorruptError(tls, 68484) } return uintptr(0) } @@ -90033,7 +90165,7 @@ func pageFindSlot(tls *libc.TLS, pPg uintptr, nByte int32, pRc uintptr) uintptr // the first two bytes past the cell pointer area since presumably this // allocation is being made in order to insert a new cell, so we will // also end up needing a new cell pointer. -func allocateSpace(tls *libc.TLS, pPage uintptr, nByte int32, pIdx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67812:12: */ +func allocateSpace(tls *libc.TLS, pPage uintptr, nByte int32, pIdx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68502:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -90041,6 +90173,7 @@ func allocateSpace(tls *libc.TLS, pPage uintptr, nByte int32, pIdx uintptr) int3 var data uintptr = (*MemPage)(unsafe.Pointer(pPage)).FaData // Local cache of pPage->aData var top int32 // First byte of cell content area *(*int32)(unsafe.Pointer(bp /* rc */)) = SQLITE_OK // Integer return code + var pTmp uintptr // Temp ptr into data[] var gap int32 // First byte of gap between cell pointers and cell content // Minimum cell size is 4 @@ -90052,13 +90185,14 @@ func allocateSpace(tls *libc.TLS, pPage uintptr, nByte int32, pIdx uintptr) int3 // then the cell content offset of an empty page wants to be 65536. // However, that integer is too large to be stored in a 2-byte unsigned // integer, so a value of 0 is used in its place. - top = int32(*(*U8)(unsafe.Pointer(data + uintptr(hdr+5))))<<8 | int32(*(*U8)(unsafe.Pointer(data + uintptr(hdr+5) + 1))) + pTmp = data + uintptr(hdr+5) + top = int32(*(*U8)(unsafe.Pointer(pTmp)))<<8 | int32(*(*U8)(unsafe.Pointer(pTmp + 1))) // by btreeComputeFreeSpace() if gap > top { if top == 0 && (*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize == U32(65536) { top = 65536 } else { - return Xsqlite3CorruptError(tls, 67841) + return Xsqlite3CorruptError(tls, 68533) } } @@ -90073,7 +90207,7 @@ func allocateSpace(tls *libc.TLS, pPage uintptr, nByte int32, pIdx uintptr) int3 *(*int32)(unsafe.Pointer(pIdx)) = libc.AssignInt32(&g2, int32((int64(pSpace)-int64(data))/1)) if g2 <= gap { - return Xsqlite3CorruptError(tls, 67859) + return Xsqlite3CorruptError(tls, 68551) } else { return SQLITE_OK } @@ -90124,7 +90258,7 @@ func allocateSpace(tls *libc.TLS, pPage uintptr, nByte int32, pIdx uintptr) int3 // does it detect cells or freeblocks that encrouch into the reserved bytes // at the end of the page. So do additional corruption checks inside this // routine and return SQLITE_CORRUPT if any problems are found. -func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:67908:12: */ +func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68600:12: */ var iPtr U16 // Address of ptr to next freeblock var iFreeBlk U16 // Address of the next freeblock var hdr U8 // Page header size. 0 or 100 @@ -90133,6 +90267,7 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* t var x U16 // Offset to cell content area var iEnd U32 = U32(int32(iStart) + int32(iSize)) // First byte past the iStart buffer var data uintptr = (*MemPage)(unsafe.Pointer(pPage)).FaData // Page content + var pTmp uintptr // Temporary ptr into data[] // Minimum cell size is 4 @@ -90148,12 +90283,12 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* t if int32(iFreeBlk) == 0 { break } // TH3: corrupt082.100 - return Xsqlite3CorruptError(tls, 67937) + return Xsqlite3CorruptError(tls, 68630) } iPtr = iFreeBlk } if U32(iFreeBlk) > (*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize-U32(4) { // TH3: corrupt081.100 - return Xsqlite3CorruptError(tls, 67942) + return Xsqlite3CorruptError(tls, 68635) } // At this point: @@ -90164,11 +90299,11 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* t if iFreeBlk != 0 && iEnd+U32(3) >= U32(iFreeBlk) { nFrag = U8(U32(iFreeBlk) - iEnd) if iEnd > U32(iFreeBlk) { - return Xsqlite3CorruptError(tls, 67954) + return Xsqlite3CorruptError(tls, 68647) } iEnd = U32(int32(iFreeBlk) + (int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(iFreeBlk)+2))))<<8 | int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(iFreeBlk)+2) + 1))))) if iEnd > (*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize { - return Xsqlite3CorruptError(tls, 67957) + return Xsqlite3CorruptError(tls, 68650) } iSize = U16(iEnd - U32(iStart)) iFreeBlk = U16(int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk))))<<8 | int32(*(*uint8)(unsafe.Pointer(data + uintptr(iFreeBlk) + 1)))) @@ -90181,7 +90316,7 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* t var iPtrEnd int32 = int32(iPtr) + (int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(iPtr)+2))))<<8 | int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(iPtr)+2) + 1)))) if iPtrEnd+3 >= int32(iStart) { if iPtrEnd > int32(iStart) { - return Xsqlite3CorruptError(tls, 67970) + return Xsqlite3CorruptError(tls, 68663) } nFrag = U8(int32(nFrag) + (int32(iStart) - iPtrEnd)) iSize = U16(iEnd - U32(iPtr)) @@ -90189,20 +90324,21 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* t } } if int32(nFrag) > int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+7)))) { - return Xsqlite3CorruptError(tls, 67976) + return Xsqlite3CorruptError(tls, 68669) } *(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+7))) -= uint8(int32(nFrag)) } - x = U16(int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+5))))<<8 | int32(*(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+5) + 1)))) + pTmp = data + uintptr(int32(hdr)+5) + x = U16(int32(*(*U8)(unsafe.Pointer(pTmp)))<<8 | int32(*(*U8)(unsafe.Pointer(pTmp + 1)))) if int32(iStart) <= int32(x) { // The new freeblock is at the beginning of the cell content area, // so just extend the cell content area rather than create another // freelist entry if int32(iStart) < int32(x) { - return Xsqlite3CorruptError(tls, 67984) + return Xsqlite3CorruptError(tls, 68678) } if int32(iPtr) != int32(hdr)+1 { - return Xsqlite3CorruptError(tls, 67985) + return Xsqlite3CorruptError(tls, 68679) } *(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+1))) = U8(int32(iFreeBlk) >> 8) *(*uint8)(unsafe.Pointer(data + uintptr(int32(hdr)+1) + 1)) = U8(iFreeBlk) @@ -90232,19 +90368,16 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* t // Only the following combinations are supported. Anything different // indicates a corrupt database files: // -// PTF_ZERODATA -// PTF_ZERODATA | PTF_LEAF -// PTF_LEAFDATA | PTF_INTKEY -// PTF_LEAFDATA | PTF_INTKEY | PTF_LEAF -func decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68015:12: */ +// PTF_ZERODATA +// PTF_ZERODATA | PTF_LEAF +// PTF_LEAFDATA | PTF_INTKEY +// PTF_LEAFDATA | PTF_INTKEY | PTF_LEAF +func decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68709:12: */ var pBt uintptr // A copy of pPage->pBt (*MemPage)(unsafe.Pointer(pPage)).Fleaf = U8(flagByte >> 3) flagByte = flagByte & libc.CplInt32(PTF_LEAF) (*MemPage)(unsafe.Pointer(pPage)).FchildPtrSize = U8(4 - 4*int32((*MemPage)(unsafe.Pointer(pPage)).Fleaf)) - (*MemPage)(unsafe.Pointer(pPage)).FxCellSize = *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr, uintptr) U16 - }{cellSizePtr})) pBt = (*MemPage)(unsafe.Pointer(pPage)).FpBt if flagByte == PTF_LEAFDATA|PTF_INTKEY { // EVIDENCE-OF: R-07291-35328 A value of 5 (0x05) means the page is an @@ -90256,6 +90389,9 @@ func decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) int32 { /* testda (*MemPage)(unsafe.Pointer(pPage)).FintKey = U8(1) if (*MemPage)(unsafe.Pointer(pPage)).Fleaf != 0 { (*MemPage)(unsafe.Pointer(pPage)).FintKeyLeaf = U8(1) + (*MemPage)(unsafe.Pointer(pPage)).FxCellSize = *(*uintptr)(unsafe.Pointer(&struct { + f func(*libc.TLS, uintptr, uintptr) U16 + }{cellSizePtrTableLeaf})) (*MemPage)(unsafe.Pointer(pPage)).FxParseCell = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr) }{btreeParseCellPtr})) @@ -90279,6 +90415,9 @@ func decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) int32 { /* testda (*MemPage)(unsafe.Pointer(pPage)).FintKey = U8(0) (*MemPage)(unsafe.Pointer(pPage)).FintKeyLeaf = U8(0) + (*MemPage)(unsafe.Pointer(pPage)).FxCellSize = *(*uintptr)(unsafe.Pointer(&struct { + f func(*libc.TLS, uintptr, uintptr) U16 + }{cellSizePtr})) (*MemPage)(unsafe.Pointer(pPage)).FxParseCell = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr) }{btreeParseCellPtrIndex})) @@ -90287,7 +90426,15 @@ func decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) int32 { /* testda } else { // EVIDENCE-OF: R-47608-56469 Any other value for the b-tree page type is // an error. - return Xsqlite3CorruptError(tls, 68058) + (*MemPage)(unsafe.Pointer(pPage)).FintKey = U8(0) + (*MemPage)(unsafe.Pointer(pPage)).FintKeyLeaf = U8(0) + (*MemPage)(unsafe.Pointer(pPage)).FxCellSize = *(*uintptr)(unsafe.Pointer(&struct { + f func(*libc.TLS, uintptr, uintptr) U16 + }{cellSizePtr})) + (*MemPage)(unsafe.Pointer(pPage)).FxParseCell = *(*uintptr)(unsafe.Pointer(&struct { + f func(*libc.TLS, uintptr, uintptr, uintptr) + }{btreeParseCellPtrIndex})) + return Xsqlite3CorruptError(tls, 68757) } (*MemPage)(unsafe.Pointer(pPage)).Fmax1bytePayload = (*BtShared)(unsafe.Pointer(pBt)).Fmax1bytePayload return SQLITE_OK @@ -90295,7 +90442,7 @@ func decodeFlags(tls *libc.TLS, pPage uintptr, flagByte int32) int32 { /* testda // Compute the amount of freespace on the page. In other words, fill // in the pPage->nFree field. -func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68068:12: */ +func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68767:12: */ var pc int32 // Address of a freeblock within pPage->aData[] var hdr U8 // Offset to beginning of page header var data uintptr // Equal to pPage->aData @@ -90327,12 +90474,12 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sql if pc < top { // EVIDENCE-OF: R-55530-52930 In a well-formed b-tree page, there will // always be at least one cell before the first freeblock. - return Xsqlite3CorruptError(tls, 68109) + return Xsqlite3CorruptError(tls, 68808) } for 1 != 0 { if pc > iCellLast { // Freeblock off the end of the page - return Xsqlite3CorruptError(tls, 68114) + return Xsqlite3CorruptError(tls, 68813) } next = U32(int32(*(*U8)(unsafe.Pointer(data + uintptr(pc))))<<8 | int32(*(*U8)(unsafe.Pointer(data + uintptr(pc) + 1)))) size = U32(int32(*(*U8)(unsafe.Pointer(data + uintptr(pc+2))))<<8 | int32(*(*U8)(unsafe.Pointer(data + uintptr(pc+2) + 1)))) @@ -90344,11 +90491,11 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sql } if next > U32(0) { // Freeblock not in ascending order - return Xsqlite3CorruptError(tls, 68124) + return Xsqlite3CorruptError(tls, 68823) } if U32(pc)+size > uint32(usableSize) { // Last freeblock extends past page end - return Xsqlite3CorruptError(tls, 68128) + return Xsqlite3CorruptError(tls, 68827) } } @@ -90359,7 +90506,7 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sql // serves to verify that the offset to the start of the cell-content // area, according to the page header, lies within the page. if nFree > usableSize || nFree < iCellFirst { - return Xsqlite3CorruptError(tls, 68140) + return Xsqlite3CorruptError(tls, 68839) } (*MemPage)(unsafe.Pointer(pPage)).FnFree = int32(U16(nFree - iCellFirst)) return SQLITE_OK @@ -90367,7 +90514,7 @@ func btreeComputeFreeSpace(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sql // Do additional sanity check after btreeInitPage() if // PRAGMA cell_size_check=ON -func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68150:28: */ +func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68849:28: */ var iCellFirst int32 // First allowable cell or freeblock offset var iCellLast int32 // Last possible cell or freeblock offset var i int32 // Index into the cell pointer array @@ -90389,14 +90536,14 @@ func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite pc = int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer(data + uintptr(cellOffset+i*2))))) if pc < iCellFirst || pc > iCellLast { - return Xsqlite3CorruptError(tls, 68171) + return Xsqlite3CorruptError(tls, 68870) } sz = int32((*struct { f func(*libc.TLS, uintptr, uintptr) U16 })(unsafe.Pointer(&struct{ uintptr }{(*MemPage)(unsafe.Pointer(pPage)).FxCellSize})).f(tls, pPage, data+uintptr(pc))) if pc+sz > usableSize { - return Xsqlite3CorruptError(tls, 68176) + return Xsqlite3CorruptError(tls, 68875) } } return SQLITE_OK @@ -90409,7 +90556,7 @@ func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite // SQLITE_CORRUPT. Note that a return of SQLITE_OK does not // guarantee that the page is well-formed. It only shows that // we failed to detect any corruption. -func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68191:12: */ +func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68890:12: */ var data uintptr // Equal to pPage->aData var pBt uintptr // The main btree structure @@ -90418,7 +90565,7 @@ func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amal // EVIDENCE-OF: R-28594-02890 The one-byte flag at offset 0 indicating // the b-tree page type. if decodeFlags(tls, pPage, int32(*(*U8)(unsafe.Pointer(data)))) != 0 { - return Xsqlite3CorruptError(tls, 68208) + return Xsqlite3CorruptError(tls, 68907) } (*MemPage)(unsafe.Pointer(pPage)).FmaskPage = U16((*BtShared)(unsafe.Pointer(pBt)).FpageSize - U32(1)) @@ -90432,7 +90579,7 @@ func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amal (*MemPage)(unsafe.Pointer(pPage)).FnCell = U16(int32(*(*U8)(unsafe.Pointer(data + 3)))<<8 | int32(*(*U8)(unsafe.Pointer(data + 3 + 1)))) if U32((*MemPage)(unsafe.Pointer(pPage)).FnCell) > ((*BtShared)(unsafe.Pointer(pBt)).FpageSize-U32(8))/U32(6) { // To many cells for a single page. The page must be corrupt - return Xsqlite3CorruptError(tls, 68222) + return Xsqlite3CorruptError(tls, 68921) } // EVIDENCE-OF: R-24089-57979 If a page contains no cells (which is only @@ -90450,7 +90597,7 @@ func btreeInitPage(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amal // Set up a raw page so that it looks like a database page holding // no entries. -func zeroPage(tls *libc.TLS, pPage uintptr, flags int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68244:13: */ +func zeroPage(tls *libc.TLS, pPage uintptr, flags int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68943:13: */ var data uintptr = (*MemPage)(unsafe.Pointer(pPage)).FaData var pBt uintptr = (*MemPage)(unsafe.Pointer(pPage)).FpBt var hdr U8 = (*MemPage)(unsafe.Pointer(pPage)).FhdrOffset @@ -90485,7 +90632,7 @@ func zeroPage(tls *libc.TLS, pPage uintptr, flags int32) { /* testdata/sqlite-am // Convert a DbPage obtained from the pager into a MemPage used by // the btree layer. -func btreePageFromDbPage(tls *libc.TLS, pDbPage uintptr, pgno Pgno, pBt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68281:16: */ +func btreePageFromDbPage(tls *libc.TLS, pDbPage uintptr, pgno Pgno, pBt uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:68980:16: */ var pPage uintptr = Xsqlite3PagerGetExtra(tls, pDbPage) if pgno != (*MemPage)(unsafe.Pointer(pPage)).Fpgno { (*MemPage)(unsafe.Pointer(pPage)).FaData = Xsqlite3PagerGetData(tls, pDbPage) @@ -90512,7 +90659,7 @@ func btreePageFromDbPage(tls *libc.TLS, pDbPage uintptr, pgno Pgno, pBt uintptr) // If in the future we call sqlite3PagerWrite() on this page, that // means we have started to be concerned about content and the disk // read should occur at that point. -func btreeGetPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68305:12: */ +func btreeGetPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69004:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -90530,7 +90677,7 @@ func btreeGetPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, flags i // Retrieve a page from the pager cache. If the requested page is not // already in the pager cache return NULL. Initialize the MemPage.pBt and // MemPage.aData elements if needed. -func btreePageLookup(tls *libc.TLS, pBt uintptr, pgno Pgno) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68327:16: */ +func btreePageLookup(tls *libc.TLS, pBt uintptr, pgno Pgno) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69026:16: */ var pDbPage uintptr pDbPage = Xsqlite3PagerLookup(tls, (*BtShared)(unsafe.Pointer(pBt)).FpPager, pgno) @@ -90542,11 +90689,11 @@ func btreePageLookup(tls *libc.TLS, pBt uintptr, pgno Pgno) uintptr { /* testdat // Return the size of the database file in pages. If there is any kind of // error, return ((unsigned int)-1). -func btreePagecount(tls *libc.TLS, pBt uintptr) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68341:13: */ +func btreePagecount(tls *libc.TLS, pBt uintptr) Pgno { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69040:13: */ return (*BtShared)(unsafe.Pointer(pBt)).FnPage } -func Xsqlite3BtreeLastPage(tls *libc.TLS, p uintptr) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68344:21: */ +func Xsqlite3BtreeLastPage(tls *libc.TLS, p uintptr) Pgno { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69043:21: */ return btreePagecount(tls, (*Btree)(unsafe.Pointer(p)).FpBt) } @@ -90562,7 +90709,7 @@ func Xsqlite3BtreeLastPage(tls *libc.TLS, p uintptr) Pgno { /* testdata/sqlite-a // // If an error occurs, then *ppPage is undefined. It // may remain unchanged, or it may be set to an invalid value. -func getAndInitPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, pCur uintptr, bReadOnly int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68362:12: */ +func getAndInitPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, pCur uintptr, bReadOnly int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69061:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -90572,7 +90719,7 @@ func getAndInitPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, pCur if !(pgno > btreePagecount(tls, pBt)) { goto __1 } - rc = Xsqlite3CorruptError(tls, 68377) + rc = Xsqlite3CorruptError(tls, 69076) goto getAndInitPage_error1 __1: ; @@ -90603,7 +90750,7 @@ __3: if !(pCur != 0 && (int32((*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppPage)))).FnCell) < 1 || int32((*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppPage)))).FintKey) != int32((*BtCursor)(unsafe.Pointer(pCur)).FcurIntKey))) { goto __5 } - rc = Xsqlite3CorruptError(tls, 68398) + rc = Xsqlite3CorruptError(tls, 69097) goto getAndInitPage_error2 __5: ; @@ -90627,18 +90774,18 @@ __6: // call to btreeGetPage. // // Page1 is a special case and must be released using releasePageOne(). -func releasePageNotNull(tls *libc.TLS, pPage uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68421:13: */ +func releasePageNotNull(tls *libc.TLS, pPage uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69122:13: */ Xsqlite3PagerUnrefNotNull(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage) } -func releasePage(tls *libc.TLS, pPage uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68430:13: */ +func releasePage(tls *libc.TLS, pPage uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69131:13: */ if pPage != 0 { releasePageNotNull(tls, pPage) } } -func releasePageOne(tls *libc.TLS, pPage uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68433:13: */ +func releasePageOne(tls *libc.TLS, pPage uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69134:13: */ Xsqlite3PagerUnrefPageOne(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage) } @@ -90647,16 +90794,16 @@ func releasePageOne(tls *libc.TLS, pPage uintptr) { /* testdata/sqlite-amalgamat // // This works just like btreeGetPage() with the addition: // -// * If the page is already in use for some other purpose, immediately -// release it and return an SQLITE_CURRUPT error. -// * Make sure the isInit flag is clear -func btreeGetUnusedPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68453:12: */ +// - If the page is already in use for some other purpose, immediately +// release it and return an SQLITE_CURRUPT error. +// - Make sure the isInit flag is clear +func btreeGetUnusedPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69154:12: */ var rc int32 = btreeGetPage(tls, pBt, pgno, ppPage, flags) if rc == SQLITE_OK { if Xsqlite3PagerPageRefcount(tls, (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppPage)))).FpDbPage) > 1 { releasePage(tls, *(*uintptr)(unsafe.Pointer(ppPage))) *(*uintptr)(unsafe.Pointer(ppPage)) = uintptr(0) - return Xsqlite3CorruptError(tls, 68464) + return Xsqlite3CorruptError(tls, 69165) } (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(ppPage)))).FisInit = U8(0) } else { @@ -90671,7 +90818,7 @@ func btreeGetUnusedPage(tls *libc.TLS, pBt uintptr, pgno Pgno, ppPage uintptr, f // // This routine needs to reset the extra data section at the end of the // page to agree with the restored data. -func pageReinit(tls *libc.TLS, pData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68482:13: */ +func pageReinit(tls *libc.TLS, pData uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69183:13: */ var pPage uintptr pPage = Xsqlite3PagerGetExtra(tls, pData) @@ -90691,7 +90838,7 @@ func pageReinit(tls *libc.TLS, pData uintptr) { /* testdata/sqlite-amalgamation- } // Invoke the busy handler for a btree. -func btreeInvokeBusyHandler(tls *libc.TLS, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68504:12: */ +func btreeInvokeBusyHandler(tls *libc.TLS, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69205:12: */ var pBt uintptr = pArg return Xsqlite3InvokeBusyHandler(tls, (*BtShared)(unsafe.Pointer(pBt)).Fdb+664) @@ -90716,7 +90863,7 @@ func btreeInvokeBusyHandler(tls *libc.TLS, pArg uintptr) int32 { /* testdata/sql // SQLITE_CONSTRAINT error. We cannot allow two or more BtShared // objects in the same database connection since doing so will lead // to problems with locking. -func Xsqlite3BtreeOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr, db uintptr, ppBtree uintptr, flags int32, vfsFlags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68532:20: */ +func Xsqlite3BtreeOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr, db uintptr, ppBtree uintptr, flags int32, vfsFlags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69233:20: */ bp := tls.Alloc(100) defer tls.Free(100) @@ -90748,7 +90895,7 @@ func Xsqlite3BtreeOpen(tls *libc.TLS, pVfs uintptr, zFilename uintptr, db uintpt mutexOpen = uintptr(0) rc = SQLITE_OK isTempDb = libc.Bool32(zFilename == uintptr(0) || int32(*(*int8)(unsafe.Pointer(zFilename))) == 0) - isMemdb = libc.Bool32(zFilename != 0 && libc.Xstrcmp(tls, zFilename, ts+5352) == 0 || + isMemdb = libc.Bool32(zFilename != 0 && libc.Xstrcmp(tls, zFilename, ts+5387) == 0 || isTempDb != 0 && Xsqlite3TempInMemory(tls, db) != 0 || vfsFlags&SQLITE_OPEN_MEMORY != 0) @@ -91137,7 +91284,7 @@ __49: // remove the BtShared structure from the sharing list. Return // true if the BtShared.nRef counter reaches zero and return // false if it is still positive. -func removeFromSharingList(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68830:12: */ +func removeFromSharingList(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69531:12: */ var pMainMtx uintptr var pList uintptr var removed int32 = 0 @@ -91169,7 +91316,7 @@ func removeFromSharingList(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlit // Make sure pBt->pTmpSpace points to an allocation of // MX_CELL_SIZE(pBt) bytes with a 4-byte prefix for a left-child // pointer. -func allocateTempSpace(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68869:28: */ +func allocateTempSpace(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69570:28: */ // This routine is called only by btreeCursor() when allocating the // first write cursor for the BtShared object @@ -91202,7 +91349,7 @@ func allocateTempSpace(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-am } // Free the pBt->pTmpSpace allocation -func freeTempSpace(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68906:13: */ +func freeTempSpace(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69607:13: */ if (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace != 0 { *(*uintptr)(unsafe.Pointer(pBt + 136)) -= uintptr(4) Xsqlite3PageFree(tls, (*BtShared)(unsafe.Pointer(pBt)).FpTmpSpace) @@ -91211,7 +91358,7 @@ func freeTempSpace(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation } // Close an open database and invalidate all cursors. -func Xsqlite3BtreeClose(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68917:20: */ +func Xsqlite3BtreeClose(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69618:20: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt // Close all cursors opened via this handle. @@ -91261,7 +91408,7 @@ func Xsqlite3BtreeClose(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-ama // pages in the cache exceeds this soft limit. But the size of the // cache is allowed to grow larger than this limit if it contains // dirty pages or pages still in active use. -func Xsqlite3BtreeSetCacheSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:68983:20: */ +func Xsqlite3BtreeSetCacheSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69684:20: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt Xsqlite3BtreeEnter(tls, p) @@ -91278,7 +91425,7 @@ func Xsqlite3BtreeSetCacheSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { / // The value returned is the current spill size. If zero is passed // as an argument, no changes are made to the spill size setting, so // using mxPage of 0 is a way to query the current spill size. -func Xsqlite3BtreeSetSpillSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69002:20: */ +func Xsqlite3BtreeSetSpillSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69703:20: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt var res int32 @@ -91290,7 +91437,7 @@ func Xsqlite3BtreeSetSpillSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { / // Change the limit on the amount of the database file that may be // memory mapped. -func Xsqlite3BtreeSetMmapLimit(tls *libc.TLS, p uintptr, szMmap Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69017:20: */ +func Xsqlite3BtreeSetMmapLimit(tls *libc.TLS, p uintptr, szMmap Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69718:20: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt Xsqlite3BtreeEnter(tls, p) @@ -91305,7 +91452,7 @@ func Xsqlite3BtreeSetMmapLimit(tls *libc.TLS, p uintptr, szMmap Sqlite3_int64) i // there is a high probability of damage) Level 2 is the default. There // is a very low but non-zero probability of damage. Level 3 reduces the // probability of damage to near zero but with a write performance reduction. -func Xsqlite3BtreeSetPagerFlags(tls *libc.TLS, p uintptr, pgFlags uint32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69036:20: */ +func Xsqlite3BtreeSetPagerFlags(tls *libc.TLS, p uintptr, pgFlags uint32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69737:20: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt Xsqlite3BtreeEnter(tls, p) @@ -91332,7 +91479,7 @@ func Xsqlite3BtreeSetPagerFlags(tls *libc.TLS, p uintptr, pgFlags uint32) int32 // // If the iFix!=0 then the BTS_PAGESIZE_FIXED flag is set so that the page size // and autovacuum mode can no longer be changed. -func Xsqlite3BtreeSetPageSize(tls *libc.TLS, p uintptr, pageSize int32, nReserve int32, iFix int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69069:20: */ +func Xsqlite3BtreeSetPageSize(tls *libc.TLS, p uintptr, pageSize int32, nReserve int32, iFix int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69770:20: */ var rc int32 = SQLITE_OK var x int32 var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt @@ -91366,7 +91513,7 @@ func Xsqlite3BtreeSetPageSize(tls *libc.TLS, p uintptr, pageSize int32, nReserve } // Return the currently defined page size -func Xsqlite3BtreeGetPageSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69101:20: */ +func Xsqlite3BtreeGetPageSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69802:20: */ return int32((*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpageSize) } @@ -91379,7 +91526,7 @@ func Xsqlite3BtreeGetPageSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqli // database handle that owns *p is not. In this case if sqlite3BtreeEnter() // were to be called, it might collide with some other operation on the // database handle that owns *p, causing undefined behavior. -func Xsqlite3BtreeGetReserveNoMutex(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69116:20: */ +func Xsqlite3BtreeGetReserveNoMutex(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69817:20: */ var n int32 n = int32((*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpageSize - (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FusableSize) @@ -91393,7 +91540,7 @@ func Xsqlite3BtreeGetReserveNoMutex(tls *libc.TLS, p uintptr) int32 { /* testdat // The value returned is the larger of the current reserve size and // the latest reserve size requested by SQLITE_FILECTRL_RESERVE_BYTES. // The amount of reserve can only grow - never shrink. -func Xsqlite3BtreeGetRequestedReserve(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69132:20: */ +func Xsqlite3BtreeGetRequestedReserve(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69833:20: */ var n1 int32 var n2 int32 Xsqlite3BtreeEnter(tls, p) @@ -91409,7 +91556,7 @@ func Xsqlite3BtreeGetRequestedReserve(tls *libc.TLS, p uintptr) int32 { /* testd // Set the maximum page count for a database if mxPage is positive. // No changes are made if mxPage is 0 or negative. // Regardless of the value of mxPage, return the maximum page count. -func Xsqlite3BtreeMaxPageCount(tls *libc.TLS, p uintptr, mxPage Pgno) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69147:21: */ +func Xsqlite3BtreeMaxPageCount(tls *libc.TLS, p uintptr, mxPage Pgno) Pgno { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69848:21: */ var n Pgno Xsqlite3BtreeEnter(tls, p) n = Xsqlite3PagerMaxPageCount(tls, (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpPager, mxPage) @@ -91419,12 +91566,12 @@ func Xsqlite3BtreeMaxPageCount(tls *libc.TLS, p uintptr, mxPage Pgno) Pgno { /* // Change the values for the BTS_SECURE_DELETE and BTS_OVERWRITE flags: // -// newFlag==0 Both BTS_SECURE_DELETE and BTS_OVERWRITE are cleared -// newFlag==1 BTS_SECURE_DELETE set and BTS_OVERWRITE is cleared -// newFlag==2 BTS_SECURE_DELETE cleared and BTS_OVERWRITE is set -// newFlag==(-1) No changes +// newFlag==0 Both BTS_SECURE_DELETE and BTS_OVERWRITE are cleared +// newFlag==1 BTS_SECURE_DELETE set and BTS_OVERWRITE is cleared +// newFlag==2 BTS_SECURE_DELETE cleared and BTS_OVERWRITE is set +// newFlag==(-1) No changes // -// This routine acts as a query if newFlag is less than zero +// # This routine acts as a query if newFlag is less than zero // // With BTS_OVERWRITE set, deleted content is overwritten by zeros, but // freelist leaf pages are not written back to the database. Thus in-page @@ -91433,7 +91580,7 @@ func Xsqlite3BtreeMaxPageCount(tls *libc.TLS, p uintptr, mxPage Pgno) Pgno { /* // With BTS_SECURE_DELETE, operation is like BTS_OVERWRITE with the addition // that freelist leaf pages are written back into the database, increasing // the amount of disk I/O. -func Xsqlite3BtreeSecureDelete(tls *libc.TLS, p uintptr, newFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69173:20: */ +func Xsqlite3BtreeSecureDelete(tls *libc.TLS, p uintptr, newFlag int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69874:20: */ var b int32 if p == uintptr(0) { return 0 @@ -91453,7 +91600,7 @@ func Xsqlite3BtreeSecureDelete(tls *libc.TLS, p uintptr, newFlag int32) int32 { // parameter is non-zero, then auto-vacuum mode is enabled. If zero, it // is disabled. The default value for the auto-vacuum property is // determined by the SQLITE_DEFAULT_AUTOVACUUM macro. -func Xsqlite3BtreeSetAutoVacuum(tls *libc.TLS, p uintptr, autoVacuum int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69194:20: */ +func Xsqlite3BtreeSetAutoVacuum(tls *libc.TLS, p uintptr, autoVacuum int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69895:20: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt var rc int32 = SQLITE_OK var av U8 = U8(autoVacuum) @@ -91486,7 +91633,7 @@ func Xsqlite3BtreeSetAutoVacuum(tls *libc.TLS, p uintptr, autoVacuum int32) int3 // Return the value of the 'auto-vacuum' property. If auto-vacuum is // enabled 1 is returned. Otherwise 0. -func Xsqlite3BtreeGetAutoVacuum(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69218:20: */ +func Xsqlite3BtreeGetAutoVacuum(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69919:20: */ var rc int32 Xsqlite3BtreeEnter(tls, p) rc = func() int32 { @@ -91511,7 +91658,7 @@ func Xsqlite3BtreeGetAutoVacuum(tls *libc.TLS, p uintptr) int32 { /* testdata/sq // well-formed database file, then SQLITE_CORRUPT is returned. // SQLITE_BUSY is returned if the database is locked. SQLITE_NOMEM // is returned if we run out of memory. -func lockBtree(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69274:12: */ +func lockBtree(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:69975:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -91627,7 +91774,7 @@ __10: // // The original design allowed these amounts to vary, but as of // version 3.6.0, we require them to be fixed. - if !(libc.Xmemcmp(tls, page1+21, ts+5361, uint64(3)) != 0) { + if !(libc.Xmemcmp(tls, page1+21, ts+5396, uint64(3)) != 0) { goto __14 } goto page1_init_failed @@ -91680,7 +91827,7 @@ __16: if !(Xsqlite3WritableSchema(tls, (*BtShared)(unsafe.Pointer(pBt)).Fdb) == 0) { goto __18 } - rc = Xsqlite3CorruptError(tls, 69399) + rc = Xsqlite3CorruptError(tls, 70100) goto page1_init_failed goto __19 __18: @@ -91757,7 +91904,7 @@ page1_init_failed: // has the effect of releasing the read lock. // // If there is a transaction in progress, this routine is a no-op. -func unlockBtreeIfUnused(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69484:13: */ +func unlockBtreeIfUnused(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70185:13: */ if int32((*BtShared)(unsafe.Pointer(pBt)).FinTransaction) == TRANS_NONE && (*BtShared)(unsafe.Pointer(pBt)).FpPage1 != uintptr(0) { var pPage1 uintptr = (*BtShared)(unsafe.Pointer(pBt)).FpPage1 @@ -91770,7 +91917,7 @@ func unlockBtreeIfUnused(tls *libc.TLS, pBt uintptr) { /* testdata/sqlite-amalga // If pBt points to an empty file then convert that empty file // into a new empty database by initializing the first page of // the database. -func newDatabase(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69501:12: */ +func newDatabase(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70202:12: */ var pP1 uintptr var data uintptr var rc int32 @@ -91810,7 +91957,7 @@ func newDatabase(tls *libc.TLS, pBt uintptr) int32 { /* testdata/sqlite-amalgama // Initialize the first page of the database file (creating a database // consisting of a single page and no schema objects). Return SQLITE_OK // if successful, or an SQLite error code otherwise. -func Xsqlite3BtreeNewDb(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69545:20: */ +func Xsqlite3BtreeNewDb(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70246:20: */ var rc int32 Xsqlite3BtreeEnter(tls, p) (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FnPage = U32(0) @@ -91831,13 +91978,13 @@ func Xsqlite3BtreeNewDb(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-ama // changes to the database. None of the following routines // will work unless a transaction is started first: // -// sqlite3BtreeCreateTable() -// sqlite3BtreeCreateIndex() -// sqlite3BtreeClearTable() -// sqlite3BtreeDropTable() -// sqlite3BtreeInsert() -// sqlite3BtreeDelete() -// sqlite3BtreeUpdateMeta() +// sqlite3BtreeCreateTable() +// sqlite3BtreeCreateIndex() +// sqlite3BtreeClearTable() +// sqlite3BtreeDropTable() +// sqlite3BtreeInsert() +// sqlite3BtreeDelete() +// sqlite3BtreeUpdateMeta() // // If an initial attempt to acquire the lock fails because of lock contention // and the database was previously unlocked, then invoke the busy handler @@ -91852,7 +91999,7 @@ func Xsqlite3BtreeNewDb(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-ama // no progress. By returning SQLITE_BUSY and not invoking the busy callback // when A already has a read lock, we encourage A to give up and let B // proceed. -func Xsqlite3BtreeBeginTrans(tls *libc.TLS, p uintptr, wrflag int32, pSchemaVersion uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69589:20: */ +func Xsqlite3BtreeBeginTrans(tls *libc.TLS, p uintptr, wrflag int32, pSchemaVersion uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70290:20: */ var pBt uintptr var pPager uintptr var rc int32 @@ -92116,7 +92263,7 @@ __34: // Set the pointer-map entries for all children of page pPage. Also, if // pPage contains cells that point to overflow pages, set the pointer // map entries for the overflow pages as well. -func setChildPtrmaps(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69769:12: */ +func setChildPtrmaps(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70470:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -92161,21 +92308,24 @@ func setChildPtrmaps(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-am // be modified, as follows: // // PTRMAP_BTREE: pPage is a btree-page. The pointer points at a child -// page of pPage. +// +// page of pPage. // // PTRMAP_OVERFLOW1: pPage is a btree-page. The pointer points at an overflow -// page pointed to by one of the cells on pPage. +// +// page pointed to by one of the cells on pPage. // // PTRMAP_OVERFLOW2: pPage is an overflow-page. The pointer points at the next -// overflow page in the list. -func modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom Pgno, iTo Pgno, eType U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69814:12: */ +// +// overflow page in the list. +func modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom Pgno, iTo Pgno, eType U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70515:12: */ bp := tls.Alloc(24) defer tls.Free(24) if int32(eType) == PTRMAP_OVERFLOW2 { // The pointer is always the first 4 bytes of the page in this case. if Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData) != iFrom { - return Xsqlite3CorruptError(tls, 69820) + return Xsqlite3CorruptError(tls, 70521) } Xsqlite3Put4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData, iTo) } else { @@ -92203,7 +92353,7 @@ func modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom Pgno, iTo Pgno, eType })(unsafe.Pointer(&struct{ uintptr }{(*MemPage)(unsafe.Pointer(pPage)).FxParseCell})).f(tls, pPage, pCell, bp /* &info */) if U32((*CellInfo)(unsafe.Pointer(bp)).FnLocal) < (*CellInfo)(unsafe.Pointer(bp)).FnPayload { if pCell+uintptr((*CellInfo)(unsafe.Pointer(bp)).FnSize) > (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr((*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize) { - return Xsqlite3CorruptError(tls, 69839) + return Xsqlite3CorruptError(tls, 70540) } if iFrom == Xsqlite3Get4byte(tls, pCell+uintptr((*CellInfo)(unsafe.Pointer(bp)).FnSize)-uintptr(4)) { Xsqlite3Put4byte(tls, pCell+uintptr((*CellInfo)(unsafe.Pointer(bp)).FnSize)-uintptr(4), iTo) @@ -92220,7 +92370,7 @@ func modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom Pgno, iTo Pgno, eType if i == nCell { if int32(eType) != PTRMAP_BTREE || Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset)+8)) != iFrom { - return Xsqlite3CorruptError(tls, 69857) + return Xsqlite3CorruptError(tls, 70558) } Xsqlite3Put4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset)+8), iTo) } @@ -92235,7 +92385,7 @@ func modifyPagePointer(tls *libc.TLS, pPage uintptr, iFrom Pgno, iTo Pgno, eType // the journal needs to be sync()ed before database page pDbPage->pgno // can be written to. The caller has already promised not to write to that // page. -func relocatePage(tls *libc.TLS, pBt uintptr, pDbPage uintptr, eType U8, iPtrPage Pgno, iFreePage Pgno, isCommit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69875:12: */ +func relocatePage(tls *libc.TLS, pBt uintptr, pDbPage uintptr, eType U8, iPtrPage Pgno, iFreePage Pgno, isCommit int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70576:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -92246,7 +92396,7 @@ func relocatePage(tls *libc.TLS, pBt uintptr, pDbPage uintptr, eType U8, iPtrPag // var rc int32 at bp, 4 if iDbPage < Pgno(3) { - return Xsqlite3CorruptError(tls, 69892) + return Xsqlite3CorruptError(tls, 70593) } // Move page iDbPage from its current location to page number iFreePage @@ -92316,7 +92466,7 @@ func relocatePage(tls *libc.TLS, pBt uintptr, pDbPage uintptr, eType U8, iPtrPag // caller will keep calling incrVacuumStep() until it returns SQLITE_DONE // or an error. bCommit is passed true for an auto-vacuum-on-commit // operation, or false for an incremental vacuum. -func incrVacuumStep(tls *libc.TLS, pBt uintptr, nFin Pgno, iLastPg Pgno, bCommit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:69969:12: */ +func incrVacuumStep(tls *libc.TLS, pBt uintptr, nFin Pgno, iLastPg Pgno, bCommit int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70670:12: */ bp := tls.Alloc(44) defer tls.Free(44) @@ -92338,7 +92488,7 @@ func incrVacuumStep(tls *libc.TLS, pBt uintptr, nFin Pgno, iLastPg Pgno, bCommit return rc } if int32(*(*U8)(unsafe.Pointer(bp))) == PTRMAP_ROOTPAGE { - return Xsqlite3CorruptError(tls, 69990) + return Xsqlite3CorruptError(tls, 70691) } if int32(*(*U8)(unsafe.Pointer(bp))) == PTRMAP_FREEPAGE { @@ -92384,12 +92534,17 @@ func incrVacuumStep(tls *libc.TLS, pBt uintptr, nFin Pgno, iLastPg Pgno, bCommit for __ccgo := true; __ccgo; __ccgo = bCommit != 0 && *(*Pgno)(unsafe.Pointer(bp + 40)) > nFin { // var pFreePg uintptr at bp+32, 8 + var dbSize Pgno = btreePagecount(tls, pBt) rc = allocateBtreePage(tls, pBt, bp+32, bp+40, iNear, eMode) if rc != SQLITE_OK { releasePage(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pLastPg */))) return rc } releasePage(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pFreePg */))) + if *(*Pgno)(unsafe.Pointer(bp + 40)) > dbSize { + releasePage(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pLastPg */))) + return Xsqlite3CorruptError(tls, 70743) + } } rc = relocatePage(tls, pBt, *(*uintptr)(unsafe.Pointer(bp + 24 /* pLastPg */)), *(*U8)(unsafe.Pointer(bp /* eType */)), *(*Pgno)(unsafe.Pointer(bp + 4 /* iPtrPage */)), *(*Pgno)(unsafe.Pointer(bp + 40 /* iFreePg */)), bCommit) @@ -92413,7 +92568,7 @@ func incrVacuumStep(tls *libc.TLS, pBt uintptr, nFin Pgno, iLastPg Pgno, bCommit // The database opened by the first argument is an auto-vacuum database // nOrig pages in size containing nFree free pages. Return the expected // size of the database in pages following an auto-vacuum operation. -func finalDbSize(tls *libc.TLS, pBt uintptr, nOrig Pgno, nFree Pgno) Pgno { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70065:13: */ +func finalDbSize(tls *libc.TLS, pBt uintptr, nOrig Pgno, nFree Pgno) Pgno { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70771:13: */ var nEntry int32 // Number of entries on one ptrmap page var nPtrmap Pgno // Number of PtrMap pages to be freed var nFin Pgno // Return value @@ -92437,7 +92592,7 @@ func finalDbSize(tls *libc.TLS, pBt uintptr, nOrig Pgno, nFree Pgno) Pgno { /* t // If the incremental vacuum is finished after this function has run, // SQLITE_DONE is returned. If it is not finished, but no error occurred, // SQLITE_OK is returned. Otherwise an SQLite error code. -func Xsqlite3BtreeIncrVacuum(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70091:20: */ +func Xsqlite3BtreeIncrVacuum(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70797:20: */ var rc int32 var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt @@ -92451,7 +92606,7 @@ func Xsqlite3BtreeIncrVacuum(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlit var nFin Pgno = finalDbSize(tls, pBt, nOrig, nFree) if nOrig < nFin || nFree >= nOrig { - rc = Xsqlite3CorruptError(tls, 70105) + rc = Xsqlite3CorruptError(tls, 70811) } else if nFree > Pgno(0) { rc = saveAllCursors(tls, pBt, uint32(0), uintptr(0)) if rc == SQLITE_OK { @@ -92472,7 +92627,7 @@ func Xsqlite3BtreeIncrVacuum(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlit // This routine is called prior to sqlite3PagerCommit when a transaction // is committed for an auto-vacuum database. -func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70128:12: */ +func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70834:12: */ var rc int32 = SQLITE_OK var pPager uintptr var pBt uintptr @@ -92495,7 +92650,7 @@ func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // It is not possible to create a database for which the final page // is either a pointer-map page or the pending-byte page. If one // is encountered, this indicates corruption. - return Xsqlite3CorruptError(tls, 70156) + return Xsqlite3CorruptError(tls, 70862) } nFree = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer((*BtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+36) @@ -92526,7 +92681,7 @@ func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg } nFin = finalDbSize(tls, pBt, nOrig, nVac) if nFin > nOrig { - return Xsqlite3CorruptError(tls, 70183) + return Xsqlite3CorruptError(tls, 70889) } if nFin < nOrig { rc = saveAllCursors(tls, pBt, uint32(0), uintptr(0)) @@ -92576,7 +92731,7 @@ func autoVacuumCommit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // // Once this is routine has returned, the only thing required to commit // the write-transaction for this database file is to delete the journal. -func Xsqlite3BtreeCommitPhaseOne(tls *libc.TLS, p uintptr, zSuperJrnl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70239:20: */ +func Xsqlite3BtreeCommitPhaseOne(tls *libc.TLS, p uintptr, zSuperJrnl uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70945:20: */ var rc int32 = SQLITE_OK if int32((*Btree)(unsafe.Pointer(p)).FinTrans) == TRANS_WRITE { var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt @@ -92599,7 +92754,7 @@ func Xsqlite3BtreeCommitPhaseOne(tls *libc.TLS, p uintptr, zSuperJrnl uintptr) i // This function is called from both BtreeCommitPhaseTwo() and BtreeRollback() // at the conclusion of a transaction. -func btreeEndTransaction(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70266:13: */ +func btreeEndTransaction(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:70972:13: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt var db uintptr = (*Btree)(unsafe.Pointer(p)).Fdb @@ -92655,7 +92810,7 @@ func btreeEndTransaction(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama // // This will release the write lock on the database file. If there // are no active cursors, it also releases the read lock. -func Xsqlite3BtreeCommitPhaseTwo(tls *libc.TLS, p uintptr, bCleanup int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70328:20: */ +func Xsqlite3BtreeCommitPhaseTwo(tls *libc.TLS, p uintptr, bCleanup int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71034:20: */ if int32((*Btree)(unsafe.Pointer(p)).FinTrans) == TRANS_NONE { return SQLITE_OK @@ -92684,7 +92839,7 @@ func Xsqlite3BtreeCommitPhaseTwo(tls *libc.TLS, p uintptr, bCleanup int32) int32 } // Do both phases of a commit. -func Xsqlite3BtreeCommit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70360:20: */ +func Xsqlite3BtreeCommit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71066:20: */ var rc int32 Xsqlite3BtreeEnter(tls, p) rc = Xsqlite3BtreeCommitPhaseOne(tls, p, uintptr(0)) @@ -92719,7 +92874,7 @@ func Xsqlite3BtreeCommit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-am // // SQLITE_OK is returned if successful, or if an error occurs while // saving a cursor position, an SQLite error code. -func Xsqlite3BtreeTripAllCursors(tls *libc.TLS, pBtree uintptr, errCode int32, writeOnly int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70397:20: */ +func Xsqlite3BtreeTripAllCursors(tls *libc.TLS, pBtree uintptr, errCode int32, writeOnly int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71103:20: */ var p uintptr var rc int32 = SQLITE_OK @@ -92748,7 +92903,7 @@ func Xsqlite3BtreeTripAllCursors(tls *libc.TLS, pBtree uintptr, errCode int32, w // Set the pBt->nPage field correctly, according to the current // state of the database. Assume pBt->pPage1 is valid. -func btreeSetNPage(tls *libc.TLS, pBt uintptr, pPage1 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70429:13: */ +func btreeSetNPage(tls *libc.TLS, pBt uintptr, pPage1 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71135:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -92770,7 +92925,7 @@ func btreeSetNPage(tls *libc.TLS, pBt uintptr, pPage1 uintptr) { /* testdata/sql // // This will release the write lock on the database file. If there // are no active cursors, it also releases the read lock. -func Xsqlite3BtreeRollback(tls *libc.TLS, p uintptr, tripCode int32, writeOnly int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70448:20: */ +func Xsqlite3BtreeRollback(tls *libc.TLS, p uintptr, tripCode int32, writeOnly int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71154:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -92836,7 +92991,7 @@ func Xsqlite3BtreeRollback(tls *libc.TLS, p uintptr, tripCode int32, writeOnly i // are no active savepoints and no other statement-transactions open, // iStatement is 1. This anonymous savepoint can be released or rolled back // using the sqlite3BtreeSavepoint() function. -func Xsqlite3BtreeBeginStmt(tls *libc.TLS, p uintptr, iStatement int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70513:20: */ +func Xsqlite3BtreeBeginStmt(tls *libc.TLS, p uintptr, iStatement int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71219:20: */ var rc int32 var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt Xsqlite3BtreeEnter(tls, p) @@ -92860,7 +93015,7 @@ func Xsqlite3BtreeBeginStmt(tls *libc.TLS, p uintptr, iStatement int32) int32 { // contents of the entire transaction are rolled back. This is different // from a normal transaction rollback, as no locks are released and the // transaction remains open. -func Xsqlite3BtreeSavepoint(tls *libc.TLS, p uintptr, op int32, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70544:20: */ +func Xsqlite3BtreeSavepoint(tls *libc.TLS, p uintptr, op int32, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71250:20: */ var rc int32 = SQLITE_OK if p != 0 && int32((*Btree)(unsafe.Pointer(p)).FinTrans) == TRANS_WRITE { var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt @@ -92903,10 +93058,11 @@ func Xsqlite3BtreeSavepoint(tls *libc.TLS, p uintptr, op int32, iSavepoint int32 // 1: The cursor must have been opened with wrFlag containing BTREE_WRCSR // // 2: Other database connections that share the same pager cache -// but which are not in the READ_UNCOMMITTED state may not have -// cursors open with wrFlag==0 on the same table. Otherwise -// the changes made by this write cursor would be visible to -// the read cursors in the other database connection. +// +// but which are not in the READ_UNCOMMITTED state may not have +// cursors open with wrFlag==0 on the same table. Otherwise +// the changes made by this write cursor would be visible to +// the read cursors in the other database connection. // // 3: The database must be writable (not on read-only media) // @@ -92928,7 +93084,7 @@ func Xsqlite3BtreeSavepoint(tls *libc.TLS, p uintptr, op int32, iSavepoint int32 // // It is assumed that the sqlite3BtreeCursorZero() has been called // on pCur to initialize the memory space prior to invoking this routine. -func btreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70615:12: */ +func btreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71321:12: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt // Shared b-tree handle var pX uintptr // Looping over other all cursors @@ -92941,7 +93097,7 @@ func btreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo u if iTable <= Pgno(1) { if iTable < Pgno(1) { - return Xsqlite3CorruptError(tls, 70647) + return Xsqlite3CorruptError(tls, 71353) } else if btreePagecount(tls, pBt) == Pgno(0) { iTable = Pgno(0) @@ -92979,7 +93135,7 @@ func btreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo u return SQLITE_OK } -func btreeCursorWithLock(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70682:12: */ +func btreeCursorWithLock(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71388:12: */ var rc int32 Xsqlite3BtreeEnter(tls, p) rc = btreeCursor(tls, p, iTable, wrFlag, pKeyInfo, pCur) @@ -92987,7 +93143,7 @@ func btreeCursorWithLock(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pK return rc } -func Xsqlite3BtreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70695:20: */ +func Xsqlite3BtreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pKeyInfo uintptr, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71401:20: */ if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 { return btreeCursorWithLock(tls, p, iTable, wrFlag, pKeyInfo, pCur) } else { @@ -93002,7 +93158,7 @@ func Xsqlite3BtreeCursor(tls *libc.TLS, p uintptr, iTable Pgno, wrFlag int32, pK // sufficient storage to hold a cursor. The BtCursor object is opaque // to users so they cannot do the sizeof() themselves - they must call // this routine. -func Xsqlite3BtreeCursorSize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70717:20: */ +func Xsqlite3BtreeCursorSize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71423:20: */ return int32((uint64(unsafe.Sizeof(BtCursor{})) + uint64(7)) & libc.Uint64FromInt32(libc.CplInt32(7))) } @@ -93012,13 +93168,13 @@ func Xsqlite3BtreeCursorSize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamat // to zero. But it turns out that the apPage[] and aiIdx[] arrays // do not need to be zeroed and they are large, so we can save a lot // of run-time by skipping the initialization of those elements. -func Xsqlite3BtreeCursorZero(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70729:21: */ +func Xsqlite3BtreeCursorZero(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71435:21: */ libc.Xmemset(tls, p, 0, uint64(uintptr(0)+32)) } // Close a cursor. The read lock on the database file is released // when the last cursor is closed. -func Xsqlite3BtreeCloseCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70737:20: */ +func Xsqlite3BtreeCloseCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71443:20: */ var pBtree uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBtree if pBtree != 0 { var pBt uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBt @@ -93059,7 +93215,7 @@ func Xsqlite3BtreeCloseCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/s // // BtCursor.info is a cache of the information in the current cell. // Using this cache reduces the number of calls to btreeParseCell(). -func getCellInfo(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70798:29: */ +func getCellInfo(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71504:29: */ if int32((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize) == 0 { *(*U8)(unsafe.Pointer(pCur + 1)) |= U8(BTCF_ValidNKey) btreeParseCell(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpPage, int32((*BtCursor)(unsafe.Pointer(pCur)).Fix), pCur+48) @@ -93068,7 +93224,7 @@ func getCellInfo(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation- } } -func Xsqlite3BtreeCursorIsValidNN(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70817:20: */ +func Xsqlite3BtreeCursorIsValidNN(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71523:20: */ return libc.Bool32(int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_VALID) } @@ -93077,26 +93233,26 @@ func Xsqlite3BtreeCursorIsValidNN(tls *libc.TLS, pCur uintptr) int32 { /* testda // This routine is only valid for a cursor that is pointing into a // ordinary table btree. If the cursor points to an index btree or // is invalid, the result of this routine is undefined. -func Xsqlite3BtreeIntegerKey(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70828:20: */ +func Xsqlite3BtreeIntegerKey(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71534:20: */ getCellInfo(tls, pCur) return (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnKey } // Pin or unpin a cursor. -func Xsqlite3BtreeCursorPin(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70839:21: */ +func Xsqlite3BtreeCursorPin(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71545:21: */ *(*U8)(unsafe.Pointer(pCur + 1)) |= U8(BTCF_Pinned) } -func Xsqlite3BtreeCursorUnpin(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70843:21: */ +func Xsqlite3BtreeCursorUnpin(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71549:21: */ *(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_Pinned)) } // Return the offset into the database file for the start of the // payload to which the cursor is pointing. -func Xsqlite3BtreeOffset(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70853:20: */ +func Xsqlite3BtreeOffset(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71559:20: */ getCellInfo(tls, pCur) return I64((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FpageSize)*(I64((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).Fpgno)-int64(1)) + (int64((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload)-int64((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).FaData))/1 @@ -93109,7 +93265,7 @@ func Xsqlite3BtreeOffset(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sqlite-a // The caller must guarantee that the cursor is pointing to a non-NULL // valid entry. In other words, the calling procedure must guarantee // that the cursor has Cursor.eState==CURSOR_VALID. -func Xsqlite3BtreePayloadSize(tls *libc.TLS, pCur uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70871:20: */ +func Xsqlite3BtreePayloadSize(tls *libc.TLS, pCur uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71577:20: */ getCellInfo(tls, pCur) return (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnPayload @@ -93126,7 +93282,7 @@ func Xsqlite3BtreePayloadSize(tls *libc.TLS, pCur uintptr) U32 { /* testdata/sql // // The current implementation merely returns the size of the underlying // database file. -func Xsqlite3BtreeMaxRecordSize(tls *libc.TLS, pCur uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70891:30: */ +func Xsqlite3BtreeMaxRecordSize(tls *libc.TLS, pCur uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71597:30: */ return Sqlite3_int64((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FpageSize) * Sqlite3_int64((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FnPage) } @@ -93148,7 +93304,7 @@ func Xsqlite3BtreeMaxRecordSize(tls *libc.TLS, pCur uintptr) Sqlite3_int64 { /* // on *ppPage to free the reference. In no reference was obtained (because // the pointer-map was used to obtain the value for *pPgnoNext), then // *ppPage is set to zero. -func getOverflowPage(tls *libc.TLS, pBt uintptr, ovfl Pgno, ppPage uintptr, pPgnoNext uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70916:12: */ +func getOverflowPage(tls *libc.TLS, pBt uintptr, ovfl Pgno, ppPage uintptr, pPgnoNext uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71622:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -93216,7 +93372,7 @@ func getOverflowPage(tls *libc.TLS, pBt uintptr, ovfl Pgno, ppPage uintptr, pPgn // of data are copied from the buffer pBuf to pPayload. // // SQLITE_OK is returned on success, otherwise an error code. -func copyPayload(tls *libc.TLS, pPayload uintptr, pBuf uintptr, nByte int32, eOp int32, pDbPage uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:70984:12: */ +func copyPayload(tls *libc.TLS, pPayload uintptr, pBuf uintptr, nByte int32, eOp int32, pDbPage uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71690:12: */ if eOp != 0 { // Copy data from buffer to page (a write operation) var rc int32 = Xsqlite3PagerWrite(tls, pDbPage) @@ -93235,8 +93391,8 @@ func copyPayload(tls *libc.TLS, pPayload uintptr, pBuf uintptr, nByte int32, eOp // for the entry that the pCur cursor is pointing to. The eOp // argument is interpreted as follows: // -// 0: The operation is a read. Populate the overflow cache. -// 1: The operation is a write. Populate the overflow cache. +// 0: The operation is a read. Populate the overflow cache. +// 1: The operation is a write. Populate the overflow cache. // // A total of "amt" bytes are read or written beginning at "offset". // Data is read to or from the buffer pBuf. @@ -93255,10 +93411,10 @@ func copyPayload(tls *libc.TLS, pPayload uintptr, pBuf uintptr, nByte int32, eOp // the cursor is moved to a different row. Additionally, in auto-vacuum // mode, the following events may invalidate an overflow page-list cache. // -// * An incremental vacuum, -// * A commit in auto_vacuum="full" mode, -// * Creating a table (may require moving an overflow page). -func accessPayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr, eOp int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71034:12: */ +// - An incremental vacuum, +// - A commit in auto_vacuum="full" mode, +// - Creating a table (may require moving an overflow page). +func accessPayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr, eOp int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71740:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -93269,7 +93425,7 @@ func accessPayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintpt var pBt uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBt // Btree this cursor belongs to if int32((*BtCursor)(unsafe.Pointer(pCur)).Fix) >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) { - return Xsqlite3CorruptError(tls, 71054) + return Xsqlite3CorruptError(tls, 71760) } getCellInfo(tls, pCur) @@ -93280,7 +93436,7 @@ func accessPayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintpt // conditional above is really: // &aPayload[pCur->info.nLocal] > &pPage->aData[pBt->usableSize] // but is recast into its current form to avoid integer overflow problems - return Xsqlite3CorruptError(tls, 71069) + return Xsqlite3CorruptError(tls, 71775) } // Check if data must be read/written to/from the btree page itself. @@ -93337,7 +93493,7 @@ func accessPayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintpt for *(*Pgno)(unsafe.Pointer(bp)) != 0 { // If required, populate the overflow page-list cache. if *(*Pgno)(unsafe.Pointer(bp)) > (*BtShared)(unsafe.Pointer(pBt)).FnPage { - return Xsqlite3CorruptError(tls, 71131) + return Xsqlite3CorruptError(tls, 71837) } *(*Pgno)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FaOverflow + uintptr(iIdx)*4)) = *(*Pgno)(unsafe.Pointer(bp /* nextPage */)) @@ -93397,7 +93553,7 @@ func accessPayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintpt if rc == SQLITE_OK && amt > U32(0) { // Overflow chain ends prematurely - return Xsqlite3CorruptError(tls, 71216) + return Xsqlite3CorruptError(tls, 71922) } return rc } @@ -93417,7 +93573,7 @@ func accessPayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintpt // Return SQLITE_OK on success or an error code if anything goes // wrong. An error is returned if "offset+amt" is larger than // the available payload. -func Xsqlite3BtreePayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71238:20: */ +func Xsqlite3BtreePayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71944:20: */ return accessPayload(tls, pCur, offset, amt, pBuf, 0) } @@ -93425,7 +93581,7 @@ func Xsqlite3BtreePayload(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf // This variant of sqlite3BtreePayload() works even if the cursor has not // in the CURSOR_VALID state. It is only used by the sqlite3_blob_read() // interface. -func accessPayloadChecked(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71251:28: */ +func accessPayloadChecked(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71957:28: */ var rc int32 if int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_INVALID { return SQLITE_ABORT @@ -93438,7 +93594,7 @@ func accessPayloadChecked(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf return accessPayload(tls, pCur, offset, amt, pBuf, 0) } -func Xsqlite3BtreePayloadChecked(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71265:20: */ +func Xsqlite3BtreePayloadChecked(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:71971:20: */ if int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_VALID { return accessPayload(tls, pCur, offset, amt, pBuf, 0) @@ -93465,7 +93621,7 @@ func Xsqlite3BtreePayloadChecked(tls *libc.TLS, pCur uintptr, offset U32, amt U3 // The pointer returned by this routine looks directly into the cached // page of the database. The data might change or move the next time // any btree routine is called. -func fetchPayload(tls *libc.TLS, pCur uintptr, pAmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71294:19: */ +func fetchPayload(tls *libc.TLS, pCur uintptr, pAmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72000:19: */ var amt int32 amt = int32((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnLocal) @@ -93496,7 +93652,7 @@ func fetchPayload(tls *libc.TLS, pCur uintptr, pAmt uintptr) uintptr { /* testda // // These routines is used to get quick access to key and data // in the common case where no overflow pages are used. -func Xsqlite3BtreePayloadFetch(tls *libc.TLS, pCur uintptr, pAmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71333:27: */ +func Xsqlite3BtreePayloadFetch(tls *libc.TLS, pCur uintptr, pAmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72039:27: */ return fetchPayload(tls, pCur, pAmt) } @@ -93507,11 +93663,11 @@ func Xsqlite3BtreePayloadFetch(tls *libc.TLS, pCur uintptr, pAmt uintptr) uintpt // the new child page does not match the flags field of the parent (i.e. // if an intkey page appears to be the parent of a non-intkey page, or // vice-versa). -func moveToChild(tls *libc.TLS, pCur uintptr, newPgno U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71347:12: */ +func moveToChild(tls *libc.TLS, pCur uintptr, newPgno U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72053:12: */ var pBt uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpBt if int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) >= BTCURSOR_MAX_DEPTH-1 { - return Xsqlite3CorruptError(tls, 71355) + return Xsqlite3CorruptError(tls, 72061) } (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = U16(0) *(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_ValidNKey | BTCF_ValidOvfl)) @@ -93528,7 +93684,7 @@ func moveToChild(tls *libc.TLS, pCur uintptr, newPgno U32) int32 { /* testdata/s // to the page we are coming from. If we are coming from the // right-most child page then pCur->idx is set to one more than // the largest cell index. -func moveToParent(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71396:13: */ +func moveToParent(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72102:13: */ var pLeaf uintptr (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = U16(0) @@ -93558,7 +93714,7 @@ func moveToParent(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation // indicating a table b-tree, or if the caller did specify a KeyInfo // structure the flags byte is set to 0x02 or 0x0A, indicating an index // b-tree). -func moveToRoot(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71437:12: */ +func moveToRoot(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72143:12: */ var pRoot uintptr var rc int32 var subpage Pgno @@ -93637,7 +93793,7 @@ __2: if !(int32((*MemPage)(unsafe.Pointer(pRoot)).FisInit) == 0 || libc.Bool32((*BtCursor)(unsafe.Pointer(pCur)).FpKeyInfo == uintptr(0)) != int32((*MemPage)(unsafe.Pointer(pRoot)).FintKey)) { goto __11 } - return Xsqlite3CorruptError(tls, 71493) + return Xsqlite3CorruptError(tls, 72199) __11: ; @@ -93658,7 +93814,7 @@ __12: if !((*MemPage)(unsafe.Pointer(pRoot)).Fpgno != Pgno(1)) { goto __16 } - return Xsqlite3CorruptError(tls, 71505) + return Xsqlite3CorruptError(tls, 72211) __16: ; subpage = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(pRoot)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pRoot)).FhdrOffset)+8)) @@ -93680,7 +93836,7 @@ __13: // // The left-most leaf is the one with the smallest key - the first // in ascending order. -func moveToLeftmost(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71523:12: */ +func moveToLeftmost(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72229:12: */ var pgno Pgno var rc int32 = SQLITE_OK var pPage uintptr @@ -93701,7 +93857,7 @@ func moveToLeftmost(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amal // // The right-most entry is the one with the largest key - the last // key in ascending order. -func moveToRightmost(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71548:12: */ +func moveToRightmost(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72254:12: */ var pgno Pgno var rc int32 = SQLITE_OK var pPage uintptr = uintptr(0) @@ -93722,7 +93878,7 @@ func moveToRightmost(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-ama // Move the cursor to the first entry in the table. Return SQLITE_OK // on success. Set *pRes to 0 if the cursor actually points to something // or set *pRes to 1 if the table is empty. -func Xsqlite3BtreeFirst(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71571:20: */ +func Xsqlite3BtreeFirst(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72277:20: */ var rc int32 rc = moveToRoot(tls, pCur) @@ -93741,7 +93897,7 @@ func Xsqlite3BtreeFirst(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* te // Move the cursor to the last entry in the table. Return SQLITE_OK // on success. Set *pRes to 0 if the cursor actually points to something // or set *pRes to 1 if the table is empty. -func Xsqlite3BtreeLast(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71593:20: */ +func Xsqlite3BtreeLast(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72299:20: */ var rc int32 // If the cursor already points to the last entry, this is a no-op. @@ -93781,16 +93937,16 @@ func Xsqlite3BtreeLast(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* tes // pointing. The meaning of the integer written into // *pRes is as follows: // -// *pRes<0 The cursor is left pointing at an entry that -// is smaller than intKey or if the table is empty -// and the cursor is therefore left point to nothing. +// *pRes<0 The cursor is left pointing at an entry that +// is smaller than intKey or if the table is empty +// and the cursor is therefore left point to nothing. // -// *pRes==0 The cursor is left pointing at an entry that -// exactly matches intKey. +// *pRes==0 The cursor is left pointing at an entry that +// exactly matches intKey. // -// *pRes>0 The cursor is left pointing at an entry that -// is larger than intKey. -func Xsqlite3BtreeTableMoveto(tls *libc.TLS, pCur uintptr, intKey I64, biasRight int32, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71658:20: */ +// *pRes>0 The cursor is left pointing at an entry that +// is larger than intKey. +func Xsqlite3BtreeTableMoveto(tls *libc.TLS, pCur uintptr, intKey I64, biasRight int32, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72364:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -93905,7 +94061,7 @@ __19: if !(pCell >= (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd) { goto __21 } - return Xsqlite3CorruptError(tls, 71747) + return Xsqlite3CorruptError(tls, 72453) __21: ; goto __19 @@ -94009,6 +94165,65 @@ moveto_table_finish: return rc } +// Compare the "idx"-th cell on the page the cursor pCur is currently +// pointing to to pIdxKey using xRecordCompare. Return negative or +// zero if the cell is less than or equal pIdxKey. Return positive +// if unknown. +// +// Return value negative: Cell at pCur[idx] less than pIdxKey +// +// Return value is zero: Cell at pCur[idx] equals pIdxKey +// +// Return value positive: Nothing is known about the relationship +// of the cell at pCur[idx] and pIdxKey. +// +// This routine is part of an optimization. It is always safe to return +// a positive value as that will cause the optimization to be skipped. +func indexCellCompare(tls *libc.TLS, pCur uintptr, idx int32, pIdxKey uintptr, xRecordCompare RecordCompare) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72522:12: */ + var pPage uintptr = (*BtCursor)(unsafe.Pointer(pCur)).FpPage + var c int32 + var nCell int32 // Size of the pCell cell in bytes + var pCell uintptr = (*MemPage)(unsafe.Pointer(pPage)).FaDataOfst + uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*idx)))))) + + nCell = int32(*(*U8)(unsafe.Pointer(pCell))) + if nCell <= int32((*MemPage)(unsafe.Pointer(pPage)).Fmax1bytePayload) { + // This branch runs if the record-size field of the cell is a + // single byte varint and the record fits entirely on the main + // b-tree page. + + c = (*struct { + f func(*libc.TLS, int32, uintptr, uintptr) int32 + })(unsafe.Pointer(&struct{ uintptr }{xRecordCompare})).f(tls, nCell, pCell+1, pIdxKey) + } else if !(int32(*(*U8)(unsafe.Pointer(pCell + 1)))&0x80 != 0) && + libc.AssignInt32(&nCell, nCell&0x7f<<7+int32(*(*U8)(unsafe.Pointer(pCell + 1)))) <= int32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal) { + // The record-size field is a 2 byte varint and the record + // fits entirely on the main b-tree page. + + c = (*struct { + f func(*libc.TLS, int32, uintptr, uintptr) int32 + })(unsafe.Pointer(&struct{ uintptr }{xRecordCompare})).f(tls, nCell, pCell+2, pIdxKey) + } else { + // If the record extends into overflow pages, do not attempt + // the optimization. + c = 99 + } + return c +} + +// Return true (non-zero) if pCur is current pointing to the last +// page of a table. +func cursorOnLastPage(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72559:12: */ + var i int32 + + for i = 0; i < int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage); i++ { + var pPage uintptr = *(*uintptr)(unsafe.Pointer(pCur + 144 + uintptr(i)*8)) + if int32(*(*U16)(unsafe.Pointer(pCur + 88 + uintptr(i)*2))) < int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) { + return 0 + } + } + return 1 +} + // Move the cursor so that it points to an entry in an index table // near the key pIdxKey. Return a success code. // @@ -94022,21 +94237,22 @@ moveto_table_finish: // pointing. The meaning of the integer written into // *pRes is as follows: // -// *pRes<0 The cursor is left pointing at an entry that -// is smaller than pIdxKey or if the table is empty -// and the cursor is therefore left point to nothing. +// *pRes<0 The cursor is left pointing at an entry that +// is smaller than pIdxKey or if the table is empty +// and the cursor is therefore left point to nothing. // -// *pRes==0 The cursor is left pointing at an entry that -// exactly matches pIdxKey. +// *pRes==0 The cursor is left pointing at an entry that +// exactly matches pIdxKey. // -// *pRes>0 The cursor is left pointing at an entry that -// is larger than pIdxKey. +// *pRes>0 The cursor is left pointing at an entry that +// is larger than pIdxKey. // // The pIdxKey->eqSeen field is set to 1 if there // exists an entry in the table that exactly matches pIdxKey. -func Xsqlite3BtreeIndexMoveto(tls *libc.TLS, pCur uintptr, pIdxKey uintptr, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71826:20: */ +func Xsqlite3BtreeIndexMoveto(tls *libc.TLS, pCur uintptr, pIdxKey uintptr, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72595:20: */ var rc int32 var xRecordCompare RecordCompare + var c int32 // The record flows over onto one or more overflow pages. In // this case the whole cell needs to be parsed, a buffer allocated // and accessPayload() used to retrieve the record into the @@ -94053,7 +94269,7 @@ func Xsqlite3BtreeIndexMoveto(tls *libc.TLS, pCur uintptr, pIdxKey uintptr, pRes var lwr int32 var upr int32 var idx int32 - var c int32 + var c1 int32 var chldPg Pgno var pPage uintptr var pCell uintptr @@ -94061,23 +94277,69 @@ func Xsqlite3BtreeIndexMoveto(tls *libc.TLS, pCur uintptr, pIdxKey uintptr, pRes xRecordCompare = Xsqlite3VdbeFindCompare(tls, pIdxKey) (*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FerrCode = U8(0) + // Check to see if we can skip a lot of work. Two cases: + // + // (1) If the cursor is already pointing to the very last cell + // in the table and the pIdxKey search key is greater than or + // equal to that last cell, then no movement is required. + // + // (2) If the cursor is on the last page of the table and the first + // cell on that last page is less than or equal to the pIdxKey + // search key, then we can start the search on the current page + // without needing to go back to root. + if !(int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) == CURSOR_VALID && + (*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).Fleaf != 0 && + cursorOnLastPage(tls, pCur) != 0) { + goto __1 + } + if !(int32((*BtCursor)(unsafe.Pointer(pCur)).Fix) == int32((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).FnCell)-1 && + libc.AssignInt32(&c, indexCellCompare(tls, pCur, int32((*BtCursor)(unsafe.Pointer(pCur)).Fix), pIdxKey, xRecordCompare)) <= 0 && + int32((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FerrCode) == SQLITE_OK) { + goto __2 + } + *(*int32)(unsafe.Pointer(pRes)) = c + return SQLITE_OK // Cursor already pointing at the correct spot +__2: + ; + if !(int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) > 0 && + indexCellCompare(tls, pCur, 0, pIdxKey, xRecordCompare) <= 0 && + int32((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FerrCode) == SQLITE_OK) { + goto __3 + } + *(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_ValidOvfl)) + if !!(int32((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).FisInit) != 0) { + goto __4 + } + return Xsqlite3CorruptError(tls, 72649) +__4: + ; + goto bypass_moveto_root // Start search on the current page +__3: + ; + (*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FerrCode = U8(SQLITE_OK) +__1: + ; + rc = moveToRoot(tls, pCur) if !(rc != 0) { - goto __1 + goto __5 } if !(rc == SQLITE_EMPTY) { - goto __2 + goto __6 } *(*int32)(unsafe.Pointer(pRes)) = -1 return SQLITE_OK -__2: +__6: ; return rc -__1: +__5: ; -__3: +bypass_moveto_root: + ; + +__7: pPage = (*BtCursor)(unsafe.Pointer(pCur)).FpPage // Pointer to current cell in pPage // pPage->nCell must be greater than zero. If this is the root-page @@ -94090,7 +94352,7 @@ __3: lwr = 0 upr = int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) - 1 idx = upr >> 1 // idx = (lwr+upr)/2; -__6: // Size of the pCell cell in bytes +__10: // Size of the pCell cell in bytes pCell = (*MemPage)(unsafe.Pointer(pPage)).FaDataOfst + uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*idx)))))) // The maximum supported page-size is 65536 bytes. This means that @@ -94102,29 +94364,29 @@ __6: // Size of the pCell cell in bytes // 2 bytes of the cell. nCell = int32(*(*U8)(unsafe.Pointer(pCell))) if !(nCell <= int32((*MemPage)(unsafe.Pointer(pPage)).Fmax1bytePayload)) { - goto __9 + goto __13 } // This branch runs if the record-size field of the cell is a // single byte varint and the record fits entirely on the main // b-tree page. - c = (*struct { + c1 = (*struct { f func(*libc.TLS, int32, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{xRecordCompare})).f(tls, nCell, pCell+1, pIdxKey) - goto __10 -__9: + goto __14 +__13: if !(!(int32(*(*U8)(unsafe.Pointer(pCell + 1)))&0x80 != 0) && libc.AssignInt32(&nCell, nCell&0x7f<<7+int32(*(*U8)(unsafe.Pointer(pCell + 1)))) <= int32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal)) { - goto __11 + goto __15 } // The record-size field is a 2 byte varint and the record // fits entirely on the main b-tree page. - c = (*struct { + c1 = (*struct { f func(*libc.TLS, int32, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{xRecordCompare})).f(tls, nCell, pCell+2, pIdxKey) - goto __12 -__11: + goto __16 +__15: pCellBody = pCell - uintptr((*MemPage)(unsafe.Pointer(pPage)).FchildPtrSize) nOverrun = 18 // Size of the overrun padding (*struct { @@ -94136,112 +94398,112 @@ __11: // Invalid key size: 0x80 0x80 0x01 // Minimum legal index key size if !(nCell < 2 || U32(nCell)/(*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FusableSize > (*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FnPage) { - goto __13 + goto __17 } - rc = Xsqlite3CorruptError(tls, 71928) + rc = Xsqlite3CorruptError(tls, 72736) goto moveto_index_finish -__13: +__17: ; pCellKey = Xsqlite3Malloc(tls, uint64(nCell+nOverrun)) if !(pCellKey == uintptr(0)) { - goto __14 + goto __18 } rc = SQLITE_NOMEM goto moveto_index_finish -__14: +__18: ; (*BtCursor)(unsafe.Pointer(pCur)).Fix = U16(idx) rc = accessPayload(tls, pCur, uint32(0), uint32(nCell), pCellKey, 0) libc.Xmemset(tls, pCellKey+uintptr(nCell), 0, uint64(nOverrun)) // Fix uninit warnings *(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_ValidOvfl)) if !(rc != 0) { - goto __15 + goto __19 } Xsqlite3_free(tls, pCellKey) goto moveto_index_finish -__15: +__19: ; - c = Xsqlite3VdbeRecordCompare(tls, nCell, pCellKey, pIdxKey) + c1 = Xsqlite3VdbeRecordCompare(tls, nCell, pCellKey, pIdxKey) Xsqlite3_free(tls, pCellKey) -__12: +__16: ; -__10: +__14: ; - if !(c < 0) { - goto __16 + if !(c1 < 0) { + goto __20 } lwr = idx + 1 - goto __17 -__16: - if !(c > 0) { - goto __18 + goto __21 +__20: + if !(c1 > 0) { + goto __22 } upr = idx - 1 - goto __19 -__18: + goto __23 +__22: ; *(*int32)(unsafe.Pointer(pRes)) = 0 rc = SQLITE_OK (*BtCursor)(unsafe.Pointer(pCur)).Fix = U16(idx) if !((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FerrCode != 0) { - goto __20 + goto __24 } - rc = Xsqlite3CorruptError(tls, 71960) -__20: + rc = Xsqlite3CorruptError(tls, 72768) +__24: ; goto moveto_index_finish -__19: +__23: ; -__17: +__21: ; if !(lwr > upr) { - goto __21 + goto __25 } - goto __8 -__21: + goto __12 +__25: ; idx = (lwr + upr) >> 1 // idx = (lwr+upr)/2 - goto __7 -__7: - goto __6 - goto __8 -__8: + goto __11 +__11: + goto __10 + goto __12 +__12: ; if !((*MemPage)(unsafe.Pointer(pPage)).Fleaf != 0) { - goto __22 + goto __26 } (*BtCursor)(unsafe.Pointer(pCur)).Fix = U16(idx) - *(*int32)(unsafe.Pointer(pRes)) = c + *(*int32)(unsafe.Pointer(pRes)) = c1 rc = SQLITE_OK goto moveto_index_finish -__22: +__26: ; if !(lwr >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell)) { - goto __23 + goto __27 } chldPg = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset)+8)) - goto __24 -__23: + goto __28 +__27: chldPg = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*lwr))))))) -__24: +__28: ; (*BtCursor)(unsafe.Pointer(pCur)).Fix = U16(lwr) rc = moveToChild(tls, pCur, chldPg) if !(rc != 0) { - goto __25 + goto __29 } - goto __5 -__25: + goto __9 +__29: ; - goto __4 -__4: - goto __3 - goto __5 -__5: + goto __8 +__8: + goto __7 + goto __9 +__9: ; moveto_index_finish: (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnSize = U16(0) @@ -94254,7 +94516,7 @@ moveto_index_finish: // TRUE will be returned after a call to sqlite3BtreeNext() moves // past the last entry in the table or sqlite3BtreePrev() moves past // the first entry. TRUE is also returned if the table is empty. -func Xsqlite3BtreeEof(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:71999:20: */ +func Xsqlite3BtreeEof(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72807:20: */ // TODO: What if the cursor is in CURSOR_REQUIRESEEK but all table entries // have been deleted? This API will need to change to return an error code // as well as the boolean result value. @@ -94264,7 +94526,7 @@ func Xsqlite3BtreeEof(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-am // Return an estimate for the number of rows in the table that pCur is // pointing to. Return a negative number if no estimate is currently // available. -func Xsqlite3BtreeRowCountEst(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72012:20: */ +func Xsqlite3BtreeRowCountEst(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72820:20: */ var n I64 var i U8 @@ -94288,9 +94550,9 @@ func Xsqlite3BtreeRowCountEst(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sql // Advance the cursor to the next entry in the database. // Return value: // -// SQLITE_OK success -// SQLITE_DONE cursor is already pointing at the last element -// otherwise some kind of error occurred +// SQLITE_OK success +// SQLITE_DONE cursor is already pointing at the last element +// otherwise some kind of error occurred // // The main entry point is sqlite3BtreeNext(). That routine is optimized // for the common case of merely incrementing the cell counter BtCursor.aiIdx @@ -94303,7 +94565,7 @@ func Xsqlite3BtreeRowCountEst(tls *libc.TLS, pCur uintptr) I64 { /* testdata/sql // skipped if the SQL index had been a unique index. The F argument // is a hint to the implement. SQLite btree implementation does not use // this hint, but COMDB2 does. -func btreeNext(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72052:28: */ +func btreeNext(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72860:28: */ var rc int32 var idx int32 var pPage uintptr @@ -94340,7 +94602,7 @@ func btreeNext(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamat // has pages in common with the table being queried. See TH3 // module cov1/btree78.test testcase 220 (2018-06-08) for an // example. - return Xsqlite3CorruptError(tls, 72083) + return Xsqlite3CorruptError(tls, 72891) } if idx >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) { @@ -94373,7 +94635,7 @@ func btreeNext(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamat return int32(0) } -func Xsqlite3BtreeNext(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72112:20: */ +func Xsqlite3BtreeNext(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72920:20: */ var pPage uintptr _ = flags // Used in COMDB2 but not native SQLite @@ -94398,9 +94660,9 @@ func Xsqlite3BtreeNext(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* test // Step the cursor to the back to the previous entry in the database. // Return values: // -// SQLITE_OK success -// SQLITE_DONE the cursor is already on the first element of the table -// otherwise some kind of error occurred +// SQLITE_OK success +// SQLITE_DONE the cursor is already on the first element of the table +// otherwise some kind of error occurred // // The main entry point is sqlite3BtreePrevious(). That routine is optimized // for the common case of merely decrementing the cell counter BtCursor.aiIdx @@ -94413,7 +94675,7 @@ func Xsqlite3BtreeNext(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* test // skipped if the SQL index had been a unique index. The F argument is a // hint to the implement. The native SQLite btree implementation does not // use this hint, but COMDB2 does. -func btreePrevious(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72152:28: */ +func btreePrevious(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:72960:28: */ var rc int32 var pPage uintptr @@ -94467,7 +94729,7 @@ func btreePrevious(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalg return rc } -func Xsqlite3BtreePrevious(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72201:20: */ +func Xsqlite3BtreePrevious(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:73009:20: */ _ = flags // Used in COMDB2 but not native SQLite *(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_AtLast | BTCF_ValidOvfl | BTCF_ValidNKey)) @@ -94501,7 +94763,7 @@ func Xsqlite3BtreePrevious(tls *libc.TLS, pCur uintptr, flags int32) int32 { /* // eMode is BTALLOC_LT then the page returned will be less than or equal // to nearby if any such page exists. If eMode is BTALLOC_ANY then there // are no restrictions on which page is returned. -func allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintptr, nearby Pgno, eMode U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72239:12: */ +func allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintptr, nearby Pgno, eMode U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:73047:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -94568,7 +94830,7 @@ func allocateBtreePage(tls *libc.TLS, pBt uintptr, ppPage uintptr, pPgno uintptr if !(n >= mxPage) { goto __1 } - return Xsqlite3CorruptError(tls, 72263) + return Xsqlite3CorruptError(tls, 73071) __1: ; if !(n > U32(0)) { @@ -94649,7 +94911,7 @@ __15: if !(iTrunk > mxPage || libc.PostIncUint32(&nSearch, 1) > n) { goto __16 } - rc = Xsqlite3CorruptError(tls, 72319) + rc = Xsqlite3CorruptError(tls, 73127) goto __17 __16: rc = btreeGetUnusedPage(tls, pBt, iTrunk, bp+8, 0) @@ -94691,7 +94953,7 @@ __19: goto __22 } // Value of k is out of range. Database corruption - rc = Xsqlite3CorruptError(tls, 72348) + rc = Xsqlite3CorruptError(tls, 73156) goto end_allocate_page goto __23 __22: @@ -94736,7 +94998,7 @@ __27: if !(iNewTrunk > mxPage) { goto __32 } - rc = Xsqlite3CorruptError(tls, 72382) + rc = Xsqlite3CorruptError(tls, 73190) goto end_allocate_page __32: ; @@ -94850,7 +95112,7 @@ __40: if !(iPage > mxPage || iPage < Pgno(2)) { goto __51 } - rc = Xsqlite3CorruptError(tls, 72447) + rc = Xsqlite3CorruptError(tls, 73255) goto end_allocate_page __51: ; @@ -95025,7 +95287,7 @@ end_allocate_page: // // If a pointer to a MemPage object is passed as the second argument, // its reference count is not altered by this function. -func freePage2(tls *libc.TLS, pBt uintptr, pMemPage uintptr, iPage Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72561:12: */ +func freePage2(tls *libc.TLS, pBt uintptr, pMemPage uintptr, iPage Pgno) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:73369:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -95046,7 +95308,7 @@ func freePage2(tls *libc.TLS, pBt uintptr, pMemPage uintptr, iPage Pgno) int32 { if !(iPage < Pgno(2) || iPage > (*BtShared)(unsafe.Pointer(pBt)).FnPage) { goto __1 } - return Xsqlite3CorruptError(tls, 72574) + return Xsqlite3CorruptError(tls, 73382) __1: ; if !(pMemPage != 0) { @@ -95116,7 +95378,7 @@ __7: if !(iTrunk > btreePagecount(tls, pBt)) { goto __10 } - *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 72621) + *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 73429) goto freepage_out __10: ; @@ -95133,7 +95395,7 @@ __11: if !(nLeaf > (*BtShared)(unsafe.Pointer(pBt)).FusableSize/U32(4)-U32(2)) { goto __12 } - *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 72632) + *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = Xsqlite3CorruptError(tls, 73440) goto freepage_out __12: ; @@ -95214,14 +95476,14 @@ __18: return *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) } -func freePage(tls *libc.TLS, pPage uintptr, pRC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72695:13: */ +func freePage(tls *libc.TLS, pPage uintptr, pRC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:73503:13: */ if *(*int32)(unsafe.Pointer(pRC)) == SQLITE_OK { *(*int32)(unsafe.Pointer(pRC)) = freePage2(tls, (*MemPage)(unsafe.Pointer(pPage)).FpBt, pPage, (*MemPage)(unsafe.Pointer(pPage)).Fpgno) } } // Free the overflow pages associated with the given Cell. -func clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72704:28: */ +func clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:73512:28: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -95233,7 +95495,7 @@ func clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintpt if pCell+uintptr((*CellInfo)(unsafe.Pointer(pInfo)).FnSize) > (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd { // Cell extends past end of page - return Xsqlite3CorruptError(tls, 72721) + return Xsqlite3CorruptError(tls, 73529) } ovflPgno = Xsqlite3Get4byte(tls, pCell+uintptr((*CellInfo)(unsafe.Pointer(pInfo)).FnSize)-uintptr(4)) pBt = (*MemPage)(unsafe.Pointer(pPage)).FpBt @@ -95248,7 +95510,7 @@ func clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintpt // 0 is not a legal page number and page 1 cannot be an // overflow page. Therefore if ovflPgno<2 or past the end of the // file the database must be corrupt. - return Xsqlite3CorruptError(tls, 72738) + return Xsqlite3CorruptError(tls, 73546) } if nOvfl != 0 { rc = getOverflowPage(tls, pBt, ovflPgno, bp, bp+8) @@ -95268,7 +95530,7 @@ func clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintpt // enabled. If this 'overflow' page happens to be a page that the // caller is iterating through or using in some other way, this // can be problematic. - rc = Xsqlite3CorruptError(tls, 72758) + rc = Xsqlite3CorruptError(tls, 73566) } else { rc = freePage2(tls, pBt, *(*uintptr)(unsafe.Pointer(bp /* pOvfl */)), ovflPgno) } @@ -95300,7 +95562,7 @@ func clearCellOverflow(tls *libc.TLS, pPage uintptr, pCell uintptr, pInfo uintpt // area. pCell might point to some temporary storage. The cell will // be constructed in this temporary area then copied into pPage->aData // later. -func fillInCell(tls *libc.TLS, pPage uintptr, pCell uintptr, pX uintptr, pnSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72799:12: */ +func fillInCell(tls *libc.TLS, pPage uintptr, pCell uintptr, pX uintptr, pnSize uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:73607:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -95482,7 +95744,7 @@ func fillInCell(tls *libc.TLS, pPage uintptr, pCell uintptr, pX uintptr, pnSize // removes the reference to the cell from pPage. // // "sz" must be the number of bytes in the cell. -func dropCell(tls *libc.TLS, pPage uintptr, idx int32, sz int32, pRC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:72989:13: */ +func dropCell(tls *libc.TLS, pPage uintptr, idx int32, sz int32, pRC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:73797:13: */ var pc U32 // Offset to cell content of cell being deleted var data uintptr // pPage->aData var ptr uintptr // Used to move bytes around within data[] @@ -95500,7 +95762,7 @@ func dropCell(tls *libc.TLS, pPage uintptr, idx int32, sz int32, pRC uintptr) { hdr = int32((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset) if pc+U32(sz) > (*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FpBt)).FusableSize { - *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 73017) + *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 73825) return } rc = freeSpace(tls, pPage, uint16(pc), uint16(sz)) @@ -95536,7 +95798,7 @@ func dropCell(tls *libc.TLS, pPage uintptr, idx int32, sz int32, pRC uintptr) { // pPage->nOverflow is incremented. // // *pRC must be SQLITE_OK when this routine is called. -func insertCell(tls *libc.TLS, pPage uintptr, i int32, pCell uintptr, sz int32, pTemp uintptr, iChild Pgno, pRC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73053:13: */ +func insertCell(tls *libc.TLS, pPage uintptr, i int32, pCell uintptr, sz int32, pTemp uintptr, iChild Pgno, pRC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:73861:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -95649,20 +95911,20 @@ func insertCell(tls *libc.TLS, pPage uintptr, i int32, pCell uintptr, sz int32, // // The cells come from as many as four different pages: // -// ----------- -// | Parent | -// ----------- -// / | ** / | ** --------- --------- --------- -// |Child-1| |Child-2| |Child-3| -// --------- --------- --------- +// ----------- +// | Parent | +// ----------- +// / | ** / | ** --------- --------- --------- +// |Child-1| |Child-2| |Child-3| +// --------- --------- --------- // // The order of cells is in the array is for an index btree is: // -// 1. All cells from Child-1 in order -// 2. The first divider cell from Parent -// 3. All cells from Child-2 in order -// 4. The second divider cell from Parent -// 5. All cells from Child-3 in order +// 1. All cells from Child-1 in order +// 2. The first divider cell from Parent +// 3. All cells from Child-2 in order +// 4. The second divider cell from Parent +// 5. All cells from Child-3 in order // // For a table-btree (with rowids) the items 2 and 4 are empty because // content exists only in leaves and there are no divider cells. @@ -95672,18 +95934,18 @@ func insertCell(tls *libc.TLS, pPage uintptr, i int32, pCell uintptr, sz int32, // respectively. The ixNx[] array holds the number of cells contained in // each of these 5 stages, and all stages to the left. Hence: // -// ixNx[0] = Number of cells in Child-1. -// ixNx[1] = Number of cells in Child-1 plus 1 for first divider. -// ixNx[2] = Number of cells in Child-1 and Child-2 + 1 for 1st divider. -// ixNx[3] = Number of cells in Child-1 and Child-2 + both divider cells -// ixNx[4] = Total number of cells. +// ixNx[0] = Number of cells in Child-1. +// ixNx[1] = Number of cells in Child-1 plus 1 for first divider. +// ixNx[2] = Number of cells in Child-1 and Child-2 + 1 for 1st divider. +// ixNx[3] = Number of cells in Child-1 and Child-2 + both divider cells +// ixNx[4] = Total number of cells. // // For a table-btree, the concept is similar, except only apEnd[0]..apEnd[2] // are used and they point to the leaf pages only, and the ixNx value are: // -// ixNx[0] = Number of cells in Child-1. -// ixNx[1] = Number of cells in Child-1 and Child-2. -// ixNx[2] = Total number of cells. +// ixNx[0] = Number of cells in Child-1. +// ixNx[1] = Number of cells in Child-1 and Child-2. +// ixNx[2] = Total number of cells. // // Sometimes when deleting, a child page can have zero cells. In those // cases, ixNx[] entries with higher indexes, and the corresponding apEnd[] @@ -95697,7 +95959,7 @@ type CellArray1 = struct { FszCell uintptr FapEnd [6]uintptr FixNx [6]int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73228:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74036:9 */ // The following parameters determine how many adjacent pages get involved // in a balancing operation. NN is the number of neighbors on either side @@ -95734,20 +95996,20 @@ type CellArray1 = struct { // // The cells come from as many as four different pages: // -// ----------- -// | Parent | -// ----------- -// / | ** / | ** --------- --------- --------- -// |Child-1| |Child-2| |Child-3| -// --------- --------- --------- +// ----------- +// | Parent | +// ----------- +// / | ** / | ** --------- --------- --------- +// |Child-1| |Child-2| |Child-3| +// --------- --------- --------- // // The order of cells is in the array is for an index btree is: // -// 1. All cells from Child-1 in order -// 2. The first divider cell from Parent -// 3. All cells from Child-2 in order -// 4. The second divider cell from Parent -// 5. All cells from Child-3 in order +// 1. All cells from Child-1 in order +// 2. The first divider cell from Parent +// 3. All cells from Child-2 in order +// 4. The second divider cell from Parent +// 5. All cells from Child-3 in order // // For a table-btree (with rowids) the items 2 and 4 are empty because // content exists only in leaves and there are no divider cells. @@ -95757,28 +96019,28 @@ type CellArray1 = struct { // respectively. The ixNx[] array holds the number of cells contained in // each of these 5 stages, and all stages to the left. Hence: // -// ixNx[0] = Number of cells in Child-1. -// ixNx[1] = Number of cells in Child-1 plus 1 for first divider. -// ixNx[2] = Number of cells in Child-1 and Child-2 + 1 for 1st divider. -// ixNx[3] = Number of cells in Child-1 and Child-2 + both divider cells -// ixNx[4] = Total number of cells. +// ixNx[0] = Number of cells in Child-1. +// ixNx[1] = Number of cells in Child-1 plus 1 for first divider. +// ixNx[2] = Number of cells in Child-1 and Child-2 + 1 for 1st divider. +// ixNx[3] = Number of cells in Child-1 and Child-2 + both divider cells +// ixNx[4] = Total number of cells. // // For a table-btree, the concept is similar, except only apEnd[0]..apEnd[2] // are used and they point to the leaf pages only, and the ixNx value are: // -// ixNx[0] = Number of cells in Child-1. -// ixNx[1] = Number of cells in Child-1 and Child-2. -// ixNx[2] = Total number of cells. +// ixNx[0] = Number of cells in Child-1. +// ixNx[1] = Number of cells in Child-1 and Child-2. +// ixNx[2] = Total number of cells. // // Sometimes when deleting, a child page can have zero cells. In those // cases, ixNx[] entries with higher indexes, and the corresponding apEnd[] // entries, shift down. The end result is that each ixNx[] entry should // be larger than the previous -type CellArray = CellArray1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73228:26 */ +type CellArray = CellArray1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74036:26 */ // Make sure the cell sizes at idx, idx+1, ..., idx+N-1 have been // computed. -func populateCellCache(tls *libc.TLS, p uintptr, idx int32, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73242:13: */ +func populateCellCache(tls *libc.TLS, p uintptr, idx int32, N int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74050:13: */ for N > 0 { @@ -95795,7 +96057,7 @@ func populateCellCache(tls *libc.TLS, p uintptr, idx int32, N int32) { /* testda } // Return the size of the Nth element of the cell array -func computeCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73260:28: */ +func computeCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74068:28: */ *(*U16)(unsafe.Pointer((*CellArray)(unsafe.Pointer(p)).FszCell + uintptr(N)*2)) = (*struct { f func(*libc.TLS, uintptr, uintptr) U16 @@ -95803,7 +96065,7 @@ func computeCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* testdata/sqlite return *(*U16)(unsafe.Pointer((*CellArray)(unsafe.Pointer(p)).FszCell + uintptr(N)*2)) } -func cachedCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73266:12: */ +func cachedCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74074:12: */ if *(*U16)(unsafe.Pointer((*CellArray)(unsafe.Pointer(p)).FszCell + uintptr(N)*2)) != 0 { return *(*U16)(unsafe.Pointer((*CellArray)(unsafe.Pointer(p)).FszCell + uintptr(N)*2)) @@ -95822,7 +96084,7 @@ func cachedCellSize(tls *libc.TLS, p uintptr, N int32) U16 { /* testdata/sqlite- // // The MemPage.nFree field is invalidated by this function. It is the // responsibility of the caller to set it correctly. -func rebuildPage(tls *libc.TLS, pCArray uintptr, iFirst int32, nCell int32, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73285:12: */ +func rebuildPage(tls *libc.TLS, pCArray uintptr, iFirst int32, nCell int32, pPg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74093:12: */ var hdr int32 = int32((*MemPage)(unsafe.Pointer(pPg)).FhdrOffset) // Offset of header on pPg var aData uintptr = (*MemPage)(unsafe.Pointer(pPg)).FaData // Pointer to data for pPg var usableSize int32 = int32((*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPg)).FpBt)).FusableSize) @@ -95853,12 +96115,12 @@ func rebuildPage(tls *libc.TLS, pCArray uintptr, iFirst int32, nCell int32, pPg if Uptr(pCell) >= Uptr(aData+uintptr(j)) && Uptr(pCell) < Uptr(pEnd) { if Uptr(pCell+uintptr(sz)) > Uptr(pEnd) { - return Xsqlite3CorruptError(tls, 73318) + return Xsqlite3CorruptError(tls, 74126) } pCell = pTmp + uintptr((int64(pCell)-int64(aData))/1) } else if Uptr(pCell+uintptr(sz)) > Uptr(pSrcEnd) && Uptr(pCell) < Uptr(pSrcEnd) { - return Xsqlite3CorruptError(tls, 73323) + return Xsqlite3CorruptError(tls, 74131) } pData -= uintptr(sz) @@ -95866,7 +96128,7 @@ func rebuildPage(tls *libc.TLS, pCArray uintptr, iFirst int32, nCell int32, pPg *(*U8)(unsafe.Pointer(pCellptr + 1)) = U8((int64(pData) - int64(aData)) / 1) pCellptr += uintptr(2) if pData < pCellptr { - return Xsqlite3CorruptError(tls, 73329) + return Xsqlite3CorruptError(tls, 74137) } libc.Xmemmove(tls, pData, pCell, uint64(sz)) @@ -95916,7 +96178,7 @@ func rebuildPage(tls *libc.TLS, pCArray uintptr, iFirst int32, nCell int32, pPg // all cells - not just those inserted by the current call). If the content // area must be extended to before this point in order to accomodate all // cells in apCell[], then the cells do not fit and non-zero is returned. -func pageInsertArray(tls *libc.TLS, pPg uintptr, pBegin uintptr, ppData uintptr, pCellptr uintptr, iFirst int32, nCell int32, pCArray uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73375:12: */ +func pageInsertArray(tls *libc.TLS, pPg uintptr, pBegin uintptr, ppData uintptr, pCellptr uintptr, iFirst int32, nCell int32, pCArray uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74183:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -95954,7 +96216,7 @@ func pageInsertArray(tls *libc.TLS, pPg uintptr, pBegin uintptr, ppData uintptr, if Uptr(*(*uintptr)(unsafe.Pointer((*CellArray)(unsafe.Pointer(pCArray)).FapCell + uintptr(i)*8))+uintptr(sz)) > Uptr(pEnd) && Uptr(*(*uintptr)(unsafe.Pointer((*CellArray)(unsafe.Pointer(pCArray)).FapCell + uintptr(i)*8))) < Uptr(pEnd) { - Xsqlite3CorruptError(tls, 73414) + Xsqlite3CorruptError(tls, 74222) return 1 } libc.Xmemmove(tls, pSlot, *(*uintptr)(unsafe.Pointer((*CellArray)(unsafe.Pointer(pCArray)).FapCell + uintptr(i)*8)), uint64(sz)) @@ -95981,7 +96243,7 @@ func pageInsertArray(tls *libc.TLS, pPg uintptr, pBegin uintptr, ppData uintptr, // The cell-pointers and other fields of the page are not updated. // // This function returns the total number of cells added to the free-list. -func pageFreeArray(tls *libc.TLS, pPg uintptr, iFirst int32, nCell int32, pCArray uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73440:12: */ +func pageFreeArray(tls *libc.TLS, pPg uintptr, iFirst int32, nCell int32, pCArray uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74248:12: */ var aData uintptr = (*MemPage)(unsafe.Pointer(pPg)).FaData var pEnd uintptr = aData + uintptr((*BtShared)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPg)).FpBt)).FusableSize) var pStart uintptr = aData + uintptr(int32((*MemPage)(unsafe.Pointer(pPg)).FhdrOffset)+8+int32((*MemPage)(unsafe.Pointer(pPg)).FchildPtrSize)) @@ -96033,7 +96295,7 @@ func pageFreeArray(tls *libc.TLS, pPg uintptr, iFirst int32, nCell int32, pCArra // // The pPg->nFree field is invalid when this function returns. It is the // responsibility of the caller to set it correctly. -func editPage(tls *libc.TLS, pPg uintptr, iOld int32, iNew int32, nNew int32, pCArray uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73499:12: */ +func editPage(tls *libc.TLS, pPg uintptr, iOld int32, iNew int32, nNew int32, pCArray uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74307:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -96067,7 +96329,7 @@ func editPage(tls *libc.TLS, pPg uintptr, iOld int32, iNew int32, nNew int32, pC if !(nShift > nCell) { goto __2 } - return Xsqlite3CorruptError(tls, 73525) + return Xsqlite3CorruptError(tls, 74333) __2: ; libc.Xmemmove(tls, (*MemPage)(unsafe.Pointer(pPg)).FaCellIdx, (*MemPage)(unsafe.Pointer(pPg)).FaCellIdx+uintptr(nShift*2), uint64(nCell*2)) @@ -96207,7 +96469,7 @@ editpage_fail: // byte page number followed by a variable length integer. In other // words, at most 13 bytes. Hence the pSpace buffer must be at // least 13 bytes in size. -func balance_quick(tls *libc.TLS, pParent uintptr, pPage uintptr, pSpace uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73628:12: */ +func balance_quick(tls *libc.TLS, pParent uintptr, pPage uintptr, pSpace uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74436:12: */ bp := tls.Alloc(140) defer tls.Free(140) @@ -96220,7 +96482,7 @@ func balance_quick(tls *libc.TLS, pParent uintptr, pPage uintptr, pSpace uintptr // Page number of pNew if int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) == 0 { - return Xsqlite3CorruptError(tls, 73638) + return Xsqlite3CorruptError(tls, 74446) } // dbfuzz001.test // Allocate a new page. This page will become the right-sibling of @@ -96318,7 +96580,7 @@ func balance_quick(tls *libc.TLS, pParent uintptr, pPage uintptr, pSpace uintptr // The performance of this function is not critical. It is only used by // the balance_shallower() and balance_deeper() procedures, neither of // which are called often under normal circumstances. -func copyNodeContent(tls *libc.TLS, pFrom uintptr, pTo uintptr, pRC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73783:13: */ +func copyNodeContent(tls *libc.TLS, pFrom uintptr, pTo uintptr, pRC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74591:13: */ if *(*int32)(unsafe.Pointer(pRC)) == SQLITE_OK { var pBt uintptr = (*MemPage)(unsafe.Pointer(pFrom)).FpBt var aFrom uintptr = (*MemPage)(unsafe.Pointer(pFrom)).FaData @@ -96398,7 +96660,7 @@ func copyNodeContent(tls *libc.TLS, pFrom uintptr, pTo uintptr, pRC uintptr) { / // // If aOvflSpace is set to a null pointer, this function returns // SQLITE_NOMEM. -func balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpace uintptr, isRoot int32, bBulk int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:73865:12: */ +func balance_nonroot(tls *libc.TLS, pParent uintptr, iParentIdx int32, aOvflSpace uintptr, isRoot int32, bBulk int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:74673:12: */ bp := tls.Alloc(344) defer tls.Free(344) @@ -96700,7 +96962,7 @@ __22: if !(int32(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pOld)).FaData))) != int32(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 112)))).FaData)))) { goto __25 } - *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74061) + *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74869) goto balance_cleanup __25: ; @@ -96728,7 +96990,7 @@ __25: if !(limit < int32(*(*U16)(unsafe.Pointer(pOld + 28)))) { goto __27 } - *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74085) + *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74893) goto balance_cleanup __27: ; @@ -96907,7 +97169,7 @@ __52: if !(k > NB+2) { goto __55 } - *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74186) + *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74994) goto balance_cleanup __55: ; @@ -96981,7 +97243,7 @@ __65: }()) { goto __67 } - *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74219) + *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 75027) goto balance_cleanup __67: ; @@ -97054,7 +97316,7 @@ __73: }()) { goto __75 } - *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74261) + *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 75069) goto balance_cleanup __75: ; @@ -97091,7 +97353,7 @@ __76: *(*int32)(unsafe.Pointer(bp + 172)) == SQLITE_OK) { goto __81 } - *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74294) + *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 75102) __81: ; if !(*(*int32)(unsafe.Pointer(bp + 172)) != 0) { @@ -97175,7 +97437,7 @@ __89: // cache with two separate objects associated with the same // page number. - *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74340) + *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 75148) goto balance_cleanup __92: ; @@ -97428,7 +97690,7 @@ __125: if !(Uptr(pSrcEnd) >= Uptr(pCell1) && Uptr(pSrcEnd) < Uptr(pCell1+uintptr(sz2))) { goto __126 } - *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 74497) + *(*int32)(unsafe.Pointer(bp + 172 /* rc */)) = Xsqlite3CorruptError(tls, 75305) goto balance_cleanup __126: ; @@ -97650,7 +97912,7 @@ __150: // page and SQLITE_OK is returned. In this case the caller is required // to call releasePage() on *ppChild exactly once. If an error occurs, // an error code is returned and *ppChild is set to 0. -func balance_deeper(tls *libc.TLS, pRoot uintptr, ppChild uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74662:12: */ +func balance_deeper(tls *libc.TLS, pRoot uintptr, ppChild uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:75470:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -97701,13 +97963,13 @@ func balance_deeper(tls *libc.TLS, pRoot uintptr, ppChild uintptr) int32 { /* te // table linked to the same b-tree. If the secondary insert causes a // rebalance, that can change content out from under the cursor on the // first SQL table, violating invariants on the first insert. -func anotherValidCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74720:12: */ +func anotherValidCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:75528:12: */ var pOther uintptr for pOther = (*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FpCursor; pOther != 0; pOther = (*BtCursor)(unsafe.Pointer(pOther)).FpNext { if pOther != pCur && int32((*BtCursor)(unsafe.Pointer(pOther)).FeState) == CURSOR_VALID && (*BtCursor)(unsafe.Pointer(pOther)).FpPage == (*BtCursor)(unsafe.Pointer(pCur)).FpPage { - return Xsqlite3CorruptError(tls, 74727) + return Xsqlite3CorruptError(tls, 75535) } } return SQLITE_OK @@ -97718,15 +97980,14 @@ func anotherValidCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite- // tree needs to be balanced, and if so calls the appropriate balancing // routine. Balancing routines are: // -// balance_quick() -// balance_deeper() -// balance_nonroot() -func balance(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74743:12: */ +// balance_quick() +// balance_deeper() +// balance_nonroot() +func balance(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:75551:12: */ bp := tls.Alloc(13) defer tls.Free(13) var rc int32 = SQLITE_OK - var nMin int32 = int32((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FusableSize * U32(2) / U32(3)) // var aBalanceQuickSpace [13]U8 at bp, 13 var pFree uintptr = uintptr(0) @@ -97738,7 +97999,11 @@ func balance(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamatio if (*MemPage)(unsafe.Pointer(pPage)).FnFree < 0 && btreeComputeFreeSpace(tls, pPage) != 0 { break } - if int32((*MemPage)(unsafe.Pointer(pPage)).FnOverflow) == 0 && (*MemPage)(unsafe.Pointer(pPage)).FnFree <= nMin { + if int32((*MemPage)(unsafe.Pointer(pPage)).FnOverflow) == 0 && (*MemPage)(unsafe.Pointer(pPage)).FnFree*3 <= int32((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FusableSize)*2 { + // No rebalance required as long as: + // (1) There are no overflow cells + // (2) The amount of free space on the page is less than 2/3rds of + // the total usable space on the page. break } else if libc.AssignInt32(&iPage, int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage)) == 0 { if (*MemPage)(unsafe.Pointer(pPage)).FnOverflow != 0 && libc.AssignInt32(&rc, anotherValidCursor(tls, pCur)) == SQLITE_OK { @@ -97840,7 +98105,7 @@ func balance(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamatio // Overwrite content from pX into pDest. Only do the write if the // content is different from what is already there. -func btreeOverwriteContent(tls *libc.TLS, pPage uintptr, pDest uintptr, pX uintptr, iOffset int32, iAmt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74869:12: */ +func btreeOverwriteContent(tls *libc.TLS, pPage uintptr, pDest uintptr, pX uintptr, iOffset int32, iAmt int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:75680:12: */ var nData int32 = (*BtreePayload)(unsafe.Pointer(pX)).FnData - iOffset if nData <= 0 { // Overwritting with zeros @@ -97882,7 +98147,7 @@ func btreeOverwriteContent(tls *libc.TLS, pPage uintptr, pDest uintptr, pX uintp // Overwrite the cell that cursor pCur is pointing to with fresh content // contained in pX. -func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74912:12: */ +func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:75723:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -97896,7 +98161,7 @@ func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* test if (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload+uintptr((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnLocal) > (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FaDataEnd || (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload < (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FaData+uintptr((*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FcellOffset) { - return Xsqlite3CorruptError(tls, 74924) + return Xsqlite3CorruptError(tls, 75735) } // Overwrite the local portion first rc = btreeOverwriteContent(tls, *(*uintptr)(unsafe.Pointer(bp /* pPage */)), (*BtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload, pX, @@ -97920,7 +98185,7 @@ func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* test return rc } if Xsqlite3PagerPageRefcount(tls, (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpDbPage) != 1 || (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FisInit != 0 { - rc = Xsqlite3CorruptError(tls, 74943) + rc = Xsqlite3CorruptError(tls, 75754) } else { if U32(iOffset)+ovflPageSize < U32(nTotal) { ovflPgno = Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pPage */)))).FaData) @@ -97954,7 +98219,7 @@ func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* test // pX.pData,nData,nZero fields must be zero. // // If the seekResult parameter is non-zero, then a successful call to -// MovetoUnpacked() to seek cursor pCur to (pKey,nKey) has already +// sqlite3BtreeIndexMoveto() to seek cursor pCur to (pKey,nKey) has already // been performed. In other words, if seekResult!=0 then the cursor // is currently pointing to a cell that will be adjacent to the cell // to be inserted. If seekResult<0 then pCur points to a cell that is @@ -97967,15 +98232,15 @@ func btreeOverwriteCell(tls *libc.TLS, pCur uintptr, pX uintptr) int32 { /* test // if pX->nMem is non-zero, then pX->aMem contains pointers to the unpacked // key values and pX->aMem can be used instead of pX->pKey to avoid having // to decode the key. -func Xsqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, seekResult int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74991:20: */ - bp := tls.Alloc(136) - defer tls.Free(136) +func Xsqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, seekResult int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:75802:20: */ + bp := tls.Alloc(152) + defer tls.Free(152) - // var rc int32 at bp+104, 4 + // var rc int32 at bp+120, 4 // var loc int32 at bp, 4 // -1: before desired location +1: after - // var szNew int32 at bp+108, 4 + // var szNew int32 at bp+124, 4 var idx int32 var pPage uintptr @@ -97983,16 +98248,16 @@ func Xsqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, s var pBt uintptr var oldCell uintptr var newCell uintptr - // var r UnpackedRecord at bp+8, 24 + // var r UnpackedRecord at bp+8, 40 - // var x2 BtreePayload at bp+32, 48 + // var x2 BtreePayload at bp+48, 48 var ovfl Pgno - // var info CellInfo at bp+80, 24 + // var info CellInfo at bp+96, 24 - // var info1 CellInfo at bp+112, 24 + // var info1 CellInfo at bp+128, 24 *(*int32)(unsafe.Pointer(bp /* loc */)) = seekResult - *(*int32)(unsafe.Pointer(bp + 108 /* szNew */)) = 0 + *(*int32)(unsafe.Pointer(bp + 124 /* szNew */)) = 0 p = (*BtCursor)(unsafe.Pointer(pCur)).FpBtree pBt = (*Btree)(unsafe.Pointer(p)).FpBt newCell = uintptr(0) @@ -98010,11 +98275,11 @@ func Xsqlite3BtreeInsert(tls *libc.TLS, pCur uintptr, pX uintptr, flags int32, s if !(int32((*BtCursor)(unsafe.Pointer(pCur)).FcurFlags)&BTCF_Multiple != 0) { goto __1 } - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = saveAllCursors(tls, pBt, (*BtCursor)(unsafe.Pointer(pCur)).FpgnoRoot, pCur) - if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) { + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = saveAllCursors(tls, pBt, (*BtCursor)(unsafe.Pointer(pCur)).FpgnoRoot, pCur) + if !(*(*int32)(unsafe.Pointer(bp + 120)) != 0) { goto __2 } - return *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) + return *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) __2: ; if !(*(*int32)(unsafe.Pointer(bp)) != 0 && int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) < 0) { @@ -98025,20 +98290,23 @@ __2: // Which can only happen if the SQLITE_NoSchemaError flag was set when // the schema was loaded. This cannot be asserted though, as a user might // set the flag, load the schema, and then unset the flag. - return Xsqlite3CorruptError(tls, 75030) + return Xsqlite3CorruptError(tls, 75841) __3: ; __1: ; + // Ensure that the cursor is not in the CURSOR_FAULT state and that it + // points to a valid cell. if !(int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) >= CURSOR_REQUIRESEEK) { goto __4 } - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = moveToRoot(tls, pCur) - if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0 && *(*int32)(unsafe.Pointer(bp + 104)) != SQLITE_EMPTY) { + + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = moveToRoot(tls, pCur) + if !(*(*int32)(unsafe.Pointer(bp + 120)) != 0 && *(*int32)(unsafe.Pointer(bp + 120)) != SQLITE_EMPTY) { goto __5 } - return *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) + return *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) __5: ; __4: @@ -98092,12 +98360,12 @@ __9: // The cursor is *not* pointing to the cell to be overwritten, nor // to an adjacent cell. Move the cursor so that it is pointing either // to the cell to be overwritten or an adjacent cell. - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3BtreeTableMoveto(tls, pCur, (*BtreePayload)(unsafe.Pointer(pX)).FnKey, + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = Xsqlite3BtreeTableMoveto(tls, pCur, (*BtreePayload)(unsafe.Pointer(pX)).FnKey, libc.Bool32(flags&BTREE_APPEND != 0), bp) - if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) { + if !(*(*int32)(unsafe.Pointer(bp + 120)) != 0) { goto __13 } - return *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) + return *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) __13: ; __12: @@ -98127,17 +98395,17 @@ __6: (*UnpackedRecord)(unsafe.Pointer(bp + 8 /* &r */)).FnField = (*BtreePayload)(unsafe.Pointer(pX)).FnMem (*UnpackedRecord)(unsafe.Pointer(bp + 8 /* &r */)).Fdefault_rc = int8(0) (*UnpackedRecord)(unsafe.Pointer(bp + 8 /* &r */)).FeqSeen = U8(0) - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3BtreeIndexMoveto(tls, pCur, bp+8, bp) + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = Xsqlite3BtreeIndexMoveto(tls, pCur, bp+8, bp) goto __16 __15: - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = btreeMoveto(tls, pCur, (*BtreePayload)(unsafe.Pointer(pX)).FpKey, (*BtreePayload)(unsafe.Pointer(pX)).FnKey, + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = btreeMoveto(tls, pCur, (*BtreePayload)(unsafe.Pointer(pX)).FpKey, (*BtreePayload)(unsafe.Pointer(pX)).FnKey, libc.Bool32(flags&BTREE_APPEND != 0), bp) __16: ; - if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) { + if !(*(*int32)(unsafe.Pointer(bp + 120)) != 0) { goto __17 } - return *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) + return *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) __17: ; __14: @@ -98153,10 +98421,10 @@ __14: if !((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FnKey == (*BtreePayload)(unsafe.Pointer(pX)).FnKey) { goto __19 } - (*BtreePayload)(unsafe.Pointer(bp + 32 /* &x2 */)).FpData = (*BtreePayload)(unsafe.Pointer(pX)).FpKey - (*BtreePayload)(unsafe.Pointer(bp + 32 /* &x2 */)).FnData = int32((*BtreePayload)(unsafe.Pointer(pX)).FnKey) - (*BtreePayload)(unsafe.Pointer(bp + 32 /* &x2 */)).FnZero = 0 - return btreeOverwriteCell(tls, pCur, bp+32) + (*BtreePayload)(unsafe.Pointer(bp + 48 /* &x2 */)).FpData = (*BtreePayload)(unsafe.Pointer(pX)).FpKey + (*BtreePayload)(unsafe.Pointer(bp + 48 /* &x2 */)).FnData = int32((*BtreePayload)(unsafe.Pointer(pX)).FnKey) + (*BtreePayload)(unsafe.Pointer(bp + 48 /* &x2 */)).FnZero = 0 + return btreeOverwriteCell(tls, pCur, bp+48) __19: ; __18: @@ -98172,16 +98440,17 @@ __7: if !(int32((*BtCursor)(unsafe.Pointer(pCur)).FeState) > CURSOR_INVALID) { goto __21 } - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3CorruptError(tls, 75147) + // ^^^^^--- due to the moveToRoot() call above + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = Xsqlite3CorruptError(tls, 75964) goto __22 __21: - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = btreeComputeFreeSpace(tls, pPage) + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = btreeComputeFreeSpace(tls, pPage) __22: ; - if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) { + if !(*(*int32)(unsafe.Pointer(bp + 120)) != 0) { goto __23 } - return *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) + return *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) __23: ; __20: @@ -98192,35 +98461,35 @@ __20: if !(flags&BTREE_PREFORMAT != 0) { goto __24 } - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = SQLITE_OK - *(*int32)(unsafe.Pointer(bp + 108 /* szNew */)) = (*BtShared)(unsafe.Pointer(pBt)).FnPreformatSize - if !(*(*int32)(unsafe.Pointer(bp + 108)) < 4) { + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = SQLITE_OK + *(*int32)(unsafe.Pointer(bp + 124 /* szNew */)) = (*BtShared)(unsafe.Pointer(pBt)).FnPreformatSize + if !(*(*int32)(unsafe.Pointer(bp + 124)) < 4) { goto __26 } - *(*int32)(unsafe.Pointer(bp + 108 /* szNew */)) = 4 + *(*int32)(unsafe.Pointer(bp + 124 /* szNew */)) = 4 __26: ; - if !((*BtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0 && *(*int32)(unsafe.Pointer(bp + 108)) > int32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal)) { + if !((*BtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0 && *(*int32)(unsafe.Pointer(bp + 124)) > int32((*MemPage)(unsafe.Pointer(pPage)).FmaxLocal)) { goto __27 } (*struct { f func(*libc.TLS, uintptr, uintptr, uintptr) - })(unsafe.Pointer(&struct{ uintptr }{(*MemPage)(unsafe.Pointer(pPage)).FxParseCell})).f(tls, pPage, newCell, bp+80 /* &info */) - if !((*CellInfo)(unsafe.Pointer(bp+80)).FnPayload != U32((*CellInfo)(unsafe.Pointer(bp+80)).FnLocal)) { + })(unsafe.Pointer(&struct{ uintptr }{(*MemPage)(unsafe.Pointer(pPage)).FxParseCell})).f(tls, pPage, newCell, bp+96 /* &info */) + if !((*CellInfo)(unsafe.Pointer(bp+96)).FnPayload != U32((*CellInfo)(unsafe.Pointer(bp+96)).FnLocal)) { goto __28 } - ovfl = Xsqlite3Get4byte(tls, newCell+uintptr(*(*int32)(unsafe.Pointer(bp + 108))-4)) - ptrmapPut(tls, pBt, ovfl, uint8(PTRMAP_OVERFLOW1), (*MemPage)(unsafe.Pointer(pPage)).Fpgno, bp+104) + ovfl = Xsqlite3Get4byte(tls, newCell+uintptr(*(*int32)(unsafe.Pointer(bp + 124))-4)) + ptrmapPut(tls, pBt, ovfl, uint8(PTRMAP_OVERFLOW1), (*MemPage)(unsafe.Pointer(pPage)).Fpgno, bp+120) __28: ; __27: ; goto __25 __24: - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = fillInCell(tls, pPage, newCell, pX, bp+108) + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = fillInCell(tls, pPage, newCell, pX, bp+124) __25: ; - if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) { + if !(*(*int32)(unsafe.Pointer(bp + 120)) != 0) { goto __29 } goto end_insert @@ -98235,11 +98504,11 @@ __29: if !(idx >= int32((*MemPage)(unsafe.Pointer(pPage)).FnCell)) { goto __32 } - return Xsqlite3CorruptError(tls, 75183) + return Xsqlite3CorruptError(tls, 76000) __32: ; - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = Xsqlite3PagerWrite(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage) - if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) { + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = Xsqlite3PagerWrite(tls, (*MemPage)(unsafe.Pointer(pPage)).FpDbPage) + if !(*(*int32)(unsafe.Pointer(bp + 120)) != 0) { goto __33 } goto end_insert @@ -98254,20 +98523,20 @@ __34: ; (*struct { f func(*libc.TLS, uintptr, uintptr, uintptr) - })(unsafe.Pointer(&struct{ uintptr }{(*MemPage)(unsafe.Pointer(pPage)).FxParseCell})).f(tls, pPage, oldCell, bp+112 /* &info1 */) - if !(U32((*CellInfo)(unsafe.Pointer(bp+112 /* &info1 */)).FnLocal) != (*CellInfo)(unsafe.Pointer(bp+112 /* &info1 */)).FnPayload) { + })(unsafe.Pointer(&struct{ uintptr }{(*MemPage)(unsafe.Pointer(pPage)).FxParseCell})).f(tls, pPage, oldCell, bp+128 /* &info1 */) + if !(U32((*CellInfo)(unsafe.Pointer(bp+128 /* &info1 */)).FnLocal) != (*CellInfo)(unsafe.Pointer(bp+128 /* &info1 */)).FnPayload) { goto __35 } - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = clearCellOverflow(tls, pPage, oldCell, bp+112 /* &info1 */) + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = clearCellOverflow(tls, pPage, oldCell, bp+128 /* &info1 */) goto __36 __35: - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = SQLITE_OK + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = SQLITE_OK __36: ; *(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_ValidOvfl)) - if !(int32((*CellInfo)(unsafe.Pointer(bp+112)).FnSize) == *(*int32)(unsafe.Pointer(bp + 108)) && U32((*CellInfo)(unsafe.Pointer(bp+112)).FnLocal) == (*CellInfo)(unsafe.Pointer(bp+112)).FnPayload && - (!(int32((*BtShared)(unsafe.Pointer(pBt)).FautoVacuum) != 0) || *(*int32)(unsafe.Pointer(bp + 108)) < int32((*MemPage)(unsafe.Pointer(pPage)).FminLocal))) { + if !(int32((*CellInfo)(unsafe.Pointer(bp+128)).FnSize) == *(*int32)(unsafe.Pointer(bp + 124)) && U32((*CellInfo)(unsafe.Pointer(bp+128)).FnLocal) == (*CellInfo)(unsafe.Pointer(bp+128)).FnPayload && + (!(int32((*BtShared)(unsafe.Pointer(pBt)).FautoVacuum) != 0) || *(*int32)(unsafe.Pointer(bp + 124)) < int32((*MemPage)(unsafe.Pointer(pPage)).FminLocal))) { goto __37 } // Overwrite the old cell with the new if they are the same size. @@ -98283,21 +98552,21 @@ __36: if !(oldCell < (*MemPage)(unsafe.Pointer(pPage)).FaData+uintptr((*MemPage)(unsafe.Pointer(pPage)).FhdrOffset)+uintptr(10)) { goto __38 } - return Xsqlite3CorruptError(tls, 75210) + return Xsqlite3CorruptError(tls, 76027) __38: ; - if !(oldCell+uintptr(*(*int32)(unsafe.Pointer(bp + 108))) > (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd) { + if !(oldCell+uintptr(*(*int32)(unsafe.Pointer(bp + 124))) > (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd) { goto __39 } - return Xsqlite3CorruptError(tls, 75213) + return Xsqlite3CorruptError(tls, 76030) __39: ; - libc.Xmemcpy(tls, oldCell, newCell, uint64(*(*int32)(unsafe.Pointer(bp + 108 /* szNew */)))) + libc.Xmemcpy(tls, oldCell, newCell, uint64(*(*int32)(unsafe.Pointer(bp + 124 /* szNew */)))) return SQLITE_OK __37: ; - dropCell(tls, pPage, idx, int32((*CellInfo)(unsafe.Pointer(bp+112 /* &info1 */)).FnSize), bp+104) - if !(*(*int32)(unsafe.Pointer(bp + 104)) != 0) { + dropCell(tls, pPage, idx, int32((*CellInfo)(unsafe.Pointer(bp+128 /* &info1 */)).FnSize), bp+120) + if !(*(*int32)(unsafe.Pointer(bp + 120)) != 0) { goto __40 } goto end_insert @@ -98318,7 +98587,7 @@ __42: ; __31: ; - insertCell(tls, pPage, idx, newCell, *(*int32)(unsafe.Pointer(bp + 108 /* szNew */)), uintptr(0), uint32(0), bp+104) + insertCell(tls, pPage, idx, newCell, *(*int32)(unsafe.Pointer(bp + 124 /* szNew */)), uintptr(0), uint32(0), bp+120) // If no error has occurred and pPage has an overflow cell, call balance() // to redistribute the cells within the tree. Since balance() may move @@ -98345,7 +98614,7 @@ __31: } *(*U8)(unsafe.Pointer(pCur + 1)) &= libc.Uint8FromInt32(libc.CplInt32(BTCF_ValidNKey)) - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = balance(tls, pCur) + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = balance(tls, pCur) // Must make sure nOverflow is reset to zero even if the balance() // fails. Internal data structure corruption will result otherwise. @@ -98353,7 +98622,7 @@ __31: // from trying to save the current position of the cursor. (*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).FnOverflow = U8(0) (*BtCursor)(unsafe.Pointer(pCur)).FeState = U8(CURSOR_INVALID) - if !(flags&BTREE_SAVEPOSITION != 0 && *(*int32)(unsafe.Pointer(bp + 104)) == SQLITE_OK) { + if !(flags&BTREE_SAVEPOSITION != 0 && *(*int32)(unsafe.Pointer(bp + 120)) == SQLITE_OK) { goto __44 } btreeReleaseAllCursorPages(tls, pCur) @@ -98365,7 +98634,7 @@ __31: if !((*BtCursor)(unsafe.Pointer(pCur)).FpKey == uintptr(0)) { goto __46 } - *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = SQLITE_NOMEM + *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) = SQLITE_NOMEM goto __47 __46: libc.Xmemcpy(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpKey, (*BtreePayload)(unsafe.Pointer(pX)).FpKey, uint64((*BtreePayload)(unsafe.Pointer(pX)).FnKey)) @@ -98381,7 +98650,7 @@ __43: ; end_insert: - return *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) + return *(*int32)(unsafe.Pointer(bp + 120 /* rc */)) } // This function is used as part of copying the current row from cursor @@ -98397,7 +98666,7 @@ end_insert: // calling sqlite3BtreeInsert() with the BTREE_PREFORMAT flag specified. // // SQLITE_OK is returned if successful, or an SQLite error code otherwise. -func Xsqlite3BtreeTransferRow(tls *libc.TLS, pDest uintptr, pSrc uintptr, iKey I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75299:20: */ +func Xsqlite3BtreeTransferRow(tls *libc.TLS, pDest uintptr, pSrc uintptr, iKey I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76116:20: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -98409,22 +98678,18 @@ func Xsqlite3BtreeTransferRow(tls *libc.TLS, pDest uintptr, pSrc uintptr, iKey I var nRem U32 // Bytes of data still to copy getCellInfo(tls, pSrc) - aOut += uintptr(func() uint8 { - if (*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload < U32(0x80) { - return uint8(func() int32 { - *(*U8)(unsafe.Pointer(aOut)) = uint8((*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload) - return 1 - }()) - } - return uint8(Xsqlite3PutVarint(tls, aOut, uint64((*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload))) - }()) + if (*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload < U32(0x80) { + *(*U8)(unsafe.Pointer(libc.PostIncUintptr(&aOut, 1))) = U8((*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload) + } else { + aOut += uintptr(Xsqlite3PutVarint(tls, aOut, uint64((*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload))) + } if (*BtCursor)(unsafe.Pointer(pDest)).FpKeyInfo == uintptr(0) { aOut += uintptr(Xsqlite3PutVarint(tls, aOut, uint64(iKey))) } nIn = U32((*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FnLocal) aIn = (*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FpPayload if aIn+uintptr(nIn) > (*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pSrc)).FpPage)).FaDataEnd { - return Xsqlite3CorruptError(tls, 75313) + return Xsqlite3CorruptError(tls, 76134) } nRem = (*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FnPayload if nIn == nRem && nIn < U32((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pDest)).FpPage)).FmaxLocal) { @@ -98447,7 +98712,7 @@ func Xsqlite3BtreeTransferRow(tls *libc.TLS, pDest uintptr, pSrc uintptr, iKey I if nRem > nIn { if aIn+uintptr(nIn)+uintptr(4) > (*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pSrc)).FpPage)).FaDataEnd { - return Xsqlite3CorruptError(tls, 75336) + return Xsqlite3CorruptError(tls, 76157) } ovflIn = Xsqlite3Get4byte(tls, (*BtCursor)(unsafe.Pointer(pSrc)).Finfo.FpPayload+uintptr(nIn)) } @@ -98529,7 +98794,7 @@ func Xsqlite3BtreeTransferRow(tls *libc.TLS, pDest uintptr, pSrc uintptr, iKey I // operation on non-FORDELETE cursors is tagged with the AUXDELETE flag. // The BTREE_AUXDELETE bit is a hint that is not used by this implementation, // but which might be used by alternative storage engines. -func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75409:20: */ +func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76230:20: */ bp := tls.Alloc(28) defer tls.Free(28) @@ -98553,7 +98818,7 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* testd return *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) } } else { - return Xsqlite3CorruptError(tls, 75433) + return Xsqlite3CorruptError(tls, 76254) } } @@ -98561,11 +98826,11 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* testd iCellIdx = int32((*BtCursor)(unsafe.Pointer(pCur)).Fix) pPage = (*BtCursor)(unsafe.Pointer(pCur)).FpPage if int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) <= iCellIdx { - return Xsqlite3CorruptError(tls, 75442) + return Xsqlite3CorruptError(tls, 76263) } pCell = (*MemPage)(unsafe.Pointer(pPage)).FaData + uintptr(int32((*MemPage)(unsafe.Pointer(pPage)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*iCellIdx)))))) if (*MemPage)(unsafe.Pointer(pPage)).FnFree < 0 && btreeComputeFreeSpace(tls, pPage) != 0 { - return Xsqlite3CorruptError(tls, 75446) + return Xsqlite3CorruptError(tls, 76267) } // If the BTREE_SAVEPOSITION bit is on, then the cursor position must @@ -98586,7 +98851,9 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* testd bPreserve = U8(libc.Bool32(int32(flags)&BTREE_SAVEPOSITION != 0)) if bPreserve != 0 { if !(int32((*MemPage)(unsafe.Pointer(pPage)).Fleaf) != 0) || - (*MemPage)(unsafe.Pointer(pPage)).FnFree+int32(cellSizePtr(tls, pPage, pCell))+2 > int32((*BtShared)(unsafe.Pointer(pBt)).FusableSize*U32(2)/U32(3)) || + (*MemPage)(unsafe.Pointer(pPage)).FnFree+int32((*struct { + f func(*libc.TLS, uintptr, uintptr) U16 + })(unsafe.Pointer(&struct{ uintptr }{(*MemPage)(unsafe.Pointer(pPage)).FxCellSize})).f(tls, pPage, pCell))+2 > int32((*BtShared)(unsafe.Pointer(pBt)).FusableSize*U32(2)/U32(3)) || int32((*MemPage)(unsafe.Pointer(pPage)).FnCell) == 1 { // A b-tree rebalance will be required after deleting this entry. // Save the cursor key. @@ -98674,7 +98941,7 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* testd } pCell = (*MemPage)(unsafe.Pointer(pLeaf)).FaData + uintptr(int32((*MemPage)(unsafe.Pointer(pLeaf)).FmaskPage)&int32(libc.X__builtin_bswap16(tls, *(*U16)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pLeaf)).FaCellIdx + uintptr(2*(int32((*MemPage)(unsafe.Pointer(pLeaf)).FnCell)-1))))))) if pCell < (*MemPage)(unsafe.Pointer(pLeaf)).FaData+4 { - return Xsqlite3CorruptError(tls, 75536) + return Xsqlite3CorruptError(tls, 76358) } nCell = int32((*struct { f func(*libc.TLS, uintptr, uintptr) U16 @@ -98707,7 +98974,14 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* testd // been corrected, so be it. Otherwise, after balancing the leaf node, // walk the cursor up the tree to the internal node and balance it as // well. - *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = balance(tls, pCur) + + if (*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).FnFree*3 <= int32((*BtShared)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBt)).FusableSize)*2 { + // Optimization: If the free space is less than 2/3rds of the page, + // then balance() will always be a no-op. No need to invoke it. + *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = SQLITE_OK + } else { + *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = balance(tls, pCur) + } if *(*int32)(unsafe.Pointer(bp + 24)) == SQLITE_OK && int32((*BtCursor)(unsafe.Pointer(pCur)).FiPage) > iCellDepth { releasePageNotNull(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpPage) (*BtCursor)(unsafe.Pointer(pCur)).FiPage-- @@ -98749,9 +99023,9 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* testd // following values of flags are currently in use. Other values for // flags might not work: // -// BTREE_INTKEY|BTREE_LEAFDATA Used for SQL tables with rowid keys -// BTREE_ZERODATA Used for SQL indices -func btreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, createTabFlags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75610:12: */ +// BTREE_INTKEY|BTREE_LEAFDATA Used for SQL tables with rowid keys +// BTREE_ZERODATA Used for SQL indices +func btreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, createTabFlags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76440:12: */ bp := tls.Alloc(44) defer tls.Free(44) @@ -98781,7 +99055,7 @@ func btreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, createTabFlags // created so far, so the new root-page is (meta[3]+1). Xsqlite3BtreeGetMeta(tls, p, BTREE_LARGEST_ROOT_PAGE, bp) if *(*Pgno)(unsafe.Pointer(bp)) > btreePagecount(tls, pBt) { - return Xsqlite3CorruptError(tls, 75644) + return Xsqlite3CorruptError(tls, 76474) } *(*Pgno)(unsafe.Pointer(bp /* pgnoRoot */))++ @@ -98824,7 +99098,7 @@ func btreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, createTabFlags } *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = ptrmapGet(tls, pBt, *(*Pgno)(unsafe.Pointer(bp /* pgnoRoot */)), bp+32, bp+36) if int32(*(*U8)(unsafe.Pointer(bp + 32))) == PTRMAP_ROOTPAGE || int32(*(*U8)(unsafe.Pointer(bp + 32))) == PTRMAP_FREEPAGE { - *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 75692) + *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 76522) } if *(*int32)(unsafe.Pointer(bp + 40)) != SQLITE_OK { releasePage(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pRoot */))) @@ -98887,7 +99161,7 @@ func btreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, createTabFlags return SQLITE_OK } -func Xsqlite3BtreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75755:20: */ +func Xsqlite3BtreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76585:20: */ var rc int32 Xsqlite3BtreeEnter(tls, p) rc = btreeCreateTable(tls, p, piTable, flags) @@ -98897,7 +99171,7 @@ func Xsqlite3BtreeCreateTable(tls *libc.TLS, p uintptr, piTable uintptr, flags i // Erase the given database page and all its children. Return // the page to the freelist. -func clearDatabasePage(tls *libc.TLS, pBt uintptr, pgno Pgno, freePageFlag int32, pnChange uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75767:12: */ +func clearDatabasePage(tls *libc.TLS, pBt uintptr, pgno Pgno, freePageFlag int32, pnChange uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76597:12: */ bp := tls.Alloc(36) defer tls.Free(36) @@ -98913,7 +99187,7 @@ func clearDatabasePage(tls *libc.TLS, pBt uintptr, pgno Pgno, freePageFlag int32 if !(pgno > btreePagecount(tls, pBt)) { goto __1 } - return Xsqlite3CorruptError(tls, 75782) + return Xsqlite3CorruptError(tls, 76612) __1: ; *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = getAndInitPage(tls, pBt, pgno, bp, uintptr(0), 0) @@ -98927,7 +99201,7 @@ __2: Xsqlite3PagerPageRefcount(tls, (*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpDbPage) != 1+libc.Bool32(pgno == Pgno(1))) { goto __3 } - *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = Xsqlite3CorruptError(tls, 75789) + *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = Xsqlite3CorruptError(tls, 76619) goto cleardatabasepage_out __3: ; @@ -99031,7 +99305,7 @@ cleardatabasepage_out: // // If pnChange is not NULL, then the integer value pointed to by pnChange // is incremented by the number of entries in the table. -func Xsqlite3BtreeClearTable(tls *libc.TLS, p uintptr, iTable int32, pnChange uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75834:20: */ +func Xsqlite3BtreeClearTable(tls *libc.TLS, p uintptr, iTable int32, pnChange uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76664:20: */ var rc int32 var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt Xsqlite3BtreeEnter(tls, p) @@ -99054,7 +99328,7 @@ func Xsqlite3BtreeClearTable(tls *libc.TLS, p uintptr, iTable int32, pnChange ui // Delete all information from the single table that pCur is open on. // // This routine only work for pCur on an ephemeral table. -func Xsqlite3BtreeClearTableOfCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75860:20: */ +func Xsqlite3BtreeClearTableOfCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76690:20: */ return Xsqlite3BtreeClearTable(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree, int32((*BtCursor)(unsafe.Pointer(pCur)).FpgnoRoot), uintptr(0)) } @@ -99076,7 +99350,7 @@ func Xsqlite3BtreeClearTableOfCursor(tls *libc.TLS, pCur uintptr) int32 { /* tes // the move. If no page gets moved, *piMoved is set to 0. // The last root page is recorded in meta[3] and the value of // meta[3] is updated by this procedure. -func btreeDropTable(tls *libc.TLS, p uintptr, iTable Pgno, piMoved uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75884:12: */ +func btreeDropTable(tls *libc.TLS, p uintptr, iTable Pgno, piMoved uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76714:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -99086,7 +99360,7 @@ func btreeDropTable(tls *libc.TLS, p uintptr, iTable Pgno, piMoved uintptr) int3 var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt if iTable > btreePagecount(tls, pBt) { - return Xsqlite3CorruptError(tls, 75893) + return Xsqlite3CorruptError(tls, 76723) } *(*int32)(unsafe.Pointer(bp + 12 /* rc */)) = Xsqlite3BtreeClearTable(tls, p, int32(iTable), uintptr(0)) @@ -99158,7 +99432,7 @@ func btreeDropTable(tls *libc.TLS, p uintptr, iTable Pgno, piMoved uintptr) int3 return *(*int32)(unsafe.Pointer(bp + 12 /* rc */)) } -func Xsqlite3BtreeDropTable(tls *libc.TLS, p uintptr, iTable int32, piMoved uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75969:20: */ +func Xsqlite3BtreeDropTable(tls *libc.TLS, p uintptr, iTable int32, piMoved uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76799:20: */ var rc int32 Xsqlite3BtreeEnter(tls, p) rc = btreeDropTable(tls, p, uint32(iTable), piMoved) @@ -99184,7 +99458,7 @@ func Xsqlite3BtreeDropTable(tls *libc.TLS, p uintptr, iTable int32, piMoved uint // database file. It is a number computed by the pager. But its access // pattern is the same as header meta values, and so it is convenient to // read it from this routine. -func Xsqlite3BtreeGetMeta(tls *libc.TLS, p uintptr, idx int32, pMeta uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:75998:21: */ +func Xsqlite3BtreeGetMeta(tls *libc.TLS, p uintptr, idx int32, pMeta uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76828:21: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt Xsqlite3BtreeEnter(tls, p) @@ -99203,7 +99477,7 @@ func Xsqlite3BtreeGetMeta(tls *libc.TLS, p uintptr, idx int32, pMeta uintptr) { // Write meta-information back into the database. Meta[0] is // read-only and may not be written. -func Xsqlite3BtreeUpdateMeta(tls *libc.TLS, p uintptr, idx int32, iMeta U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76028:20: */ +func Xsqlite3BtreeUpdateMeta(tls *libc.TLS, p uintptr, idx int32, iMeta U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76858:20: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt var pP1 uintptr var rc int32 @@ -99229,7 +99503,7 @@ func Xsqlite3BtreeUpdateMeta(tls *libc.TLS, p uintptr, idx int32, iMeta U32) int // SQLITE_OK is returned if the operation is successfully executed. // Otherwise, if an error is encountered (i.e. an IO error or database // corruption) an SQLite error code is returned. -func Xsqlite3BtreeCount(tls *libc.TLS, db uintptr, pCur uintptr, pnEntry uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76060:20: */ +func Xsqlite3BtreeCount(tls *libc.TLS, db uintptr, pCur uintptr, pnEntry uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76890:20: */ var nEntry I64 = int64(0) // Value to return in *pnEntry var rc int32 // Return code @@ -99292,12 +99566,12 @@ func Xsqlite3BtreeCount(tls *libc.TLS, db uintptr, pCur uintptr, pnEntry uintptr // Return the pager associated with a BTree. This routine is used for // testing and debugging only. -func Xsqlite3BtreePager(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76129:22: */ +func Xsqlite3BtreePager(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76959:22: */ return (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpPager } // Append a message to the error message string. -func checkAppendMsg(tls *libc.TLS, pCheck uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76137:13: */ +func checkAppendMsg(tls *libc.TLS, pCheck uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76967:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -99310,7 +99584,7 @@ func checkAppendMsg(tls *libc.TLS, pCheck uintptr, zFormat uintptr, va uintptr) (*IntegrityCk)(unsafe.Pointer(pCheck)).FnErr++ ap = va if (*IntegrityCk)(unsafe.Pointer(pCheck)).FerrMsg.FnChar != 0 { - Xsqlite3_str_append(tls, pCheck+56, ts+5365, 1) + Xsqlite3_str_append(tls, pCheck+56, ts+5400, 1) } if (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx != 0 { Xsqlite3_str_appendf(tls, pCheck+56, (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx, libc.VaList(bp, (*IntegrityCk)(unsafe.Pointer(pCheck)).Fv1, (*IntegrityCk)(unsafe.Pointer(pCheck)).Fv2)) @@ -99324,13 +99598,13 @@ func checkAppendMsg(tls *libc.TLS, pCheck uintptr, zFormat uintptr, va uintptr) // Return non-zero if the bit in the IntegrityCk.aPgRef[] array that // corresponds to page iPg is already set. -func getPageReferenced(tls *libc.TLS, pCheck uintptr, iPg Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76167:12: */ +func getPageReferenced(tls *libc.TLS, pCheck uintptr, iPg Pgno) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:76997:12: */ return int32(*(*U8)(unsafe.Pointer((*IntegrityCk)(unsafe.Pointer(pCheck)).FaPgRef + uintptr(iPg/Pgno(8))))) & (int32(1) << (iPg & Pgno(0x07))) } // Set the bit in the IntegrityCk.aPgRef[] array that corresponds to page iPg. -func setPageReferenced(tls *libc.TLS, pCheck uintptr, iPg Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76175:13: */ +func setPageReferenced(tls *libc.TLS, pCheck uintptr, iPg Pgno) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77005:13: */ *(*U8)(unsafe.Pointer((*IntegrityCk)(unsafe.Pointer(pCheck)).FaPgRef + uintptr(iPg/Pgno(8)))) |= U8(int32(1) << (iPg & Pgno(0x07))) } @@ -99341,16 +99615,16 @@ func setPageReferenced(tls *libc.TLS, pCheck uintptr, iPg Pgno) { /* testdata/sq // if this is the first reference to the page. // // Also check that the page number is in bounds. -func checkRef(tls *libc.TLS, pCheck uintptr, iPage Pgno) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76189:12: */ +func checkRef(tls *libc.TLS, pCheck uintptr, iPage Pgno) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77019:12: */ bp := tls.Alloc(16) defer tls.Free(16) if iPage > (*IntegrityCk)(unsafe.Pointer(pCheck)).FnPage || iPage == Pgno(0) { - checkAppendMsg(tls, pCheck, ts+5367, libc.VaList(bp, iPage)) + checkAppendMsg(tls, pCheck, ts+5402, libc.VaList(bp, iPage)) return 1 } if getPageReferenced(tls, pCheck, iPage) != 0 { - checkAppendMsg(tls, pCheck, ts+5390, libc.VaList(bp+8, iPage)) + checkAppendMsg(tls, pCheck, ts+5425, libc.VaList(bp+8, iPage)) return 1 } if libc.AtomicLoadNInt32((*IntegrityCk)(unsafe.Pointer(pCheck)).Fdb+432, 0) != 0 { @@ -99363,7 +99637,7 @@ func checkRef(tls *libc.TLS, pCheck uintptr, iPage Pgno) int32 { /* testdata/sql // Check that the entry in the pointer-map for page iChild maps to // page iParent, pointer type ptrType. If not, append an error message // to pCheck. -func checkPtrmap(tls *libc.TLS, pCheck uintptr, iChild Pgno, eType U8, iParent Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76209:13: */ +func checkPtrmap(tls *libc.TLS, pCheck uintptr, iChild Pgno, eType U8, iParent Pgno) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77039:13: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -99377,20 +99651,20 @@ func checkPtrmap(tls *libc.TLS, pCheck uintptr, iChild Pgno, eType U8, iParent P if rc == SQLITE_NOMEM || rc == SQLITE_IOERR|int32(12)<<8 { (*IntegrityCk)(unsafe.Pointer(pCheck)).FbOomFault = 1 } - checkAppendMsg(tls, pCheck, ts+5415, libc.VaList(bp, iChild)) + checkAppendMsg(tls, pCheck, ts+5450, libc.VaList(bp, iChild)) return } if int32(*(*U8)(unsafe.Pointer(bp + 48))) != int32(eType) || *(*Pgno)(unsafe.Pointer(bp + 52)) != iParent { checkAppendMsg(tls, pCheck, - ts+5444, + ts+5479, libc.VaList(bp+8, iChild, int32(eType), iParent, int32(*(*U8)(unsafe.Pointer(bp + 48 /* ePtrmapType */))), *(*Pgno)(unsafe.Pointer(bp + 52 /* iPtrmapParent */)))) } } // Check the integrity of the freelist or of an overflow page list. // Verify that the number of pages on the list is N. -func checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage Pgno, N U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76238:13: */ +func checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage Pgno, N U32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77068:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -99406,7 +99680,7 @@ func checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage Pgno, N U3 } N-- if Xsqlite3PagerGet(tls, (*IntegrityCk)(unsafe.Pointer(pCheck)).FpPager, iPage, bp+40, 0) != 0 { - checkAppendMsg(tls, pCheck, ts+5498, libc.VaList(bp, iPage)) + checkAppendMsg(tls, pCheck, ts+5533, libc.VaList(bp, iPage)) break } pOvflData = Xsqlite3PagerGetData(tls, *(*uintptr)(unsafe.Pointer(bp + 40 /* pOvflPage */))) @@ -99417,7 +99691,7 @@ func checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage Pgno, N U3 } if n > (*BtShared)(unsafe.Pointer((*IntegrityCk)(unsafe.Pointer(pCheck)).FpBt)).FusableSize/U32(4)-U32(2) { checkAppendMsg(tls, pCheck, - ts+5520, libc.VaList(bp+8, iPage)) + ts+5555, libc.VaList(bp+8, iPage)) N-- } else { for i = 0; i < int32(n); i++ { @@ -99443,12 +99717,12 @@ func checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage Pgno, N U3 } if N != 0 && nErrAtStart == (*IntegrityCk)(unsafe.Pointer(pCheck)).FnErr { checkAppendMsg(tls, pCheck, - ts+5559, + ts+5594, libc.VaList(bp+16, func() uintptr { if isFreeList != 0 { - return ts + 5585 /* "size" */ + return ts + 5620 /* "size" */ } - return ts + 5590 /* "overflow list le..." */ + return ts + 5625 /* "overflow list le..." */ }(), expected-N, expected)) } @@ -99474,7 +99748,7 @@ func checkList(tls *libc.TLS, pCheck uintptr, isFreeList int32, iPage Pgno, N U3 // entry represents the span of a cell or freeblock on a btree page. // The upper 16 bits are the index of the first byte of a range and the // lower 16 bits are the index of the last byte of that range. -func btreeHeapInsert(tls *libc.TLS, aHeap uintptr, x U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76327:13: */ +func btreeHeapInsert(tls *libc.TLS, aHeap uintptr, x U32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77157:13: */ var j U32 var i U32 = libc.PreIncUint32(&*(*U32)(unsafe.Pointer(aHeap)), 1) *(*U32)(unsafe.Pointer(aHeap + uintptr(i)*4)) = x @@ -99486,7 +99760,7 @@ func btreeHeapInsert(tls *libc.TLS, aHeap uintptr, x U32) { /* testdata/sqlite-a } } -func btreeHeapPull(tls *libc.TLS, aHeap uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76337:12: */ +func btreeHeapPull(tls *libc.TLS, aHeap uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77167:12: */ var j U32 var i U32 var x U32 @@ -99519,13 +99793,13 @@ func btreeHeapPull(tls *libc.TLS, aHeap uintptr, pOut uintptr) int32 { /* testda // // These checks are done: // -// 1. Make sure that cells and freeblocks do not overlap -// but combine to completely cover the page. -// 2. Make sure integer cell keys are in order. -// 3. Check the integrity of overflow pages. -// 4. Recursively call checkTreePage on all children. -// 5. Verify that the depth of all children is the same. -func checkTreePage(tls *libc.TLS, pCheck uintptr, iPage Pgno, piMinKey uintptr, maxKey I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76371:12: */ +// 1. Make sure that cells and freeblocks do not overlap +// but combine to completely cover the page. +// 2. Make sure integer cell keys are in order. +// 3. Check the integrity of overflow pages. +// 4. Recursively call checkTreePage on all children. +// 5. Verify that the depth of all children is the same. +func checkTreePage(tls *libc.TLS, pCheck uintptr, iPage Pgno, piMinKey uintptr, maxKey I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77201:12: */ bp := tls.Alloc(140) defer tls.Free(140) *(*I64)(unsafe.Pointer(bp + 104)) = maxKey @@ -99592,13 +99866,13 @@ __1: return 0 __2: ; - (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 5611 /* "Page %u: " */ + (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 5646 /* "Page %u: " */ (*IntegrityCk)(unsafe.Pointer(pCheck)).Fv1 = iPage if !(libc.AssignInt32(&rc, btreeGetPage(tls, pBt, iPage, bp+96, 0)) != 0) { goto __3 } checkAppendMsg(tls, pCheck, - ts+5621, libc.VaList(bp, rc)) + ts+5656, libc.VaList(bp, rc)) goto end_of_check __3: ; @@ -99612,7 +99886,7 @@ __3: } // The only possible error from InitPage checkAppendMsg(tls, pCheck, - ts+5659, libc.VaList(bp+8, rc)) + ts+5694, libc.VaList(bp+8, rc)) goto end_of_check __4: ; @@ -99620,7 +99894,7 @@ __4: goto __5 } - checkAppendMsg(tls, pCheck, ts+5697, libc.VaList(bp+16, rc)) + checkAppendMsg(tls, pCheck, ts+5732, libc.VaList(bp+16, rc)) goto end_of_check __5: ; @@ -99628,7 +99902,7 @@ __5: hdr = int32((*MemPage)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 96 /* pPage */)))).FhdrOffset) // Set up for cell analysis - (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 5719 /* "On tree page %u ..." */ + (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 5754 /* "On tree page %u ..." */ contentOffset = U32((int32(*(*U8)(unsafe.Pointer(data + uintptr(hdr+5))))<<8|int32(*(*U8)(unsafe.Pointer(data + uintptr(hdr+5) + 1)))-1)&0xffff + 1) // Enforced by btreeInitPage() @@ -99650,7 +99924,7 @@ __5: if !((*BtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0) { goto __8 } - (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 5745 /* "On page %u at ri..." */ + (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 5780 /* "On page %u at ri..." */ checkPtrmap(tls, pCheck, uint32(pgno), uint8(PTRMAP_BTREE), iPage) __8: ; @@ -99681,7 +99955,7 @@ __9: if !(pc < contentOffset || pc > usableSize-U32(4)) { goto __12 } - checkAppendMsg(tls, pCheck, ts+5773, + checkAppendMsg(tls, pCheck, ts+5808, libc.VaList(bp+24, pc, contentOffset, usableSize-U32(4))) doCoverageCheck = 0 goto __10 @@ -99694,7 +99968,7 @@ __12: if !(pc+U32((*CellInfo)(unsafe.Pointer(bp+112)).FnSize) > usableSize) { goto __13 } - checkAppendMsg(tls, pCheck, ts+5803, 0) + checkAppendMsg(tls, pCheck, ts+5838, 0) doCoverageCheck = 0 goto __10 __13: @@ -99712,7 +99986,7 @@ __13: }() != 0) { goto __15 } - checkAppendMsg(tls, pCheck, ts+5827, libc.VaList(bp+48, (*CellInfo)(unsafe.Pointer(bp+112 /* &info */)).FnKey)) + checkAppendMsg(tls, pCheck, ts+5862, libc.VaList(bp+48, (*CellInfo)(unsafe.Pointer(bp+112 /* &info */)).FnKey)) __15: ; *(*I64)(unsafe.Pointer(bp + 104 /* maxKey */)) = (*CellInfo)(unsafe.Pointer(bp + 112 /* &info */)).FnKey @@ -99753,7 +100027,7 @@ __20: if !(d2 != depth) { goto __21 } - checkAppendMsg(tls, pCheck, ts+5851, 0) + checkAppendMsg(tls, pCheck, ts+5886, 0) depth = d2 __21: ; @@ -99853,7 +100127,7 @@ __29: goto __31 } checkAppendMsg(tls, pCheck, - ts+5876, libc.VaList(bp+56, *(*U32)(unsafe.Pointer(bp + 136))>>16, iPage)) + ts+5911, libc.VaList(bp+56, *(*U32)(unsafe.Pointer(bp + 136))>>16, iPage)) goto __30 goto __32 __31: @@ -99873,7 +100147,7 @@ __30: goto __33 } checkAppendMsg(tls, pCheck, - ts+5913, + ts+5948, libc.VaList(bp+72, nFrag, int32(*(*U8)(unsafe.Pointer(data + uintptr(hdr+7)))), iPage)) __33: ; @@ -99914,7 +100188,7 @@ __34: // since obviously it is not possible to know which pages are covered by // the unverified btrees. Except, if aRoot[1] is 1, then the freelist // checks are still performed. -func Xsqlite3BtreeIntegrityCheck(tls *libc.TLS, db uintptr, p uintptr, aRoot uintptr, nRoot int32, mxErr int32, pnErr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76650:21: */ +func Xsqlite3BtreeIntegrityCheck(tls *libc.TLS, db uintptr, p uintptr, aRoot uintptr, nRoot int32, mxErr int32, pnErr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77480:21: */ bp := tls.Alloc(248) defer tls.Free(248) @@ -100002,7 +100276,7 @@ __6: if !(bCkFreelist != 0) { goto __7 } - (*IntegrityCk)(unsafe.Pointer(bp + 32 /* &sCheck */)).FzPfx = ts + 5965 /* "Main freelist: " */ + (*IntegrityCk)(unsafe.Pointer(bp + 32 /* &sCheck */)).FzPfx = ts + 6000 /* "Main freelist: " */ checkList(tls, bp+32, 1, Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer((*BtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+32), Xsqlite3Get4byte(tls, (*MemPage)(unsafe.Pointer((*BtShared)(unsafe.Pointer(pBt)).FpPage1)).FaData+36)) (*IntegrityCk)(unsafe.Pointer(bp + 32 /* &sCheck */)).FzPfx = uintptr(0) @@ -100040,7 +100314,7 @@ __13: goto __15 } checkAppendMsg(tls, bp+32, - ts+5981, + ts+6016, libc.VaList(bp, mx, mxInHdr)) __15: ; @@ -100050,7 +100324,7 @@ __9: goto __16 } checkAppendMsg(tls, bp+32, - ts+6026, 0) + ts+6061, 0) __16: ; __10: @@ -100100,13 +100374,13 @@ __23: if !(getPageReferenced(tls, bp+32, i) == 0 && (ptrmapPageno(tls, pBt, i) != i || !(int32((*BtShared)(unsafe.Pointer(pBt)).FautoVacuum) != 0))) { goto __26 } - checkAppendMsg(tls, bp+32, ts+6081, libc.VaList(bp+16, i)) + checkAppendMsg(tls, bp+32, ts+6116, libc.VaList(bp+16, i)) __26: ; if !(getPageReferenced(tls, bp+32, i) != 0 && (ptrmapPageno(tls, pBt, i) == i && (*BtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0)) { goto __27 } - checkAppendMsg(tls, bp+32, ts+6103, libc.VaList(bp+24, i)) + checkAppendMsg(tls, bp+32, ts+6138, libc.VaList(bp+24, i)) __27: ; goto __24 @@ -100148,7 +100422,7 @@ __29: // // The pager filename is invariant as long as the pager is // open so it is safe to access without the BtShared mutex. -func Xsqlite3BtreeGetFilename(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76805:27: */ +func Xsqlite3BtreeGetFilename(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77635:27: */ return Xsqlite3PagerFilename(tls, (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpPager, 1) } @@ -100159,14 +100433,14 @@ func Xsqlite3BtreeGetFilename(tls *libc.TLS, p uintptr) uintptr { /* testdata/sq // // The pager journal filename is invariant as long as the pager is // open so it is safe to access without the BtShared mutex. -func Xsqlite3BtreeGetJournalname(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76818:27: */ +func Xsqlite3BtreeGetJournalname(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77648:27: */ return Xsqlite3PagerJournalname(tls, (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FpPager) } // Return one of SQLITE_TXN_NONE, SQLITE_TXN_READ, or SQLITE_TXN_WRITE // to describe the current transaction state of Btree p. -func Xsqlite3BtreeTxnState(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76827:20: */ +func Xsqlite3BtreeTxnState(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77657:20: */ if p != 0 { return int32((*Btree)(unsafe.Pointer(p)).FinTrans) @@ -100180,7 +100454,7 @@ func Xsqlite3BtreeTxnState(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite- // transaction on the shared-cache the argument Btree is connected to. // // Parameter eMode is one of SQLITE_CHECKPOINT_PASSIVE, FULL or RESTART. -func Xsqlite3BtreeCheckpoint(tls *libc.TLS, p uintptr, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76841:20: */ +func Xsqlite3BtreeCheckpoint(tls *libc.TLS, p uintptr, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77671:20: */ var rc int32 = SQLITE_OK if p != 0 { var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt @@ -100196,7 +100470,7 @@ func Xsqlite3BtreeCheckpoint(tls *libc.TLS, p uintptr, eMode int32, pnLog uintpt } // Return true if there is currently a backup running on Btree p. -func Xsqlite3BtreeIsInBackup(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76860:20: */ +func Xsqlite3BtreeIsInBackup(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77690:20: */ return libc.Bool32((*Btree)(unsafe.Pointer(p)).FnBackup != 0) } @@ -100219,7 +100493,7 @@ func Xsqlite3BtreeIsInBackup(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlit // xFree argument when the memory allocation was made is invoked on the // blob of allocated memory. The xFree function should not call sqlite3_free() // on the memory, the btree layer does that. -func Xsqlite3BtreeSchema(tls *libc.TLS, p uintptr, nBytes int32, xFree uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76886:21: */ +func Xsqlite3BtreeSchema(tls *libc.TLS, p uintptr, nBytes int32, xFree uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77716:21: */ var pBt uintptr = (*Btree)(unsafe.Pointer(p)).FpBt Xsqlite3BtreeEnter(tls, p) if !(int32((*BtShared)(unsafe.Pointer(pBt)).FpSchema) != 0) && nBytes != 0 { @@ -100233,7 +100507,7 @@ func Xsqlite3BtreeSchema(tls *libc.TLS, p uintptr, nBytes int32, xFree uintptr) // Return SQLITE_LOCKED_SHAREDCACHE if another user of the same shared // btree as the argument handle holds an exclusive lock on the // sqlite_schema table. Otherwise SQLITE_OK. -func Xsqlite3BtreeSchemaLocked(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76902:20: */ +func Xsqlite3BtreeSchemaLocked(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77732:20: */ var rc int32 Xsqlite3BtreeEnter(tls, p) @@ -100246,7 +100520,7 @@ func Xsqlite3BtreeSchemaLocked(tls *libc.TLS, p uintptr) int32 { /* testdata/sql // Obtain a lock on the table whose root page is iTab. The // lock is a write lock if isWritelock is true or a read lock // if it is false. -func Xsqlite3BtreeLockTable(tls *libc.TLS, p uintptr, iTab int32, isWriteLock U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76919:20: */ +func Xsqlite3BtreeLockTable(tls *libc.TLS, p uintptr, iTab int32, isWriteLock U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77749:20: */ var rc int32 = SQLITE_OK if (*Btree)(unsafe.Pointer(p)).Fsharable != 0 { @@ -100270,7 +100544,7 @@ func Xsqlite3BtreeLockTable(tls *libc.TLS, p uintptr, iTab int32, isWriteLock U8 // change the length of the data stored. If this function is called with // parameters that attempt to write past the end of the existing data, // no modifications are made and SQLITE_CORRUPT is returned. -func Xsqlite3BtreePutData(tls *libc.TLS, pCsr uintptr, offset U32, amt U32, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76949:20: */ +func Xsqlite3BtreePutData(tls *libc.TLS, pCsr uintptr, offset U32, amt U32, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77779:20: */ var rc int32 rc = func() int32 { @@ -100310,7 +100584,7 @@ func Xsqlite3BtreePutData(tls *libc.TLS, pCsr uintptr, offset U32, amt U32, z ui } // Mark this cursor as an incremental blob cursor. -func Xsqlite3BtreeIncrblobCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:76997:21: */ +func Xsqlite3BtreeIncrblobCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77827:21: */ *(*U8)(unsafe.Pointer(pCur + 1)) |= U8(BTCF_Incrblob) (*Btree)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpBtree)).FhasIncrblobCur = U8(1) } @@ -100318,7 +100592,7 @@ func Xsqlite3BtreeIncrblobCursor(tls *libc.TLS, pCur uintptr) { /* testdata/sqli // Set both the "read version" (single byte at byte offset 18) and // "write version" (single byte at byte offset 19) fields in the database // header to iVersion. -func Xsqlite3BtreeSetVersion(tls *libc.TLS, pBtree uintptr, iVersion int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77008:20: */ +func Xsqlite3BtreeSetVersion(tls *libc.TLS, pBtree uintptr, iVersion int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77838:20: */ var pBt uintptr = (*Btree)(unsafe.Pointer(pBtree)).FpBt var rc int32 // Return code @@ -100350,29 +100624,29 @@ func Xsqlite3BtreeSetVersion(tls *libc.TLS, pBtree uintptr, iVersion int32) int3 // Return true if the cursor has a hint specified. This routine is // only used from within assert() statements -func Xsqlite3BtreeCursorHasHint(tls *libc.TLS, pCsr uintptr, mask uint32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77043:20: */ +func Xsqlite3BtreeCursorHasHint(tls *libc.TLS, pCsr uintptr, mask uint32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77873:20: */ return libc.Bool32(uint32((*BtCursor)(unsafe.Pointer(pCsr)).Fhints)&mask != uint32(0)) } // Return true if the given Btree is read-only. -func Xsqlite3BtreeIsReadonly(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77050:20: */ +func Xsqlite3BtreeIsReadonly(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77880:20: */ return libc.Bool32(int32((*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FbtsFlags)&BTS_READ_ONLY != 0) } // Return the size of the header added to each page by this module. -func Xsqlite3HeaderSizeBtree(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77057:20: */ +func Xsqlite3HeaderSizeBtree(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77887:20: */ return int32((uint64(unsafe.Sizeof(MemPage{})) + uint64(7)) & libc.Uint64FromInt32(libc.CplInt32(7))) } // Return true if the Btree passed as the only argument is sharable. -func Xsqlite3BtreeSharable(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77063:20: */ +func Xsqlite3BtreeSharable(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77893:20: */ return int32((*Btree)(unsafe.Pointer(p)).Fsharable) } // Return the number of connections to the BtShared object accessed by // the Btree handle passed as the only argument. For private caches // this is always 1. For shared caches it may be 1 or greater. -func Xsqlite3BtreeConnectionCount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77072:20: */ +func Xsqlite3BtreeConnectionCount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77902:20: */ return (*BtShared)(unsafe.Pointer((*Btree)(unsafe.Pointer(p)).FpBt)).FnRef } @@ -100412,7 +100686,7 @@ func Xsqlite3BtreeConnectionCount(tls *libc.TLS, p uintptr) int32 { /* testdata/ // If the "temp" database is requested, it may need to be opened by this // function. If an error occurs while doing so, return 0 and write an // error message to pErrorDb. -func findBtree(tls *libc.TLS, pErrorDb uintptr, pDb uintptr, zDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77161:14: */ +func findBtree(tls *libc.TLS, pErrorDb uintptr, pDb uintptr, zDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:77991:14: */ bp := tls.Alloc(424) defer tls.Free(424) @@ -100424,7 +100698,7 @@ func findBtree(tls *libc.TLS, pErrorDb uintptr, pDb uintptr, zDb uintptr) uintpt var rc int32 = 0 Xsqlite3ParseObjectInit(tls, bp+16, pDb) if Xsqlite3OpenTempDatabase(tls, bp+16) != 0 { - Xsqlite3ErrorWithMsg(tls, pErrorDb, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).Frc, ts+4444, libc.VaList(bp, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg)) + Xsqlite3ErrorWithMsg(tls, pErrorDb, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).Frc, ts+4479, libc.VaList(bp, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg)) rc = SQLITE_ERROR } Xsqlite3DbFree(tls, pErrorDb, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg) @@ -100435,7 +100709,7 @@ func findBtree(tls *libc.TLS, pErrorDb uintptr, pDb uintptr, zDb uintptr) uintpt } if i < 0 { - Xsqlite3ErrorWithMsg(tls, pErrorDb, SQLITE_ERROR, ts+6137, libc.VaList(bp+8, zDb)) + Xsqlite3ErrorWithMsg(tls, pErrorDb, SQLITE_ERROR, ts+6172, libc.VaList(bp+8, zDb)) return uintptr(0) } @@ -100444,7 +100718,7 @@ func findBtree(tls *libc.TLS, pErrorDb uintptr, pDb uintptr, zDb uintptr) uintpt // Attempt to set the page size of the destination to match the page size // of the source. -func setDestPgsz(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77191:12: */ +func setDestPgsz(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78021:12: */ var rc int32 rc = Xsqlite3BtreeSetPageSize(tls, (*Sqlite3_backup)(unsafe.Pointer(p)).FpDest, Xsqlite3BtreeGetPageSize(tls, (*Sqlite3_backup)(unsafe.Pointer(p)).FpSrc), 0, 0) return rc @@ -100454,9 +100728,9 @@ func setDestPgsz(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamati // second argument. If there is not, return SQLITE_OK. Otherwise, if there // is an open read-transaction, return SQLITE_ERROR and leave an error // message in database handle db. -func checkReadTransaction(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77203:12: */ +func checkReadTransaction(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78033:12: */ if Xsqlite3BtreeTxnState(tls, p) != SQLITE_TXN_NONE { - Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+6157, 0) + Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+6192, 0) return SQLITE_ERROR } return SQLITE_OK @@ -100468,7 +100742,7 @@ func checkReadTransaction(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testd // // If an error occurs, NULL is returned and an error code and error message // stored in database handle pDestDb. -func Xsqlite3_backup_init(tls *libc.TLS, pDestDb uintptr, zDestDb uintptr, pSrcDb uintptr, zSrcDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77219:27: */ +func Xsqlite3_backup_init(tls *libc.TLS, pDestDb uintptr, zDestDb uintptr, pSrcDb uintptr, zSrcDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78049:27: */ var p uintptr // Value to return // Lock the source database handle. The destination database @@ -100483,7 +100757,7 @@ func Xsqlite3_backup_init(tls *libc.TLS, pDestDb uintptr, zDestDb uintptr, pSrcD if pSrcDb == pDestDb { Xsqlite3ErrorWithMsg(tls, - pDestDb, SQLITE_ERROR, ts+6188, 0) + pDestDb, SQLITE_ERROR, ts+6223, 0) p = uintptr(0) } else { // Allocate space for a new sqlite3_backup object... @@ -100528,14 +100802,14 @@ func Xsqlite3_backup_init(tls *libc.TLS, pDestDb uintptr, zDestDb uintptr, pSrcD // Argument rc is an SQLite error code. Return true if this error is // considered fatal if encountered during a backup operation. All errors // are considered fatal except for SQLITE_BUSY and SQLITE_LOCKED. -func isFatalError(tls *libc.TLS, rc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77296:12: */ +func isFatalError(tls *libc.TLS, rc int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78126:12: */ return libc.Bool32(rc != SQLITE_OK && rc != SQLITE_BUSY && rc != SQLITE_LOCKED) } // Parameter zSrcData points to a buffer containing the data for // page iSrcPg from the source database. Copy this data into the // destination database. -func backupOnePage(tls *libc.TLS, p uintptr, iSrcPg Pgno, zSrcData uintptr, bUpdate int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77305:12: */ +func backupOnePage(tls *libc.TLS, p uintptr, iSrcPg Pgno, zSrcData uintptr, bUpdate int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78135:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -100597,7 +100871,7 @@ func backupOnePage(tls *libc.TLS, p uintptr, iSrcPg Pgno, zSrcData uintptr, bUpd // // Return SQLITE_OK if everything is successful, or an SQLite error // code if an error occurs. -func backupTruncateFile(tls *libc.TLS, pFile uintptr, iSize I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77374:12: */ +func backupTruncateFile(tls *libc.TLS, pFile uintptr, iSize I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78204:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -100612,7 +100886,7 @@ func backupTruncateFile(tls *libc.TLS, pFile uintptr, iSize I64) int32 { /* test // Register this backup object with the associated source pager for // callbacks when pages are changed or the cache invalidated. -func attachBackupObject(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77387:13: */ +func attachBackupObject(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78217:13: */ var pp uintptr pp = Xsqlite3PagerBackupPtr(tls, Xsqlite3BtreePager(tls, (*Sqlite3_backup)(unsafe.Pointer(p)).FpSrc)) @@ -100622,7 +100896,7 @@ func attachBackupObject(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamat } // Copy nPage pages from the source b-tree to the destination. -func Xsqlite3_backup_step(tls *libc.TLS, p uintptr, nPage int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77399:16: */ +func Xsqlite3_backup_step(tls *libc.TLS, p uintptr, nPage int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78229:16: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -100860,7 +101134,7 @@ func Xsqlite3_backup_step(tls *libc.TLS, p uintptr, nPage int32) int32 { /* test } // Release all resources associated with an sqlite3_backup* handle. -func Xsqlite3_backup_finish(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77653:16: */ +func Xsqlite3_backup_finish(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78483:16: */ var pp uintptr // Ptr to head of pagers backup list var pSrcDb uintptr // Source database connection var rc int32 // Value to return @@ -100918,13 +101192,13 @@ func Xsqlite3_backup_finish(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite // Return the number of pages still to be backed up as of the most recent // call to sqlite3_backup_step(). -func Xsqlite3_backup_remaining(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77707:16: */ +func Xsqlite3_backup_remaining(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78537:16: */ return int32((*Sqlite3_backup)(unsafe.Pointer(p)).FnRemaining) } // Return the total number of pages in the source database as of the most // recent call to sqlite3_backup_step(). -func Xsqlite3_backup_pagecount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77721:16: */ +func Xsqlite3_backup_pagecount(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78551:16: */ return int32((*Sqlite3_backup)(unsafe.Pointer(p)).FnPagecount) } @@ -100938,7 +101212,7 @@ func Xsqlite3_backup_pagecount(tls *libc.TLS, p uintptr) int32 { /* testdata/sql // It is assumed that the mutex associated with the BtShared object // corresponding to the source database is held when this function is // called. -func backupUpdate(tls *libc.TLS, p uintptr, iPage Pgno, aData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77743:29: */ +func backupUpdate(tls *libc.TLS, p uintptr, iPage Pgno, aData uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78573:29: */ for __ccgo := true; __ccgo; __ccgo = libc.AssignUintptr(&p, (*Sqlite3_backup)(unsafe.Pointer(p)).FpNext) != uintptr(0) { @@ -100959,7 +101233,7 @@ func backupUpdate(tls *libc.TLS, p uintptr, iPage Pgno, aData uintptr) { /* test } } -func Xsqlite3BackupUpdate(tls *libc.TLS, pBackup uintptr, iPage Pgno, aData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77768:21: */ +func Xsqlite3BackupUpdate(tls *libc.TLS, pBackup uintptr, iPage Pgno, aData uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78598:21: */ if pBackup != 0 { backupUpdate(tls, pBackup, iPage, aData) } @@ -100974,7 +101248,7 @@ func Xsqlite3BackupUpdate(tls *libc.TLS, pBackup uintptr, iPage Pgno, aData uint // It is assumed that the mutex associated with the BtShared object // corresponding to the source database is held when this function is // called. -func Xsqlite3BackupRestart(tls *libc.TLS, pBackup uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77783:21: */ +func Xsqlite3BackupRestart(tls *libc.TLS, pBackup uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78613:21: */ var p uintptr // Iterator variable for p = pBackup; p != 0; p = (*Sqlite3_backup)(unsafe.Pointer(p)).FpNext { @@ -100988,7 +101262,7 @@ func Xsqlite3BackupRestart(tls *libc.TLS, pBackup uintptr) { /* testdata/sqlite- // The size of file pTo may be reduced by this operation. If anything // goes wrong, the transaction on pTo is rolled back. If successful, the // transaction is committed before returning. -func Xsqlite3BtreeCopyFile(tls *libc.TLS, pTo uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77800:20: */ +func Xsqlite3BtreeCopyFile(tls *libc.TLS, pTo uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78630:20: */ bp := tls.Alloc(80) defer tls.Free(80) @@ -101082,7 +101356,7 @@ copy_finished: // Render a Mem object which is one of MEM_Int, MEM_Real, or MEM_IntReal // into a buffer. -func vdbeMemRenderNum(tls *libc.TLS, sz int32, zBuf uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:77958:13: */ +func vdbeMemRenderNum(tls *libc.TLS, sz int32, zBuf uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78788:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -101097,7 +101371,7 @@ func vdbeMemRenderNum(tls *libc.TLS, sz int32, zBuf uintptr, p uintptr) { /* tes Xsqlite3Int64ToText(tls, *(*I64)(unsafe.Pointer(bp + 8 /* x */)), zBuf) } else { Xsqlite3StrAccumInit(tls, bp+16, uintptr(0), zBuf, sz, 0) - Xsqlite3_str_appendf(tls, bp+16, ts+6228, + Xsqlite3_str_appendf(tls, bp+16, ts+6263, libc.VaList(bp, func() float64 { if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_IntReal != 0 { return float64(*(*I64)(unsafe.Pointer(p))) @@ -101120,7 +101394,7 @@ func vdbeMemRenderNum(tls *libc.TLS, sz int32, zBuf uintptr, p uintptr) { /* tes // SQLITE_OK is returned if the conversion is successful (or not required). // SQLITE_NOMEM may be returned if a malloc() fails during conversion // between formats. -func Xsqlite3VdbeChangeEncoding(tls *libc.TLS, pMem uintptr, desiredEnc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78051:20: */ +func Xsqlite3VdbeChangeEncoding(tls *libc.TLS, pMem uintptr, desiredEnc int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78881:20: */ var rc int32 if !(int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Str != 0) { @@ -101144,14 +101418,14 @@ func Xsqlite3VdbeChangeEncoding(tls *libc.TLS, pMem uintptr, desiredEnc int32) i // pMem->z into the new allocation. pMem must be either a string or // blob if bPreserve is true. If bPreserve is false, any prior content // in pMem->z is discarded. -func Xsqlite3VdbeMemGrow(tls *libc.TLS, pMem uintptr, n int32, bPreserve int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78090:36: */ +func Xsqlite3VdbeMemGrow(tls *libc.TLS, pMem uintptr, n int32, bPreserve int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78920:36: */ // If the bPreserve flag is set to true, then the memory cell must already // contain a valid string or blob value. if (*Mem)(unsafe.Pointer(pMem)).FszMalloc > 0 && bPreserve != 0 && (*Mem)(unsafe.Pointer(pMem)).Fz == (*Mem)(unsafe.Pointer(pMem)).FzMalloc { if (*Mem)(unsafe.Pointer(pMem)).Fdb != 0 { - (*Mem)(unsafe.Pointer(pMem)).Fz = libc.AssignPtrUintptr(pMem+24, Xsqlite3DbReallocOrFree(tls, (*Mem)(unsafe.Pointer(pMem)).Fdb, (*Mem)(unsafe.Pointer(pMem)).Fz, uint64(n))) + (*Mem)(unsafe.Pointer(pMem)).Fz = libc.AssignPtrUintptr(pMem+40, Xsqlite3DbReallocOrFree(tls, (*Mem)(unsafe.Pointer(pMem)).Fdb, (*Mem)(unsafe.Pointer(pMem)).Fz, uint64(n))) } else { (*Mem)(unsafe.Pointer(pMem)).FzMalloc = Xsqlite3Realloc(tls, (*Mem)(unsafe.Pointer(pMem)).Fz, uint64(n)) if (*Mem)(unsafe.Pointer(pMem)).FzMalloc == uintptr(0) { @@ -101185,7 +101459,7 @@ func Xsqlite3VdbeMemGrow(tls *libc.TLS, pMem uintptr, n int32, bPreserve int32) } (*Mem)(unsafe.Pointer(pMem)).Fz = (*Mem)(unsafe.Pointer(pMem)).FzMalloc - *(*U16)(unsafe.Pointer(pMem + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Dyn | MEM_Ephem | MEM_Static)) + *(*U16)(unsafe.Pointer(pMem + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Dyn | MEM_Ephem | MEM_Static)) return SQLITE_OK } @@ -101200,14 +101474,14 @@ func Xsqlite3VdbeMemGrow(tls *libc.TLS, pMem uintptr, n int32, bPreserve int32) // // Return SQLITE_OK on success or an error code (probably SQLITE_NOMEM) // if unable to complete the resizing. -func Xsqlite3VdbeMemClearAndResize(tls *libc.TLS, pMem uintptr, szNew int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78153:20: */ +func Xsqlite3VdbeMemClearAndResize(tls *libc.TLS, pMem uintptr, szNew int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:78983:20: */ if (*Mem)(unsafe.Pointer(pMem)).FszMalloc < szNew { return Xsqlite3VdbeMemGrow(tls, pMem, szNew, 0) } (*Mem)(unsafe.Pointer(pMem)).Fz = (*Mem)(unsafe.Pointer(pMem)).FzMalloc - *(*U16)(unsafe.Pointer(pMem + 8)) &= U16(MEM_Null | MEM_Int | MEM_Real | MEM_IntReal) + *(*U16)(unsafe.Pointer(pMem + 20)) &= U16(MEM_Null | MEM_Int | MEM_Real | MEM_IntReal) return SQLITE_OK } @@ -101218,14 +101492,14 @@ func Xsqlite3VdbeMemClearAndResize(tls *libc.TLS, pMem uintptr, szNew int32) int // to be a double-zero byte at an even byte boundary in order to // terminate a UTF16 string, even if the initial size of the buffer // is an odd number of bytes. -func vdbeMemAddTerminator(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78174:28: */ +func vdbeMemAddTerminator(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79004:28: */ if Xsqlite3VdbeMemGrow(tls, pMem, (*Mem)(unsafe.Pointer(pMem)).Fn+3, 1) != 0 { return SQLITE_NOMEM } *(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pMem)).Fz + uintptr((*Mem)(unsafe.Pointer(pMem)).Fn))) = int8(0) *(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pMem)).Fz + uintptr((*Mem)(unsafe.Pointer(pMem)).Fn+1))) = int8(0) *(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pMem)).Fz + uintptr((*Mem)(unsafe.Pointer(pMem)).Fn+2))) = int8(0) - *(*U16)(unsafe.Pointer(pMem + 8)) |= U16(MEM_Term) + *(*U16)(unsafe.Pointer(pMem + 20)) |= U16(MEM_Term) return SQLITE_OK } @@ -101233,7 +101507,7 @@ func vdbeMemAddTerminator(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlit // MEM.zMalloc, where it can be safely written. // // Return SQLITE_OK on success or SQLITE_NOMEM if malloc fails. -func Xsqlite3VdbeMemMakeWriteable(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78191:20: */ +func Xsqlite3VdbeMemMakeWriteable(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79021:20: */ if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Str|MEM_Blob) != 0 { if func() int32 { @@ -101251,14 +101525,14 @@ func Xsqlite3VdbeMemMakeWriteable(tls *libc.TLS, pMem uintptr) int32 { /* testda } } } - *(*U16)(unsafe.Pointer(pMem + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Ephem)) + *(*U16)(unsafe.Pointer(pMem + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Ephem)) return SQLITE_OK } // If the given Mem* has a zero-filled tail, turn it into an ordinary // blob stored in dynamically allocated space. -func Xsqlite3VdbeMemExpandBlob(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78215:20: */ +func Xsqlite3VdbeMemExpandBlob(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79045:20: */ var nByte int32 // Set nByte to the number of bytes required to store the expanded blob. @@ -101274,13 +101548,13 @@ func Xsqlite3VdbeMemExpandBlob(tls *libc.TLS, pMem uintptr) int32 { /* testdata/ } libc.Xmemset(tls, (*Mem)(unsafe.Pointer(pMem)).Fz+uintptr((*Mem)(unsafe.Pointer(pMem)).Fn), 0, uint64(*(*int32)(unsafe.Pointer(pMem)))) - *(*int32)(unsafe.Pointer(pMem + 12)) += *(*int32)(unsafe.Pointer(pMem)) - *(*U16)(unsafe.Pointer(pMem + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Zero | MEM_Term)) + *(*int32)(unsafe.Pointer(pMem + 16)) += *(*int32)(unsafe.Pointer(pMem)) + *(*U16)(unsafe.Pointer(pMem + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Zero | MEM_Term)) return SQLITE_OK } // Make sure the given Mem is \u0000 terminated. -func Xsqlite3VdbeMemNulTerminate(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78246:20: */ +func Xsqlite3VdbeMemNulTerminate(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79076:20: */ if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Term|MEM_Str) != MEM_Str { return SQLITE_OK // Nothing to do @@ -101302,7 +101576,7 @@ func Xsqlite3VdbeMemNulTerminate(tls *libc.TLS, pMem uintptr) int32 { /* testdat // sqlite3_value_text()), or for ensuring that values to be used as btree // keys are strings. In the former case a NULL pointer is returned the // user and the latter is an internal programming error. -func Xsqlite3VdbeMemStringify(tls *libc.TLS, pMem uintptr, enc U8, bForce U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78272:20: */ +func Xsqlite3VdbeMemStringify(tls *libc.TLS, pMem uintptr, enc U8, bForce U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79102:20: */ var nByte int32 = 32 if Xsqlite3VdbeMemClearAndResize(tls, pMem, nByte) != 0 { @@ -101314,9 +101588,9 @@ func Xsqlite3VdbeMemStringify(tls *libc.TLS, pMem uintptr, enc U8, bForce U8) in (*Mem)(unsafe.Pointer(pMem)).Fn = int32(libc.Xstrlen(tls, (*Mem)(unsafe.Pointer(pMem)).Fz) & uint64(0x3fffffff)) (*Mem)(unsafe.Pointer(pMem)).Fenc = U8(SQLITE_UTF8) - *(*U16)(unsafe.Pointer(pMem + 8)) |= U16(MEM_Str | MEM_Term) + *(*U16)(unsafe.Pointer(pMem + 20)) |= U16(MEM_Str | MEM_Term) if bForce != 0 { - *(*U16)(unsafe.Pointer(pMem + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int | MEM_Real | MEM_IntReal)) + *(*U16)(unsafe.Pointer(pMem + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int | MEM_Real | MEM_IntReal)) } Xsqlite3VdbeChangeEncoding(tls, pMem, int32(enc)) return SQLITE_OK @@ -101328,7 +101602,7 @@ func Xsqlite3VdbeMemStringify(tls *libc.TLS, pMem uintptr, enc U8, bForce U8) in // // Return SQLITE_ERROR if the finalizer reports an error. SQLITE_OK // otherwise. -func Xsqlite3VdbeMemFinalize(tls *libc.TLS, pMem uintptr, pFunc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78307:20: */ +func Xsqlite3VdbeMemFinalize(tls *libc.TLS, pMem uintptr, pFunc uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79137:20: */ bp := tls.Alloc(112) defer tls.Free(112) @@ -101343,6 +101617,7 @@ func Xsqlite3VdbeMemFinalize(tls *libc.TLS, pMem uintptr, pFunc uintptr) int32 { (*Sqlite3_context)(unsafe.Pointer(bp /* &ctx */)).FpOut = bp + 56 /* &t */ (*Sqlite3_context)(unsafe.Pointer(bp /* &ctx */)).FpMem = pMem (*Sqlite3_context)(unsafe.Pointer(bp /* &ctx */)).FpFunc = pFunc + (*Sqlite3_context)(unsafe.Pointer(bp /* &ctx */)).Fenc = (*Sqlite3)(unsafe.Pointer((*Mem)(unsafe.Pointer(bp + 56)).Fdb)).Fenc (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*FuncDef)(unsafe.Pointer(pFunc)).FxFinalize})).f(tls, bp /* &ctx */) // IMP: R-24505-23230 if (*Mem)(unsafe.Pointer(pMem)).FszMalloc > 0 { @@ -101358,7 +101633,7 @@ func Xsqlite3VdbeMemFinalize(tls *libc.TLS, pMem uintptr, pFunc uintptr) int32 { // // SQLITE_ERROR is returned if xValue() reports an error. SQLITE_OK // otherwise. -func Xsqlite3VdbeMemAggValue(tls *libc.TLS, pAccum uintptr, pOut uintptr, pFunc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78338:20: */ +func Xsqlite3VdbeMemAggValue(tls *libc.TLS, pAccum uintptr, pOut uintptr, pFunc uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79170:20: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -101369,6 +101644,7 @@ func Xsqlite3VdbeMemAggValue(tls *libc.TLS, pAccum uintptr, pOut uintptr, pFunc (*Sqlite3_context)(unsafe.Pointer(bp /* &ctx */)).FpOut = pOut (*Sqlite3_context)(unsafe.Pointer(bp /* &ctx */)).FpMem = pAccum (*Sqlite3_context)(unsafe.Pointer(bp /* &ctx */)).FpFunc = pFunc + (*Sqlite3_context)(unsafe.Pointer(bp /* &ctx */)).Fenc = (*Sqlite3)(unsafe.Pointer((*Mem)(unsafe.Pointer(pAccum)).Fdb)).Fenc (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*FuncDef)(unsafe.Pointer(pFunc)).FxValue})).f(tls, bp /* &ctx */) return (*Sqlite3_context)(unsafe.Pointer(bp /* &ctx */)).FisError } @@ -101380,7 +101656,7 @@ func Xsqlite3VdbeMemAggValue(tls *libc.TLS, pAccum uintptr, pOut uintptr, pFunc // This is a helper routine for sqlite3VdbeMemSetNull() and // for sqlite3VdbeMemRelease(). Use those other routines as the // entry point for releasing Mem resources. -func vdbeMemClearExternAndSetNull(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78363:29: */ +func vdbeMemClearExternAndSetNull(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79197:29: */ if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_Agg != 0 { Xsqlite3VdbeMemFinalize(tls, p, *(*uintptr)(unsafe.Pointer(p))) @@ -101399,7 +101675,7 @@ func vdbeMemClearExternAndSetNull(tls *libc.TLS, p uintptr) { /* testdata/sqlite // This is a helper routine invoked by sqlite3VdbeMemRelease() in // the unusual case where there really is memory in p that needs // to be freed. -func vdbeMemClear(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78386:29: */ +func vdbeMemClear(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79220:29: */ if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 { vdbeMemClearExternAndSetNull(tls, p) } @@ -101418,17 +101694,26 @@ func vdbeMemClear(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-33 // // Use sqlite3VdbeMemSetNull() to release just the Mem.xDel space // prior to inserting new content into the Mem. -func Xsqlite3VdbeMemRelease(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78407:21: */ +func Xsqlite3VdbeMemRelease(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79241:21: */ if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 || (*Mem)(unsafe.Pointer(p)).FszMalloc != 0 { vdbeMemClear(tls, p) } } +// Like sqlite3VdbeMemRelease() but faster for cases where we +// know in advance that the Mem is not MEM_Dyn or MEM_Agg. +func Xsqlite3VdbeMemReleaseMalloc(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79251:21: */ + + if (*Mem)(unsafe.Pointer(p)).FszMalloc != 0 { + vdbeMemClear(tls, p) + } +} + // Convert a 64-bit IEEE double into a 64-bit signed integer. // If the double is out of range of a 64-bit signed integer then // return the closest available 64-bit signed integer. -func doubleToInt64(tls *libc.TLS, r float64) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78419:28: */ +func doubleToInt64(tls *libc.TLS, r float64) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79261:28: */ if r <= float64(minInt) { return minInt @@ -101440,8 +101725,8 @@ func doubleToInt64(tls *libc.TLS, r float64) I64 { /* testdata/sqlite-amalgamati return I64(0) } -var maxInt I64 = int64(0xffffffff) | I64(int64(0x7fffffff))<<32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78431:20 */ -var minInt I64 = int64(-1) - (int64(0xffffffff) | I64(int64(0x7fffffff))<<32) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78432:20 */ +var maxInt I64 = int64(0xffffffff) | I64(int64(0x7fffffff))<<32 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79273:20 */ +var minInt I64 = int64(-1) - (int64(0xffffffff) | I64(int64(0x7fffffff))<<32) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79274:20 */ // Return some kind of integer value which is the best we can do // at representing the value that *pMem describes as an integer. @@ -101452,7 +101737,7 @@ var minInt I64 = int64(-1) - (int64(0xffffffff) | I64(int64(0x7fffffff))<<32) /* // an SQL-NULL value, return 0. // // If pMem represents a string value, its encoding might be changed. -func memIntValue(tls *libc.TLS, pMem uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78455:28: */ +func memIntValue(tls *libc.TLS, pMem uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79297:28: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -101461,7 +101746,7 @@ func memIntValue(tls *libc.TLS, pMem uintptr) I64 { /* testdata/sqlite-amalgamat return *(*I64)(unsafe.Pointer(bp /* value */)) } -func Xsqlite3VdbeIntValue(tls *libc.TLS, pMem uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78460:20: */ +func Xsqlite3VdbeIntValue(tls *libc.TLS, pMem uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79302:20: */ var flags int32 flags = int32((*Mem)(unsafe.Pointer(pMem)).Fflags) @@ -101482,7 +101767,7 @@ func Xsqlite3VdbeIntValue(tls *libc.TLS, pMem uintptr) I64 { /* testdata/sqlite- // double. If pMem is already a double or an integer, return its // value. If it is a string or blob, try to convert it to a double. // If it is a NULL, return 0.0. -func memRealValue(tls *libc.TLS, pMem uintptr) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78484:31: */ +func memRealValue(tls *libc.TLS, pMem uintptr) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79326:31: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -101492,7 +101777,7 @@ func memRealValue(tls *libc.TLS, pMem uintptr) float64 { /* testdata/sqlite-amal return *(*float64)(unsafe.Pointer(bp /* val */)) } -func Xsqlite3VdbeRealValue(tls *libc.TLS, pMem uintptr) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78490:23: */ +func Xsqlite3VdbeRealValue(tls *libc.TLS, pMem uintptr) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79332:23: */ if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Real != 0 { return *(*float64)(unsafe.Pointer(pMem)) @@ -101510,7 +101795,7 @@ func Xsqlite3VdbeRealValue(tls *libc.TLS, pMem uintptr) float64 { /* testdata/sq // Return 1 if pMem represents true, and return 0 if pMem represents false. // Return the value ifNull if pMem is NULL. -func Xsqlite3VdbeBooleanValue(tls *libc.TLS, pMem uintptr, ifNull int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78511:20: */ +func Xsqlite3VdbeBooleanValue(tls *libc.TLS, pMem uintptr, ifNull int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79353:20: */ if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Int|MEM_IntReal) != 0 { return libc.Bool32(*(*I64)(unsafe.Pointer(pMem)) != int64(0)) @@ -101523,7 +101808,7 @@ func Xsqlite3VdbeBooleanValue(tls *libc.TLS, pMem uintptr, ifNull int32) int32 { // The MEM structure is already a MEM_Real. Try to also make it a // MEM_Int if we can. -func Xsqlite3VdbeIntegerAffinity(tls *libc.TLS, pMem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78522:21: */ +func Xsqlite3VdbeIntegerAffinity(tls *libc.TLS, pMem uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79364:21: */ var ix I64 ix = doubleToInt64(tls, *(*float64)(unsafe.Pointer(pMem))) @@ -101544,7 +101829,7 @@ func Xsqlite3VdbeIntegerAffinity(tls *libc.TLS, pMem uintptr) { /* testdata/sqli } // Convert pMem to type integer. Invalidate any prior representations. -func Xsqlite3VdbeMemIntegerify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78551:20: */ +func Xsqlite3VdbeMemIntegerify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79393:20: */ *(*I64)(unsafe.Pointer(pMem)) = Xsqlite3VdbeIntValue(tls, pMem) (*Mem)(unsafe.Pointer(pMem)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Int) @@ -101553,7 +101838,7 @@ func Xsqlite3VdbeMemIntegerify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/ // Convert pMem so that it is of type MEM_Real. // Invalidate any prior representations. -func Xsqlite3VdbeMemRealify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78566:20: */ +func Xsqlite3VdbeMemRealify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79408:20: */ *(*float64)(unsafe.Pointer(pMem)) = Xsqlite3VdbeRealValue(tls, pMem) (*Mem)(unsafe.Pointer(pMem)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Real) @@ -101568,7 +101853,7 @@ func Xsqlite3VdbeMemRealify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sql // For some versions of GCC on 32-bit machines, if you do the more obvious // comparison of "r1==(double)i" you sometimes get an answer of false even // though the r1 and (double)i values are bit-for-bit the same. -func Xsqlite3RealSameAsInt(tls *libc.TLS, r1 float64, i Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78585:20: */ +func Xsqlite3RealSameAsInt(tls *libc.TLS, r1 float64, i Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79427:20: */ bp := tls.Alloc(16) defer tls.Free(16) *(*float64)(unsafe.Pointer(bp)) = r1 @@ -101585,7 +101870,7 @@ func Xsqlite3RealSameAsInt(tls *libc.TLS, r1 float64, i Sqlite3_int64) int32 { / // Every effort is made to force the conversion, even if the input // is a string that does not look completely like a number. Convert // as much of the string as we can and ignore the rest. -func Xsqlite3VdbeMemNumerify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78600:20: */ +func Xsqlite3VdbeMemNumerify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79442:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -101603,7 +101888,7 @@ func Xsqlite3VdbeMemNumerify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sq } } - *(*U16)(unsafe.Pointer(pMem + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Str | MEM_Blob | MEM_Zero)) + *(*U16)(unsafe.Pointer(pMem + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Str | MEM_Blob | MEM_Zero)) return SQLITE_OK } @@ -101612,7 +101897,7 @@ func Xsqlite3VdbeMemNumerify(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sq // is forced. In other words, the value is converted into the desired // affinity even if that results in loss of data. This routine is // used (for example) to implement the SQL "cast()" operator. -func Xsqlite3VdbeMemCast(tls *libc.TLS, pMem uintptr, aff U8, encoding U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78633:20: */ +func Xsqlite3VdbeMemCast(tls *libc.TLS, pMem uintptr, aff U8, encoding U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79475:20: */ if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Null != 0 { return SQLITE_OK } @@ -101626,7 +101911,7 @@ func Xsqlite3VdbeMemCast(tls *libc.TLS, pMem uintptr, aff U8, encoding U8) int32 (*Mem)(unsafe.Pointer(pMem)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Blob) } } else { - *(*U16)(unsafe.Pointer(pMem + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_TypeMask & libc.CplInt32(MEM_Blob))) + *(*U16)(unsafe.Pointer(pMem + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_TypeMask & libc.CplInt32(MEM_Blob))) } break @@ -101652,10 +101937,10 @@ func Xsqlite3VdbeMemCast(tls *libc.TLS, pMem uintptr, aff U8, encoding U8) int32 default: { - *(*U16)(unsafe.Pointer(pMem + 8)) |= U16(int32((*Mem)(unsafe.Pointer(pMem)).Fflags) & MEM_Blob >> 3) + *(*U16)(unsafe.Pointer(pMem + 20)) |= U16(int32((*Mem)(unsafe.Pointer(pMem)).Fflags) & MEM_Blob >> 3) Xsqlite3ValueApplyAffinity(tls, pMem, uint8(SQLITE_AFF_TEXT), encoding) - *(*U16)(unsafe.Pointer(pMem + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int | MEM_Real | MEM_IntReal | MEM_Blob | MEM_Zero)) + *(*U16)(unsafe.Pointer(pMem + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int | MEM_Real | MEM_IntReal | MEM_Blob | MEM_Zero)) return Xsqlite3VdbeChangeEncoding(tls, pMem, int32(encoding)) } @@ -101666,7 +101951,7 @@ func Xsqlite3VdbeMemCast(tls *libc.TLS, pMem uintptr, aff U8, encoding U8) int32 // Initialize bulk memory to be a consistent Mem object. // // The minimum amount of initialization feasible is performed. -func Xsqlite3VdbeMemInit(tls *libc.TLS, pMem uintptr, db uintptr, flags U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78676:21: */ +func Xsqlite3VdbeMemInit(tls *libc.TLS, pMem uintptr, db uintptr, flags U16) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79518:21: */ (*Mem)(unsafe.Pointer(pMem)).Fflags = flags (*Mem)(unsafe.Pointer(pMem)).Fdb = db @@ -101683,7 +101968,7 @@ func Xsqlite3VdbeMemInit(tls *libc.TLS, pMem uintptr, db uintptr, flags U16) { / // Use this routine to reset the Mem prior to insert a new value. // // Use sqlite3VdbeMemRelease() to complete erase the Mem prior to abandoning it. -func Xsqlite3VdbeMemSetNull(tls *libc.TLS, pMem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78696:21: */ +func Xsqlite3VdbeMemSetNull(tls *libc.TLS, pMem uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79538:21: */ if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 { vdbeMemClearExternAndSetNull(tls, pMem) } else { @@ -101691,13 +101976,13 @@ func Xsqlite3VdbeMemSetNull(tls *libc.TLS, pMem uintptr) { /* testdata/sqlite-am } } -func Xsqlite3ValueSetNull(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78703:21: */ +func Xsqlite3ValueSetNull(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79545:21: */ Xsqlite3VdbeMemSetNull(tls, p) } // Delete any previous value and set the value to be a BLOB of length // n containing all zeros. -func Xsqlite3VdbeMemSetZeroBlob(tls *libc.TLS, pMem uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78712:21: */ +func Xsqlite3VdbeMemSetZeroBlob(tls *libc.TLS, pMem uintptr, n int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79554:21: */ Xsqlite3VdbeMemRelease(tls, pMem) (*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Blob | MEM_Zero) (*Mem)(unsafe.Pointer(pMem)).Fn = 0 @@ -101712,7 +101997,7 @@ func Xsqlite3VdbeMemSetZeroBlob(tls *libc.TLS, pMem uintptr, n int32) { /* testd // The pMem is known to contain content that needs to be destroyed prior // to a value change. So invoke the destructor, then set the value to // a 64-bit integer. -func vdbeReleaseAndSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78742:29: */ +func vdbeReleaseAndSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79584:29: */ Xsqlite3VdbeMemSetNull(tls, pMem) *(*I64)(unsafe.Pointer(pMem)) = val (*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Int) @@ -101720,7 +102005,7 @@ func vdbeReleaseAndSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* testdata/ // Delete any previous value and set the value stored in *pMem to val, // manifest type INTEGER. -func Xsqlite3VdbeMemSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78752:21: */ +func Xsqlite3VdbeMemSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79594:21: */ if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 { vdbeReleaseAndSetInt64(tls, pMem, val) } else { @@ -101730,13 +102015,13 @@ func Xsqlite3VdbeMemSetInt64(tls *libc.TLS, pMem uintptr, val I64) { /* testdata } // A no-op destructor -func Xsqlite3NoopDestructor(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78762:21: */ +func Xsqlite3NoopDestructor(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79604:21: */ _ = p } // Set the value stored in *pMem should already be a NULL. // Also store a pointer to go with it. -func Xsqlite3VdbeMemSetPointer(tls *libc.TLS, pMem uintptr, pPtr uintptr, zPType uintptr, xDestructor uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78768:21: */ +func Xsqlite3VdbeMemSetPointer(tls *libc.TLS, pMem uintptr, pPtr uintptr, zPType uintptr, xDestructor uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79610:21: */ vdbeMemClear(tls, pMem) *(*uintptr)(unsafe.Pointer(pMem)) = func() uintptr { @@ -101758,7 +102043,7 @@ func Xsqlite3VdbeMemSetPointer(tls *libc.TLS, pMem uintptr, pPtr uintptr, zPType // Delete any previous value and set the value stored in *pMem to val, // manifest type REAL. -func Xsqlite3VdbeMemSetDouble(tls *libc.TLS, pMem uintptr, val float64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78788:21: */ +func Xsqlite3VdbeMemSetDouble(tls *libc.TLS, pMem uintptr, val float64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79630:21: */ Xsqlite3VdbeMemSetNull(tls, pMem) if !(Xsqlite3IsNaN(tls, val) != 0) { *(*float64)(unsafe.Pointer(pMem)) = val @@ -101771,7 +102056,7 @@ func Xsqlite3VdbeMemSetDouble(tls *libc.TLS, pMem uintptr, val float64) { /* tes // // Return SQLITE_OK on success and SQLITE_NOMEM if a memory allocation // error occurs. -func Xsqlite3VdbeMemSetRowSet(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78815:20: */ +func Xsqlite3VdbeMemSetRowSet(tls *libc.TLS, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79657:20: */ var db uintptr = (*Mem)(unsafe.Pointer(pMem)).Fdb var p uintptr @@ -101788,7 +102073,7 @@ func Xsqlite3VdbeMemSetRowSet(tls *libc.TLS, pMem uintptr) int32 { /* testdata/s // Return true if the Mem object contains a TEXT or BLOB that is // too large - whose size exceeds SQLITE_MAX_LENGTH. -func Xsqlite3VdbeMemTooBig(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78833:20: */ +func Xsqlite3VdbeMemTooBig(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79675:20: */ if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Str|MEM_Blob) != 0 { var n int32 = (*Mem)(unsafe.Pointer(p)).Fn @@ -101804,13 +102089,13 @@ func Xsqlite3VdbeMemTooBig(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite- // pTo are freed. The pFrom->z field is not duplicated. If // pFrom->z is used, then pTo->z points to the same thing as pFrom->z // and flags gets srcType (either MEM_Ephem or MEM_Static). -func vdbeClrCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, eType int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78889:29: */ +func vdbeClrCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, eType int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79731:29: */ vdbeMemClearExternAndSetNull(tls, pTo) Xsqlite3VdbeMemShallowCopy(tls, pTo, pFrom, eType) } -func Xsqlite3VdbeMemShallowCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, srcType int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78894:21: */ +func Xsqlite3VdbeMemShallowCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, srcType int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79736:21: */ if int32((*Mem)(unsafe.Pointer(pTo)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 { vdbeClrCopy(tls, pTo, pFrom, srcType) @@ -101818,25 +102103,25 @@ func Xsqlite3VdbeMemShallowCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr, srcTy } libc.Xmemcpy(tls, pTo, pFrom, uint64(uintptr(0)+24)) if int32((*Mem)(unsafe.Pointer(pFrom)).Fflags)&MEM_Static == 0 { - *(*U16)(unsafe.Pointer(pTo + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Dyn | MEM_Static | MEM_Ephem)) + *(*U16)(unsafe.Pointer(pTo + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Dyn | MEM_Static | MEM_Ephem)) - *(*U16)(unsafe.Pointer(pTo + 8)) |= U16(srcType) + *(*U16)(unsafe.Pointer(pTo + 20)) |= U16(srcType) } } // Make a full copy of pFrom into pTo. Prior contents of pTo are // freed before the copy is made. -func Xsqlite3VdbeMemCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78910:20: */ +func Xsqlite3VdbeMemCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79752:20: */ var rc int32 = SQLITE_OK if int32((*Mem)(unsafe.Pointer(pTo)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 { vdbeMemClearExternAndSetNull(tls, pTo) } libc.Xmemcpy(tls, pTo, pFrom, uint64(uintptr(0)+24)) - *(*U16)(unsafe.Pointer(pTo + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Dyn)) + *(*U16)(unsafe.Pointer(pTo + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Dyn)) if int32((*Mem)(unsafe.Pointer(pTo)).Fflags)&(MEM_Str|MEM_Blob) != 0 { if 0 == int32((*Mem)(unsafe.Pointer(pFrom)).Fflags)&MEM_Static { - *(*U16)(unsafe.Pointer(pTo + 8)) |= U16(MEM_Ephem) + *(*U16)(unsafe.Pointer(pTo + 20)) |= U16(MEM_Ephem) rc = Xsqlite3VdbeMemMakeWriteable(tls, pTo) } } @@ -101848,7 +102133,7 @@ func Xsqlite3VdbeMemCopy(tls *libc.TLS, pTo uintptr, pFrom uintptr) int32 { /* t // freed. If pFrom contains ephemeral data, a copy is made. // // pFrom contains an SQL NULL when this routine returns. -func Xsqlite3VdbeMemMove(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78933:21: */ +func Xsqlite3VdbeMemMove(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79775:21: */ Xsqlite3VdbeMemRelease(tls, pTo) libc.Xmemcpy(tls, pTo, pFrom, uint64(unsafe.Sizeof(Mem{}))) @@ -101869,10 +102154,17 @@ func Xsqlite3VdbeMemMove(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* testdat // stored without allocating memory, then it is. If a memory allocation // is required to store the string, then value of pMem is unchanged. In // either case, SQLITE_TOOBIG is returned. -func Xsqlite3VdbeMemSetStr(tls *libc.TLS, pMem uintptr, z uintptr, n I64, enc U8, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:78959:20: */ - var nByte I64 = n // New value for pMem->n - var iLimit int32 // Maximum allowed string or blob size - var flags U16 = U16(0) // New value for pMem->flags +// +// The "enc" parameter is the text encoding for the string, or zero +// to store a blob. +// +// If n is negative, then the string consists of all bytes up to but +// excluding the first zero character. The n parameter must be +// non-negative for blobs. +func Xsqlite3VdbeMemSetStr(tls *libc.TLS, pMem uintptr, z uintptr, n I64, enc U8, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79808:20: */ + var nByte I64 = n // New value for pMem->n + var iLimit int32 // Maximum allowed string or blob size + var flags U16 // New value for pMem->flags // If z is a NULL pointer, set pMem to contain an SQL NULL. if !(z != 0) { @@ -101885,12 +102177,6 @@ func Xsqlite3VdbeMemSetStr(tls *libc.TLS, pMem uintptr, z uintptr, n I64, enc U8 } else { iLimit = SQLITE_MAX_LENGTH } - flags = func() uint16 { - if int32(enc) == 0 { - return uint16(MEM_Blob) - } - return uint16(MEM_Str) - }() if nByte < int64(0) { if int32(enc) == SQLITE_UTF8 { @@ -101899,7 +102185,23 @@ func Xsqlite3VdbeMemSetStr(tls *libc.TLS, pMem uintptr, z uintptr, n I64, enc U8 for nByte = int64(0); nByte <= I64(iLimit) && int32(*(*int8)(unsafe.Pointer(z + uintptr(nByte))))|int32(*(*int8)(unsafe.Pointer(z + uintptr(nByte+int64(1))))) != 0; nByte = nByte + int64(2) { } } - flags = U16(int32(flags) | MEM_Term) + flags = U16(MEM_Str | MEM_Term) + } else if int32(enc) == 0 { + flags = U16(MEM_Blob) + enc = U8(SQLITE_UTF8) + } else { + flags = U16(MEM_Str) + } + if nByte > I64(iLimit) { + if xDel != 0 && xDel != libc.UintptrFromInt32(-1) { + if xDel == *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3OomClear})) { + Xsqlite3DbFree(tls, (*Mem)(unsafe.Pointer(pMem)).Fdb, z) + } else { + (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{xDel})).f(tls, z) + } + } + Xsqlite3VdbeMemSetNull(tls, pMem) + return Xsqlite3ErrorToParser(tls, (*Mem)(unsafe.Pointer(pMem)).Fdb, SQLITE_TOOBIG) } // The following block sets the new values of Mem.z and Mem.xDel. It @@ -101915,9 +102217,6 @@ func Xsqlite3VdbeMemSetStr(tls *libc.TLS, pMem uintptr, z uintptr, n I64, enc U8 return int64(2) }() } - if nByte > I64(iLimit) { - return Xsqlite3ErrorToParser(tls, (*Mem)(unsafe.Pointer(pMem)).Fdb, SQLITE_TOOBIG) - } if Xsqlite3VdbeMemClearAndResize(tls, pMem, func() int32 { if nAlloc > int64(32) { @@ -101931,9 +102230,7 @@ func Xsqlite3VdbeMemSetStr(tls *libc.TLS, pMem uintptr, z uintptr, n I64, enc U8 } else { Xsqlite3VdbeMemRelease(tls, pMem) (*Mem)(unsafe.Pointer(pMem)).Fz = z - if xDel == *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr) uintptr - }{Xsqlite3OomFault})) { + if xDel == *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3OomClear})) { (*Mem)(unsafe.Pointer(pMem)).FzMalloc = (*Mem)(unsafe.Pointer(pMem)).Fz (*Mem)(unsafe.Pointer(pMem)).FszMalloc = Xsqlite3DbMallocSize(tls, (*Mem)(unsafe.Pointer(pMem)).Fdb, (*Mem)(unsafe.Pointer(pMem)).FzMalloc) } else { @@ -101949,23 +102246,12 @@ func Xsqlite3VdbeMemSetStr(tls *libc.TLS, pMem uintptr, z uintptr, n I64, enc U8 (*Mem)(unsafe.Pointer(pMem)).Fn = int32(nByte & int64(0x7fffffff)) (*Mem)(unsafe.Pointer(pMem)).Fflags = flags - if enc != 0 { - (*Mem)(unsafe.Pointer(pMem)).Fenc = enc - } else if (*Mem)(unsafe.Pointer(pMem)).Fdb == uintptr(0) { - (*Mem)(unsafe.Pointer(pMem)).Fenc = U8(SQLITE_UTF8) - } else { - - (*Mem)(unsafe.Pointer(pMem)).Fenc = (*Sqlite3)(unsafe.Pointer((*Mem)(unsafe.Pointer(pMem)).Fdb)).Fenc - } + (*Mem)(unsafe.Pointer(pMem)).Fenc = enc if int32(enc) > SQLITE_UTF8 && Xsqlite3VdbeMemHandleBom(tls, pMem) != 0 { return SQLITE_NOMEM } - if nByte > I64(iLimit) { - return Xsqlite3ErrorToParser(tls, (*Mem)(unsafe.Pointer(pMem)).Fdb, SQLITE_TOOBIG) - } - return SQLITE_OK } @@ -101982,11 +102268,11 @@ func Xsqlite3VdbeMemSetStr(tls *libc.TLS, pMem uintptr, z uintptr, n I64, enc U8 // // If this routine fails for any reason (malloc returns NULL or unable // to read from the disk) then the pMem is left in an inconsistent state. -func Xsqlite3VdbeMemFromBtree(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79068:20: */ +func Xsqlite3VdbeMemFromBtree(tls *libc.TLS, pCur uintptr, offset U32, amt U32, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79918:20: */ var rc int32 (*Mem)(unsafe.Pointer(pMem)).Fflags = U16(MEM_Null) if Xsqlite3BtreeMaxRecordSize(tls, pCur) < Sqlite3_int64(offset+amt) { - return Xsqlite3CorruptError(tls, 79077) + return Xsqlite3CorruptError(tls, 79927) } if SQLITE_OK == libc.AssignInt32(&rc, Xsqlite3VdbeMemClearAndResize(tls, pMem, int32(amt+U32(1)))) { rc = Xsqlite3BtreePayload(tls, pCur, offset, amt, (*Mem)(unsafe.Pointer(pMem)).Fz) @@ -102001,7 +102287,7 @@ func Xsqlite3VdbeMemFromBtree(tls *libc.TLS, pCur uintptr, offset U32, amt U32, return rc } -func Xsqlite3VdbeMemFromBtreeZeroOffset(tls *libc.TLS, pCur uintptr, amt U32, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79091:20: */ +func Xsqlite3VdbeMemFromBtreeZeroOffset(tls *libc.TLS, pCur uintptr, amt U32, pMem uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79941:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -102026,7 +102312,7 @@ func Xsqlite3VdbeMemFromBtreeZeroOffset(tls *libc.TLS, pCur uintptr, amt U32, pM // The pVal argument is known to be a value other than NULL. // Convert it into a string with encoding enc and return a pointer // to a zero-terminated version of that string. -func valueToText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79123:35: */ +func valueToText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:79973:35: */ if int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fflags)&(MEM_Blob|MEM_Str) != 0 { if func() int32 { @@ -102037,7 +102323,7 @@ func valueToText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* testdata/sqli }() != 0 { return uintptr(0) } - *(*U16)(unsafe.Pointer(pVal + 8)) |= U16(MEM_Str) + *(*U16)(unsafe.Pointer(pVal + 20)) |= U16(MEM_Str) if int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fenc) != int32(enc)&libc.CplInt32(SQLITE_UTF16_ALIGNED) { Xsqlite3VdbeChangeEncoding(tls, pVal, int32(enc)&libc.CplInt32(SQLITE_UTF16_ALIGNED)) } @@ -102071,7 +102357,7 @@ func valueToText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* testdata/sqli // (2006-02-16:) The enc value can be or-ed with SQLITE_UTF16_ALIGNED. // If that is the case, then the result must be aligned on an even byte // boundary. -func Xsqlite3ValueText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79166:27: */ +func Xsqlite3ValueText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80016:27: */ if !(pVal != 0) { return uintptr(0) } @@ -102087,7 +102373,7 @@ func Xsqlite3ValueText(tls *libc.TLS, pVal uintptr, enc U8) uintptr { /* testdat } // Create a new sqlite3_value object. -func Xsqlite3ValueNew(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79184:30: */ +func Xsqlite3ValueNew(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80034:30: */ var p uintptr = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Mem{}))) if p != 0 { (*Mem)(unsafe.Pointer(p)).Fflags = U16(MEM_Null) @@ -102104,7 +102390,7 @@ type ValueNewStat4Ctx = struct { FppRec uintptr FiVal int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79197:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80047:1 */ // Allocate and return a pointer to a new sqlite3_value object. If // the second argument to this function is NULL, the object is allocated @@ -102115,7 +102401,7 @@ type ValueNewStat4Ctx = struct { // already been allocated, allocate the UnpackedRecord structure that // that function will return to its caller here. Then return a pointer to // an sqlite3_value within the UnpackedRecord.a[] array. -func valueNew(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79215:22: */ +func valueNew(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80065:22: */ if p != 0 { var pRec uintptr = *(*uintptr)(unsafe.Pointer((*ValueNewStat4Ctx)(unsafe.Pointer(p)).FppRec)) @@ -102156,9 +102442,9 @@ func valueNew(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite // The expression object indicated by the second argument is guaranteed // to be a scalar SQL function. If // -// * all function arguments are SQL literals, -// * one of the SQLITE_FUNC_CONSTANT or _SLOCHNG function flags is set, and -// * the SQLITE_FUNC_NEEDCOLL function flag is not set, +// - all function arguments are SQL literals, +// - one of the SQLITE_FUNC_CONSTANT or _SLOCHNG function flags is set, and +// - the SQLITE_FUNC_NEEDCOLL function flag is not set, // // then this routine attempts to invoke the SQL function. Assuming no // error occurs, output parameter (*ppVal) is set to point to a value @@ -102171,7 +102457,7 @@ func valueNew(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite // If the conditions above are not met, this function returns SQLITE_OK // and sets (*ppVal) to NULL. Or, if an error occurs, (*ppVal) is set to // NULL and an SQLite error code returned. -func valueFromFunction(tls *libc.TLS, db uintptr, p uintptr, enc U8, aff U8, ppVal uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79277:12: */ +func valueFromFunction(tls *libc.TLS, db uintptr, p uintptr, enc U8, aff U8, ppVal uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80127:12: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -102254,6 +102540,7 @@ __9: libc.Xmemset(tls, bp+8, 0, uint64(unsafe.Sizeof(Sqlite3_context{}))) (*Sqlite3_context)(unsafe.Pointer(bp + 8 /* &ctx */)).FpOut = pVal (*Sqlite3_context)(unsafe.Pointer(bp + 8 /* &ctx */)).FpFunc = pFunc + (*Sqlite3_context)(unsafe.Pointer(bp + 8 /* &ctx */)).Fenc = (*Sqlite3)(unsafe.Pointer(db)).Fenc (*struct { f func(*libc.TLS, uintptr, int32, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*FuncDef)(unsafe.Pointer(pFunc)).FxSFunc})).f(tls, bp+8 /* &ctx */, nVal, apVal) @@ -102261,7 +102548,7 @@ __9: goto __10 } rc = (*Sqlite3_context)(unsafe.Pointer(bp + 8 /* &ctx */)).FisError - Xsqlite3ErrorMsg(tls, (*ValueNewStat4Ctx)(unsafe.Pointer(pCtx)).FpParse, ts+4444, libc.VaList(bp, Xsqlite3_value_text(tls, pVal))) + Xsqlite3ErrorMsg(tls, (*ValueNewStat4Ctx)(unsafe.Pointer(pCtx)).FpParse, ts+4479, libc.VaList(bp, Xsqlite3_value_text(tls, pVal))) goto __11 __10: Xsqlite3ValueApplyAffinity(tls, pVal, aff, uint8(SQLITE_UTF8)) @@ -102317,7 +102604,7 @@ __14: // has been allocated, it is freed before returning. Or, if pCtx is not // NULL, it is assumed that the caller will free any allocated object // in all cases. -func valueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc U8, affinity U8, ppVal uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79373:12: */ +func valueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc U8, affinity U8, ppVal uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80225:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -102366,8 +102653,8 @@ __3: if !(*(*uintptr)(unsafe.Pointer(ppVal)) != 0) { goto __5 } - Xsqlite3VdbeMemCast(tls, *(*uintptr)(unsafe.Pointer(ppVal)), aff, uint8(SQLITE_UTF8)) - Xsqlite3ValueApplyAffinity(tls, *(*uintptr)(unsafe.Pointer(ppVal)), affinity, uint8(SQLITE_UTF8)) + Xsqlite3VdbeMemCast(tls, *(*uintptr)(unsafe.Pointer(ppVal)), aff, enc) + Xsqlite3ValueApplyAffinity(tls, *(*uintptr)(unsafe.Pointer(ppVal)), affinity, enc) __5: ; return rc @@ -102383,7 +102670,7 @@ __4: pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft op = int32((*Expr)(unsafe.Pointer(pExpr)).Fop) negInt = -1 - zNeg = ts + 6235 /* "-" */ + zNeg = ts + 6270 /* "-" */ __6: ; @@ -102403,16 +102690,14 @@ __9: Xsqlite3VdbeMemSetInt64(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* pVal */)), I64(*(*int32)(unsafe.Pointer(pExpr + 8)))*I64(negInt)) goto __11 __10: - zVal = Xsqlite3MPrintf(tls, db, ts+6237, libc.VaList(bp, zNeg, *(*uintptr)(unsafe.Pointer(pExpr + 8)))) + zVal = Xsqlite3MPrintf(tls, db, ts+6272, libc.VaList(bp, zNeg, *(*uintptr)(unsafe.Pointer(pExpr + 8)))) if !(zVal == uintptr(0)) { goto __12 } goto no_mem __12: ; - Xsqlite3ValueSetStr(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* pVal */)), -1, zVal, uint8(SQLITE_UTF8), *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr) uintptr - }{Xsqlite3OomFault}))) + Xsqlite3ValueSetStr(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* pVal */)), -1, zVal, uint8(SQLITE_UTF8), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3OomClear}))) __11: ; if !((op == TK_INTEGER || op == TK_FLOAT) && int32(affinity) == SQLITE_AFF_BLOB) { @@ -102429,7 +102714,7 @@ __14: goto __15 } - *(*U16)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)) + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Str)) + *(*U16)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 16)) + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Str)) __15: ; if !(int32(enc) != SQLITE_UTF8) { @@ -102500,9 +102785,7 @@ __29: nVal = Xsqlite3Strlen30(tls, zVal) - 1 Xsqlite3VdbeMemSetStr(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* pVal */)), Xsqlite3HexToBlob(tls, db, zVal, nVal), int64(nVal/2), - uint8(0), *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr) uintptr - }{Xsqlite3OomFault}))) + uint8(0), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3OomClear}))) goto __28 __27: if !(op == TK_FUNCTION && pCtx != uintptr(0)) { @@ -102565,7 +102848,7 @@ __35: // a pointer written to *ppVal. The caller is responsible for deallocating // the value by passing it to sqlite3ValueFree() later on. If the expression // cannot be converted to a value, then *ppVal is set to NULL. -func Xsqlite3ValueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc U8, affinity U8, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79528:20: */ +func Xsqlite3ValueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc U8, affinity U8, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80380:20: */ if pExpr != 0 { return valueFromExpr(tls, db, pExpr, enc, affinity, ppVal, uintptr(0)) } @@ -102580,15 +102863,15 @@ func Xsqlite3ValueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc U8, aff // // A value is extracted in the following cases: // -// * (pExpr==0). In this case the value is assumed to be an SQL NULL, +// - (pExpr==0). In this case the value is assumed to be an SQL NULL, // -// * The expression is a bound variable, and this is a reprepare, or +// - The expression is a bound variable, and this is a reprepare, or // -// * The expression is a literal value. +// - The expression is a literal value. // // On success, *ppVal is made to point to the extracted value. The caller // is responsible for ensuring that the value is eventually freed. -func stat4ValueFromExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr, affinity U8, pAlloc uintptr, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79557:12: */ +func stat4ValueFromExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr, affinity U8, pAlloc uintptr, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80409:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -102632,12 +102915,12 @@ func stat4ValueFromExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr, affinity U // record starting with field iVal (fields are numbered from left to // right starting with 0). A single field is populated if: // -// * (pExpr==0). In this case the value is assumed to be an SQL NULL, +// - (pExpr==0). In this case the value is assumed to be an SQL NULL, // -// * The expression is a bound variable, and this is a reprepare, or +// - The expression is a bound variable, and this is a reprepare, or // -// * The sqlite3ValueFromExpr() function is able to extract a value -// from the expression (i.e. the expression is a literal value). +// - The sqlite3ValueFromExpr() function is able to extract a value +// from the expression (i.e. the expression is a literal value). // // Or, if pExpr is a TK_VECTOR, one field is populated for each of the // vector components that match either of the two latter criteria listed @@ -102656,7 +102939,7 @@ func stat4ValueFromExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr, affinity U // Unless an error is encountered, SQLITE_OK is returned. It is not an // error if a value cannot be extracted from pExpr. If an error does // occur, an SQLite error code is returned. -func Xsqlite3Stat4ProbeSetValue(tls *libc.TLS, pParse uintptr, pIdx uintptr, ppRec uintptr, pExpr uintptr, nElem int32, iVal int32, pnExtract uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79632:20: */ +func Xsqlite3Stat4ProbeSetValue(tls *libc.TLS, pParse uintptr, pIdx uintptr, ppRec uintptr, pExpr uintptr, nElem int32, iVal int32, pnExtract uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80484:20: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -102701,7 +102984,7 @@ func Xsqlite3Stat4ProbeSetValue(tls *libc.TLS, pParse uintptr, pIdx uintptr, ppR // (e.g. OOM), return SQLITE_OK and set *ppVal to NULL. Or, if an error // does occur, return an SQLite error code. The final value of *ppVal // is undefined in this case. -func Xsqlite3Stat4ValueFromExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr, affinity U8, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79677:20: */ +func Xsqlite3Stat4ValueFromExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr, affinity U8, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80529:20: */ return stat4ValueFromExpr(tls, pParse, pExpr, affinity, uintptr(0), ppVal) } @@ -102711,7 +102994,7 @@ func Xsqlite3Stat4ValueFromExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr, af // // If *ppVal is initially NULL then the caller is responsible for // ensuring that the value written into *ppVal is eventually freed. -func Xsqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iCol int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79694:20: */ +func Xsqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iCol int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80546:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -102732,7 +103015,7 @@ func Xsqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iC return Xsqlite3GetVarint32(tls, a, bp) }()) if *(*int32)(unsafe.Pointer(bp)) > nRec || iHdr >= *(*int32)(unsafe.Pointer(bp)) { - return Xsqlite3CorruptError(tls, 79712) + return Xsqlite3CorruptError(tls, 80564) } iField = *(*int32)(unsafe.Pointer(bp /* nHdr */)) for i = 0; i <= iCol; i++ { @@ -102747,14 +103030,14 @@ func Xsqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iC }()) if iHdr > *(*int32)(unsafe.Pointer(bp)) { - return Xsqlite3CorruptError(tls, 79718) + return Xsqlite3CorruptError(tls, 80570) } szField = int32(Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp + 4 /* t */)))) iField = iField + szField } if iField > nRec { - return Xsqlite3CorruptError(tls, 79724) + return Xsqlite3CorruptError(tls, 80576) } if pMem == uintptr(0) { pMem = libc.AssignPtrUintptr(ppVal, Xsqlite3ValueNew(tls, db)) @@ -102770,7 +103053,7 @@ func Xsqlite3Stat4Column(tls *libc.TLS, db uintptr, pRec uintptr, nRec int32, iC // Unless it is NULL, the argument must be an UnpackedRecord object returned // by an earlier call to sqlite3Stat4ProbeSetValue(). This call deletes // the object. -func Xsqlite3Stat4ProbeFree(tls *libc.TLS, pRec uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79739:21: */ +func Xsqlite3Stat4ProbeFree(tls *libc.TLS, pRec uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80591:21: */ if pRec != 0 { var i int32 var nCol int32 = int32((*KeyInfo)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pRec)).FpKeyInfo)).FnAllField) @@ -102785,14 +103068,14 @@ func Xsqlite3Stat4ProbeFree(tls *libc.TLS, pRec uintptr) { /* testdata/sqlite-am } // Change the string value of an sqlite3_value object -func Xsqlite3ValueSetStr(tls *libc.TLS, v uintptr, n int32, z uintptr, enc U8, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79757:21: */ +func Xsqlite3ValueSetStr(tls *libc.TLS, v uintptr, n int32, z uintptr, enc U8, xDel uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80609:21: */ if v != 0 { Xsqlite3VdbeMemSetStr(tls, v, z, int64(n), enc, xDel) } } // Free an sqlite3_value object -func Xsqlite3ValueFree(tls *libc.TLS, v uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79770:21: */ +func Xsqlite3ValueFree(tls *libc.TLS, v uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80622:21: */ if !(v != 0) { return } @@ -102803,14 +103086,14 @@ func Xsqlite3ValueFree(tls *libc.TLS, v uintptr) { /* testdata/sqlite-amalgamati // The sqlite3ValueBytes() routine returns the number of bytes in the // sqlite3_value object assuming that it uses the encoding "enc". // The valueBytes() routine is a helper function. -func valueBytes(tls *libc.TLS, pVal uintptr, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79781:28: */ +func valueBytes(tls *libc.TLS, pVal uintptr, enc U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80633:28: */ if valueToText(tls, pVal, enc) != uintptr(0) { return (*Sqlite3_value)(unsafe.Pointer(pVal)).Fn } return 0 } -func Xsqlite3ValueBytes(tls *libc.TLS, pVal uintptr, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79784:20: */ +func Xsqlite3ValueBytes(tls *libc.TLS, pVal uintptr, enc U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80636:20: */ var p uintptr = pVal if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_Str != 0 && int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fenc) == int32(enc) { @@ -102830,14 +103113,14 @@ func Xsqlite3ValueBytes(tls *libc.TLS, pVal uintptr, enc U8) int32 { /* testdata } // Create a new virtual database engine. -func Xsqlite3VdbeCreate(tls *libc.TLS, pParse uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79827:21: */ +func Xsqlite3VdbeCreate(tls *libc.TLS, pParse uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80679:21: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var p uintptr p = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(Vdbe{}))) if p == uintptr(0) { return uintptr(0) } - libc.Xmemset(tls, p+144, 0, uint64(unsafe.Sizeof(Vdbe{}))-uint64(uintptr(0)+144)) + libc.Xmemset(tls, p+136, 0, uint64(unsafe.Sizeof(Vdbe{}))-uint64(uintptr(0)+136)) (*Vdbe)(unsafe.Pointer(p)).Fdb = db if (*Sqlite3)(unsafe.Pointer(db)).FpVdbe != 0 { (*Vdbe1)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FpVdbe)).FpPrev = p @@ -102845,7 +103128,7 @@ func Xsqlite3VdbeCreate(tls *libc.TLS, pParse uintptr) uintptr { /* testdata/sql (*Vdbe)(unsafe.Pointer(p)).FpNext = (*Sqlite3)(unsafe.Pointer(db)).FpVdbe (*Vdbe)(unsafe.Pointer(p)).FpPrev = uintptr(0) (*Sqlite3)(unsafe.Pointer(db)).FpVdbe = p - (*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic = U32(VDBE_MAGIC_INIT) + (*Vdbe)(unsafe.Pointer(p)).FpParse = pParse (*Parse)(unsafe.Pointer(pParse)).FpVdbe = p @@ -102854,12 +103137,12 @@ func Xsqlite3VdbeCreate(tls *libc.TLS, pParse uintptr) uintptr { /* testdata/sql } // Return the Parse object that owns a Vdbe object. -func Xsqlite3VdbeParser(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79854:22: */ +func Xsqlite3VdbeParser(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80706:22: */ return (*Vdbe)(unsafe.Pointer(p)).FpParse } // Change the error string stored in Vdbe.zErrMsg -func Xsqlite3VdbeError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79861:21: */ +func Xsqlite3VdbeError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80713:21: */ var ap Va_list _ = ap Xsqlite3DbFree(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg) @@ -102869,7 +103152,7 @@ func Xsqlite3VdbeError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { } // Remember the SQL string for a prepared statement. -func Xsqlite3VdbeSetSql(tls *libc.TLS, p uintptr, z uintptr, n int32, prepFlags U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79872:21: */ +func Xsqlite3VdbeSetSql(tls *libc.TLS, p uintptr, z uintptr, n int32, prepFlags U8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80724:21: */ if p == uintptr(0) { return } @@ -102882,7 +103165,7 @@ func Xsqlite3VdbeSetSql(tls *libc.TLS, p uintptr, z uintptr, n int32, prepFlags } // Swap all content between two VDBE structures. -func Xsqlite3VdbeSwap(tls *libc.TLS, pA uintptr, pB uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79922:21: */ +func Xsqlite3VdbeSwap(tls *libc.TLS, pA uintptr, pB uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80774:21: */ var tmp Vdbe var pTmp uintptr var zTmp uintptr @@ -102901,8 +103184,8 @@ func Xsqlite3VdbeSwap(tls *libc.TLS, pA uintptr, pB uintptr) { /* testdata/sqlit (*Vdbe)(unsafe.Pointer(pB)).FzSql = zTmp (*Vdbe)(unsafe.Pointer(pB)).Fexpmask = (*Vdbe)(unsafe.Pointer(pA)).Fexpmask (*Vdbe)(unsafe.Pointer(pB)).FprepFlags = (*Vdbe)(unsafe.Pointer(pA)).FprepFlags - libc.Xmemcpy(tls, pB+220, pA+220, uint64(unsafe.Sizeof([9]U32{}))) - *(*U32)(unsafe.Pointer(pB + 220 + 5*4))++ + libc.Xmemcpy(tls, pB+212, pA+212, uint64(unsafe.Sizeof([9]U32{}))) + *(*U32)(unsafe.Pointer(pB + 212 + 5*4))++ } // Resize the Vdbe.aOp array so that it is at least nOp elements larger @@ -102913,7 +103196,7 @@ func Xsqlite3VdbeSwap(tls *libc.TLS, pA uintptr, pB uintptr) { /* testdata/sqlit // SQLITE_NOMEM. In this case Vdbe.aOp and Vdbe.nOpAlloc remain // unchanged (this is so that any opcodes already allocated can be // correctly deallocated along with the rest of the Vdbe). -func growOpArray(tls *libc.TLS, v uintptr, nOp int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:79959:12: */ +func growOpArray(tls *libc.TLS, v uintptr, nOp int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80811:12: */ var pNew uintptr var p uintptr = (*Vdbe)(unsafe.Pointer(v)).FpParse @@ -102957,16 +103240,16 @@ func growOpArray(tls *libc.TLS, v uintptr, nOp int32) int32 { /* testdata/sqlite // // Parameters: // -// p Pointer to the VDBE +// p Pointer to the VDBE // -// op The opcode for this instruction +// op The opcode for this instruction // -// p1, p2, p3 Operands +// p1, p2, p3 Operands // // Use the sqlite3VdbeResolveLabel() function to fix an address and // the sqlite3VdbeChangeP4() function to change the value of the P4 // operand. -func growOp3(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80030:28: */ +func growOp3(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80882:28: */ if growOpArray(tls, p, 1) != 0 { return 1 @@ -102975,7 +103258,7 @@ func growOp3(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32) i return Xsqlite3VdbeAddOp3(tls, p, op, p1, p2, p3) } -func Xsqlite3VdbeAddOp3(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80036:20: */ +func Xsqlite3VdbeAddOp3(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80888:20: */ var i int32 var pOp uintptr @@ -102998,26 +103281,26 @@ func Xsqlite3VdbeAddOp3(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, return i } -func Xsqlite3VdbeAddOp0(tls *libc.TLS, p uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80075:20: */ +func Xsqlite3VdbeAddOp0(tls *libc.TLS, p uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80927:20: */ return Xsqlite3VdbeAddOp3(tls, p, op, 0, 0, 0) } -func Xsqlite3VdbeAddOp1(tls *libc.TLS, p uintptr, op int32, p1 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80078:20: */ +func Xsqlite3VdbeAddOp1(tls *libc.TLS, p uintptr, op int32, p1 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80930:20: */ return Xsqlite3VdbeAddOp3(tls, p, op, p1, 0, 0) } -func Xsqlite3VdbeAddOp2(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80081:20: */ +func Xsqlite3VdbeAddOp2(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80933:20: */ return Xsqlite3VdbeAddOp3(tls, p, op, p1, p2, 0) } // Generate code for an unconditional jump to instruction iDest -func Xsqlite3VdbeGoto(tls *libc.TLS, p uintptr, iDest int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80087:20: */ +func Xsqlite3VdbeGoto(tls *libc.TLS, p uintptr, iDest int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80939:20: */ return Xsqlite3VdbeAddOp3(tls, p, OP_Goto, 0, iDest, 0) } // Generate code to cause the string zStr to be loaded into // register iDest -func Xsqlite3VdbeLoadString(tls *libc.TLS, p uintptr, iDest int32, zStr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80094:20: */ +func Xsqlite3VdbeLoadString(tls *libc.TLS, p uintptr, iDest int32, zStr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80946:20: */ return Xsqlite3VdbeAddOp4(tls, p, OP_String8, 0, iDest, 0, zStr, 0) } @@ -103030,7 +103313,7 @@ func Xsqlite3VdbeLoadString(tls *libc.TLS, p uintptr, iDest int32, zStr uintptr) // // If the input string does not end with "X" then an OP_ResultRow instruction // is generated for the values inserted. -func Xsqlite3VdbeMultiLoad(tls *libc.TLS, p uintptr, iDest int32, zTypes uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80109:21: */ +func Xsqlite3VdbeMultiLoad(tls *libc.TLS, p uintptr, iDest int32, zTypes uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80961:21: */ var ap Va_list _ = ap var i int32 @@ -103078,7 +103361,7 @@ skip_op_resultrow: } // Add an opcode that includes the p4 value as a pointer. -func Xsqlite3VdbeAddOp4(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32, zP4 uintptr, p4type int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80132:20: */ +func Xsqlite3VdbeAddOp4(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32, zP4 uintptr, p4type int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:80984:20: */ var addr int32 = Xsqlite3VdbeAddOp3(tls, p, op, p1, p2, p3) Xsqlite3VdbeChangeP4(tls, p, addr, zP4, p4type) return addr @@ -103092,7 +103375,7 @@ func Xsqlite3VdbeAddOp4(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, // NC_IdxExpr means called as part of an index expression. NC_PartIdx // means in the WHERE clause of a partial index. NC_GenCol means called // while computing a generated column value. 0 is the usual case. -func Xsqlite3VdbeAddFunctionCall(tls *libc.TLS, pParse uintptr, p1 int32, p2 int32, p3 int32, nArg int32, pFunc uintptr, eCallCtx int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80156:20: */ +func Xsqlite3VdbeAddFunctionCall(tls *libc.TLS, pParse uintptr, p1 int32, p2 int32, p3 int32, nArg int32, pFunc uintptr, eCallCtx int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81008:20: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var nByte int32 var addr int32 @@ -103117,14 +103400,14 @@ func Xsqlite3VdbeAddFunctionCall(tls *libc.TLS, pParse uintptr, p1 int32, p2 int } return OP_Function }(), - p1, p2, p3, pCtx, -16) + p1, p2, p3, pCtx, -15) Xsqlite3VdbeChangeP5(tls, v, uint16(eCallCtx&NC_SelfRef)) return addr } // Add an opcode that includes the p4 value with a P4_INT64 or // P4_REAL type. -func Xsqlite3VdbeAddOp4Dup8(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32, zP4 uintptr, p4type int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80193:20: */ +func Xsqlite3VdbeAddOp4Dup8(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32, zP4 uintptr, p4type int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81045:20: */ var p4copy uintptr = Xsqlite3DbMallocRawNN(tls, Xsqlite3VdbeDb(tls, p), uint64(8)) if p4copy != 0 { libc.Xmemcpy(tls, p4copy, zP4, uint64(8)) @@ -103134,7 +103417,7 @@ func Xsqlite3VdbeAddOp4Dup8(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int // Return the address of the current EXPLAIN QUERY PLAN baseline. // 0 means "none". -func Xsqlite3VdbeExplainParent(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80212:20: */ +func Xsqlite3VdbeExplainParent(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81064:20: */ var pOp uintptr if (*Parse)(unsafe.Pointer(pParse)).FaddrExplain == 0 { return 0 @@ -103150,7 +103433,7 @@ func Xsqlite3VdbeExplainParent(tls *libc.TLS, pParse uintptr) int32 { /* testdat // // If the bPush flag is true, then make this opcode the parent for // subsequent Explains until sqlite3VdbeExplainPop() is called. -func Xsqlite3VdbeExplain(tls *libc.TLS, pParse uintptr, bPush U8, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80236:21: */ +func Xsqlite3VdbeExplain(tls *libc.TLS, pParse uintptr, bPush U8, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81088:21: */ // Always include the OP_Explain opcodes if SQLITE_DEBUG is defined. // But omit them (for performance) during production builds if int32((*Parse)(unsafe.Pointer(pParse)).Fexplain) == 2 { @@ -103165,7 +103448,7 @@ func Xsqlite3VdbeExplain(tls *libc.TLS, pParse uintptr, bPush U8, zFmt uintptr, v = (*Parse)(unsafe.Pointer(pParse)).FpVdbe iThis = (*Vdbe)(unsafe.Pointer(v)).FnOp Xsqlite3VdbeAddOp4(tls, v, OP_Explain, iThis, (*Parse)(unsafe.Pointer(pParse)).FaddrExplain, 0, - zMsg, -7) + zMsg, -6) if bPush != 0 { (*Parse)(unsafe.Pointer(pParse)).FaddrExplain = iThis @@ -103174,7 +103457,7 @@ func Xsqlite3VdbeExplain(tls *libc.TLS, pParse uintptr, bPush U8, zFmt uintptr, } // Pop the EXPLAIN QUERY PLAN stack one level. -func Xsqlite3VdbeExplainPop(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80264:21: */ +func Xsqlite3VdbeExplainPop(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81116:21: */ (*Parse)(unsafe.Pointer(pParse)).FaddrExplain = Xsqlite3VdbeExplainParent(tls, pParse) } @@ -103185,9 +103468,9 @@ func Xsqlite3VdbeExplainPop(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite- // // The zWhere string must have been obtained from sqlite3_malloc(). // This routine will take ownership of the allocated memory. -func Xsqlite3VdbeAddParseSchemaOp(tls *libc.TLS, p uintptr, iDb int32, zWhere uintptr, p5 U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80278:21: */ +func Xsqlite3VdbeAddParseSchemaOp(tls *libc.TLS, p uintptr, iDb int32, zWhere uintptr, p5 U16) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81130:21: */ var j int32 - Xsqlite3VdbeAddOp4(tls, p, OP_ParseSchema, iDb, 0, 0, zWhere, -7) + Xsqlite3VdbeAddOp4(tls, p, OP_ParseSchema, iDb, 0, 0, zWhere, -6) Xsqlite3VdbeChangeP5(tls, p, p5) for j = 0; j < (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FnDb; j++ { Xsqlite3VdbeUsesBtree(tls, p, j) @@ -103196,7 +103479,7 @@ func Xsqlite3VdbeAddParseSchemaOp(tls *libc.TLS, p uintptr, iDb int32, zWhere ui } // Add an opcode that includes the p4 value as an integer. -func Xsqlite3VdbeAddOp4Int(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32, p4 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80289:20: */ +func Xsqlite3VdbeAddOp4Int(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int32, p3 int32, p4 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81141:20: */ var addr int32 = Xsqlite3VdbeAddOp3(tls, p, op, p1, p2, p3) if int32((*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FmallocFailed) == 0 { var pOp uintptr = (*Vdbe)(unsafe.Pointer(p)).FaOp + uintptr(addr)*24 @@ -103207,7 +103490,7 @@ func Xsqlite3VdbeAddOp4Int(tls *libc.TLS, p uintptr, op int32, p1 int32, p2 int3 } // Insert the end of a co-routine -func Xsqlite3VdbeEndCoroutine(tls *libc.TLS, v uintptr, regYield int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80308:21: */ +func Xsqlite3VdbeEndCoroutine(tls *libc.TLS, v uintptr, regYield int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81160:21: */ Xsqlite3VdbeAddOp1(tls, v, OP_EndCoroutine, regYield) // Clear the temporary register cache, thereby ensuring that each @@ -103234,22 +103517,22 @@ func Xsqlite3VdbeEndCoroutine(tls *libc.TLS, v uintptr, regYield int32) { /* tes // // Variable usage notes: // -// Parse.aLabel[x] Stores the address that the x-th label resolves -// into. For testing (SQLITE_DEBUG), unresolved -// labels stores -1, but that is not required. -// Parse.nLabelAlloc Number of slots allocated to Parse.aLabel[] -// Parse.nLabel The *negative* of the number of labels that have -// been issued. The negative is stored because -// that gives a performance improvement over storing -// the equivalent positive value. -func Xsqlite3VdbeMakeLabel(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80346:20: */ +// Parse.aLabel[x] Stores the address that the x-th label resolves +// into. For testing (SQLITE_DEBUG), unresolved +// labels stores -1, but that is not required. +// Parse.nLabelAlloc Number of slots allocated to Parse.aLabel[] +// Parse.nLabel The *negative* of the number of labels that have +// been issued. The negative is stored because +// that gives a performance improvement over storing +// the equivalent positive value. +func Xsqlite3VdbeMakeLabel(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81198:20: */ return libc.PreDecInt32(&(*Parse)(unsafe.Pointer(pParse)).FnLabel, 1) } // Resolve label "x" to be the address of the next instruction to // be inserted. The parameter "x" must have been obtained from // a prior call to sqlite3VdbeMakeLabel(). -func resizeResolveLabel(tls *libc.TLS, p uintptr, v uintptr, j int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80355:29: */ +func resizeResolveLabel(tls *libc.TLS, p uintptr, v uintptr, j int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81207:29: */ var nNewSize int32 = 10 - (*Parse)(unsafe.Pointer(p)).FnLabel (*Parse)(unsafe.Pointer(p)).FaLabel = Xsqlite3DbReallocOrFree(tls, (*Parse)(unsafe.Pointer(p)).Fdb, (*Parse)(unsafe.Pointer(p)).FaLabel, uint64(nNewSize)*uint64(unsafe.Sizeof(int32(0)))) @@ -103261,7 +103544,7 @@ func resizeResolveLabel(tls *libc.TLS, p uintptr, v uintptr, j int32) { /* testd } } -func Xsqlite3VdbeResolveLabel(tls *libc.TLS, v uintptr, x int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80370:21: */ +func Xsqlite3VdbeResolveLabel(tls *libc.TLS, v uintptr, x int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81222:21: */ var p uintptr = (*Vdbe)(unsafe.Pointer(v)).FpParse var j int32 = ^x @@ -103274,41 +103557,50 @@ func Xsqlite3VdbeResolveLabel(tls *libc.TLS, v uintptr, x int32) { /* testdata/s } // Mark the VDBE as one that can only be run one time. -func Xsqlite3VdbeRunOnlyOnce(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80392:21: */ - libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 5, 0x20) +func Xsqlite3VdbeRunOnlyOnce(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81244:21: */ + Xsqlite3VdbeAddOp2(tls, p, OP_Expire, 1, 1) } -// Mark the VDBE as one that can only be run multiple times. -func Xsqlite3VdbeReusable(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80399:21: */ - libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 5, 0x20) +// Mark the VDBE as one that can be run multiple times. +func Xsqlite3VdbeReusable(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81251:21: */ + var i int32 + for i = 1; i < (*Vdbe)(unsafe.Pointer(p)).FnOp; i++ { + if int32((*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp+uintptr(i)*24)).Fopcode) == OP_Expire { + (*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp + 1*24)).Fopcode = U8(OP_Noop) + break + } + } } // This routine is called after all opcodes have been inserted. It loops // through all the opcodes and fixes up some details. // // (1) For each jump instruction with a negative P2 value (a label) -// resolve the P2 value to an actual address. +// +// resolve the P2 value to an actual address. // // (2) Compute the maximum number of arguments used by any SQL function -// and store that value in *pMaxFuncArgs. +// +// and store that value in *pMaxFuncArgs. // // (3) Update the Vdbe.readOnly and Vdbe.bIsReader flags to accurately -// indicate what the prepared statement actually does. // -// (4) Initialize the p4.xAdvance pointer on opcodes that use it. +// indicate what the prepared statement actually does. +// +// (4) (discontinued) // // (5) Reclaim the memory allocated for storing labels. // // This routine will only function correctly if the mkopcodeh.tcl generator // script numbers the opcodes correctly. Changes to this routine must be // coordinated with changes to mkopcodeh.tcl. -func resolveP2Values(tls *libc.TLS, p uintptr, pMaxFuncArgs uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80595:13: */ +func resolveP2Values(tls *libc.TLS, p uintptr, pMaxFuncArgs uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81455:13: */ var nMaxArgs int32 = *(*int32)(unsafe.Pointer(pMaxFuncArgs)) var pOp uintptr var pParse uintptr = (*Vdbe)(unsafe.Pointer(p)).FpParse var aLabel uintptr = (*Parse)(unsafe.Pointer(pParse)).FaLabel - libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 7, 0x80) - libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 8, 0x100) + libc.SetBitFieldPtr8Uint32(p+200, Bft(1), 6, 0x40) + libc.SetBitFieldPtr8Uint32(p+200, Bft(0), 7, 0x80) pOp = (*Vdbe)(unsafe.Pointer(p)).FaOp + uintptr((*Vdbe)(unsafe.Pointer(p)).FnOp-1)*24 for 1 != 0 { @@ -103324,7 +103616,7 @@ func resolveP2Values(tls *libc.TLS, p uintptr, pMaxFuncArgs uintptr) { /* testda case OP_Transaction: { if (*Op)(unsafe.Pointer(pOp)).Fp2 != 0 { - libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 7, 0x80) + libc.SetBitFieldPtr8Uint32(p+200, Bft(0), 6, 0x40) } } @@ -103333,7 +103625,7 @@ func resolveP2Values(tls *libc.TLS, p uintptr, pMaxFuncArgs uintptr) { /* testda fallthrough case OP_Savepoint: { - libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 8, 0x100) + libc.SetBitFieldPtr8Uint32(p+200, Bft(1), 7, 0x80) break } @@ -103344,38 +103636,8 @@ func resolveP2Values(tls *libc.TLS, p uintptr, pMaxFuncArgs uintptr) { /* testda fallthrough case OP_JournalMode: { - libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 7, 0x80) - libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 8, 0x100) - break - - } - fallthrough - case OP_Next: - fallthrough - case OP_SorterNext: - { - *(*uintptr)(unsafe.Pointer(pOp + 16)) = *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr, int32) int32 - }{Xsqlite3BtreeNext})) - (*Op)(unsafe.Pointer(pOp)).Fp4type = int8(-5) - // The code generator never codes any of these opcodes as a jump - // to a label. They are always coded as a jump backwards to a - // known address - - break - - } - fallthrough - case OP_Prev: - { - *(*uintptr)(unsafe.Pointer(pOp + 16)) = *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr, int32) int32 - }{Xsqlite3BtreePrevious})) - (*Op)(unsafe.Pointer(pOp)).Fp4type = int8(-5) - // The code generator never codes any of these opcodes as a jump - // to a label. They are always coded as a jump backwards to a - // known address - + libc.SetBitFieldPtr8Uint32(p+200, Bft(0), 6, 0x40) + libc.SetBitFieldPtr8Uint32(p+200, Bft(1), 7, 0x80) break } @@ -103423,15 +103685,17 @@ func resolveP2Values(tls *libc.TLS, p uintptr, pMaxFuncArgs uintptr) { /* testda } pOp -= 24 } - Xsqlite3DbFree(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, (*Parse)(unsafe.Pointer(pParse)).FaLabel) - (*Parse)(unsafe.Pointer(pParse)).FaLabel = uintptr(0) + if aLabel != 0 { + Xsqlite3DbFreeNN(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, (*Parse)(unsafe.Pointer(pParse)).FaLabel) + (*Parse)(unsafe.Pointer(pParse)).FaLabel = uintptr(0) + } (*Parse)(unsafe.Pointer(pParse)).FnLabel = 0 *(*int32)(unsafe.Pointer(pMaxFuncArgs)) = nMaxArgs } // Return the address of the next instruction to be inserted. -func Xsqlite3VdbeCurrentAddr(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80697:20: */ +func Xsqlite3VdbeCurrentAddr(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81624:20: */ return (*Vdbe)(unsafe.Pointer(p)).FnOp } @@ -103462,7 +103726,7 @@ func Xsqlite3VdbeCurrentAddr(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlit // array. Also, *pnMaxArg is set to the larger of its current value and // the number of entries in the Vdbe.apArg[] array required to execute the // returned program. -func Xsqlite3VdbeTakeOpArray(tls *libc.TLS, p uintptr, pnOp uintptr, pnMaxArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80754:23: */ +func Xsqlite3VdbeTakeOpArray(tls *libc.TLS, p uintptr, pnOp uintptr, pnMaxArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81681:23: */ var aOp uintptr = (*Vdbe)(unsafe.Pointer(p)).FaOp // Check that sqlite3VdbeUsesBtree() was not called on this VM @@ -103478,7 +103742,7 @@ func Xsqlite3VdbeTakeOpArray(tls *libc.TLS, p uintptr, pnOp uintptr, pnMaxArg ui // // Non-zero P2 arguments to jump instructions are automatically adjusted // so that the jump target is relative to the first operation inserted. -func Xsqlite3VdbeAddOpList(tls *libc.TLS, p uintptr, nOp int32, aOp uintptr, iLineno int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80774:23: */ +func Xsqlite3VdbeAddOpList(tls *libc.TLS, p uintptr, nOp int32, aOp uintptr, iLineno int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81701:23: */ var i int32 var pOut uintptr var pFirst uintptr @@ -103516,29 +103780,29 @@ __2: goto __3 __3: ; - *(*int32)(unsafe.Pointer(p + 152)) += nOp + *(*int32)(unsafe.Pointer(p + 144)) += nOp return pFirst } // Change the value of the opcode, or P1, P2, P3, or P5 operands // for a specific instruction. -func Xsqlite3VdbeChangeOpcode(tls *libc.TLS, p uintptr, addr int32, iNewOpcode U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80850:21: */ +func Xsqlite3VdbeChangeOpcode(tls *libc.TLS, p uintptr, addr int32, iNewOpcode U8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81777:21: */ (*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fopcode = iNewOpcode } -func Xsqlite3VdbeChangeP1(tls *libc.TLS, p uintptr, addr int32, val int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80853:21: */ +func Xsqlite3VdbeChangeP1(tls *libc.TLS, p uintptr, addr int32, val int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81780:21: */ (*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fp1 = val } -func Xsqlite3VdbeChangeP2(tls *libc.TLS, p uintptr, addr int32, val int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80856:21: */ +func Xsqlite3VdbeChangeP2(tls *libc.TLS, p uintptr, addr int32, val int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81783:21: */ (*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fp2 = val } -func Xsqlite3VdbeChangeP3(tls *libc.TLS, p uintptr, addr int32, val int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80859:21: */ +func Xsqlite3VdbeChangeP3(tls *libc.TLS, p uintptr, addr int32, val int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81786:21: */ (*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, p, addr))).Fp3 = val } -func Xsqlite3VdbeChangeP5(tls *libc.TLS, p uintptr, p5 U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80862:21: */ +func Xsqlite3VdbeChangeP5(tls *libc.TLS, p uintptr, p5 U16) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81789:21: */ if (*Vdbe)(unsafe.Pointer(p)).FnOp > 0 { (*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp + uintptr((*Vdbe)(unsafe.Pointer(p)).FnOp-1)*24)).Fp5 = p5 @@ -103547,7 +103811,7 @@ func Xsqlite3VdbeChangeP5(tls *libc.TLS, p uintptr, p5 U16) { /* testdata/sqlite // Change the P2 operand of instruction addr so that it points to // the address of the next instruction to be coded. -func Xsqlite3VdbeJumpHere(tls *libc.TLS, p uintptr, addr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80871:21: */ +func Xsqlite3VdbeJumpHere(tls *libc.TLS, p uintptr, addr int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81798:21: */ Xsqlite3VdbeChangeP2(tls, p, addr, (*Vdbe)(unsafe.Pointer(p)).FnOp) } @@ -103560,9 +103824,9 @@ func Xsqlite3VdbeJumpHere(tls *libc.TLS, p uintptr, addr int32) { /* testdata/sq // This routine is an optimization of sqlite3VdbeJumpHere() that // strives to omit useless byte-code like this: // -// 7 Once 0 8 0 -// 8 ... -func Xsqlite3VdbeJumpHereOrPopInst(tls *libc.TLS, p uintptr, addr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80888:21: */ +// 7 Once 0 8 0 +// 8 ... +func Xsqlite3VdbeJumpHereOrPopInst(tls *libc.TLS, p uintptr, addr int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81815:21: */ if addr == (*Vdbe)(unsafe.Pointer(p)).FnOp-1 { (*Vdbe)(unsafe.Pointer(p)).FnOp-- @@ -103573,49 +103837,47 @@ func Xsqlite3VdbeJumpHereOrPopInst(tls *libc.TLS, p uintptr, addr int32) { /* te // If the input FuncDef structure is ephemeral, then free it. If // the FuncDef is not ephermal, then do nothing. -func freeEphemeralFunction(tls *libc.TLS, db uintptr, pDef uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80908:13: */ +func freeEphemeralFunction(tls *libc.TLS, db uintptr, pDef uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81835:13: */ if (*FuncDef)(unsafe.Pointer(pDef)).FfuncFlags&U32(SQLITE_FUNC_EPHEM) != U32(0) { Xsqlite3DbFreeNN(tls, db, pDef) } } // Delete a P4 value if necessary. -func freeP4Mem(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80917:29: */ +func freeP4Mem(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81844:29: */ if (*Mem)(unsafe.Pointer(p)).FszMalloc != 0 { Xsqlite3DbFree(tls, db, (*Mem)(unsafe.Pointer(p)).FzMalloc) } Xsqlite3DbFreeNN(tls, db, p) } -func freeP4FuncCtx(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80921:29: */ +func freeP4FuncCtx(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81848:29: */ freeEphemeralFunction(tls, db, (*Sqlite3_context)(unsafe.Pointer(p)).FpFunc) Xsqlite3DbFreeNN(tls, db, p) } -func freeP4(tls *libc.TLS, db uintptr, p4type int32, p4 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80925:13: */ +func freeP4(tls *libc.TLS, db uintptr, p4type int32, p4 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81852:13: */ switch p4type { - case -16: + case -15: { freeP4FuncCtx(tls, db, p4) break } - case -13: - fallthrough - case -14: + case -12: fallthrough - case -7: + case -13: fallthrough - case -17: + case -6: fallthrough - case -15: + case -14: { Xsqlite3DbFree(tls, db, p4) break } - case -9: + case -8: { if (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed == uintptr(0) { Xsqlite3KeyInfoUnref(tls, p4) @@ -103623,13 +103885,13 @@ func freeP4(tls *libc.TLS, db uintptr, p4type int32, p4 uintptr) { /* testdata/s break } - case -8: + case -7: { freeEphemeralFunction(tls, db, p4) break } - case -11: + case -10: { if (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed == uintptr(0) { Xsqlite3ValueFree(tls, p4) @@ -103639,7 +103901,7 @@ func freeP4(tls *libc.TLS, db uintptr, p4type int32, p4 uintptr) { /* testdata/s break } - case -12: + case -11: { if (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed == uintptr(0) { Xsqlite3VtabUnlock(tls, p4) @@ -103653,13 +103915,18 @@ func freeP4(tls *libc.TLS, db uintptr, p4type int32, p4 uintptr) { /* testdata/s // Free the space allocated for aOp and any p4 values allocated for the // opcodes contained within. If aOp is not NULL it is assumed to contain // nOp entries. -func vdbeFreeOpArray(tls *libc.TLS, db uintptr, aOp uintptr, nOp int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80974:13: */ +func vdbeFreeOpArray(tls *libc.TLS, db uintptr, aOp uintptr, nOp int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81900:13: */ + if aOp != 0 { - var pOp uintptr - for pOp = aOp + uintptr(nOp-1)*24; pOp >= aOp; pOp -= 24 { - if int32((*Op)(unsafe.Pointer(pOp)).Fp4type) <= -7 { + var pOp uintptr = aOp + uintptr(nOp-1)*24 + for 1 != 0 { // Exit via break + if int32((*Op)(unsafe.Pointer(pOp)).Fp4type) <= -6 { freeP4(tls, db, int32((*Op)(unsafe.Pointer(pOp)).Fp4type), *(*uintptr)(unsafe.Pointer(pOp + 16))) } + if pOp == aOp { + break + } + pOp -= 24 } Xsqlite3DbFreeNN(tls, db, aOp) } @@ -103668,18 +103935,18 @@ func vdbeFreeOpArray(tls *libc.TLS, db uintptr, aOp uintptr, nOp int32) { /* tes // Link the SubProgram object passed as the second argument into the linked // list at Vdbe.pSubProgram. This list is used to delete all sub-program // objects when the VM is no longer required. -func Xsqlite3VdbeLinkSubProgram(tls *libc.TLS, pVdbe uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80992:21: */ +func Xsqlite3VdbeLinkSubProgram(tls *libc.TLS, pVdbe uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81921:21: */ (*SubProgram)(unsafe.Pointer(p)).FpNext = (*Vdbe)(unsafe.Pointer(pVdbe)).FpProgram (*Vdbe)(unsafe.Pointer(pVdbe)).FpProgram = p } // Return true if the given Vdbe has any SubPrograms. -func Xsqlite3VdbeHasSubProgram(tls *libc.TLS, pVdbe uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81000:20: */ +func Xsqlite3VdbeHasSubProgram(tls *libc.TLS, pVdbe uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81929:20: */ return libc.Bool32((*Vdbe)(unsafe.Pointer(pVdbe)).FpProgram != uintptr(0)) } // Change the opcode at addr into OP_Noop -func Xsqlite3VdbeChangeToNoop(tls *libc.TLS, p uintptr, addr int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81007:20: */ +func Xsqlite3VdbeChangeToNoop(tls *libc.TLS, p uintptr, addr int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81936:20: */ var pOp uintptr if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FmallocFailed != 0 { return 0 @@ -103695,7 +103962,7 @@ func Xsqlite3VdbeChangeToNoop(tls *libc.TLS, p uintptr, addr int32) int32 { /* t // If the last opcode is "op" and it is not a jump destination, // then remove it. Return true if and only if an opcode was removed. -func Xsqlite3VdbeDeletePriorOpcode(tls *libc.TLS, p uintptr, op U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81023:20: */ +func Xsqlite3VdbeDeletePriorOpcode(tls *libc.TLS, p uintptr, op U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:81952:20: */ if (*Vdbe)(unsafe.Pointer(p)).FnOp > 0 && int32((*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp+uintptr((*Vdbe)(unsafe.Pointer(p)).FnOp-1)*24)).Fopcode) == int32(op) { return Xsqlite3VdbeChangeToNoop(tls, p, (*Vdbe)(unsafe.Pointer(p)).FnOp-1) } else { @@ -103719,7 +103986,7 @@ func Xsqlite3VdbeDeletePriorOpcode(tls *libc.TLS, p uintptr, op U8) int32 { /* t // the Vdbe. In these cases we can just copy the pointer. // // If addr<0 then change P4 on the most recently inserted instruction. -func vdbeChangeP4Full(tls *libc.TLS, p uintptr, pOp uintptr, zP4 uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81083:29: */ +func vdbeChangeP4Full(tls *libc.TLS, p uintptr, pOp uintptr, zP4 uintptr, n int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82012:29: */ if (*Op)(unsafe.Pointer(pOp)).Fp4type != 0 { freeP4(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, int32((*Op)(unsafe.Pointer(pOp)).Fp4type), *(*uintptr)(unsafe.Pointer(pOp + 16))) (*Op)(unsafe.Pointer(pOp)).Fp4type = int8(0) @@ -103732,11 +103999,11 @@ func vdbeChangeP4Full(tls *libc.TLS, p uintptr, pOp uintptr, zP4 uintptr, n int3 n = Xsqlite3Strlen30(tls, zP4) } *(*uintptr)(unsafe.Pointer(pOp + 16)) = Xsqlite3DbStrNDup(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, zP4, uint64(n)) - (*Op)(unsafe.Pointer(pOp)).Fp4type = int8(-7) + (*Op)(unsafe.Pointer(pOp)).Fp4type = int8(-6) } } -func Xsqlite3VdbeChangeP4(tls *libc.TLS, p uintptr, addr int32, zP4 uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81102:21: */ +func Xsqlite3VdbeChangeP4(tls *libc.TLS, p uintptr, addr int32, zP4 uintptr, n int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82031:21: */ bp := tls.Alloc(8) defer tls.Free(8) *(*uintptr)(unsafe.Pointer(bp)) = zP4 @@ -103747,7 +104014,7 @@ func Xsqlite3VdbeChangeP4(tls *libc.TLS, p uintptr, addr int32, zP4 uintptr, n i db = (*Vdbe)(unsafe.Pointer(p)).Fdb if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { - if n != -12 { + if n != -11 { freeP4(tls, db, n, *(*uintptr)(unsafe.Pointer(bp))) } return @@ -103770,7 +104037,7 @@ func Xsqlite3VdbeChangeP4(tls *libc.TLS, p uintptr, addr int32, zP4 uintptr, n i *(*uintptr)(unsafe.Pointer(pOp + 16)) = *(*uintptr)(unsafe.Pointer(bp /* zP4 */)) (*Op)(unsafe.Pointer(pOp)).Fp4type = int8(n) - if n == -12 { + if n == -11 { Xsqlite3VtabLock(tls, *(*uintptr)(unsafe.Pointer(bp /* zP4 */))) } } @@ -103783,7 +104050,7 @@ func Xsqlite3VdbeChangeP4(tls *libc.TLS, p uintptr, addr int32, zP4 uintptr, n i // The P4 operand must not have been previously defined. And the new // P4 must not be P4_INT32. Use sqlite3VdbeChangeP4() in either of // those cases. -func Xsqlite3VdbeAppendP4(tls *libc.TLS, p uintptr, pP4 uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81145:21: */ +func Xsqlite3VdbeAppendP4(tls *libc.TLS, p uintptr, pP4 uintptr, n int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82074:21: */ var pOp uintptr if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FmallocFailed != 0 { @@ -103799,13 +104066,13 @@ func Xsqlite3VdbeAppendP4(tls *libc.TLS, p uintptr, pP4 uintptr, n int32) { /* t // Set the P4 on the most recently added opcode to the KeyInfo for the // index given. -func Xsqlite3VdbeSetP4KeyInfo(tls *libc.TLS, pParse uintptr, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81165:21: */ +func Xsqlite3VdbeSetP4KeyInfo(tls *libc.TLS, pParse uintptr, pIdx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82094:21: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var pKeyInfo uintptr pKeyInfo = Xsqlite3KeyInfoOfIndex(tls, pParse, pIdx) if pKeyInfo != 0 { - Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -9) + Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -8) } } @@ -103820,7 +104087,7 @@ func Xsqlite3VdbeSetP4KeyInfo(tls *libc.TLS, pParse uintptr, pIdx uintptr) { /* // this routine is a valid pointer. But because the dummy.opcode is 0, // dummy will never be written to. This is verified by code inspection and // by running with Valgrind. -func Xsqlite3VdbeGetOp(tls *libc.TLS, p uintptr, addr int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81231:23: */ // Ignore the MSVC warning about no initializer +func Xsqlite3VdbeGetOp(tls *libc.TLS, p uintptr, addr int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82160:23: */ // Ignore the MSVC warning about no initializer if addr < 0 { addr = (*Vdbe)(unsafe.Pointer(p)).FnOp - 1 @@ -103834,11 +104101,11 @@ func Xsqlite3VdbeGetOp(tls *libc.TLS, p uintptr, addr int32) uintptr { /* testda return uintptr(0) } -var dummy VdbeOp /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81234:17: */ +var dummy VdbeOp /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82163:17: */ // Compute a string that describes the P4 parameter for an opcode. // Use zTemp for any required temporary buffer space. -func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81435:21: */ +func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82367:21: */ bp := tls.Alloc(176) defer tls.Free(176) @@ -103847,12 +104114,12 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* Xsqlite3StrAccumInit(tls, bp+144, uintptr(0), uintptr(0), 0, SQLITE_MAX_LENGTH) switch int32((*Op)(unsafe.Pointer(pOp)).Fp4type) { - case -9: + case -8: { var j int32 var pKeyInfo uintptr = *(*uintptr)(unsafe.Pointer(pOp + 16)) - Xsqlite3_str_appendf(tls, bp+144, ts+6242, libc.VaList(bp, int32((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField))) + Xsqlite3_str_appendf(tls, bp+144, ts+6277, libc.VaList(bp, int32((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField))) for j = 0; j < int32((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField); j++ { var pColl uintptr = *(*uintptr)(unsafe.Pointer(pKeyInfo + 32 + uintptr(j)*8)) var zColl uintptr @@ -103862,24 +104129,24 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* zColl = ts + 1524 /* "" */ } if libc.Xstrcmp(tls, zColl, ts+1069) == 0 { - zColl = ts + 6247 /* "B" */ + zColl = ts + 6282 /* "B" */ } - Xsqlite3_str_appendf(tls, bp+144, ts+6249, + Xsqlite3_str_appendf(tls, bp+144, ts+6284, libc.VaList(bp+8, func() uintptr { if int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(j))))&KEYINFO_ORDER_DESC != 0 { - return ts + 6235 /* "-" */ + return ts + 6270 /* "-" */ } return ts + 1524 /* "" */ }(), func() uintptr { if int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(j))))&KEYINFO_ORDER_BIGNULL != 0 { - return ts + 6257 /* "N." */ + return ts + 6292 /* "N." */ } return ts + 1524 /* "" */ }(), zColl)) } - Xsqlite3_str_append(tls, bp+144, ts+6260, 1) + Xsqlite3_str_append(tls, bp+144, ts+6295, 1) break } @@ -103887,26 +104154,26 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* { var pColl uintptr = *(*uintptr)(unsafe.Pointer(pOp + 16)) - Xsqlite3_str_appendf(tls, bp+144, ts+6262, libc.VaList(bp+32, (*CollSeq)(unsafe.Pointer(pColl)).FzName, + Xsqlite3_str_appendf(tls, bp+144, ts+6297, libc.VaList(bp+32, (*CollSeq)(unsafe.Pointer(pColl)).FzName, encnames[(*CollSeq)(unsafe.Pointer(pColl)).Fenc])) break } - case -8: + case -7: { var pDef uintptr = *(*uintptr)(unsafe.Pointer(pOp + 16)) - Xsqlite3_str_appendf(tls, bp+144, ts+6271, libc.VaList(bp+48, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg))) + Xsqlite3_str_appendf(tls, bp+144, ts+6306, libc.VaList(bp+48, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg))) break } - case -16: + case -15: { var pDef uintptr = (*Sqlite3_context)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FpFunc - Xsqlite3_str_appendf(tls, bp+144, ts+6271, libc.VaList(bp+64, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg))) + Xsqlite3_str_appendf(tls, bp+144, ts+6306, libc.VaList(bp+64, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg))) break } - case -14: + case -13: { Xsqlite3_str_appendf(tls, bp+144, ts+1304, libc.VaList(bp+80, *(*I64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))))) break @@ -103914,17 +104181,17 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* } case -3: { - Xsqlite3_str_appendf(tls, bp+144, ts+6278, libc.VaList(bp+88, *(*int32)(unsafe.Pointer(pOp + 16)))) + Xsqlite3_str_appendf(tls, bp+144, ts+6313, libc.VaList(bp+88, *(*int32)(unsafe.Pointer(pOp + 16)))) break } - case -13: + case -12: { Xsqlite3_str_appendf(tls, bp+144, ts+1298, libc.VaList(bp+96, *(*float64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))))) break } - case -11: + case -10: { var pMem uintptr = *(*uintptr)(unsafe.Pointer(pOp + 16)) if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Str != 0 { @@ -103937,51 +104204,44 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* zP4 = ts + 1525 /* "NULL" */ } else { - zP4 = ts + 6281 /* "(blob)" */ + zP4 = ts + 6316 /* "(blob)" */ } break } - case -12: + case -11: { var pVtab uintptr = (*VTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FpVtab - Xsqlite3_str_appendf(tls, bp+144, ts+6288, libc.VaList(bp+120, pVtab)) + Xsqlite3_str_appendf(tls, bp+144, ts+6323, libc.VaList(bp+120, pVtab)) break } - case -15: + case -14: { var i U32 var ai uintptr = *(*uintptr)(unsafe.Pointer(pOp + 16)) var n U32 = *(*U32)(unsafe.Pointer(ai)) // The first element of an INTARRAY is always the // count of the number of elements to follow for i = U32(1); i <= n; i++ { - Xsqlite3_str_appendf(tls, bp+144, ts+6296, libc.VaList(bp+128, func() int32 { + Xsqlite3_str_appendf(tls, bp+144, ts+6331, libc.VaList(bp+128, func() int32 { if i == U32(1) { return '[' } return ',' }(), *(*U32)(unsafe.Pointer(ai + uintptr(i)*4)))) } - Xsqlite3_str_append(tls, bp+144, ts+6301, 1) + Xsqlite3_str_append(tls, bp+144, ts+6336, 1) break } case -4: { - zP4 = ts + 6303 /* "program" */ + zP4 = ts + 6338 /* "program" */ break } - case -17: - fallthrough case -5: { - break - - } - case -6: - { zP4 = (*Table)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FzName break @@ -104001,7 +104261,7 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* return Xsqlite3StrAccumFinish(tls, bp+144) } -var encnames = [4]uintptr{ts + 6311, ts + 6313, ts + 6315, ts + 6320} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81465:25 */ +var encnames = [4]uintptr{ts + 6346, ts + 6348, ts + 6350, ts + 6355} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82397:25 */ // Declare to the Vdbe that the BTree object at db->aDb[i] is used. // @@ -104009,11 +104269,11 @@ var encnames = [4]uintptr{ts + 6311, ts + 6313, ts + 6315, ts + 6320} /* testdat // attached databases that will be use. A mask of these databases // is maintained in p->btreeMask. The p->lockMask value is the subset of // p->btreeMask of databases that will require a lock. -func Xsqlite3VdbeUsesBtree(tls *libc.TLS, p uintptr, i int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81560:21: */ +func Xsqlite3VdbeUsesBtree(tls *libc.TLS, p uintptr, i int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82488:21: */ - *(*YDbMask)(unsafe.Pointer(p + 212)) |= YDbMask(YDbMask(1)) << i + *(*YDbMask)(unsafe.Pointer(p + 204)) |= YDbMask(YDbMask(1)) << i if i != 1 && Xsqlite3BtreeSharable(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FaDb+uintptr(i)*32)).FpBt) != 0 { - *(*YDbMask)(unsafe.Pointer(p + 216)) |= YDbMask(YDbMask(1)) << i + *(*YDbMask)(unsafe.Pointer(p + 208)) |= YDbMask(YDbMask(1)) << i } } @@ -104036,7 +104296,7 @@ func Xsqlite3VdbeUsesBtree(tls *libc.TLS, p uintptr, i int32) { /* testdata/sqli // corresponding to btrees that use shared cache. Then the runtime of // this routine is N*N. But as N is rarely more than 1, this should not // be a problem. -func Xsqlite3VdbeEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81591:21: */ +func Xsqlite3VdbeEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82519:21: */ var i int32 var db uintptr var aDb uintptr @@ -104055,7 +104315,7 @@ func Xsqlite3VdbeEnter(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamati } // Unlock all of the btrees previously locked by a call to sqlite3VdbeEnter(). -func vdbeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81612:29: */ +func vdbeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82540:29: */ var i int32 var db uintptr var aDb uintptr @@ -104070,7 +104330,7 @@ func vdbeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-33805 } } -func Xsqlite3VdbeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81626:21: */ +func Xsqlite3VdbeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82554:21: */ if (*Vdbe)(unsafe.Pointer(p)).FlockMask == YDbMask(0) { return } // The common case @@ -104078,17 +104338,36 @@ func Xsqlite3VdbeLeave(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamati } // Initialize an array of N Mem element. -func initMemArray(tls *libc.TLS, p uintptr, N int32, db uintptr, flags U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81668:13: */ - for libc.PostDecInt32(&N, 1) > 0 { - (*Mem)(unsafe.Pointer(p)).Fdb = db - (*Mem)(unsafe.Pointer(p)).Fflags = flags - (*Mem)(unsafe.Pointer(p)).FszMalloc = 0 - p += 56 +// +// This is a high-runner, so only those fields that really do need to +// be initialized are set. The Mem structure is organized so that +// the fields that get initialized are nearby and hopefully on the same +// cache line. +// +// Mem.flags = flags +// Mem.db = db +// Mem.szMalloc = 0 +// +// All other fields of Mem can safely remain uninitialized for now. They +// will be initialized before use. +func initMemArray(tls *libc.TLS, p uintptr, N int32, db uintptr, flags U16) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82608:13: */ + if N > 0 { + for __ccgo := true; __ccgo; __ccgo = libc.PreDecInt32(&N, 1) > 0 { + (*Mem)(unsafe.Pointer(p)).Fflags = flags + (*Mem)(unsafe.Pointer(p)).Fdb = db + (*Mem)(unsafe.Pointer(p)).FszMalloc = 0 + p += 56 + } } } -// Release an array of N Mem elements -func releaseMemArray(tls *libc.TLS, p uintptr, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81683:13: */ +// Release auxiliary memory held in an array of N Mem elements. +// +// After this routine returns, all Mem elements in the array will still +// be valid. Those Mem elements that were not holding auxiliary resources +// will be unchanged. Mem elements which had something freed will be +// set to MEM_Undefined. +func releaseMemArray(tls *libc.TLS, p uintptr, N int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82630:13: */ if p != 0 && N != 0 { var pEnd uintptr = p + uintptr(N)*56 var db uintptr = (*Mem)(unsafe.Pointer(p)).Fdb @@ -104117,12 +104396,12 @@ func releaseMemArray(tls *libc.TLS, p uintptr, N int32) { /* testdata/sqlite-ama if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Agg|MEM_Dyn) != 0 { Xsqlite3VdbeMemRelease(tls, p) + (*Mem)(unsafe.Pointer(p)).Fflags = U16(MEM_Undefined) } else if (*Mem)(unsafe.Pointer(p)).FszMalloc != 0 { Xsqlite3DbFreeNN(tls, db, (*Mem)(unsafe.Pointer(p)).FzMalloc) (*Mem)(unsafe.Pointer(p)).FszMalloc = 0 + (*Mem)(unsafe.Pointer(p)).Fflags = U16(MEM_Undefined) } - - (*Mem)(unsafe.Pointer(p)).Fflags = U16(MEM_Undefined) } } } @@ -104132,7 +104411,7 @@ func releaseMemArray(tls *libc.TLS, p uintptr, N int32) { /* testdata/sqlite-ama // // This routine does not delete the Frame right away. It merely adds the // frame to a list of frames to be deleted when the Vdbe halts. -func Xsqlite3VdbeFrameMemDel(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81745:21: */ +func Xsqlite3VdbeFrameMemDel(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82697:21: */ var pFrame uintptr = pArg (*VdbeFrame)(unsafe.Pointer(pFrame)).FpParent = (*Vdbe)(unsafe.Pointer((*VdbeFrame)(unsafe.Pointer(pFrame)).Fv)).FpDelFrame @@ -104144,7 +104423,7 @@ func Xsqlite3VdbeFrameMemDel(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-a // // Return SQLITE_ROW on success. Return SQLITE_DONE if there are no // more opcodes to be displayed. -func Xsqlite3VdbeNextOpcode(tls *libc.TLS, p uintptr, pSub uintptr, eMode int32, piPc uintptr, piAddr uintptr, paOp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81760:20: */ +func Xsqlite3VdbeNextOpcode(tls *libc.TLS, p uintptr, pSub uintptr, eMode int32, piPc uintptr, piAddr uintptr, paOp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82712:20: */ var nRow int32 // Stop when row count reaches this var nSub int32 = 0 // Number of sub-vdbes seen so far var apSub uintptr = uintptr(0) // Array of sub-vdbes @@ -104243,13 +104522,15 @@ func Xsqlite3VdbeNextOpcode(tls *libc.TLS, p uintptr, pSub uintptr, eMode int32, // Delete a VdbeFrame object and its contents. VdbeFrame objects are // allocated by the OP_Program opcode in sqlite3VdbeExec(). -func Xsqlite3VdbeFrameDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81872:21: */ +func Xsqlite3VdbeFrameDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82824:21: */ var i int32 var aMem uintptr = p + 120 var apCsr uintptr = aMem + uintptr((*VdbeFrame)(unsafe.Pointer(p)).FnChildMem)*56 for i = 0; i < (*VdbeFrame)(unsafe.Pointer(p)).FnChildCsr; i++ { - Xsqlite3VdbeFreeCursor(tls, (*VdbeFrame)(unsafe.Pointer(p)).Fv, *(*uintptr)(unsafe.Pointer(apCsr + uintptr(i)*8))) + if *(*uintptr)(unsafe.Pointer(apCsr + uintptr(i)*8)) != 0 { + Xsqlite3VdbeFreeCursorNN(tls, (*VdbeFrame)(unsafe.Pointer(p)).Fv, *(*uintptr)(unsafe.Pointer(apCsr + uintptr(i)*8))) + } } releaseMemArray(tls, aMem, (*VdbeFrame)(unsafe.Pointer(p)).FnChildMem) Xsqlite3VdbeDeleteAuxData(tls, (*Vdbe)(unsafe.Pointer((*VdbeFrame)(unsafe.Pointer(p)).Fv)).Fdb, p+72, -1, 0) @@ -104272,7 +104553,7 @@ func Xsqlite3VdbeFrameDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amal // // When p->explain==1, first the main program is listed, then each of // the trigger subprograms are listed one by one. -func Xsqlite3VdbeList(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81904:20: */ +func Xsqlite3VdbeList(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82856:20: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -104282,7 +104563,7 @@ func Xsqlite3VdbeList(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // Loop counter var rc int32 = SQLITE_OK // Return code var pMem uintptr = (*Vdbe)(unsafe.Pointer(p)).FaMem + 1*56 // First Mem of result set - var bListSubprogs int32 = libc.Bool32(int32(*(*uint16)(unsafe.Pointer(p + 208))&0xc>>2) == 1 || (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_TriggerEQP) != uint64(0)) + var bListSubprogs int32 = libc.Bool32(int32(*(*uint8)(unsafe.Pointer(p + 200))&0xc>>2) == 1 || (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_TriggerEQP) != uint64(0)) // var aOp uintptr at bp+8, 8 // Array of opcodes var pOp uintptr // Current opcode @@ -104312,7 +104593,7 @@ func Xsqlite3VdbeList(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg } // Figure out which opcode is next to display - rc = Xsqlite3VdbeNextOpcode(tls, p, pSub, libc.Bool32(int32(*(*uint16)(unsafe.Pointer(p + 208))&0xc>>2) == 2), p+52, bp, bp+8) + rc = Xsqlite3VdbeNextOpcode(tls, p, pSub, libc.Bool32(int32(*(*uint8)(unsafe.Pointer(p + 200))&0xc>>2) == 2), p+48, bp, bp+8) if rc == SQLITE_OK { pOp = *(*uintptr)(unsafe.Pointer(bp + 8)) + uintptr(*(*int32)(unsafe.Pointer(bp)))*24 @@ -104322,7 +104603,7 @@ func Xsqlite3VdbeList(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg Xsqlite3VdbeError(tls, p, Xsqlite3ErrStr(tls, (*Vdbe)(unsafe.Pointer(p)).Frc), 0) } else { var zP4 uintptr = Xsqlite3VdbeDisplayP4(tls, db, pOp) - if int32(*(*uint16)(unsafe.Pointer(p + 208))&0xc>>2) == 2 { + if int32(*(*uint8)(unsafe.Pointer(p + 200))&0xc>>2) == 2 { Xsqlite3VdbeMemSetInt64(tls, pMem, int64((*Op)(unsafe.Pointer(pOp)).Fp1)) Xsqlite3VdbeMemSetInt64(tls, pMem+uintptr(1)*56, int64((*Op)(unsafe.Pointer(pOp)).Fp2)) Xsqlite3VdbeMemSetInt64(tls, pMem+uintptr(2)*56, int64((*Op)(unsafe.Pointer(pOp)).Fp3)) @@ -104361,7 +104642,7 @@ type ReusableSpace = struct { FpSpace uintptr FnFree Sqlite3_int64 FnNeeded Sqlite3_int64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82049:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83001:1 */ // Try to allocate nByte bytes of 8-byte aligned bulk memory for pBuf // from the ReusableSpace object. Return a pointer to the allocated @@ -104376,10 +104657,10 @@ type ReusableSpace = struct { // This allocator is employed to repurpose unused slots at the end of the // opcode array of prepared state for other memory needs of the prepared // statement. -func allocSpace(tls *libc.TLS, p uintptr, pBuf uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82069:13: */ +func allocSpace(tls *libc.TLS, p uintptr, pBuf uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83021:13: */ if pBuf == uintptr(0) { - nByte = (nByte + int64(7)) & int64(libc.CplInt32(7)) + nByte = nByte if nByte <= (*ReusableSpace)(unsafe.Pointer(p)).FnFree { *(*Sqlite3_int64)(unsafe.Pointer(p + 8)) -= nByte pBuf = (*ReusableSpace)(unsafe.Pointer(p)).FpSpace + uintptr((*ReusableSpace)(unsafe.Pointer(p)).FnFree) @@ -104393,12 +104674,11 @@ func allocSpace(tls *libc.TLS, p uintptr, pBuf uintptr, nByte Sqlite3_int64) uin // Rewind the VDBE back to the beginning in preparation for // running it. -func Xsqlite3VdbeRewind(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82092:21: */ +func Xsqlite3VdbeRewind(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83044:21: */ // There should be at least one opcode. - // Set the magic to VDBE_MAGIC_RUN sooner rather than later. - (*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic = U32(VDBE_MAGIC_RUN) + (*Vdbe)(unsafe.Pointer(p)).FeVdbeState = U8(VDBE_READY_STATE) (*Vdbe)(unsafe.Pointer(p)).Fpc = -1 (*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_OK @@ -104426,7 +104706,7 @@ func Xsqlite3VdbeRewind(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamat // // Use the sqlite3VdbeRewind() procedure to restore a virtual machine back // to its initial state after it has been run. -func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82145:21: */ +func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83098:21: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -104461,13 +104741,13 @@ func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* testda // Figure out how much reusable memory is available at the end of the // opcode array. This extra memory will be reallocated for other elements // of the prepared statement. - n = int32((uint64(unsafe.Sizeof(Op{}))*uint64((*Vdbe)(unsafe.Pointer(p)).FnOp) + uint64(7)) & libc.Uint64FromInt32(libc.CplInt32(7))) // Bytes of opcode memory used - (*ReusableSpace)(unsafe.Pointer(bp + 8 /* &x */)).FpSpace = (*Vdbe)(unsafe.Pointer(p)).FaOp + uintptr(n) // Unused opcode memory + n = int32(uint64(unsafe.Sizeof(Op{})) * uint64((*Vdbe)(unsafe.Pointer(p)).FnOp)) // Bytes of opcode memory used + (*ReusableSpace)(unsafe.Pointer(bp + 8 /* &x */)).FpSpace = (*Vdbe)(unsafe.Pointer(p)).FaOp + uintptr(n) // Unused opcode memory (*ReusableSpace)(unsafe.Pointer(bp + 8 /* &x */)).FnFree = Sqlite3_int64(((*Parse)(unsafe.Pointer(pParse)).FszOpAlloc - n) & libc.CplInt32(7)) // Bytes of unused memory resolveP2Values(tls, p, bp) - libc.SetBitFieldPtr16Uint32(p+208, Bft(U8(libc.Bool32((*Parse)(unsafe.Pointer(pParse)).FisMultiWrite != 0 && (*Parse)(unsafe.Pointer(pParse)).FmayAbort != 0))), 6, 0x40) + libc.SetBitFieldPtr8Uint32(p+200, Bft(U8(libc.Bool32((*Parse)(unsafe.Pointer(pParse)).FisMultiWrite != 0 && (*Parse)(unsafe.Pointer(pParse)).FmayAbort != 0))), 5, 0x20) if (*Parse)(unsafe.Pointer(pParse)).Fexplain != 0 { var iFirst int32 var mx int32 @@ -104475,7 +104755,7 @@ func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* testda if nMem < 10 { nMem = 10 } - libc.SetBitFieldPtr16Uint32(p+208, Bft((*Parse)(unsafe.Pointer(pParse)).Fexplain), 2, 0xc) + libc.SetBitFieldPtr8Uint32(p+200, Bft((*Parse)(unsafe.Pointer(pParse)).Fexplain), 2, 0xc) if int32((*Parse)(unsafe.Pointer(pParse)).Fexplain) == 2 { Xsqlite3VdbeSetNumCols(tls, p, 4) iFirst = 8 @@ -104490,7 +104770,7 @@ func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* testda azColName[i], uintptr(0)) } } - libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 0, 0x3) + libc.SetBitFieldPtr8Uint32(p+200, Bft(0), 0, 0x3) // Memory for registers, parameters, cursor, etc, is allocated in one or two // passes. On the first pass, we try to reuse unused memory at the @@ -104507,7 +104787,7 @@ func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* testda (*Vdbe)(unsafe.Pointer(p)).FapArg = allocSpace(tls, bp+8, uintptr(0), int64(uint64(*(*int32)(unsafe.Pointer(bp)))*uint64(unsafe.Sizeof(uintptr(0))))) (*Vdbe)(unsafe.Pointer(p)).FapCsr = allocSpace(tls, bp+8, uintptr(0), int64(uint64(nCursor)*uint64(unsafe.Sizeof(uintptr(0))))) if (*ReusableSpace)(unsafe.Pointer(bp+8)).FnNeeded != 0 { - (*ReusableSpace)(unsafe.Pointer(bp + 8 /* &x */)).FpSpace = libc.AssignPtrUintptr(p+264, Xsqlite3DbMallocRawNN(tls, db, uint64((*ReusableSpace)(unsafe.Pointer(bp+8 /* &x */)).FnNeeded))) + (*ReusableSpace)(unsafe.Pointer(bp + 8 /* &x */)).FpSpace = libc.AssignPtrUintptr(p+256, Xsqlite3DbMallocRawNN(tls, db, uint64((*ReusableSpace)(unsafe.Pointer(bp+8 /* &x */)).FnNeeded))) (*ReusableSpace)(unsafe.Pointer(bp + 8 /* &x */)).FnFree = (*ReusableSpace)(unsafe.Pointer(bp + 8 /* &x */)).FnNeeded if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) { (*Vdbe)(unsafe.Pointer(p)).FaMem = allocSpace(tls, bp+8, (*Vdbe)(unsafe.Pointer(p)).FaMem, int64(uint64(nMem)*uint64(unsafe.Sizeof(Mem{})))) @@ -104533,16 +104813,19 @@ func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* testda } var azColName = [12]uintptr{ - ts + 6325, ts + 6330, ts + 6337, ts + 6340, ts + 6343, ts + 6346, ts + 6349, ts + 6352, - ts + 6360, ts + 6363, ts + 6370, ts + 6378, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82193:23 */ + ts + 6360, ts + 6365, ts + 6372, ts + 6375, ts + 6378, ts + 6381, ts + 6384, ts + 6387, + ts + 6395, ts + 6398, ts + 6405, ts + 6413, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83146:23 */ // Close a VDBE cursor and release all the resources that cursor // happens to hold. -func Xsqlite3VdbeFreeCursor(tls *libc.TLS, p uintptr, pCx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82270:21: */ - if pCx == uintptr(0) { - return +func Xsqlite3VdbeFreeCursor(tls *libc.TLS, p uintptr, pCx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83223:21: */ + if pCx != 0 { + Xsqlite3VdbeFreeCursorNN(tls, p, pCx) } +} + +func Xsqlite3VdbeFreeCursorNN(tls *libc.TLS, p uintptr, pCx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83226:21: */ switch int32((*VdbeCursor)(unsafe.Pointer(pCx)).FeCurType) { case CURTYPE_SORTER: { @@ -104573,15 +104856,13 @@ func Xsqlite3VdbeFreeCursor(tls *libc.TLS, p uintptr, pCx uintptr) { /* testdata } // Close all cursors in the current frame. -func closeCursorsInFrame(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82300:13: */ - if (*Vdbe)(unsafe.Pointer(p)).FapCsr != 0 { - var i int32 - for i = 0; i < (*Vdbe)(unsafe.Pointer(p)).FnCursor; i++ { - var pC uintptr = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr(i)*8)) - if pC != 0 { - Xsqlite3VdbeFreeCursor(tls, p, pC) - *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr(i)*8)) = uintptr(0) - } +func closeCursorsInFrame(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83253:13: */ + var i int32 + for i = 0; i < (*Vdbe)(unsafe.Pointer(p)).FnCursor; i++ { + var pC uintptr = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr(i)*8)) + if pC != 0 { + Xsqlite3VdbeFreeCursorNN(tls, p, pC) + *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr(i)*8)) = uintptr(0) } } } @@ -104589,7 +104870,7 @@ func closeCursorsInFrame(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama // Copy the values stored in the VdbeFrame structure to its Vdbe. This // is used, for example, when a trigger sub-program is halted to restore // control to the main program. -func Xsqlite3VdbeFrameRestore(tls *libc.TLS, pFrame uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82318:20: */ +func Xsqlite3VdbeFrameRestore(tls *libc.TLS, pFrame uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83269:20: */ var v uintptr = (*VdbeFrame)(unsafe.Pointer(pFrame)).Fv closeCursorsInFrame(tls, v) (*Vdbe)(unsafe.Pointer(v)).FaOp = (*VdbeFrame)(unsafe.Pointer(pFrame)).FaOp @@ -104601,7 +104882,7 @@ func Xsqlite3VdbeFrameRestore(tls *libc.TLS, pFrame uintptr) int32 { /* testdata (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(v)).Fdb)).FlastRowid = (*VdbeFrame)(unsafe.Pointer(pFrame)).FlastRowid (*Vdbe)(unsafe.Pointer(v)).FnChange = (*VdbeFrame)(unsafe.Pointer(pFrame)).FnChange (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(v)).Fdb)).FnChange = (*VdbeFrame)(unsafe.Pointer(pFrame)).FnDbChange - Xsqlite3VdbeDeleteAuxData(tls, (*Vdbe)(unsafe.Pointer(v)).Fdb, v+304, -1, 0) + Xsqlite3VdbeDeleteAuxData(tls, (*Vdbe)(unsafe.Pointer(v)).Fdb, v+296, -1, 0) (*Vdbe)(unsafe.Pointer(v)).FpAuxData = (*VdbeFrame)(unsafe.Pointer(pFrame)).FpAuxData (*VdbeFrame)(unsafe.Pointer(pFrame)).FpAuxData = uintptr(0) return (*VdbeFrame)(unsafe.Pointer(pFrame)).Fpc @@ -104613,7 +104894,7 @@ func Xsqlite3VdbeFrameRestore(tls *libc.TLS, pFrame uintptr) int32 { /* testdata // cell array. This is necessary as the memory cell array may contain // pointers to VdbeFrame objects, which may in turn contain pointers to // open cursors. -func closeAllCursors(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82347:13: */ +func closeAllCursors(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83298:13: */ if (*Vdbe)(unsafe.Pointer(p)).FpFrame != 0 { var pFrame uintptr for pFrame = (*Vdbe)(unsafe.Pointer(p)).FpFrame; (*VdbeFrame)(unsafe.Pointer(pFrame)).FpParent != 0; pFrame = (*VdbeFrame)(unsafe.Pointer(pFrame)).FpParent { @@ -104624,9 +104905,7 @@ func closeAllCursors(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation } closeCursorsInFrame(tls, p) - if (*Vdbe)(unsafe.Pointer(p)).FaMem != 0 { - releaseMemArray(tls, (*Vdbe)(unsafe.Pointer(p)).FaMem, (*Vdbe)(unsafe.Pointer(p)).FnMem) - } + releaseMemArray(tls, (*Vdbe)(unsafe.Pointer(p)).FaMem, (*Vdbe)(unsafe.Pointer(p)).FnMem) for (*Vdbe)(unsafe.Pointer(p)).FpDelFrame != 0 { var pDel uintptr = (*Vdbe)(unsafe.Pointer(p)).FpDelFrame (*Vdbe)(unsafe.Pointer(p)).FpDelFrame = (*VdbeFrame)(unsafe.Pointer(pDel)).FpParent @@ -104635,7 +104914,7 @@ func closeAllCursors(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation // Delete any auxdata allocations made by the VM if (*Vdbe)(unsafe.Pointer(p)).FpAuxData != 0 { - Xsqlite3VdbeDeleteAuxData(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, p+304, -1, 0) + Xsqlite3VdbeDeleteAuxData(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, p+296, -1, 0) } } @@ -104644,7 +104923,7 @@ func closeAllCursors(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation // statement. This is now set at compile time, rather than during // execution of the vdbe program so that sqlite3_column_count() can // be called on an SQL statement before sqlite3_step(). -func Xsqlite3VdbeSetNumCols(tls *libc.TLS, p uintptr, nResColumn int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82377:21: */ +func Xsqlite3VdbeSetNumCols(tls *libc.TLS, p uintptr, nResColumn int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83326:21: */ var n int32 var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb @@ -104669,7 +104948,7 @@ func Xsqlite3VdbeSetNumCols(tls *libc.TLS, p uintptr, nResColumn int32) { /* tes // The final parameter, xDel, must be one of SQLITE_DYNAMIC, SQLITE_STATIC // or SQLITE_TRANSIENT. If it is SQLITE_DYNAMIC, then the buffer pointed // to by zName will be freed by sqlite3DbFree() when the vdbe is destroyed. -func Xsqlite3VdbeSetColName(tls *libc.TLS, p uintptr, idx int32, var1 int32, zName uintptr, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82402:20: */ +func Xsqlite3VdbeSetColName(tls *libc.TLS, p uintptr, idx int32, var1 int32, zName uintptr, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83351:20: */ var rc int32 var pColName uintptr @@ -104688,7 +104967,7 @@ func Xsqlite3VdbeSetColName(tls *libc.TLS, p uintptr, idx int32, var1 int32, zNa // db. If a transaction is active, commit it. If there is a // write-transaction spanning more than one database file, this routine // takes care of the super-journal trickery. -func vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82430:12: */ +func vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83379:12: */ bp := tls.Alloc(72) defer tls.Free(72) @@ -104785,7 +105064,7 @@ func vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite // Select a super-journal file name nMainFile = Xsqlite3Strlen30(tls, zMainFile) - zSuper = Xsqlite3MPrintf(tls, db, ts+6385, libc.VaList(bp, 0, zMainFile, 0)) + zSuper = Xsqlite3MPrintf(tls, db, ts+6420, libc.VaList(bp, 0, zMainFile, 0)) if zSuper == uintptr(0) { return SQLITE_NOMEM } @@ -104795,16 +105074,16 @@ func vdbeCommit(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite if retryCount != 0 { if retryCount > 100 { - Xsqlite3_log(tls, SQLITE_FULL, ts+6397, libc.VaList(bp+24, zSuper)) + Xsqlite3_log(tls, SQLITE_FULL, ts+6432, libc.VaList(bp+24, zSuper)) Xsqlite3OsDelete(tls, pVfs, zSuper, 0) break } else if retryCount == 1 { - Xsqlite3_log(tls, SQLITE_FULL, ts+6411, libc.VaList(bp+32, zSuper)) + Xsqlite3_log(tls, SQLITE_FULL, ts+6446, libc.VaList(bp+32, zSuper)) } } retryCount++ Xsqlite3_randomness(tls, int32(unsafe.Sizeof(U32(0))), bp+56) - Xsqlite3_snprintf(tls, 13, zSuper+uintptr(nMainFile), ts+6426, + Xsqlite3_snprintf(tls, 13, zSuper+uintptr(nMainFile), ts+6461, libc.VaList(bp+40, *(*U32)(unsafe.Pointer(bp + 56))>>8&U32(0xffffff), *(*U32)(unsafe.Pointer(bp + 56))&U32(0xff))) // The antipenultimate character of the super-journal name must // be "9" to avoid name collisions when using 8+3 filenames. @@ -104916,7 +105195,7 @@ var aMJNeeded = [6]U8{ /* TRUNCATE */ U8(1), /* MEMORY */ U8(0), /* WAL */ U8(0), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82465:23 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83414:23 */ // This routine checks that the sqlite3.nVdbeActive count variable // matches the number of vdbe's in the list sqlite3.pVdbe that are @@ -104934,7 +105213,7 @@ var aMJNeeded = [6]U8{ // // If an IO error occurs, an SQLITE_IOERR_XXX error code is returned. // Otherwise SQLITE_OK. -func vdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82726:28: */ +func vdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83675:28: */ var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb var rc int32 = SQLITE_OK var i int32 @@ -104977,7 +105256,7 @@ func vdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* testdata return rc } -func Xsqlite3VdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82772:20: */ +func Xsqlite3VdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83721:20: */ if (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).FnStatement != 0 && (*Vdbe)(unsafe.Pointer(p)).FiStatement != 0 { return vdbeCloseStatement(tls, p, eOp) } @@ -104992,14 +105271,17 @@ func Xsqlite3VdbeCloseStatement(tls *libc.TLS, p uintptr, eOp int32) int32 { /* // If there are outstanding FK violations and this function returns // SQLITE_ERROR, set the result of the VM to SQLITE_CONSTRAINT_FOREIGNKEY // and write an error message to it. Then return SQLITE_ERROR. -func Xsqlite3VdbeCheckFk(tls *libc.TLS, p uintptr, deferred int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82791:20: */ +func Xsqlite3VdbeCheckFk(tls *libc.TLS, p uintptr, deferred int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83740:20: */ var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb if deferred != 0 && (*Sqlite3)(unsafe.Pointer(db)).FnDeferredCons+(*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons > int64(0) || !(deferred != 0) && (*Vdbe)(unsafe.Pointer(p)).FnFkConstraint > int64(0) { (*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_CONSTRAINT | int32(3)<<8 (*Vdbe)(unsafe.Pointer(p)).FerrorAction = U8(OE_Abort) - Xsqlite3VdbeError(tls, p, ts+6439, 0) - return SQLITE_ERROR + Xsqlite3VdbeError(tls, p, ts+6474, 0) + if int32((*Vdbe)(unsafe.Pointer(p)).FprepFlags)&SQLITE_PREPARE_SAVESQL == 0 { + return SQLITE_ERROR + } + return SQLITE_CONSTRAINT | int32(3)<<8 } return SQLITE_OK } @@ -105015,7 +105297,7 @@ func Xsqlite3VdbeCheckFk(tls *libc.TLS, p uintptr, deferred int32) int32 { /* te // Return an error code. If the commit could not complete because of // lock contention, return SQLITE_BUSY. If SQLITE_BUSY is returned, it // means the close did not happen and needs to be repeated. -func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82818:20: */ +func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83768:20: */ var rc int32 // Used to store transient return codes var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb @@ -105034,9 +105316,6 @@ func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // state. We need to rollback the statement transaction, if there is // one, or the complete transaction if there is no statement transaction. - if (*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic != U32(VDBE_MAGIC_RUN) { - return SQLITE_OK - } if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { (*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM } @@ -105044,7 +105323,7 @@ func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // No commit or rollback needed if the program never started or if the // SQL statement does not read or write a database file. - if (*Vdbe)(unsafe.Pointer(p)).Fpc >= 0 && Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x100>>8)) != 0 { + if Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x80>>7)) != 0 { var mrc int32 // Primary error code from p->rc var eStatementOp int32 = 0 var isSpecialError int32 // Set to true if a 'special' error @@ -105074,8 +105353,8 @@ func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // file as part of an effort to free up cache space (see function // pagerStress() in pager.c), the rollback is required to restore // the pager to a consistent state. - if !(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x80>>7) != 0) || mrc != SQLITE_INTERRUPT { - if (mrc == SQLITE_NOMEM || mrc == SQLITE_FULL) && Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x40>>6)) != 0 { + if !(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x40>>6) != 0) || mrc != SQLITE_INTERRUPT { + if (mrc == SQLITE_NOMEM || mrc == SQLITE_FULL) && Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x20>>5)) != 0 { eStatementOp = SAVEPOINT_ROLLBACK } else { // We are forced to roll back the active transaction. Before doing @@ -105100,11 +105379,11 @@ func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // above has occurred. if !((*Sqlite3)(unsafe.Pointer(db)).FnVTrans > 0 && (*Sqlite3)(unsafe.Pointer(db)).FaVTrans == uintptr(0)) && (*Sqlite3)(unsafe.Pointer(db)).FautoCommit != 0 && - (*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite == libc.Bool32(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x80>>7) == 0) { + (*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite == libc.Bool32(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x40>>6) == 0) { if (*Vdbe)(unsafe.Pointer(p)).Frc == SQLITE_OK || int32((*Vdbe)(unsafe.Pointer(p)).FerrorAction) == OE_Fail && !(isSpecialError != 0) { rc = Xsqlite3VdbeCheckFk(tls, p, 1) if rc != SQLITE_OK { - if Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x80>>7)) != 0 { + if Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x40>>6)) != 0 { Xsqlite3VdbeLeave(tls, p) return SQLITE_ERROR } @@ -105119,7 +105398,7 @@ func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // is required. rc = vdbeCommit(tls, db, p) } - if rc == SQLITE_BUSY && Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x80>>7)) != 0 { + if rc == SQLITE_BUSY && Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x40>>6)) != 0 { Xsqlite3VdbeLeave(tls, p) return SQLITE_BUSY } else if rc != SQLITE_OK { @@ -105172,7 +105451,7 @@ func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // If this was an INSERT, UPDATE or DELETE and no statement transaction // has been rolled back, update the database connection change-counter. - if Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x10>>4)) != 0 { + if Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x10>>4)) != 0 { if eStatementOp != SAVEPOINT_ROLLBACK { Xsqlite3VdbeSetChanges(tls, db, (*Vdbe)(unsafe.Pointer(p)).FnChange) } else { @@ -105186,17 +105465,15 @@ func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg } // We have successfully halted and closed the VM. Record this fact. - if (*Vdbe)(unsafe.Pointer(p)).Fpc >= 0 { - (*Sqlite3)(unsafe.Pointer(db)).FnVdbeActive-- - if !(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x80>>7) != 0) { - (*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite-- - } - if Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x100>>8)) != 0 { - (*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead-- - } - + (*Sqlite3)(unsafe.Pointer(db)).FnVdbeActive-- + if !(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x40>>6) != 0) { + (*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite-- + } + if Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x80>>7)) != 0 { + (*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead-- } - (*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic = U32(VDBE_MAGIC_HALT) + + (*Vdbe)(unsafe.Pointer(p)).FeVdbeState = U8(VDBE_HALT_STATE) if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { (*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM @@ -105219,7 +105496,7 @@ func Xsqlite3VdbeHalt(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // Each VDBE holds the result of the most recent sqlite3_step() call // in p->rc. This routine sets that result back to SQLITE_OK. -func Xsqlite3VdbeResetStepResult(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83028:21: */ +func Xsqlite3VdbeResetStepResult(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83974:21: */ (*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_OK } @@ -105229,7 +105506,7 @@ func Xsqlite3VdbeResetStepResult(tls *libc.TLS, p uintptr) { /* testdata/sqlite- // // This function does not clear the VDBE error code or message, just // copies them to the database handle. -func Xsqlite3VdbeTransferError(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83040:20: */ +func Xsqlite3VdbeTransferError(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:83986:20: */ var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb var rc int32 = (*Vdbe)(unsafe.Pointer(p)).Frc if (*Vdbe)(unsafe.Pointer(p)).FzErrMsg != 0 { @@ -105256,19 +105533,18 @@ func Xsqlite3VdbeTransferError(tls *libc.TLS, p uintptr) int32 { /* testdata/sql // again. // // To look at it another way, this routine resets the state of the -// virtual machine from VDBE_MAGIC_RUN or VDBE_MAGIC_HALT back to -// VDBE_MAGIC_INIT. -func Xsqlite3VdbeReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83090:20: */ - bp := tls.Alloc(8) - defer tls.Free(8) - +// virtual machine from VDBE_RUN_STATE or VDBE_HALT_STATE back to +// VDBE_READY_STATE. +func Xsqlite3VdbeReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84036:20: */ var db uintptr db = (*Vdbe)(unsafe.Pointer(p)).Fdb // If the VM did not run to completion or if it encountered an // error, then it might not have been halted properly. So halt // it now. - Xsqlite3VdbeHalt(tls, p) + if int32((*Vdbe)(unsafe.Pointer(p)).FeVdbeState) == VDBE_RUN_STATE { + Xsqlite3VdbeHalt(tls, p) + } // If the VDBE has been run even partially, then transfer the error code // and error message from the VDBE into the main database structure. But @@ -105281,19 +105557,6 @@ func Xsqlite3VdbeReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amal } else { (*Sqlite3)(unsafe.Pointer(db)).FerrCode = (*Vdbe)(unsafe.Pointer(p)).Frc } - if Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x20>>5)) != 0 { - libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 0, 0x3) - } - } else if (*Vdbe)(unsafe.Pointer(p)).Frc != 0 && Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x3>>0)) != 0 { - // The expired flag was set on the VDBE before the first call - // to sqlite3_step(). For consistency (since sqlite3_step() was - // called), set the database error in this case as well. - Xsqlite3ErrorWithMsg(tls, db, (*Vdbe)(unsafe.Pointer(p)).Frc, func() uintptr { - if (*Vdbe)(unsafe.Pointer(p)).FzErrMsg != 0 { - return ts + 4444 /* "%s" */ - } - return uintptr(0) - }(), libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg)) } // Reset register contents and reclaim error message memory. @@ -105304,15 +105567,15 @@ func Xsqlite3VdbeReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amal (*Vdbe)(unsafe.Pointer(p)).FpResultSet = uintptr(0) // Save profiling information from this VDBE run. - (*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic = U32(VDBE_MAGIC_RESET) return (*Vdbe)(unsafe.Pointer(p)).Frc & (*Sqlite3)(unsafe.Pointer(db)).FerrMask } // Clean up and delete a VDBE after execution. Return an integer which is // the result code. Write any error message text into *pzErrMsg. -func Xsqlite3VdbeFinalize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83187:20: */ +func Xsqlite3VdbeFinalize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84125:20: */ var rc int32 = SQLITE_OK - if (*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic == U32(VDBE_MAGIC_RUN) || (*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic == U32(VDBE_MAGIC_HALT) { + + if int32((*Vdbe)(unsafe.Pointer(p)).FeVdbeState) >= VDBE_READY_STATE { rc = Xsqlite3VdbeReset(tls, p) } @@ -105329,12 +105592,12 @@ func Xsqlite3VdbeFinalize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-a // function invoked by the OP_Function opcode at instruction iOp of // VM pVdbe, and only then if: // -// * the associated function parameter is the 32nd or later (counting -// from left to right), or +// - the associated function parameter is the 32nd or later (counting +// from left to right), or // -// * the corresponding bit in argument mask is clear (where the first -// function parameter corresponds to bit 0 etc.). -func Xsqlite3VdbeDeleteAuxData(tls *libc.TLS, db uintptr, pp uintptr, iOp int32, mask int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83213:21: */ +// - the corresponding bit in argument mask is clear (where the first +// function parameter corresponds to bit 0 etc.). +func Xsqlite3VdbeDeleteAuxData(tls *libc.TLS, db uintptr, pp uintptr, iOp int32, mask int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84154:21: */ for *(*uintptr)(unsafe.Pointer(pp)) != 0 { var pAux uintptr = *(*uintptr)(unsafe.Pointer(pp)) if iOp < 0 || @@ -105359,51 +105622,57 @@ func Xsqlite3VdbeDeleteAuxData(tls *libc.TLS, db uintptr, pp uintptr, iOp int32, // The difference between this function and sqlite3VdbeDelete() is that // VdbeDelete() also unlinks the Vdbe from the list of VMs associated with // the database connection and frees the object itself. -func Xsqlite3VdbeClearObject(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83241:21: */ +func sqlite3VdbeClearObject(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84182:13: */ var pSub uintptr var pNext uintptr - releaseMemArray(tls, (*Vdbe)(unsafe.Pointer(p)).FaColName, int32((*Vdbe)(unsafe.Pointer(p)).FnResColumn)*COLNAME_N) + if (*Vdbe)(unsafe.Pointer(p)).FaColName != 0 { + releaseMemArray(tls, (*Vdbe)(unsafe.Pointer(p)).FaColName, int32((*Vdbe)(unsafe.Pointer(p)).FnResColumn)*COLNAME_N) + Xsqlite3DbFreeNN(tls, db, (*Vdbe)(unsafe.Pointer(p)).FaColName) + } for pSub = (*Vdbe)(unsafe.Pointer(p)).FpProgram; pSub != 0; pSub = pNext { pNext = (*SubProgram)(unsafe.Pointer(pSub)).FpNext vdbeFreeOpArray(tls, db, (*SubProgram)(unsafe.Pointer(pSub)).FaOp, (*SubProgram)(unsafe.Pointer(pSub)).FnOp) Xsqlite3DbFree(tls, db, pSub) } - if (*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic != U32(VDBE_MAGIC_INIT) { + if int32((*Vdbe)(unsafe.Pointer(p)).FeVdbeState) != VDBE_INIT_STATE { releaseMemArray(tls, (*Vdbe)(unsafe.Pointer(p)).FaVar, int32((*Vdbe)(unsafe.Pointer(p)).FnVar)) - Xsqlite3DbFree(tls, db, (*Vdbe)(unsafe.Pointer(p)).FpVList) - Xsqlite3DbFree(tls, db, (*Vdbe)(unsafe.Pointer(p)).FpFree) + if (*Vdbe)(unsafe.Pointer(p)).FpVList != 0 { + Xsqlite3DbFreeNN(tls, db, (*Vdbe)(unsafe.Pointer(p)).FpVList) + } + if (*Vdbe)(unsafe.Pointer(p)).FpFree != 0 { + Xsqlite3DbFreeNN(tls, db, (*Vdbe)(unsafe.Pointer(p)).FpFree) + } } vdbeFreeOpArray(tls, db, (*Vdbe)(unsafe.Pointer(p)).FaOp, (*Vdbe)(unsafe.Pointer(p)).FnOp) - Xsqlite3DbFree(tls, db, (*Vdbe)(unsafe.Pointer(p)).FaColName) Xsqlite3DbFree(tls, db, (*Vdbe)(unsafe.Pointer(p)).FzSql) } // Delete an entire VDBE. -func Xsqlite3VdbeDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83282:21: */ +func Xsqlite3VdbeDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84225:21: */ var db uintptr db = (*Vdbe)(unsafe.Pointer(p)).Fdb - Xsqlite3VdbeClearObject(tls, db, p) - if (*Vdbe)(unsafe.Pointer(p)).FpPrev != 0 { - (*Vdbe)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FpPrev)).FpNext = (*Vdbe)(unsafe.Pointer(p)).FpNext - } else { + sqlite3VdbeClearObject(tls, db, p) + if (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed == uintptr(0) { + if (*Vdbe)(unsafe.Pointer(p)).FpPrev != 0 { + (*Vdbe)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FpPrev)).FpNext = (*Vdbe)(unsafe.Pointer(p)).FpNext + } else { - (*Sqlite3)(unsafe.Pointer(db)).FpVdbe = (*Vdbe)(unsafe.Pointer(p)).FpNext - } - if (*Vdbe)(unsafe.Pointer(p)).FpNext != 0 { - (*Vdbe)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FpNext)).FpPrev = (*Vdbe)(unsafe.Pointer(p)).FpPrev + (*Sqlite3)(unsafe.Pointer(db)).FpVdbe = (*Vdbe)(unsafe.Pointer(p)).FpNext + } + if (*Vdbe)(unsafe.Pointer(p)).FpNext != 0 { + (*Vdbe)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FpNext)).FpPrev = (*Vdbe)(unsafe.Pointer(p)).FpPrev + } } - (*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic = U32(VDBE_MAGIC_DEAD) - (*Vdbe)(unsafe.Pointer(p)).Fdb = uintptr(0) Xsqlite3DbFreeNN(tls, db, p) } // The cursor "p" has a pending seek operation that has not yet been // carried out. Seek the cursor now. If an error occurs, return // the appropriate error code. -func Xsqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83308:36: */ +func Xsqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84251:36: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -105416,7 +105685,7 @@ func Xsqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) int32 { /* testdata/sqli return rc } if *(*int32)(unsafe.Pointer(bp)) != 0 { - return Xsqlite3CorruptError(tls, 83318) + return Xsqlite3CorruptError(tls, 84261) } (*VdbeCursor)(unsafe.Pointer(p)).FdeferredMoveto = U8(0) (*VdbeCursor)(unsafe.Pointer(p)).FcacheStatus = U32(CACHE_STALE) @@ -105428,7 +105697,7 @@ func Xsqlite3VdbeFinishMoveto(tls *libc.TLS, p uintptr) int32 { /* testdata/sqli // rebalanced. Whatever the cause, try to restore "p" to the place it // is supposed to be pointing. If the row was deleted out from under the // cursor, set the cursor to point to a NULL row. -func handleMovedCursor(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83334:28: */ +func Xsqlite3VdbeHandleMovedCursor(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84277:36: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -105446,40 +105715,10 @@ func handleMovedCursor(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amal // Check to ensure that the cursor is valid. Restore the cursor // if need be. Return any I/O error from the restore operation. -func Xsqlite3VdbeCursorRestore(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83349:20: */ - - if Xsqlite3BtreeCursorHasMoved(tls, *(*uintptr)(unsafe.Pointer(p + 48))) != 0 { - return handleMovedCursor(tls, p) - } - return SQLITE_OK -} - -// Make sure the cursor p is ready to read or write the row to which it -// was last positioned. Return an error code if an OOM fault or I/O error -// prevents us from positioning the cursor to its correct position. -// -// If a MoveTo operation is pending on the given cursor, then do that -// MoveTo now. If no move is pending, check to see if the row has been -// deleted out from under the cursor and if it has, mark the row as -// a NULL row. -// -// If the cursor is already pointing to the correct row and that row has -// not been deleted out from under the cursor, then this routine is a no-op. -func Xsqlite3VdbeCursorMoveto(tls *libc.TLS, pp uintptr, piCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83370:20: */ - var p uintptr = *(*uintptr)(unsafe.Pointer(pp)) +func Xsqlite3VdbeCursorRestore(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84292:20: */ - if (*VdbeCursor)(unsafe.Pointer(p)).FdeferredMoveto != 0 { - var iMap U32 - - if *(*uintptr)(unsafe.Pointer(p + 16)) != 0 && libc.AssignUint32(&iMap, *(*U32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 16)) + uintptr(U32(1)+*(*U32)(unsafe.Pointer(piCol)))*4))) > U32(0) && !(int32((*VdbeCursor)(unsafe.Pointer(p)).FnullRow) != 0) { - *(*uintptr)(unsafe.Pointer(pp)) = (*VdbeCursor)(unsafe.Pointer(p)).FpAltCursor - *(*U32)(unsafe.Pointer(piCol)) = iMap - U32(1) - return SQLITE_OK - } - return Xsqlite3VdbeFinishMoveto(tls, p) - } if Xsqlite3BtreeCursorHasMoved(tls, *(*uintptr)(unsafe.Pointer(p + 48))) != 0 { - return handleMovedCursor(tls, p) + return Xsqlite3VdbeHandleMovedCursor(tls, p) } return SQLITE_OK } @@ -105489,7 +105728,7 @@ func Xsqlite3VdbeCursorMoveto(tls *libc.TLS, pp uintptr, piCol uintptr) int32 { // sqlite3VdbeSerialType() // sqlite3VdbeSerialTypeLen() // sqlite3VdbeSerialLen() -// sqlite3VdbeSerialPut() +// sqlite3VdbeSerialPut() <--- in-lined into OP_MakeRecord as of 2022-04-02 // sqlite3VdbeSerialGet() // // encapsulate the code that serializes values for storage in SQLite @@ -105525,7 +105764,7 @@ func Xsqlite3VdbeCursorMoveto(tls *libc.TLS, pp uintptr, piCol uintptr) int32 { // of SQLite will not understand those serial types. // The sizes for serial types less than 128 -var sqlite3SmallTypeSizes = [128]U8{ +var Xsqlite3SmallTypeSizes = [128]U8{ // 0 1 2 3 4 5 6 7 8 9 /* 0 */ U8(0), U8(1), U8(2), U8(3), U8(4), U8(6), U8(8), U8(8), U8(0), U8(0), /* 10 */ U8(0), U8(0), U8(0), U8(0), U8(1), U8(1), U8(2), U8(2), U8(3), U8(3), @@ -105540,22 +105779,22 @@ var sqlite3SmallTypeSizes = [128]U8{ /* 100 */ U8(44), U8(44), U8(45), U8(45), U8(46), U8(46), U8(47), U8(47), U8(48), U8(48), /* 110 */ U8(49), U8(49), U8(50), U8(50), U8(51), U8(51), U8(52), U8(52), U8(53), U8(53), /* 120 */ U8(54), U8(54), U8(55), U8(55), U8(56), U8(56), U8(57), U8(57), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83507:17 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84418:25 */ // Return the length of the data corresponding to the supplied serial-type. -func Xsqlite3VdbeSerialTypeLen(tls *libc.TLS, serial_type U32) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83527:20: */ +func Xsqlite3VdbeSerialTypeLen(tls *libc.TLS, serial_type U32) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84438:20: */ if serial_type >= U32(128) { return (serial_type - U32(12)) / U32(2) } else { - return U32(sqlite3SmallTypeSizes[serial_type]) + return U32(Xsqlite3SmallTypeSizes[serial_type]) } return U32(0) } -func Xsqlite3VdbeOneByteSerialTypeLen(tls *libc.TLS, serial_type U8) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83536:19: */ +func Xsqlite3VdbeOneByteSerialTypeLen(tls *libc.TLS, serial_type U8) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84447:19: */ - return sqlite3SmallTypeSizes[serial_type] + return Xsqlite3SmallTypeSizes[serial_type] } // If we are on an architecture with mixed-endian floating @@ -105591,58 +105830,6 @@ func Xsqlite3VdbeOneByteSerialTypeLen(tls *libc.TLS, serial_type U8) U8 { /* tes // verify this, but Frank seems to know what he is talking about // so we trust him. -// Write the serialized data blob for the value stored in pMem into -// buf. It is assumed that the caller has allocated sufficient space. -// Return the number of bytes written. -// -// nBuf is the amount of space left in buf[]. The caller is responsible -// for allocating enough space to buf[] to hold the entire field, exclusive -// of the pMem->u.nZero bytes for a MEM_Zero value. -// -// Return the number of bytes actually written into buf[]. The number -// of bytes in the zero-filled tail is included in the return value only -// if those bytes were zeroed in buf[]. -func Xsqlite3VdbeSerialPut(tls *libc.TLS, buf uintptr, pMem uintptr, serial_type U32) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83607:20: */ - bp := tls.Alloc(8) - defer tls.Free(8) - - var len U32 - - // Integer and Real - if serial_type <= U32(7) && serial_type > U32(0) { - // var v U64 at bp, 8 - - var i U32 - if serial_type == U32(7) { - - libc.Xmemcpy(tls, bp, pMem, uint64(unsafe.Sizeof(U64(0)))) - - } else { - *(*U64)(unsafe.Pointer(bp /* v */)) = U64(*(*I64)(unsafe.Pointer(pMem))) - } - len = libc.AssignUint32(&i, U32(sqlite3SmallTypeSizes[serial_type])) - - for __ccgo := true; __ccgo; __ccgo = i != 0 { - *(*U8)(unsafe.Pointer(buf + uintptr(libc.PreDecUint32(&i, 1)))) = U8(*(*U64)(unsafe.Pointer(bp)) & uint64(0xFF)) - *(*U64)(unsafe.Pointer(bp /* v */)) >>= 8 - } - return len - } - - // String or blob - if serial_type >= U32(12) { - - len = U32((*Mem)(unsafe.Pointer(pMem)).Fn) - if len > U32(0) { - libc.Xmemcpy(tls, buf, (*Mem)(unsafe.Pointer(pMem)).Fz, uint64(len)) - } - return len - } - - // NULL or constants 0 or 1 - return U32(0) -} - // Input "x" is a sequence of unsigned characters that represent a // big-endian integer. Return the equivalent native integer @@ -105653,7 +105840,7 @@ func Xsqlite3VdbeSerialPut(tls *libc.TLS, buf uintptr, pMem uintptr, serial_type // The few cases that require local variables are broken out into a separate // routine so that in most cases the overhead of moving the stack pointer // is avoided. -func serialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83661:13: */ +func serialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84521:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -105680,7 +105867,7 @@ func serialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* t } } -func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83696:21: */ +func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84556:21: */ switch serial_type { case U32(10): { // Internal use only: NULL with virtual table @@ -105783,7 +105970,7 @@ func Xsqlite3VdbeSerialGet(tls *libc.TLS, buf uintptr, serial_type U32, pMem uin return } -var aFlag = [2]U16{U16(MEM_Blob | MEM_Ephem), U16(MEM_Str | MEM_Ephem)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83779:24 */ +var aFlag = [2]U16{U16(MEM_Blob | MEM_Ephem), U16(MEM_Str | MEM_Ephem)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84639:24 */ // This routine is used to allocate sufficient space for an UnpackedRecord // structure large enough to be used with sqlite3VdbeRecordUnpack() if @@ -105797,15 +105984,15 @@ var aFlag = [2]U16{U16(MEM_Blob | MEM_Ephem), U16(MEM_Str | MEM_Ephem)} /* testd // before returning. // // If an OOM error occurs, NULL is returned. -func Xsqlite3VdbeAllocUnpackedRecord(tls *libc.TLS, pKeyInfo uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83802:31: */ +func Xsqlite3VdbeAllocUnpackedRecord(tls *libc.TLS, pKeyInfo uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84662:31: */ var p uintptr // Unpacked record to return var nByte int32 // Number of bytes required for *p - nByte = int32((uint64(unsafe.Sizeof(UnpackedRecord{}))+uint64(7))&libc.Uint64FromInt32(libc.CplInt32(7)) + uint64(unsafe.Sizeof(Mem{}))*uint64(int32((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField)+1)) + nByte = int32(uint64(unsafe.Sizeof(UnpackedRecord{})) + uint64(unsafe.Sizeof(Mem{}))*uint64(int32((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField)+1)) p = Xsqlite3DbMallocRaw(tls, (*KeyInfo)(unsafe.Pointer(pKeyInfo)).Fdb, uint64(nByte)) if !(p != 0) { return uintptr(0) } - (*UnpackedRecord)(unsafe.Pointer(p)).FaMem = p + 24 + (*UnpackedRecord)(unsafe.Pointer(p)).FaMem = p + 40 (*UnpackedRecord)(unsafe.Pointer(p)).FpKeyInfo = pKeyInfo (*UnpackedRecord)(unsafe.Pointer(p)).FnField = U16(int32((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField) + 1) @@ -105815,7 +106002,7 @@ func Xsqlite3VdbeAllocUnpackedRecord(tls *libc.TLS, pKeyInfo uintptr) uintptr { // Given the nKey-byte encoding of a record in pKey[], populate the // UnpackedRecord structure indicated by the fourth argument with the // contents of the decoded record. -func Xsqlite3VdbeRecordUnpack(tls *libc.TLS, pKeyInfo uintptr, nKey int32, pKey uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:83822:21: */ +func Xsqlite3VdbeRecordUnpack(tls *libc.TLS, pKeyInfo uintptr, nKey int32, pKey uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84682:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -105876,7 +106063,7 @@ func Xsqlite3VdbeRecordUnpack(tls *libc.TLS, pKeyInfo uintptr, nKey int32, pKey // using the collation sequence pColl. As usual, return a negative , zero // or positive value if *pMem1 is less than, equal to or greater than // *pMem2, respectively. Similar in spirit to "rc = (*pMem1) - (*pMem2);". -func vdbeCompareMemString(tls *libc.TLS, pMem1 uintptr, pMem2 uintptr, pColl uintptr, prcErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84019:12: */ +func vdbeCompareMemString(tls *libc.TLS, pMem1 uintptr, pMem2 uintptr, pColl uintptr, prcErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84879:12: */ bp := tls.Alloc(112) defer tls.Free(112) @@ -105910,8 +106097,8 @@ func vdbeCompareMemString(tls *libc.TLS, pMem1 uintptr, pMem2 uintptr, pColl uin f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*CollSeq)(unsafe.Pointer(pColl)).FxCmp})).f(tls, (*CollSeq)(unsafe.Pointer(pColl)).FpUser, (*Mem)(unsafe.Pointer(bp /* &c1 */)).Fn, v1, (*Mem)(unsafe.Pointer(bp+56 /* &c2 */)).Fn, v2) } - Xsqlite3VdbeMemRelease(tls, bp) - Xsqlite3VdbeMemRelease(tls, bp+56) + Xsqlite3VdbeMemReleaseMalloc(tls, bp) + Xsqlite3VdbeMemReleaseMalloc(tls, bp+56) return rc } return int32(0) @@ -105919,7 +106106,7 @@ func vdbeCompareMemString(tls *libc.TLS, pMem1 uintptr, pMem2 uintptr, pColl uin // The input pBlob is guaranteed to be a Blob that is not marked // with MEM_Zero. Return true if it could be a zero-blob. -func isAllZero(tls *libc.TLS, z uintptr, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84056:12: */ +func isAllZero(tls *libc.TLS, z uintptr, n int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84916:12: */ var i int32 for i = 0; i < n; i++ { if *(*int8)(unsafe.Pointer(z + uintptr(i))) != 0 { @@ -105932,7 +106119,7 @@ func isAllZero(tls *libc.TLS, z uintptr, n int32) int32 { /* testdata/sqlite-ama // Compare two blobs. Return negative, zero, or positive if the first // is less than, equal to, or greater than the second, respectively. // If one blob is a prefix of the other, then the shorter is the lessor. -func Xsqlite3BlobCompare(tls *libc.TLS, pB1 uintptr, pB2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84069:36: */ +func Xsqlite3BlobCompare(tls *libc.TLS, pB1 uintptr, pB2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84929:36: */ var c int32 var n1 int32 = (*Mem)(unsafe.Pointer(pB1)).Fn var n2 int32 = (*Mem)(unsafe.Pointer(pB2)).Fn @@ -105972,7 +106159,7 @@ func Xsqlite3BlobCompare(tls *libc.TLS, pB1 uintptr, pB2 uintptr) int32 { /* tes // Do a comparison between a 64-bit signed integer and a 64-bit floating-point // number. Return negative, zero, or positive if the first (i64) is less than, // equal to, or greater than the second (double). -func Xsqlite3IntFloatCompare(tls *libc.TLS, i I64, r float64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84102:20: */ +func Xsqlite3IntFloatCompare(tls *libc.TLS, i I64, r float64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84962:20: */ if uint64(unsafe.Sizeof(float64(0))) > uint64(8) { var x float64 = float64(i) @@ -106018,7 +106205,7 @@ func Xsqlite3IntFloatCompare(tls *libc.TLS, i I64, r float64) int32 { /* testdat // sequence pColl and finally blob's ordered by memcmp(). // // Two NULL values are considered equal by this function. -func Xsqlite3MemCompare(tls *libc.TLS, pMem1 uintptr, pMem2 uintptr, pColl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84135:20: */ +func Xsqlite3MemCompare(tls *libc.TLS, pMem1 uintptr, pMem2 uintptr, pColl uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84995:20: */ var f1 int32 var f2 int32 var combined_flags int32 @@ -106112,7 +106299,7 @@ func Xsqlite3MemCompare(tls *libc.TLS, pMem1 uintptr, pMem2 uintptr, pColl uintp // except 7. The second points to a buffer containing an integer value // serialized according to serial_type. This function deserializes // and returns the value. -func vdbeRecordDecodeInt(tls *libc.TLS, serial_type U32, aKey uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84234:12: */ +func vdbeRecordDecodeInt(tls *libc.TLS, serial_type U32, aKey uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85094:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -106175,7 +106362,7 @@ func vdbeRecordDecodeInt(tls *libc.TLS, serial_type U32, aKey uintptr) I64 { /* // SQLITE_CORRUPT and return 0. If an OOM error is encountered, // pPKey2->errCode is set to SQLITE_NOMEM and, if it is not NULL, the // malloc-failed flag set on database handle (pPKey2->pKeyInfo->db). -func Xsqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr, bSkip int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84289:20: */ +func Xsqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr, bSkip int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85149:20: */ bp := tls.Alloc(68) defer tls.Free(68) @@ -106194,30 +106381,27 @@ func Xsqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr // two elements in the keys are equal. Fix the various stack variables so // that this routine begins comparing at the second field. if bSkip != 0 { - // var s1 U32 at bp, 4 - - idx1 = U32(1 + int32(func() uint8 { - if int32(*(*uint8)(unsafe.Pointer(aKey1 + 1))) < int32(U8(0x80)) { - return uint8(func() int32 { *(*U32)(unsafe.Pointer(bp)) = U32(*(*uint8)(unsafe.Pointer(aKey1 + 1))); return 1 }()) - } - return Xsqlite3GetVarint32(tls, aKey1+1, bp) - }())) + *(*U32)(unsafe.Pointer(bp /* s1 */)) = U32(*(*uint8)(unsafe.Pointer(aKey1 + 1))) + if *(*U32)(unsafe.Pointer(bp)) < U32(0x80) { + idx1 = U32(2) + } else { + idx1 = U32(1 + int32(Xsqlite3GetVarint32(tls, aKey1+1, bp))) + } *(*U32)(unsafe.Pointer(bp + 4 /* szHdr1 */)) = U32(*(*uint8)(unsafe.Pointer(aKey1))) d1 = *(*U32)(unsafe.Pointer(bp + 4)) + Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp))) i = 1 pRhs += 56 } else { - idx1 = U32(func() uint8 { - if int32(*(*uint8)(unsafe.Pointer(aKey1))) < int32(U8(0x80)) { - return uint8(func() int32 { *(*U32)(unsafe.Pointer(bp + 4)) = U32(*(*uint8)(unsafe.Pointer(aKey1))); return 1 }()) - } - return Xsqlite3GetVarint32(tls, aKey1, bp+4) - }()) + if libc.AssignPtrUint32(bp+4, U32(*(*uint8)(unsafe.Pointer(aKey1)))) < U32(0x80) { + idx1 = U32(1) + } else { + idx1 = U32(Xsqlite3GetVarint32(tls, aKey1, bp+4)) + } d1 = *(*U32)(unsafe.Pointer(bp + 4 /* szHdr1 */)) i = 0 } if d1 > uint32(nKey1) { - (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84320)) + (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 85188)) return 0 // Corruption } @@ -106282,7 +106466,7 @@ func Xsqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr if d1+U32((*Mem)(unsafe.Pointer(bp+8)).Fn) > uint32(nKey1) || int32((*KeyInfo)(unsafe.Pointer(libc.AssignUintptr(&pKeyInfo, (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FpKeyInfo))).FnAllField) <= i { - (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84397)) + (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 85265)) return 0 // Corruption } else if *(*uintptr)(unsafe.Pointer(pKeyInfo + 32 + uintptr(i)*8)) != 0 { (*Mem)(unsafe.Pointer(bp + 8 /* &mem1 */)).Fenc = (*KeyInfo)(unsafe.Pointer(pKeyInfo)).Fenc @@ -106290,7 +106474,7 @@ func Xsqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr (*Mem)(unsafe.Pointer(bp + 8 /* &mem1 */)).Fflags = U16(MEM_Str) (*Mem)(unsafe.Pointer(bp + 8 /* &mem1 */)).Fz = aKey1 + uintptr(d1) rc = vdbeCompareMemString(tls, - bp+8, pRhs, *(*uintptr)(unsafe.Pointer(pKeyInfo + 32 + uintptr(i)*8)), pPKey2+19) + bp+8, pRhs, *(*uintptr)(unsafe.Pointer(pKeyInfo + 32 + uintptr(i)*8)), pPKey2+31) } else { var nCmp int32 = func() int32 { if (*Mem)(unsafe.Pointer(bp+8)).Fn < (*Mem)(unsafe.Pointer(pRhs)).Fn { @@ -106317,7 +106501,7 @@ func Xsqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr var nStr int32 = int32((*(*U32)(unsafe.Pointer(bp + 64)) - U32(12)) / U32(2)) if d1+U32(nStr) > uint32(nKey1) { - (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84427)) + (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 85295)) return 0 // Corruption } else if int32((*Mem)(unsafe.Pointer(pRhs)).Fflags)&MEM_Zero != 0 { if !(isAllZero(tls, aKey1+uintptr(d1), nStr) != 0) { @@ -106378,7 +106562,7 @@ func Xsqlite3VdbeRecordCompareWithSkip(tls *libc.TLS, nKey1 int32, pKey1 uintptr return int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fdefault_rc) } -func Xsqlite3VdbeRecordCompare(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84486:20: */ +func Xsqlite3VdbeRecordCompare(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85354:20: */ return Xsqlite3VdbeRecordCompareWithSkip(tls, nKey1, pKey1, pPKey2, 0) } @@ -106389,7 +106573,7 @@ func Xsqlite3VdbeRecordCompare(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 // // To avoid concerns about buffer overreads, this routine is only used // on schemas where the maximum valid header size is 63 bytes or less. -func vdbeRecordCompareInt(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84503:12: */ +func vdbeRecordCompareInt(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85371:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -106471,7 +106655,7 @@ func vdbeRecordCompareInt(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uint return Xsqlite3VdbeRecordCompare(tls, nKey1, pKey1, pPKey2) } - v = *(*I64)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pPKey2)).FaMem)) + v = *(*I64)(unsafe.Pointer(pPKey2 + 16)) if v > lhs { res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr1) } else if v < lhs { @@ -106494,61 +106678,112 @@ func vdbeRecordCompareInt(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uint // that (a) the first field of pPKey2 is a string, that (b) the first field // uses the collation sequence BINARY and (c) that the size-of-header varint // at the start of (pKey1/nKey1) fits in a single byte. -func vdbeRecordCompareString(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84597:12: */ +func vdbeRecordCompareString(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85466:12: */ bp := tls.Alloc(4) defer tls.Free(4) - var aKey1 uintptr = pKey1 + var aKey1 uintptr // var serial_type int32 at bp, 4 var res int32 + var nCmp int32 + var nStr int32 + var szHdr int32 + aKey1 = pKey1 - *(*int32)(unsafe.Pointer(bp /* serial_type */)) = int32(*(*U8)(unsafe.Pointer(aKey1 + 1))) - if *(*int32)(unsafe.Pointer(bp)) >= 0x80 { - Xsqlite3GetVarint32(tls, aKey1+1, bp) + *(*int32)(unsafe.Pointer(bp /* serial_type */)) = int32(int8(*(*U8)(unsafe.Pointer(aKey1 + 1)))) + +vrcs_restart: + if !(*(*int32)(unsafe.Pointer(bp)) < 12) { + goto __1 } - if *(*int32)(unsafe.Pointer(bp)) < 12 { - res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr1) // (pKey1/nKey1) is a number or a null - } else if !(*(*int32)(unsafe.Pointer(bp))&0x01 != 0) { - res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr2) // (pKey1/nKey1) is a blob - } else { - var nCmp int32 - var nStr int32 - var szHdr int32 = int32(*(*U8)(unsafe.Pointer(aKey1))) + if !(*(*int32)(unsafe.Pointer(bp)) < 0) { + goto __3 + } + Xsqlite3GetVarint32(tls, aKey1+1, bp) + if !(*(*int32)(unsafe.Pointer(bp)) >= 12) { + goto __4 + } + goto vrcs_restart +__4: + ; - nStr = (*(*int32)(unsafe.Pointer(bp)) - 12) / 2 - if szHdr+nStr > nKey1 { - (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 84622)) - return 0 // Corruption - } - nCmp = func() int32 { - if (*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pPKey2)).FaMem)).Fn < nStr { - return (*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pPKey2)).FaMem)).Fn - } - return nStr - }() - res = libc.Xmemcmp(tls, aKey1+uintptr(szHdr), (*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pPKey2)).FaMem)).Fz, uint64(nCmp)) +__3: + ; + res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr1) // (pKey1/nKey1) is a number or a null + goto __2 +__1: + if !!(*(*int32)(unsafe.Pointer(bp))&0x01 != 0) { + goto __5 + } + res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr2) // (pKey1/nKey1) is a blob + goto __6 +__5: + szHdr = int32(*(*U8)(unsafe.Pointer(aKey1))) - if res > 0 { - res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr2) - } else if res < 0 { - res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr1) - } else { - res = nStr - (*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pPKey2)).FaMem)).Fn - if res == 0 { - if int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).FnField) > 1 { - res = Xsqlite3VdbeRecordCompareWithSkip(tls, nKey1, pKey1, pPKey2, 1) - } else { - res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fdefault_rc) - (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FeqSeen = U8(1) - } - } else if res > 0 { - res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr2) - } else { - res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr1) - } + nStr = (*(*int32)(unsafe.Pointer(bp)) - 12) / 2 + if !(szHdr+nStr > nKey1) { + goto __7 + } + (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FerrCode = U8(Xsqlite3CorruptError(tls, 85497)) + return 0 // Corruption +__7: + ; + nCmp = func() int32 { + if (*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fn < nStr { + return (*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fn } + return nStr + }() + res = libc.Xmemcmp(tls, aKey1+uintptr(szHdr), *(*uintptr)(unsafe.Pointer(pPKey2 + 16)), uint64(nCmp)) + + if !(res > 0) { + goto __8 + } + res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr2) + goto __9 +__8: + if !(res < 0) { + goto __10 } + res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr1) + goto __11 +__10: + res = nStr - (*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fn + if !(res == 0) { + goto __12 + } + if !(int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).FnField) > 1) { + goto __14 + } + res = Xsqlite3VdbeRecordCompareWithSkip(tls, nKey1, pKey1, pPKey2, 1) + goto __15 +__14: + res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fdefault_rc) + (*UnpackedRecord)(unsafe.Pointer(pPKey2)).FeqSeen = U8(1) +__15: + ; + goto __13 +__12: + if !(res > 0) { + goto __16 + } + res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr2) + goto __17 +__16: + res = int32((*UnpackedRecord)(unsafe.Pointer(pPKey2)).Fr1) +__17: + ; +__13: + ; +__11: + ; +__9: + ; +__6: + ; +__2: + ; return res } @@ -106556,7 +106791,7 @@ func vdbeRecordCompareString(tls *libc.TLS, nKey1 int32, pKey1 uintptr, pPKey2 u // Return a pointer to an sqlite3VdbeRecordCompare() compatible function // suitable for comparing serialized records to the unpacked record passed // as the only argument. -func Xsqlite3VdbeFindCompare(tls *libc.TLS, p uintptr) RecordCompare { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84661:30: */ +func Xsqlite3VdbeFindCompare(tls *libc.TLS, p uintptr) RecordCompare { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85536:30: */ // varintRecordCompareInt() and varintRecordCompareString() both assume // that the size-of-header varint that occurs at the start of each record // fits in a single byte (i.e. is 127 or less). varintRecordCompareInt() @@ -106585,6 +106820,7 @@ func Xsqlite3VdbeFindCompare(tls *libc.TLS, p uintptr) RecordCompare { /* testda (*UnpackedRecord)(unsafe.Pointer(p)).Fr2 = int8(1) } if flags&MEM_Int != 0 { + *(*I64)(unsafe.Pointer(p + 16)) = *(*I64)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(p)).FaMem)) return *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, int32, uintptr, uintptr) int32 }{vdbeRecordCompareInt})) @@ -106593,6 +106829,8 @@ func Xsqlite3VdbeFindCompare(tls *libc.TLS, p uintptr) RecordCompare { /* testda if flags&(MEM_Real|MEM_IntReal|MEM_Null|MEM_Blob) == 0 && *(*uintptr)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(p)).FpKeyInfo + 32)) == uintptr(0) { + *(*uintptr)(unsafe.Pointer(p + 16)) = (*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(p)).FaMem)).Fz + (*UnpackedRecord)(unsafe.Pointer(p)).Fn = (*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(p)).FaMem)).Fn return *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, int32, uintptr, uintptr) int32 }{vdbeRecordCompareString})) @@ -106610,7 +106848,7 @@ func Xsqlite3VdbeFindCompare(tls *libc.TLS, p uintptr) RecordCompare { /* testda // // pCur might be pointing to text obtained from a corrupt database file. // So the content cannot be trusted. Do appropriate checks on the content. -func Xsqlite3VdbeIdxRowid(tls *libc.TLS, db uintptr, pCur uintptr, rowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84712:20: */ +func Xsqlite3VdbeIdxRowid(tls *libc.TLS, db uintptr, pCur uintptr, rowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85590:20: */ bp := tls.Alloc(120) defer tls.Free(120) @@ -106675,7 +106913,7 @@ __4: goto idx_rowid_corruption __5: ; - lenRowid = U32(sqlite3SmallTypeSizes[*(*U32)(unsafe.Pointer(bp + 60 /* typeRowid */))]) + lenRowid = U32(Xsqlite3SmallTypeSizes[*(*U32)(unsafe.Pointer(bp + 60 /* typeRowid */))]) if !(U32((*Mem)(unsafe.Pointer(bp)).Fn) < *(*U32)(unsafe.Pointer(bp + 56))+lenRowid) { goto __6 @@ -106687,15 +106925,15 @@ __6: // Fetch the integer off the end of the index record Xsqlite3VdbeSerialGet(tls, (*Mem)(unsafe.Pointer(bp)).Fz+uintptr(U32((*Mem)(unsafe.Pointer(bp)).Fn)-lenRowid), *(*U32)(unsafe.Pointer(bp + 60 /* typeRowid */)), bp+64) *(*I64)(unsafe.Pointer(rowid)) = *(*I64)(unsafe.Pointer(bp + 64)) - Xsqlite3VdbeMemRelease(tls, bp) + Xsqlite3VdbeMemReleaseMalloc(tls, bp) return SQLITE_OK // Jump here if database corruption is detected after m has been // allocated. Free the m object and return SQLITE_CORRUPT. idx_rowid_corruption: ; - Xsqlite3VdbeMemRelease(tls, bp) - return Xsqlite3CorruptError(tls, 84777) + Xsqlite3VdbeMemReleaseMalloc(tls, bp) + return Xsqlite3CorruptError(tls, 85655) } // Compare the key of the index entry that cursor pC is pointing to against @@ -106707,7 +106945,7 @@ idx_rowid_corruption: // omits the rowid at the end. The rowid at the end of the index entry // is ignored as well. Hence, this routine only compares the prefixes // of the keys prior to the final rowid, not the entire key. -func Xsqlite3VdbeIdxKeyCompare(tls *libc.TLS, db uintptr, pC uintptr, pUnpacked uintptr, res uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84791:20: */ +func Xsqlite3VdbeIdxKeyCompare(tls *libc.TLS, db uintptr, pC uintptr, pUnpacked uintptr, res uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85669:20: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -106723,7 +106961,7 @@ func Xsqlite3VdbeIdxKeyCompare(tls *libc.TLS, db uintptr, pC uintptr, pUnpacked // that btreeParseCellPtr() and sqlite3GetVarint32() are implemented if nCellKey <= int64(0) || nCellKey > int64(0x7fffffff) { *(*int32)(unsafe.Pointer(res)) = 0 - return Xsqlite3CorruptError(tls, 84810) + return Xsqlite3CorruptError(tls, 85688) } Xsqlite3VdbeMemInit(tls, bp, db, uint16(0)) rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCur, U32(nCellKey), bp) @@ -106731,13 +106969,13 @@ func Xsqlite3VdbeIdxKeyCompare(tls *libc.TLS, db uintptr, pC uintptr, pUnpacked return rc } *(*int32)(unsafe.Pointer(res)) = Xsqlite3VdbeRecordCompareWithSkip(tls, (*Mem)(unsafe.Pointer(bp /* &m */)).Fn, (*Mem)(unsafe.Pointer(bp /* &m */)).Fz, pUnpacked, 0) - Xsqlite3VdbeMemRelease(tls, bp) + Xsqlite3VdbeMemReleaseMalloc(tls, bp) return SQLITE_OK } // This routine sets the value to be returned by subsequent calls to // sqlite3_changes() on the database handle 'db'. -func Xsqlite3VdbeSetChanges(tls *libc.TLS, db uintptr, nChange I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84826:21: */ +func Xsqlite3VdbeSetChanges(tls *libc.TLS, db uintptr, nChange I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85704:21: */ (*Sqlite3)(unsafe.Pointer(db)).FnChange = nChange *(*I64)(unsafe.Pointer(db + 128)) += nChange @@ -106745,8 +106983,8 @@ func Xsqlite3VdbeSetChanges(tls *libc.TLS, db uintptr, nChange I64) { /* testdat // Set a flag in the vdbe to update the change counter when it is finalised // or reset. -func Xsqlite3VdbeCountChanges(tls *libc.TLS, v uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84836:21: */ - libc.SetBitFieldPtr16Uint32(v+208, Bft(1), 4, 0x10) +func Xsqlite3VdbeCountChanges(tls *libc.TLS, v uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85714:21: */ + libc.SetBitFieldPtr8Uint32(v+200, Bft(1), 4, 0x10) } // Mark every prepared statement associated with a database connection @@ -106765,20 +107003,20 @@ func Xsqlite3VdbeCountChanges(tls *libc.TLS, v uintptr) { /* testdata/sqlite-ama // Internally, this function just sets the Vdbe.expired flag on all // prepared statements. The flag is set to 1 for an immediate expiration // and set to 2 for an advisory expiration. -func Xsqlite3ExpirePreparedStatements(tls *libc.TLS, db uintptr, iCode int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84858:21: */ +func Xsqlite3ExpirePreparedStatements(tls *libc.TLS, db uintptr, iCode int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85736:21: */ var p uintptr for p = (*Sqlite3)(unsafe.Pointer(db)).FpVdbe; p != 0; p = (*Vdbe)(unsafe.Pointer(p)).FpNext { - libc.SetBitFieldPtr16Uint32(p+208, Bft(iCode+1), 0, 0x3) + libc.SetBitFieldPtr8Uint32(p+200, Bft(iCode+1), 0, 0x3) } } // Return the database associated with the Vdbe. -func Xsqlite3VdbeDb(tls *libc.TLS, v uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84868:24: */ +func Xsqlite3VdbeDb(tls *libc.TLS, v uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85746:24: */ return (*Vdbe)(unsafe.Pointer(v)).Fdb } // Return the SQLITE_PREPARE flags for a Vdbe. -func Xsqlite3VdbePrepareFlags(tls *libc.TLS, v uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84875:19: */ +func Xsqlite3VdbePrepareFlags(tls *libc.TLS, v uintptr) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85753:19: */ return (*Vdbe)(unsafe.Pointer(v)).FprepFlags } @@ -106788,7 +107026,7 @@ func Xsqlite3VdbePrepareFlags(tls *libc.TLS, v uintptr) U8 { /* testdata/sqlite- // constants) to the value before returning it. // // The returned value must be freed by the caller using sqlite3ValueFree(). -func Xsqlite3VdbeGetBoundValue(tls *libc.TLS, v uintptr, iVar int32, aff U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84887:30: */ +func Xsqlite3VdbeGetBoundValue(tls *libc.TLS, v uintptr, iVar int32, aff U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85765:30: */ if v != 0 { var pMem uintptr = (*Vdbe)(unsafe.Pointer(v)).FaVar + uintptr(iVar-1)*56 @@ -106808,12 +107046,12 @@ func Xsqlite3VdbeGetBoundValue(tls *libc.TLS, v uintptr, iVar int32, aff U8) uin // Configure SQL variable iVar so that binding a new value to it signals // to sqlite3_reoptimize() that re-preparing the statement may result // in a better query plan. -func Xsqlite3VdbeSetVarmask(tls *libc.TLS, v uintptr, iVar int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84909:21: */ +func Xsqlite3VdbeSetVarmask(tls *libc.TLS, v uintptr, iVar int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85787:21: */ if iVar >= 32 { - *(*U32)(unsafe.Pointer(v + 292)) |= 0x80000000 + *(*U32)(unsafe.Pointer(v + 284)) |= 0x80000000 } else { - *(*U32)(unsafe.Pointer(v + 292)) |= U32(U32(1)) << (iVar - 1) + *(*U32)(unsafe.Pointer(v + 284)) |= U32(U32(1)) << (iVar - 1) } } @@ -106824,7 +107062,7 @@ func Xsqlite3VdbeSetVarmask(tls *libc.TLS, v uintptr, iVar int32) { /* testdata/ // throw an error if it is given inputs that would make it non-deterministic. // This routine is invoked by date/time functions that use non-deterministic // features such as 'now'. -func Xsqlite3NotPureFunc(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84928:20: */ +func Xsqlite3NotPureFunc(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85806:20: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -106837,13 +107075,13 @@ func Xsqlite3NotPureFunc(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite var zContext uintptr var zMsg uintptr if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fp5)&NC_IsCheck != 0 { - zContext = ts + 6469 /* "a CHECK constrai..." */ + zContext = ts + 6504 /* "a CHECK constrai..." */ } else if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fp5)&NC_GenCol != 0 { - zContext = ts + 6488 /* "a generated colu..." */ + zContext = ts + 6523 /* "a generated colu..." */ } else { - zContext = ts + 6507 /* "an index" */ + zContext = ts + 6542 /* "an index" */ } - zMsg = Xsqlite3_mprintf(tls, ts+6516, + zMsg = Xsqlite3_mprintf(tls, ts+6551, libc.VaList(bp, (*FuncDef)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx)).FpFunc)).FzName, zContext)) Xsqlite3_result_error(tls, pCtx, zMsg, -1) Xsqlite3_free(tls, zMsg) @@ -106855,7 +107093,7 @@ func Xsqlite3NotPureFunc(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite // Transfer error message text from an sqlite3_vtab.zErrMsg (text stored // in memory obtained from sqlite3_malloc) into a Vdbe.zErrMsg (text stored // in memory obtained from sqlite3DbMalloc). -func Xsqlite3VtabImportErrmsg(tls *libc.TLS, p uintptr, pVtab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84959:21: */ +func Xsqlite3VtabImportErrmsg(tls *libc.TLS, p uintptr, pVtab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85837:21: */ if (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg != 0 { var db uintptr = (*Vdbe)(unsafe.Pointer(p)).Fdb Xsqlite3DbFree(tls, db, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg) @@ -106871,13 +107109,13 @@ func Xsqlite3VtabImportErrmsg(tls *libc.TLS, p uintptr, pVtab uintptr) { /* test // // This function is used to free UnpackedRecord structures allocated by // the vdbeUnpackRecord() function found in vdbeapi.c. -func vdbeFreeUnpacked(tls *libc.TLS, db uintptr, nField int32, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84980:13: */ +func vdbeFreeUnpacked(tls *libc.TLS, db uintptr, nField int32, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85858:13: */ if p != 0 { var i int32 for i = 0; i < nField; i++ { var pMem uintptr = (*UnpackedRecord)(unsafe.Pointer(p)).FaMem + uintptr(i)*56 if (*Mem)(unsafe.Pointer(pMem)).FzMalloc != 0 { - Xsqlite3VdbeMemRelease(tls, pMem) + Xsqlite3VdbeMemReleaseMalloc(tls, pMem) } } Xsqlite3DbFreeNN(tls, db, p) @@ -106888,7 +107126,7 @@ func vdbeFreeUnpacked(tls *libc.TLS, db uintptr, nField int32, p uintptr) { /* t // then cursor passed as the second argument should point to the row about // to be update or deleted. If the application calls sqlite3_preupdate_old(), // the required value will be read from the row the cursor points to. -func Xsqlite3VdbePreUpdateHook(tls *libc.TLS, v uintptr, pCsr uintptr, op int32, zDb uintptr, pTab uintptr, iKey1 I64, iReg int32, iBlobWrite int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:84999:21: */ +func Xsqlite3VdbePreUpdateHook(tls *libc.TLS, v uintptr, pCsr uintptr, op int32, zDb uintptr, pTab uintptr, iKey1 I64, iReg int32, iBlobWrite int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85877:21: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -106940,7 +107178,7 @@ func Xsqlite3VdbePreUpdateHook(tls *libc.TLS, v uintptr, pCsr uintptr, op int32, } } -var fakeSortOrder U8 = U8(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85013:19 */ +var fakeSortOrder U8 = U8(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85891:19 */ //************* End of vdbeaux.c ******************************************** //************* Begin file vdbeapi.c **************************************** @@ -106966,17 +107204,17 @@ var fakeSortOrder U8 = U8(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:8 // that sqlite3_prepare() generates. For example, if new functions or // collating sequences are registered or if an authorizer function is // added or changed. -func Xsqlite3_expired(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85092:16: */ +func Xsqlite3_expired(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85970:16: */ var p uintptr = pStmt - return libc.Bool32(p == uintptr(0) || Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x3>>0)) != 0) + return libc.Bool32(p == uintptr(0) || Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x3>>0)) != 0) } // Check on a Vdbe to make sure it has not been finalized. Log // an error and return true if it has been finalized (or is otherwise // invalid). Return false if it is ok. -func vdbeSafety(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85103:12: */ +func vdbeSafety(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85981:12: */ if (*Vdbe)(unsafe.Pointer(p)).Fdb == uintptr(0) { - Xsqlite3_log(tls, SQLITE_MISUSE, ts+6552, 0) + Xsqlite3_log(tls, SQLITE_MISUSE, ts+6587, 0) return 1 } else { return 0 @@ -106984,9 +107222,9 @@ func vdbeSafety(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamatio return int32(0) } -func vdbeSafetyNotNull(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85111:12: */ +func vdbeSafetyNotNull(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:85989:12: */ if p == uintptr(0) { - Xsqlite3_log(tls, SQLITE_MISUSE, ts+6597, 0) + Xsqlite3_log(tls, SQLITE_MISUSE, ts+6632, 0) return 1 } else { return vdbeSafety(tls, p) @@ -106996,7 +107234,7 @@ func vdbeSafetyNotNull(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amal // Invoke the profile callback. This routine is only called if we already // know that the profile callback is defined and needs to be invoked. -func invokeProfileCallback(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85125:29: */ +func invokeProfileCallback(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86003:29: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -107029,7 +107267,7 @@ func invokeProfileCallback(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/s // // This routine sets the error code and string returned by // sqlite3_errcode(), sqlite3_errmsg() and sqlite3_errmsg16(). -func Xsqlite3_finalize(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85163:16: */ +func Xsqlite3_finalize(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86041:16: */ var rc int32 if pStmt == uintptr(0) { // IMPLEMENTATION-OF: R-57228-12904 Invoking sqlite3_finalize() on a NULL @@ -107039,7 +107277,7 @@ func Xsqlite3_finalize(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite- var v uintptr = pStmt var db uintptr = (*Vdbe)(unsafe.Pointer(v)).Fdb if vdbeSafety(tls, v) != 0 { - return Xsqlite3MisuseError(tls, 85172) + return Xsqlite3MisuseError(tls, 86050) } Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) if (*Vdbe)(unsafe.Pointer(v)).FstartTime > int64(0) { @@ -107059,7 +107297,7 @@ func Xsqlite3_finalize(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite- // // This routine sets the error code and string returned by // sqlite3_errcode(), sqlite3_errmsg() and sqlite3_errmsg16(). -func Xsqlite3_reset(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85190:16: */ +func Xsqlite3_reset(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86068:16: */ var rc int32 if pStmt == uintptr(0) { rc = SQLITE_OK @@ -107081,7 +107319,7 @@ func Xsqlite3_reset(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-ama } // Set all the parameters in the compiled SQL statement to NULL. -func Xsqlite3_clear_bindings(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85211:16: */ +func Xsqlite3_clear_bindings(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86089:16: */ var i int32 var rc int32 = SQLITE_OK var p uintptr = pStmt @@ -107093,7 +107331,7 @@ func Xsqlite3_clear_bindings(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/s } if (*Vdbe)(unsafe.Pointer(p)).Fexpmask != 0 { - libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 0, 0x3) + libc.SetBitFieldPtr8Uint32(p+200, Bft(1), 0, 0x3) } Xsqlite3_mutex_leave(tls, mutex) return rc @@ -107103,7 +107341,7 @@ func Xsqlite3_clear_bindings(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/s // // The following routines extract information from a Mem or sqlite3_value // structure. -func Xsqlite3_value_blob(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85236:23: */ +func Xsqlite3_value_blob(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86114:23: */ var p uintptr = pVal if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_Blob|MEM_Str) != 0 { if func() int32 { @@ -107115,7 +107353,7 @@ func Xsqlite3_value_blob(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqli return uintptr(0) } - *(*U16)(unsafe.Pointer(p + 8)) |= U16(MEM_Blob) + *(*U16)(unsafe.Pointer(p + 20)) |= U16(MEM_Blob) if (*Mem)(unsafe.Pointer(p)).Fn != 0 { return (*Mem)(unsafe.Pointer(p)).Fz } @@ -107126,27 +107364,27 @@ func Xsqlite3_value_blob(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqli return uintptr(0) } -func Xsqlite3_value_bytes(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85249:16: */ +func Xsqlite3_value_bytes(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86127:16: */ return Xsqlite3ValueBytes(tls, pVal, uint8(SQLITE_UTF8)) } -func Xsqlite3_value_bytes16(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85252:16: */ +func Xsqlite3_value_bytes16(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86130:16: */ return Xsqlite3ValueBytes(tls, pVal, uint8(SQLITE_UTF16LE)) } -func Xsqlite3_value_double(tls *libc.TLS, pVal uintptr) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85255:19: */ +func Xsqlite3_value_double(tls *libc.TLS, pVal uintptr) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86133:19: */ return Xsqlite3VdbeRealValue(tls, pVal) } -func Xsqlite3_value_int(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85258:16: */ +func Xsqlite3_value_int(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86136:16: */ return int32(Xsqlite3VdbeIntValue(tls, pVal)) } -func Xsqlite3_value_int64(tls *libc.TLS, pVal uintptr) Sqlite_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85261:25: */ +func Xsqlite3_value_int64(tls *libc.TLS, pVal uintptr) Sqlite_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86139:25: */ return Xsqlite3VdbeIntValue(tls, pVal) } -func Xsqlite3_value_subtype(tls *libc.TLS, pVal uintptr) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85264:25: */ +func Xsqlite3_value_subtype(tls *libc.TLS, pVal uintptr) uint32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86142:25: */ var pMem uintptr = pVal return func() uint32 { if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&MEM_Subtype != 0 { @@ -107156,7 +107394,7 @@ func Xsqlite3_value_subtype(tls *libc.TLS, pVal uintptr) uint32 { /* testdata/sq }() } -func Xsqlite3_value_pointer(tls *libc.TLS, pVal uintptr, zPType uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85268:17: */ +func Xsqlite3_value_pointer(tls *libc.TLS, pVal uintptr, zPType uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86146:17: */ var p uintptr = pVal if int32((*Mem)(unsafe.Pointer(p)).Fflags)&(MEM_TypeMask|MEM_Term|MEM_Subtype) == MEM_Null|MEM_Term|MEM_Subtype && zPType != uintptr(0) && @@ -107169,26 +107407,26 @@ func Xsqlite3_value_pointer(tls *libc.TLS, pVal uintptr, zPType uintptr) uintptr return uintptr(0) } -func Xsqlite3_value_text(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85281:32: */ +func Xsqlite3_value_text(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86159:32: */ return Xsqlite3ValueText(tls, pVal, uint8(SQLITE_UTF8)) } -func Xsqlite3_value_text16(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85285:23: */ +func Xsqlite3_value_text16(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86163:23: */ return Xsqlite3ValueText(tls, pVal, uint8(SQLITE_UTF16LE)) } -func Xsqlite3_value_text16be(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85288:23: */ +func Xsqlite3_value_text16be(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86166:23: */ return Xsqlite3ValueText(tls, pVal, uint8(SQLITE_UTF16BE)) } -func Xsqlite3_value_text16le(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85291:23: */ +func Xsqlite3_value_text16le(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86169:23: */ return Xsqlite3ValueText(tls, pVal, uint8(SQLITE_UTF16LE)) } // EVIDENCE-OF: R-12793-43283 Every value in SQLite has one of five // fundamental datatypes: 64-bit signed integer 64-bit IEEE floating // point number string BLOB NULL -func Xsqlite3_value_type(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85299:16: */ +func Xsqlite3_value_type(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86177:16: */ return int32(aType[int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fflags)&MEM_AffMask]) } @@ -107257,20 +107495,20 @@ var aType = [64]U8{ U8(SQLITE_NULL), // 0x3d (not possible) U8(SQLITE_FLOAT), // 0x3e (not possible) U8(SQLITE_NULL), // 0x3f (not possible) -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85300:19 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86178:19 */ // Return true if a parameter to xUpdate represents an unchanged column -func Xsqlite3_value_nochange(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85385:16: */ +func Xsqlite3_value_nochange(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86263:16: */ return libc.Bool32(int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fflags)&(MEM_Null|MEM_Zero) == MEM_Null|MEM_Zero) } // Return true if a parameter value originated from an sqlite3_bind() -func Xsqlite3_value_frombind(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85390:16: */ +func Xsqlite3_value_frombind(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86268:16: */ return libc.Bool32(int32((*Sqlite3_value)(unsafe.Pointer(pVal)).Fflags)&MEM_FromBind != 0) } // Make a copy of an sqlite3_value object -func Xsqlite3_value_dup(tls *libc.TLS, pOrig uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85396:26: */ +func Xsqlite3_value_dup(tls *libc.TLS, pOrig uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86274:26: */ var pNew uintptr if pOrig == uintptr(0) { return uintptr(0) @@ -107281,22 +107519,25 @@ func Xsqlite3_value_dup(tls *libc.TLS, pOrig uintptr) uintptr { /* testdata/sqli } libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(Sqlite3_value{}))) libc.Xmemcpy(tls, pNew, pOrig, uint64(uintptr(0)+24)) - *(*U16)(unsafe.Pointer(pNew + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Dyn)) + *(*U16)(unsafe.Pointer(pNew + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Dyn)) (*Sqlite3_value)(unsafe.Pointer(pNew)).Fdb = uintptr(0) if int32((*Sqlite3_value)(unsafe.Pointer(pNew)).Fflags)&(MEM_Str|MEM_Blob) != 0 { - *(*U16)(unsafe.Pointer(pNew + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Static | MEM_Dyn)) - *(*U16)(unsafe.Pointer(pNew + 8)) |= U16(MEM_Ephem) + *(*U16)(unsafe.Pointer(pNew + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Static | MEM_Dyn)) + *(*U16)(unsafe.Pointer(pNew + 20)) |= U16(MEM_Ephem) if Xsqlite3VdbeMemMakeWriteable(tls, pNew) != SQLITE_OK { Xsqlite3ValueFree(tls, pNew) pNew = uintptr(0) } + } else if int32((*Sqlite3_value)(unsafe.Pointer(pNew)).Fflags)&MEM_Null != 0 { + // Do not duplicate pointer values + *(*U16)(unsafe.Pointer(pNew + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Term | MEM_Subtype)) } return pNew } // Destroy an sqlite3_value object previously obtained from // sqlite3_value_dup(). -func Xsqlite3_value_free(tls *libc.TLS, pOld uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85419:17: */ +func Xsqlite3_value_free(tls *libc.TLS, pOld uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86300:17: */ Xsqlite3ValueFree(tls, pOld) } @@ -107311,8 +107552,9 @@ func Xsqlite3_value_free(tls *libc.TLS, pOld uintptr) { /* testdata/sqlite-amalg // // The invokeValueDestructor(P,X) routine invokes destructor function X() // on value P is not going to be used and need to be destroyed. -func setResultStrOrError(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, enc U8, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85435:13: */ - var rc int32 = Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, z, int64(n), enc, xDel) +func setResultStrOrError(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, enc U8, xDel uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86316:13: */ + var pOut uintptr = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut + var rc int32 = Xsqlite3VdbeMemSetStr(tls, pOut, z, int64(n), enc, xDel) if rc != 0 { if rc == SQLITE_TOOBIG { Xsqlite3_result_error_toobig(tls, pCtx) @@ -107322,10 +107564,15 @@ func setResultStrOrError(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, enc U8 Xsqlite3_result_error_nomem(tls, pCtx) } + return + } + Xsqlite3VdbeChangeEncoding(tls, pOut, int32((*Sqlite3_context)(unsafe.Pointer(pCtx)).Fenc)) + if Xsqlite3VdbeMemTooBig(tls, pOut) != 0 { + Xsqlite3_result_error_toobig(tls, pCtx) } } -func invokeValueDestructor(tls *libc.TLS, p uintptr, xDel uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85454:12: */ +func invokeValueDestructor(tls *libc.TLS, p uintptr, xDel uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86341:12: */ if xDel == uintptr(0) { // noop @@ -107338,12 +107585,12 @@ func invokeValueDestructor(tls *libc.TLS, p uintptr, xDel uintptr, pCtx uintptr) return SQLITE_TOOBIG } -func Xsqlite3_result_blob(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85470:17: */ +func Xsqlite3_result_blob(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86357:17: */ setResultStrOrError(tls, pCtx, z, n, uint8(0), xDel) } -func Xsqlite3_result_blob64(tls *libc.TLS, pCtx uintptr, z uintptr, n Sqlite3_uint64, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85480:17: */ +func Xsqlite3_result_blob64(tls *libc.TLS, pCtx uintptr, z uintptr, n Sqlite3_uint64, xDel uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86367:17: */ if n > uint64(0x7fffffff) { invokeValueDestructor(tls, z, xDel, pCtx) @@ -107352,39 +107599,39 @@ func Xsqlite3_result_blob64(tls *libc.TLS, pCtx uintptr, z uintptr, n Sqlite3_ui } } -func Xsqlite3_result_double(tls *libc.TLS, pCtx uintptr, rVal float64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85494:17: */ +func Xsqlite3_result_double(tls *libc.TLS, pCtx uintptr, rVal float64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86381:17: */ Xsqlite3VdbeMemSetDouble(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, rVal) } -func Xsqlite3_result_error(tls *libc.TLS, pCtx uintptr, z uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85498:17: */ +func Xsqlite3_result_error(tls *libc.TLS, pCtx uintptr, z uintptr, n int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86385:17: */ (*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = SQLITE_ERROR Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, z, int64(n), uint8(SQLITE_UTF8), libc.UintptrFromInt32(-1)) } -func Xsqlite3_result_error16(tls *libc.TLS, pCtx uintptr, z uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85504:17: */ +func Xsqlite3_result_error16(tls *libc.TLS, pCtx uintptr, z uintptr, n int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86391:17: */ (*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = SQLITE_ERROR Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, z, int64(n), uint8(SQLITE_UTF16LE), libc.UintptrFromInt32(-1)) } -func Xsqlite3_result_int(tls *libc.TLS, pCtx uintptr, iVal int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85510:17: */ +func Xsqlite3_result_int(tls *libc.TLS, pCtx uintptr, iVal int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86397:17: */ Xsqlite3VdbeMemSetInt64(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, I64(iVal)) } -func Xsqlite3_result_int64(tls *libc.TLS, pCtx uintptr, iVal I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85514:17: */ +func Xsqlite3_result_int64(tls *libc.TLS, pCtx uintptr, iVal I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86401:17: */ Xsqlite3VdbeMemSetInt64(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, iVal) } -func Xsqlite3_result_null(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85518:17: */ +func Xsqlite3_result_null(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86405:17: */ Xsqlite3VdbeMemSetNull(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut) } -func Xsqlite3_result_pointer(tls *libc.TLS, pCtx uintptr, pPtr uintptr, zPType uintptr, xDestructor uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85522:17: */ +func Xsqlite3_result_pointer(tls *libc.TLS, pCtx uintptr, pPtr uintptr, zPType uintptr, xDestructor uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86409:17: */ var pOut uintptr = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut Xsqlite3VdbeMemRelease(tls, pOut) @@ -107392,19 +107639,19 @@ func Xsqlite3_result_pointer(tls *libc.TLS, pCtx uintptr, pPtr uintptr, zPType u Xsqlite3VdbeMemSetPointer(tls, pOut, pPtr, zPType, xDestructor) } -func Xsqlite3_result_subtype(tls *libc.TLS, pCtx uintptr, eSubtype uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85534:17: */ +func Xsqlite3_result_subtype(tls *libc.TLS, pCtx uintptr, eSubtype uint32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86421:17: */ var pOut uintptr = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut (*Mem)(unsafe.Pointer(pOut)).FeSubtype = U8(eSubtype & uint32(0xff)) - *(*U16)(unsafe.Pointer(pOut + 8)) |= U16(MEM_Subtype) + *(*U16)(unsafe.Pointer(pOut + 20)) |= U16(MEM_Subtype) } -func Xsqlite3_result_text(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85540:17: */ +func Xsqlite3_result_text(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86427:17: */ setResultStrOrError(tls, pCtx, z, n, uint8(SQLITE_UTF8), xDel) } -func Xsqlite3_result_text64(tls *libc.TLS, pCtx uintptr, z uintptr, n Sqlite3_uint64, xDel uintptr, enc uint8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85549:17: */ +func Xsqlite3_result_text64(tls *libc.TLS, pCtx uintptr, z uintptr, n Sqlite3_uint64, xDel uintptr, enc uint8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86436:17: */ if int32(enc) == SQLITE_UTF16 { enc = uint8(SQLITE_UTF16LE) @@ -107416,42 +107663,52 @@ func Xsqlite3_result_text64(tls *libc.TLS, pCtx uintptr, z uintptr, n Sqlite3_ui } } -func Xsqlite3_result_text16(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85566:17: */ +func Xsqlite3_result_text16(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86453:17: */ setResultStrOrError(tls, pCtx, z, n, uint8(SQLITE_UTF16LE), xDel) } -func Xsqlite3_result_text16be(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85575:17: */ +func Xsqlite3_result_text16be(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86462:17: */ setResultStrOrError(tls, pCtx, z, n, uint8(SQLITE_UTF16BE), xDel) } -func Xsqlite3_result_text16le(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85584:17: */ +func Xsqlite3_result_text16le(tls *libc.TLS, pCtx uintptr, z uintptr, n int32, xDel uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86471:17: */ setResultStrOrError(tls, pCtx, z, n, uint8(SQLITE_UTF16LE), xDel) } -func Xsqlite3_result_value(tls *libc.TLS, pCtx uintptr, pValue uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85594:17: */ +func Xsqlite3_result_value(tls *libc.TLS, pCtx uintptr, pValue uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86481:17: */ + var pOut uintptr = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut - Xsqlite3VdbeMemCopy(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, pValue) + Xsqlite3VdbeMemCopy(tls, pOut, pValue) + Xsqlite3VdbeChangeEncoding(tls, pOut, int32((*Sqlite3_context)(unsafe.Pointer(pCtx)).Fenc)) + if Xsqlite3VdbeMemTooBig(tls, pOut) != 0 { + Xsqlite3_result_error_toobig(tls, pCtx) + } } -func Xsqlite3_result_zeroblob(tls *libc.TLS, pCtx uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85598:17: */ - - Xsqlite3VdbeMemSetZeroBlob(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, n) +func Xsqlite3_result_zeroblob(tls *libc.TLS, pCtx uintptr, n int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86490:17: */ + Xsqlite3_result_zeroblob64(tls, pCtx, func() uint64 { + if n > 0 { + return uint64(n) + } + return uint64(0) + }()) } -func Xsqlite3_result_zeroblob64(tls *libc.TLS, pCtx uintptr, n U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85602:16: */ +func Xsqlite3_result_zeroblob64(tls *libc.TLS, pCtx uintptr, n U64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86493:16: */ var pOut uintptr = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut if n > U64(*(*int32)(unsafe.Pointer((*Mem)(unsafe.Pointer(pOut)).Fdb + 136))) { + Xsqlite3_result_error_toobig(tls, pCtx) return SQLITE_TOOBIG } Xsqlite3VdbeMemSetZeroBlob(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, int32(n)) return SQLITE_OK } -func Xsqlite3_result_error_code(tls *libc.TLS, pCtx uintptr, errCode int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85615:17: */ +func Xsqlite3_result_error_code(tls *libc.TLS, pCtx uintptr, errCode int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86507:17: */ (*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = func() int32 { if errCode != 0 { return errCode @@ -107459,21 +107716,21 @@ func Xsqlite3_result_error_code(tls *libc.TLS, pCtx uintptr, errCode int32) { /* return -1 }() if int32((*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut)).Fflags)&MEM_Null != 0 { - Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, Xsqlite3ErrStr(tls, errCode), int64(-1), - uint8(SQLITE_UTF8), uintptr(0)) + setResultStrOrError(tls, pCtx, Xsqlite3ErrStr(tls, errCode), -1, uint8(SQLITE_UTF8), + uintptr(0)) } } // Force an SQLITE_TOOBIG error. -func Xsqlite3_result_error_toobig(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85627:17: */ +func Xsqlite3_result_error_toobig(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86519:17: */ (*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = SQLITE_TOOBIG - Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, ts+6637, int64(-1), + Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, ts+6672, int64(-1), uint8(SQLITE_UTF8), uintptr(0)) } // An SQLITE_NOMEM error. -func Xsqlite3_result_error_nomem(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85635:17: */ +func Xsqlite3_result_error_nomem(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86527:17: */ Xsqlite3VdbeMemSetNull(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut) (*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = SQLITE_NOMEM @@ -107483,17 +107740,17 @@ func Xsqlite3_result_error_nomem(tls *libc.TLS, pCtx uintptr) { /* testdata/sqli // Force the INT64 value currently stored as the result to be // a MEM_IntReal value. See the SQLITE_TESTCTRL_RESULT_INTREAL // test-control. -func Xsqlite3ResultIntReal(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85647:21: */ +func Xsqlite3ResultIntReal(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86539:21: */ if int32((*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut)).Fflags)&MEM_Int != 0 { - *(*U16)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) - *(*U16)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut + 8)) |= U16(MEM_IntReal) + *(*U16)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) + *(*U16)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut + 20)) |= U16(MEM_IntReal) } } // This function is called after a transaction has been committed. It // invokes callbacks registered with sqlite3_wal_hook() as required. -func doWalCallbacks(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85661:12: */ +func doWalCallbacks(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86553:12: */ var rc int32 = SQLITE_OK var i int32 for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ { @@ -107520,62 +107777,37 @@ func doWalCallbacks(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalga // API. The only thing omitted is the automatic recompile if a // schema change has occurred. That detail is handled by the // outer sqlite3_step() wrapper procedure. -func sqlite3Step(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85691:12: */ +func sqlite3Step(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86583:12: */ var db uintptr var rc int32 - if !((*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic != U32(VDBE_MAGIC_RUN)) { + db = (*Vdbe)(unsafe.Pointer(p)).Fdb + if !(int32((*Vdbe)(unsafe.Pointer(p)).FeVdbeState) != VDBE_RUN_STATE) { goto __1 } - // We used to require that sqlite3_reset() be called before retrying - // sqlite3_step() after any error or after SQLITE_DONE. But beginning - // with version 3.7.0, we changed this so that sqlite3_reset() would - // be called automatically instead of throwing the SQLITE_MISUSE error. - // This "automatic-reset" change is not technically an incompatibility, - // since any application that receives an SQLITE_MISUSE is broken by - // definition. - // - // Nevertheless, some published applications that were originally written - // for version 3.6.23 or earlier do in fact depend on SQLITE_MISUSE - // returns, and those were broken by the automatic-reset change. As a - // a work-around, the SQLITE_OMIT_AUTORESET compile-time restores the - // legacy behavior of returning SQLITE_MISUSE for cases where the - // previous sqlite3_step() returned something other than a SQLITE_LOCKED - // or SQLITE_BUSY error. - Xsqlite3_reset(tls, p) -__1: - ; - - // Check that malloc() has not failed. If it has, return early. - db = (*Vdbe)(unsafe.Pointer(p)).Fdb - if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { +restart_step: + if !(int32((*Vdbe)(unsafe.Pointer(p)).FeVdbeState) == VDBE_READY_STATE) { goto __2 } - (*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM - return SQLITE_NOMEM -__2: - ; - - if !((*Vdbe)(unsafe.Pointer(p)).Fpc < 0 && Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x3>>0)) != 0) { - goto __3 + if !(Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x3>>0)) != 0) { + goto __4 } (*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_SCHEMA rc = SQLITE_ERROR if !(int32((*Vdbe)(unsafe.Pointer(p)).FprepFlags)&SQLITE_PREPARE_SAVESQL != 0) { - goto __4 + goto __5 } // If this statement was prepared using saved SQL and an // error has occurred, then return the error code in p->rc to the - // caller. Set the error code in the database handle to the same value. + // caller. Set the error code in the database handle to the same + // value. rc = Xsqlite3VdbeTransferError(tls, p) -__4: +__5: ; goto end_of_step -__3: +__4: ; - if !((*Vdbe)(unsafe.Pointer(p)).Fpc < 0) { - goto __5 - } + // If there are no other statements currently running, then // reset the interrupt flag. This prevents a call to sqlite3_interrupt // from interrupting a statement that has not yet started. @@ -107590,7 +107822,7 @@ __6: !(int32((*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy) != 0) && (*Vdbe)(unsafe.Pointer(p)).FzSql != 0) { goto __7 } - Xsqlite3OsCurrentTimeInt64(tls, (*Sqlite3)(unsafe.Pointer(db)).FpVfs, p+192) + Xsqlite3OsCurrentTimeInt64(tls, (*Sqlite3)(unsafe.Pointer(db)).FpVfs, p+184) goto __8 __7: ; @@ -107598,84 +107830,119 @@ __8: ; (*Sqlite3)(unsafe.Pointer(db)).FnVdbeActive++ - if !(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x80>>7) == 0) { + if !(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x40>>6) == 0) { goto __9 } (*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite++ __9: ; - if !(Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x100>>8)) != 0) { + if !(Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x80>>7)) != 0) { goto __10 } (*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead++ __10: ; (*Vdbe)(unsafe.Pointer(p)).Fpc = 0 -__5: - ; - if !(Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0xc>>2)) != 0) { + (*Vdbe)(unsafe.Pointer(p)).FeVdbeState = U8(VDBE_RUN_STATE) + goto __3 +__2: + + if !(int32((*Vdbe)(unsafe.Pointer(p)).FeVdbeState) == VDBE_HALT_STATE) { goto __11 } - rc = Xsqlite3VdbeList(tls, p) - goto __12 + // We used to require that sqlite3_reset() be called before retrying + // sqlite3_step() after any error or after SQLITE_DONE. But beginning + // with version 3.7.0, we changed this so that sqlite3_reset() would + // be called automatically instead of throwing the SQLITE_MISUSE error. + // This "automatic-reset" change is not technically an incompatibility, + // since any application that receives an SQLITE_MISUSE is broken by + // definition. + // + // Nevertheless, some published applications that were originally written + // for version 3.6.23 or earlier do in fact depend on SQLITE_MISUSE + // returns, and those were broken by the automatic-reset change. As a + // a work-around, the SQLITE_OMIT_AUTORESET compile-time restores the + // legacy behavior of returning SQLITE_MISUSE for cases where the + // previous sqlite3_step() returned something other than a SQLITE_LOCKED + // or SQLITE_BUSY error. + Xsqlite3_reset(tls, p) + + goto restart_step __11: + ; +__3: + ; +__1: + ; + + if !(Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0xc>>2)) != 0) { + goto __12 + } + rc = Xsqlite3VdbeList(tls, p) + goto __13 +__12: (*Sqlite3)(unsafe.Pointer(db)).FnVdbeExec++ rc = Xsqlite3VdbeExec(tls, p) (*Sqlite3)(unsafe.Pointer(db)).FnVdbeExec-- -__12: +__13: ; - if !(rc != SQLITE_ROW) { - goto __13 + if !(rc == SQLITE_ROW) { + goto __14 } + + (*Sqlite3)(unsafe.Pointer(db)).FerrCode = SQLITE_ROW + return SQLITE_ROW + goto __15 +__14: // If the statement completed successfully, invoke the profile callback if !((*Vdbe)(unsafe.Pointer(p)).FstartTime > int64(0)) { - goto __14 + goto __16 } invokeProfileCallback(tls, db, p) -__14: +__16: ; if !(rc == SQLITE_DONE && (*Sqlite3)(unsafe.Pointer(db)).FautoCommit != 0) { - goto __15 + goto __17 } (*Vdbe)(unsafe.Pointer(p)).Frc = doWalCallbacks(tls, db) if !((*Vdbe)(unsafe.Pointer(p)).Frc != SQLITE_OK) { - goto __17 + goto __19 } rc = SQLITE_ERROR -__17: +__19: ; - goto __16 -__15: + goto __18 +__17: if !(rc != SQLITE_DONE && int32((*Vdbe)(unsafe.Pointer(p)).FprepFlags)&SQLITE_PREPARE_SAVESQL != 0) { - goto __18 + goto __20 } // If this statement was prepared using saved SQL and an // error has occurred, then return the error code in p->rc to the // caller. Set the error code in the database handle to the same value. rc = Xsqlite3VdbeTransferError(tls, p) -__18: +__20: ; -__16: +__18: ; -__13: +__15: ; (*Sqlite3)(unsafe.Pointer(db)).FerrCode = rc if !(SQLITE_NOMEM == Xsqlite3ApiExit(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, (*Vdbe)(unsafe.Pointer(p)).Frc)) { - goto __19 + goto __21 } (*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM if !(int32((*Vdbe)(unsafe.Pointer(p)).FprepFlags)&SQLITE_PREPARE_SAVESQL != 0) { - goto __20 + goto __22 } rc = (*Vdbe)(unsafe.Pointer(p)).Frc -__20: +__22: ; -__19: +__21: ; end_of_step: // There are only a limited number of result codes allowed from the @@ -107687,18 +107954,17 @@ end_of_step: // This is the top-level implementation of sqlite3_step(). Call // sqlite3Step() to do most of the work. If a schema error occurs, // call sqlite3Reprepare() and try again. -func Xsqlite3_step(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85825:16: */ +func Xsqlite3_step(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86725:16: */ var rc int32 = SQLITE_OK // Result from sqlite3Step() var v uintptr = pStmt // the prepared statement var cnt int32 = 0 // Counter to prevent infinite loop of reprepares var db uintptr // The database connection if vdbeSafetyNotNull(tls, v) != 0 { - return Xsqlite3MisuseError(tls, 85832) + return Xsqlite3MisuseError(tls, 86732) } db = (*Vdbe)(unsafe.Pointer(v)).Fdb Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) - (*Vdbe)(unsafe.Pointer(v)).FdoingRerun = U8(0) for libc.AssignInt32(&rc, sqlite3Step(tls, v)) == SQLITE_SCHEMA && libc.PostIncInt32(&cnt, 1) < SQLITE_MAX_SCHEMA_RETRY { var savedPc int32 = (*Vdbe)(unsafe.Pointer(v)).Fpc @@ -107724,7 +107990,11 @@ func Xsqlite3_step(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amal } Xsqlite3_reset(tls, pStmt) if savedPc >= 0 { - (*Vdbe)(unsafe.Pointer(v)).FdoingRerun = U8(1) + // Setting minWriteFileFormat to 254 is a signal to the OP_Init and + // OP_Trace opcodes to *not* perform SQLITE_TRACE_STMT because it has + // already been done once on a prior invocation that failed due to + // SQLITE_SCHEMA. tag-20220401a + (*Vdbe)(unsafe.Pointer(v)).FminWriteFileFormat = U8(254) } } @@ -107734,7 +108004,7 @@ func Xsqlite3_step(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amal // Extract the user data from a sqlite3_context structure and return a // pointer to it. -func Xsqlite3_user_data(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85874:17: */ +func Xsqlite3_user_data(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86779:17: */ return (*FuncDef)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpFunc)).FpUserData } @@ -107747,7 +108017,7 @@ func Xsqlite3_user_data(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-a // parameter) of the sqlite3_create_function() and // sqlite3_create_function16() routines that originally registered the // application defined function. -func Xsqlite3_context_db_handle(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85889:20: */ +func Xsqlite3_context_db_handle(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86794:20: */ return (*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpOut)).Fdb } @@ -107764,14 +108034,14 @@ func Xsqlite3_context_db_handle(tls *libc.TLS, p uintptr) uintptr { /* testdata/ // Virtual table implements might use this routine to optimize their // performance by substituting a NULL result, or some other light-weight // value, as a signal to the xUpdate routine that the column is unchanged. -func Xsqlite3_vtab_nochange(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85908:16: */ +func Xsqlite3_vtab_nochange(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86813:16: */ return Xsqlite3_value_nochange(tls, (*Sqlite3_context)(unsafe.Pointer(p)).FpOut) } // Implementation of sqlite3_vtab_in_first() (if bNext==0) and // sqlite3_vtab_in_next() (if bNext!=0). -func valueFromValueList(tls *libc.TLS, pVal uintptr, ppOut uintptr, bNext int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85917:12: */ +func valueFromValueList(tls *libc.TLS, pVal uintptr, ppOut uintptr, bNext int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86822:12: */ bp := tls.Alloc(68) defer tls.Free(68) @@ -107782,7 +108052,7 @@ func valueFromValueList(tls *libc.TLS, pVal uintptr, ppOut uintptr, bNext int32) if pVal == uintptr(0) { return SQLITE_MISUSE } - pRhs = Xsqlite3_value_pointer(tls, pVal, ts+6660) + pRhs = Xsqlite3_value_pointer(tls, pVal, ts+6695) if pRhs == uintptr(0) { return SQLITE_MISUSE } @@ -107829,13 +108099,13 @@ func valueFromValueList(tls *libc.TLS, pVal uintptr, ppOut uintptr, bNext int32) // Set the iterator value pVal to point to the first value in the set. // Set (*ppOut) to point to this value before returning. -func Xsqlite3_vtab_in_first(tls *libc.TLS, pVal uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85965:16: */ +func Xsqlite3_vtab_in_first(tls *libc.TLS, pVal uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86870:16: */ return valueFromValueList(tls, pVal, ppOut, 0) } // Set the iterator value pVal to point to the next value in the set. // Set (*ppOut) to point to this value before returning. -func Xsqlite3_vtab_in_next(tls *libc.TLS, pVal uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85973:16: */ +func Xsqlite3_vtab_in_next(tls *libc.TLS, pVal uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86878:16: */ return valueFromValueList(tls, pVal, ppOut, 1) } @@ -107844,7 +108114,7 @@ func Xsqlite3_vtab_in_next(tls *libc.TLS, pVal uintptr, ppOut uintptr) int32 { / // statement, the exact same time is returned for each invocation regardless // of the amount of time that elapses between invocations. In other words, // the time returned is always the time of the first call. -func Xsqlite3StmtCurrentTime(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:85984:30: */ +func Xsqlite3StmtCurrentTime(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86889:30: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -107852,7 +108122,7 @@ func Xsqlite3StmtCurrentTime(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* testda *(*Sqlite3_int64)(unsafe.Pointer(bp /* iTime */)) = int64(0) var piTime uintptr if (*Sqlite3_context)(unsafe.Pointer(p)).FpVdbe != uintptr(0) { - piTime = (*Sqlite3_context)(unsafe.Pointer(p)).FpVdbe + 80 + piTime = (*Sqlite3_context)(unsafe.Pointer(p)).FpVdbe + 72 } else { piTime = bp /* &iTime */ } @@ -107867,7 +108137,7 @@ func Xsqlite3StmtCurrentTime(tls *libc.TLS, p uintptr) Sqlite3_int64 { /* testda // Create a new aggregate context for p and return a pointer to // its pMem->z element. -func createAggContext(tls *libc.TLS, p uintptr, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86004:29: */ +func createAggContext(tls *libc.TLS, p uintptr, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86909:29: */ var pMem uintptr = (*Sqlite3_context)(unsafe.Pointer(p)).FpMem if nByte <= 0 { @@ -107887,7 +108157,7 @@ func createAggContext(tls *libc.TLS, p uintptr, nByte int32) uintptr { /* testda // Allocate or return the aggregate context for a user function. A new // context is allocated on the first call. Subsequent calls return the // same context that was returned on prior calls. -func Xsqlite3_aggregate_context(tls *libc.TLS, p uintptr, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86026:17: */ +func Xsqlite3_aggregate_context(tls *libc.TLS, p uintptr, nByte int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86931:17: */ if int32((*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpMem)).Fflags)&MEM_Agg == 0 { return createAggContext(tls, p, nByte) @@ -107905,7 +108175,7 @@ func Xsqlite3_aggregate_context(tls *libc.TLS, p uintptr, nByte int32) uintptr { // Undocumented behavior: If iArg is negative then access a cache of // auxiliary data pointers that is available to all functions within a // single prepared statement. The iArg values must match. -func Xsqlite3_get_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86047:17: */ +func Xsqlite3_get_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86952:17: */ var pAuxData uintptr if (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpVdbe == uintptr(0) { @@ -107928,7 +108198,7 @@ func Xsqlite3_get_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32) uintptr { /* // Undocumented behavior: If iArg is negative then make the data available // to all functions within the current prepared statement using iArg as an // access code. -func Xsqlite3_set_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32, pAux uintptr, xDelete uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86075:17: */ +func Xsqlite3_set_auxdata(tls *libc.TLS, pCtx uintptr, iArg int32, pAux uintptr, xDelete uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:86980:17: */ var pAuxData uintptr var pVdbe uintptr pVdbe = (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpVdbe @@ -108008,13 +108278,13 @@ __11: // provide only to avoid breaking legacy code. New aggregate function // implementations should keep their own counts within their aggregate // context. -func Xsqlite3_aggregate_count(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86128:16: */ +func Xsqlite3_aggregate_count(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87033:16: */ return (*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(p)).FpMem)).Fn } // Return the number of columns in the result set for the statement pStmt. -func Xsqlite3_column_count(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86137:16: */ +func Xsqlite3_column_count(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87042:16: */ var pVm uintptr = pStmt if pVm != 0 { return int32((*Vdbe)(unsafe.Pointer(pVm)).FnResColumn) @@ -108024,7 +108294,7 @@ func Xsqlite3_column_count(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sql // Return the number of values available from the current row of the // currently executing statement pStmt. -func Xsqlite3_data_count(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86146:16: */ +func Xsqlite3_data_count(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87051:16: */ var pVm uintptr = pStmt if pVm == uintptr(0) || (*Vdbe)(unsafe.Pointer(pVm)).FpResultSet == uintptr(0) { return 0 @@ -108033,19 +108303,19 @@ func Xsqlite3_data_count(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlit } // Return a pointer to static memory containing an SQL NULL value. -func columnNullValue(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86155:18: */ +func columnNullValue(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87060:18: */ return uintptr(unsafe.Pointer(&nullMem)) } var nullMem = Mem{ /* .flags = */ Fflags: U16(MEM_Null), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86165:20 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87070:20 */ // Check to see if column iCol of the given statement is valid. If // it is, return a pointer to the Mem for the value of that column. // If iCol is not valid, return a pointer to a Mem which has a value // of NULL. -func columnMem(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86195:12: */ +func columnMem(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87100:12: */ var pVm uintptr var pOut uintptr @@ -108072,15 +108342,15 @@ func columnMem(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqli // // Specifically, this is called from within: // -// sqlite3_column_int() -// sqlite3_column_int64() -// sqlite3_column_text() -// sqlite3_column_text16() -// sqlite3_column_real() -// sqlite3_column_bytes() -// sqlite3_column_bytes16() -// sqiite3_column_blob() -func columnMallocFailure(tls *libc.TLS, pStmt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86230:13: */ +// sqlite3_column_int() +// sqlite3_column_int64() +// sqlite3_column_text() +// sqlite3_column_text16() +// sqlite3_column_real() +// sqlite3_column_bytes() +// sqlite3_column_bytes16() +// sqiite3_column_blob() +func columnMallocFailure(tls *libc.TLS, pStmt uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87135:13: */ // If malloc() failed during an encoding conversion within an // sqlite3_column_XXX API, then set the return code of the statement to // SQLITE_NOMEM. The next call to _step() (if any) will return SQLITE_ERROR @@ -108097,7 +108367,7 @@ func columnMallocFailure(tls *libc.TLS, pStmt uintptr) { /* testdata/sqlite-amal // // The following routines are used to access elements of the current row // in the result set. -func Xsqlite3_column_blob(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86250:23: */ +func Xsqlite3_column_blob(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87155:23: */ var val uintptr val = Xsqlite3_value_blob(tls, columnMem(tls, pStmt, i)) // Even though there is no encoding conversion, value_blob() might @@ -108107,59 +108377,59 @@ func Xsqlite3_column_blob(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* te return val } -func Xsqlite3_column_bytes(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86260:16: */ +func Xsqlite3_column_bytes(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87165:16: */ var val int32 = Xsqlite3_value_bytes(tls, columnMem(tls, pStmt, i)) columnMallocFailure(tls, pStmt) return val } -func Xsqlite3_column_bytes16(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86265:16: */ +func Xsqlite3_column_bytes16(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87170:16: */ var val int32 = Xsqlite3_value_bytes16(tls, columnMem(tls, pStmt, i)) columnMallocFailure(tls, pStmt) return val } -func Xsqlite3_column_double(tls *libc.TLS, pStmt uintptr, i int32) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86270:19: */ +func Xsqlite3_column_double(tls *libc.TLS, pStmt uintptr, i int32) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87175:19: */ var val float64 = Xsqlite3_value_double(tls, columnMem(tls, pStmt, i)) columnMallocFailure(tls, pStmt) return val } -func Xsqlite3_column_int(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86275:16: */ +func Xsqlite3_column_int(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87180:16: */ var val int32 = Xsqlite3_value_int(tls, columnMem(tls, pStmt, i)) columnMallocFailure(tls, pStmt) return val } -func Xsqlite3_column_int64(tls *libc.TLS, pStmt uintptr, i int32) Sqlite_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86280:25: */ +func Xsqlite3_column_int64(tls *libc.TLS, pStmt uintptr, i int32) Sqlite_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87185:25: */ var val Sqlite_int64 = Xsqlite3_value_int64(tls, columnMem(tls, pStmt, i)) columnMallocFailure(tls, pStmt) return val } -func Xsqlite3_column_text(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86285:32: */ +func Xsqlite3_column_text(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87190:32: */ var val uintptr = Xsqlite3_value_text(tls, columnMem(tls, pStmt, i)) columnMallocFailure(tls, pStmt) return val } -func Xsqlite3_column_value(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86290:26: */ +func Xsqlite3_column_value(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87195:26: */ var pOut uintptr = columnMem(tls, pStmt, i) if int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&MEM_Static != 0 { - *(*U16)(unsafe.Pointer(pOut + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Static)) - *(*U16)(unsafe.Pointer(pOut + 8)) |= U16(MEM_Ephem) + *(*U16)(unsafe.Pointer(pOut + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Static)) + *(*U16)(unsafe.Pointer(pOut + 20)) |= U16(MEM_Ephem) } columnMallocFailure(tls, pStmt) return pOut } -func Xsqlite3_column_text16(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86300:23: */ +func Xsqlite3_column_text16(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87205:23: */ var val uintptr = Xsqlite3_value_text16(tls, columnMem(tls, pStmt, i)) columnMallocFailure(tls, pStmt) return val } -func Xsqlite3_column_type(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86306:16: */ +func Xsqlite3_column_type(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87211:16: */ var iType int32 = Xsqlite3_value_type(tls, columnMem(tls, pStmt, i)) columnMallocFailure(tls, pStmt) return iType @@ -108171,15 +108441,15 @@ func Xsqlite3_column_type(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* test // There are up to 5 names for each column. useType determines which // name is returned. Here are the names: // -// 0 The column name as it should be displayed for output -// 1 The datatype name for the column -// 2 The name of the database that the column derives from -// 3 The name of the table that the column derives from -// 4 The name of the table column that the result column derives from +// 0 The column name as it should be displayed for output +// 1 The datatype name for the column +// 2 The name of the database that the column derives from +// 3 The name of the table that the column derives from +// 4 The name of the table column that the result column derives from // // If the result is not a simple column reference (if it is an expression // or a constant) then useTypes 2, 3, and 4 return NULL. -func columnName(tls *libc.TLS, pStmt uintptr, N int32, useUtf16 int32, useType int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86328:19: */ +func columnName(tls *libc.TLS, pStmt uintptr, N int32, useUtf16 int32, useType int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87233:19: */ var ret uintptr var p uintptr var n int32 @@ -108211,11 +108481,11 @@ func columnName(tls *libc.TLS, pStmt uintptr, N int32, useUtf16 int32, useType i // Return the name of the Nth column of the result set returned by SQL // statement pStmt. -func Xsqlite3_column_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86377:23: */ +func Xsqlite3_column_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87282:23: */ return columnName(tls, pStmt, N, 0, COLNAME_NAME) } -func Xsqlite3_column_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86381:23: */ +func Xsqlite3_column_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87286:23: */ return columnName(tls, pStmt, N, 1, COLNAME_NAME) } @@ -108224,50 +108494,49 @@ func Xsqlite3_column_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* // Return the column declaration type (if applicable) of the 'i'th column // of the result set of SQL statement pStmt. -func Xsqlite3_column_decltype(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86400:23: */ +func Xsqlite3_column_decltype(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87305:23: */ return columnName(tls, pStmt, N, 0, COLNAME_DECLTYPE) } -func Xsqlite3_column_decltype16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86404:23: */ +func Xsqlite3_column_decltype16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87309:23: */ return columnName(tls, pStmt, N, 1, COLNAME_DECLTYPE) } // Return the name of the database from which a result column derives. // NULL is returned if the result column is an expression or constant or // anything else which is not an unambiguous reference to a database column. -func Xsqlite3_column_database_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86416:23: */ +func Xsqlite3_column_database_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87321:23: */ return columnName(tls, pStmt, N, 0, COLNAME_DATABASE) } -func Xsqlite3_column_database_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86420:23: */ +func Xsqlite3_column_database_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87325:23: */ return columnName(tls, pStmt, N, 1, COLNAME_DATABASE) } // Return the name of the table from which a result column derives. // NULL is returned if the result column is an expression or constant or // anything else which is not an unambiguous reference to a database column. -func Xsqlite3_column_table_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86430:23: */ +func Xsqlite3_column_table_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87335:23: */ return columnName(tls, pStmt, N, 0, COLNAME_TABLE) } -func Xsqlite3_column_table_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86434:23: */ +func Xsqlite3_column_table_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87339:23: */ return columnName(tls, pStmt, N, 1, COLNAME_TABLE) } // Return the name of the table column from which a result column derives. // NULL is returned if the result column is an expression or constant or // anything else which is not an unambiguous reference to a database column. -func Xsqlite3_column_origin_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86444:23: */ +func Xsqlite3_column_origin_name(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87349:23: */ return columnName(tls, pStmt, N, 0, COLNAME_COLUMN) } -func Xsqlite3_column_origin_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86448:23: */ +func Xsqlite3_column_origin_name16(tls *libc.TLS, pStmt uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87353:23: */ return columnName(tls, pStmt, N, 1, COLNAME_COLUMN) } // ****************************** sqlite3_bind_ *************************** // -// // Routines used to attach values to wildcards in a compiled SQL statement. // Unbind the value bound to variable i in virtual machine p. This is the // the same as binding a NULL value to the column. If the "i" parameter is @@ -108278,21 +108547,21 @@ func Xsqlite3_column_origin_name16(tls *libc.TLS, pStmt uintptr, N int32) uintpt // // The error code stored in database p->db is overwritten with the return // value in any case. -func vdbeUnbind(tls *libc.TLS, p uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86470:12: */ +func vdbeUnbind(tls *libc.TLS, p uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87375:12: */ bp := tls.Alloc(8) defer tls.Free(8) var pVar uintptr if vdbeSafetyNotNull(tls, p) != 0 { - return Xsqlite3MisuseError(tls, 86473) + return Xsqlite3MisuseError(tls, 87378) } Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).Fmutex) - if (*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic != U32(VDBE_MAGIC_RUN) || (*Vdbe)(unsafe.Pointer(p)).Fpc >= 0 { + if int32((*Vdbe)(unsafe.Pointer(p)).FeVdbeState) != VDBE_READY_STATE { Xsqlite3Error(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, SQLITE_MISUSE) Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).Fmutex) Xsqlite3_log(tls, SQLITE_MISUSE, - ts+6670, libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzSql)) - return Xsqlite3MisuseError(tls, 86481) + ts+6705, libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzSql)) + return Xsqlite3MisuseError(tls, 87386) } if i < 1 || i > int32((*Vdbe)(unsafe.Pointer(p)).FnVar) { Xsqlite3Error(tls, (*Vdbe)(unsafe.Pointer(p)).Fdb, SQLITE_RANGE) @@ -108320,13 +108589,13 @@ func vdbeUnbind(tls *libc.TLS, p uintptr, i int32) int32 { /* testdata/sqlite-am } return U32(U32(1)) << i }() != U32(0) { - libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 0, 0x3) + libc.SetBitFieldPtr8Uint32(p+200, Bft(1), 0, 0x3) } return SQLITE_OK } // Bind a text or BLOB value. -func bindText(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData I64, xDel uintptr, encoding U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86513:12: */ +func bindText(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData I64, xDel uintptr, encoding U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87418:12: */ var p uintptr = pStmt var pVar uintptr var rc int32 @@ -108352,16 +108621,16 @@ func bindText(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData I64, x } // Bind a blob value to an SQL statement variable. -func Xsqlite3_bind_blob(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData int32, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86549:16: */ +func Xsqlite3_bind_blob(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData int32, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87454:16: */ return bindText(tls, pStmt, i, zData, int64(nData), xDel, uint8(0)) } -func Xsqlite3_bind_blob64(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData Sqlite3_uint64, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86561:16: */ +func Xsqlite3_bind_blob64(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData Sqlite3_uint64, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87466:16: */ return bindText(tls, pStmt, i, zData, int64(nData), xDel, uint8(0)) } -func Xsqlite3_bind_double(tls *libc.TLS, pStmt uintptr, i int32, rValue float64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86571:16: */ +func Xsqlite3_bind_double(tls *libc.TLS, pStmt uintptr, i int32, rValue float64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87476:16: */ var rc int32 var p uintptr = pStmt rc = vdbeUnbind(tls, p, i) @@ -108372,11 +108641,11 @@ func Xsqlite3_bind_double(tls *libc.TLS, pStmt uintptr, i int32, rValue float64) return rc } -func Xsqlite3_bind_int(tls *libc.TLS, p uintptr, i int32, iValue int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86581:16: */ +func Xsqlite3_bind_int(tls *libc.TLS, p uintptr, i int32, iValue int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87486:16: */ return Xsqlite3_bind_int64(tls, p, i, I64(iValue)) } -func Xsqlite3_bind_int64(tls *libc.TLS, pStmt uintptr, i int32, iValue Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86584:16: */ +func Xsqlite3_bind_int64(tls *libc.TLS, pStmt uintptr, i int32, iValue Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87489:16: */ var rc int32 var p uintptr = pStmt rc = vdbeUnbind(tls, p, i) @@ -108387,7 +108656,7 @@ func Xsqlite3_bind_int64(tls *libc.TLS, pStmt uintptr, i int32, iValue Sqlite_in return rc } -func Xsqlite3_bind_null(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86594:16: */ +func Xsqlite3_bind_null(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87499:16: */ var rc int32 var p uintptr = pStmt rc = vdbeUnbind(tls, p, i) @@ -108397,7 +108666,7 @@ func Xsqlite3_bind_null(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* testda return rc } -func Xsqlite3_bind_pointer(tls *libc.TLS, pStmt uintptr, i int32, pPtr uintptr, zPTtype uintptr, xDestructor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86603:16: */ +func Xsqlite3_bind_pointer(tls *libc.TLS, pStmt uintptr, i int32, pPtr uintptr, zPTtype uintptr, xDestructor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87508:16: */ var rc int32 var p uintptr = pStmt rc = vdbeUnbind(tls, p, i) @@ -108410,11 +108679,11 @@ func Xsqlite3_bind_pointer(tls *libc.TLS, pStmt uintptr, i int32, pPtr uintptr, return rc } -func Xsqlite3_bind_text(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData int32, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86621:16: */ +func Xsqlite3_bind_text(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData int32, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87526:16: */ return bindText(tls, pStmt, i, zData, int64(nData), xDel, uint8(SQLITE_UTF8)) } -func Xsqlite3_bind_text64(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData Sqlite3_uint64, xDel uintptr, enc uint8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86630:16: */ +func Xsqlite3_bind_text64(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData Sqlite3_uint64, xDel uintptr, enc uint8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87535:16: */ if int32(enc) == SQLITE_UTF16 { enc = uint8(SQLITE_UTF16LE) @@ -108422,11 +108691,11 @@ func Xsqlite3_bind_text64(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, return bindText(tls, pStmt, i, zData, int64(nData), xDel, enc) } -func Xsqlite3_bind_text16(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData int32, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86643:16: */ +func Xsqlite3_bind_text16(tls *libc.TLS, pStmt uintptr, i int32, zData uintptr, nData int32, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87548:16: */ return bindText(tls, pStmt, i, zData, int64(nData), xDel, uint8(SQLITE_UTF16LE)) } -func Xsqlite3_bind_value(tls *libc.TLS, pStmt uintptr, i int32, pValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86653:16: */ +func Xsqlite3_bind_value(tls *libc.TLS, pStmt uintptr, i int32, pValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87558:16: */ var rc int32 switch Xsqlite3_value_type(tls, pValue) { case SQLITE_INTEGER: @@ -108475,7 +108744,7 @@ func Xsqlite3_bind_value(tls *libc.TLS, pStmt uintptr, i int32, pValue uintptr) return rc } -func Xsqlite3_bind_zeroblob(tls *libc.TLS, pStmt uintptr, i int32, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86687:16: */ +func Xsqlite3_bind_zeroblob(tls *libc.TLS, pStmt uintptr, i int32, n int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87592:16: */ var rc int32 var p uintptr = pStmt rc = vdbeUnbind(tls, p, i) @@ -108486,7 +108755,7 @@ func Xsqlite3_bind_zeroblob(tls *libc.TLS, pStmt uintptr, i int32, n int32) int3 return rc } -func Xsqlite3_bind_zeroblob64(tls *libc.TLS, pStmt uintptr, i int32, n Sqlite3_uint64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86701:16: */ +func Xsqlite3_bind_zeroblob64(tls *libc.TLS, pStmt uintptr, i int32, n Sqlite3_uint64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87606:16: */ var rc int32 var p uintptr = pStmt Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).Fdb)).Fmutex) @@ -108503,7 +108772,7 @@ func Xsqlite3_bind_zeroblob64(tls *libc.TLS, pStmt uintptr, i int32, n Sqlite3_u // Return the number of wildcards that can be potentially bound to. // This routine is added to support DBD::SQLite. -func Xsqlite3_bind_parameter_count(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86720:16: */ +func Xsqlite3_bind_parameter_count(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87625:16: */ var p uintptr = pStmt if p != 0 { return int32((*Vdbe)(unsafe.Pointer(p)).FnVar) @@ -108515,7 +108784,7 @@ func Xsqlite3_bind_parameter_count(tls *libc.TLS, pStmt uintptr) int32 { /* test // is out of range or if the wildcard is unnamed. // // The result is always UTF-8. -func Xsqlite3_bind_parameter_name(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86731:23: */ +func Xsqlite3_bind_parameter_name(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87636:23: */ var p uintptr = pStmt if p == uintptr(0) { return uintptr(0) @@ -108526,19 +108795,19 @@ func Xsqlite3_bind_parameter_name(tls *libc.TLS, pStmt uintptr, i int32) uintptr // Given a wildcard parameter name, return the index of the variable // with that name. If there is no variable with the given name, // return 0. -func Xsqlite3VdbeParameterIndex(tls *libc.TLS, p uintptr, zName uintptr, nName int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86742:20: */ +func Xsqlite3VdbeParameterIndex(tls *libc.TLS, p uintptr, zName uintptr, nName int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87647:20: */ if p == uintptr(0) || zName == uintptr(0) { return 0 } return Xsqlite3VListNameToNum(tls, (*Vdbe)(unsafe.Pointer(p)).FpVList, zName, nName) } -func Xsqlite3_bind_parameter_index(tls *libc.TLS, pStmt uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86746:16: */ +func Xsqlite3_bind_parameter_index(tls *libc.TLS, pStmt uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87651:16: */ return Xsqlite3VdbeParameterIndex(tls, pStmt, zName, Xsqlite3Strlen30(tls, zName)) } // Transfer all bindings from the first statement over to the second. -func Xsqlite3TransferBindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86753:20: */ +func Xsqlite3TransferBindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87658:20: */ var pFrom uintptr = pFromStmt var pTo uintptr = pToStmt var i int32 @@ -108561,7 +108830,7 @@ func Xsqlite3TransferBindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintptr) // If the two statements contain a different number of bindings, then // an SQLITE_ERROR is returned. Nothing else can go wrong, so otherwise // SQLITE_OK is returned. -func Xsqlite3_transfer_bindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86780:16: */ +func Xsqlite3_transfer_bindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87685:16: */ var pFrom uintptr = pFromStmt var pTo uintptr = pToStmt if int32((*Vdbe)(unsafe.Pointer(pFrom)).FnVar) != int32((*Vdbe)(unsafe.Pointer(pTo)).FnVar) { @@ -108569,11 +108838,11 @@ func Xsqlite3_transfer_bindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintpt } if (*Vdbe)(unsafe.Pointer(pTo)).Fexpmask != 0 { - libc.SetBitFieldPtr16Uint32(pTo+208, Bft(1), 0, 0x3) + libc.SetBitFieldPtr8Uint32(pTo+200, Bft(1), 0, 0x3) } if (*Vdbe)(unsafe.Pointer(pFrom)).Fexpmask != 0 { - libc.SetBitFieldPtr16Uint32(pFrom+208, Bft(1), 0, 0x3) + libc.SetBitFieldPtr8Uint32(pFrom+200, Bft(1), 0, 0x3) } return Xsqlite3TransferBindings(tls, pFromStmt, pToStmt) } @@ -108582,7 +108851,7 @@ func Xsqlite3_transfer_bindings(tls *libc.TLS, pFromStmt uintptr, pToStmt uintpt // in the argument belongs. This is the same database handle that was // the first argument to the sqlite3_prepare() that was used to create // the statement in the first place. -func Xsqlite3_db_handle(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86804:20: */ +func Xsqlite3_db_handle(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87709:20: */ if pStmt != 0 { return (*Vdbe)(unsafe.Pointer(pStmt)).Fdb } @@ -108591,33 +108860,33 @@ func Xsqlite3_db_handle(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/sqli // Return true if the prepared statement is guaranteed to not modify the // database. -func Xsqlite3_stmt_readonly(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86812:16: */ +func Xsqlite3_stmt_readonly(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87717:16: */ if pStmt != 0 { - return int32(*(*uint16)(unsafe.Pointer(pStmt + 208)) & 0x80 >> 7) + return int32(*(*uint8)(unsafe.Pointer(pStmt + 200)) & 0x40 >> 6) } return 1 } // Return 1 if the statement is an EXPLAIN and return 2 if the // statement is an EXPLAIN QUERY PLAN -func Xsqlite3_stmt_isexplain(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86820:16: */ +func Xsqlite3_stmt_isexplain(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87725:16: */ if pStmt != 0 { - return int32(*(*uint16)(unsafe.Pointer(pStmt + 208)) & 0xc >> 2) + return int32(*(*uint8)(unsafe.Pointer(pStmt + 200)) & 0xc >> 2) } return 0 } // Return true if the prepared statement is in need of being reset. -func Xsqlite3_stmt_busy(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86827:16: */ +func Xsqlite3_stmt_busy(tls *libc.TLS, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87732:16: */ var v uintptr = pStmt - return libc.Bool32(v != uintptr(0) && (*Vdbe)(unsafe.Pointer(v)).FiVdbeMagic == U32(VDBE_MAGIC_RUN) && (*Vdbe)(unsafe.Pointer(v)).Fpc >= 0) + return libc.Bool32(v != uintptr(0) && int32((*Vdbe)(unsafe.Pointer(v)).FeVdbeState) == VDBE_RUN_STATE) } // Return a pointer to the next prepared statement after pStmt associated // with database connection pDb. If pStmt is NULL, return the first // prepared statement for the database connection. Return NULL if there // are no more. -func Xsqlite3_next_stmt(tls *libc.TLS, pDb uintptr, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86838:25: */ +func Xsqlite3_next_stmt(tls *libc.TLS, pDb uintptr, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87743:25: */ var pNext uintptr Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(pDb)).Fmutex) if pStmt == uintptr(0) { @@ -108630,7 +108899,7 @@ func Xsqlite3_next_stmt(tls *libc.TLS, pDb uintptr, pStmt uintptr) uintptr { /* } // Return the value of a status counter for a prepared statement -func Xsqlite3_stmt_status(tls *libc.TLS, pStmt uintptr, op int32, resetFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86859:16: */ +func Xsqlite3_stmt_status(tls *libc.TLS, pStmt uintptr, op int32, resetFlag int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87764:16: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -108642,21 +108911,20 @@ func Xsqlite3_stmt_status(tls *libc.TLS, pStmt uintptr, op int32, resetFlag int3 Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) *(*U32)(unsafe.Pointer(bp /* v */)) = U32(0) (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed = bp /* &v */ - Xsqlite3VdbeClearObject(tls, db, pVdbe) - Xsqlite3DbFree(tls, db, pVdbe) + Xsqlite3VdbeDelete(tls, pVdbe) (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed = uintptr(0) Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) } else { - *(*U32)(unsafe.Pointer(bp /* v */)) = *(*U32)(unsafe.Pointer(pVdbe + 220 + uintptr(op)*4)) + *(*U32)(unsafe.Pointer(bp /* v */)) = *(*U32)(unsafe.Pointer(pVdbe + 212 + uintptr(op)*4)) if resetFlag != 0 { - *(*U32)(unsafe.Pointer(pVdbe + 220 + uintptr(op)*4)) = U32(0) + *(*U32)(unsafe.Pointer(pVdbe + 212 + uintptr(op)*4)) = U32(0) } } return int32(*(*U32)(unsafe.Pointer(bp /* v */))) } // Return the SQL associated with a prepared statement -func Xsqlite3_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86889:23: */ +func Xsqlite3_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87793:23: */ var p uintptr = pStmt if p != 0 { return (*Vdbe)(unsafe.Pointer(p)).FzSql @@ -108671,7 +108939,7 @@ func Xsqlite3_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/sqlite-ama // // The SQLITE_TRACE_SIZE_LIMIT puts an upper bound on the size of // expanded bound parameters. -func Xsqlite3_expanded_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86903:17: */ +func Xsqlite3_expanded_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87807:17: */ var z uintptr = uintptr(0) var zSql uintptr = Xsqlite3_sql(tls, pStmt) if zSql != 0 { @@ -108686,7 +108954,7 @@ func Xsqlite3_expanded_sql(tls *libc.TLS, pStmt uintptr) uintptr { /* testdata/s // Allocate and populate an UnpackedRecord structure based on the serialized // record in nKey/pKey. Return a pointer to the new UnpackedRecord structure // if successful, or a NULL pointer if an OOM error is encountered. -func vdbeUnpackRecord(tls *libc.TLS, pKeyInfo uintptr, nKey int32, pKey uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86941:23: */ +func vdbeUnpackRecord(tls *libc.TLS, pKeyInfo uintptr, nKey int32, pKey uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87845:23: */ var pRet uintptr // Return value pRet = Xsqlite3VdbeAllocUnpackedRecord(tls, pKeyInfo) @@ -108699,7 +108967,7 @@ func vdbeUnpackRecord(tls *libc.TLS, pKeyInfo uintptr, nKey int32, pKey uintptr) // This function is called from within a pre-update callback to retrieve // a field of the row currently being updated or deleted. -func Xsqlite3_preupdate_old(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86960:16: */ +func Xsqlite3_preupdate_old(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87864:16: */ var p uintptr var pMem uintptr var rc int32 @@ -108713,7 +108981,7 @@ func Xsqlite3_preupdate_old(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintp if !(!(p != 0) || (*PreUpdate)(unsafe.Pointer(p)).Fop == SQLITE_INSERT) { goto __1 } - rc = Xsqlite3MisuseError(tls, 86968) + rc = Xsqlite3MisuseError(tls, 87872) goto preupdate_old_out __1: ; @@ -108805,7 +109073,7 @@ preupdate_old_out: // This function is called from within a pre-update callback to retrieve // the number of columns in the row being updated, deleted or inserted. -func Xsqlite3_preupdate_count(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87024:16: */ +func Xsqlite3_preupdate_count(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87928:16: */ var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate return func() int32 { if p != 0 { @@ -108824,7 +109092,7 @@ func Xsqlite3_preupdate_count(tls *libc.TLS, db uintptr) int32 { /* testdata/sql // // For the purposes of the previous paragraph, a foreign key CASCADE, SET NULL // or SET DEFAULT action is considered a trigger. -func Xsqlite3_preupdate_depth(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87042:16: */ +func Xsqlite3_preupdate_depth(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87946:16: */ var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate return func() int32 { if p != 0 { @@ -108836,7 +109104,7 @@ func Xsqlite3_preupdate_depth(tls *libc.TLS, db uintptr) int32 { /* testdata/sql // This function is designed to be called from within a pre-update callback // only. -func Xsqlite3_preupdate_blobwrite(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87053:16: */ +func Xsqlite3_preupdate_blobwrite(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87957:16: */ var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdate return func() int32 { if p != 0 { @@ -108848,7 +109116,7 @@ func Xsqlite3_preupdate_blobwrite(tls *libc.TLS, db uintptr) int32 { /* testdata // This function is called from within a pre-update callback to retrieve // a field of the row currently being updated or inserted. -func Xsqlite3_preupdate_new(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87064:16: */ +func Xsqlite3_preupdate_new(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:87968:16: */ var p uintptr var rc int32 var pMem uintptr @@ -108862,7 +109130,7 @@ func Xsqlite3_preupdate_new(tls *libc.TLS, db uintptr, iIdx int32, ppValue uintp if !(!(p != 0) || (*PreUpdate)(unsafe.Pointer(p)).Fop == SQLITE_DELETE) { goto __1 } - rc = Xsqlite3MisuseError(tls, 87070) + rc = Xsqlite3MisuseError(tls, 87974) goto preupdate_new_out __1: ; @@ -109003,7 +109271,7 @@ preupdate_new_out: // bytes in this text up to but excluding the first character in // a host parameter. If the text contains no host parameters, return // the total number of bytes in the text. -func findNextHostParameter(tls *libc.TLS, zSql uintptr, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87234:12: */ +func findNextHostParameter(tls *libc.TLS, zSql uintptr, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88138:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -109048,7 +109316,7 @@ func findNextHostParameter(tls *libc.TLS, zSql uintptr, pnToken uintptr) int32 { // statement for the corresponding OP_Variable opcode. Once the host // parameter index is known, locate the value in p->aVar[]. Then render // the value as a literal in place of the host parameter name. -func Xsqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87277:21: */ +func Xsqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88181:21: */ bp := tls.Alloc(144) defer tls.Free(144) @@ -109072,7 +109340,7 @@ func Xsqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) uintptr { var zStart uintptr = zRawSql for int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zRawSql, 1)))) != '\n' && *(*int8)(unsafe.Pointer(zRawSql)) != 0 { } - Xsqlite3_str_append(tls, bp+48, ts+6710, 3) + Xsqlite3_str_append(tls, bp+48, ts+6745, 3) Xsqlite3_str_append(tls, bp+48, zStart, int32((int64(zRawSql)-int64(zStart))/1)) } @@ -109114,7 +109382,7 @@ func Xsqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) uintptr { } else if int32((*Mem)(unsafe.Pointer(pVar)).Fflags)&(MEM_Int|MEM_IntReal) != 0 { Xsqlite3_str_appendf(tls, bp+48, ts+1304, libc.VaList(bp, *(*I64)(unsafe.Pointer(pVar)))) } else if int32((*Mem)(unsafe.Pointer(pVar)).Fflags)&MEM_Real != 0 { - Xsqlite3_str_appendf(tls, bp+48, ts+6228, libc.VaList(bp+8, *(*float64)(unsafe.Pointer(pVar)))) + Xsqlite3_str_appendf(tls, bp+48, ts+6263, libc.VaList(bp+8, *(*float64)(unsafe.Pointer(pVar)))) } else if int32((*Mem)(unsafe.Pointer(pVar)).Fflags)&MEM_Str != 0 { var nOut int32 // Number of bytes of the string text to include in output var enc U8 = (*Sqlite3)(unsafe.Pointer(db)).Fenc @@ -109129,21 +109397,21 @@ func Xsqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) uintptr { pVar = bp + 88 /* &utf8 */ } nOut = (*Mem)(unsafe.Pointer(pVar)).Fn - Xsqlite3_str_appendf(tls, bp+48, ts+6714, libc.VaList(bp+16, nOut, (*Mem)(unsafe.Pointer(pVar)).Fz)) + Xsqlite3_str_appendf(tls, bp+48, ts+6749, libc.VaList(bp+16, nOut, (*Mem)(unsafe.Pointer(pVar)).Fz)) if int32(enc) != SQLITE_UTF8 { Xsqlite3VdbeMemRelease(tls, bp+88) } } else if int32((*Mem)(unsafe.Pointer(pVar)).Fflags)&MEM_Zero != 0 { - Xsqlite3_str_appendf(tls, bp+48, ts+6721, libc.VaList(bp+32, *(*int32)(unsafe.Pointer(pVar)))) + Xsqlite3_str_appendf(tls, bp+48, ts+6756, libc.VaList(bp+32, *(*int32)(unsafe.Pointer(pVar)))) } else { var nOut int32 // Number of bytes of the blob to include in output - Xsqlite3_str_append(tls, bp+48, ts+6734, 2) + Xsqlite3_str_append(tls, bp+48, ts+6769, 2) nOut = (*Mem)(unsafe.Pointer(pVar)).Fn for i = 0; i < nOut; i++ { - Xsqlite3_str_appendf(tls, bp+48, ts+6737, libc.VaList(bp+40, int32(*(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pVar)).Fz + uintptr(i))))&0xff)) + Xsqlite3_str_appendf(tls, bp+48, ts+6772, libc.VaList(bp+40, int32(*(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pVar)).Fz + uintptr(i))))&0xff)) } - Xsqlite3_str_append(tls, bp+48, ts+6742, 1) + Xsqlite3_str_append(tls, bp+48, ts+6777, 1) } } } @@ -109271,7 +109539,7 @@ func Xsqlite3VdbeExpandSql(tls *libc.TLS, p uintptr, zRawSql uintptr) uintptr { // Allocate VdbeCursor number iCur. Return a pointer to it. Return NULL // if we run out of memory. -func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, eCurType U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87640:19: */ +func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, eCurType U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88544:19: */ // Find the memory cell that will be used to store the blob of memory // required for this VdbeCursor structure. It is convenient to use a // vdbe memory cell to manage the memory allocation required for a @@ -109297,7 +109565,7 @@ func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, eCurType } var nByte int32 var pCx uintptr = uintptr(0) - nByte = int32((uint64(unsafe.Sizeof(VdbeCursor{}))+uint64(7))&libc.Uint64FromInt32(libc.CplInt32(7)) + uint64(2)*uint64(unsafe.Sizeof(U32(0)))*uint64(nField) + func() uint64 { + nByte = int32(uint64(unsafe.Sizeof(VdbeCursor{})) + uint64(2)*uint64(unsafe.Sizeof(U32(0)))*uint64(nField) + func() uint64 { if int32(eCurType) == CURTYPE_BTREE { return uint64(Xsqlite3BtreeCursorSize(tls)) } @@ -109305,7 +109573,7 @@ func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, eCurType }()) if *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr(iCur)*8)) != 0 { //OPTIMIZATION-IF-FALSE - Xsqlite3VdbeFreeCursor(tls, p, *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr(iCur)*8))) + Xsqlite3VdbeFreeCursorNN(tls, p, *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr(iCur)*8))) *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr(iCur)*8)) = uintptr(0) } @@ -109318,7 +109586,7 @@ func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, eCurType if (*Mem)(unsafe.Pointer(pMem)).FszMalloc > 0 { Xsqlite3DbFreeNN(tls, (*Mem)(unsafe.Pointer(pMem)).Fdb, (*Mem)(unsafe.Pointer(pMem)).FzMalloc) } - (*Mem)(unsafe.Pointer(pMem)).Fz = libc.AssignPtrUintptr(pMem+24, Xsqlite3DbMallocRaw(tls, (*Mem)(unsafe.Pointer(pMem)).Fdb, uint64(nByte))) + (*Mem)(unsafe.Pointer(pMem)).Fz = libc.AssignPtrUintptr(pMem+40, Xsqlite3DbMallocRaw(tls, (*Mem)(unsafe.Pointer(pMem)).Fdb, uint64(nByte))) if (*Mem)(unsafe.Pointer(pMem)).FzMalloc == uintptr(0) { (*Mem)(unsafe.Pointer(pMem)).FszMalloc = 0 return uintptr(0) @@ -109332,7 +109600,7 @@ func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, eCurType (*VdbeCursor)(unsafe.Pointer(pCx)).FnField = I16(nField) (*VdbeCursor)(unsafe.Pointer(pCx)).FaOffset = pCx + 112 + uintptr(nField)*4 if int32(eCurType) == CURTYPE_BTREE { - *(*uintptr)(unsafe.Pointer(pCx + 48)) = (*Mem)(unsafe.Pointer(pMem)).Fz + uintptr((uint64(unsafe.Sizeof(VdbeCursor{}))+uint64(7))&libc.Uint64FromInt32(libc.CplInt32(7))+uint64(2)*uint64(unsafe.Sizeof(U32(0)))*uint64(nField)) + *(*uintptr)(unsafe.Pointer(pCx + 48)) = (*Mem)(unsafe.Pointer(pMem)).Fz + uintptr(uint64(unsafe.Sizeof(VdbeCursor{}))+uint64(2)*uint64(unsafe.Sizeof(U32(0)))*uint64(nField)) Xsqlite3BtreeCursorZero(tls, *(*uintptr)(unsafe.Pointer(pCx + 48))) } return pCx @@ -109342,7 +109610,7 @@ func allocateCursor(tls *libc.TLS, p uintptr, iCur int32, nField int32, eCurType // floating point value of rValue. Return true and set *piValue to the // integer value if the string is in range to be an integer. Otherwise, // return false. -func alsoAnInt(tls *libc.TLS, pRec uintptr, rValue float64, piValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87716:12: */ +func alsoAnInt(tls *libc.TLS, pRec uintptr, rValue float64, piValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88620:12: */ var iValue I64 = I64(rValue) if Xsqlite3RealSameAsInt(tls, rValue, iValue) != 0 { *(*I64)(unsafe.Pointer(piValue)) = iValue @@ -109364,7 +109632,7 @@ func alsoAnInt(tls *libc.TLS, pRec uintptr, rValue float64, piValue uintptr) int // If bTryForInt is false, then if the input string contains a decimal // point or exponential notation, the result is only MEM_Real, even // if there is an exact integer representation of the quantity. -func applyNumericAffinity(tls *libc.TLS, pRec uintptr, bTryForInt int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87740:13: */ +func applyNumericAffinity(tls *libc.TLS, pRec uintptr, bTryForInt int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88644:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -109378,10 +109646,10 @@ func applyNumericAffinity(tls *libc.TLS, pRec uintptr, bTryForInt int32) { /* te return } if rc == 1 && alsoAnInt(tls, pRec, *(*float64)(unsafe.Pointer(bp)), pRec) != 0 { - *(*U16)(unsafe.Pointer(pRec + 8)) |= U16(MEM_Int) + *(*U16)(unsafe.Pointer(pRec + 20)) |= U16(MEM_Int) } else { *(*float64)(unsafe.Pointer(pRec)) = *(*float64)(unsafe.Pointer(bp /* rValue */)) - *(*U16)(unsafe.Pointer(pRec + 8)) |= U16(MEM_Real) + *(*U16)(unsafe.Pointer(pRec + 20)) |= U16(MEM_Real) if bTryForInt != 0 { Xsqlite3VdbeIntegerAffinity(tls, pRec) } @@ -109390,7 +109658,7 @@ func applyNumericAffinity(tls *libc.TLS, pRec uintptr, bTryForInt int32) { /* te // string representation after computing a numeric equivalent, because the // string representation might not be the canonical representation for the // numeric value. Ticket [343634942dd54ab57b7024] 2018-01-31. - *(*U16)(unsafe.Pointer(pRec + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Str)) + *(*U16)(unsafe.Pointer(pRec + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Str)) } // Processing is determine by the affinity parameter: @@ -109398,19 +109666,22 @@ func applyNumericAffinity(tls *libc.TLS, pRec uintptr, bTryForInt int32) { /* te // SQLITE_AFF_INTEGER: // SQLITE_AFF_REAL: // SQLITE_AFF_NUMERIC: -// Try to convert pRec to an integer representation or a -// floating-point representation if an integer representation -// is not possible. Note that the integer representation is -// always preferred, even if the affinity is REAL, because -// an integer representation is more space efficient on disk. +// +// Try to convert pRec to an integer representation or a +// floating-point representation if an integer representation +// is not possible. Note that the integer representation is +// always preferred, even if the affinity is REAL, because +// an integer representation is more space efficient on disk. // // SQLITE_AFF_TEXT: -// Convert pRec to a text representation. +// +// Convert pRec to a text representation. // // SQLITE_AFF_BLOB: // SQLITE_AFF_NONE: -// No-op. pRec is unchanged. -func applyAffinity(tls *libc.TLS, pRec uintptr, affinity int8, enc U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87780:13: */ +// +// No-op. pRec is unchanged. +func applyAffinity(tls *libc.TLS, pRec uintptr, affinity int8, enc U8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88684:13: */ if int32(affinity) >= SQLITE_AFF_NUMERIC { if int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Int == 0 { //OPTIMIZATION-IF-FALSE @@ -109434,7 +109705,7 @@ func applyAffinity(tls *libc.TLS, pRec uintptr, affinity int8, enc U8) { /* test Xsqlite3VdbeMemStringify(tls, pRec, enc, uint8(1)) } } - *(*U16)(unsafe.Pointer(pRec + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Real | MEM_Int | MEM_IntReal)) + *(*U16)(unsafe.Pointer(pRec + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Real | MEM_Int | MEM_IntReal)) } } @@ -109442,7 +109713,7 @@ func applyAffinity(tls *libc.TLS, pRec uintptr, affinity int8, enc U8) { /* test // into a numeric representation. Use either INTEGER or REAL whichever // is appropriate. But only do the conversion if it is possible without // loss of information and return the revised type of the argument. -func Xsqlite3_value_numeric_type(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87819:16: */ +func Xsqlite3_value_numeric_type(tls *libc.TLS, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88723:16: */ var eType int32 = Xsqlite3_value_type(tls, pVal) if eType == SQLITE_TEXT { var pMem uintptr = pVal @@ -109454,7 +109725,7 @@ func Xsqlite3_value_numeric_type(tls *libc.TLS, pVal uintptr) int32 { /* testdat // Exported version of applyAffinity(). This one works on sqlite3_value*, // not the internal Mem* type. -func Xsqlite3ValueApplyAffinity(tls *libc.TLS, pVal uintptr, affinity U8, enc U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87833:21: */ +func Xsqlite3ValueApplyAffinity(tls *libc.TLS, pVal uintptr, affinity U8, enc U8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88737:21: */ applyAffinity(tls, pVal, int8(affinity), enc) } @@ -109462,7 +109733,7 @@ func Xsqlite3ValueApplyAffinity(tls *libc.TLS, pVal uintptr, affinity U8, enc U8 // interpret as a string if we want to). Compute its corresponding // numeric type, if has one. Set the pMem->u.r and pMem->u.i fields // accordingly. -func computeNumericType(tls *libc.TLS, pMem uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87847:28: */ +func computeNumericType(tls *libc.TLS, pMem uintptr) U16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88751:28: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -109498,7 +109769,7 @@ func computeNumericType(tls *libc.TLS, pMem uintptr) U16 { /* testdata/sqlite-am // // Unlike applyNumericAffinity(), this routine does not modify pMem->flags. // But it does set pMem->u.r and pMem->u.i appropriately. -func numericType(tls *libc.TLS, pMem uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:87878:12: */ +func numericType(tls *libc.TLS, pMem uintptr) U16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88782:12: */ if int32((*Mem)(unsafe.Pointer(pMem)).Fflags)&(MEM_Int|MEM_Real|MEM_IntReal) != 0 { return U16(int32((*Mem)(unsafe.Pointer(pMem)).Fflags) & (MEM_Int | MEM_Real | MEM_IntReal)) @@ -109512,13 +109783,13 @@ func numericType(tls *libc.TLS, pMem uintptr) U16 { /* testdata/sqlite-amalgamat // Return the register of pOp->p2 after first preparing it to be // overwritten with an integer value. -func out2PrereleaseWithClear(tls *libc.TLS, pOut uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88053:28: */ +func out2PrereleaseWithClear(tls *libc.TLS, pOut uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88957:28: */ Xsqlite3VdbeMemSetNull(tls, pOut) (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Int) return pOut } -func out2Prerelease(tls *libc.TLS, p uintptr, pOp uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88058:12: */ +func out2Prerelease(tls *libc.TLS, p uintptr, pOp uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88962:12: */ var pOut uintptr pOut = (*Vdbe)(unsafe.Pointer(p)).FaMem + uintptr((*VdbeOp)(unsafe.Pointer(pOp)).Fp2)*56 @@ -109534,7 +109805,7 @@ func out2Prerelease(tls *libc.TLS, p uintptr, pOp uintptr) uintptr { /* testdata // Compute a bloom filter hash using pOp->p4.i registers from aMem[] beginning // with pOp->p3. Return the hash. -func filterHash(tls *libc.TLS, aMem uintptr, pOp uintptr) U64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88076:12: */ +func filterHash(tls *libc.TLS, aMem uintptr, pOp uintptr) U64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:88980:12: */ var i int32 var mx int32 var h U64 = uint64(0) @@ -109558,7 +109829,7 @@ func filterHash(tls *libc.TLS, aMem uintptr, pOp uintptr) U64 { /* testdata/sqli } // Return the symbolic name for the data type of a pMem -func vdbeMemTypeName(tls *libc.TLS, pMem uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88098:19: */ +func vdbeMemTypeName(tls *libc.TLS, pMem uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:89002:19: */ return azTypes[Xsqlite3_value_type(tls, pMem)-1] } @@ -109568,13 +109839,13 @@ var azTypes = [5]uintptr{ ts + 1102, ts + 1080, ts + 1525, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88099:21 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:89003:21 */ // Execute as much of a VDBE program as we can. // This is the core of sqlite3_step(). -func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88113:20: */ - bp := tls.Alloc(976) - defer tls.Free(976) +func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:89017:20: */ + bp := tls.Alloc(1040) + defer tls.Free(1040) var aOp uintptr // Copy of p->aOp var pOp uintptr // Current operation @@ -109601,9 +109872,7 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var n int32 // Number of registers left to copy var p1 int32 // Register to copy from var p2 int32 - var n1 int32 - var pMem uintptr - var i int32 // same as TK_CONCAT, in1, in2, out3 + var n1 int32 // same as TK_CONCAT, in1, in2, out3 var nByte I64 // Total size of the output string or blob var flags1 U16 // Initial flags for P1 var flags2 U16 // same as TK_REM, in1, in2, out3 @@ -109627,7 +109896,7 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var flags11 U16 // Copy of initial value of pIn1->flags var flags3 U16 var n2 int32 - var i1 int32 + var i int32 var p11 int32 var p21 int32 var pKeyInfo uintptr @@ -109642,31 +109911,33 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var c1 int32 // jump, in1 var doTheJump int32 // out3 var pC uintptr - // var p22 U32 at bp+240, 4 - // column number to retrieve - // var pC1 uintptr at bp+232, 8 - // The VDBE cursor - var pCrsr uintptr // The BTree cursor + var iMap U32 + var p22 U32 // column number to retrieve + var pC1 uintptr // The VDBE cursor + var pCrsr uintptr // The B-Tree cursor corresponding to pC var aOffset uintptr // aOffset[i] is offset to start of data for i-th column var len int32 // The length of the serialized data for the column - var i2 int32 // Loop counter + var i1 int32 // Loop counter var pDest uintptr // Where to write the extracted value - // var sMem Mem at bp+248, 56 + // var sMem Mem at bp+232, 56 // For storing the record being decoded var zData uintptr // Part of the record being decoded var zHdr uintptr // Next unparsed byte of the header var zEndHdr uintptr // Pointer to first byte after the header var offset64 U64 // 64-bit offset - // var t U32 at bp+304, 4 + // var t U32 at bp+288, 4 // A type code from the record header var pReg uintptr var pTab uintptr var aCol uintptr - var i3 int32 + var i2 int32 var zAffinity uintptr // Figure out whether to use 1, 2, 4, 6 or 8 bytes. - var i4 I64 + var i3 I64 var uu U64 + // var v U64 at bp+296, 8 + + var i4 U32 var pRec uintptr // The new record var nData U64 // Number of bytes of data space var nHdr int32 // Number of bytes of header space @@ -109678,11 +109949,10 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var pLast uintptr // Last field of the record var nField int32 // Number of fields in the record var zAffinity1 uintptr // The affinity string for the record - var file_format int32 // File format to use for encoding var len1 U32 // Length of a field var zHdr1 uintptr // Where to write next byte of the header var zPayload uintptr // out2 - // var nEntry I64 at bp+312, 8 + // var nEntry I64 at bp+304, 8 var pCrsr1 uintptr var isSchemaChange int32 @@ -109702,13 +109972,14 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var desiredAutoCommit int32 var iRollback int32 var pBt uintptr - // var iMeta int32 at bp+320, 4 + var pDb uintptr + // var iMeta int32 at bp+312, 4 // out2 - // var iMeta1 int32 at bp+324, 4 + // var iMeta1 int32 at bp+316, 4 var iDb int32 var iCookie int32 - var pDb uintptr + var pDb1 uintptr var nField1 int32 var pKeyInfo1 uintptr var p23 U32 @@ -109716,7 +109987,7 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var wrFlag int32 var pX uintptr var pCur uintptr - var pDb1 uintptr + var pDb2 uintptr var pOrig uintptr // The original cursor to be duplicated var pCx uintptr var pCx1 uintptr @@ -109727,52 +109998,48 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var c2 int32 var flags31 U16 var newType U16 // jump, in3, group - // var res1 int32 at bp+328, 4 + // var res1 int32 at bp+320, 4 // Comparison result var oc int32 // Opcode var pC3 uintptr // The cursor to seek - // var r UnpackedRecord at bp+336, 24 + // var r UnpackedRecord at bp+328, 40 // The key to seek for var nField2 int32 // Number of columns or fields in the key var iKey I64 // The rowid we are to seek to var eqOnly int32 var pC4 uintptr - // var res3 int32 at bp+384, 4 + // var res3 int32 at bp+408, 4 var nStep int32 - // var r1 UnpackedRecord at bp+360, 24 + // var r1 UnpackedRecord at bp+368, 40 var pC5 uintptr // jump, in3 var pC6 uintptr // jump, in3 var alreadyExists int32 - var takeJump int32 var ii1 int32 var pC7 uintptr - // var res4 int32 at bp+416, 4 - - var pFree uintptr var pIdxKey uintptr - // var r2 UnpackedRecord at bp+392, 24 + // var r2 UnpackedRecord at bp+416, 40 // If pIn3->u.i does not contain an integer, compute iKey as the // integer value of pIn3. Jump to P2 if pIn3 cannot be converted // into an integer without loss of information. Take care to avoid // changing the datatype of pIn3, however, as it is used by other // parts of the prepared statement. - // var x Mem at bp+424, 56 + // var x Mem at bp+456, 56 // jump, in3 var pC8 uintptr var pCrsr2 uintptr - // var res5 int32 at bp+480, 4 + // var res4 int32 at bp+512, 4 var iKey1 U64 // out2 - // var v I64 at bp+488, 8 + // var v3 I64 at bp+520, 8 // The new rowid var pC9 uintptr // Cursor of table to get the new rowid - // var res6 int32 at bp+484, 4 + // var res5 int32 at bp+516, 4 // Result of an sqlite3BtreeLast() - var cnt1 int32 // Counter to limit the number of searches - var pMem1 uintptr // Register holding largest rowid for AUTOINCREMENT + var cnt1 int32 // Counter to limit the number of searches + var pMem uintptr // Register holding largest rowid for AUTOINCREMENT var pFrame1 uintptr var pData uintptr // MEM cell holding data for the record to be inserted var pKey uintptr // MEM cell holding key for the record @@ -109780,7 +110047,7 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var seekResult int32 // Result of prior seek or 0 if no USESEEKRESULT flag var zDb uintptr // database name - used by the update hook var pTab1 uintptr // Table structure - used by update and pre-update hooks - // var x1 BtreePayload at bp+496, 48 + // var x1 BtreePayload at bp+528, 48 var pDest1 uintptr // Cursor to write to var pSrc uintptr // Cursor to read from @@ -109790,7 +110057,7 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var pTab2 uintptr var opflags int32 var pC12 uintptr - // var res7 int32 at bp+544, 4 + // var res6 int32 at bp+576, 4 var nKeyCol int32 var pC13 uintptr @@ -109798,76 +110065,76 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var pCrsr3 uintptr var n3 U32 // out2 var pC15 uintptr - // var v3 I64 at bp+552, 8 + // var v4 I64 at bp+584, 8 var pVtab uintptr var pModule uintptr var pC16 uintptr // jump var pC17 uintptr var pCrsr4 uintptr - // var res8 int32 at bp+560, 4 + // var res7 int32 at bp+592, 4 // jump var pC18 uintptr var pCrsr5 uintptr - // var res9 int32 at bp+564, 4 + // var res8 int32 at bp+596, 4 var sz I64 // jump var pC19 uintptr var pCrsr6 uintptr - // var res10 int32 at bp+568, 4 + // var res9 int32 at bp+600, 4 // jump var pC20 uintptr // in2 var pC21 uintptr - // var x2 BtreePayload at bp+576, 48 + // var x2 BtreePayload at bp+608, 48 // in2 var pC22 uintptr var pC23 uintptr var pCrsr7 uintptr - // var res11 int32 at bp+648, 4 + // var res10 int32 at bp+696, 4 - // var r3 UnpackedRecord at bp+624, 24 + // var r3 UnpackedRecord at bp+656, 40 // out2 var pC24 uintptr // The P1 index cursor var pTabCur uintptr // The P2 table cursor (OP_DeferredSeek only) - // var rowid I64 at bp+656, 8 + // var rowid I64 at bp+704, 8 var pC25 uintptr var nCellKey I64 var pCur1 uintptr - // var m Mem at bp+664, 56 + // var m Mem at bp+712, 56 // jump var pC26 uintptr - var res12 int32 - // var r4 UnpackedRecord at bp+720, 24 + var res11 int32 + // var r4 UnpackedRecord at bp+768, 40 // out2 - // var iMoved int32 at bp+744, 4 + // var iMoved int32 at bp+808, 4 var iDb2 int32 - // var nChange I64 at bp+752, 8 + // var nChange I64 at bp+816, 8 var pC27 uintptr // out2 - // var pgno Pgno at bp+760, 4 + // var pgno Pgno at bp+824, 4 - var pDb2 uintptr + var pDb3 uintptr var iDb3 int32 var zSchema uintptr var zSql uintptr - // var initData InitData at bp+768, 40 + // var initData InitData at bp+832, 40 var nRoot int32 // Number of tables to check. (Number of root pages.) var aRoot uintptr // Array of rootpage numbers for tables to be checked - // var nErr int32 at bp+808, 4 + // var nErr int32 at bp+872, 4 // Number of errors reported var z uintptr // Text of the error report var pnErr uintptr // jump, in1, out3 - // var val I64 at bp+816, 8 + // var val I64 at bp+880, 8 // jump, in1, in3 var iSet int32 var exists int32 // jump var nMem int32 // Number of memory registers for sub-program var nByte2 int32 // Bytes of runtime space required for sub-program var pRt uintptr // Register to allocate runtime space - var pMem2 uintptr // Used to iterate through memory cells + var pMem1 uintptr // Used to iterate through memory cells var pEnd uintptr // Last memory cell in new array var pFrame2 uintptr // New vdbe frame to execute in var pProgram uintptr // Sub-program to execute @@ -109875,18 +110142,18 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var pFrame3 uintptr var pIn uintptr // in2 var pFrame4 uintptr // in1, out2, in3 - // var x3 I64 at bp+824, 8 + // var x3 I64 at bp+888, 8 var n4 int32 var pCtx uintptr var i5 int32 var pCtx1 uintptr + var pMem2 uintptr var pMem3 uintptr - var pMem4 uintptr var i6 int32 // Loop counter - // var aRes [3]int32 at bp+832, 12 + // var aRes [3]int32 at bp+896, 12 // Results - var pMem5 uintptr // out2 + var pMem4 uintptr // out2 var pBt1 uintptr // Btree to change journal mode of var pPager uintptr // Pager associated with pBt var eNew int32 // New journal mode @@ -109899,11 +110166,11 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var p13 int32 var isWriteLock U8 var pVTab uintptr - // var sMem1 Mem at bp+848, 56 + // var sMem1 Mem at bp+912, 56 // For storing the record being decoded var zTab uintptr var pCur2 uintptr - // var pVCur uintptr at bp+904, 8 + // var pVCur uintptr at bp+968, 8 var pVtab1 uintptr var pModule1 uintptr // out2 @@ -109917,18 +110184,18 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var pVCur1 uintptr var pVtab2 uintptr var pCur3 uintptr - var res13 int32 + var res12 int32 var i7 int32 var apArg uintptr var pVtab3 uintptr var pModule3 uintptr var pDest2 uintptr - // var sContext Sqlite3_context at bp+912, 56 + // var sContext Sqlite3_context at bp+976, 56 var pCur4 uintptr // jump var pVtab4 uintptr var pModule4 uintptr - var res14 int32 + var res13 int32 var pCur5 uintptr var pVtab5 uintptr var pName uintptr @@ -109938,7 +110205,7 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg var pModule5 uintptr var nArg1 int32 var i8 int32 - // var rowid1 Sqlite_int64 at bp+968, 8 + // var rowid1 Sqlite_int64 at bp+1032, 8 var apArg1 uintptr var pX1 uintptr // out2 @@ -109972,7 +110239,7 @@ func Xsqlite3VdbeExec(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg if !((*Sqlite3)(unsafe.Pointer(db)).FxProgress != 0) { goto __1 } - iPrior = *(*U32)(unsafe.Pointer(p + 220 + 4*4)) + iPrior = *(*U32)(unsafe.Pointer(p + 212 + 4*4)) nProgressLimit = U64((*Sqlite3)(unsafe.Pointer(db)).FnProgressOps - iPrior%(*Sqlite3)(unsafe.Pointer(db)).FnProgressOps) goto __2 @@ -110078,10 +110345,27 @@ __5: case OP_Gosub: goto __10 - // Opcode: Return P1 * * * * + // Opcode: Return P1 P2 P3 * * // - // Jump to the next instruction after the address in register P1. After - // the jump, register P1 becomes undefined. + // Jump to the address stored in register P1. If P1 is a return address + // register, then this accomplishes a return from a subroutine. + // + // If P3 is 1, then the jump is only taken if register P1 holds an integer + // values, otherwise execution falls through to the next opcode, and the + // OP_Return becomes a no-op. If P3 is 0, then register P1 must hold an + // integer or else an assert() is raised. P3 should be set to 1 when + // this opcode is used in combination with OP_BeginSubrtn, and set to 0 + // otherwise. + // + // The value in register P1 is unchanged by this opcode. + // + // P2 is not used by the byte-code engine. However, if P2 is positive + // and also less than the current address, then the "EXPLAIN" output + // formatter in the CLI will indent all opcodes from the P2 opcode up + // to be not including the current Return. P2 should be the first opcode + // in the subroutine from which this opcode is returning. Thus the P2 + // value is a byte-code indentation hint. See tag-20220407a in + // wherecode.c and shell.c. case OP_Return: goto __11 @@ -110150,11 +110434,11 @@ __5: // // P5 is a value between 0 and 4, inclusive, that modifies the P4 string. // - // 0: (no change) - // 1: NOT NULL contraint failed: P4 - // 2: UNIQUE constraint failed: P4 - // 3: CHECK constraint failed: P4 - // 4: FOREIGN KEY constraint failed: P4 + // 0: (no change) + // 1: NOT NULL contraint failed: P4 + // 2: UNIQUE constraint failed: P4 + // 3: CHECK constraint failed: P4 + // 4: FOREIGN KEY constraint failed: P4 // // If P5 is not zero and P4 is NULL, then everything after the ":" is // omitted. @@ -110212,6 +110496,27 @@ __5: case OP_String: goto __21 + // Opcode: BeginSubrtn * P2 * * * + // Synopsis: r[P2]=NULL + // + // Mark the beginning of a subroutine that can be entered in-line + // or that can be called using OP_Gosub. The subroutine should + // be terminated by an OP_Return instruction that has a P1 operand that + // is the same as the P2 operand to this opcode and that has P3 set to 1. + // If the subroutine is entered in-line, then the OP_Return will simply + // fall through. But if the subroutine is entered using OP_Gosub, then + // the OP_Return will jump back to the first instruction after the OP_Gosub. + // + // This routine works by loading a NULL into the P2 register. When the + // return address register contains a NULL, the OP_Return instruction is + // a no-op that simply falls through to the next instruction (assuming that + // the OP_Return opcode has a P3 value of 1). Thus if the subroutine is + // entered in-line, then the OP_Return will cause in-line execution to + // continue. But if the subroutine is entered via OP_Gosub, then the + // OP_Return will cause a return to the address following the OP_Gosub. + // + // This opcode is identical to OP_Null. It has a different name + // only to make the byte code easier to read and verify. // Opcode: Null P1 P2 P3 * * // Synopsis: r[P2..P3]=NULL // @@ -110223,8 +110528,10 @@ __5: // If the P1 value is non-zero, then also set the MEM_Cleared flag so that // NULL values will not compare equal even if SQLITE_NULLEQ is set on // OP_Ne or OP_Eq. - case OP_Null: + case OP_BeginSubrtn: goto __22 + case OP_Null: + goto __23 // Opcode: SoftNull P1 * * * * // Synopsis: r[P1]=NULL @@ -110234,7 +110541,7 @@ __5: // the register, so that if the value was a string or blob that was // previously copied using OP_SCopy, the copies will continue to be valid. case OP_SoftNull: - goto __23 + goto __24 // Opcode: Blob P1 P2 * P4 * // Synopsis: r[P2]=P4 (len=P1) @@ -110243,17 +110550,17 @@ __5: // blob in register P2. If P4 is a NULL pointer, then construct // a zero-filled blob that is P1 bytes long in P2. case OP_Blob: - goto __24 + goto __25 // Opcode: Variable P1 P2 * P4 * // Synopsis: r[P2]=parameter(P1,P4) // - // Transfer the values of bound parameter P1 into register P2 + // # Transfer the values of bound parameter P1 into register P2 // // If the parameter is named, then its name appears in P4. // The P4 value is used by sqlite3_bind_parameter_name(). case OP_Variable: - goto __25 + goto __26 // Opcode: Move P1 P2 P3 * * // Synopsis: r[P2@P3]=r[P1@P3] @@ -110264,17 +110571,22 @@ __5: // P1..P1+P3-1 and P2..P2+P3-1 to overlap. It is an error // for P3 to be less than 1. case OP_Move: - goto __26 + goto __27 - // Opcode: Copy P1 P2 P3 * * + // Opcode: Copy P1 P2 P3 * P5 // Synopsis: r[P2@P3+1]=r[P1@P3+1] // // Make a copy of registers P1..P1+P3 into registers P2..P2+P3. // + // If the 0x0002 bit of P5 is set then also clear the MEM_Subtype flag in the + // destination. The 0x0001 bit of P5 indicates that this Copy opcode cannot + // be merged. The 0x0001 bit is used by the query planner and does not + // come into play during query execution. + // // This instruction makes a deep copy of the value. A duplicate // is made of any string or blob constant. See also OP_SCopy. case OP_Copy: - goto __27 + goto __28 // Opcode: SCopy P1 P2 * * * // Synopsis: r[P2]=r[P1] @@ -110289,7 +110601,7 @@ __5: // during the lifetime of the copy. Use OP_Copy to make a complete // copy. case OP_SCopy: - goto __28 + goto __29 // Opcode: IntCopy P1 P2 * * * // Synopsis: r[P2]=r[P1] @@ -110299,7 +110611,7 @@ __5: // This is an optimized version of SCopy that works only for integer // values. case OP_IntCopy: - goto __29 + goto __30 // Opcode: FkCheck * * * * * // @@ -110312,7 +110624,7 @@ __5: // to returning results such as a row change count or the result of a // RETURNING clause. case OP_FkCheck: - goto __30 + goto __31 // Opcode: ResultRow P1 P2 * * * // Synopsis: output=r[P1@P2] @@ -110323,7 +110635,7 @@ __5: // structure to provide access to the r(P1)..r(P1+P2-1) values as // the result row. case OP_ResultRow: - goto __31 + goto __32 // Opcode: Concat P1 P2 P3 * * // Synopsis: r[P3]=r[P2]+r[P1] @@ -110332,13 +110644,13 @@ __5: // register P2 and store the result in register P3. // If either the P1 or P2 text are NULL then store NULL in P3. // - // P3 = P2 || P1 + // P3 = P2 || P1 // // It is illegal for P1 and P3 to be the same register. Sometimes, // if P3 is the same register as P2, the implementation is able // to avoid a memcpy(). case OP_Concat: - goto __32 + goto __33 // Opcode: Add P1 P2 P3 * * // Synopsis: r[P3]=r[P1]+r[P2] @@ -110349,7 +110661,6 @@ __5: // Opcode: Multiply P1 P2 P3 * * // Synopsis: r[P3]=r[P1]*r[P2] // - // // Multiply the value in register P1 by the value in register P2 // and store the result in register P3. // If either input is NULL, the result is NULL. @@ -110374,15 +110685,15 @@ __5: // If the value in register P1 is zero the result is NULL. // If either operand is NULL, the result is NULL. case OP_Add: - goto __33 // same as TK_PLUS, in1, in2, out3 + goto __34 // same as TK_PLUS, in1, in2, out3 case OP_Subtract: - goto __34 // same as TK_MINUS, in1, in2, out3 + goto __35 // same as TK_MINUS, in1, in2, out3 case OP_Multiply: - goto __35 // same as TK_STAR, in1, in2, out3 + goto __36 // same as TK_STAR, in1, in2, out3 case OP_Divide: - goto __36 // same as TK_SLASH, in1, in2, out3 + goto __37 // same as TK_SLASH, in1, in2, out3 case OP_Remainder: - goto __37 + goto __38 // Opcode: CollSeq P1 * * P4 // @@ -110399,7 +110710,7 @@ __5: // to retrieve the collation sequence set by this opcode is not available // publicly. Only built-in functions have access to this feature. case OP_CollSeq: - goto __38 + goto __39 // Opcode: BitAnd P1 P2 P3 * * // Synopsis: r[P3]=r[P1]&r[P2] @@ -110428,13 +110739,13 @@ __5: // Store the result in register P3. // If either input is NULL, the result is NULL. case OP_BitAnd: - goto __39 // same as TK_BITAND, in1, in2, out3 + goto __40 // same as TK_BITAND, in1, in2, out3 case OP_BitOr: - goto __40 // same as TK_BITOR, in1, in2, out3 + goto __41 // same as TK_BITOR, in1, in2, out3 case OP_ShiftLeft: - goto __41 // same as TK_LSHIFT, in1, in2, out3 + goto __42 // same as TK_LSHIFT, in1, in2, out3 case OP_ShiftRight: - goto __42 + goto __43 // Opcode: AddImm P1 P2 * * * // Synopsis: r[P1]=r[P1]+P2 @@ -110444,7 +110755,7 @@ __5: // // To force any register to be an integer, just add 0. case OP_AddImm: - goto __43 + goto __44 // Opcode: MustBeInt P1 P2 * * * // @@ -110453,7 +110764,7 @@ __5: // without data loss, then jump immediately to P2, or if P2==0 // raise an SQLITE_MISMATCH exception. case OP_MustBeInt: - goto __44 + goto __45 // Opcode: RealAffinity P1 * * * * // @@ -110464,7 +110775,7 @@ __5: // integers, for space efficiency, but after extraction we want them // to have only a real value. case OP_RealAffinity: - goto __45 + goto __46 // Opcode: Cast P1 P2 * * * // Synopsis: affinity(r[P1]) @@ -110481,7 +110792,7 @@ __5: // // A NULL value is not changed by this routine. It remains NULL. case OP_Cast: - goto __46 + goto __47 // Opcode: Eq P1 P2 P3 P4 P5 // Synopsis: IF r[P3]==r[P1] @@ -110570,17 +110881,17 @@ __5: // the content of register P3 is greater than or equal to the content of // register P1. See the Lt opcode for additional information. case OP_Eq: - goto __47 // same as TK_EQ, jump, in1, in3 + goto __48 // same as TK_EQ, jump, in1, in3 case OP_Ne: - goto __48 // same as TK_NE, jump, in1, in3 + goto __49 // same as TK_NE, jump, in1, in3 case OP_Lt: - goto __49 // same as TK_LT, jump, in1, in3 + goto __50 // same as TK_LT, jump, in1, in3 case OP_Le: - goto __50 // same as TK_LE, jump, in1, in3 + goto __51 // same as TK_LE, jump, in1, in3 case OP_Gt: - goto __51 // same as TK_GT, jump, in1, in3 + goto __52 // same as TK_GT, jump, in1, in3 case OP_Ge: - goto __52 + goto __53 // Opcode: ElseEq * P2 * * * // @@ -110594,21 +110905,20 @@ __5: // If the result of an OP_Eq comparison on the two previous // operands would have been false or NULL, then fall through. case OP_ElseEq: - goto __53 + goto __54 // Opcode: Permutation * * * P4 * // // Set the permutation used by the OP_Compare operator in the next // instruction. The permutation is stored in the P4 operand. // - // The permutation is only valid until the next OP_Compare that has - // the OPFLAG_PERMUTE bit set in P5. Typically the OP_Permutation should - // occur immediately prior to the OP_Compare. + // The permutation is only valid for the next opcode which must be + // an OP_Compare that has the OPFLAG_PERMUTE bit set in P5. // // The first integer in the P4 integer array is the length of the array // and does not become part of the permutation. case OP_Permutation: - goto __54 + goto __55 // Opcode: Compare P1 P2 P3 P4 P5 // Synopsis: r[P1@P3] <-> r[P2@P3] @@ -110629,16 +110939,20 @@ __5: // The comparison is a sort comparison, so NULLs compare equal, // NULLs are less than numbers, numbers are less than strings, // and strings are less than blobs. + // + // This opcode must be immediately followed by an OP_Jump opcode. case OP_Compare: - goto __55 + goto __56 // Opcode: Jump P1 P2 P3 * * // // Jump to the instruction at address P1, P2, or P3 depending on whether // in the most recent OP_Compare instruction the P1 vector was less than // equal to, or greater than the P2 vector, respectively. + // + // This opcode must immediately follow an OP_Compare opcode. case OP_Jump: - goto __56 + goto __57 // Opcode: And P1 P2 P3 * * // Synopsis: r[P3]=(r[P1] && r[P2]) @@ -110659,9 +110973,9 @@ __5: // even if the other input is NULL. A NULL and false or two NULLs // give a NULL output. case OP_And: - goto __57 // same as TK_AND, in1, in2, out3 + goto __58 // same as TK_AND, in1, in2, out3 case OP_Or: - goto __58 + goto __59 // Opcode: IsTrue P1 P2 P3 P4 * // Synopsis: r[P2] = coalesce(r[P1]==TRUE,P3) ^ P4 @@ -110683,7 +110997,7 @@ __5: // <li> If P3==1 and P4==0 then r[P2] := r[P1] IS NOT FALSE // </ul> case OP_IsTrue: - goto __59 + goto __60 // Opcode: Not P1 P2 * * * // Synopsis: r[P2]= !r[P1] @@ -110692,7 +111006,7 @@ __5: // boolean complement in register P2. If the value in register P1 is // NULL, then a NULL is stored in P2. case OP_Not: - goto __60 + goto __61 // Opcode: BitNot P1 P2 * * * // Synopsis: r[P2]= ~r[P1] @@ -110701,7 +111015,7 @@ __5: // ones-complement of the P1 value into register P2. If P1 holds // a NULL then store a NULL in P2. case OP_BitNot: - goto __61 + goto __62 // Opcode: Once P1 P2 * * * // @@ -110720,7 +111034,7 @@ __5: // because the self-altering code trick does not work for recursive // triggers. case OP_Once: - goto __62 + goto __63 // Opcode: If P1 P2 P3 * * // @@ -110728,7 +111042,7 @@ __5: // is considered true if it is numeric and non-zero. If the value // in P1 is NULL then take the jump if and only if P3 is non-zero. case OP_If: - goto __63 + goto __64 // Opcode: IfNot P1 P2 P3 * * // @@ -110736,14 +111050,14 @@ __5: // is considered false if it has a numeric value of zero. If the value // in P1 is NULL then take the jump if and only if P3 is non-zero. case OP_IfNot: - goto __64 + goto __65 // Opcode: IsNull P1 P2 * * * // Synopsis: if r[P1]==NULL goto P2 // // Jump to P2 if the value in register P1 is NULL. case OP_IsNull: - goto __65 + goto __66 // Opcode: IsNullOrType P1 P2 P3 * * // Synopsis: if typeof(r[P1]) IN (P3,5) goto P2 @@ -110752,7 +111066,7 @@ __5: // P3 is an integer which should be one of SQLITE_INTEGER, SQLITE_FLOAT, // SQLITE_BLOB, SQLITE_NULL, or SQLITE_TEXT. case OP_IsNullOrType: - goto __66 + goto __67 // Opcode: ZeroOrNull P1 P2 P3 * * // Synopsis: r[P2] = 0 OR NULL @@ -110761,14 +111075,14 @@ __5: // register P2. If either registers P1 or P3 are NULL then put // a NULL in register P2. case OP_ZeroOrNull: - goto __67 + goto __68 // Opcode: NotNull P1 P2 * * * // Synopsis: if r[P1]!=NULL goto P2 // // Jump to P2 if the value in register P1 is not NULL. case OP_NotNull: - goto __68 + goto __69 // Opcode: IfNullRow P1 P2 P3 * * // Synopsis: if P1.nullRow then r[P3]=NULL, goto P2 @@ -110778,7 +111092,7 @@ __5: // If P1 is not on a NULL row, then fall through without making any // changes. case OP_IfNullRow: - goto __69 + goto __70 // Opcode: Offset P1 P2 P3 * * // Synopsis: r[P3] = sqlite_offset(P1) @@ -110795,10 +111109,10 @@ __5: // This opcode is only available if SQLite is compiled with the // -DSQLITE_ENABLE_OFFSET_SQL_FUNC option. case OP_Offset: - goto __70 + goto __71 // Opcode: Column P1 P2 P3 P4 P5 - // Synopsis: r[P3]=PX + // Synopsis: r[P3]=PX cursor P1 column P2 // // Interpret the data that cursor P1 points to as a structure built using // the MakeRecord instruction. (See the MakeRecord opcode for additional @@ -110817,7 +111131,7 @@ __5: // or typeof() function, respectively. The loading of large blobs can be // skipped for length() and all content loading can be skipped for typeof(). case OP_Column: - goto __71 + goto __72 // Opcode: TypeCheck P1 P2 P3 P4 * // Synopsis: typecheck(r[P1@P2]) @@ -110839,13 +111153,15 @@ __5: // // <ul> // <li> P2 should be the number of non-virtual columns in the - // table of P4. + // + // table of P4. + // // <li> Table P4 should be a STRICT table. // </ul> // // If any precondition is false, an assertion fault occurs. case OP_TypeCheck: - goto __72 + goto __73 // Opcode: Affinity P1 P2 * P4 * // Synopsis: affinity(r[P1@P2]) @@ -110856,7 +111172,7 @@ __5: // string indicates the column affinity that should be used for the N-th // memory cell in the range. case OP_Affinity: - goto __73 + goto __74 // Opcode: MakeRecord P1 P2 P3 P4 * // Synopsis: r[P3]=mkrec(r[P1@P2]) @@ -110877,15 +111193,15 @@ __5: // The meaning of P5 depends on whether or not the SQLITE_ENABLE_NULL_TRIM // compile-time option is enabled: // - // * If SQLITE_ENABLE_NULL_TRIM is enabled, then the P5 is the index + // - If SQLITE_ENABLE_NULL_TRIM is enabled, then the P5 is the index // of the right-most table that can be null-trimmed. // - // * If SQLITE_ENABLE_NULL_TRIM is omitted, then P5 has the value + // - If SQLITE_ENABLE_NULL_TRIM is omitted, then P5 has the value // OPFLAG_NOCHNG_MAGIC if the OP_MakeRecord opcode is allowed to // accept no-change records with serial_type 10. This value is // only used inside an assert() and does not affect the end result. case OP_MakeRecord: - goto __74 + goto __75 // Opcode: Count P1 P2 P3 * * // Synopsis: r[P2]=count() @@ -110897,7 +111213,7 @@ __5: // every btree page of the table. But if P3 is non-zero, an estimate // is returned based on the current cursor position. case OP_Count: - goto __75 + goto __76 // Opcode: Savepoint P1 * * P4 * // @@ -110906,7 +111222,7 @@ __5: // To release (commit) an existing savepoint set P1==1 (SAVEPOINT_RELEASE). // To rollback an existing savepoint set P1==2 (SAVEPOINT_ROLLBACK). case OP_Savepoint: - goto __76 + goto __77 // Opcode: AutoCommit P1 P2 * * * // @@ -110917,7 +111233,7 @@ __5: // // This instruction causes the VM to halt. case OP_AutoCommit: - goto __77 + goto __78 // Opcode: Transaction P1 P2 P3 P4 P5 // @@ -110954,7 +111270,7 @@ __5: // halts. The sqlite3_step() wrapper function might then reprepare the // statement and rerun it from the beginning. case OP_Transaction: - goto __78 + goto __79 // Opcode: ReadCookie P1 P2 P3 * * // @@ -110968,7 +111284,7 @@ __5: // must be started or there must be an open cursor) before // executing this instruction. case OP_ReadCookie: - goto __79 + goto __80 // Opcode: SetCookie P1 P2 P3 * P5 // @@ -110985,7 +111301,7 @@ __5: // has P5 set to 1, so that the internal schema version will be different // from the database schema version, resulting in a schema reset. case OP_SetCookie: - goto __80 + goto __81 // Opcode: OpenRead P1 P2 P3 P4 P5 // Synopsis: root=P2 iDb=P3 @@ -111001,8 +111317,10 @@ __5: // Allowed P5 bits: // <ul> // <li> <b>0x02 OPFLAG_SEEKEQ</b>: This cursor will only be used for - // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT - // of OP_SeekLE/OP_IdxLT) + // + // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT + // of OP_SeekLE/OP_IdxLT) + // // </ul> // // The P4 value may be either an integer (P4_INT32) or a pointer to @@ -111030,8 +111348,10 @@ __5: // Allowed P5 bits: // <ul> // <li> <b>0x02 OPFLAG_SEEKEQ</b>: This cursor will only be used for - // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT - // of OP_SeekLE/OP_IdxLT) + // + // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT + // of OP_SeekLE/OP_IdxLT) + // // </ul> // // See also: OP_OpenRead, OP_OpenWrite @@ -111053,15 +111373,21 @@ __5: // Allowed P5 bits: // <ul> // <li> <b>0x02 OPFLAG_SEEKEQ</b>: This cursor will only be used for - // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT - // of OP_SeekLE/OP_IdxLT) + // + // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT + // of OP_SeekLE/OP_IdxLT) + // // <li> <b>0x08 OPFLAG_FORDELETE</b>: This cursor is used only to seek - // and subsequently delete entries in an index btree. This is a - // hint to the storage engine that the storage engine is allowed to - // ignore. The hint is not used by the official SQLite b*tree storage - // engine, but is used by COMDB2. + // + // and subsequently delete entries in an index btree. This is a + // hint to the storage engine that the storage engine is allowed to + // ignore. The hint is not used by the official SQLite b*tree storage + // engine, but is used by COMDB2. + // // <li> <b>0x10 OPFLAG_P2ISREG</b>: Use the content of register P2 - // as the root page, not the value of P2 itself. + // + // as the root page, not the value of P2 itself. + // // </ul> // // This instruction works like OpenRead except that it opens the cursor @@ -111069,13 +111395,13 @@ __5: // // See also: OP_OpenRead, OP_ReopenIdx case OP_ReopenIdx: - goto __81 + goto __82 // If the cursor is not currently open or is open on a different // index, then fall through into OP_OpenRead to force a reopen case OP_OpenRead: - goto __82 - case OP_OpenWrite: goto __83 + case OP_OpenWrite: + goto __84 // Opcode: OpenDup P1 P2 * * * // @@ -111085,7 +111411,7 @@ __5: // // Duplicate ephemeral cursors are used for self-joins of materialized views. case OP_OpenDup: - goto __84 + goto __85 // Opcode: OpenEphemeral P1 P2 P3 P4 P5 // Synopsis: nColumn=P2 @@ -111119,9 +111445,9 @@ __5: // by this opcode will be used for automatically created transient // indices in joins. case OP_OpenAutoindex: - goto __85 - case OP_OpenEphemeral: goto __86 + case OP_OpenEphemeral: + goto __87 // Opcode: SorterOpen P1 P2 P3 P4 * // @@ -111133,7 +111459,7 @@ __5: // assume that a stable sort considering the first P3 fields of each // key is sufficient to produce the required results. case OP_SorterOpen: - goto __87 + goto __88 // Opcode: SequenceTest P1 P2 * * * // Synopsis: if( cursor[P1].ctr++ ) pc = P2 @@ -111142,7 +111468,7 @@ __5: // to P2. Regardless of whether or not the jump is taken, increment the // the sequence value. case OP_SequenceTest: - goto __88 + goto __89 // Opcode: OpenPseudo P1 P2 P3 * * // Synopsis: P3 columns in r[P2] @@ -111160,14 +111486,14 @@ __5: // P3 is the number of fields in the records that will be stored by // the pseudo-table. case OP_OpenPseudo: - goto __89 + goto __90 // Opcode: Close P1 * * * * // // Close a cursor previously opened as P1. If P1 is not // currently open, this instruction is a no-op. case OP_Close: - goto __90 + goto __91 // Opcode: SeekGE P1 P2 P3 P4 * // Synopsis: key=r[P3@P4] @@ -111256,13 +111582,13 @@ __5: // // See also: Found, NotFound, SeekGt, SeekGe, SeekLt case OP_SeekLT: - goto __91 // jump, in3, group - case OP_SeekLE: goto __92 // jump, in3, group - case OP_SeekGE: + case OP_SeekLE: goto __93 // jump, in3, group + case OP_SeekGE: + goto __94 // jump, in3, group case OP_SeekGT: - goto __94 + goto __95 // Opcode: SeekScan P1 P2 * * * // Synopsis: Scan-ahead up to P1 rows @@ -111299,18 +111625,22 @@ __5: // There are three possible outcomes from this opcode:<ol> // // <li> If after This.P1 steps, the cursor is still pointing to a place that - // is earlier in the btree than the target row, then fall through - // into the subsquence OP_SeekGE opcode. + // + // is earlier in the btree than the target row, then fall through + // into the subsquence OP_SeekGE opcode. // // <li> If the cursor is successfully moved to the target row by 0 or more - // sqlite3BtreeNext() calls, then jump to This.P2, which will land just - // past the OP_IdxGT or OP_IdxGE opcode that follows the OP_SeekGE. + // + // sqlite3BtreeNext() calls, then jump to This.P2, which will land just + // past the OP_IdxGT or OP_IdxGE opcode that follows the OP_SeekGE. // // <li> If the cursor ends up past the target row (indicating the the target - // row does not exist in the btree) then jump to SeekOP.P2. + // + // row does not exist in the btree) then jump to SeekOP.P2. + // // </ol> case OP_SeekScan: - goto __95 + goto __96 // Opcode: SeekHit P1 P2 P3 * * // Synopsis: set P2<=seekHit<=P3 @@ -111326,14 +111656,14 @@ __5: // // P1 must be a valid b-tree cursor. case OP_SeekHit: - goto __96 + goto __97 // Opcode: IfNotOpen P1 P2 * * * // Synopsis: if( !csr[P1] ) goto P2 // // If cursor P1 is not open, jump to instruction P2. Otherwise, fall through. case OP_IfNotOpen: - goto __97 + goto __98 // Opcode: Found P1 P2 P3 P4 * // Synopsis: key=r[P3@P4] @@ -111422,13 +111752,13 @@ __5: // // See also: NotFound, Found, NotExists case OP_IfNoHope: - goto __98 + goto __99 case OP_NoConflict: - goto __99 // jump, in3 - case OP_NotFound: goto __100 // jump, in3 + case OP_NotFound: + goto __101 // jump, in3 case OP_Found: - goto __101 + goto __102 // Opcode: SeekRowid P1 P2 P3 * * // Synopsis: intkey=r[P3] @@ -111476,9 +111806,9 @@ __5: // // See also: Found, NotFound, NoConflict, SeekRowid case OP_SeekRowid: - goto __102 - case OP_NotExists: goto __103 + case OP_NotExists: + goto __104 // Opcode: Sequence P1 P2 * * * // Synopsis: r[P2]=cursor[P1].ctr++ @@ -111488,7 +111818,7 @@ __5: // The sequence number on the cursor is incremented after this // instruction. case OP_Sequence: - goto __104 + goto __105 // Opcode: NewRowid P1 P2 P3 * * // Synopsis: r[P2]=rowid @@ -111505,7 +111835,7 @@ __5: // generated record number. This P3 mechanism is used to help implement the // AUTOINCREMENT feature. case OP_NewRowid: - goto __105 + goto __106 // Opcode: Insert P1 P2 P3 P4 P5 // Synopsis: intkey=r[P3] data=r[P2] @@ -111544,7 +111874,7 @@ __5: // This instruction only works on tables. The equivalent instruction // for indices is OP_IdxInsert. case OP_Insert: - goto __106 + goto __107 // Opcode: RowCell P1 P2 P3 * * // @@ -111557,7 +111887,7 @@ __5: // This opcode must be followed by either an Insert or InsertIdx opcode // with the OPFLAG_PREFORMAT flag set to complete the insert operation. case OP_RowCell: - goto __107 + goto __108 // Opcode: Delete P1 P2 P3 P4 P5 // @@ -111594,7 +111924,7 @@ __5: // of the memory cell that contains the value that the rowid of the row will // be set to by the update. case OP_Delete: - goto __108 + goto __109 // Opcode: ResetCount * * * * * // // The value of the change counter is copied to the database handle @@ -111602,7 +111932,7 @@ __5: // Then the VMs internal change counter resets to 0. // This is used by trigger programs. case OP_ResetCount: - goto __109 + goto __110 // Opcode: SorterCompare P1 P2 P3 P4 // Synopsis: if key(P1)!=trim(r[P3],P4) goto P2 @@ -111619,7 +111949,7 @@ __5: // Fall through to next instruction if the two records compare equal to // each other. Jump to P2 if they are different. case OP_SorterCompare: - goto __110 + goto __111 // Opcode: SorterData P1 P2 P3 * * // Synopsis: r[P2]=data @@ -111633,7 +111963,7 @@ __5: // parameter P3. Clearing the P3 column cache as part of this opcode saves // us from having to issue a separate NullRow instruction to clear that cache. case OP_SorterData: - goto __111 + goto __112 // Opcode: RowData P1 P2 P3 * * // Synopsis: r[P2]=data @@ -111663,10 +111993,10 @@ __5: // The P2 register content is invalidated by opcodes like OP_Function or // by any use of another cursor pointing to the same table. case OP_RowData: - goto __112 + goto __113 // Opcode: Rowid P1 P2 * * * - // Synopsis: r[P2]=rowid + // Synopsis: r[P2]=PX rowid of P1 // // Store in register P2 an integer which is the key of the table entry that // P1 is currently point to. @@ -111675,7 +112005,7 @@ __5: // be a separate OP_VRowid opcode for use with virtual tables, but this // one opcode now works for both table types. case OP_Rowid: - goto __113 + goto __114 // Opcode: NullRow P1 * * * * // @@ -111683,11 +112013,10 @@ __5: // that occur while the cursor is on the null row will always // write a NULL. // - // Or, if P1 is a Pseudo-Cursor (a cursor opened using OP_OpenPseudo) - // just reset the cache for that cursor. This causes the row of - // content held by the pseudo-cursor to be reparsed. + // If cursor P1 is not previously opened, open it now to a special + // pseudo-cursor that always returns NULL for every column. case OP_NullRow: - goto __114 + goto __115 // Opcode: SeekEnd P1 * * * * // @@ -111710,16 +112039,16 @@ __5: // from the end toward the beginning. In other words, the cursor is // configured to use Prev, not Next. case OP_SeekEnd: - goto __115 - case OP_Last: goto __116 + case OP_Last: + goto __117 // Opcode: IfSmaller P1 P2 P3 * * // // Estimate the number of rows in the table P1. Jump to P2 if that // estimate is less than approximately 2**(0.1*P3). case OP_IfSmaller: - goto __117 + goto __118 // Opcode: SorterSort P1 P2 * * * // @@ -111741,9 +112070,9 @@ __5: // regression tests can determine whether or not the optimizer is // correctly optimizing out sorts. case OP_SorterSort: - goto __118 // jump + goto __119 // jump case OP_Sort: - goto __119 + goto __120 // Opcode: Rewind P1 P2 * * * // // The next use of the Rowid or Column or Next instruction for P1 @@ -111756,9 +112085,9 @@ __5: // from the beginning toward the end. In other words, the cursor is // configured to use Next, not Prev. case OP_Rewind: - goto __120 + goto __121 - // Opcode: Next P1 P2 P3 P4 P5 + // Opcode: Next P1 P2 P3 * P5 // // Advance cursor P1 so that it points to the next key/data pair in its // table or index. If there are no more key/value pairs then fall through @@ -111777,21 +112106,17 @@ __5: // omitted if that index had been unique. P3 is usually 0. P3 is // always either 0 or 1. // - // P4 is always of type P4_ADVANCE. The function pointer points to - // sqlite3BtreeNext(). - // // If P5 is positive and the jump is taken, then event counter // number P5-1 in the prepared statement is incremented. // // See also: Prev - // Opcode: Prev P1 P2 P3 P4 P5 + // Opcode: Prev P1 P2 P3 * P5 // // Back up cursor P1 so that it points to the previous key/data pair in its // table or index. If there is no previous key/value pairs then fall through // to the following instruction. But if the cursor backup was successful, // jump immediately to P2. // - // // The Prev opcode is only valid following an SeekLT, SeekLE, or // OP_Last opcode used to position the cursor. Prev is not allowed // to follow SeekGT, SeekGE, or OP_Rewind. @@ -111804,9 +112129,6 @@ __5: // omitted if that index had been unique. P3 is usually 0. P3 is // always either 0 or 1. // - // P4 is always of type P4_ADVANCE. The function pointer points to - // sqlite3BtreePrevious(). - // // If P5 is positive and the jump is taken, then event counter // number P5-1 in the prepared statement is incremented. // Opcode: SorterNext P1 P2 * * P5 @@ -111816,12 +112138,14 @@ __5: // invoked. This opcode advances the cursor to the next sorted // record, or jumps to P2 if there are no more sorted records. case OP_SorterNext: - goto __121 + goto __122 + case OP_Prev: - goto __122 // jump - case OP_Next: goto __123 + case OP_Next: + goto __124 + // Opcode: IdxInsert P1 P2 P3 P4 P5 // Synopsis: key=r[P2] // @@ -111850,7 +112174,7 @@ __5: // This instruction only works for indices. The equivalent instruction // for tables is OP_Insert. case OP_IdxInsert: - goto __124 + goto __125 // Opcode: SorterInsert P1 P2 * * * // Synopsis: key=r[P2] @@ -111859,7 +112183,7 @@ __5: // MakeRecord instructions. This opcode writes that key // into the sorter P1. Data for the entry is nil. case OP_SorterInsert: - goto __125 + goto __126 // Opcode: IdxDelete P1 P2 P3 * P5 // Synopsis: key=r[P2@P3] @@ -111876,7 +112200,7 @@ __5: // entry is found. For those cases, P5 is zero. Also, do not raise // this (self-correcting and non-critical) error if in writable_schema mode. case OP_IdxDelete: - goto __126 + goto __127 // Opcode: DeferredSeek P1 * P3 P4 * // Synopsis: Move P3 to P1.rowid if needed @@ -111905,9 +112229,9 @@ __5: // // See also: Rowid, MakeRecord. case OP_DeferredSeek: - goto __127 - case OP_IdxRowid: goto __128 + case OP_IdxRowid: + goto __129 // Opcode: FinishSeek P1 * * * * // @@ -111915,7 +112239,7 @@ __5: // seek operation now, without further delay. If the cursor seek has // already occurred, this instruction is a no-op. case OP_FinishSeek: - goto __129 + goto __130 // Opcode: IdxGE P1 P2 P3 P4 * // Synopsis: key=r[P3@P4] @@ -111958,13 +112282,13 @@ __5: // If the P1 index entry is less than or equal to the key value then jump // to P2. Otherwise fall through to the next instruction. case OP_IdxLE: - goto __130 // jump - case OP_IdxGT: goto __131 // jump - case OP_IdxLT: + case OP_IdxGT: goto __132 // jump + case OP_IdxLT: + goto __133 // jump case OP_IdxGE: - goto __133 + goto __134 // Opcode: Destroy P1 P2 P3 * * // @@ -111993,7 +112317,7 @@ __5: // // See also: Clear case OP_Destroy: - goto __134 + goto __135 // Opcode: Clear P1 P2 P3 // @@ -112012,7 +112336,7 @@ __5: // // See also: Destroy case OP_Clear: - goto __135 + goto __136 // Opcode: ResetSorter P1 * * * * // @@ -112022,7 +112346,7 @@ __5: // This opcode only works for cursors used for sorting and // opened with OP_OpenEphemeral or OP_SorterOpen. case OP_ResetSorter: - goto __136 + goto __137 // Opcode: CreateBtree P1 P2 P3 * * // Synopsis: r[P2]=root iDb=P1 flags=P3 @@ -112033,13 +112357,13 @@ __5: // it must be 2 (BTREE_BLOBKEY) for an index or WITHOUT ROWID table. // The root page number of the new b-tree is stored in register P2. case OP_CreateBtree: - goto __137 + goto __138 // Opcode: SqlExec * * * P4 * // // Run the SQL statement or statements specified in the P4 string. case OP_SqlExec: - goto __138 + goto __139 // Opcode: ParseSchema P1 * * P4 * // @@ -112050,7 +112374,7 @@ __5: // This opcode invokes the parser to create a new virtual machine, // then runs the new virtual machine. It is thus a re-entrant opcode. case OP_ParseSchema: - goto __139 + goto __140 // Opcode: LoadAnalysis P1 * * * * // @@ -112058,7 +112382,7 @@ __5: // of that table into the internal index hash table. This will cause // the analysis to be used when preparing all subsequent queries. case OP_LoadAnalysis: - goto __140 + goto __141 // Opcode: DropTable P1 * * P4 * // @@ -112068,7 +112392,7 @@ __5: // the internal representation of the // schema consistent with what is on disk. case OP_DropTable: - goto __141 + goto __142 // Opcode: DropIndex P1 * * P4 * // @@ -112078,7 +112402,7 @@ __5: // in order to keep the internal representation of the // schema consistent with what is on disk. case OP_DropIndex: - goto __142 + goto __143 // Opcode: DropTrigger P1 * * P4 * // @@ -112088,7 +112412,7 @@ __5: // the internal representation of the // schema consistent with what is on disk. case OP_DropTrigger: - goto __143 + goto __144 // Opcode: IntegrityCk P1 P2 P3 P4 P5 // @@ -112109,7 +112433,7 @@ __5: // // This opcode is used to implement the integrity_check pragma. case OP_IntegrityCk: - goto __144 + goto __145 // Opcode: RowSetAdd P1 P2 * * * // Synopsis: rowset(P1)=r[P2] @@ -112119,7 +112443,7 @@ __5: // // An assertion fails if P2 is not an integer. case OP_RowSetAdd: - goto __145 + goto __146 // Opcode: RowSetRead P1 P2 P3 * * // Synopsis: r[P3]=rowset(P1) @@ -112129,7 +112453,7 @@ __5: // Or, if RowSet object P1 is initially empty, leave P3 // unchanged and jump to instruction P2. case OP_RowSetRead: - goto __146 + goto __147 // Opcode: RowSetTest P1 P2 P3 P4 // Synopsis: if r[P3] in rowset(P1) goto P2 @@ -112154,7 +112478,7 @@ __5: // previously inserted as part of set X (only if it was previously // inserted as part of some other set). case OP_RowSetTest: - goto __147 + goto __148 // Opcode: Program P1 P2 P3 P4 P5 // @@ -112171,7 +112495,7 @@ __5: // // If P5 is non-zero, then recursive program invocation is enabled. case OP_Program: - goto __148 + goto __149 // Opcode: Param P1 P2 * * * // @@ -112185,7 +112509,7 @@ __5: // the value of the P1 argument to the value of the P1 argument to the // calling OP_Program instruction. case OP_Param: - goto __149 + goto __150 // Opcode: FkCounter P1 P2 * * * // Synopsis: fkctr[P1]+=P2 @@ -112195,7 +112519,7 @@ __5: // (deferred foreign key constraints). Otherwise, if P1 is zero, the // statement counter is incremented (immediate foreign key constraints). case OP_FkCounter: - goto __150 + goto __151 // Opcode: FkIfZero P1 P2 * * * // Synopsis: if fkctr[P1]==0 goto P2 @@ -112209,7 +112533,7 @@ __5: // zero, the jump is taken if the statement constraint-counter is zero // (immediate foreign key constraint violations). case OP_FkIfZero: - goto __151 + goto __152 // Opcode: MemMax P1 P2 * * * // Synopsis: r[P1]=max(r[P1],r[P2]) @@ -112222,7 +112546,7 @@ __5: // This instruction throws an error if the memory cell is not initially // an integer. case OP_MemMax: - goto __152 + goto __153 // Opcode: IfPos P1 P2 P3 * * // Synopsis: if r[P1]>0 then r[P1]-=P3, goto P2 @@ -112234,7 +112558,7 @@ __5: // If the initial value of register P1 is less than 1, then the // value is unchanged and control passes through to the next instruction. case OP_IfPos: - goto __153 + goto __154 // Opcode: OffsetLimit P1 P2 P3 * * // Synopsis: if r[P1]>0 then r[P2]=r[P1]+max(0,r[P3]) else r[P2]=(-1) @@ -112254,7 +112578,7 @@ __5: // // Otherwise, r[P2] is set to the sum of r[P1] and r[P3]. case OP_OffsetLimit: - goto __154 + goto __155 // Opcode: IfNotZero P1 P2 * * * // Synopsis: if r[P1]!=0 then r[P1]--, goto P2 @@ -112264,7 +112588,7 @@ __5: // If it is non-zero (negative or positive) and then also jump to P2. // If register P1 is initially zero, leave it unchanged and fall through. case OP_IfNotZero: - goto __155 + goto __156 // Opcode: DecrJumpZero P1 P2 * * * // Synopsis: if (--r[P1])==0 goto P2 @@ -112272,7 +112596,7 @@ __5: // Register P1 must hold an integer. Decrement the value in P1 // and jump to P2 if the new value is exactly zero. case OP_DecrJumpZero: - goto __156 + goto __157 // Opcode: AggStep * P2 P3 P4 P5 // Synopsis: accum=r[P3] step(r[P2@P5]) @@ -112311,11 +112635,11 @@ __5: // sqlite3_context only happens once, instead of on each call to the // step function. case OP_AggInverse: - goto __157 - case OP_AggStep: goto __158 - case OP_AggStep1: + case OP_AggStep: goto __159 + case OP_AggStep1: + goto __160 // Opcode: AggFinal P1 P2 * P4 * // Synopsis: accum=r[P1] N=P2 @@ -112342,9 +112666,9 @@ __5: // P4 argument is only needed for the case where // the step function was not previously called. case OP_AggValue: - goto __160 - case OP_AggFinal: goto __161 + case OP_AggFinal: + goto __162 // Opcode: Checkpoint P1 P2 P3 * * // @@ -112357,7 +112681,7 @@ __5: // completes into mem[P3+2]. However on an error, mem[P3+1] and // mem[P3+2] are initialized to -1. case OP_Checkpoint: - goto __162 + goto __163 // Opcode: JournalMode P1 P2 P3 * * // @@ -112370,7 +112694,7 @@ __5: // // Write a string containing the final journal-mode to register P2. case OP_JournalMode: - goto __163 + goto __164 // Opcode: Vacuum P1 P2 * * * // @@ -112381,7 +112705,7 @@ __5: // the file into which the result of vacuum should be written. When // P2 is zero, the vacuum overwrites the original database. case OP_Vacuum: - goto __164 + goto __165 // Opcode: IncrVacuum P1 P2 * * * // @@ -112389,7 +112713,7 @@ __5: // the P1 database. If the vacuum has finished, jump to instruction // P2. Otherwise, fall through to the next instruction. case OP_IncrVacuum: - goto __165 + goto __166 // Opcode: Expire P1 P2 * * * // @@ -112407,21 +112731,21 @@ __5: // that might help the statement run faster but which does not affect the // correctness of operation. case OP_Expire: - goto __166 + goto __167 // Opcode: CursorLock P1 * * * * // // Lock the btree to which cursor P1 is pointing so that the btree cannot be // written by an other cursor. case OP_CursorLock: - goto __167 + goto __168 // Opcode: CursorUnlock P1 * * * * // // Unlock the btree to which cursor P1 is pointing so that it can be // written by other cursors. case OP_CursorUnlock: - goto __168 + goto __169 // Opcode: TableLock P1 P2 P3 P4 * // Synopsis: iDb=P1 root=P2 write=P3 @@ -112438,7 +112762,7 @@ __5: // P4 contains a pointer to the name of the table being locked. This is only // used to generate an error message if the lock cannot be obtained. case OP_TableLock: - goto __169 + goto __170 // Opcode: VBegin * * * P4 * // @@ -112449,21 +112773,21 @@ __5: // within a callback to a virtual table xSync() method. If it is, the error // code will be set to SQLITE_LOCKED. case OP_VBegin: - goto __170 + goto __171 // Opcode: VCreate P1 P2 * * * // // P2 is a register that holds the name of a virtual table in database // P1. Call the xCreate method for that table. case OP_VCreate: - goto __171 + goto __172 // Opcode: VDestroy P1 * * P4 * // // P4 is the name of a virtual table in database P1. Call the xDestroy method // of that table. case OP_VDestroy: - goto __172 + goto __173 // Opcode: VOpen P1 * * P4 * // @@ -112471,7 +112795,7 @@ __5: // P1 is a cursor number. This opcode opens a cursor to the virtual // table and stores that cursor in P1. case OP_VOpen: - goto __173 + goto __174 // Opcode: VInitIn P1 P2 P3 * * // Synopsis: r[P2]=ValueList(P1,P3) @@ -112483,7 +112807,7 @@ __5: // cursor. Register P3 is used to hold the values returned by // sqlite3_vtab_in_first() and sqlite3_vtab_in_next(). case OP_VInitIn: - goto __174 + goto __175 // Opcode: VFilter P1 P2 P3 P4 * // Synopsis: iplan=r[P3] zplan='P4' @@ -112504,7 +112828,7 @@ __5: // // A jump is made to P2 if the result set after filtering would be empty. case OP_VFilter: - goto __175 + goto __176 // Opcode: VColumn P1 P2 P3 * P5 // Synopsis: r[P3]=vcolumn(P2) @@ -112520,7 +112844,7 @@ __5: // bits (OPFLAG_LENGTHARG or OPFLAG_TYPEOFARG) but those bits are // unused by OP_VColumn. case OP_VColumn: - goto __176 + goto __177 // Opcode: VNext P1 P2 * * * // @@ -112528,7 +112852,7 @@ __5: // jump to instruction P2. Or, if the virtual table has reached // the end of its result set, then fall through to the next instruction. case OP_VNext: - goto __177 + goto __178 // Opcode: VRename P1 * * P4 * // @@ -112536,7 +112860,7 @@ __5: // This opcode invokes the corresponding xRename method. The value // in register P1 is passed as the zName argument to the xRename method. case OP_VRename: - goto __178 + goto __179 // Opcode: VUpdate P1 P2 P3 P4 P5 // Synopsis: data=r[P3@P2] @@ -112565,13 +112889,13 @@ __5: // P5 is the error actions (OE_Replace, OE_Fail, OE_Ignore, etc) to // apply in the case of a constraint failure on an insert or update. case OP_VUpdate: - goto __179 + goto __180 // Opcode: Pagecount P1 P2 * * * // // Write the current number of pages in database P1 to memory cell P2. case OP_Pagecount: - goto __180 + goto __181 // Opcode: MaxPgcnt P1 P2 P3 * * // @@ -112581,7 +112905,7 @@ __5: // // Store the maximum page count after the change in register P2. case OP_MaxPgcnt: - goto __181 + goto __182 // Opcode: Function P1 P2 P3 P4 * // Synopsis: r[P3]=func(r[P2@NP]) @@ -112628,9 +112952,16 @@ __5: // // See also: AggStep, AggFinal, Function case OP_PureFunc: - goto __182 // group + goto __183 // group case OP_Function: - goto __183 + goto __184 + + // Opcode: ClrSubtype P1 * * * * + // Synopsis: r[P1].subtype = 0 + // + // Clear the subtype from register P1. + case OP_ClrSubtype: + goto __185 // Opcode: FilterAdd P1 * P3 P4 * // Synopsis: filter(P1) += key(P3@P4) @@ -112638,7 +112969,7 @@ __5: // Compute a hash on the P4 registers starting with r[P3] and // add that hash to the bloom filter contained in r[P1]. case OP_FilterAdd: - goto __184 + goto __186 // Opcode: Filter P1 P2 P3 P4 * // Synopsis: if key(P3@P4) not in filter(P1) goto P2 @@ -112654,7 +112985,7 @@ __5: // answer. However, an incorrect answer may well arise from a // false positive - if the jump is taken when it should fall through. case OP_Filter: - goto __185 + goto __187 // Opcode: Trace P1 P2 * P4 * // @@ -112680,9 +113011,9 @@ __5: // If P3 is not zero, then it is an address to jump to if an SQLITE_CORRUPT // error is encountered. case OP_Trace: - goto __186 + goto __188 case OP_Init: - goto __187 + goto __189 // Opcode: Noop * * * * * // @@ -112693,7 +113024,7 @@ __5: // This opcode records information from the optimizer. It is the // the same as a no-op. This opcodesnever appears in a real VM program. default: - goto __188 + goto __190 } goto __8 @@ -112761,34 +113092,34 @@ jump_to_p2_and_check_for_interrupt: // faster according to "valgrind --tool=cachegrind" check_for_interrupt: if !(libc.AtomicLoadNInt32(db+432, 0) != 0) { - goto __189 + goto __191 } goto abort_due_to_interrupt -__189: +__191: ; // Call the progress callback if it is configured and the required number // of VDBE ops have been executed (either since this invocation of // sqlite3VdbeExec() or since last time the progress callback was called). // If the progress callback returns non-zero, exit the virtual machine with // a return code SQLITE_ABORT. -__190: +__192: if !(nVmStep >= nProgressLimit && (*Sqlite3)(unsafe.Pointer(db)).FxProgress != uintptr(0)) { - goto __191 + goto __193 } nProgressLimit = nProgressLimit + U64((*Sqlite3)(unsafe.Pointer(db)).FnProgressOps) if !((*struct { f func(*libc.TLS, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3)(unsafe.Pointer(db)).FxProgress})).f(tls, (*Sqlite3)(unsafe.Pointer(db)).FpProgressArg) != 0) { - goto __192 + goto __194 } nProgressLimit = uint64(0xffffffff) | U64(uint64(0xffffffff))<<32 rc = SQLITE_INTERRUPT goto abort_due_to_error -__192: +__194: ; - goto __190 -__191: + goto __192 +__193: ; goto __8 @@ -112804,23 +113135,50 @@ __10: // jump (*Mem)(unsafe.Pointer(pIn1)).Fflags = U16(MEM_Int) *(*I64)(unsafe.Pointer(pIn1)) = I64(int32((int64(pOp) - int64(aOp)) / 24)) - // Most jump operations do a goto to this spot in order to update - // the pOp pointer. -jump_to_p2: - ; // There are never any jumps to instruction 0 - // Jumps must be in range - pOp = aOp + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2-1)*24 - goto __8 + goto jump_to_p2_and_check_for_interrupt - // Opcode: Return P1 * * * * + // Opcode: Return P1 P2 P3 * * + // + // Jump to the address stored in register P1. If P1 is a return address + // register, then this accomplishes a return from a subroutine. + // + // If P3 is 1, then the jump is only taken if register P1 holds an integer + // values, otherwise execution falls through to the next opcode, and the + // OP_Return becomes a no-op. If P3 is 0, then register P1 must hold an + // integer or else an assert() is raised. P3 should be set to 1 when + // this opcode is used in combination with OP_BeginSubrtn, and set to 0 + // otherwise. + // + // The value in register P1 is unchanged by this opcode. // - // Jump to the next instruction after the address in register P1. After - // the jump, register P1 becomes undefined. + // P2 is not used by the byte-code engine. However, if P2 is positive + // and also less than the current address, then the "EXPLAIN" output + // formatter in the CLI will indent all opcodes from the P2 opcode up + // to be not including the current Return. P2 should be the first opcode + // in the subroutine from which this opcode is returning. Thus the P2 + // value is a byte-code indentation hint. See tag-20220407a in + // wherecode.c and shell.c. __11: // in1 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 - + if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int != 0) { + goto __195 + } + if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) { + goto __197 + } +__197: + ; pOp = aOp + uintptr(*(*I64)(unsafe.Pointer(pIn1)))*24 - (*Mem)(unsafe.Pointer(pIn1)).Fflags = U16(MEM_Undefined) + goto __196 +__195: + if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) { + goto __198 + } + +__198: + ; +__196: + ; goto __8 // Opcode: InitCoroutine P1 P2 P3 * * @@ -112840,12 +113198,19 @@ __12: // jump *(*I64)(unsafe.Pointer(pOut)) = I64((*Op)(unsafe.Pointer(pOp)).Fp3 - 1) (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Int) - if !((*Op)(unsafe.Pointer(pOp)).Fp2 != 0) { - goto __193 + if !((*Op)(unsafe.Pointer(pOp)).Fp2 == 0) { + goto __199 } - goto jump_to_p2 -__193: + goto __8 +__199: ; + + // Most jump operations do a goto to this spot in order to update + // the pOp pointer. +jump_to_p2: + ; // There are never any jumps to instruction 0 + // Jumps must be in range + pOp = aOp + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2-1)*24 goto __8 // Opcode: EndCoroutine P1 * * * * @@ -112896,10 +113261,10 @@ __14: __15: // in3 pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 if !(int32((*Mem)(unsafe.Pointer(pIn3)).Fflags)&MEM_Null == 0) { - goto __194 + goto __200 } goto __8 -__194: +__200: ; // Opcode: Halt P1 P2 * P4 P5 @@ -112919,11 +113284,11 @@ __194: // // P5 is a value between 0 and 4, inclusive, that modifies the P4 string. // - // 0: (no change) - // 1: NOT NULL contraint failed: P4 - // 2: UNIQUE constraint failed: P4 - // 3: CHECK constraint failed: P4 - // 4: FOREIGN KEY constraint failed: P4 + // 0: (no change) + // 1: NOT NULL contraint failed: P4 + // 2: UNIQUE constraint failed: P4 + // 3: CHECK constraint failed: P4 + // 4: FOREIGN KEY constraint failed: P4 // // If P5 is not zero and P4 is NULL, then everything after the ":" is // omitted. @@ -112933,9 +113298,8 @@ __194: // is the same as executing Halt. __16: - pcx = int32((int64(pOp) - int64(aOp)) / 24) - if !((*Op)(unsafe.Pointer(pOp)).Fp1 == SQLITE_OK && (*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) { - goto __195 + if !((*Vdbe)(unsafe.Pointer(p)).FpFrame != 0 && (*Op)(unsafe.Pointer(pOp)).Fp1 == SQLITE_OK) { + goto __201 } // Halt the sub-program. Return control to the parent frame. pFrame = (*Vdbe)(unsafe.Pointer(p)).FpFrame @@ -112944,7 +113308,7 @@ __16: Xsqlite3VdbeSetChanges(tls, db, (*Vdbe)(unsafe.Pointer(p)).FnChange) pcx = Xsqlite3VdbeFrameRestore(tls, pFrame) if !((*Op)(unsafe.Pointer(pOp)).Fp2 == OE_Ignore) { - goto __196 + goto __202 } // Instruction pcx is the OP_Program that invoked the sub-program // currently being halted. If the p2 instruction of this OP_Halt @@ -112952,48 +113316,48 @@ __16: // an IGNORE exception. In this case jump to the address specified // as the p2 of the calling OP_Program. pcx = (*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp+uintptr(pcx)*24)).Fp2 - 1 -__196: +__202: ; aOp = (*Vdbe)(unsafe.Pointer(p)).FaOp aMem = (*Vdbe)(unsafe.Pointer(p)).FaMem pOp = aOp + uintptr(pcx)*24 goto __8 -__195: +__201: ; (*Vdbe)(unsafe.Pointer(p)).Frc = (*Op)(unsafe.Pointer(pOp)).Fp1 (*Vdbe)(unsafe.Pointer(p)).FerrorAction = U8((*Op)(unsafe.Pointer(pOp)).Fp2) - (*Vdbe)(unsafe.Pointer(p)).Fpc = pcx if !((*Vdbe)(unsafe.Pointer(p)).Frc != 0) { - goto __197 + goto __203 } if !((*Op)(unsafe.Pointer(pOp)).Fp5 != 0) { - goto __198 + goto __204 } - Xsqlite3VdbeError(tls, p, ts+6744, libc.VaList(bp, azType[int32((*Op)(unsafe.Pointer(pOp)).Fp5)-1])) + Xsqlite3VdbeError(tls, p, ts+6779, libc.VaList(bp, azType[int32((*Op)(unsafe.Pointer(pOp)).Fp5)-1])) if !(*(*uintptr)(unsafe.Pointer(pOp + 16)) != 0) { - goto __200 + goto __206 } - (*Vdbe)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3MPrintf(tls, db, ts+6765, libc.VaList(bp+8, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg, *(*uintptr)(unsafe.Pointer(pOp + 16)))) -__200: + (*Vdbe)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3MPrintf(tls, db, ts+6800, libc.VaList(bp+8, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg, *(*uintptr)(unsafe.Pointer(pOp + 16)))) +__206: ; - goto __199 -__198: - Xsqlite3VdbeError(tls, p, ts+4444, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(pOp + 16)))) -__199: + goto __205 +__204: + Xsqlite3VdbeError(tls, p, ts+4479, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(pOp + 16)))) +__205: ; - Xsqlite3_log(tls, (*Op)(unsafe.Pointer(pOp)).Fp1, ts+6772, libc.VaList(bp+32, pcx, (*Vdbe)(unsafe.Pointer(p)).FzSql, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg)) -__197: + pcx = int32((int64(pOp) - int64(aOp)) / 24) + Xsqlite3_log(tls, (*Op)(unsafe.Pointer(pOp)).Fp1, ts+6807, libc.VaList(bp+32, pcx, (*Vdbe)(unsafe.Pointer(p)).FzSql, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg)) +__203: ; rc = Xsqlite3VdbeHalt(tls, p) if !(rc == SQLITE_BUSY) { - goto __201 + goto __207 } (*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_BUSY - goto __202 -__201: + goto __208 +__207: ; if (*Vdbe)(unsafe.Pointer(p)).Frc != 0 { @@ -113001,7 +113365,7 @@ __201: } else { rc = SQLITE_DONE } -__202: +__208: ; goto vdbe_return @@ -113050,41 +113414,41 @@ __20: // same as TK_STRING, out2 (*Op)(unsafe.Pointer(pOp)).Fp1 = Xsqlite3Strlen30(tls, *(*uintptr)(unsafe.Pointer(pOp + 16))) if !(int32(encoding) != SQLITE_UTF8) { - goto __203 + goto __209 } rc = Xsqlite3VdbeMemSetStr(tls, pOut, *(*uintptr)(unsafe.Pointer(pOp + 16)), int64(-1), uint8(SQLITE_UTF8), uintptr(0)) if !(rc != 0) { - goto __204 + goto __210 } goto too_big -__204: +__210: ; if !(SQLITE_OK != Xsqlite3VdbeChangeEncoding(tls, pOut, int32(encoding))) { - goto __205 + goto __211 } goto no_mem -__205: +__211: ; (*Mem)(unsafe.Pointer(pOut)).FszMalloc = 0 - *(*U16)(unsafe.Pointer(pOut + 8)) |= U16(MEM_Static) - if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -7) { - goto __206 + *(*U16)(unsafe.Pointer(pOut + 20)) |= U16(MEM_Static) + if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -6) { + goto __212 } Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pOp + 16))) -__206: +__212: ; - (*Op)(unsafe.Pointer(pOp)).Fp4type = int8(-7) + (*Op)(unsafe.Pointer(pOp)).Fp4type = int8(-6) *(*uintptr)(unsafe.Pointer(pOp + 16)) = (*Mem)(unsafe.Pointer(pOut)).Fz (*Op)(unsafe.Pointer(pOp)).Fp1 = (*Mem)(unsafe.Pointer(pOut)).Fn -__203: +__209: ; if !((*Op)(unsafe.Pointer(pOp)).Fp1 > *(*int32)(unsafe.Pointer(db + 136))) { - goto __207 + goto __213 } goto too_big -__207: +__213: ; (*Op)(unsafe.Pointer(pOp)).Fopcode = U8(OP_String) @@ -113109,6 +113473,27 @@ __21: // out2 goto __8 + // Opcode: BeginSubrtn * P2 * * * + // Synopsis: r[P2]=NULL + // + // Mark the beginning of a subroutine that can be entered in-line + // or that can be called using OP_Gosub. The subroutine should + // be terminated by an OP_Return instruction that has a P1 operand that + // is the same as the P2 operand to this opcode and that has P3 set to 1. + // If the subroutine is entered in-line, then the OP_Return will simply + // fall through. But if the subroutine is entered using OP_Gosub, then + // the OP_Return will jump back to the first instruction after the OP_Gosub. + // + // This routine works by loading a NULL into the P2 register. When the + // return address register contains a NULL, the OP_Return instruction is + // a no-op that simply falls through to the next instruction (assuming that + // the OP_Return opcode has a P3 value of 1). Thus if the subroutine is + // entered in-line, then the OP_Return will cause in-line execution to + // continue. But if the subroutine is entered via OP_Gosub, then the + // OP_Return will cause a return to the address following the OP_Gosub. + // + // This opcode is identical to OP_Null. It has a different name + // only to make the byte code easier to read and verify. // Opcode: Null P1 P2 P3 * * // Synopsis: r[P2..P3]=NULL // @@ -113121,6 +113506,7 @@ __21: // out2 // NULL values will not compare equal even if SQLITE_NULLEQ is set on // OP_Ne or OP_Eq. __22: +__23: pOut = out2Prerelease(tls, p, pOp) cnt = (*Op)(unsafe.Pointer(pOp)).Fp3 - (*Op)(unsafe.Pointer(pOp)).Fp2 @@ -113131,9 +113517,9 @@ __22: return uint16(MEM_Null) }()) (*Mem)(unsafe.Pointer(pOut)).Fn = 0 -__208: +__214: if !(cnt > 0) { - goto __209 + goto __215 } pOut += 56 @@ -113141,8 +113527,8 @@ __208: (*Mem)(unsafe.Pointer(pOut)).Fflags = nullFlag (*Mem)(unsafe.Pointer(pOut)).Fn = 0 cnt-- - goto __208 -__209: + goto __214 +__215: ; goto __8 @@ -113153,7 +113539,7 @@ __209: // instruction, but do not free any string or blob memory associated with // the register, so that if the value was a string or blob that was // previously copied using OP_SCopy, the copies will continue to be valid. -__23: +__24: ; pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_Undefined|MEM_AffMask) | MEM_Null) @@ -113165,23 +113551,23 @@ __23: // P4 points to a blob of data P1 bytes long. Store this // blob in register P2. If P4 is a NULL pointer, then construct // a zero-filled blob that is P1 bytes long in P2. -__24: // out2 +__25: // out2 ; pOut = out2Prerelease(tls, p, pOp) if !(*(*uintptr)(unsafe.Pointer(pOp + 16)) == uintptr(0)) { - goto __210 + goto __216 } Xsqlite3VdbeMemSetZeroBlob(tls, pOut, (*Op)(unsafe.Pointer(pOp)).Fp1) if !(Xsqlite3VdbeMemExpandBlob(tls, pOut) != 0) { - goto __212 + goto __218 } goto no_mem -__212: +__218: ; - goto __211 -__210: + goto __217 +__216: Xsqlite3VdbeMemSetStr(tls, pOut, *(*uintptr)(unsafe.Pointer(pOp + 16)), int64((*Op)(unsafe.Pointer(pOp)).Fp1), uint8(0), uintptr(0)) -__211: +__217: ; (*Mem)(unsafe.Pointer(pOut)).Fenc = encoding @@ -113190,31 +113576,31 @@ __211: // Opcode: Variable P1 P2 * P4 * // Synopsis: r[P2]=parameter(P1,P4) // - // Transfer the values of bound parameter P1 into register P2 + // # Transfer the values of bound parameter P1 into register P2 // // If the parameter is named, then its name appears in P4. // The P4 value is used by sqlite3_bind_parameter_name(). -__25: // Value being transferred +__26: // Value being transferred ; pVar = (*Vdbe)(unsafe.Pointer(p)).FaVar + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1-1)*56 if !(Xsqlite3VdbeMemTooBig(tls, pVar) != 0) { - goto __213 + goto __219 } goto too_big -__213: +__219: ; pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&(MEM_Agg|MEM_Dyn) != 0) { - goto __214 + goto __220 } Xsqlite3VdbeMemSetNull(tls, pOut) -__214: +__220: ; libc.Xmemcpy(tls, pOut, pVar, uint64(uintptr(0)+24)) - *(*U16)(unsafe.Pointer(pOut + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Dyn | MEM_Ephem)) - *(*U16)(unsafe.Pointer(pOut + 8)) |= U16(MEM_Static | MEM_FromBind) + *(*U16)(unsafe.Pointer(pOut + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Dyn | MEM_Ephem)) + *(*U16)(unsafe.Pointer(pOut + 20)) |= U16(MEM_Static | MEM_FromBind) goto __8 @@ -113226,7 +113612,7 @@ __214: // left holding a NULL. It is an error for register ranges // P1..P1+P3-1 and P2..P2+P3-1 to overlap. It is an error // for P3 to be less than 1. -__26: // Register to copy to +__27: // Register to copy to n = (*Op)(unsafe.Pointer(pOp)).Fp3 p1 = (*Op)(unsafe.Pointer(pOp)).Fp1 @@ -113234,65 +113620,77 @@ __26: // Register to copy to pIn1 = aMem + uintptr(p1)*56 pOut = aMem + uintptr(p2)*56 -__215: +__221: ; Xsqlite3VdbeMemMove(tls, pOut, pIn1) if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&MEM_Ephem != 0 && Xsqlite3VdbeMemMakeWriteable(tls, pOut) != 0) { - goto __218 + goto __224 } goto no_mem -__218: +__224: ; pIn1 += 56 pOut += 56 - goto __216 -__216: + goto __222 +__222: if libc.PreDecInt32(&n, 1) != 0 { - goto __215 + goto __221 } - goto __217 -__217: + goto __223 +__223: ; goto __8 - // Opcode: Copy P1 P2 P3 * * + // Opcode: Copy P1 P2 P3 * P5 // Synopsis: r[P2@P3+1]=r[P1@P3+1] // // Make a copy of registers P1..P1+P3 into registers P2..P2+P3. // + // If the 0x0002 bit of P5 is set then also clear the MEM_Subtype flag in the + // destination. The 0x0001 bit of P5 indicates that this Copy opcode cannot + // be merged. The 0x0001 bit is used by the query planner and does not + // come into play during query execution. + // // This instruction makes a deep copy of the value. A duplicate // is made of any string or blob constant. See also OP_SCopy. -__27: +__28: n1 = (*Op)(unsafe.Pointer(pOp)).Fp3 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 -__219: +__225: if !(1 != 0) { - goto __220 + goto __226 } Xsqlite3VdbeMemShallowCopy(tls, pOut, pIn1, MEM_Ephem) if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&MEM_Ephem != 0 && Xsqlite3VdbeMemMakeWriteable(tls, pOut) != 0) { - goto __221 + goto __227 } goto no_mem -__221: +__227: + ; + + if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&MEM_Subtype != 0 && int32((*Op)(unsafe.Pointer(pOp)).Fp5)&0x0002 != 0) { + goto __228 + } + *(*U16)(unsafe.Pointer(pOut + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Subtype)) +__228: ; if !(libc.PostDecInt32(&n1, 1) == 0) { - goto __222 + goto __229 } - goto __220 -__222: + goto __226 +__229: ; pOut += 56 pIn1 += 56 - goto __219 -__220: + goto __225 +__226: ; goto __8 @@ -113308,7 +113706,7 @@ __220: // Thus the program must guarantee that the original will not change // during the lifetime of the copy. Use OP_Copy to make a complete // copy. -__28: // out2 +__29: // out2 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 @@ -113322,7 +113720,7 @@ __28: // out2 // // This is an optimized version of SCopy that works only for integer // values. -__29: // out2 +__30: // out2 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 @@ -113339,12 +113737,12 @@ __29: // out2 // exits. This opcode is used to raise foreign key constraint errors prior // to returning results such as a row change count or the result of a // RETURNING clause. -__30: +__31: if !(libc.AssignInt32(&rc, Xsqlite3VdbeCheckFk(tls, p, 0)) != SQLITE_OK) { - goto __223 + goto __230 } goto abort_due_to_error -__223: +__230: ; goto __8 @@ -113356,55 +113754,25 @@ __223: // with an SQLITE_ROW return code and it sets up the sqlite3_stmt // structure to provide access to the r(P1)..r(P1+P2-1) values as // the result row. -__31: +__32: ; - // Invalidate all ephemeral cursor row caches (*Vdbe)(unsafe.Pointer(p)).FcacheCtr = (*Vdbe)(unsafe.Pointer(p)).FcacheCtr + U32(2) | U32(1) - - // Make sure the results of the current row are \000 terminated - // and have an assigned type. The results are de-ephemeralized as - // a side effect. - pMem = libc.AssignPtrUintptr(p+168, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56) - i = 0 -__224: - if !(i < (*Op)(unsafe.Pointer(pOp)).Fp2) { - goto __226 - } - - if !(int32((*Mem)(unsafe.Pointer(pMem+uintptr(i)*56)).Fflags)&MEM_Ephem != 0 && Xsqlite3VdbeMemMakeWriteable(tls, pMem+uintptr(i)*56) != 0) { - goto __227 - } - goto no_mem -__227: - ; - - Xsqlite3VdbeMemNulTerminate(tls, pMem+uintptr(i)*56) - - goto __225 -__225: - i++ - goto __224 - goto __226 -__226: - ; + (*Vdbe)(unsafe.Pointer(p)).FpResultSet = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { - goto __228 + goto __231 } goto no_mem -__228: +__231: ; - if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmTrace)&SQLITE_TRACE_ROW != 0) { - goto __229 + goto __232 } (*struct { f func(*libc.TLS, U32, uintptr, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{*(*uintptr)(unsafe.Pointer(db + 248 /* &.trace */))})).f(tls, uint32(SQLITE_TRACE_ROW), (*Sqlite3)(unsafe.Pointer(db)).FpTraceArg, p, uintptr(0)) -__229: +__232: ; - - // Return SQLITE_ROW (*Vdbe)(unsafe.Pointer(p)).Fpc = int32((int64(pOp)-int64(aOp))/24) + 1 rc = SQLITE_ROW goto vdbe_return @@ -113416,12 +113784,12 @@ __229: // register P2 and store the result in register P3. // If either the P1 or P2 text are NULL then store NULL in P3. // - // P3 = P2 || P1 + // P3 = P2 || P1 // // It is illegal for P1 and P3 to be the same register. Sometimes, // if P3 is the same register as P2, the implementation is able // to avoid a memcpy(). -__32: // Initial flags for P2 +__33: // Initial flags for P2 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 pIn2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 @@ -113430,94 +113798,99 @@ __32: // Initial flags for P2 flags1 = (*Mem)(unsafe.Pointer(pIn1)).Fflags if !((int32(flags1)|int32((*Mem)(unsafe.Pointer(pIn2)).Fflags))&MEM_Null != 0) { - goto __230 + goto __233 } Xsqlite3VdbeMemSetNull(tls, pOut) goto __8 -__230: +__233: ; if !(int32(flags1)&(MEM_Str|MEM_Blob) == 0) { - goto __231 + goto __234 } if !(Xsqlite3VdbeMemStringify(tls, pIn1, encoding, uint8(0)) != 0) { - goto __233 + goto __236 } goto no_mem -__233: +__236: ; flags1 = U16(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags) & libc.CplInt32(MEM_Str)) - goto __232 -__231: + goto __235 +__234: if !(int32(flags1)&MEM_Zero != 0) { - goto __234 + goto __237 } if !(Xsqlite3VdbeMemExpandBlob(tls, pIn1) != 0) { - goto __235 + goto __238 } goto no_mem -__235: +__238: ; flags1 = U16(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags) & libc.CplInt32(MEM_Str)) -__234: +__237: ; -__232: +__235: ; flags2 = (*Mem)(unsafe.Pointer(pIn2)).Fflags if !(int32(flags2)&(MEM_Str|MEM_Blob) == 0) { - goto __236 + goto __239 } if !(Xsqlite3VdbeMemStringify(tls, pIn2, encoding, uint8(0)) != 0) { - goto __238 + goto __241 } goto no_mem -__238: +__241: ; flags2 = U16(int32((*Mem)(unsafe.Pointer(pIn2)).Fflags) & libc.CplInt32(MEM_Str)) - goto __237 -__236: + goto __240 +__239: if !(int32(flags2)&MEM_Zero != 0) { - goto __239 + goto __242 } if !(Xsqlite3VdbeMemExpandBlob(tls, pIn2) != 0) { - goto __240 + goto __243 } goto no_mem -__240: +__243: ; flags2 = U16(int32((*Mem)(unsafe.Pointer(pIn2)).Fflags) & libc.CplInt32(MEM_Str)) -__239: +__242: ; -__237: +__240: ; nByte = I64((*Mem)(unsafe.Pointer(pIn1)).Fn + (*Mem)(unsafe.Pointer(pIn2)).Fn) if !(nByte > I64(*(*int32)(unsafe.Pointer(db + 136)))) { - goto __241 + goto __244 } goto too_big -__241: +__244: ; - if !(Xsqlite3VdbeMemGrow(tls, pOut, int32(nByte)+3, libc.Bool32(pOut == pIn2)) != 0) { - goto __242 + if !(Xsqlite3VdbeMemGrow(tls, pOut, int32(nByte)+2, libc.Bool32(pOut == pIn2)) != 0) { + goto __245 } goto no_mem -__242: +__245: ; (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Str) if !(pOut != pIn2) { - goto __243 + goto __246 } libc.Xmemcpy(tls, (*Mem)(unsafe.Pointer(pOut)).Fz, (*Mem)(unsafe.Pointer(pIn2)).Fz, uint64((*Mem)(unsafe.Pointer(pIn2)).Fn)) (*Mem)(unsafe.Pointer(pIn2)).Fflags = flags2 -__243: +__246: ; libc.Xmemcpy(tls, (*Mem)(unsafe.Pointer(pOut)).Fz+uintptr((*Mem)(unsafe.Pointer(pIn2)).Fn), (*Mem)(unsafe.Pointer(pIn1)).Fz, uint64((*Mem)(unsafe.Pointer(pIn1)).Fn)) (*Mem)(unsafe.Pointer(pIn1)).Fflags = flags1 + if !(int32(encoding) > SQLITE_UTF8) { + goto __247 + } + nByte = nByte & int64(libc.CplInt32(1)) +__247: + ; *(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pOut)).Fz + uintptr(nByte))) = int8(0) *(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pOut)).Fz + uintptr(nByte+int64(1)))) = int8(0) - *(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pOut)).Fz + uintptr(nByte+int64(2)))) = int8(0) - *(*U16)(unsafe.Pointer(pOut + 8)) |= U16(MEM_Term) + *(*U16)(unsafe.Pointer(pOut + 20)) |= U16(MEM_Term) (*Mem)(unsafe.Pointer(pOut)).Fn = int32(nByte) (*Mem)(unsafe.Pointer(pOut)).Fenc = encoding @@ -113532,7 +113905,6 @@ __243: // Opcode: Multiply P1 P2 P3 * * // Synopsis: r[P3]=r[P1]*r[P2] // - // // Multiply the value in register P1 by the value in register P2 // and store the result in register P3. // If either input is NULL, the result is NULL. @@ -113556,11 +113928,11 @@ __243: // register P1 and store the result in register P3. // If the value in register P1 is zero the result is NULL. // If either operand is NULL, the result is NULL. -__33: // same as TK_PLUS, in1, in2, out3 -__34: // same as TK_MINUS, in1, in2, out3 -__35: // same as TK_STAR, in1, in2, out3 -__36: // same as TK_SLASH, in1, in2, out3 -__37: // Real value of right operand +__34: // same as TK_PLUS, in1, in2, out3 +__35: // same as TK_MINUS, in1, in2, out3 +__36: // same as TK_STAR, in1, in2, out3 +__37: // same as TK_SLASH, in1, in2, out3 +__38: // Real value of right operand pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 type1 = numericType(tls, pIn1) @@ -113569,158 +113941,158 @@ __37: // Real value of right operand pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 flags = U16(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags) | int32((*Mem)(unsafe.Pointer(pIn2)).Fflags)) if !(int32(type1)&int32(type2)&MEM_Int != 0) { - goto __244 + goto __248 } iA = *(*I64)(unsafe.Pointer(pIn1)) *(*I64)(unsafe.Pointer(bp + 208 /* iB */)) = *(*I64)(unsafe.Pointer(pIn2)) switch int32((*Op)(unsafe.Pointer(pOp)).Fopcode) { case OP_Add: - goto __247 + goto __251 case OP_Subtract: - goto __248 + goto __252 case OP_Multiply: - goto __249 + goto __253 case OP_Divide: - goto __250 + goto __254 default: - goto __251 + goto __255 } - goto __246 -__247: + goto __250 +__251: if !(Xsqlite3AddInt64(tls, bp+208, iA) != 0) { - goto __252 + goto __256 } goto fp_math -__252: +__256: ; - goto __246 -__248: + goto __250 +__252: if !(Xsqlite3SubInt64(tls, bp+208, iA) != 0) { - goto __253 + goto __257 } goto fp_math -__253: +__257: ; - goto __246 -__249: + goto __250 +__253: if !(Xsqlite3MulInt64(tls, bp+208, iA) != 0) { - goto __254 + goto __258 } goto fp_math -__254: +__258: ; - goto __246 -__250: + goto __250 +__254: if !(iA == int64(0)) { - goto __255 + goto __259 } goto arithmetic_result_is_null -__255: +__259: ; if !(iA == int64(-1) && *(*I64)(unsafe.Pointer(bp + 208)) == int64(-1)-(int64(0xffffffff)|I64(int64(0x7fffffff))<<32)) { - goto __256 + goto __260 } goto fp_math -__256: +__260: ; *(*I64)(unsafe.Pointer(bp + 208 /* iB */)) /= iA - goto __246 + goto __250 -__251: +__255: if !(iA == int64(0)) { - goto __257 + goto __261 } goto arithmetic_result_is_null -__257: +__261: ; if !(iA == int64(-1)) { - goto __258 + goto __262 } iA = int64(1) -__258: +__262: ; *(*I64)(unsafe.Pointer(bp + 208 /* iB */)) %= iA - goto __246 + goto __250 -__246: +__250: ; *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 208 /* iB */)) (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Int) - goto __245 -__244: + goto __249 +__248: if !(int32(flags)&MEM_Null != 0) { - goto __259 + goto __263 } goto arithmetic_result_is_null - goto __260 -__259: + goto __264 +__263: fp_math: rA = Xsqlite3VdbeRealValue(tls, pIn1) rB = Xsqlite3VdbeRealValue(tls, pIn2) switch int32((*Op)(unsafe.Pointer(pOp)).Fopcode) { case OP_Add: - goto __262 + goto __266 case OP_Subtract: - goto __263 + goto __267 case OP_Multiply: - goto __264 + goto __268 case OP_Divide: - goto __265 + goto __269 default: - goto __266 + goto __270 } - goto __261 -__262: + goto __265 +__266: rB = rB + rA - goto __261 -__263: + goto __265 +__267: rB = rB - rA - goto __261 -__264: + goto __265 +__268: rB = rB * rA - goto __261 -__265: + goto __265 +__269: // (double)0 In case of SQLITE_OMIT_FLOATING_POINT... if !(rA == float64(0)) { - goto __267 + goto __271 } goto arithmetic_result_is_null -__267: +__271: ; rB = rB / rA - goto __261 + goto __265 -__266: +__270: iA = Xsqlite3VdbeIntValue(tls, pIn1) *(*I64)(unsafe.Pointer(bp + 208 /* iB */)) = Xsqlite3VdbeIntValue(tls, pIn2) if !(iA == int64(0)) { - goto __268 + goto __272 } goto arithmetic_result_is_null -__268: +__272: ; if !(iA == int64(-1)) { - goto __269 + goto __273 } iA = int64(1) -__269: +__273: ; rB = float64(*(*I64)(unsafe.Pointer(bp + 208)) % iA) - goto __261 + goto __265 -__261: +__265: ; if !(Xsqlite3IsNaN(tls, rB) != 0) { - goto __270 + goto __274 } goto arithmetic_result_is_null -__270: +__274: ; *(*float64)(unsafe.Pointer(pOut)) = rB (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Real) -__260: +__264: ; -__245: +__249: ; goto __8 @@ -113742,13 +114114,13 @@ arithmetic_result_is_null: // The interface used by the implementation of the aforementioned functions // to retrieve the collation sequence set by this opcode is not available // publicly. Only built-in functions have access to this feature. -__38: +__39: ; if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) { - goto __271 + goto __275 } Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56, int64(0)) -__271: +__275: ; goto __8 @@ -113778,43 +114150,43 @@ __271: // number of bits specified by the integer in register P1. // Store the result in register P3. // If either input is NULL, the result is NULL. -__39: // same as TK_BITAND, in1, in2, out3 -__40: // same as TK_BITOR, in1, in2, out3 -__41: // same as TK_LSHIFT, in1, in2, out3 -__42: +__40: // same as TK_BITAND, in1, in2, out3 +__41: // same as TK_BITOR, in1, in2, out3 +__42: // same as TK_LSHIFT, in1, in2, out3 +__43: pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 pIn2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 if !((int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)|int32((*Mem)(unsafe.Pointer(pIn2)).Fflags))&MEM_Null != 0) { - goto __272 + goto __276 } Xsqlite3VdbeMemSetNull(tls, pOut) goto __8 -__272: +__276: ; *(*I64)(unsafe.Pointer(bp + 224 /* iA1 */)) = Xsqlite3VdbeIntValue(tls, pIn2) iB1 = Xsqlite3VdbeIntValue(tls, pIn1) op = (*Op)(unsafe.Pointer(pOp)).Fopcode if !(int32(op) == OP_BitAnd) { - goto __273 + goto __277 } *(*I64)(unsafe.Pointer(bp + 224 /* iA1 */)) &= iB1 - goto __274 -__273: + goto __278 +__277: if !(int32(op) == OP_BitOr) { - goto __275 + goto __279 } *(*I64)(unsafe.Pointer(bp + 224 /* iA1 */)) |= iB1 - goto __276 -__275: + goto __280 +__279: if !(iB1 != int64(0)) { - goto __277 + goto __281 } // If shifting by a negative amount, shift in the other direction if !(iB1 < int64(0)) { - goto __278 + goto __282 } op = U8(2*OP_ShiftLeft + 1 - int32(op)) @@ -113823,44 +114195,44 @@ __275: } else { iB1 = int64(64) } -__278: +__282: ; if !(iB1 >= int64(64)) { - goto __279 + goto __283 } if *(*I64)(unsafe.Pointer(bp + 224)) >= int64(0) || int32(op) == OP_ShiftLeft { *(*I64)(unsafe.Pointer(bp + 224 /* iA1 */)) = int64(0) } else { *(*I64)(unsafe.Pointer(bp + 224 /* iA1 */)) = int64(-1) } - goto __280 -__279: + goto __284 +__283: libc.Xmemcpy(tls, bp+216, bp+224, uint64(unsafe.Sizeof(U64(0)))) if !(int32(op) == OP_ShiftLeft) { - goto __281 + goto __285 } *(*U64)(unsafe.Pointer(bp + 216 /* uA */)) <<= iB1 - goto __282 -__281: + goto __286 +__285: *(*U64)(unsafe.Pointer(bp + 216 /* uA */)) >>= iB1 // Sign-extend on a right shift of a negative number if !(*(*I64)(unsafe.Pointer(bp + 224)) < int64(0)) { - goto __283 + goto __287 } *(*U64)(unsafe.Pointer(bp + 216 /* uA */)) |= U64(U64(uint64(0xffffffff))<<32|uint64(0xffffffff)) << (int64(64) - iB1) -__283: +__287: ; -__282: +__286: ; libc.Xmemcpy(tls, bp+224, bp+216, uint64(unsafe.Sizeof(I64(0)))) -__280: +__284: ; -__277: +__281: ; -__276: +__280: ; -__274: +__278: ; *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 224 /* iA1 */)) (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Int) @@ -113873,7 +114245,7 @@ __274: // The result is always an integer. // // To force any register to be an integer, just add 0. -__43: // in1 +__44: // in1 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 Xsqlite3VdbeMemIntegerify(tls, pIn1) @@ -113886,29 +114258,29 @@ __43: // in1 // in P1 is not an integer and cannot be converted into an integer // without data loss, then jump immediately to P2, or if P2==0 // raise an SQLITE_MISMATCH exception. -__44: // jump, in1 +__45: // jump, in1 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int == 0) { - goto __284 + goto __288 } applyAffinity(tls, pIn1, int8(SQLITE_AFF_NUMERIC), encoding) if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int == 0) { - goto __285 + goto __289 } if !((*Op)(unsafe.Pointer(pOp)).Fp2 == 0) { - goto __286 + goto __290 } rc = SQLITE_MISMATCH goto abort_due_to_error - goto __287 -__286: + goto __291 +__290: goto jump_to_p2 -__287: +__291: ; -__285: +__289: ; -__284: +__288: ; (*Mem)(unsafe.Pointer(pIn1)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Int) @@ -113922,15 +114294,15 @@ __284: // has REAL affinity. Such column values may still be stored as // integers, for space efficiency, but after extraction we want them // to have only a real value. -__45: // in1 +__46: // in1 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&(MEM_Int|MEM_IntReal) != 0) { - goto __288 + goto __292 } Xsqlite3VdbeMemRealify(tls, pIn1) -__288: +__292: ; goto __8 @@ -113948,7 +114320,7 @@ __288: // </ul> // // A NULL value is not changed by this routine. It remains NULL. -__46: // in1 +__47: // in1 ; pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 @@ -113960,17 +114332,17 @@ __46: // in1 return 0 }() if !(rc != 0) { - goto __289 + goto __293 } goto abort_due_to_error -__289: +__293: ; rc = Xsqlite3VdbeMemCast(tls, pIn1, uint8((*Op)(unsafe.Pointer(pOp)).Fp2), encoding) if !(rc != 0) { - goto __290 + goto __294 } goto abort_due_to_error -__290: +__294: ; goto __8 @@ -114061,70 +114433,70 @@ __290: // This works just like the Lt opcode except that the jump is taken if // the content of register P3 is greater than or equal to the content of // register P1. See the Lt opcode for additional information. -__47: // same as TK_EQ, jump, in1, in3 -__48: // same as TK_NE, jump, in1, in3 -__49: // same as TK_LT, jump, in1, in3 -__50: // same as TK_LE, jump, in1, in3 -__51: // same as TK_GT, jump, in1, in3 -__52: // Copy of initial value of pIn3->flags +__48: // same as TK_EQ, jump, in1, in3 +__49: // same as TK_NE, jump, in1, in3 +__50: // same as TK_LT, jump, in1, in3 +__51: // same as TK_LE, jump, in1, in3 +__52: // same as TK_GT, jump, in1, in3 +__53: // Copy of initial value of pIn3->flags pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 flags11 = (*Mem)(unsafe.Pointer(pIn1)).Fflags flags3 = (*Mem)(unsafe.Pointer(pIn3)).Fflags if !(int32(flags11)&int32(flags3)&MEM_Int != 0) { - goto __291 + goto __295 } // Common case of comparison of two integers if !(*(*I64)(unsafe.Pointer(pIn3)) > *(*I64)(unsafe.Pointer(pIn1))) { - goto __292 + goto __296 } - iCompare = +1 if !(*(*uint8)(unsafe.Pointer(Xsqlite3aGTb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode))) != 0) { - goto __294 + goto __298 } goto jump_to_p2 -__294: +__298: ; - goto __293 -__292: + iCompare = +1 + goto __297 +__296: if !(*(*I64)(unsafe.Pointer(pIn3)) < *(*I64)(unsafe.Pointer(pIn1))) { - goto __295 + goto __299 } - iCompare = -1 if !(*(*uint8)(unsafe.Pointer(Xsqlite3aLTb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode))) != 0) { - goto __297 + goto __301 } goto jump_to_p2 -__297: +__301: ; - goto __296 -__295: - iCompare = 0 + iCompare = -1 + goto __300 +__299: if !(*(*uint8)(unsafe.Pointer(Xsqlite3aEQb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode))) != 0) { - goto __298 + goto __302 } goto jump_to_p2 -__298: +__302: ; -__296: + iCompare = 0 +__300: ; -__293: +__297: ; goto __8 -__291: +__295: ; if !((int32(flags11)|int32(flags3))&MEM_Null != 0) { - goto __299 + goto __303 } // One or both operands are NULL if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&SQLITE_NULLEQ != 0) { - goto __301 + goto __305 } // If SQLITE_NULLEQ is set (which will only happen if the operator is // OP_Eq or OP_Ne) then take the jump or not depending on whether @@ -114132,98 +114504,98 @@ __291: if !(int32(flags11)&int32(flags3)&MEM_Null != 0 && int32(flags3)&MEM_Cleared == 0) { - goto __303 + goto __307 } res = 0 // Operands are equal - goto __304 -__303: + goto __308 +__307: res = func() int32 { if int32(flags3)&MEM_Null != 0 { return -1 } return +1 }() // Operands are not equal -__304: +__308: ; - goto __302 -__301: + goto __306 +__305: // SQLITE_NULLEQ is clear and at least one operand is NULL, // then the result is always NULL. // The jump is taken if the SQLITE_JUMPIFNULL bit is set. - iCompare = 1 // Operands are not equal - + ; if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&SQLITE_JUMPIFNULL != 0) { - goto __305 + goto __309 } goto jump_to_p2 -__305: +__309: ; + iCompare = 1 // Operands are not equal goto __8 -__302: +__306: ; - goto __300 -__299: + goto __304 +__303: // Neither operand is NULL and we couldn't do the special high-speed // integer comparison case. So do a general-case comparison. affinity = int8(int32((*Op)(unsafe.Pointer(pOp)).Fp5) & SQLITE_AFF_MASK) if !(int32(affinity) >= SQLITE_AFF_NUMERIC) { - goto __306 + goto __310 } if !((int32(flags11)|int32(flags3))&MEM_Str != 0) { - goto __308 + goto __312 } if !(int32(flags11)&(MEM_Int|MEM_IntReal|MEM_Real|MEM_Str) == MEM_Str) { - goto __309 + goto __313 } applyNumericAffinity(tls, pIn1, 0) flags3 = (*Mem)(unsafe.Pointer(pIn3)).Fflags -__309: +__313: ; if !(int32(flags3)&(MEM_Int|MEM_IntReal|MEM_Real|MEM_Str) == MEM_Str) { - goto __310 + goto __314 } applyNumericAffinity(tls, pIn3, 0) -__310: +__314: ; -__308: +__312: ; - goto __307 -__306: + goto __311 +__310: if !(int32(affinity) == SQLITE_AFF_TEXT) { - goto __311 + goto __315 } if !(int32(flags11)&MEM_Str == 0 && int32(flags11)&(MEM_Int|MEM_Real|MEM_IntReal) != 0) { - goto __312 + goto __316 } Xsqlite3VdbeMemStringify(tls, pIn1, encoding, uint8(1)) flags11 = U16(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&libc.CplInt32(MEM_TypeMask) | int32(flags11)&MEM_TypeMask) if !(pIn1 == pIn3) { - goto __313 + goto __317 } flags3 = U16(int32(flags11) | MEM_Str) -__313: +__317: ; -__312: +__316: ; if !(int32(flags3)&MEM_Str == 0 && int32(flags3)&(MEM_Int|MEM_Real|MEM_IntReal) != 0) { - goto __314 + goto __318 } Xsqlite3VdbeMemStringify(tls, pIn3, encoding, uint8(1)) flags3 = U16(int32((*Mem)(unsafe.Pointer(pIn3)).Fflags)&libc.CplInt32(MEM_TypeMask) | int32(flags3)&MEM_TypeMask) -__314: +__318: ; -__311: +__315: ; -__307: +__311: ; res = Xsqlite3MemCompare(tls, pIn3, pIn1, *(*uintptr)(unsafe.Pointer(pOp + 16))) -__300: +__304: ; // At this point, res is negative, zero, or positive if reg[P1] is @@ -114234,21 +114606,21 @@ __300: // order: NE, EQ, GT, LE, LT, GE if !(res < 0) { - goto __315 + goto __319 } res2 = int32(*(*uint8)(unsafe.Pointer(Xsqlite3aLTb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode)))) - goto __316 -__315: + goto __320 +__319: if !(res == 0) { - goto __317 + goto __321 } res2 = int32(*(*uint8)(unsafe.Pointer(Xsqlite3aEQb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode)))) - goto __318 -__317: + goto __322 +__321: res2 = int32(*(*uint8)(unsafe.Pointer(Xsqlite3aGTb + uintptr((*Op)(unsafe.Pointer(pOp)).Fopcode)))) -__318: +__322: ; -__316: +__320: ; iCompare = res @@ -114259,10 +114631,10 @@ __316: (*Mem)(unsafe.Pointer(pIn1)).Fflags = flags11 if !(res2 != 0) { - goto __319 + goto __323 } goto jump_to_p2 -__319: +__323: ; goto __8 @@ -114277,14 +114649,14 @@ __319: // prior OP_Lt or OP_Gt would have been true, then jump to P2. // If the result of an OP_Eq comparison on the two previous // operands would have been false or NULL, then fall through. -__53: // same as TK_ESCAPE, jump +__54: // same as TK_ESCAPE, jump ; if !(iCompare == 0) { - goto __320 + goto __324 } goto jump_to_p2 -__320: +__324: ; goto __8 @@ -114293,13 +114665,12 @@ __320: // Set the permutation used by the OP_Compare operator in the next // instruction. The permutation is stored in the P4 operand. // - // The permutation is only valid until the next OP_Compare that has - // the OPFLAG_PERMUTE bit set in P5. Typically the OP_Permutation should - // occur immediately prior to the OP_Compare. + // The permutation is only valid for the next opcode which must be + // an OP_Compare that has the OPFLAG_PERMUTE bit set in P5. // // The first integer in the P4 integer array is the length of the array // and does not become part of the permutation. -__54: +__55: ; goto __8 @@ -114323,65 +114694,68 @@ __54: // The comparison is a sort comparison, so NULLs compare equal, // NULLs are less than numbers, numbers are less than strings, // and strings are less than blobs. -__55: // The permutation + // + // This opcode must be immediately followed by an OP_Jump opcode. +__56: // The permutation if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_PERMUTE == 0) { - goto __321 + goto __325 } aPermute = uintptr(0) - goto __322 -__321: + goto __326 +__325: ; aPermute = *(*uintptr)(unsafe.Pointer(pOp + libc.UintptrFromInt32(-1)*24 + 16)) + uintptr(1)*4 -__322: +__326: ; n2 = (*Op)(unsafe.Pointer(pOp)).Fp3 pKeyInfo = *(*uintptr)(unsafe.Pointer(pOp + 16)) p11 = (*Op)(unsafe.Pointer(pOp)).Fp1 p21 = (*Op)(unsafe.Pointer(pOp)).Fp2 - i1 = 0 -__323: - if !(i1 < n2) { - goto __325 + i = 0 +__327: + if !(i < n2) { + goto __329 } if aPermute != 0 { - idx = *(*U32)(unsafe.Pointer(aPermute + uintptr(i1)*4)) + idx = *(*U32)(unsafe.Pointer(aPermute + uintptr(i)*4)) } else { - idx = U32(i1) + idx = U32(i) } - pColl = *(*uintptr)(unsafe.Pointer(pKeyInfo + 32 + uintptr(i1)*8)) - bRev = int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(i1)))) & KEYINFO_ORDER_DESC + pColl = *(*uintptr)(unsafe.Pointer(pKeyInfo + 32 + uintptr(i)*8)) + bRev = int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(i)))) & KEYINFO_ORDER_DESC iCompare = Xsqlite3MemCompare(tls, aMem+uintptr(U32(p11)+idx)*56, aMem+uintptr(U32(p21)+idx)*56, pColl) if !(iCompare != 0) { - goto __326 + goto __330 } - if !(int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(i1))))&KEYINFO_ORDER_BIGNULL != 0 && + if !(int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(i))))&KEYINFO_ORDER_BIGNULL != 0 && (int32((*Mem)(unsafe.Pointer(aMem+uintptr(U32(p11)+idx)*56)).Fflags)&MEM_Null != 0 || int32((*Mem)(unsafe.Pointer(aMem+uintptr(U32(p21)+idx)*56)).Fflags)&MEM_Null != 0)) { - goto __327 + goto __331 } iCompare = -iCompare -__327: +__331: ; if !(bRev != 0) { - goto __328 + goto __332 } iCompare = -iCompare -__328: +__332: ; - goto __325 -__326: + goto __329 +__330: ; - goto __324 -__324: - i1++ - goto __323 - goto __325 -__325: + goto __328 +__328: + i++ + goto __327 + goto __329 +__329: ; + goto __8 // Opcode: Jump P1 P2 P3 * * @@ -114389,24 +114763,27 @@ __325: // Jump to the instruction at address P1, P2, or P3 depending on whether // in the most recent OP_Compare instruction the P1 vector was less than // equal to, or greater than the P2 vector, respectively. -__56: // jump + // + // This opcode must immediately follow an OP_Compare opcode. +__57: // jump + ; if !(iCompare < 0) { - goto __329 + goto __333 } pOp = aOp + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1-1)*24 - goto __330 -__329: + goto __334 +__333: if !(iCompare == 0) { - goto __331 + goto __335 } pOp = aOp + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2-1)*24 - goto __332 -__331: + goto __336 +__335: ; pOp = aOp + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3-1)*24 -__332: +__336: ; -__330: +__334: ; goto __8 @@ -114428,30 +114805,30 @@ __330: // If either P1 or P2 is nonzero (true) then the result is 1 (true) // even if the other input is NULL. A NULL and false or two NULLs // give a NULL output. -__57: // same as TK_AND, in1, in2, out3 -__58: // Right operand: 0==FALSE, 1==TRUE, 2==UNKNOWN or NULL +__58: // same as TK_AND, in1, in2, out3 +__59: // Right operand: 0==FALSE, 1==TRUE, 2==UNKNOWN or NULL v1 = Xsqlite3VdbeBooleanValue(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56, 2) v2 = Xsqlite3VdbeBooleanValue(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56, 2) if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_And) { - goto __333 + goto __337 } v1 = int32(and_logic[v1*3+v2]) - goto __334 -__333: + goto __338 +__337: v1 = int32(or_logic[v1*3+v2]) -__334: +__338: ; pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 if !(v1 == 2) { - goto __335 + goto __339 } (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Null) - goto __336 -__335: + goto __340 +__339: *(*I64)(unsafe.Pointer(pOut)) = I64(v1) (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Int) -__336: +__340: ; goto __8 @@ -114474,7 +114851,7 @@ __336: // <li> If P3==0 and P4==1 then r[P2] := r[P1] IS NOT TRUE // <li> If P3==1 and P4==0 then r[P2] := r[P1] IS NOT FALSE // </ul> -__59: // in1, out2 +__60: // in1, out2 ; Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56, @@ -114487,17 +114864,17 @@ __59: // in1, out2 // Interpret the value in register P1 as a boolean value. Store the // boolean complement in register P2. If the value in register P1 is // NULL, then a NULL is stored in P2. -__60: // same as TK_NOT, in1, out2 +__61: // same as TK_NOT, in1, out2 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Null == 0) { - goto __337 + goto __341 } Xsqlite3VdbeMemSetInt64(tls, pOut, libc.BoolInt64(!(Xsqlite3VdbeBooleanValue(tls, pIn1, 0) != 0))) - goto __338 -__337: + goto __342 +__341: Xsqlite3VdbeMemSetNull(tls, pOut) -__338: +__342: ; goto __8 @@ -114507,16 +114884,16 @@ __338: // Interpret the content of register P1 as an integer. Store the // ones-complement of the P1 value into register P2. If P1 holds // a NULL then store a NULL in P2. -__61: // same as TK_BITNOT, in1, out2 +__62: // same as TK_BITNOT, in1, out2 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 Xsqlite3VdbeMemSetNull(tls, pOut) if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Null == 0) { - goto __339 + goto __343 } (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Int) *(*I64)(unsafe.Pointer(pOut)) = ^Xsqlite3VdbeIntValue(tls, pIn1) -__339: +__343: ; goto __8 @@ -114536,30 +114913,30 @@ __339: // whether or not the jump should be taken. The bitmask is necessary // because the self-altering code trick does not work for recursive // triggers. -__62: // Address of this instruction +__63: // Address of this instruction ; if !((*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) { - goto __340 + goto __344 } iAddr = U32(int32((int64(pOp) - int64((*Vdbe)(unsafe.Pointer(p)).FaOp)) / 24)) if !(int32(*(*U8)(unsafe.Pointer((*VdbeFrame)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FpFrame)).FaOnce + uintptr(iAddr/U32(8)))))&(int32(1)<<(iAddr&U32(7))) != 0) { - goto __342 + goto __346 } goto jump_to_p2 -__342: +__346: ; *(*U8)(unsafe.Pointer((*VdbeFrame)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FpFrame)).FaOnce + uintptr(iAddr/U32(8)))) |= U8(int32(1) << (iAddr & U32(7))) - goto __341 -__340: + goto __345 +__344: if !((*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp)).Fp1 == (*Op)(unsafe.Pointer(pOp)).Fp1) { - goto __343 + goto __347 } goto jump_to_p2 -__343: +__347: ; -__341: +__345: ; (*Op)(unsafe.Pointer(pOp)).Fp1 = (*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp)).Fp1 @@ -114570,14 +114947,14 @@ __341: // Jump to P2 if the value in register P1 is true. The value // is considered true if it is numeric and non-zero. If the value // in P1 is NULL then take the jump if and only if P3 is non-zero. -__63: +__64: c = Xsqlite3VdbeBooleanValue(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56, (*Op)(unsafe.Pointer(pOp)).Fp3) if !(c != 0) { - goto __344 + goto __348 } goto jump_to_p2 -__344: +__348: ; goto __8 @@ -114586,14 +114963,14 @@ __344: // Jump to P2 if the value in register P1 is False. The value // is considered false if it has a numeric value of zero. If the value // in P1 is NULL then take the jump if and only if P3 is non-zero. -__64: +__65: c1 = libc.BoolInt32(!(Xsqlite3VdbeBooleanValue(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56, libc.BoolInt32(!((*Op)(unsafe.Pointer(pOp)).Fp3 != 0))) != 0)) if !(c1 != 0) { - goto __345 + goto __349 } goto jump_to_p2 -__345: +__349: ; goto __8 @@ -114601,14 +114978,14 @@ __345: // Synopsis: if r[P1]==NULL goto P2 // // Jump to P2 if the value in register P1 is NULL. -__65: // same as TK_ISNULL, jump, in1 +__66: // same as TK_ISNULL, jump, in1 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Null != 0) { - goto __346 + goto __350 } goto jump_to_p2 -__346: +__350: ; goto __8 @@ -114618,15 +114995,15 @@ __346: // Jump to P2 if the value in register P1 is NULL or has a datatype P3. // P3 is an integer which should be one of SQLITE_INTEGER, SQLITE_FLOAT, // SQLITE_BLOB, SQLITE_NULL, or SQLITE_TEXT. -__66: +__67: pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 doTheJump = libc.Bool32(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Null != 0 || Xsqlite3_value_type(tls, pIn1) == (*Op)(unsafe.Pointer(pOp)).Fp3) if !(doTheJump != 0) { - goto __347 + goto __351 } goto jump_to_p2 -__347: +__351: ; goto __8 @@ -114636,16 +115013,16 @@ __347: // If all both registers P1 and P3 are NOT NULL, then store a zero in // register P2. If either registers P1 or P3 are NULL then put // a NULL in register P2. -__67: // in1, in2, out2, in3 +__68: // in1, in2, out2, in3 if !(int32((*Mem)(unsafe.Pointer(aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56)).Fflags)&MEM_Null != 0 || int32((*Mem)(unsafe.Pointer(aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)).Fflags)&MEM_Null != 0) { - goto __348 + goto __352 } Xsqlite3VdbeMemSetNull(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56) - goto __349 -__348: + goto __353 +__352: Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56, int64(0)) -__349: +__353: ; goto __8 @@ -114653,14 +115030,14 @@ __349: // Synopsis: if r[P1]!=NULL goto P2 // // Jump to P2 if the value in register P1 is not NULL. -__68: // same as TK_NOTNULL, jump, in1 +__69: // same as TK_NOTNULL, jump, in1 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Null == 0) { - goto __350 + goto __354 } goto jump_to_p2 -__350: +__354: ; goto __8 @@ -114671,15 +115048,15 @@ __350: // If it is, then set register P3 to NULL and jump immediately to P2. // If P1 is not on a NULL row, then fall through without making any // changes. -__69: // jump +__70: // jump ; if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)))).FnullRow != 0) { - goto __351 + goto __355 } Xsqlite3VdbeMemSetNull(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56) goto jump_to_p2 -__351: +__355: ; goto __8 @@ -114697,43 +115074,43 @@ __351: // // This opcode is only available if SQLite is compiled with the // -DSQLITE_ENABLE_OFFSET_SQL_FUNC option. -__70: // The VDBE cursor +__71: // The VDBE cursor ; pC = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) pOut = (*Vdbe)(unsafe.Pointer(p)).FaMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 if !(pC == uintptr(0) || int32((*VdbeCursor)(unsafe.Pointer(pC)).FeCurType) != CURTYPE_BTREE) { - goto __352 + goto __356 } Xsqlite3VdbeMemSetNull(tls, pOut) - goto __353 -__352: + goto __357 +__356: if !((*VdbeCursor)(unsafe.Pointer(pC)).FdeferredMoveto != 0) { - goto __354 + goto __358 } rc = Xsqlite3VdbeFinishMoveto(tls, pC) if !(rc != 0) { - goto __355 + goto __359 } goto abort_due_to_error -__355: +__359: ; -__354: +__358: ; if !(Xsqlite3BtreeEof(tls, *(*uintptr)(unsafe.Pointer(pC + 48))) != 0) { - goto __356 + goto __360 } Xsqlite3VdbeMemSetNull(tls, pOut) - goto __357 -__356: + goto __361 +__360: Xsqlite3VdbeMemSetInt64(tls, pOut, Xsqlite3BtreeOffset(tls, *(*uintptr)(unsafe.Pointer(pC + 48)))) -__357: +__361: ; -__353: +__357: ; goto __8 // Opcode: Column P1 P2 P3 P4 P5 - // Synopsis: r[P3]=PX + // Synopsis: r[P3]=PX cursor P1 column P2 // // Interpret the data that cursor P1 points to as a structure built using // the MakeRecord instruction. (See the MakeRecord opcode for additional @@ -114751,87 +115128,108 @@ __353: // the result is guaranteed to only be used as the argument of a length() // or typeof() function, respectively. The loading of large blobs can be // skipped for length() and all content loading can be skipped for typeof(). -__71: // PseudoTable input register +__72: // PseudoTable input register ; - *(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)) = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) - *(*U32)(unsafe.Pointer(bp + 240 /* p22 */)) = U32((*Op)(unsafe.Pointer(pOp)).Fp2) + pC1 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) + p22 = U32((*Op)(unsafe.Pointer(pOp)).Fp2) - // If the cursor cache is stale (meaning it is not currently point at - // the correct row) then bring it up-to-date by doing the necessary - // B-Tree seek. - rc = Xsqlite3VdbeCursorMoveto(tls, bp+232, bp+240) - if !(rc != 0) { - goto __358 - } - goto abort_due_to_error -__358: +op_column_restart: ; - pDest = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 - - aOffset = (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FaOffset + aOffset = (*VdbeCursor)(unsafe.Pointer(pC1)).FaOffset - if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FcacheStatus != (*Vdbe)(unsafe.Pointer(p)).FcacheCtr) { - goto __359 + if !((*VdbeCursor)(unsafe.Pointer(pC1)).FcacheStatus != (*Vdbe)(unsafe.Pointer(p)).FcacheCtr) { + goto __362 } //OPTIMIZATION-IF-FALSE - if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FnullRow != 0) { - goto __360 + if !((*VdbeCursor)(unsafe.Pointer(pC1)).FnullRow != 0) { + goto __364 } - if !(int32((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FeCurType) == CURTYPE_PSEUDO) { - goto __362 + if !(int32((*VdbeCursor)(unsafe.Pointer(pC1)).FeCurType) == CURTYPE_PSEUDO && (*VdbeCursor)(unsafe.Pointer(pC1)).FseekResult > 0) { + goto __366 } // For the special case of as pseudo-cursor, the seekResult field // identifies the register that holds the record + pReg = aMem + uintptr((*VdbeCursor)(unsafe.Pointer(pC1)).FseekResult)*56 - pReg = aMem + uintptr((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FseekResult)*56 + (*VdbeCursor)(unsafe.Pointer(pC1)).FpayloadSize = libc.AssignPtrUint32(pC1+108, U32((*Mem)(unsafe.Pointer(pReg)).Fn)) + (*VdbeCursor)(unsafe.Pointer(pC1)).FaRow = (*Mem)(unsafe.Pointer(pReg)).Fz + goto __367 +__366: + pDest = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 - (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FpayloadSize = libc.AssignPtrUint32(*(*uintptr)(unsafe.Pointer(bp + 232))+108, U32((*Mem)(unsafe.Pointer(pReg)).Fn)) - (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FaRow = (*Mem)(unsafe.Pointer(pReg)).Fz - goto __363 -__362: Xsqlite3VdbeMemSetNull(tls, pDest) goto op_column_out -__363: +__367: + ; + goto __365 +__364: + pCrsr = *(*uintptr)(unsafe.Pointer(pC1 + 48)) + if !((*VdbeCursor)(unsafe.Pointer(pC1)).FdeferredMoveto != 0) { + goto __368 + } + + if !(*(*uintptr)(unsafe.Pointer(pC1 + 16)) != 0 && libc.AssignUint32(&iMap, *(*U32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pC1 + 16)) + uintptr(U32(1)+p22)*4))) > U32(0)) { + goto __370 + } + pC1 = (*VdbeCursor)(unsafe.Pointer(pC1)).FpAltCursor + p22 = iMap - U32(1) + goto op_column_restart +__370: + ; + rc = Xsqlite3VdbeFinishMoveto(tls, pC1) + if !(rc != 0) { + goto __371 + } + goto abort_due_to_error +__371: + ; + goto __369 +__368: + if !(Xsqlite3BtreeCursorHasMoved(tls, pCrsr) != 0) { + goto __372 + } + rc = Xsqlite3VdbeHandleMovedCursor(tls, pC1) + if !(rc != 0) { + goto __373 + } + goto abort_due_to_error +__373: + ; + goto op_column_restart +__372: + ; +__369: ; - goto __361 -__360: - pCrsr = *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 48)) - (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FpayloadSize = Xsqlite3BtreePayloadSize(tls, pCrsr) - (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FaRow = Xsqlite3BtreePayloadFetch(tls, pCrsr, *(*uintptr)(unsafe.Pointer(bp + 232))+108) + (*VdbeCursor)(unsafe.Pointer(pC1)).FpayloadSize = Xsqlite3BtreePayloadSize(tls, pCrsr) + (*VdbeCursor)(unsafe.Pointer(pC1)).FaRow = Xsqlite3BtreePayloadFetch(tls, pCrsr, pC1+108) // Maximum page size is 64KiB - if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FpayloadSize > U32(*(*int32)(unsafe.Pointer(db + 136)))) { - goto __364 - } - goto too_big -__364: +__365: ; -__361: + (*VdbeCursor)(unsafe.Pointer(pC1)).FcacheStatus = (*Vdbe)(unsafe.Pointer(p)).FcacheCtr + if !(libc.AssignPtrUint32(aOffset, U32(*(*U8)(unsafe.Pointer((*VdbeCursor)(unsafe.Pointer(pC1)).FaRow)))) < U32(0x80)) { + goto __374 + } + (*VdbeCursor)(unsafe.Pointer(pC1)).FiHdrOffset = U32(1) + goto __375 +__374: + (*VdbeCursor)(unsafe.Pointer(pC1)).FiHdrOffset = U32(Xsqlite3GetVarint32(tls, (*VdbeCursor)(unsafe.Pointer(pC1)).FaRow, aOffset)) +__375: ; - (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FcacheStatus = (*Vdbe)(unsafe.Pointer(p)).FcacheCtr - (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FiHdrOffset = U32(func() uint8 { - if int32(*(*U8)(unsafe.Pointer((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow))) < int32(U8(0x80)) { - return uint8(func() int32 { - *(*U32)(unsafe.Pointer(aOffset)) = U32(*(*U8)(unsafe.Pointer((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow))) - return 1 - }()) - } - return Xsqlite3GetVarint32(tls, (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow, aOffset) - }()) - (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FnHdrParsed = U16(0) + (*VdbeCursor)(unsafe.Pointer(pC1)).FnHdrParsed = U16(0) - if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FszRow < *(*U32)(unsafe.Pointer(aOffset))) { - goto __365 + if !((*VdbeCursor)(unsafe.Pointer(pC1)).FszRow < *(*U32)(unsafe.Pointer(aOffset))) { + goto __376 } //OPTIMIZATION-IF-FALSE // pC->aRow does not have to hold the entire row, but it does at least // need to cover the header of the record. If pC->aRow does not contain // the complete header, then set it to zero, forcing the header to be // dynamically allocated. - (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FaRow = uintptr(0) - (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FszRow = U32(0) + (*VdbeCursor)(unsafe.Pointer(pC1)).FaRow = uintptr(0) + (*VdbeCursor)(unsafe.Pointer(pC1)).FszRow = U32(0) // Make sure a corrupt database has not given us an oversize header. // Do this now to avoid an oversize memory allocation. @@ -114841,14 +115239,14 @@ __361: // them, respectively. So the maximum header length results from a // 3-byte type for each of the maximum of 32768 columns plus three // extra bytes for the header length itself. 32768*3 + 3 = 98307. - if !(*(*U32)(unsafe.Pointer(aOffset)) > U32(98307) || *(*U32)(unsafe.Pointer(aOffset)) > (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FpayloadSize) { - goto __367 + if !(*(*U32)(unsafe.Pointer(aOffset)) > U32(98307) || *(*U32)(unsafe.Pointer(aOffset)) > (*VdbeCursor)(unsafe.Pointer(pC1)).FpayloadSize) { + goto __378 } goto op_column_corrupt -__367: +__378: ; - goto __366 -__365: + goto __377 +__376: // This is an optimization. By skipping over the first few tests // (ex: pC->nHdrParsed<=p2) in the next section, we achieve a // measurable performance gain. @@ -114861,193 +115259,218 @@ __365: // content area, the "page header" comes after the page content and so // this overread is harmless. Similar overreads can occur for a corrupt // database file. - zData = (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FaRow + zData = (*VdbeCursor)(unsafe.Pointer(pC1)).FaRow // Conditional skipped goto op_column_read_header -__366: +__377: ; -__359: + goto __363 +__362: + if !(Xsqlite3BtreeCursorHasMoved(tls, *(*uintptr)(unsafe.Pointer(pC1 + 48))) != 0) { + goto __379 + } + rc = Xsqlite3VdbeHandleMovedCursor(tls, pC1) + if !(rc != 0) { + goto __380 + } + goto abort_due_to_error +__380: + ; + goto op_column_restart +__379: + ; +__363: ; // Make sure at least the first p2+1 entries of the header have been // parsed and valid information is in aOffset[] and pC->aType[]. - if !(U32((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FnHdrParsed) <= *(*U32)(unsafe.Pointer(bp + 240))) { - goto __368 + if !(U32((*VdbeCursor)(unsafe.Pointer(pC1)).FnHdrParsed) <= p22) { + goto __381 } // If there is more header available for parsing in the record, try // to extract additional fields up through the p2+1-th field - if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FiHdrOffset < *(*U32)(unsafe.Pointer(aOffset))) { - goto __370 + if !((*VdbeCursor)(unsafe.Pointer(pC1)).FiHdrOffset < *(*U32)(unsafe.Pointer(aOffset))) { + goto __383 } // Make sure zData points to enough of the record to cover the header. - if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow == uintptr(0)) { - goto __372 + if !((*VdbeCursor)(unsafe.Pointer(pC1)).FaRow == uintptr(0)) { + goto __385 } - libc.Xmemset(tls, bp+248, 0, uint64(unsafe.Sizeof(Mem{}))) - rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 48)), *(*U32)(unsafe.Pointer(aOffset)), bp+248) + libc.Xmemset(tls, bp+232, 0, uint64(unsafe.Sizeof(Mem{}))) + rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, *(*uintptr)(unsafe.Pointer(pC1 + 48)), *(*U32)(unsafe.Pointer(aOffset)), bp+232) if !(rc != SQLITE_OK) { - goto __374 + goto __387 } goto abort_due_to_error -__374: +__387: ; - zData = (*Mem)(unsafe.Pointer(bp + 248 /* &sMem */)).Fz - goto __373 -__372: - zData = (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FaRow -__373: + zData = (*Mem)(unsafe.Pointer(bp + 232 /* &sMem */)).Fz + goto __386 +__385: + zData = (*VdbeCursor)(unsafe.Pointer(pC1)).FaRow +__386: ; // Fill in pC->aType[i] and aOffset[i] values through the p2-th field. op_column_read_header: - i2 = int32((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FnHdrParsed) - offset64 = U64(*(*U32)(unsafe.Pointer(aOffset + uintptr(i2)*4))) - zHdr = zData + uintptr((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FiHdrOffset) + i1 = int32((*VdbeCursor)(unsafe.Pointer(pC1)).FnHdrParsed) + offset64 = U64(*(*U32)(unsafe.Pointer(aOffset + uintptr(i1)*4))) + zHdr = zData + uintptr((*VdbeCursor)(unsafe.Pointer(pC1)).FiHdrOffset) zEndHdr = zData + uintptr(*(*U32)(unsafe.Pointer(aOffset))) -__375: - if !(libc.AssignPtrUint32(*(*uintptr)(unsafe.Pointer(bp + 232))+112+uintptr(i2)*4, libc.AssignPtrUint32(bp+304, U32(*(*U8)(unsafe.Pointer(zHdr))))) < U32(0x80)) { - goto __378 +__388: + if !(libc.AssignPtrUint32(pC1+112+uintptr(i1)*4, libc.AssignPtrUint32(bp+288, U32(*(*U8)(unsafe.Pointer(zHdr))))) < U32(0x80)) { + goto __391 } zHdr++ - offset64 = offset64 + U64(Xsqlite3VdbeOneByteSerialTypeLen(tls, uint8(*(*U32)(unsafe.Pointer(bp + 304))))) - goto __379 -__378: - zHdr += uintptr(Xsqlite3GetVarint32(tls, zHdr, bp+304)) - *(*U32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 112 + uintptr(i2)*4)) = *(*U32)(unsafe.Pointer(bp + 304 /* t */)) - offset64 = offset64 + U64(Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp + 304)))) -__379: + offset64 = offset64 + U64(Xsqlite3VdbeOneByteSerialTypeLen(tls, uint8(*(*U32)(unsafe.Pointer(bp + 288))))) + goto __392 +__391: + zHdr += uintptr(Xsqlite3GetVarint32(tls, zHdr, bp+288)) + *(*U32)(unsafe.Pointer(pC1 + 112 + uintptr(i1)*4)) = *(*U32)(unsafe.Pointer(bp + 288 /* t */)) + offset64 = offset64 + U64(Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp + 288)))) +__392: ; - *(*U32)(unsafe.Pointer(aOffset + uintptr(libc.PreIncInt32(&i2, 1))*4)) = U32(offset64 & uint64(0xffffffff)) - goto __376 -__376: - if U32(i2) <= *(*U32)(unsafe.Pointer(bp + 240)) && zHdr < zEndHdr { - goto __375 + *(*U32)(unsafe.Pointer(aOffset + uintptr(libc.PreIncInt32(&i1, 1))*4)) = U32(offset64 & uint64(0xffffffff)) + goto __389 +__389: + if U32(i1) <= p22 && zHdr < zEndHdr { + goto __388 } - goto __377 -__377: + goto __390 +__390: ; // The record is corrupt if any of the following are true: // (1) the bytes of the header extend past the declared header size // (2) the entire header was used but not all data was used // (3) the end of the data extends beyond the end of the record. - if !(zHdr >= zEndHdr && (zHdr > zEndHdr || offset64 != U64((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FpayloadSize)) || - offset64 > U64((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FpayloadSize)) { - goto __380 + if !(zHdr >= zEndHdr && (zHdr > zEndHdr || offset64 != U64((*VdbeCursor)(unsafe.Pointer(pC1)).FpayloadSize)) || + offset64 > U64((*VdbeCursor)(unsafe.Pointer(pC1)).FpayloadSize)) { + goto __393 } if !(*(*U32)(unsafe.Pointer(aOffset)) == U32(0)) { - goto __381 + goto __394 } - i2 = 0 + i1 = 0 zHdr = zEndHdr - goto __382 -__381: - if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow == uintptr(0)) { - goto __383 + goto __395 +__394: + if !((*VdbeCursor)(unsafe.Pointer(pC1)).FaRow == uintptr(0)) { + goto __396 } - Xsqlite3VdbeMemRelease(tls, bp+248) -__383: + Xsqlite3VdbeMemRelease(tls, bp+232) +__396: ; goto op_column_corrupt -__382: +__395: ; -__380: +__393: ; - (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FnHdrParsed = U16(i2) - (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232 /* pC1 */)))).FiHdrOffset = U32((int64(zHdr) - int64(zData)) / 1) - if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow == uintptr(0)) { - goto __384 + (*VdbeCursor)(unsafe.Pointer(pC1)).FnHdrParsed = U16(i1) + (*VdbeCursor)(unsafe.Pointer(pC1)).FiHdrOffset = U32((int64(zHdr) - int64(zData)) / 1) + if !((*VdbeCursor)(unsafe.Pointer(pC1)).FaRow == uintptr(0)) { + goto __397 } - Xsqlite3VdbeMemRelease(tls, bp+248) -__384: + Xsqlite3VdbeMemRelease(tls, bp+232) +__397: ; - goto __371 -__370: - *(*U32)(unsafe.Pointer(bp + 304 /* t */)) = U32(0) -__371: + goto __384 +__383: + *(*U32)(unsafe.Pointer(bp + 288 /* t */)) = U32(0) +__384: ; // If after trying to extract new entries from the header, nHdrParsed is // still not up to p2, that means that the record has fewer than p2 // columns. So the result will be either the default value or a NULL. - if !(U32((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FnHdrParsed) <= *(*U32)(unsafe.Pointer(bp + 240))) { - goto __385 + if !(U32((*VdbeCursor)(unsafe.Pointer(pC1)).FnHdrParsed) <= p22) { + goto __398 } - if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -11) { - goto __386 + pDest = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 + + if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -10) { + goto __399 } Xsqlite3VdbeMemShallowCopy(tls, pDest, *(*uintptr)(unsafe.Pointer(pOp + 16)), MEM_Static) - goto __387 -__386: + goto __400 +__399: Xsqlite3VdbeMemSetNull(tls, pDest) -__387: +__400: ; goto op_column_out -__385: +__398: ; - goto __369 -__368: - *(*U32)(unsafe.Pointer(bp + 304 /* t */)) = *(*U32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 112 + uintptr(*(*U32)(unsafe.Pointer(bp + 240 /* p22 */)))*4)) -__369: + goto __382 +__381: + *(*U32)(unsafe.Pointer(bp + 288 /* t */)) = *(*U32)(unsafe.Pointer(pC1 + 112 + uintptr(p22)*4)) +__382: ; // Extract the content for the p2+1-th column. Control can only // reach this point if aOffset[p2], aOffset[p2+1], and pC->aType[p2] are // all valid. + pDest = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 + if !(int32((*Mem)(unsafe.Pointer(pDest)).Fflags)&(MEM_Agg|MEM_Dyn) != 0) { - goto __388 + goto __401 } Xsqlite3VdbeMemSetNull(tls, pDest) -__388: +__401: ; - if !((*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FszRow >= *(*U32)(unsafe.Pointer(aOffset + uintptr(*(*U32)(unsafe.Pointer(bp + 240))+U32(1))*4))) { - goto __389 + if !((*VdbeCursor)(unsafe.Pointer(pC1)).FszRow >= *(*U32)(unsafe.Pointer(aOffset + uintptr(p22+U32(1))*4))) { + goto __402 } // This is the common case where the desired content fits on the original // page - where the content is not on an overflow page - zData = (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)))).FaRow + uintptr(*(*U32)(unsafe.Pointer(aOffset + uintptr(*(*U32)(unsafe.Pointer(bp + 240)))*4))) - if !(*(*U32)(unsafe.Pointer(bp + 304)) < U32(12)) { - goto __391 + zData = (*VdbeCursor)(unsafe.Pointer(pC1)).FaRow + uintptr(*(*U32)(unsafe.Pointer(aOffset + uintptr(p22)*4))) + if !(*(*U32)(unsafe.Pointer(bp + 288)) < U32(12)) { + goto __404 } - Xsqlite3VdbeSerialGet(tls, zData, *(*U32)(unsafe.Pointer(bp + 304 /* t */)), pDest) - goto __392 -__391: - (*Mem)(unsafe.Pointer(pDest)).Fn = libc.AssignInt32(&len, int32((*(*U32)(unsafe.Pointer(bp + 304))-U32(12))/U32(2))) + Xsqlite3VdbeSerialGet(tls, zData, *(*U32)(unsafe.Pointer(bp + 288 /* t */)), pDest) + goto __405 +__404: + (*Mem)(unsafe.Pointer(pDest)).Fn = libc.AssignInt32(&len, int32((*(*U32)(unsafe.Pointer(bp + 288))-U32(12))/U32(2))) (*Mem)(unsafe.Pointer(pDest)).Fenc = encoding if !((*Mem)(unsafe.Pointer(pDest)).FszMalloc < len+2) { - goto __393 + goto __406 + } + if !(len > *(*int32)(unsafe.Pointer(db + 136))) { + goto __408 } + goto too_big +__408: + ; (*Mem)(unsafe.Pointer(pDest)).Fflags = U16(MEM_Null) if !(Xsqlite3VdbeMemGrow(tls, pDest, len+2, 0) != 0) { - goto __395 + goto __409 } goto no_mem -__395: +__409: ; - goto __394 -__393: + goto __407 +__406: (*Mem)(unsafe.Pointer(pDest)).Fz = (*Mem)(unsafe.Pointer(pDest)).FzMalloc -__394: +__407: ; libc.Xmemcpy(tls, (*Mem)(unsafe.Pointer(pDest)).Fz, zData, uint64(len)) *(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pDest)).Fz + uintptr(len))) = int8(0) *(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pDest)).Fz + uintptr(len+1))) = int8(0) - (*Mem)(unsafe.Pointer(pDest)).Fflags = aFlag1[*(*U32)(unsafe.Pointer(bp + 304))&U32(1)] -__392: + (*Mem)(unsafe.Pointer(pDest)).Fflags = aFlag1[*(*U32)(unsafe.Pointer(bp + 288))&U32(1)] +__405: ; - goto __390 -__389: + goto __403 +__402: (*Mem)(unsafe.Pointer(pDest)).Fenc = encoding // This branch happens only when content is on overflow pages if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&(OPFLAG_LENGTHARG|OPFLAG_TYPEOFARG) != 0 && - (*(*U32)(unsafe.Pointer(bp + 304)) >= U32(12) && *(*U32)(unsafe.Pointer(bp + 304))&U32(1) == U32(0) || int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_TYPEOFARG != 0) || - libc.AssignInt32(&len, int32(Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp + 304))))) == 0) { - goto __396 + (*(*U32)(unsafe.Pointer(bp + 288)) >= U32(12) && *(*U32)(unsafe.Pointer(bp + 288))&U32(1) == U32(0) || int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_TYPEOFARG != 0) || + libc.AssignInt32(&len, int32(Xsqlite3VdbeSerialTypeLen(tls, *(*U32)(unsafe.Pointer(bp + 288))))) == 0) { + goto __410 } // Content is irrelevant for // 1. the typeof() function, @@ -115061,21 +115484,27 @@ __389: // read more. Use the global constant sqlite3CtypeMap[] as the array, // as that array is 256 bytes long (plenty for VdbeMemPrettyPrint()) // and it begins with a bunch of zeros. - Xsqlite3VdbeSerialGet(tls, uintptr(uintptr(unsafe.Pointer(&Xsqlite3CtypeMap))), *(*U32)(unsafe.Pointer(bp + 304 /* t */)), pDest) - goto __397 -__396: - rc = Xsqlite3VdbeMemFromBtree(tls, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 232)) + 48)), *(*U32)(unsafe.Pointer(aOffset + uintptr(*(*U32)(unsafe.Pointer(bp + 240 /* p22 */)))*4)), uint32(len), pDest) + Xsqlite3VdbeSerialGet(tls, uintptr(uintptr(unsafe.Pointer(&Xsqlite3CtypeMap))), *(*U32)(unsafe.Pointer(bp + 288 /* t */)), pDest) + goto __411 +__410: + if !(len > *(*int32)(unsafe.Pointer(db + 136))) { + goto __412 + } + goto too_big +__412: + ; + rc = Xsqlite3VdbeMemFromBtree(tls, *(*uintptr)(unsafe.Pointer(pC1 + 48)), *(*U32)(unsafe.Pointer(aOffset + uintptr(p22)*4)), uint32(len), pDest) if !(rc != SQLITE_OK) { - goto __398 + goto __413 } goto abort_due_to_error -__398: +__413: ; - Xsqlite3VdbeSerialGet(tls, (*Mem)(unsafe.Pointer(pDest)).Fz, *(*U32)(unsafe.Pointer(bp + 304 /* t */)), pDest) - *(*U16)(unsafe.Pointer(pDest + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Ephem)) -__397: + Xsqlite3VdbeSerialGet(tls, (*Mem)(unsafe.Pointer(pDest)).Fz, *(*U32)(unsafe.Pointer(bp + 288 /* t */)), pDest) + *(*U16)(unsafe.Pointer(pDest + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Ephem)) +__411: ; -__390: +__403: ; op_column_out: @@ -115085,15 +115514,15 @@ op_column_out: op_column_corrupt: if !((*Op)(unsafe.Pointer(aOp)).Fp3 > 0) { - goto __399 + goto __414 } pOp = aOp + uintptr((*Op)(unsafe.Pointer(aOp)).Fp3-1)*24 goto __8 - goto __400 -__399: - rc = Xsqlite3CorruptError(tls, 90333) + goto __415 +__414: + rc = Xsqlite3CorruptError(tls, 91298) goto abort_due_to_error -__400: +__415: ; // Opcode: TypeCheck P1 P2 P3 P4 * @@ -115116,93 +115545,95 @@ __400: // // <ul> // <li> P2 should be the number of non-virtual columns in the - // table of P4. + // + // table of P4. + // // <li> Table P4 should be a STRICT table. // </ul> // // If any precondition is false, an assertion fault occurs. -__72: +__73: ; pTab = *(*uintptr)(unsafe.Pointer(pOp + 16)) aCol = (*Table)(unsafe.Pointer(pTab)).FaCol pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 - i3 = 0 -__401: - if !(i3 < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) { - goto __403 + i2 = 0 +__416: + if !(i2 < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) { + goto __418 } - if !(int32((*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).FcolFlags)&COLFLAG_GENERATED != 0) { - goto __404 + if !(int32((*Column)(unsafe.Pointer(aCol+uintptr(i2)*24)).FcolFlags)&COLFLAG_GENERATED != 0) { + goto __419 } - if !(int32((*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).FcolFlags)&COLFLAG_VIRTUAL != 0) { - goto __405 + if !(int32((*Column)(unsafe.Pointer(aCol+uintptr(i2)*24)).FcolFlags)&COLFLAG_VIRTUAL != 0) { + goto __420 } - goto __402 -__405: + goto __417 +__420: ; if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) { - goto __406 + goto __421 } pIn1 += 56 - goto __402 -__406: + goto __417 +__421: ; -__404: +__419: ; - applyAffinity(tls, pIn1, (*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).Faffinity, encoding) + applyAffinity(tls, pIn1, (*Column)(unsafe.Pointer(aCol+uintptr(i2)*24)).Faffinity, encoding) if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Null == 0) { - goto __407 + goto __422 } - switch int32(*(*uint8)(unsafe.Pointer(aCol + uintptr(i3)*24 + 8)) & 0xf0 >> 4) { + switch int32(*(*uint8)(unsafe.Pointer(aCol + uintptr(i2)*24 + 8)) & 0xf0 >> 4) { case COLTYPE_BLOB: - goto __409 + goto __424 case COLTYPE_INTEGER: - goto __410 + goto __425 case COLTYPE_INT: - goto __411 + goto __426 case COLTYPE_TEXT: - goto __412 + goto __427 case COLTYPE_REAL: - goto __413 + goto __428 default: - goto __414 + goto __429 } - goto __408 -__409: + goto __423 +__424: if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Blob == 0) { - goto __415 + goto __430 } goto vdbe_type_error -__415: +__430: ; - goto __408 + goto __423 -__410: -__411: +__425: +__426: if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int == 0) { - goto __416 + goto __431 } goto vdbe_type_error -__416: +__431: ; - goto __408 + goto __423 -__412: +__427: if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Str == 0) { - goto __417 + goto __432 } goto vdbe_type_error -__417: +__432: ; - goto __408 + goto __423 -__413: +__428: ; if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int != 0) { - goto __418 + goto __433 } // When applying REAL affinity, if the result is still an MEM_Int // that will fit in 6 bytes, then change the type to MEM_IntReal @@ -115210,53 +115641,53 @@ __413: // the type really wants to be REAL. if !(*(*I64)(unsafe.Pointer(pIn1)) <= 140737488355327 && *(*I64)(unsafe.Pointer(pIn1)) >= -140737488355328) { - goto __420 + goto __435 } - *(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_IntReal) - *(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) - goto __421 -__420: + *(*U16)(unsafe.Pointer(pIn1 + 20)) |= U16(MEM_IntReal) + *(*U16)(unsafe.Pointer(pIn1 + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) + goto __436 +__435: *(*float64)(unsafe.Pointer(pIn1)) = float64(*(*I64)(unsafe.Pointer(pIn1))) - *(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_Real) - *(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) -__421: + *(*U16)(unsafe.Pointer(pIn1 + 20)) |= U16(MEM_Real) + *(*U16)(unsafe.Pointer(pIn1 + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) +__436: ; - goto __419 -__418: + goto __434 +__433: if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&(MEM_Real|MEM_IntReal) == 0) { - goto __422 + goto __437 } goto vdbe_type_error -__422: +__437: ; -__419: +__434: ; - goto __408 + goto __423 -__414: +__429: // COLTYPE_ANY. Accept anything. - goto __408 + goto __423 -__408: +__423: ; -__407: +__422: ; pIn1 += 56 - goto __402 -__402: - i3++ - goto __401 - goto __403 -__403: + goto __417 +__417: + i2++ + goto __416 + goto __418 +__418: ; goto __8 vdbe_type_error: - Xsqlite3VdbeError(tls, p, ts+6796, - libc.VaList(bp+56, vdbeMemTypeName(tls, pIn1), Xsqlite3StdType[(int32(*(*uint8)(unsafe.Pointer(aCol + uintptr(i3)*24 + 8))&0xf0>>4)-1)&0xf<<28>>28], - (*Table)(unsafe.Pointer(pTab)).FzName, (*Column)(unsafe.Pointer(aCol+uintptr(i3)*24)).FzCnName)) + Xsqlite3VdbeError(tls, p, ts+6831, + libc.VaList(bp+56, vdbeMemTypeName(tls, pIn1), Xsqlite3StdType[(int32(*(*uint8)(unsafe.Pointer(aCol + uintptr(i2)*24 + 8))&0xf0>>4)-1)&0xf<<28>>28], + (*Table)(unsafe.Pointer(pTab)).FzName, (*Column)(unsafe.Pointer(aCol+uintptr(i2)*24)).FzCnName)) rc = SQLITE_CONSTRAINT | int32(12)<<8 goto abort_due_to_error @@ -115268,19 +115699,19 @@ vdbe_type_error: // P4 is a string that is P2 characters long. The N-th character of the // string indicates the column affinity that should be used for the N-th // memory cell in the range. -__73: // The affinity to be applied +__74: // The affinity to be applied zAffinity = *(*uintptr)(unsafe.Pointer(pOp + 16)) pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 -__423: +__438: if !(1 != 0) { - goto __424 + goto __439 } applyAffinity(tls, pIn1, *(*int8)(unsafe.Pointer(zAffinity)), encoding) if !(int32(*(*int8)(unsafe.Pointer(zAffinity))) == SQLITE_AFF_REAL && int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Int != 0) { - goto __425 + goto __440 } // When applying REAL affinity, if the result is still an MEM_Int // that will fit in 6 bytes, then change the type to MEM_IntReal @@ -115288,30 +115719,30 @@ __423: // the type really wants to be REAL. if !(*(*I64)(unsafe.Pointer(pIn1)) <= 140737488355327 && *(*I64)(unsafe.Pointer(pIn1)) >= -140737488355328) { - goto __426 + goto __441 } - *(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_IntReal) - *(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) - goto __427 -__426: + *(*U16)(unsafe.Pointer(pIn1 + 20)) |= U16(MEM_IntReal) + *(*U16)(unsafe.Pointer(pIn1 + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) + goto __442 +__441: *(*float64)(unsafe.Pointer(pIn1)) = float64(*(*I64)(unsafe.Pointer(pIn1))) - *(*U16)(unsafe.Pointer(pIn1 + 8)) |= U16(MEM_Real) - *(*U16)(unsafe.Pointer(pIn1 + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) -__427: + *(*U16)(unsafe.Pointer(pIn1 + 20)) |= U16(MEM_Real) + *(*U16)(unsafe.Pointer(pIn1 + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) +__442: ; -__425: +__440: ; zAffinity++ if !(int32(*(*int8)(unsafe.Pointer(zAffinity))) == 0) { - goto __428 + goto __443 } - goto __424 -__428: + goto __439 +__443: ; pIn1 += 56 - goto __423 -__424: + goto __438 +__439: ; goto __8 @@ -115334,14 +115765,14 @@ __424: // The meaning of P5 depends on whether or not the SQLITE_ENABLE_NULL_TRIM // compile-time option is enabled: // - // * If SQLITE_ENABLE_NULL_TRIM is enabled, then the P5 is the index + // - If SQLITE_ENABLE_NULL_TRIM is enabled, then the P5 is the index // of the right-most table that can be null-trimmed. // - // * If SQLITE_ENABLE_NULL_TRIM is omitted, then P5 has the value + // - If SQLITE_ENABLE_NULL_TRIM is omitted, then P5 has the value // OPFLAG_NOCHNG_MAGIC if the OP_MakeRecord opcode is allowed to // accept no-change records with serial_type 10. This value is // only used inside an assert() and does not affect the end result. -__74: // Where to write next byte of the payload +__75: // Where to write next byte of the payload // Assuming the record contains N fields, the record format looks // like this: @@ -115366,7 +115797,6 @@ __74: // Where to write next byte of the payload pData0 = aMem + uintptr(nField)*56 nField = (*Op)(unsafe.Pointer(pOp)).Fp2 pLast = pData0 + uintptr(nField-1)*56 - file_format = int32((*Vdbe)(unsafe.Pointer(p)).FminWriteFileFormat) // Identify the output register @@ -115375,31 +115805,31 @@ __74: // Where to write next byte of the payload // Apply the requested affinity to all inputs if !(zAffinity1 != 0) { - goto __429 + goto __444 } pRec = pData0 -__430: +__445: applyAffinity(tls, pRec, *(*int8)(unsafe.Pointer(zAffinity1)), encoding) if !(int32(*(*int8)(unsafe.Pointer(zAffinity1))) == SQLITE_AFF_REAL && int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Int != 0) { - goto __433 + goto __448 } - *(*U16)(unsafe.Pointer(pRec + 8)) |= U16(MEM_IntReal) - *(*U16)(unsafe.Pointer(pRec + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) -__433: + *(*U16)(unsafe.Pointer(pRec + 20)) |= U16(MEM_IntReal) + *(*U16)(unsafe.Pointer(pRec + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Int)) +__448: ; zAffinity1++ pRec += 56 - goto __431 -__431: + goto __446 +__446: if *(*int8)(unsafe.Pointer(zAffinity1)) != 0 { - goto __430 + goto __445 } - goto __432 -__432: + goto __447 +__447: ; -__429: +__444: ; // Loop through the elements that will make up the record to figure @@ -115428,13 +115858,13 @@ __429: // nData Number of bytes of data space needed for the record // nZero Zero bytes at the end of the record pRec = pLast -__434: +__449: ; if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Null != 0) { - goto __437 + goto __452 } if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Zero != 0) { - goto __439 + goto __454 } // Values with MEM_Null and MEM_Zero are created by xColumn virtual // table methods that never invoke sqlite3_result_xxxxx() while @@ -115444,158 +115874,158 @@ __434: // a true sqlite3_value_nochange(). (*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(10) - goto __440 -__439: + goto __455 +__454: (*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(0) -__440: +__455: ; nHdr++ - goto __438 -__437: + goto __453 +__452: if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&(MEM_Int|MEM_IntReal) != 0) { - goto __441 + goto __456 } // Figure out whether to use 1, 2, 4, 6 or 8 bytes. - i4 = *(*I64)(unsafe.Pointer(pRec)) + i3 = *(*I64)(unsafe.Pointer(pRec)) - if !(i4 < int64(0)) { - goto __443 + if !(i3 < int64(0)) { + goto __458 } - uu = U64(^i4) - goto __444 -__443: - uu = U64(i4) -__444: + uu = U64(^i3) + goto __459 +__458: + uu = U64(i3) +__459: ; nHdr++ if !(uu <= uint64(127)) { - goto __445 + goto __460 } - if !(i4&int64(1) == i4 && file_format >= 4) { - goto __447 + if !(i3&int64(1) == i3 && int32((*Vdbe)(unsafe.Pointer(p)).FminWriteFileFormat) >= 4) { + goto __462 } (*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(8) + U32(uu) - goto __448 -__447: + goto __463 +__462: nData++ (*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(1) -__448: +__463: ; - goto __446 -__445: + goto __461 +__460: if !(uu <= uint64(32767)) { - goto __449 + goto __464 } nData = nData + uint64(2) (*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(2) - goto __450 -__449: + goto __465 +__464: if !(uu <= uint64(8388607)) { - goto __451 + goto __466 } nData = nData + uint64(3) (*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(3) - goto __452 -__451: + goto __467 +__466: if !(uu <= uint64(2147483647)) { - goto __453 + goto __468 } nData = nData + uint64(4) (*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(4) - goto __454 -__453: + goto __469 +__468: if !(uu <= uint64(140737488355327)) { - goto __455 + goto __470 } nData = nData + uint64(6) (*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(5) - goto __456 -__455: + goto __471 +__470: nData = nData + uint64(8) if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_IntReal != 0) { - goto __457 + goto __472 } // If the value is IntReal and is going to take up 8 bytes to store // as an integer, then we might as well make it an 8-byte floating // point value *(*float64)(unsafe.Pointer(pRec)) = float64(*(*I64)(unsafe.Pointer(pRec))) - *(*U16)(unsafe.Pointer(pRec + 8)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_IntReal)) - *(*U16)(unsafe.Pointer(pRec + 8)) |= U16(MEM_Real) + *(*U16)(unsafe.Pointer(pRec + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_IntReal)) + *(*U16)(unsafe.Pointer(pRec + 20)) |= U16(MEM_Real) (*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(7) - goto __458 -__457: + goto __473 +__472: (*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(6) -__458: +__473: ; -__456: +__471: ; -__454: +__469: ; -__452: +__467: ; -__450: +__465: ; -__446: +__461: ; - goto __442 -__441: + goto __457 +__456: if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Real != 0) { - goto __459 + goto __474 } nHdr++ nData = nData + uint64(8) (*Mem)(unsafe.Pointer(pRec)).FuTemp = U32(7) - goto __460 -__459: + goto __475 +__474: ; len1 = U32((*Mem)(unsafe.Pointer(pRec)).Fn) serial_type = len1*U32(2) + U32(12) + U32(libc.Bool32(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Str != 0)) if !(int32((*Mem)(unsafe.Pointer(pRec)).Fflags)&MEM_Zero != 0) { - goto __461 + goto __476 } serial_type = serial_type + U32(*(*int32)(unsafe.Pointer(pRec))*2) if !(nData != 0) { - goto __462 + goto __477 } if !(Xsqlite3VdbeMemExpandBlob(tls, pRec) != 0) { - goto __464 + goto __479 } goto no_mem -__464: +__479: ; len1 = len1 + U32(*(*int32)(unsafe.Pointer(pRec))) - goto __463 -__462: + goto __478 +__477: nZero = nZero + I64(*(*int32)(unsafe.Pointer(pRec))) -__463: +__478: ; -__461: +__476: ; nData = nData + U64(len1) nHdr = nHdr + Xsqlite3VarintLen(tls, uint64(serial_type)) (*Mem)(unsafe.Pointer(pRec)).FuTemp = serial_type -__460: +__475: ; -__442: +__457: ; -__438: +__453: ; if !(pRec == pData0) { - goto __465 + goto __480 } - goto __436 -__465: + goto __451 +__480: ; pRec -= 56 - goto __435 -__435: + goto __450 +__450: if 1 != 0 { - goto __434 + goto __449 } - goto __436 -__436: + goto __451 +__451: ; // EVIDENCE-OF: R-22564-11647 The header begins with a single varint @@ -115604,22 +116034,22 @@ __436: // itself. if !(nHdr <= 126) { - goto __466 + goto __481 } // The common case nHdr = nHdr + 1 - goto __467 -__466: + goto __482 +__481: // Rare case of a really large header nVarint = Xsqlite3VarintLen(tls, uint64(nHdr)) nHdr = nHdr + nVarint if !(nVarint < Xsqlite3VarintLen(tls, uint64(nHdr))) { - goto __468 + goto __483 } nHdr++ -__468: +__483: ; -__467: +__482: ; nByte1 = I64(U64(nHdr) + nData) @@ -115628,71 +116058,142 @@ __467: // be one of the input registers (because the following call to // sqlite3VdbeMemClearAndResize() could clobber the value before it is used). if !(nByte1+nZero <= I64((*Mem)(unsafe.Pointer(pOut)).FszMalloc)) { - goto __469 + goto __484 } // The output register is already large enough to hold the record. // No error checks or buffer enlargement is required (*Mem)(unsafe.Pointer(pOut)).Fz = (*Mem)(unsafe.Pointer(pOut)).FzMalloc - goto __470 -__469: + goto __485 +__484: // Need to make sure that the output is not too big and then enlarge // the output register to hold the full result if !(nByte1+nZero > I64(*(*int32)(unsafe.Pointer(db + 136)))) { - goto __471 + goto __486 } goto too_big -__471: +__486: ; if !(Xsqlite3VdbeMemClearAndResize(tls, pOut, int32(nByte1)) != 0) { - goto __472 + goto __487 } goto no_mem -__472: +__487: ; -__470: +__485: ; (*Mem)(unsafe.Pointer(pOut)).Fn = int32(nByte1) (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Blob) if !(nZero != 0) { - goto __473 + goto __488 } *(*int32)(unsafe.Pointer(pOut)) = int32(nZero) - *(*U16)(unsafe.Pointer(pOut + 8)) |= U16(MEM_Zero) -__473: + *(*U16)(unsafe.Pointer(pOut + 20)) |= U16(MEM_Zero) +__488: ; zHdr1 = (*Mem)(unsafe.Pointer(pOut)).Fz zPayload = zHdr1 + uintptr(nHdr) // Write the record - zHdr1 += uintptr(func() uint8 { - if U32(nHdr) < U32(0x80) { - return uint8(func() int32 { *(*U8)(unsafe.Pointer(zHdr1)) = uint8(nHdr); return 1 }()) - } - return uint8(Xsqlite3PutVarint(tls, zHdr1, uint64(nHdr))) - }()) + if !(nHdr < 0x80) { + goto __489 + } + *(*U8)(unsafe.Pointer(libc.PostIncUintptr(&zHdr1, 1))) = U8(nHdr) + goto __490 +__489: + zHdr1 += uintptr(Xsqlite3PutVarint(tls, zHdr1, uint64(nHdr))) +__490: + ; pRec = pData0 -__474: +__491: + if !(1 != 0) { + goto __492 + } serial_type = (*Mem)(unsafe.Pointer(pRec)).FuTemp // EVIDENCE-OF: R-06529-47362 Following the size varint are one or more // additional varints, one per column. - zHdr1 += uintptr(func() uint8 { - if serial_type < U32(0x80) { - return uint8(func() int32 { *(*U8)(unsafe.Pointer(zHdr1)) = uint8(serial_type); return 1 }()) - } - return uint8(Xsqlite3PutVarint(tls, zHdr1, uint64(serial_type))) - }()) // serial type // EVIDENCE-OF: R-64536-51728 The values for each column in the record // immediately follow the header. - zPayload += uintptr(Xsqlite3VdbeSerialPut(tls, zPayload, pRec, serial_type)) // content - goto __475 -__475: - if libc.PreIncUintptr(&pRec, 56) <= pLast { - goto __474 + if !(serial_type <= U32(7)) { + goto __493 } - goto __476 -__476: + *(*U8)(unsafe.Pointer(libc.PostIncUintptr(&zHdr1, 1))) = U8(serial_type) + if !(serial_type == U32(0)) { + goto __495 + } + // NULL value. No change in zPayload + goto __496 +__495: + if !(serial_type == U32(7)) { + goto __497 + } + + libc.Xmemcpy(tls, bp+296, pRec, uint64(unsafe.Sizeof(U64(0)))) + + goto __498 +__497: + *(*U64)(unsafe.Pointer(bp + 296 /* v */)) = U64(*(*I64)(unsafe.Pointer(pRec))) +__498: + ; + len1 = libc.AssignUint32(&i4, U32(Xsqlite3SmallTypeSizes[serial_type])) + +__499: + if !(1 != 0) { + goto __500 + } + *(*U8)(unsafe.Pointer(zPayload + uintptr(libc.PreDecUint32(&i4, 1)))) = U8(*(*U64)(unsafe.Pointer(bp + 296)) & uint64(0xFF)) + if !(i4 == U32(0)) { + goto __501 + } + goto __500 +__501: + ; + *(*U64)(unsafe.Pointer(bp + 296 /* v */)) >>= 8 + goto __499 +__500: + ; + zPayload += uintptr(len1) +__496: + ; + goto __494 +__493: + if !(serial_type < U32(0x80)) { + goto __502 + } + *(*U8)(unsafe.Pointer(libc.PostIncUintptr(&zHdr1, 1))) = U8(serial_type) + if !(serial_type >= U32(14) && (*Mem)(unsafe.Pointer(pRec)).Fn > 0) { + goto __504 + } + + libc.Xmemcpy(tls, zPayload, (*Mem)(unsafe.Pointer(pRec)).Fz, uint64((*Mem)(unsafe.Pointer(pRec)).Fn)) + zPayload += uintptr((*Mem)(unsafe.Pointer(pRec)).Fn) +__504: + ; + goto __503 +__502: + zHdr1 += uintptr(Xsqlite3PutVarint(tls, zHdr1, uint64(serial_type))) + if !((*Mem)(unsafe.Pointer(pRec)).Fn != 0) { + goto __505 + } + + libc.Xmemcpy(tls, zPayload, (*Mem)(unsafe.Pointer(pRec)).Fz, uint64((*Mem)(unsafe.Pointer(pRec)).Fn)) + zPayload += uintptr((*Mem)(unsafe.Pointer(pRec)).Fn) +__505: + ; +__503: + ; +__494: + ; + if !(pRec == pLast) { + goto __506 + } + goto __492 +__506: + ; + pRec += 56 + goto __491 +__492: ; goto __8 @@ -115706,28 +116207,28 @@ __476: // If P3==0, then an exact count is obtained, which involves visiting // every btree page of the table. But if P3 is non-zero, an estimate // is returned based on the current cursor position. -__75: +__76: ; pCrsr1 = *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) + 48)) if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) { - goto __477 + goto __507 } - *(*I64)(unsafe.Pointer(bp + 312 /* nEntry */)) = Xsqlite3BtreeRowCountEst(tls, pCrsr1) - goto __478 -__477: - *(*I64)(unsafe.Pointer(bp + 312 /* nEntry */)) = int64(0) // Not needed. Only used to silence a warning. - rc = Xsqlite3BtreeCount(tls, db, pCrsr1, bp+312) + *(*I64)(unsafe.Pointer(bp + 304 /* nEntry */)) = Xsqlite3BtreeRowCountEst(tls, pCrsr1) + goto __508 +__507: + *(*I64)(unsafe.Pointer(bp + 304 /* nEntry */)) = int64(0) // Not needed. Only used to silence a warning. + rc = Xsqlite3BtreeCount(tls, db, pCrsr1, bp+304) if !(rc != 0) { - goto __479 + goto __509 } goto abort_due_to_error -__479: +__509: ; -__478: +__508: ; pOut = out2Prerelease(tls, p, pOp) - *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 312 /* nEntry */)) + *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 304 /* nEntry */)) goto check_for_interrupt // Opcode: Savepoint P1 * * P4 * @@ -115736,7 +116237,7 @@ __478: // on the value of P1. To open a new savepoint set P1==0 (SAVEPOINT_BEGIN). // To release (commit) an existing savepoint set P1==1 (SAVEPOINT_RELEASE). // To rollback an existing savepoint set P1==2 (SAVEPOINT_ROLLBACK). -__76: +__77: p12 = (*Op)(unsafe.Pointer(pOp)).Fp1 zName = *(*uintptr)(unsafe.Pointer(pOp + 16)) @@ -115745,17 +116246,17 @@ __76: // transaction, then there cannot be any savepoints. if !(p12 == SAVEPOINT_BEGIN) { - goto __480 + goto __510 } if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0) { - goto __482 + goto __512 } // A new savepoint cannot be created if there are active write // statements (i.e. open read/write incremental blob handles). - Xsqlite3VdbeError(tls, p, ts+6837, 0) + Xsqlite3VdbeError(tls, p, ts+6872, 0) rc = SQLITE_BUSY - goto __483 -__482: + goto __513 +__512: nName = Xsqlite3Strlen30(tls, zName) // This call is Ok even if this savepoint is actually a transaction @@ -115766,16 +116267,16 @@ __482: rc = Xsqlite3VtabSavepoint(tls, db, SAVEPOINT_BEGIN, (*Sqlite3)(unsafe.Pointer(db)).FnStatement+(*Sqlite3)(unsafe.Pointer(db)).FnSavepoint) if !(rc != SQLITE_OK) { - goto __484 + goto __514 } goto abort_due_to_error -__484: +__514: ; // Create a new savepoint structure. pNew = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(Savepoint{}))+uint64(nName)+uint64(1)) if !(pNew != 0) { - goto __485 + goto __515 } (*Savepoint)(unsafe.Pointer(pNew)).FzName = pNew + 1*32 libc.Xmemcpy(tls, (*Savepoint)(unsafe.Pointer(pNew)).FzName, zName, uint64(nName+1)) @@ -115783,14 +116284,14 @@ __484: // If there is no open transaction, then mark this as a special // "transaction savepoint". if !((*Sqlite3)(unsafe.Pointer(db)).FautoCommit != 0) { - goto __486 + goto __516 } (*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(0) (*Sqlite3)(unsafe.Pointer(db)).FisTransactionSavepoint = U8(1) - goto __487 -__486: + goto __517 +__516: (*Sqlite3)(unsafe.Pointer(db)).FnSavepoint++ -__487: +__517: ; // Link the new savepoint into the database handle's list. @@ -115798,163 +116299,163 @@ __487: (*Sqlite3)(unsafe.Pointer(db)).FpSavepoint = pNew (*Savepoint)(unsafe.Pointer(pNew)).FnDeferredCons = (*Sqlite3)(unsafe.Pointer(db)).FnDeferredCons (*Savepoint)(unsafe.Pointer(pNew)).FnDeferredImmCons = (*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons -__485: +__515: ; -__483: +__513: ; - goto __481 -__480: + goto __511 +__510: ; iSavepoint = 0 // Find the named savepoint. If there is no such savepoint, then an // an error is returned to the user. pSavepoint = (*Sqlite3)(unsafe.Pointer(db)).FpSavepoint -__488: +__518: if !(pSavepoint != 0 && Xsqlite3StrICmp(tls, (*Savepoint)(unsafe.Pointer(pSavepoint)).FzName, zName) != 0) { - goto __490 + goto __520 } iSavepoint++ - goto __489 -__489: + goto __519 +__519: pSavepoint = (*Savepoint)(unsafe.Pointer(pSavepoint)).FpNext - goto __488 - goto __490 -__490: + goto __518 + goto __520 +__520: ; if !!(pSavepoint != 0) { - goto __491 + goto __521 } - Xsqlite3VdbeError(tls, p, ts+6888, libc.VaList(bp+88, zName)) + Xsqlite3VdbeError(tls, p, ts+6923, libc.VaList(bp+88, zName)) rc = SQLITE_ERROR - goto __492 -__491: + goto __522 +__521: if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0 && p12 == SAVEPOINT_RELEASE) { - goto __493 + goto __523 } // It is not possible to release (commit) a savepoint if there are // active write statements. Xsqlite3VdbeError(tls, p, - ts+6910, 0) + ts+6945, 0) rc = SQLITE_BUSY - goto __494 -__493: + goto __524 +__523: // Determine whether or not this is a transaction savepoint. If so, // and this is a RELEASE command, then the current transaction // is committed. isTransaction = libc.Bool32((*Savepoint)(unsafe.Pointer(pSavepoint)).FpNext == uintptr(0) && (*Sqlite3)(unsafe.Pointer(db)).FisTransactionSavepoint != 0) if !(isTransaction != 0 && p12 == SAVEPOINT_RELEASE) { - goto __495 + goto __525 } if !(libc.AssignInt32(&rc, Xsqlite3VdbeCheckFk(tls, p, 1)) != SQLITE_OK) { - goto __497 + goto __527 } goto vdbe_return -__497: +__527: ; (*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(1) if !(Xsqlite3VdbeHalt(tls, p) == SQLITE_BUSY) { - goto __498 + goto __528 } (*Vdbe)(unsafe.Pointer(p)).Fpc = int32((int64(pOp) - int64(aOp)) / 24) (*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(0) (*Vdbe)(unsafe.Pointer(p)).Frc = libc.AssignInt32(&rc, SQLITE_BUSY) goto vdbe_return -__498: +__528: ; rc = (*Vdbe)(unsafe.Pointer(p)).Frc if !(rc != 0) { - goto __499 + goto __529 } (*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(0) - goto __500 -__499: + goto __530 +__529: (*Sqlite3)(unsafe.Pointer(db)).FisTransactionSavepoint = U8(0) -__500: +__530: ; - goto __496 -__495: + goto __526 +__525: iSavepoint = (*Sqlite3)(unsafe.Pointer(db)).FnSavepoint - iSavepoint - 1 if !(p12 == SAVEPOINT_ROLLBACK) { - goto __501 + goto __531 } isSchemaChange = libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_SchemaChange) != U32(0)) ii = 0 -__503: +__533: if !(ii < (*Sqlite3)(unsafe.Pointer(db)).FnDb) { - goto __505 + goto __535 } rc = Xsqlite3BtreeTripAllCursors(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii)*32)).FpBt, SQLITE_ABORT|int32(2)<<8, libc.Bool32(isSchemaChange == 0)) if !(rc != SQLITE_OK) { - goto __506 + goto __536 } goto abort_due_to_error -__506: +__536: ; - goto __504 -__504: + goto __534 +__534: ii++ - goto __503 - goto __505 -__505: + goto __533 + goto __535 +__535: ; - goto __502 -__501: + goto __532 +__531: ; isSchemaChange = 0 -__502: +__532: ; ii = 0 -__507: +__537: if !(ii < (*Sqlite3)(unsafe.Pointer(db)).FnDb) { - goto __509 + goto __539 } rc = Xsqlite3BtreeSavepoint(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii)*32)).FpBt, p12, iSavepoint) if !(rc != SQLITE_OK) { - goto __510 + goto __540 } goto abort_due_to_error -__510: +__540: ; - goto __508 -__508: + goto __538 +__538: ii++ - goto __507 - goto __509 -__509: + goto __537 + goto __539 +__539: ; if !(isSchemaChange != 0) { - goto __511 + goto __541 } Xsqlite3ExpirePreparedStatements(tls, db, 0) Xsqlite3ResetAllSchemasOfConnection(tls, db) *(*U32)(unsafe.Pointer(db + 44)) |= U32(DBFLAG_SchemaChange) -__511: +__541: ; -__496: +__526: ; if !(rc != 0) { - goto __512 + goto __542 } goto abort_due_to_error -__512: +__542: ; // Regardless of whether this is a RELEASE or ROLLBACK, destroy all // savepoints nested inside of the savepoint being operated on. -__513: +__543: if !((*Sqlite3)(unsafe.Pointer(db)).FpSavepoint != pSavepoint) { - goto __514 + goto __544 } pTmp = (*Sqlite3)(unsafe.Pointer(db)).FpSavepoint (*Sqlite3)(unsafe.Pointer(db)).FpSavepoint = (*Savepoint)(unsafe.Pointer(pTmp)).FpNext Xsqlite3DbFree(tls, db, pTmp) (*Sqlite3)(unsafe.Pointer(db)).FnSavepoint-- - goto __513 -__514: + goto __543 +__544: ; // If it is a RELEASE, then destroy the savepoint being operated on @@ -115962,50 +116463,56 @@ __514: // constraint violations present in the database to the value stored // when the savepoint was created. if !(p12 == SAVEPOINT_RELEASE) { - goto __515 + goto __545 } (*Sqlite3)(unsafe.Pointer(db)).FpSavepoint = (*Savepoint)(unsafe.Pointer(pSavepoint)).FpNext Xsqlite3DbFree(tls, db, pSavepoint) if !!(isTransaction != 0) { - goto __517 + goto __547 } (*Sqlite3)(unsafe.Pointer(db)).FnSavepoint-- -__517: +__547: ; - goto __516 -__515: + goto __546 +__545: ; (*Sqlite3)(unsafe.Pointer(db)).FnDeferredCons = (*Savepoint)(unsafe.Pointer(pSavepoint)).FnDeferredCons (*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons = (*Savepoint)(unsafe.Pointer(pSavepoint)).FnDeferredImmCons -__516: +__546: ; if !(!(isTransaction != 0) || p12 == SAVEPOINT_ROLLBACK) { - goto __518 + goto __548 } rc = Xsqlite3VtabSavepoint(tls, db, p12, iSavepoint) if !(rc != SQLITE_OK) { - goto __519 + goto __549 } goto abort_due_to_error -__519: +__549: ; -__518: +__548: ; -__494: +__524: ; -__492: +__522: ; -__481: +__511: ; if !(rc != 0) { - goto __520 + goto __550 } goto abort_due_to_error -__520: +__550: + ; + if !(int32((*Vdbe)(unsafe.Pointer(p)).FeVdbeState) == VDBE_HALT_STATE) { + goto __551 + } + rc = SQLITE_DONE + goto vdbe_return +__551: ; - goto __8 // Opcode: AutoCommit P1 P2 * * * @@ -116016,7 +116523,7 @@ __520: // there are active writing VMs or active VMs that use shared cache. // // This instruction causes the VM to halt. -__77: +__78: desiredAutoCommit = (*Op)(unsafe.Pointer(pOp)).Fp1 iRollback = (*Op)(unsafe.Pointer(pOp)).Fp2 @@ -116024,78 +116531,78 @@ __77: // At least this one VM is active if !(desiredAutoCommit != int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit)) { - goto __521 + goto __552 } if !(iRollback != 0) { - goto __523 + goto __554 } Xsqlite3RollbackAll(tls, db, SQLITE_ABORT|int32(2)<<8) (*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(1) - goto __524 -__523: + goto __555 +__554: if !(desiredAutoCommit != 0 && (*Sqlite3)(unsafe.Pointer(db)).FnVdbeWrite > 0) { - goto __525 + goto __556 } // If this instruction implements a COMMIT and other VMs are writing // return an error indicating that the other VMs must complete first. Xsqlite3VdbeError(tls, p, - ts+6964, 0) + ts+6999, 0) rc = SQLITE_BUSY goto abort_due_to_error - goto __526 -__525: + goto __557 +__556: if !(libc.AssignInt32(&rc, Xsqlite3VdbeCheckFk(tls, p, 1)) != SQLITE_OK) { - goto __527 + goto __558 } goto vdbe_return - goto __528 -__527: + goto __559 +__558: (*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(desiredAutoCommit) -__528: +__559: ; -__526: +__557: ; -__524: +__555: ; if !(Xsqlite3VdbeHalt(tls, p) == SQLITE_BUSY) { - goto __529 + goto __560 } (*Vdbe)(unsafe.Pointer(p)).Fpc = int32((int64(pOp) - int64(aOp)) / 24) (*Sqlite3)(unsafe.Pointer(db)).FautoCommit = U8(1 - desiredAutoCommit) (*Vdbe)(unsafe.Pointer(p)).Frc = libc.AssignInt32(&rc, SQLITE_BUSY) goto vdbe_return -__529: +__560: ; Xsqlite3CloseSavepoints(tls, db) if !((*Vdbe)(unsafe.Pointer(p)).Frc == SQLITE_OK) { - goto __530 + goto __561 } rc = SQLITE_DONE - goto __531 -__530: + goto __562 +__561: rc = SQLITE_ERROR -__531: +__562: ; goto vdbe_return - goto __522 -__521: + goto __553 +__552: Xsqlite3VdbeError(tls, p, func() uintptr { if !(desiredAutoCommit != 0) { - return ts + 7019 /* "cannot start a t..." */ + return ts + 7054 /* "cannot start a t..." */ } return func() uintptr { if iRollback != 0 { - return ts + 7067 /* "cannot rollback ..." */ + return ts + 7102 /* "cannot rollback ..." */ } - return ts + 7110 /* "cannot commit - ..." */ + return ts + 7145 /* "cannot commit - ..." */ }() }(), 0) rc = SQLITE_ERROR goto abort_due_to_error -__522: +__553: ; /*NOTREACHED*/ @@ -116133,70 +116640,71 @@ __522: // generation counter, then an SQLITE_SCHEMA error is raised and execution // halts. The sqlite3_step() wrapper function might then reprepare the // statement and rerun it from the beginning. -__78: - *(*int32)(unsafe.Pointer(bp + 320 /* iMeta */)) = 0 +__79: + *(*int32)(unsafe.Pointer(bp + 312 /* iMeta */)) = 0 if !((*Op)(unsafe.Pointer(pOp)).Fp2 != 0 && (*Sqlite3)(unsafe.Pointer(db)).Fflags&(uint64(SQLITE_QueryOnly)|U64(uint64(0x00002))<<32) != uint64(0)) { - goto __532 + goto __563 } if !((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_QueryOnly) != 0) { - goto __533 + goto __564 } // Writes prohibited by the "PRAGMA query_only=TRUE" statement rc = SQLITE_READONLY - goto __534 -__533: + goto __565 +__564: // Writes prohibited due to a prior SQLITE_CORRUPT in the current // transaction rc = SQLITE_CORRUPT -__534: +__565: ; goto abort_due_to_error -__532: +__563: ; - pBt = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32)).FpBt + pDb = (*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32 + pBt = (*Db)(unsafe.Pointer(pDb)).FpBt if !(pBt != 0) { - goto __535 + goto __566 } - rc = Xsqlite3BtreeBeginTrans(tls, pBt, (*Op)(unsafe.Pointer(pOp)).Fp2, bp+320) + rc = Xsqlite3BtreeBeginTrans(tls, pBt, (*Op)(unsafe.Pointer(pOp)).Fp2, bp+312) if !(rc != SQLITE_OK) { - goto __536 + goto __567 } if !(rc&0xff == SQLITE_BUSY) { - goto __537 + goto __568 } (*Vdbe)(unsafe.Pointer(p)).Fpc = int32((int64(pOp) - int64(aOp)) / 24) (*Vdbe)(unsafe.Pointer(p)).Frc = rc goto vdbe_return -__537: +__568: ; goto abort_due_to_error -__536: +__567: ; - if !(Bft(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x40>>6)) != 0 && + if !(Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x20>>5)) != 0 && (*Op)(unsafe.Pointer(pOp)).Fp2 != 0 && (int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) == 0 || (*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead > 1)) { - goto __538 + goto __569 } if !((*Vdbe)(unsafe.Pointer(p)).FiStatement == 0) { - goto __539 + goto __570 } (*Sqlite3)(unsafe.Pointer(db)).FnStatement++ (*Vdbe)(unsafe.Pointer(p)).FiStatement = (*Sqlite3)(unsafe.Pointer(db)).FnSavepoint + (*Sqlite3)(unsafe.Pointer(db)).FnStatement -__539: +__570: ; rc = Xsqlite3VtabSavepoint(tls, db, SAVEPOINT_BEGIN, (*Vdbe)(unsafe.Pointer(p)).FiStatement-1) if !(rc == SQLITE_OK) { - goto __540 + goto __571 } rc = Xsqlite3BtreeBeginStmt(tls, pBt, (*Vdbe)(unsafe.Pointer(p)).FiStatement) -__540: +__571: ; // Store the current value of the database handles deferred constraint @@ -116204,22 +116712,21 @@ __540: // the value of this counter needs to be restored too. (*Vdbe)(unsafe.Pointer(p)).FnStmtDefCons = (*Sqlite3)(unsafe.Pointer(db)).FnDeferredCons (*Vdbe)(unsafe.Pointer(p)).FnStmtDefImmCons = (*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons -__538: +__569: ; -__535: +__566: ; if !(rc == SQLITE_OK && (*Op)(unsafe.Pointer(pOp)).Fp5 != 0 && - (*(*int32)(unsafe.Pointer(bp + 320)) != (*Op)(unsafe.Pointer(pOp)).Fp3 || - (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32)).FpSchema)).FiGeneration != *(*int32)(unsafe.Pointer(pOp + 16)))) { - goto __541 + (*(*int32)(unsafe.Pointer(bp + 312)) != (*Op)(unsafe.Pointer(pOp)).Fp3 || (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb)).FpSchema)).FiGeneration != *(*int32)(unsafe.Pointer(pOp + 16)))) { + goto __572 } // IMPLEMENTATION-OF: R-03189-51135 As each SQL statement runs, the schema // version is checked to ensure that the schema has not changed since the // SQL statement was prepared. Xsqlite3DbFree(tls, db, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg) - (*Vdbe)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3DbStrDup(tls, db, ts+7151) + (*Vdbe)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3DbStrDup(tls, db, ts+7186) // If the schema-cookie from the database file matches the cookie // stored with the in-memory representation of the schema, do // not reload the schema from the database file. @@ -116232,21 +116739,26 @@ __535: // v-table would have to be ready for the sqlite3_vtab structure itself // to be invalidated whenever sqlite3_step() is called from within // a v-table method. - if !((*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32)).FpSchema)).Fschema_cookie != *(*int32)(unsafe.Pointer(bp + 320))) { - goto __542 + if !((*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32)).FpSchema)).Fschema_cookie != *(*int32)(unsafe.Pointer(bp + 312))) { + goto __573 } Xsqlite3ResetOneSchema(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1) -__542: +__573: ; - libc.SetBitFieldPtr16Uint32(p+208, Bft(1), 0, 0x3) + libc.SetBitFieldPtr8Uint32(p+200, Bft(1), 0, 0x3) rc = SQLITE_SCHEMA -__541: + + // Set changeCntOn to 0 to prevent the value returned by sqlite3_changes() + // from being modified in sqlite3VdbeHalt(). If this statement is + // reprepared, changeCntOn will be set again. + libc.SetBitFieldPtr8Uint32(p+200, Bft(0), 4, 0x10) +__572: ; if !(rc != 0) { - goto __543 + goto __574 } goto abort_due_to_error -__543: +__574: ; goto __8 @@ -116261,14 +116773,14 @@ __543: // There must be a read-lock on the database (either a transaction // must be started or there must be an open cursor) before // executing this instruction. -__79: +__80: ; iDb = (*Op)(unsafe.Pointer(pOp)).Fp1 iCookie = (*Op)(unsafe.Pointer(pOp)).Fp3 - Xsqlite3BtreeGetMeta(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FpBt, iCookie, bp+324) + Xsqlite3BtreeGetMeta(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FpBt, iCookie, bp+316) pOut = out2Prerelease(tls, p, pOp) - *(*I64)(unsafe.Pointer(pOut)) = I64(*(*int32)(unsafe.Pointer(bp + 324 /* iMeta1 */))) + *(*I64)(unsafe.Pointer(pOut)) = I64(*(*int32)(unsafe.Pointer(bp + 316 /* iMeta1 */))) goto __8 // Opcode: SetCookie P1 P2 P3 * P5 @@ -116285,45 +116797,45 @@ __79: // schema version is set to P3-P5. The "PRAGMA schema_version=N" statement // has P5 set to 1, so that the internal schema version will be different // from the database schema version, resulting in a schema reset. -__80: +__81: ; - pDb = (*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32 + pDb1 = (*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32 // See note about index shifting on OP_ReadCookie - rc = Xsqlite3BtreeUpdateMeta(tls, (*Db)(unsafe.Pointer(pDb)).FpBt, (*Op)(unsafe.Pointer(pOp)).Fp2, uint32((*Op)(unsafe.Pointer(pOp)).Fp3)) + rc = Xsqlite3BtreeUpdateMeta(tls, (*Db)(unsafe.Pointer(pDb1)).FpBt, (*Op)(unsafe.Pointer(pOp)).Fp2, uint32((*Op)(unsafe.Pointer(pOp)).Fp3)) if !((*Op)(unsafe.Pointer(pOp)).Fp2 == BTREE_SCHEMA_VERSION) { - goto __544 + goto __575 } // When the schema cookie changes, record the new cookie internally - (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb)).FpSchema)).Fschema_cookie = (*Op)(unsafe.Pointer(pOp)).Fp3 - int32((*Op)(unsafe.Pointer(pOp)).Fp5) + *(*U32)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb1)).FpSchema)) = *(*U32)(unsafe.Pointer(pOp + 12)) - U32((*Op)(unsafe.Pointer(pOp)).Fp5) *(*U32)(unsafe.Pointer(db + 44)) |= U32(DBFLAG_SchemaChange) Xsqlite3FkClearTriggerCache(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1) - goto __545 -__544: + goto __576 +__575: if !((*Op)(unsafe.Pointer(pOp)).Fp2 == BTREE_FILE_FORMAT) { - goto __546 + goto __577 } // Record changes in the file format - (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb)).FpSchema)).Ffile_format = U8((*Op)(unsafe.Pointer(pOp)).Fp3) -__546: + (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb1)).FpSchema)).Ffile_format = U8((*Op)(unsafe.Pointer(pOp)).Fp3) +__577: ; -__545: +__576: ; if !((*Op)(unsafe.Pointer(pOp)).Fp1 == 1) { - goto __547 + goto __578 } // Invalidate all prepared statements whenever the TEMP database // schema is changed. Ticket #1644 Xsqlite3ExpirePreparedStatements(tls, db, 0) - libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 0, 0x3) -__547: + libc.SetBitFieldPtr8Uint32(p+200, Bft(0), 0, 0x3) +__578: ; if !(rc != 0) { - goto __548 + goto __579 } goto abort_due_to_error -__548: +__579: ; goto __8 @@ -116341,8 +116853,10 @@ __548: // Allowed P5 bits: // <ul> // <li> <b>0x02 OPFLAG_SEEKEQ</b>: This cursor will only be used for - // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT - // of OP_SeekLE/OP_IdxLT) + // + // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT + // of OP_SeekLE/OP_IdxLT) + // // </ul> // // The P4 value may be either an integer (P4_INT32) or a pointer to @@ -116370,8 +116884,10 @@ __548: // Allowed P5 bits: // <ul> // <li> <b>0x02 OPFLAG_SEEKEQ</b>: This cursor will only be used for - // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT - // of OP_SeekLE/OP_IdxLT) + // + // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT + // of OP_SeekLE/OP_IdxLT) + // // </ul> // // See also: OP_OpenRead, OP_OpenWrite @@ -116393,46 +116909,52 @@ __548: // Allowed P5 bits: // <ul> // <li> <b>0x02 OPFLAG_SEEKEQ</b>: This cursor will only be used for - // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT - // of OP_SeekLE/OP_IdxLT) + // + // equality lookups (implemented as a pair of opcodes OP_SeekGE/OP_IdxGT + // of OP_SeekLE/OP_IdxLT) + // // <li> <b>0x08 OPFLAG_FORDELETE</b>: This cursor is used only to seek - // and subsequently delete entries in an index btree. This is a - // hint to the storage engine that the storage engine is allowed to - // ignore. The hint is not used by the official SQLite b*tree storage - // engine, but is used by COMDB2. + // + // and subsequently delete entries in an index btree. This is a + // hint to the storage engine that the storage engine is allowed to + // ignore. The hint is not used by the official SQLite b*tree storage + // engine, but is used by COMDB2. + // // <li> <b>0x10 OPFLAG_P2ISREG</b>: Use the content of register P2 - // as the root page, not the value of P2 itself. + // + // as the root page, not the value of P2 itself. + // // </ul> // // This instruction works like OpenRead except that it opens the cursor // in read/write mode. // // See also: OP_OpenRead, OP_ReopenIdx -__81: +__82: ; pCur = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) if !(pCur != 0 && (*VdbeCursor)(unsafe.Pointer(pCur)).FpgnoRoot == U32((*Op)(unsafe.Pointer(pOp)).Fp2)) { - goto __549 + goto __580 } // Guaranteed by the code generator Xsqlite3BtreeClearCursor(tls, *(*uintptr)(unsafe.Pointer(pCur + 48))) goto open_cursor_set_hints -__549: +__580: ; // If the cursor is not currently open or is open on a different // index, then fall through into OP_OpenRead to force a reopen -__82: __83: +__84: ; - if !(int32(*(*uint16)(unsafe.Pointer(p + 208))&0x3>>0) == 1) { - goto __550 + if !(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x3>>0) == 1) { + goto __581 } rc = SQLITE_ABORT | int32(2)<<8 goto abort_due_to_error -__550: +__581: ; nField1 = 0 @@ -116440,28 +116962,28 @@ __550: p23 = U32((*Op)(unsafe.Pointer(pOp)).Fp2) iDb1 = (*Op)(unsafe.Pointer(pOp)).Fp3 - pDb1 = (*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb1)*32 - pX = (*Db)(unsafe.Pointer(pDb1)).FpBt + pDb2 = (*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb1)*32 + pX = (*Db)(unsafe.Pointer(pDb2)).FpBt if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_OpenWrite) { - goto __551 + goto __582 } wrFlag = BTREE_WRCSR | int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_FORDELETE - if !(int32((*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb1)).FpSchema)).Ffile_format) < int32((*Vdbe)(unsafe.Pointer(p)).FminWriteFileFormat)) { - goto __553 + if !(int32((*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb2)).FpSchema)).Ffile_format) < int32((*Vdbe)(unsafe.Pointer(p)).FminWriteFileFormat)) { + goto __584 } - (*Vdbe)(unsafe.Pointer(p)).FminWriteFileFormat = (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb1)).FpSchema)).Ffile_format -__553: + (*Vdbe)(unsafe.Pointer(p)).FminWriteFileFormat = (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb2)).FpSchema)).Ffile_format +__584: ; - goto __552 -__551: + goto __583 +__582: wrFlag = 0 -__552: +__583: ; if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_P2ISREG != 0) { - goto __554 + goto __585 } pIn2 = aMem + uintptr(p23)*56 @@ -116473,32 +116995,32 @@ __552: // If there were a failure, the prepared statement would have halted // before reaching this instruction. -__554: +__585: ; - if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -9) { - goto __555 + if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -8) { + goto __586 } pKeyInfo1 = *(*uintptr)(unsafe.Pointer(pOp + 16)) nField1 = int32((*KeyInfo)(unsafe.Pointer(pKeyInfo1)).FnAllField) - goto __556 -__555: + goto __587 +__586: if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -3) { - goto __557 + goto __588 } nField1 = *(*int32)(unsafe.Pointer(pOp + 16)) -__557: +__588: ; -__556: +__587: ; // Table with INTEGER PRIMARY KEY and nothing else pCur = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, nField1, uint8(CURTYPE_BTREE)) if !(pCur == uintptr(0)) { - goto __558 + goto __589 } goto no_mem -__558: +__589: ; (*VdbeCursor)(unsafe.Pointer(pCur)).FiDb = I8(iDb1) (*VdbeCursor)(unsafe.Pointer(pCur)).FnullRow = U8(1) @@ -116510,7 +117032,7 @@ __558: // SQLite used to check if the root-page flags were sane at this point // and report database corruption if they were not, but this check has // since moved into the btree layer. - (*VdbeCursor)(unsafe.Pointer(pCur)).FisTable = U8(libc.Bool32(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) != -9)) + (*VdbeCursor)(unsafe.Pointer(pCur)).FisTable = U8(libc.Bool32(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) != -8)) open_cursor_set_hints: ; @@ -116518,10 +117040,10 @@ open_cursor_set_hints: Xsqlite3BtreeCursorHintFlags(tls, *(*uintptr)(unsafe.Pointer(pCur + 48)), uint32(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&(OPFLAG_BULKCSR|OPFLAG_SEEKEQ))) if !(rc != 0) { - goto __559 + goto __590 } goto abort_due_to_error -__559: +__590: ; goto __8 @@ -116532,7 +117054,7 @@ __559: // opcode. Only ephemeral cursors may be duplicated. // // Duplicate ephemeral cursors are used for self-joins of materialized views. -__84: // The new cursor +__85: // The new cursor pOrig = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*8)) @@ -116540,10 +117062,10 @@ __84: // The new cursor pCx = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, int32((*VdbeCursor)(unsafe.Pointer(pOrig)).FnField), uint8(CURTYPE_BTREE)) if !(pCx == uintptr(0)) { - goto __560 + goto __591 } goto no_mem -__560: +__591: ; (*VdbeCursor)(unsafe.Pointer(pCx)).FnullRow = U8(1) libc.SetBitFieldPtr8Uint32(pCx+8, Bool(1), 0, 0x1) @@ -116593,12 +117115,12 @@ __560: // different name to distinguish its use. Tables created using // by this opcode will be used for automatically created transient // indices in joins. -__85: __86: +__87: ; if !((*Op)(unsafe.Pointer(pOp)).Fp3 > 0) { - goto __561 + goto __592 } // Make register reg[P3] into a value that can be used as the data // form sqlite3BtreeInsert() where the length of the data is zero. @@ -116606,11 +117128,11 @@ __86: (*Mem)(unsafe.Pointer(aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)).Fn = 0 (*Mem)(unsafe.Pointer(aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)).Fz = ts + 1524 /* "" */ -__561: +__592: ; pCx1 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) if !(pCx1 != 0 && !(int32(*(*uint8)(unsafe.Pointer(pCx1 + 8))&0x8>>3) != 0) && (*Op)(unsafe.Pointer(pOp)).Fp2 <= int32((*VdbeCursor)(unsafe.Pointer(pCx1)).FnField)) { - goto __562 + goto __593 } // If the ephermeral table is already open and has no duplicates from // OP_OpenDup, then erase all existing content so that the table is @@ -116619,71 +117141,71 @@ __561: (*VdbeCursor)(unsafe.Pointer(pCx1)).FseqCount = int64(0) (*VdbeCursor)(unsafe.Pointer(pCx1)).FcacheStatus = U32(CACHE_STALE) rc = Xsqlite3BtreeClearTable(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), int32((*VdbeCursor)(unsafe.Pointer(pCx1)).FpgnoRoot), uintptr(0)) - goto __563 -__562: + goto __594 +__593: pCx1 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, uint8(CURTYPE_BTREE)) if !(pCx1 == uintptr(0)) { - goto __564 + goto __595 } goto no_mem -__564: +__595: ; libc.SetBitFieldPtr8Uint32(pCx1+8, Bool(1), 0, 0x1) rc = Xsqlite3BtreeOpen(tls, (*Sqlite3)(unsafe.Pointer(db)).FpVfs, uintptr(0), db, pCx1+16, BTREE_OMIT_JOURNAL|BTREE_SINGLE|int32((*Op)(unsafe.Pointer(pOp)).Fp5), vfsFlags) if !(rc == SQLITE_OK) { - goto __565 + goto __596 } rc = Xsqlite3BtreeBeginTrans(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), 1, uintptr(0)) if !(rc == SQLITE_OK) { - goto __566 + goto __597 } // If a transient index is required, create it by calling // sqlite3BtreeCreateTable() with the BTREE_BLOBKEY flag before // opening it. If a transient table is required, just use the // automatically created table with root-page 1 (an BLOB_INTKEY table). if !(libc.AssignPtrUintptr(pCx1+56, libc.AssignUintptr(&pKeyInfo2, *(*uintptr)(unsafe.Pointer(pOp + 16)))) != uintptr(0)) { - goto __567 + goto __598 } rc = Xsqlite3BtreeCreateTable(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), pCx1+68, BTREE_BLOBKEY|int32((*Op)(unsafe.Pointer(pOp)).Fp5)) if !(rc == SQLITE_OK) { - goto __569 + goto __600 } rc = Xsqlite3BtreeCursor(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), (*VdbeCursor)(unsafe.Pointer(pCx1)).FpgnoRoot, BTREE_WRCSR, pKeyInfo2, *(*uintptr)(unsafe.Pointer(pCx1 + 48))) -__569: +__600: ; (*VdbeCursor)(unsafe.Pointer(pCx1)).FisTable = U8(0) - goto __568 -__567: + goto __599 +__598: (*VdbeCursor)(unsafe.Pointer(pCx1)).FpgnoRoot = Pgno(SCHEMA_ROOT) rc = Xsqlite3BtreeCursor(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16)), uint32(SCHEMA_ROOT), BTREE_WRCSR, uintptr(0), *(*uintptr)(unsafe.Pointer(pCx1 + 48))) (*VdbeCursor)(unsafe.Pointer(pCx1)).FisTable = U8(1) -__568: +__599: ; -__566: +__597: ; libc.SetBitFieldPtr8Uint32(pCx1+8, Bool(libc.Bool32(int32((*Op)(unsafe.Pointer(pOp)).Fp5) != BTREE_UNORDERED)), 2, 0x4) if !(rc != 0) { - goto __570 + goto __601 } Xsqlite3BtreeClose(tls, *(*uintptr)(unsafe.Pointer(pCx1 + 16))) -__570: +__601: ; -__565: +__596: ; -__563: +__594: ; if !(rc != 0) { - goto __571 + goto __602 } goto abort_due_to_error -__571: +__602: ; (*VdbeCursor)(unsafe.Pointer(pCx1)).FnullRow = U8(1) goto __8 @@ -116697,24 +117219,24 @@ __571: // If argument P3 is non-zero, then it indicates that the sorter may // assume that a stable sort considering the first P3 fields of each // key is sufficient to produce the required results. -__87: +__88: ; pCx2 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, uint8(CURTYPE_SORTER)) if !(pCx2 == uintptr(0)) { - goto __572 + goto __603 } goto no_mem -__572: +__603: ; (*VdbeCursor)(unsafe.Pointer(pCx2)).FpKeyInfo = *(*uintptr)(unsafe.Pointer(pOp + 16)) rc = Xsqlite3VdbeSorterInit(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp3, pCx2) if !(rc != 0) { - goto __573 + goto __604 } goto abort_due_to_error -__573: +__604: ; goto __8 @@ -116724,15 +117246,15 @@ __573: // P1 is a sorter cursor. If the sequence counter is currently zero, jump // to P2. Regardless of whether or not the jump is taken, increment the // the sequence value. -__88: +__89: ; pC2 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) if !(libc.PostIncInt64(&(*VdbeCursor)(unsafe.Pointer(pC2)).FseqCount, 1) == int64(0)) { - goto __574 + goto __605 } goto jump_to_p2 -__574: +__605: ; goto __8 @@ -116751,15 +117273,15 @@ __574: // // P3 is the number of fields in the records that will be stored by // the pseudo-table. -__89: +__90: ; pCx3 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp3, uint8(CURTYPE_PSEUDO)) if !(pCx3 == uintptr(0)) { - goto __575 + goto __606 } goto no_mem -__575: +__606: ; (*VdbeCursor)(unsafe.Pointer(pCx3)).FnullRow = U8(1) (*VdbeCursor)(unsafe.Pointer(pCx3)).FseekResult = (*Op)(unsafe.Pointer(pOp)).Fp2 @@ -116776,7 +117298,7 @@ __575: // // Close a cursor previously opened as P1. If P1 is not // currently open, this instruction is a no-op. -__90: +__91: ; Xsqlite3VdbeFreeCursor(tls, p, *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))) *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) = uintptr(0) @@ -116868,10 +117390,10 @@ __90: // is an equality search. // // See also: Found, NotFound, SeekGt, SeekGe, SeekLt -__91: // jump, in3, group __92: // jump, in3, group __93: // jump, in3, group -__94: // Only interested in == results +__94: // jump, in3, group +__95: // Only interested in == results ; @@ -116884,7 +117406,7 @@ __94: // Only interested in == results (*VdbeCursor)(unsafe.Pointer(pC3)).FdeferredMoveto = U8(0) (*VdbeCursor)(unsafe.Pointer(pC3)).FcacheStatus = U32(CACHE_STALE) if !((*VdbeCursor)(unsafe.Pointer(pC3)).FisTable != 0) { - goto __576 + goto __607 } // The OPFLAG_SEEKEQ/BTREE_SEEK_EQ flag is only set on index cursors @@ -116894,10 +117416,10 @@ __94: // Only interested in == results pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 flags31 = (*Mem)(unsafe.Pointer(pIn3)).Fflags if !(int32(flags31)&(MEM_Int|MEM_Real|MEM_IntReal|MEM_Str) == MEM_Str) { - goto __578 + goto __609 } applyNumericAffinity(tls, pIn3, 0) -__578: +__609: ; iKey = Xsqlite3VdbeIntValue(tls, pIn3) // Get the integer key value newType = (*Mem)(unsafe.Pointer(pIn3)).Fflags // Record the type after applying numeric affinity @@ -116906,29 +117428,29 @@ __578: // If the P3 value could not be converted into an integer without // loss of information, then special processing is required... if !(int32(newType)&(MEM_Int|MEM_IntReal) == 0) { - goto __579 + goto __610 } if !(int32(newType)&MEM_Real == 0) { - goto __580 + goto __611 } if !(int32(newType)&MEM_Null != 0 || oc >= OP_SeekGE) { - goto __581 + goto __612 } goto jump_to_p2 - goto __582 -__581: - rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), bp+328) + goto __613 +__612: + rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), bp+320) if !(rc != SQLITE_OK) { - goto __583 + goto __614 } goto abort_due_to_error -__583: +__614: ; goto seek_not_found -__582: +__613: ; -__580: +__611: ; c2 = Xsqlite3IntFloatCompare(tls, iKey, *(*float64)(unsafe.Pointer(pIn3))) @@ -116939,59 +117461,59 @@ __580: // (x > 4.9) -> (x >= 5) // (x <= 4.9) -> (x < 5) if !(c2 > 0) { - goto __584 + goto __615 } if !(oc&0x0001 == OP_SeekGT&0x0001) { - goto __586 + goto __617 } oc-- -__586: +__617: ; - goto __585 -__584: + goto __616 +__615: if !(c2 < 0) { - goto __587 + goto __618 } if !(oc&0x0001 == OP_SeekLT&0x0001) { - goto __588 + goto __619 } oc++ -__588: +__619: ; -__587: +__618: ; -__585: +__616: ; -__579: +__610: ; - rc = Xsqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), int64(U64(iKey)), 0, bp+328) + rc = Xsqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), int64(U64(iKey)), 0, bp+320) (*VdbeCursor)(unsafe.Pointer(pC3)).FmovetoTarget = iKey // Used by OP_Delete if !(rc != SQLITE_OK) { - goto __589 + goto __620 } goto abort_due_to_error -__589: +__620: ; - goto __577 -__576: + goto __608 +__607: // For a cursor with the OPFLAG_SEEKEQ/BTREE_SEEK_EQ hint, only the // OP_SeekGE and OP_SeekLE opcodes are allowed, and these must be // immediately followed by an OP_IdxGT or OP_IdxLT opcode, respectively, // with the same key. if !(Xsqlite3BtreeCursorHasHint(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), uint32(BTREE_SEEK_EQ)) != 0) { - goto __590 + goto __621 } eqOnly = 1 -__590: +__621: ; nField2 = *(*int32)(unsafe.Pointer(pOp + 16)) - (*UnpackedRecord)(unsafe.Pointer(bp + 336 /* &r */)).FpKeyInfo = (*VdbeCursor)(unsafe.Pointer(pC3)).FpKeyInfo - (*UnpackedRecord)(unsafe.Pointer(bp + 336 /* &r */)).FnField = U16(nField2) + (*UnpackedRecord)(unsafe.Pointer(bp + 328 /* &r */)).FpKeyInfo = (*VdbeCursor)(unsafe.Pointer(pC3)).FpKeyInfo + (*UnpackedRecord)(unsafe.Pointer(bp + 328 /* &r */)).FnField = U16(nField2) // The next line of code computes as follows, only faster: // if( oc==OP_SeekGT || oc==OP_SeekLE ){ @@ -116999,108 +117521,108 @@ __590: // }else{ // r.default_rc = +1; // } - (*UnpackedRecord)(unsafe.Pointer(bp + 336 /* &r */)).Fdefault_rc = func() int8 { + (*UnpackedRecord)(unsafe.Pointer(bp + 328 /* &r */)).Fdefault_rc = func() int8 { if 1&(oc-OP_SeekLT) != 0 { return int8(-1) } return +int8(1) }() - (*UnpackedRecord)(unsafe.Pointer(bp + 336 /* &r */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 - (*UnpackedRecord)(unsafe.Pointer(bp + 336 /* &r */)).FeqSeen = U8(0) - rc = Xsqlite3BtreeIndexMoveto(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), bp+336, bp+328) + (*UnpackedRecord)(unsafe.Pointer(bp + 328 /* &r */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 + (*UnpackedRecord)(unsafe.Pointer(bp + 328 /* &r */)).FeqSeen = U8(0) + rc = Xsqlite3BtreeIndexMoveto(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), bp+328, bp+320) if !(rc != SQLITE_OK) { - goto __591 + goto __622 } goto abort_due_to_error -__591: +__622: ; - if !(eqOnly != 0 && int32((*UnpackedRecord)(unsafe.Pointer(bp+336)).FeqSeen) == 0) { - goto __592 + if !(eqOnly != 0 && int32((*UnpackedRecord)(unsafe.Pointer(bp+328)).FeqSeen) == 0) { + goto __623 } goto seek_not_found -__592: +__623: ; -__577: +__608: ; if !(oc >= OP_SeekGE) { - goto __593 + goto __624 } - if !(*(*int32)(unsafe.Pointer(bp + 328)) < 0 || *(*int32)(unsafe.Pointer(bp + 328)) == 0 && oc == OP_SeekGT) { - goto __595 + if !(*(*int32)(unsafe.Pointer(bp + 320)) < 0 || *(*int32)(unsafe.Pointer(bp + 320)) == 0 && oc == OP_SeekGT) { + goto __626 } - *(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 0 + *(*int32)(unsafe.Pointer(bp + 320 /* res1 */)) = 0 rc = Xsqlite3BtreeNext(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), 0) if !(rc != SQLITE_OK) { - goto __597 + goto __628 } if !(rc == SQLITE_DONE) { - goto __598 + goto __629 } rc = SQLITE_OK - *(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 1 - goto __599 -__598: + *(*int32)(unsafe.Pointer(bp + 320 /* res1 */)) = 1 + goto __630 +__629: goto abort_due_to_error -__599: +__630: ; -__597: +__628: ; - goto __596 -__595: - *(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 0 -__596: + goto __627 +__626: + *(*int32)(unsafe.Pointer(bp + 320 /* res1 */)) = 0 +__627: ; - goto __594 -__593: + goto __625 +__624: ; - if !(*(*int32)(unsafe.Pointer(bp + 328)) > 0 || *(*int32)(unsafe.Pointer(bp + 328)) == 0 && oc == OP_SeekLT) { - goto __600 + if !(*(*int32)(unsafe.Pointer(bp + 320)) > 0 || *(*int32)(unsafe.Pointer(bp + 320)) == 0 && oc == OP_SeekLT) { + goto __631 } - *(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 0 + *(*int32)(unsafe.Pointer(bp + 320 /* res1 */)) = 0 rc = Xsqlite3BtreePrevious(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48)), 0) if !(rc != SQLITE_OK) { - goto __602 + goto __633 } if !(rc == SQLITE_DONE) { - goto __603 + goto __634 } rc = SQLITE_OK - *(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = 1 - goto __604 -__603: + *(*int32)(unsafe.Pointer(bp + 320 /* res1 */)) = 1 + goto __635 +__634: goto abort_due_to_error -__604: +__635: ; -__602: +__633: ; - goto __601 -__600: + goto __632 +__631: // res might be negative because the table is empty. Check to // see if this is the case. - *(*int32)(unsafe.Pointer(bp + 328 /* res1 */)) = Xsqlite3BtreeEof(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48))) -__601: + *(*int32)(unsafe.Pointer(bp + 320 /* res1 */)) = Xsqlite3BtreeEof(tls, *(*uintptr)(unsafe.Pointer(pC3 + 48))) +__632: ; -__594: +__625: ; seek_not_found: ; - if !(*(*int32)(unsafe.Pointer(bp + 328)) != 0) { - goto __605 + if !(*(*int32)(unsafe.Pointer(bp + 320)) != 0) { + goto __636 } goto jump_to_p2 - goto __606 -__605: + goto __637 +__636: if !(eqOnly != 0) { - goto __607 + goto __638 } pOp += 24 // Skip the OP_IdxLt or OP_IdxGT that follows -__607: +__638: ; -__606: +__637: ; goto __8 @@ -117139,17 +117661,21 @@ __606: // There are three possible outcomes from this opcode:<ol> // // <li> If after This.P1 steps, the cursor is still pointing to a place that - // is earlier in the btree than the target row, then fall through - // into the subsquence OP_SeekGE opcode. + // + // is earlier in the btree than the target row, then fall through + // into the subsquence OP_SeekGE opcode. // // <li> If the cursor is successfully moved to the target row by 0 or more - // sqlite3BtreeNext() calls, then jump to This.P2, which will land just - // past the OP_IdxGT or OP_IdxGE opcode that follows the OP_SeekGE. + // + // sqlite3BtreeNext() calls, then jump to This.P2, which will land just + // past the OP_IdxGT or OP_IdxGE opcode that follows the OP_SeekGE. // // <li> If the cursor ends up past the target row (indicating the the target - // row does not exist in the btree) then jump to SeekOP.P2. + // + // row does not exist in the btree) then jump to SeekOP.P2. + // // </ol> -__95: +__96: ; // pOp->p2 points to the first instruction past the OP_IdxGT that @@ -117158,72 +117684,72 @@ __95: pC4 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp+1*24)).Fp1)*8)) if !!(Xsqlite3BtreeCursorIsValidNN(tls, *(*uintptr)(unsafe.Pointer(pC4 + 48))) != 0) { - goto __608 + goto __639 } goto __8 -__608: +__639: ; nStep = (*Op)(unsafe.Pointer(pOp)).Fp1 - (*UnpackedRecord)(unsafe.Pointer(bp + 360 /* &r1 */)).FpKeyInfo = (*VdbeCursor)(unsafe.Pointer(pC4)).FpKeyInfo - (*UnpackedRecord)(unsafe.Pointer(bp + 360 /* &r1 */)).FnField = U16(*(*int32)(unsafe.Pointer(pOp + 1*24 + 16))) - (*UnpackedRecord)(unsafe.Pointer(bp + 360 /* &r1 */)).Fdefault_rc = int8(0) - (*UnpackedRecord)(unsafe.Pointer(bp + 360 /* &r1 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp+1*24)).Fp3)*56 - *(*int32)(unsafe.Pointer(bp + 384 /* res3 */)) = 0 // Not needed. Only used to silence a warning. -__609: + (*UnpackedRecord)(unsafe.Pointer(bp + 368 /* &r1 */)).FpKeyInfo = (*VdbeCursor)(unsafe.Pointer(pC4)).FpKeyInfo + (*UnpackedRecord)(unsafe.Pointer(bp + 368 /* &r1 */)).FnField = U16(*(*int32)(unsafe.Pointer(pOp + 1*24 + 16))) + (*UnpackedRecord)(unsafe.Pointer(bp + 368 /* &r1 */)).Fdefault_rc = int8(0) + (*UnpackedRecord)(unsafe.Pointer(bp + 368 /* &r1 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp+1*24)).Fp3)*56 + *(*int32)(unsafe.Pointer(bp + 408 /* res3 */)) = 0 // Not needed. Only used to silence a warning. +__640: if !(1 != 0) { - goto __610 + goto __641 } - rc = Xsqlite3VdbeIdxKeyCompare(tls, db, pC4, bp+360, bp+384) + rc = Xsqlite3VdbeIdxKeyCompare(tls, db, pC4, bp+368, bp+408) if !(rc != 0) { - goto __611 + goto __642 } goto abort_due_to_error -__611: +__642: ; - if !(*(*int32)(unsafe.Pointer(bp + 384)) > 0) { - goto __612 + if !(*(*int32)(unsafe.Pointer(bp + 408)) > 0) { + goto __643 } seekscan_search_fail: ; pOp += 24 goto jump_to_p2 -__612: +__643: ; - if !(*(*int32)(unsafe.Pointer(bp + 384)) == 0) { - goto __613 + if !(*(*int32)(unsafe.Pointer(bp + 408)) == 0) { + goto __644 } goto jump_to_p2 - goto __610 -__613: + goto __641 +__644: ; if !(nStep <= 0) { - goto __614 + goto __645 } - goto __610 -__614: + goto __641 +__645: ; nStep-- rc = Xsqlite3BtreeNext(tls, *(*uintptr)(unsafe.Pointer(pC4 + 48)), 0) if !(rc != 0) { - goto __615 + goto __646 } if !(rc == SQLITE_DONE) { - goto __616 + goto __647 } rc = SQLITE_OK goto seekscan_search_fail - goto __617 -__616: + goto __648 +__647: goto abort_due_to_error -__617: +__648: ; -__615: +__646: ; - goto __609 -__610: + goto __640 +__641: ; goto __8 @@ -117241,23 +117767,23 @@ __610: // early, thus saving work. This is part of the IN-early-out optimization. // // P1 must be a valid b-tree cursor. -__96: +__97: ; pC5 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) if !(int32((*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit) < (*Op)(unsafe.Pointer(pOp)).Fp2) { - goto __618 + goto __649 } (*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit = U16((*Op)(unsafe.Pointer(pOp)).Fp2) - goto __619 -__618: + goto __650 +__649: if !(int32((*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit) > (*Op)(unsafe.Pointer(pOp)).Fp3) { - goto __620 + goto __651 } (*VdbeCursor)(unsafe.Pointer(pC5)).FseekHit = U16((*Op)(unsafe.Pointer(pOp)).Fp3) -__620: +__651: ; -__619: +__650: ; goto __8 @@ -117265,14 +117791,14 @@ __619: // Synopsis: if( !csr[P1] ) goto P2 // // If cursor P1 is not open, jump to instruction P2. Otherwise, fall through. -__97: // jump +__98: // jump ; if !!(int32(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8))) != 0) { - goto __621 + goto __652 } goto jump_to_p2_and_check_for_interrupt -__621: +__652: ; goto __8 @@ -117362,133 +117888,129 @@ __621: // opcodes do not work after this operation. // // See also: NotFound, Found, NotExists -__98: +__99: ; pC6 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) if !(int32((*VdbeCursor)(unsafe.Pointer(pC6)).FseekHit) >= *(*int32)(unsafe.Pointer(pOp + 16))) { - goto __622 + goto __653 } goto __8 -__622: +__653: ; -__99: // jump, in3 __100: // jump, in3 -__101: +__101: // jump, in3 +__102: ; pC7 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) - pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 + (*UnpackedRecord)(unsafe.Pointer(bp + 416 /* &r2 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 - if !(*(*int32)(unsafe.Pointer(pOp + 16)) > 0) { - goto __623 + (*UnpackedRecord)(unsafe.Pointer(bp + 416 /* &r2 */)).FnField = U16(*(*int32)(unsafe.Pointer(pOp + 16))) + if !(int32((*UnpackedRecord)(unsafe.Pointer(bp+416)).FnField) > 0) { + goto __654 } - (*UnpackedRecord)(unsafe.Pointer(bp + 392 /* &r2 */)).FpKeyInfo = (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo - (*UnpackedRecord)(unsafe.Pointer(bp + 392 /* &r2 */)).FnField = U16(*(*int32)(unsafe.Pointer(pOp + 16))) - (*UnpackedRecord)(unsafe.Pointer(bp + 392 /* &r2 */)).FaMem = pIn3 - pIdxKey = bp + 392 /* &r2 */ - pFree = uintptr(0) - goto __624 -__623: + // Key values in an array of registers + (*UnpackedRecord)(unsafe.Pointer(bp + 416 /* &r2 */)).FpKeyInfo = (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo + (*UnpackedRecord)(unsafe.Pointer(bp + 416 /* &r2 */)).Fdefault_rc = int8(0) + rc = Xsqlite3BtreeIndexMoveto(tls, *(*uintptr)(unsafe.Pointer(pC7 + 48)), bp+416, pC7+36) + goto __655 +__654: + // Composite key generated by OP_MakeRecord ; + rc = func() int32 { - if int32((*Mem)(unsafe.Pointer(pIn3)).Fflags)&MEM_Zero != 0 { - return Xsqlite3VdbeMemExpandBlob(tls, pIn3) + if int32((*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(bp+416)).FaMem)).Fflags)&MEM_Zero != 0 { + return Xsqlite3VdbeMemExpandBlob(tls, (*UnpackedRecord)(unsafe.Pointer(bp+416)).FaMem) } return 0 }() if !(rc != 0) { - goto __625 + goto __656 } goto no_mem -__625: +__656: ; - pFree = libc.AssignUintptr(&pIdxKey, Xsqlite3VdbeAllocUnpackedRecord(tls, (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo)) + pIdxKey = Xsqlite3VdbeAllocUnpackedRecord(tls, (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo) if !(pIdxKey == uintptr(0)) { - goto __626 + goto __657 } goto no_mem -__626: - ; - Xsqlite3VdbeRecordUnpack(tls, (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo, (*Mem)(unsafe.Pointer(pIn3)).Fn, (*Mem)(unsafe.Pointer(pIn3)).Fz, pIdxKey) -__624: +__657: ; + Xsqlite3VdbeRecordUnpack(tls, (*VdbeCursor)(unsafe.Pointer(pC7)).FpKeyInfo, (*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(bp+416 /* &r2 */)).FaMem)).Fn, (*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(bp+416 /* &r2 */)).FaMem)).Fz, pIdxKey) (*UnpackedRecord)(unsafe.Pointer(pIdxKey)).Fdefault_rc = int8(0) - takeJump = 0 - if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_NoConflict) { - goto __627 - } - // For the OP_NoConflict opcode, take the jump if any of the - // input fields are NULL, since any key with a NULL will not - // conflict - ii1 = 0 -__628: - if !(ii1 < int32((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FnField)) { - goto __630 - } - if !(int32((*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(pIdxKey)).FaMem+uintptr(ii1)*56)).Fflags)&MEM_Null != 0) { - goto __631 - } - takeJump = 1 - goto __630 -__631: - ; - goto __629 -__629: - ii1++ - goto __628 - goto __630 -__630: - ; -__627: - ; - rc = Xsqlite3BtreeIndexMoveto(tls, *(*uintptr)(unsafe.Pointer(pC7 + 48)), pIdxKey, bp+416) - if !(pFree != 0) { - goto __632 - } - Xsqlite3DbFreeNN(tls, db, pFree) -__632: + rc = Xsqlite3BtreeIndexMoveto(tls, *(*uintptr)(unsafe.Pointer(pC7 + 48)), pIdxKey, pC7+36) + Xsqlite3DbFreeNN(tls, db, pIdxKey) +__655: ; if !(rc != SQLITE_OK) { - goto __633 + goto __658 } goto abort_due_to_error -__633: +__658: ; - (*VdbeCursor)(unsafe.Pointer(pC7)).FseekResult = *(*int32)(unsafe.Pointer(bp + 416 /* res4 */)) - alreadyExists = libc.Bool32(*(*int32)(unsafe.Pointer(bp + 416)) == 0) + alreadyExists = libc.Bool32((*VdbeCursor)(unsafe.Pointer(pC7)).FseekResult == 0) (*VdbeCursor)(unsafe.Pointer(pC7)).FnullRow = U8(1 - alreadyExists) (*VdbeCursor)(unsafe.Pointer(pC7)).FdeferredMoveto = U8(0) (*VdbeCursor)(unsafe.Pointer(pC7)).FcacheStatus = U32(CACHE_STALE) if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_Found) { - goto __634 + goto __659 } if !(alreadyExists != 0) { - goto __636 + goto __661 } goto jump_to_p2 -__636: +__661: ; - goto __635 -__634: + goto __660 +__659: + if !!(alreadyExists != 0) { + goto __662 + } + + goto jump_to_p2 +__662: ; - if !(takeJump != 0 || !(alreadyExists != 0)) { - goto __637 + if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_NoConflict) { + goto __663 } + // For the OP_NoConflict opcode, take the jump if any of the + // input fields are NULL, since any key with a NULL will not + // conflict + ii1 = 0 +__664: + if !(ii1 < int32((*UnpackedRecord)(unsafe.Pointer(bp+416)).FnField)) { + goto __666 + } + if !(int32((*Mem)(unsafe.Pointer((*UnpackedRecord)(unsafe.Pointer(bp+416)).FaMem+uintptr(ii1)*56)).Fflags)&MEM_Null != 0) { + goto __667 + } + goto jump_to_p2 -__637: +__667: ; + goto __665 +__665: + ii1++ + goto __664 + goto __666 +__666: + ; +__663: + ; + if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_IfNoHope) { - goto __638 + goto __668 } (*VdbeCursor)(unsafe.Pointer(pC7)).FseekHit = U16(*(*int32)(unsafe.Pointer(pOp + 16))) -__638: +__668: ; -__635: +__660: ; goto __8 @@ -117537,31 +118059,31 @@ __635: // not work following this opcode. // // See also: Found, NotFound, NoConflict, SeekRowid -__102: +__103: pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 if !(int32((*Mem)(unsafe.Pointer(pIn3)).Fflags)&(MEM_Int|MEM_IntReal) == 0) { - goto __639 + goto __669 } // If pIn3->u.i does not contain an integer, compute iKey as the // integer value of pIn3. Jump to P2 if pIn3 cannot be converted // into an integer without loss of information. Take care to avoid // changing the datatype of pIn3, however, as it is used by other // parts of the prepared statement. - *(*Mem)(unsafe.Pointer(bp + 424 /* x */)) = *(*Mem)(unsafe.Pointer(pIn3)) - applyAffinity(tls, bp+424, int8(SQLITE_AFF_NUMERIC), encoding) - if !(int32((*Mem)(unsafe.Pointer(bp+424)).Fflags)&MEM_Int == 0) { - goto __640 + *(*Mem)(unsafe.Pointer(bp + 456 /* x */)) = *(*Mem)(unsafe.Pointer(pIn3)) + applyAffinity(tls, bp+456, int8(SQLITE_AFF_NUMERIC), encoding) + if !(int32((*Mem)(unsafe.Pointer(bp+456)).Fflags)&MEM_Int == 0) { + goto __670 } goto jump_to_p2 -__640: +__670: ; - iKey1 = U64(*(*I64)(unsafe.Pointer(bp + 424))) + iKey1 = U64(*(*I64)(unsafe.Pointer(bp + 456))) goto notExistsWithKey -__639: +__669: ; -__103: // jump, in3 +__104: // jump, in3 pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 iKey1 = U64(*(*I64)(unsafe.Pointer(pIn3))) @@ -117570,35 +118092,35 @@ notExistsWithKey: pCrsr2 = *(*uintptr)(unsafe.Pointer(pC8 + 48)) - *(*int32)(unsafe.Pointer(bp + 480 /* res5 */)) = 0 - rc = Xsqlite3BtreeTableMoveto(tls, pCrsr2, int64(iKey1), 0, bp+480) + *(*int32)(unsafe.Pointer(bp + 512 /* res4 */)) = 0 + rc = Xsqlite3BtreeTableMoveto(tls, pCrsr2, int64(iKey1), 0, bp+512) (*VdbeCursor)(unsafe.Pointer(pC8)).FmovetoTarget = I64(iKey1) // Used by OP_Delete (*VdbeCursor)(unsafe.Pointer(pC8)).FnullRow = U8(0) (*VdbeCursor)(unsafe.Pointer(pC8)).FcacheStatus = U32(CACHE_STALE) (*VdbeCursor)(unsafe.Pointer(pC8)).FdeferredMoveto = U8(0) - (*VdbeCursor)(unsafe.Pointer(pC8)).FseekResult = *(*int32)(unsafe.Pointer(bp + 480 /* res5 */)) - if !(*(*int32)(unsafe.Pointer(bp + 480)) != 0) { - goto __641 + (*VdbeCursor)(unsafe.Pointer(pC8)).FseekResult = *(*int32)(unsafe.Pointer(bp + 512 /* res4 */)) + if !(*(*int32)(unsafe.Pointer(bp + 512)) != 0) { + goto __671 } if !((*Op)(unsafe.Pointer(pOp)).Fp2 == 0) { - goto __642 + goto __672 } - rc = Xsqlite3CorruptError(tls, 92480) - goto __643 -__642: + rc = Xsqlite3CorruptError(tls, 93496) + goto __673 +__672: goto jump_to_p2 -__643: +__673: ; -__641: +__671: ; if !(rc != 0) { - goto __644 + goto __674 } goto abort_due_to_error -__644: +__674: ; goto __8 @@ -117609,7 +118131,7 @@ __644: // Write the sequence number into register P2. // The sequence number on the cursor is incremented after this // instruction. -__104: // out2 +__105: // out2 ; pOut = out2Prerelease(tls, p, pOp) @@ -117630,10 +118152,10 @@ __104: // out2 // an SQLITE_FULL error is generated. The P3 register is updated with the ' // generated record number. This P3 mechanism is used to help implement the // AUTOINCREMENT feature. -__105: // Root frame of VDBE +__106: // Root frame of VDBE - *(*I64)(unsafe.Pointer(bp + 488 /* v */)) = int64(0) - *(*int32)(unsafe.Pointer(bp + 484 /* res6 */)) = 0 + *(*I64)(unsafe.Pointer(bp + 520 /* v3 */)) = int64(0) + *(*int32)(unsafe.Pointer(bp + 516 /* res5 */)) = 0 pOut = out2Prerelease(tls, p, pOp) pC9 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) @@ -117656,89 +118178,89 @@ __105: // Root frame of VDBE // to provide the constant while making all compilers happy. if !!(int32(*(*uint8)(unsafe.Pointer(pC9 + 8))&0x2>>1) != 0) { - goto __645 + goto __675 } - rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC9 + 48)), bp+484) + rc = Xsqlite3BtreeLast(tls, *(*uintptr)(unsafe.Pointer(pC9 + 48)), bp+516) if !(rc != SQLITE_OK) { - goto __646 + goto __676 } goto abort_due_to_error -__646: +__676: ; - if !(*(*int32)(unsafe.Pointer(bp + 484)) != 0) { - goto __647 + if !(*(*int32)(unsafe.Pointer(bp + 516)) != 0) { + goto __677 } - *(*I64)(unsafe.Pointer(bp + 488 /* v */)) = int64(1) // IMP: R-61914-48074 - goto __648 -__647: + *(*I64)(unsafe.Pointer(bp + 520 /* v3 */)) = int64(1) // IMP: R-61914-48074 + goto __678 +__677: ; - *(*I64)(unsafe.Pointer(bp + 488 /* v */)) = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC9 + 48))) - if !(*(*I64)(unsafe.Pointer(bp + 488)) >= int64(U64(uint64(0x7fffffff))<<32|uint64(0xffffffff))) { - goto __649 + *(*I64)(unsafe.Pointer(bp + 520 /* v3 */)) = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC9 + 48))) + if !(*(*I64)(unsafe.Pointer(bp + 520)) >= int64(U64(uint64(0x7fffffff))<<32|uint64(0xffffffff))) { + goto __679 } libc.SetBitFieldPtr8Uint32(pC9+8, Bool(1), 1, 0x2) - goto __650 -__649: - *(*I64)(unsafe.Pointer(bp + 488 /* v */))++ // IMP: R-29538-34987 -__650: + goto __680 +__679: + *(*I64)(unsafe.Pointer(bp + 520 /* v3 */))++ // IMP: R-29538-34987 +__680: ; -__648: +__678: ; -__645: +__675: ; if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) { - goto __651 + goto __681 } // Assert that P3 is a valid memory cell. if !((*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) { - goto __652 + goto __682 } pFrame1 = (*Vdbe)(unsafe.Pointer(p)).FpFrame -__654: +__684: if !((*VdbeFrame)(unsafe.Pointer(pFrame1)).FpParent != 0) { - goto __656 + goto __686 } - goto __655 -__655: + goto __685 +__685: pFrame1 = (*VdbeFrame)(unsafe.Pointer(pFrame1)).FpParent - goto __654 - goto __656 -__656: + goto __684 + goto __686 +__686: ; // Assert that P3 is a valid memory cell. - pMem1 = (*VdbeFrame)(unsafe.Pointer(pFrame1)).FaMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 - goto __653 -__652: + pMem = (*VdbeFrame)(unsafe.Pointer(pFrame1)).FaMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 + goto __683 +__682: // Assert that P3 is a valid memory cell. ; - pMem1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 + pMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 -__653: +__683: ; - Xsqlite3VdbeMemIntegerify(tls, pMem1) + Xsqlite3VdbeMemIntegerify(tls, pMem) // mem(P3) holds an integer - if !(*(*I64)(unsafe.Pointer(pMem1)) == int64(U64(uint64(0x7fffffff))<<32|uint64(0xffffffff)) || Bool(int32(*(*uint8)(unsafe.Pointer(pC9 + 8))&0x2>>1)) != 0) { - goto __657 + if !(*(*I64)(unsafe.Pointer(pMem)) == int64(U64(uint64(0x7fffffff))<<32|uint64(0xffffffff)) || Bool(int32(*(*uint8)(unsafe.Pointer(pC9 + 8))&0x2>>1)) != 0) { + goto __687 } rc = SQLITE_FULL // IMP: R-17817-00630 goto abort_due_to_error -__657: +__687: ; - if !(*(*I64)(unsafe.Pointer(bp + 488)) < *(*I64)(unsafe.Pointer(pMem1))+int64(1)) { - goto __658 + if !(*(*I64)(unsafe.Pointer(bp + 520)) < *(*I64)(unsafe.Pointer(pMem))+int64(1)) { + goto __688 } - *(*I64)(unsafe.Pointer(bp + 488 /* v */)) = *(*I64)(unsafe.Pointer(pMem1)) + int64(1) -__658: + *(*I64)(unsafe.Pointer(bp + 520 /* v3 */)) = *(*I64)(unsafe.Pointer(pMem)) + int64(1) +__688: ; - *(*I64)(unsafe.Pointer(pMem1)) = *(*I64)(unsafe.Pointer(bp + 488 /* v */)) -__651: + *(*I64)(unsafe.Pointer(pMem)) = *(*I64)(unsafe.Pointer(bp + 520 /* v3 */)) +__681: ; if !(Bool(int32(*(*uint8)(unsafe.Pointer(pC9 + 8))&0x2>>1)) != 0) { - goto __659 + goto __689 } // IMPLEMENTATION-OF: R-07677-41881 If the largest ROWID is equal to the // largest possible integer (9223372036854775807) then the database @@ -117747,41 +118269,41 @@ __651: // We cannot be in random rowid mode if this is // an AUTOINCREMENT table. cnt1 = 0 -__660: - Xsqlite3_randomness(tls, int32(unsafe.Sizeof(I64(0))), bp+488) - *(*I64)(unsafe.Pointer(bp + 488 /* v */)) &= I64(int64(U64(uint64(0x7fffffff))<<32|uint64(0xffffffff))) >> 1 - *(*I64)(unsafe.Pointer(bp + 488 /* v */))++ // Ensure that v is greater than zero - goto __661 -__661: - if libc.AssignInt32(&rc, Xsqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(pC9 + 48)), int64(U64(*(*I64)(unsafe.Pointer(bp + 488)))), - 0, bp+484)) == SQLITE_OK && - *(*int32)(unsafe.Pointer(bp + 484)) == 0 && +__690: + Xsqlite3_randomness(tls, int32(unsafe.Sizeof(I64(0))), bp+520) + *(*I64)(unsafe.Pointer(bp + 520 /* v3 */)) &= I64(int64(U64(uint64(0x7fffffff))<<32|uint64(0xffffffff))) >> 1 + *(*I64)(unsafe.Pointer(bp + 520 /* v3 */))++ // Ensure that v is greater than zero + goto __691 +__691: + if libc.AssignInt32(&rc, Xsqlite3BtreeTableMoveto(tls, *(*uintptr)(unsafe.Pointer(pC9 + 48)), int64(U64(*(*I64)(unsafe.Pointer(bp + 520)))), + 0, bp+516)) == SQLITE_OK && + *(*int32)(unsafe.Pointer(bp + 516)) == 0 && libc.PreIncInt32(&cnt1, 1) < 100 { - goto __660 + goto __690 } - goto __662 -__662: + goto __692 +__692: ; if !(rc != 0) { - goto __663 + goto __693 } goto abort_due_to_error -__663: +__693: ; - if !(*(*int32)(unsafe.Pointer(bp + 484)) == 0) { - goto __664 + if !(*(*int32)(unsafe.Pointer(bp + 516)) == 0) { + goto __694 } rc = SQLITE_FULL // IMP: R-38219-53002 goto abort_due_to_error -__664: +__694: ; // EV: R-40812-03570 -__659: +__689: ; (*VdbeCursor)(unsafe.Pointer(pC9)).FdeferredMoveto = U8(0) (*VdbeCursor)(unsafe.Pointer(pC9)).FcacheStatus = U32(CACHE_STALE) - *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 488 /* v */)) + *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 520 /* v3 */)) goto __8 // Opcode: Insert P1 P2 P3 P4 P5 @@ -117820,7 +118342,7 @@ __659: // // This instruction only works on tables. The equivalent instruction // for indices is OP_IdxInsert. -__106: // Payload to be inserted +__107: // Payload to be inserted pData = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 @@ -117828,63 +118350,63 @@ __106: // Payload to be inserted pKey = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 - (*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnKey = *(*I64)(unsafe.Pointer(pKey)) + (*BtreePayload)(unsafe.Pointer(bp + 528 /* &x1 */)).FnKey = *(*I64)(unsafe.Pointer(pKey)) - if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -6 && ((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 || (*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback != 0)) { - goto __665 + if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -5 && ((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 || (*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback != 0)) { + goto __695 } zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*VdbeCursor)(unsafe.Pointer(pC10)).FiDb)*32)).FzDbSName pTab1 = *(*uintptr)(unsafe.Pointer(pOp + 16)) - goto __666 -__665: + goto __696 +__695: pTab1 = uintptr(0) zDb = uintptr(0) -__666: +__696: ; // Invoke the pre-update hook, if any if !(pTab1 != 0) { - goto __667 + goto __697 } if !((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 && !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_ISUPDATE != 0)) { - goto __668 + goto __698 } - Xsqlite3VdbePreUpdateHook(tls, p, pC10, SQLITE_INSERT, zDb, pTab1, (*BtreePayload)(unsafe.Pointer(bp+496 /* &x1 */)).FnKey, (*Op)(unsafe.Pointer(pOp)).Fp2, -1) -__668: + Xsqlite3VdbePreUpdateHook(tls, p, pC10, SQLITE_INSERT, zDb, pTab1, (*BtreePayload)(unsafe.Pointer(bp+528 /* &x1 */)).FnKey, (*Op)(unsafe.Pointer(pOp)).Fp2, -1) +__698: ; if !((*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback == uintptr(0) || (*Table)(unsafe.Pointer(pTab1)).FaCol == uintptr(0)) { - goto __669 + goto __699 } // Prevent post-update hook from running in cases when it should not pTab1 = uintptr(0) -__669: +__699: ; -__667: +__697: ; if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_ISNOOP != 0) { - goto __670 + goto __700 } goto __8 -__670: +__700: ; if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_NCHANGE != 0) { - goto __671 + goto __701 } (*Vdbe)(unsafe.Pointer(p)).FnChange++ -__671: +__701: ; if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_LASTROWID != 0) { - goto __672 + goto __702 } - (*Sqlite3)(unsafe.Pointer(db)).FlastRowid = (*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnKey -__672: + (*Sqlite3)(unsafe.Pointer(db)).FlastRowid = (*BtreePayload)(unsafe.Pointer(bp + 528 /* &x1 */)).FnKey +__702: ; - (*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FpData = (*Mem)(unsafe.Pointer(pData)).Fz - (*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnData = (*Mem)(unsafe.Pointer(pData)).Fn + (*BtreePayload)(unsafe.Pointer(bp + 528 /* &x1 */)).FpData = (*Mem)(unsafe.Pointer(pData)).Fz + (*BtreePayload)(unsafe.Pointer(bp + 528 /* &x1 */)).FnData = (*Mem)(unsafe.Pointer(pData)).Fn seekResult = func() int32 { if int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_USESEEKRESULT != 0 { return (*VdbeCursor)(unsafe.Pointer(pC10)).FseekResult @@ -117892,16 +118414,16 @@ __672: return 0 }() if !(int32((*Mem)(unsafe.Pointer(pData)).Fflags)&MEM_Zero != 0) { - goto __673 + goto __703 } - (*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnZero = *(*int32)(unsafe.Pointer(pData)) - goto __674 -__673: - (*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FnZero = 0 -__674: + (*BtreePayload)(unsafe.Pointer(bp + 528 /* &x1 */)).FnZero = *(*int32)(unsafe.Pointer(pData)) + goto __704 +__703: + (*BtreePayload)(unsafe.Pointer(bp + 528 /* &x1 */)).FnZero = 0 +__704: ; - (*BtreePayload)(unsafe.Pointer(bp + 496 /* &x1 */)).FpKey = uintptr(0) - rc = Xsqlite3BtreeInsert(tls, *(*uintptr)(unsafe.Pointer(pC10 + 48)), bp+496, + (*BtreePayload)(unsafe.Pointer(bp + 528 /* &x1 */)).FpKey = uintptr(0) + rc = Xsqlite3BtreeInsert(tls, *(*uintptr)(unsafe.Pointer(pC10 + 48)), bp+528, int32((*Op)(unsafe.Pointer(pOp)).Fp5)&(OPFLAG_APPEND|OPFLAG_SAVEPOSITION|OPFLAG_PREFORMAT), seekResult) (*VdbeCursor)(unsafe.Pointer(pC10)).FdeferredMoveto = U8(0) @@ -117909,13 +118431,13 @@ __674: // Invoke the update-hook if required. if !(rc != 0) { - goto __675 + goto __705 } goto abort_due_to_error -__675: +__705: ; if !(pTab1 != 0) { - goto __676 + goto __706 } (*struct { @@ -117927,8 +118449,8 @@ __675: } return SQLITE_INSERT }(), - zDb, (*Table)(unsafe.Pointer(pTab1)).FzName, (*BtreePayload)(unsafe.Pointer(bp+496 /* &x1 */)).FnKey) -__676: + zDb, (*Table)(unsafe.Pointer(pTab1)).FzName, (*BtreePayload)(unsafe.Pointer(bp+528 /* &x1 */)).FnKey) +__706: ; goto __8 @@ -117942,7 +118464,7 @@ __676: // // This opcode must be followed by either an Insert or InsertIdx opcode // with the OPFLAG_PREFORMAT flag set to complete the insert operation. -__107: // Rowid value to insert with +__108: // Rowid value to insert with ; pDest1 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) @@ -117954,10 +118476,10 @@ __107: // Rowid value to insert with } rc = Xsqlite3BtreeTransferRow(tls, *(*uintptr)(unsafe.Pointer(pDest1 + 48)), *(*uintptr)(unsafe.Pointer(pSrc + 48)), iKey2) if !(rc != SQLITE_OK) { - goto __677 + goto __707 } goto abort_due_to_error -__677: +__707: ; goto __8 @@ -117995,7 +118517,7 @@ __677: // If the OPFLAG_ISUPDATE flag is set in P2, then P3 contains the address // of the memory cell that contains the value that the rowid of the row will // be set to by the update. -__108: +__109: opflags = (*Op)(unsafe.Pointer(pOp)).Fp2 @@ -118006,29 +118528,29 @@ __108: // of p4.pTab. Finally, if p5 is true, indicating that this cursor was // last moved with OP_Next or OP_Prev, not Seek or NotFound, set // VdbeCursor.movetoTarget to the current rowid. - if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -6 && ((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 || (*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback != 0)) { - goto __678 + if !(int32((*Op)(unsafe.Pointer(pOp)).Fp4type) == -5 && ((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 || (*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback != 0)) { + goto __708 } zDb1 = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*VdbeCursor)(unsafe.Pointer(pC11)).FiDb)*32)).FzDbSName pTab2 = *(*uintptr)(unsafe.Pointer(pOp + 16)) if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_SAVEPOSITION != 0 && (*VdbeCursor)(unsafe.Pointer(pC11)).FisTable != 0) { - goto __680 + goto __710 } (*VdbeCursor)(unsafe.Pointer(pC11)).FmovetoTarget = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC11 + 48))) -__680: +__710: ; - goto __679 -__678: + goto __709 +__708: zDb1 = uintptr(0) pTab2 = uintptr(0) -__679: +__709: ; // Invoke the pre-update-hook if required. if !((*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 && pTab2 != 0) { - goto __681 + goto __711 } Xsqlite3VdbePreUpdateHook(tls, p, pC11, @@ -118040,13 +118562,13 @@ __679: }(), zDb1, pTab2, (*VdbeCursor)(unsafe.Pointer(pC11)).FmovetoTarget, (*Op)(unsafe.Pointer(pOp)).Fp3, -1) -__681: +__711: ; if !(opflags&OPFLAG_ISNOOP != 0) { - goto __682 + goto __712 } goto __8 -__682: +__712: ; // Only flags that can be set are SAVEPOISTION and AUXDELETE @@ -118055,28 +118577,28 @@ __682: (*VdbeCursor)(unsafe.Pointer(pC11)).FcacheStatus = U32(CACHE_STALE) (*VdbeCursor)(unsafe.Pointer(pC11)).FseekResult = 0 if !(rc != 0) { - goto __683 + goto __713 } goto abort_due_to_error -__683: +__713: ; // Invoke the update-hook if required. if !(opflags&OPFLAG_NCHANGE != 0) { - goto __684 + goto __714 } (*Vdbe)(unsafe.Pointer(p)).FnChange++ if !((*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback != 0 && pTab2 != uintptr(0) && (*Table)(unsafe.Pointer(pTab2)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) { - goto __685 + goto __715 } (*struct { f func(*libc.TLS, uintptr, int32, uintptr, uintptr, Sqlite_int64) })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3)(unsafe.Pointer(db)).FxUpdateCallback})).f(tls, (*Sqlite3)(unsafe.Pointer(db)).FpUpdateArg, SQLITE_DELETE, zDb1, (*Table)(unsafe.Pointer(pTab2)).FzName, (*VdbeCursor)(unsafe.Pointer(pC11)).FmovetoTarget) -__685: +__715: ; -__684: +__714: ; goto __8 @@ -118087,7 +118609,7 @@ __684: // change counter (returned by subsequent calls to sqlite3_changes()). // Then the VMs internal change counter resets to 0. // This is used by trigger programs. -__109: +__110: Xsqlite3VdbeSetChanges(tls, db, (*Vdbe)(unsafe.Pointer(p)).FnChange) (*Vdbe)(unsafe.Pointer(p)).FnChange = int64(0) goto __8 @@ -118106,26 +118628,26 @@ __109: // // Fall through to next instruction if the two records compare equal to // each other. Jump to P2 if they are different. -__110: +__111: pC12 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 nKeyCol = *(*int32)(unsafe.Pointer(pOp + 16)) - *(*int32)(unsafe.Pointer(bp + 544 /* res7 */)) = 0 - rc = Xsqlite3VdbeSorterCompare(tls, pC12, pIn3, nKeyCol, bp+544) + *(*int32)(unsafe.Pointer(bp + 576 /* res6 */)) = 0 + rc = Xsqlite3VdbeSorterCompare(tls, pC12, pIn3, nKeyCol, bp+576) if !(rc != 0) { - goto __686 + goto __716 } goto abort_due_to_error -__686: +__716: ; - if !(*(*int32)(unsafe.Pointer(bp + 544)) != 0) { - goto __687 + if !(*(*int32)(unsafe.Pointer(bp + 576)) != 0) { + goto __717 } goto jump_to_p2 -__687: +__717: ; goto __8 @@ -118140,7 +118662,7 @@ __687: // OpenPseudo. That pseudo-table cursor is the one that is identified by // parameter P3. Clearing the P3 column cache as part of this opcode saves // us from having to issue a separate NullRow instruction to clear that cache. -__111: +__112: pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 pC13 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) @@ -118148,10 +118670,10 @@ __111: rc = Xsqlite3VdbeSorterRowkey(tls, pC13, pOut) if !(rc != 0) { - goto __688 + goto __718 } goto abort_due_to_error -__688: +__718: ; (*VdbeCursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*8)))).FcacheStatus = U32(CACHE_STALE) goto __8 @@ -118183,7 +118705,7 @@ __688: // in OP_Result and any OP_Result will invalidate the P2 register content. // The P2 register content is invalidated by opcodes like OP_Function or // by any use of another cursor pointing to the same table. -__112: +__113: pOut = out2Prerelease(tls, p, pOp) @@ -118201,35 +118723,35 @@ __112: n3 = Xsqlite3BtreePayloadSize(tls, pCrsr3) if !(n3 > U32(*(*int32)(unsafe.Pointer(db + 136)))) { - goto __689 + goto __719 } goto too_big -__689: +__719: ; rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCrsr3, n3, pOut) if !(rc != 0) { - goto __690 + goto __720 } goto abort_due_to_error -__690: +__720: ; if !!((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) { - goto __691 + goto __721 } if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&MEM_Ephem != 0 && Xsqlite3VdbeMemMakeWriteable(tls, pOut) != 0) { - goto __692 + goto __722 } goto no_mem -__692: +__722: ; -__691: +__721: ; goto __8 // Opcode: Rowid P1 P2 * * * - // Synopsis: r[P2]=rowid + // Synopsis: r[P2]=PX rowid of P1 // // Store in register P2 an integer which is the key of the table entry that // P1 is currently point to. @@ -118237,27 +118759,27 @@ __691: // P1 can be either an ordinary table or a virtual table. There used to // be a separate OP_VRowid opcode for use with virtual tables, but this // one opcode now works for both table types. -__113: +__114: pOut = out2Prerelease(tls, p, pOp) pC15 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) if !((*VdbeCursor)(unsafe.Pointer(pC15)).FnullRow != 0) { - goto __693 + goto __723 } (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Null) goto __8 - goto __694 -__693: + goto __724 +__723: if !((*VdbeCursor)(unsafe.Pointer(pC15)).FdeferredMoveto != 0) { - goto __695 + goto __725 } - *(*I64)(unsafe.Pointer(bp + 552 /* v3 */)) = (*VdbeCursor)(unsafe.Pointer(pC15)).FmovetoTarget - goto __696 -__695: + *(*I64)(unsafe.Pointer(bp + 584 /* v4 */)) = (*VdbeCursor)(unsafe.Pointer(pC15)).FmovetoTarget + goto __726 +__725: if !(int32((*VdbeCursor)(unsafe.Pointer(pC15)).FeCurType) == CURTYPE_VTAB) { - goto __697 + goto __727 } pVtab = (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pC15 + 48)))).FpVtab @@ -118265,40 +118787,40 @@ __695: rc = (*struct { f func(*libc.TLS, uintptr, uintptr) int32 - })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule)).FxRowid})).f(tls, *(*uintptr)(unsafe.Pointer(pC15 + 48 /* &.uc */)), bp+552 /* &v3 */) + })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule)).FxRowid})).f(tls, *(*uintptr)(unsafe.Pointer(pC15 + 48 /* &.uc */)), bp+584 /* &v4 */) Xsqlite3VtabImportErrmsg(tls, p, pVtab) if !(rc != 0) { - goto __699 + goto __729 } goto abort_due_to_error -__699: +__729: ; - goto __698 -__697: + goto __728 +__727: ; rc = Xsqlite3VdbeCursorRestore(tls, pC15) if !(rc != 0) { - goto __700 + goto __730 } goto abort_due_to_error -__700: +__730: ; if !((*VdbeCursor)(unsafe.Pointer(pC15)).FnullRow != 0) { - goto __701 + goto __731 } (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Null) goto __8 -__701: +__731: ; - *(*I64)(unsafe.Pointer(bp + 552 /* v3 */)) = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC15 + 48))) -__698: + *(*I64)(unsafe.Pointer(bp + 584 /* v4 */)) = Xsqlite3BtreeIntegerKey(tls, *(*uintptr)(unsafe.Pointer(pC15 + 48))) +__728: ; -__696: +__726: ; -__694: +__724: ; - *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 552 /* v3 */)) + *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 584 /* v4 */)) goto __8 // Opcode: NullRow P1 * * * * @@ -118307,21 +118829,37 @@ __694: // that occur while the cursor is on the null row will always // write a NULL. // - // Or, if P1 is a Pseudo-Cursor (a cursor opened using OP_OpenPseudo) - // just reset the cache for that cursor. This causes the row of - // content held by the pseudo-cursor to be reparsed. -__114: + // If cursor P1 is not previously opened, open it now to a special + // pseudo-cursor that always returns NULL for every column. +__115: ; pC16 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) - + if !(pC16 == uintptr(0)) { + goto __732 + } + // If the cursor is not already open, create a special kind of + // pseudo-cursor that always gives null rows. + pC16 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, 1, uint8(CURTYPE_PSEUDO)) + if !(pC16 == uintptr(0)) { + goto __733 + } + goto no_mem +__733: + ; + (*VdbeCursor)(unsafe.Pointer(pC16)).FseekResult = 0 + (*VdbeCursor)(unsafe.Pointer(pC16)).FisTable = U8(1) + libc.SetBitFieldPtr8Uint32(pC16+8, Bool(1), 3, 0x8) + *(*uintptr)(unsafe.Pointer(pC16 + 48)) = Xsqlite3BtreeFakeValidCursor(tls) +__732: + ; (*VdbeCursor)(unsafe.Pointer(pC16)).FnullRow = U8(1) (*VdbeCursor)(unsafe.Pointer(pC16)).FcacheStatus = U32(CACHE_STALE) if !(int32((*VdbeCursor)(unsafe.Pointer(pC16)).FeCurType) == CURTYPE_BTREE) { - goto __702 + goto __734 } Xsqlite3BtreeClearCursor(tls, *(*uintptr)(unsafe.Pointer(pC16 + 48))) -__702: +__734: ; goto __8 @@ -118345,48 +118883,48 @@ __702: // This opcode leaves the cursor configured to move in reverse order, // from the end toward the beginning. In other words, the cursor is // configured to use Prev, not Next. -__115: __116: +__117: ; pC17 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) pCrsr4 = *(*uintptr)(unsafe.Pointer(pC17 + 48)) - *(*int32)(unsafe.Pointer(bp + 560 /* res8 */)) = 0 + *(*int32)(unsafe.Pointer(bp + 592 /* res7 */)) = 0 if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_SeekEnd) { - goto __703 + goto __735 } (*VdbeCursor)(unsafe.Pointer(pC17)).FseekResult = -1 if !(Xsqlite3BtreeCursorIsValidNN(tls, pCrsr4) != 0) { - goto __704 + goto __736 } goto __8 -__704: +__736: ; -__703: +__735: ; - rc = Xsqlite3BtreeLast(tls, pCrsr4, bp+560) - (*VdbeCursor)(unsafe.Pointer(pC17)).FnullRow = U8(*(*int32)(unsafe.Pointer(bp + 560 /* res8 */))) + rc = Xsqlite3BtreeLast(tls, pCrsr4, bp+592) + (*VdbeCursor)(unsafe.Pointer(pC17)).FnullRow = U8(*(*int32)(unsafe.Pointer(bp + 592 /* res7 */))) (*VdbeCursor)(unsafe.Pointer(pC17)).FdeferredMoveto = U8(0) (*VdbeCursor)(unsafe.Pointer(pC17)).FcacheStatus = U32(CACHE_STALE) if !(rc != 0) { - goto __705 + goto __737 } goto abort_due_to_error -__705: +__737: ; if !((*Op)(unsafe.Pointer(pOp)).Fp2 > 0) { - goto __706 + goto __738 } - if !(*(*int32)(unsafe.Pointer(bp + 560)) != 0) { - goto __707 + if !(*(*int32)(unsafe.Pointer(bp + 592)) != 0) { + goto __739 } goto jump_to_p2 -__707: +__739: ; -__706: +__738: ; goto __8 @@ -118394,37 +118932,37 @@ __706: // // Estimate the number of rows in the table P1. Jump to P2 if that // estimate is less than approximately 2**(0.1*P3). -__117: +__118: ; pC18 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) pCrsr5 = *(*uintptr)(unsafe.Pointer(pC18 + 48)) - rc = Xsqlite3BtreeFirst(tls, pCrsr5, bp+564) + rc = Xsqlite3BtreeFirst(tls, pCrsr5, bp+596) if !(rc != 0) { - goto __708 + goto __740 } goto abort_due_to_error -__708: +__740: ; - if !(*(*int32)(unsafe.Pointer(bp + 564)) == 0) { - goto __709 + if !(*(*int32)(unsafe.Pointer(bp + 596)) == 0) { + goto __741 } sz = Xsqlite3BtreeRowCountEst(tls, pCrsr5) if !(sz >= int64(0) && int32(Xsqlite3LogEst(tls, U64(sz))) < (*Op)(unsafe.Pointer(pOp)).Fp3) { - goto __710 + goto __742 } - *(*int32)(unsafe.Pointer(bp + 564 /* res9 */)) = 1 -__710: + *(*int32)(unsafe.Pointer(bp + 596 /* res8 */)) = 1 +__742: ; -__709: +__741: ; - if !(*(*int32)(unsafe.Pointer(bp + 564)) != 0) { - goto __711 + if !(*(*int32)(unsafe.Pointer(bp + 596)) != 0) { + goto __743 } goto jump_to_p2 -__711: +__743: ; goto __8 @@ -118447,9 +118985,9 @@ __711: // rewinding so that the global variable will be incremented and // regression tests can determine whether or not the optimizer is // correctly optimizing out sorts. -__118: // jump __119: // jump - *(*U32)(unsafe.Pointer(p + 220 + 2*4))++ +__120: // jump + *(*U32)(unsafe.Pointer(p + 212 + 2*4))++ // Opcode: Rewind P1 P2 * * * // @@ -118462,43 +119000,43 @@ __119: // jump // This opcode leaves the cursor configured to move in forward order, // from the beginning toward the end. In other words, the cursor is // configured to use Next, not Prev. -__120: +__121: ; pC19 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) - *(*int32)(unsafe.Pointer(bp + 568 /* res10 */)) = 1 + *(*int32)(unsafe.Pointer(bp + 600 /* res9 */)) = 1 if !(int32((*VdbeCursor)(unsafe.Pointer(pC19)).FeCurType) == CURTYPE_SORTER) { - goto __712 + goto __744 } - rc = Xsqlite3VdbeSorterRewind(tls, pC19, bp+568) - goto __713 -__712: + rc = Xsqlite3VdbeSorterRewind(tls, pC19, bp+600) + goto __745 +__744: ; pCrsr6 = *(*uintptr)(unsafe.Pointer(pC19 + 48)) - rc = Xsqlite3BtreeFirst(tls, pCrsr6, bp+568) + rc = Xsqlite3BtreeFirst(tls, pCrsr6, bp+600) (*VdbeCursor)(unsafe.Pointer(pC19)).FdeferredMoveto = U8(0) (*VdbeCursor)(unsafe.Pointer(pC19)).FcacheStatus = U32(CACHE_STALE) -__713: +__745: ; if !(rc != 0) { - goto __714 + goto __746 } goto abort_due_to_error -__714: +__746: ; - (*VdbeCursor)(unsafe.Pointer(pC19)).FnullRow = U8(*(*int32)(unsafe.Pointer(bp + 568 /* res10 */))) + (*VdbeCursor)(unsafe.Pointer(pC19)).FnullRow = U8(*(*int32)(unsafe.Pointer(bp + 600 /* res9 */))) - if !(*(*int32)(unsafe.Pointer(bp + 568)) != 0) { - goto __715 + if !(*(*int32)(unsafe.Pointer(bp + 600)) != 0) { + goto __747 } goto jump_to_p2 -__715: +__747: ; goto __8 - // Opcode: Next P1 P2 P3 P4 P5 + // Opcode: Next P1 P2 P3 * P5 // // Advance cursor P1 so that it points to the next key/data pair in its // table or index. If there are no more key/value pairs then fall through @@ -118517,21 +119055,17 @@ __715: // omitted if that index had been unique. P3 is usually 0. P3 is // always either 0 or 1. // - // P4 is always of type P4_ADVANCE. The function pointer points to - // sqlite3BtreeNext(). - // // If P5 is positive and the jump is taken, then event counter // number P5-1 in the prepared statement is incremented. // // See also: Prev - // Opcode: Prev P1 P2 P3 P4 P5 + // Opcode: Prev P1 P2 P3 * P5 // // Back up cursor P1 so that it points to the previous key/data pair in its // table or index. If there is no previous key/value pairs then fall through // to the following instruction. But if the cursor backup was successful, // jump immediately to P2. // - // // The Prev opcode is only valid following an SeekLT, SeekLE, or // OP_Last opcode used to position the cursor. Prev is not allowed // to follow SeekGT, SeekGE, or OP_Rewind. @@ -118544,9 +119078,6 @@ __715: // omitted if that index had been unique. P3 is usually 0. P3 is // always either 0 or 1. // - // P4 is always of type P4_ADVANCE. The function pointer points to - // sqlite3BtreePrevious(). - // // If P5 is positive and the jump is taken, then event counter // number P5-1 in the prepared statement is incremented. // Opcode: SorterNext P1 P2 * * P5 @@ -118555,40 +119086,44 @@ __715: // sorter object for which the OP_SorterSort opcode has been // invoked. This opcode advances the cursor to the next sorted // record, or jumps to P2 if there are no more sorted records. -__121: +__122: pC20 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) rc = Xsqlite3VdbeSorterNext(tls, db, pC20) goto next_tail -__122: // jump + __123: // jump ; pC20 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) - // The Next opcode is only used after SeekGT, SeekGE, Rewind, and Found. - // The Prev opcode is only used after SeekLT, SeekLE, and Last. + rc = Xsqlite3BtreePrevious(tls, *(*uintptr)(unsafe.Pointer(pC20 + 48)), (*Op)(unsafe.Pointer(pOp)).Fp3) + goto next_tail + +__124: // jump + ; + + pC20 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) + + rc = Xsqlite3BtreeNext(tls, *(*uintptr)(unsafe.Pointer(pC20 + 48)), (*Op)(unsafe.Pointer(pOp)).Fp3) - rc = (*struct { - f func(*libc.TLS, uintptr, int32) int32 - })(unsafe.Pointer(&struct{ uintptr }{*(*uintptr)(unsafe.Pointer(pOp + 16 /* &.p4 */))})).f(tls, *(*uintptr)(unsafe.Pointer(pC20 + 48 /* &.uc */)), (*Op)(unsafe.Pointer(pOp)).Fp3) next_tail: (*VdbeCursor)(unsafe.Pointer(pC20)).FcacheStatus = U32(CACHE_STALE) if !(rc == SQLITE_OK) { - goto __716 + goto __748 } (*VdbeCursor)(unsafe.Pointer(pC20)).FnullRow = U8(0) - *(*U32)(unsafe.Pointer(p + 220 + uintptr((*Op)(unsafe.Pointer(pOp)).Fp5)*4))++ + *(*U32)(unsafe.Pointer(p + 212 + uintptr((*Op)(unsafe.Pointer(pOp)).Fp5)*4))++ goto jump_to_p2_and_check_for_interrupt -__716: +__748: ; if !(rc != SQLITE_DONE) { - goto __717 + goto __749 } goto abort_due_to_error -__717: +__749: ; rc = SQLITE_OK (*VdbeCursor)(unsafe.Pointer(pC20)).FnullRow = U8(1) @@ -118621,17 +119156,17 @@ __717: // // This instruction only works for indices. The equivalent instruction // for tables is OP_Insert. -__124: +__125: ; pC21 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) pIn2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_NCHANGE != 0) { - goto __718 + goto __750 } (*Vdbe)(unsafe.Pointer(p)).FnChange++ -__718: +__750: ; rc = func() int32 { @@ -118641,16 +119176,16 @@ __718: return 0 }() if !(rc != 0) { - goto __719 + goto __751 } goto abort_due_to_error -__719: +__751: ; - (*BtreePayload)(unsafe.Pointer(bp + 576 /* &x2 */)).FnKey = Sqlite3_int64((*Mem)(unsafe.Pointer(pIn2)).Fn) - (*BtreePayload)(unsafe.Pointer(bp + 576 /* &x2 */)).FpKey = (*Mem)(unsafe.Pointer(pIn2)).Fz - (*BtreePayload)(unsafe.Pointer(bp + 576 /* &x2 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 - (*BtreePayload)(unsafe.Pointer(bp + 576 /* &x2 */)).FnMem = U16(*(*int32)(unsafe.Pointer(pOp + 16))) - rc = Xsqlite3BtreeInsert(tls, *(*uintptr)(unsafe.Pointer(pC21 + 48)), bp+576, + (*BtreePayload)(unsafe.Pointer(bp + 608 /* &x2 */)).FnKey = Sqlite3_int64((*Mem)(unsafe.Pointer(pIn2)).Fn) + (*BtreePayload)(unsafe.Pointer(bp + 608 /* &x2 */)).FpKey = (*Mem)(unsafe.Pointer(pIn2)).Fz + (*BtreePayload)(unsafe.Pointer(bp + 608 /* &x2 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 + (*BtreePayload)(unsafe.Pointer(bp + 608 /* &x2 */)).FnMem = U16(*(*int32)(unsafe.Pointer(pOp + 16))) + rc = Xsqlite3BtreeInsert(tls, *(*uintptr)(unsafe.Pointer(pC21 + 48)), bp+608, int32((*Op)(unsafe.Pointer(pOp)).Fp5)&(OPFLAG_APPEND|OPFLAG_SAVEPOSITION|OPFLAG_PREFORMAT), func() int32 { if int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_USESEEKRESULT != 0 { @@ -118661,10 +119196,10 @@ __719: (*VdbeCursor)(unsafe.Pointer(pC21)).FcacheStatus = U32(CACHE_STALE) if !(rc != 0) { - goto __720 + goto __752 } goto abort_due_to_error -__720: +__752: ; goto __8 @@ -118674,7 +119209,7 @@ __720: // Register P2 holds an SQL index key made using the // MakeRecord instructions. This opcode writes that key // into the sorter P1. Data for the entry is nil. -__125: +__126: ; pC22 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) @@ -118687,17 +119222,17 @@ __125: return 0 }() if !(rc != 0) { - goto __721 + goto __753 } goto abort_due_to_error -__721: +__753: ; rc = Xsqlite3VdbeSorterWrite(tls, pC22, pIn2) if !(rc != 0) { - goto __722 + goto __754 } goto abort_due_to_error -__722: +__754: ; goto __8 @@ -118715,44 +119250,44 @@ __722: // (example: the EXCEPT operator) it does not matter that no matching // entry is found. For those cases, P5 is zero. Also, do not raise // this (self-correcting and non-critical) error if in writable_schema mode. -__126: +__127: ; pC23 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) pCrsr7 = *(*uintptr)(unsafe.Pointer(pC23 + 48)) - (*UnpackedRecord)(unsafe.Pointer(bp + 624 /* &r3 */)).FpKeyInfo = (*VdbeCursor)(unsafe.Pointer(pC23)).FpKeyInfo - (*UnpackedRecord)(unsafe.Pointer(bp + 624 /* &r3 */)).FnField = U16((*Op)(unsafe.Pointer(pOp)).Fp3) - (*UnpackedRecord)(unsafe.Pointer(bp + 624 /* &r3 */)).Fdefault_rc = int8(0) - (*UnpackedRecord)(unsafe.Pointer(bp + 624 /* &r3 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 - rc = Xsqlite3BtreeIndexMoveto(tls, pCrsr7, bp+624, bp+648) + (*UnpackedRecord)(unsafe.Pointer(bp + 656 /* &r3 */)).FpKeyInfo = (*VdbeCursor)(unsafe.Pointer(pC23)).FpKeyInfo + (*UnpackedRecord)(unsafe.Pointer(bp + 656 /* &r3 */)).FnField = U16((*Op)(unsafe.Pointer(pOp)).Fp3) + (*UnpackedRecord)(unsafe.Pointer(bp + 656 /* &r3 */)).Fdefault_rc = int8(0) + (*UnpackedRecord)(unsafe.Pointer(bp + 656 /* &r3 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 + rc = Xsqlite3BtreeIndexMoveto(tls, pCrsr7, bp+656, bp+696) if !(rc != 0) { - goto __723 + goto __755 } goto abort_due_to_error -__723: +__755: ; - if !(*(*int32)(unsafe.Pointer(bp + 648)) == 0) { - goto __724 + if !(*(*int32)(unsafe.Pointer(bp + 696)) == 0) { + goto __756 } rc = Xsqlite3BtreeDelete(tls, pCrsr7, uint8(BTREE_AUXDELETE)) if !(rc != 0) { - goto __726 + goto __758 } goto abort_due_to_error -__726: +__758: ; - goto __725 -__724: + goto __757 +__756: if !((*Op)(unsafe.Pointer(pOp)).Fp5 != 0 && !(Xsqlite3WritableSchema(tls, db) != 0)) { - goto __727 + goto __759 } - rc = Xsqlite3ReportError(tls, SQLITE_CORRUPT|int32(3)<<8, 93536, ts+7179) + rc = Xsqlite3ReportError(tls, SQLITE_CORRUPT|int32(3)<<8, 94557, ts+7214) goto abort_due_to_error -__727: +__759: ; -__725: +__757: ; (*VdbeCursor)(unsafe.Pointer(pC23)).FcacheStatus = U32(CACHE_STALE) @@ -118785,8 +119320,8 @@ __725: // the rowid of the table entry to which this index entry points. // // See also: Rowid, MakeRecord. -__127: -__128: // Rowid that P1 current points to +__128: +__129: // Rowid that P1 current points to ; pC24 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) @@ -118799,47 +119334,48 @@ __128: // Rowid that P1 current points to // out from under the cursor. That will never happens for an IdxRowid // or Seek opcode if !(rc != SQLITE_OK) { - goto __728 + goto __760 } goto abort_due_to_error -__728: +__760: ; if !!(int32((*VdbeCursor)(unsafe.Pointer(pC24)).FnullRow) != 0) { - goto __729 + goto __761 } - *(*I64)(unsafe.Pointer(bp + 656 /* rowid */)) = int64(0) // Not needed. Only used to silence a warning. - rc = Xsqlite3VdbeIdxRowid(tls, db, *(*uintptr)(unsafe.Pointer(pC24 + 48)), bp+656) + *(*I64)(unsafe.Pointer(bp + 704 /* rowid */)) = int64(0) // Not needed. Only used to silence a warning. + rc = Xsqlite3VdbeIdxRowid(tls, db, *(*uintptr)(unsafe.Pointer(pC24 + 48)), bp+704) if !(rc != SQLITE_OK) { - goto __731 + goto __763 } goto abort_due_to_error -__731: +__763: ; if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_DeferredSeek) { - goto __732 + goto __764 } pTabCur = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*8)) (*VdbeCursor)(unsafe.Pointer(pTabCur)).FnullRow = U8(0) - (*VdbeCursor)(unsafe.Pointer(pTabCur)).FmovetoTarget = *(*I64)(unsafe.Pointer(bp + 656 /* rowid */)) + (*VdbeCursor)(unsafe.Pointer(pTabCur)).FmovetoTarget = *(*I64)(unsafe.Pointer(bp + 704 /* rowid */)) (*VdbeCursor)(unsafe.Pointer(pTabCur)).FdeferredMoveto = U8(1) + (*VdbeCursor)(unsafe.Pointer(pTabCur)).FcacheStatus = U32(CACHE_STALE) *(*uintptr)(unsafe.Pointer(pTabCur + 16)) = *(*uintptr)(unsafe.Pointer(pOp + 16)) (*VdbeCursor)(unsafe.Pointer(pTabCur)).FpAltCursor = pC24 - goto __733 -__732: + goto __765 +__764: pOut = out2Prerelease(tls, p, pOp) - *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 656 /* rowid */)) -__733: + *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 704 /* rowid */)) +__765: ; - goto __730 -__729: + goto __762 +__761: ; Xsqlite3VdbeMemSetNull(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56) -__730: +__762: ; goto __8 @@ -118848,21 +119384,21 @@ __730: // If cursor P1 was previously moved via OP_DeferredSeek, complete that // seek operation now, without further delay. If the cursor seek has // already occurred, this instruction is a no-op. -__129: // The P1 index cursor +__130: // The P1 index cursor ; pC25 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) if !((*VdbeCursor)(unsafe.Pointer(pC25)).FdeferredMoveto != 0) { - goto __734 + goto __766 } rc = Xsqlite3VdbeFinishMoveto(tls, pC25) if !(rc != 0) { - goto __735 + goto __767 } goto abort_due_to_error -__735: +__767: ; -__734: +__766: ; goto __8 @@ -118906,27 +119442,27 @@ __734: // // If the P1 index entry is less than or equal to the key value then jump // to P2. Otherwise fall through to the next instruction. -__130: // jump __131: // jump __132: // jump -__133: +__133: // jump +__134: ; pC26 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) - (*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).FpKeyInfo = (*VdbeCursor)(unsafe.Pointer(pC26)).FpKeyInfo - (*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).FnField = U16(*(*int32)(unsafe.Pointer(pOp + 16))) + (*UnpackedRecord)(unsafe.Pointer(bp + 768 /* &r4 */)).FpKeyInfo = (*VdbeCursor)(unsafe.Pointer(pC26)).FpKeyInfo + (*UnpackedRecord)(unsafe.Pointer(bp + 768 /* &r4 */)).FnField = U16(*(*int32)(unsafe.Pointer(pOp + 16))) if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) < OP_IdxLT) { - goto __736 + goto __768 } - (*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).Fdefault_rc = int8(-1) - goto __737 -__736: + (*UnpackedRecord)(unsafe.Pointer(bp + 768 /* &r4 */)).Fdefault_rc = int8(-1) + goto __769 +__768: ; - (*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).Fdefault_rc = int8(0) -__737: + (*UnpackedRecord)(unsafe.Pointer(bp + 768 /* &r4 */)).Fdefault_rc = int8(0) +__769: ; - (*UnpackedRecord)(unsafe.Pointer(bp + 720 /* &r4 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 + (*UnpackedRecord)(unsafe.Pointer(bp + 768 /* &r4 */)).FaMem = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 /* Inlined version of sqlite3VdbeIdxKeyCompare() */ @@ -118938,42 +119474,42 @@ __737: // nCellKey will always be between 0 and 0xffffffff because of the way // that btreeParseCellPtr() and sqlite3GetVarint32() are implemented if !(nCellKey <= int64(0) || nCellKey > int64(0x7fffffff)) { - goto __738 + goto __770 } - rc = Xsqlite3CorruptError(tls, 93740) + rc = Xsqlite3CorruptError(tls, 94762) goto abort_due_to_error -__738: +__770: ; - Xsqlite3VdbeMemInit(tls, bp+664, db, uint16(0)) - rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCur1, U32(nCellKey), bp+664) + Xsqlite3VdbeMemInit(tls, bp+712, db, uint16(0)) + rc = Xsqlite3VdbeMemFromBtreeZeroOffset(tls, pCur1, U32(nCellKey), bp+712) if !(rc != 0) { - goto __739 + goto __771 } goto abort_due_to_error -__739: +__771: ; - res12 = Xsqlite3VdbeRecordCompareWithSkip(tls, (*Mem)(unsafe.Pointer(bp+664 /* &m */)).Fn, (*Mem)(unsafe.Pointer(bp+664 /* &m */)).Fz, bp+720, 0) - Xsqlite3VdbeMemRelease(tls, bp+664) + res11 = Xsqlite3VdbeRecordCompareWithSkip(tls, (*Mem)(unsafe.Pointer(bp+712 /* &m */)).Fn, (*Mem)(unsafe.Pointer(bp+712 /* &m */)).Fz, bp+768, 0) + Xsqlite3VdbeMemReleaseMalloc(tls, bp+712) // End of inlined sqlite3VdbeIdxKeyCompare() if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode)&1 == OP_IdxLT&1) { - goto __740 + goto __772 } - res12 = -res12 - goto __741 -__740: + res11 = -res11 + goto __773 +__772: ; - res12++ -__741: + res11++ +__773: ; - if !(res12 > 0) { - goto __742 + if !(res11 > 0) { + goto __774 } goto jump_to_p2 -__742: +__774: ; goto __8 @@ -119003,41 +119539,41 @@ __742: // and non-autovacuum modes. // // See also: Clear -__134: +__135: ; pOut = out2Prerelease(tls, p, pOp) (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Null) if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead > (*Sqlite3)(unsafe.Pointer(db)).FnVDestroy+1) { - goto __743 + goto __775 } rc = SQLITE_LOCKED (*Vdbe)(unsafe.Pointer(p)).FerrorAction = U8(OE_Abort) goto abort_due_to_error - goto __744 -__743: + goto __776 +__775: iDb2 = (*Op)(unsafe.Pointer(pOp)).Fp3 - *(*int32)(unsafe.Pointer(bp + 744 /* iMoved */)) = 0 // Not needed. Only to silence a warning. - rc = Xsqlite3BtreeDropTable(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb2)*32)).FpBt, (*Op)(unsafe.Pointer(pOp)).Fp1, bp+744) + *(*int32)(unsafe.Pointer(bp + 808 /* iMoved */)) = 0 // Not needed. Only to silence a warning. + rc = Xsqlite3BtreeDropTable(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb2)*32)).FpBt, (*Op)(unsafe.Pointer(pOp)).Fp1, bp+808) (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Int) - *(*I64)(unsafe.Pointer(pOut)) = I64(*(*int32)(unsafe.Pointer(bp + 744 /* iMoved */))) + *(*I64)(unsafe.Pointer(pOut)) = I64(*(*int32)(unsafe.Pointer(bp + 808 /* iMoved */))) if !(rc != 0) { - goto __745 + goto __777 } goto abort_due_to_error -__745: +__777: ; - if !(*(*int32)(unsafe.Pointer(bp + 744)) != 0) { - goto __746 + if !(*(*int32)(unsafe.Pointer(bp + 808)) != 0) { + goto __778 } - Xsqlite3RootPageMoved(tls, db, iDb2, uint32(*(*int32)(unsafe.Pointer(bp + 744 /* iMoved */))), uint32((*Op)(unsafe.Pointer(pOp)).Fp1)) + Xsqlite3RootPageMoved(tls, db, iDb2, uint32(*(*int32)(unsafe.Pointer(bp + 808 /* iMoved */))), uint32((*Op)(unsafe.Pointer(pOp)).Fp1)) // All OP_Destroy operations occur on the same btree resetSchemaOnFault = U8(iDb2 + 1) -__746: +__778: ; -__744: +__776: ; goto __8 @@ -119057,29 +119593,29 @@ __744: // by the number of rows in the table being cleared. // // See also: Destroy -__135: +__136: ; - *(*I64)(unsafe.Pointer(bp + 752 /* nChange */)) = int64(0) + *(*I64)(unsafe.Pointer(bp + 816 /* nChange */)) = int64(0) - rc = Xsqlite3BtreeClearTable(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*32)).FpBt, int32(U32((*Op)(unsafe.Pointer(pOp)).Fp1)), bp+752) + rc = Xsqlite3BtreeClearTable(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*32)).FpBt, int32(U32((*Op)(unsafe.Pointer(pOp)).Fp1)), bp+816) if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) { - goto __747 + goto __779 } - *(*I64)(unsafe.Pointer(p + 64)) += *(*I64)(unsafe.Pointer(bp + 752)) + *(*I64)(unsafe.Pointer(p + 56)) += *(*I64)(unsafe.Pointer(bp + 816)) if !((*Op)(unsafe.Pointer(pOp)).Fp3 > 0) { - goto __748 + goto __780 } - *(*I64)(unsafe.Pointer(aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)) += *(*I64)(unsafe.Pointer(bp + 752)) -__748: + *(*I64)(unsafe.Pointer(aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56)) += *(*I64)(unsafe.Pointer(bp + 816)) +__780: ; -__747: +__779: ; if !(rc != 0) { - goto __749 + goto __781 } goto abort_due_to_error -__749: +__781: ; goto __8 @@ -119090,26 +119626,26 @@ __749: // // This opcode only works for cursors used for sorting and // opened with OP_OpenEphemeral or OP_SorterOpen. -__136: +__137: ; pC27 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) if !(int32((*VdbeCursor)(unsafe.Pointer(pC27)).FeCurType) == CURTYPE_SORTER) { - goto __750 + goto __782 } Xsqlite3VdbeSorterReset(tls, db, *(*uintptr)(unsafe.Pointer(pC27 + 48))) - goto __751 -__750: + goto __783 +__782: ; rc = Xsqlite3BtreeClearTableOfCursor(tls, *(*uintptr)(unsafe.Pointer(pC27 + 48))) if !(rc != 0) { - goto __752 + goto __784 } goto abort_due_to_error -__752: +__784: ; -__751: +__783: ; goto __8 @@ -119121,36 +119657,36 @@ __751: // P1>1. The P3 argument must be 1 (BTREE_INTKEY) for a rowid table // it must be 2 (BTREE_BLOBKEY) for an index or WITHOUT ROWID table. // The root page number of the new b-tree is stored in register P2. -__137: +__138: ; pOut = out2Prerelease(tls, p, pOp) - *(*Pgno)(unsafe.Pointer(bp + 760 /* pgno */)) = Pgno(0) + *(*Pgno)(unsafe.Pointer(bp + 824 /* pgno */)) = Pgno(0) - pDb2 = (*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32 + pDb3 = (*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32 - rc = Xsqlite3BtreeCreateTable(tls, (*Db)(unsafe.Pointer(pDb2)).FpBt, bp+760, (*Op)(unsafe.Pointer(pOp)).Fp3) + rc = Xsqlite3BtreeCreateTable(tls, (*Db)(unsafe.Pointer(pDb3)).FpBt, bp+824, (*Op)(unsafe.Pointer(pOp)).Fp3) if !(rc != 0) { - goto __753 + goto __785 } goto abort_due_to_error -__753: +__785: ; - *(*I64)(unsafe.Pointer(pOut)) = I64(*(*Pgno)(unsafe.Pointer(bp + 760 /* pgno */))) + *(*I64)(unsafe.Pointer(pOut)) = I64(*(*Pgno)(unsafe.Pointer(bp + 824 /* pgno */))) goto __8 // Opcode: SqlExec * * * P4 * // // Run the SQL statement or statements specified in the P4 string. -__138: +__139: ; (*Sqlite3)(unsafe.Pointer(db)).FnSqlExec++ rc = Xsqlite3_exec(tls, db, *(*uintptr)(unsafe.Pointer(pOp + 16)), uintptr(0), uintptr(0), uintptr(0)) (*Sqlite3)(unsafe.Pointer(db)).FnSqlExec-- if !(rc != 0) { - goto __754 + goto __786 } goto abort_due_to_error -__754: +__786: ; goto __8 @@ -119162,7 +119698,7 @@ __754: // // This opcode invokes the parser to create a new virtual machine, // then runs the new virtual machine. It is thus a re-entrant opcode. -__139: +__140: // Any prepared statement that invokes this opcode will hold mutexes // on every btree. This is a prerequisite for invoking @@ -119171,72 +119707,72 @@ __139: iDb3 = (*Op)(unsafe.Pointer(pOp)).Fp1 if !(*(*uintptr)(unsafe.Pointer(pOp + 16)) == uintptr(0)) { - goto __755 + goto __787 } Xsqlite3SchemaClear(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb3)*32)).FpSchema) *(*U32)(unsafe.Pointer(db + 44)) &= libc.Uint32FromInt32(libc.CplInt32(DBFLAG_SchemaKnownOk)) - rc = Xsqlite3InitOne(tls, db, iDb3, p+176, uint32((*Op)(unsafe.Pointer(pOp)).Fp5)) + rc = Xsqlite3InitOne(tls, db, iDb3, p+168, uint32((*Op)(unsafe.Pointer(pOp)).Fp5)) *(*U32)(unsafe.Pointer(db + 44)) |= U32(DBFLAG_SchemaChange) - libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 0, 0x3) - goto __756 -__755: + libc.SetBitFieldPtr8Uint32(p+200, Bft(0), 0, 0x3) + goto __788 +__787: - zSchema = ts + 7196 /* "sqlite_master" */ - (*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).Fdb = db - (*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).FiDb = iDb3 - (*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).FpzErrMsg = p + 176 - (*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).FmInitFlags = U32(0) - (*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).FmxPage = Xsqlite3BtreeLastPage(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb3)*32)).FpBt) + zSchema = ts + 7231 /* "sqlite_master" */ + (*InitData)(unsafe.Pointer(bp + 832 /* &initData */)).Fdb = db + (*InitData)(unsafe.Pointer(bp + 832 /* &initData */)).FiDb = iDb3 + (*InitData)(unsafe.Pointer(bp + 832 /* &initData */)).FpzErrMsg = p + 168 + (*InitData)(unsafe.Pointer(bp + 832 /* &initData */)).FmInitFlags = U32(0) + (*InitData)(unsafe.Pointer(bp + 832 /* &initData */)).FmxPage = Xsqlite3BtreeLastPage(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb3)*32)).FpBt) zSql = Xsqlite3MPrintf(tls, db, - ts+7210, + ts+7245, libc.VaList(bp+96, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb3)*32)).FzDbSName, zSchema, *(*uintptr)(unsafe.Pointer(pOp + 16)))) if !(zSql == uintptr(0)) { - goto __757 + goto __789 } rc = SQLITE_NOMEM - goto __758 -__757: + goto __790 +__789: ; (*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy = U8(1) - (*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).Frc = SQLITE_OK - (*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).FnInitRow = U32(0) + (*InitData)(unsafe.Pointer(bp + 832 /* &initData */)).Frc = SQLITE_OK + (*InitData)(unsafe.Pointer(bp + 832 /* &initData */)).FnInitRow = U32(0) rc = Xsqlite3_exec(tls, db, zSql, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32 - }{Xsqlite3InitCallback})), bp+768 /* &initData */, uintptr(0)) + }{Xsqlite3InitCallback})), bp+832 /* &initData */, uintptr(0)) if !(rc == SQLITE_OK) { - goto __759 + goto __791 } - rc = (*InitData)(unsafe.Pointer(bp + 768 /* &initData */)).Frc -__759: + rc = (*InitData)(unsafe.Pointer(bp + 832 /* &initData */)).Frc +__791: ; - if !(rc == SQLITE_OK && (*InitData)(unsafe.Pointer(bp+768)).FnInitRow == U32(0)) { - goto __760 + if !(rc == SQLITE_OK && (*InitData)(unsafe.Pointer(bp+832)).FnInitRow == U32(0)) { + goto __792 } // The OP_ParseSchema opcode with a non-NULL P4 argument should parse // at least one SQL statement. Any less than that indicates that // the sqlite_schema table is corrupt. - rc = Xsqlite3CorruptError(tls, 93992) -__760: + rc = Xsqlite3CorruptError(tls, 95014) +__792: ; Xsqlite3DbFreeNN(tls, db, zSql) (*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy = U8(0) -__758: +__790: ; -__756: +__788: ; if !(rc != 0) { - goto __761 + goto __793 } Xsqlite3ResetAllSchemasOfConnection(tls, db) if !(rc == SQLITE_NOMEM) { - goto __762 + goto __794 } goto no_mem -__762: +__794: ; goto abort_due_to_error -__761: +__793: ; goto __8 @@ -119245,14 +119781,14 @@ __761: // Read the sqlite_stat1 table for database P1 and load the content // of that table into the internal index hash table. This will cause // the analysis to be used when preparing all subsequent queries. -__140: +__141: ; rc = Xsqlite3AnalysisLoad(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1) if !(rc != 0) { - goto __763 + goto __795 } goto abort_due_to_error -__763: +__795: ; goto __8 @@ -119263,7 +119799,7 @@ __763: // is dropped from disk (using the Destroy opcode) in order to keep // the internal representation of the // schema consistent with what is on disk. -__141: +__142: ; Xsqlite3UnlinkAndDeleteTable(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, *(*uintptr)(unsafe.Pointer(pOp + 16))) goto __8 @@ -119275,7 +119811,7 @@ __141: // is dropped from disk (using the Destroy opcode) // in order to keep the internal representation of the // schema consistent with what is on disk. -__142: +__143: ; Xsqlite3UnlinkAndDeleteIndex(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, *(*uintptr)(unsafe.Pointer(pOp + 16))) goto __8 @@ -119287,7 +119823,7 @@ __142: // is dropped from disk (using the Destroy opcode) in order to keep // the internal representation of the // schema consistent with what is on disk. -__143: +__144: ; Xsqlite3UnlinkAndDeleteTrigger(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, *(*uintptr)(unsafe.Pointer(pOp + 16))) goto __8 @@ -119310,7 +119846,7 @@ __143: // file, not the main database file. // // This opcode is used to implement the integrity_check pragma. -__144: // Register keeping track of errors remaining +__145: // Register keeping track of errors remaining ; nRoot = (*Op)(unsafe.Pointer(pOp)).Fp2 @@ -119321,25 +119857,25 @@ __144: // Register keeping track of errors remaining pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 z = Xsqlite3BtreeIntegrityCheck(tls, db, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr((*Op)(unsafe.Pointer(pOp)).Fp5)*32)).FpBt, aRoot+1*4, nRoot, - int32(*(*I64)(unsafe.Pointer(pnErr)))+1, bp+808) + int32(*(*I64)(unsafe.Pointer(pnErr)))+1, bp+872) Xsqlite3VdbeMemSetNull(tls, pIn1) - if !(*(*int32)(unsafe.Pointer(bp + 808)) == 0) { - goto __764 + if !(*(*int32)(unsafe.Pointer(bp + 872)) == 0) { + goto __796 } - goto __765 -__764: + goto __797 +__796: if !(z == uintptr(0)) { - goto __766 + goto __798 } goto no_mem - goto __767 -__766: - *(*I64)(unsafe.Pointer(pnErr)) -= I64(*(*int32)(unsafe.Pointer(bp + 808)) - 1) + goto __799 +__798: + *(*I64)(unsafe.Pointer(pnErr)) -= I64(*(*int32)(unsafe.Pointer(bp + 872)) - 1) Xsqlite3VdbeMemSetStr(tls, pIn1, z, int64(-1), uint8(SQLITE_UTF8), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free}))) -__767: +__799: ; -__765: +__797: ; Xsqlite3VdbeChangeEncoding(tls, pIn1, int32(encoding)) @@ -119352,20 +119888,20 @@ __765: // held in register P1. // // An assertion fails if P2 is not an integer. -__145: // in1, in2 +__146: // in1, in2 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 pIn2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Blob == 0) { - goto __768 + goto __800 } if !(Xsqlite3VdbeMemSetRowSet(tls, pIn1) != 0) { - goto __769 + goto __801 } goto no_mem -__769: +__801: ; -__768: +__800: ; Xsqlite3RowSetInsert(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, *(*I64)(unsafe.Pointer(pIn2))) @@ -119378,24 +119914,24 @@ __768: // and put that value into register P3. // Or, if RowSet object P1 is initially empty, leave P3 // unchanged and jump to instruction P2. -__146: +__147: pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Blob == 0 || - Xsqlite3RowSetNext(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, bp+816) == 0) { - goto __770 + Xsqlite3RowSetNext(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, bp+880) == 0) { + goto __802 } // The boolean index is empty Xsqlite3VdbeMemSetNull(tls, pIn1) goto jump_to_p2_and_check_for_interrupt - goto __771 -__770: + goto __803 +__802: // A value was pulled from the index ; - Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56, *(*I64)(unsafe.Pointer(bp + 816 /* val */))) -__771: + Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56, *(*I64)(unsafe.Pointer(bp + 880 /* val */))) +__803: ; goto check_for_interrupt @@ -119421,7 +119957,7 @@ __771: // inserted, there is no need to search to see if the same value was // previously inserted as part of set X (only if it was previously // inserted as part of some other set). -__147: +__148: pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 @@ -119430,35 +119966,35 @@ __147: // If there is anything other than a rowset object in memory cell P1, // delete it now and initialize P1 with an empty rowset if !(int32((*Mem)(unsafe.Pointer(pIn1)).Fflags)&MEM_Blob == 0) { - goto __772 + goto __804 } if !(Xsqlite3VdbeMemSetRowSet(tls, pIn1) != 0) { - goto __773 + goto __805 } goto no_mem -__773: +__805: ; -__772: +__804: ; if !(iSet != 0) { - goto __774 + goto __806 } exists = Xsqlite3RowSetTest(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, iSet, *(*I64)(unsafe.Pointer(pIn3))) if !(exists != 0) { - goto __775 + goto __807 } goto jump_to_p2 -__775: +__807: ; -__774: +__806: ; if !(iSet >= 0) { - goto __776 + goto __808 } Xsqlite3RowSetInsert(tls, (*Mem)(unsafe.Pointer(pIn1)).Fz, *(*I64)(unsafe.Pointer(pIn3))) -__776: +__808: ; goto __8 @@ -119476,7 +120012,7 @@ __776: // P4 is a pointer to the VM containing the trigger program. // // If P5 is non-zero, then recursive program invocation is enabled. -__148: // Token identifying trigger +__149: // Token identifying trigger pProgram = *(*uintptr)(unsafe.Pointer(pOp + 16)) pRt = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 @@ -119493,37 +120029,37 @@ __148: // Token identifying trigger // single trigger all have the same value for the SubProgram.token // variable. if !((*Op)(unsafe.Pointer(pOp)).Fp5 != 0) { - goto __777 + goto __809 } t1 = (*SubProgram)(unsafe.Pointer(pProgram)).Ftoken pFrame2 = (*Vdbe)(unsafe.Pointer(p)).FpFrame -__778: +__810: if !(pFrame2 != 0 && (*VdbeFrame)(unsafe.Pointer(pFrame2)).Ftoken != t1) { - goto __780 + goto __812 } - goto __779 -__779: + goto __811 +__811: pFrame2 = (*VdbeFrame)(unsafe.Pointer(pFrame2)).FpParent - goto __778 - goto __780 -__780: + goto __810 + goto __812 +__812: ; if !(pFrame2 != 0) { - goto __781 + goto __813 } goto __8 -__781: +__813: ; -__777: +__809: ; if !((*Vdbe)(unsafe.Pointer(p)).FnFrame >= *(*int32)(unsafe.Pointer(db + 136 + 10*4))) { - goto __782 + goto __814 } rc = SQLITE_ERROR - Xsqlite3VdbeError(tls, p, ts+7253, 0) + Xsqlite3VdbeError(tls, p, ts+7288, 0) goto abort_due_to_error -__782: +__814: ; // Register pRt is used to store the memory required to save the state @@ -119531,7 +120067,7 @@ __782: // the trigger program. If this trigger has been fired before, then pRt // is already allocated. Otherwise, it must be initialized. if !(int32((*Mem)(unsafe.Pointer(pRt)).Fflags)&MEM_Blob == 0) { - goto __783 + goto __815 } // SubProgram.nMem is set to the number of memory cells used by the // program stored in SubProgram.aOp. As well as these, one memory @@ -119540,10 +120076,10 @@ __782: nMem = (*SubProgram)(unsafe.Pointer(pProgram)).FnMem + (*SubProgram)(unsafe.Pointer(pProgram)).FnCsr if !((*SubProgram)(unsafe.Pointer(pProgram)).FnCsr == 0) { - goto __785 + goto __817 } nMem++ -__785: +__817: ; nByte2 = int32((uint64(unsafe.Sizeof(VdbeFrame{}))+uint64(7))&libc.Uint64FromInt32(libc.CplInt32(7)) + uint64(nMem)*uint64(unsafe.Sizeof(Mem{})) + @@ -119551,10 +120087,10 @@ __785: uint64(((*SubProgram)(unsafe.Pointer(pProgram)).FnOp+7)/8)) pFrame2 = Xsqlite3DbMallocZero(tls, db, uint64(nByte2)) if !!(pFrame2 != 0) { - goto __786 + goto __818 } goto no_mem -__786: +__818: ; Xsqlite3VdbeMemRelease(tls, pRt) (*Mem)(unsafe.Pointer(pRt)).Fflags = U16(MEM_Blob | MEM_Dyn) @@ -119575,25 +120111,25 @@ __786: (*VdbeFrame)(unsafe.Pointer(pFrame2)).Ftoken = (*SubProgram)(unsafe.Pointer(pProgram)).Ftoken pEnd = pFrame2 + 120 + uintptr((*VdbeFrame)(unsafe.Pointer(pFrame2)).FnChildMem)*56 - pMem2 = pFrame2 + 120 -__787: - if !(pMem2 != pEnd) { - goto __789 + pMem1 = pFrame2 + 120 +__819: + if !(pMem1 != pEnd) { + goto __821 } - (*Mem)(unsafe.Pointer(pMem2)).Fflags = U16(MEM_Undefined) - (*Mem)(unsafe.Pointer(pMem2)).Fdb = db - goto __788 -__788: - pMem2 += 56 - goto __787 - goto __789 -__789: + (*Mem)(unsafe.Pointer(pMem1)).Fflags = U16(MEM_Undefined) + (*Mem)(unsafe.Pointer(pMem1)).Fdb = db + goto __820 +__820: + pMem1 += 56 + goto __819 + goto __821 +__821: ; - goto __784 -__783: + goto __816 +__815: pFrame2 = (*Mem)(unsafe.Pointer(pRt)).Fz -__784: +__816: ; (*Vdbe)(unsafe.Pointer(p)).FnFrame++ @@ -119628,7 +120164,7 @@ __784: // The address of the cell in the parent frame is determined by adding // the value of the P1 argument to the value of the P1 argument to the // calling OP_Program instruction. -__149: +__150: pOut = out2Prerelease(tls, p, pOp) pFrame3 = (*Vdbe)(unsafe.Pointer(p)).FpFrame pIn = (*VdbeFrame)(unsafe.Pointer(pFrame3)).FaMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1+(*Op)(unsafe.Pointer((*VdbeFrame)(unsafe.Pointer(pFrame3)).FaOp+uintptr((*VdbeFrame)(unsafe.Pointer(pFrame3)).Fpc)*24)).Fp1)*56 @@ -119642,23 +120178,23 @@ __149: // If P1 is non-zero, the database constraint counter is incremented // (deferred foreign key constraints). Otherwise, if P1 is zero, the // statement counter is incremented (immediate foreign key constraints). -__150: +__151: if !((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_DeferFKs) != 0) { - goto __790 + goto __822 } *(*I64)(unsafe.Pointer(db + 784)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2) - goto __791 -__790: + goto __823 +__822: if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) { - goto __792 + goto __824 } *(*I64)(unsafe.Pointer(db + 776)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2) - goto __793 -__792: - *(*I64)(unsafe.Pointer(p + 88)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2) -__793: + goto __825 +__824: + *(*I64)(unsafe.Pointer(p + 80)) += I64((*Op)(unsafe.Pointer(pOp)).Fp2) +__825: ; -__791: +__823: ; goto __8 @@ -119673,27 +120209,27 @@ __791: // is zero (the one that counts deferred constraint violations). If P1 is // zero, the jump is taken if the statement constraint-counter is zero // (immediate foreign key constraint violations). -__151: // jump +__152: // jump if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) { - goto __794 + goto __826 } if !((*Sqlite3)(unsafe.Pointer(db)).FnDeferredCons == int64(0) && (*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons == int64(0)) { - goto __796 + goto __828 } goto jump_to_p2 -__796: +__828: ; - goto __795 -__794: + goto __827 +__826: ; if !((*Vdbe)(unsafe.Pointer(p)).FnFkConstraint == int64(0) && (*Sqlite3)(unsafe.Pointer(db)).FnDeferredImmCons == int64(0)) { - goto __797 + goto __829 } goto jump_to_p2 -__797: +__829: ; -__795: +__827: ; goto __8 @@ -119707,37 +120243,37 @@ __795: // // This instruction throws an error if the memory cell is not initially // an integer. -__152: +__153: if !((*Vdbe)(unsafe.Pointer(p)).FpFrame != 0) { - goto __798 + goto __830 } pFrame4 = (*Vdbe)(unsafe.Pointer(p)).FpFrame -__800: +__832: if !((*VdbeFrame)(unsafe.Pointer(pFrame4)).FpParent != 0) { - goto __802 + goto __834 } - goto __801 -__801: + goto __833 +__833: pFrame4 = (*VdbeFrame)(unsafe.Pointer(pFrame4)).FpParent - goto __800 - goto __802 -__802: + goto __832 + goto __834 +__834: ; pIn1 = (*VdbeFrame)(unsafe.Pointer(pFrame4)).FaMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 - goto __799 -__798: + goto __831 +__830: pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 -__799: +__831: ; Xsqlite3VdbeMemIntegerify(tls, pIn1) pIn2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 Xsqlite3VdbeMemIntegerify(tls, pIn2) if !(*(*I64)(unsafe.Pointer(pIn1)) < *(*I64)(unsafe.Pointer(pIn2))) { - goto __803 + goto __835 } *(*I64)(unsafe.Pointer(pIn1)) = *(*I64)(unsafe.Pointer(pIn2)) -__803: +__835: ; goto __8 @@ -119750,15 +120286,15 @@ __803: // // If the initial value of register P1 is less than 1, then the // value is unchanged and control passes through to the next instruction. -__153: // jump, in1 +__154: // jump, in1 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 if !(*(*I64)(unsafe.Pointer(pIn1)) > int64(0)) { - goto __804 + goto __836 } *(*I64)(unsafe.Pointer(pIn1)) -= I64((*Op)(unsafe.Pointer(pOp)).Fp3) goto jump_to_p2 -__804: +__836: ; goto __8 @@ -119779,19 +120315,19 @@ __804: // and r[P2] is set to -1. // // Otherwise, r[P2] is set to the sum of r[P1] and r[P3]. -__154: +__155: pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 pOut = out2Prerelease(tls, p, pOp) - *(*I64)(unsafe.Pointer(bp + 824 /* x3 */)) = *(*I64)(unsafe.Pointer(pIn1)) - if !(*(*I64)(unsafe.Pointer(bp + 824)) <= int64(0) || Xsqlite3AddInt64(tls, bp+824, func() int64 { + *(*I64)(unsafe.Pointer(bp + 888 /* x3 */)) = *(*I64)(unsafe.Pointer(pIn1)) + if !(*(*I64)(unsafe.Pointer(bp + 888)) <= int64(0) || Xsqlite3AddInt64(tls, bp+888, func() int64 { if *(*I64)(unsafe.Pointer(pIn3)) > int64(0) { return *(*I64)(unsafe.Pointer(pIn3)) } return int64(0) }()) != 0) { - goto __805 + goto __837 } // If the LIMIT is less than or equal to zero, loop forever. This // is documented. But also, if the LIMIT+OFFSET exceeds 2^63 then @@ -119801,10 +120337,10 @@ __154: // it would take nearly 300 years to actually reach the limit. So // looping forever is a reasonable approximation. *(*I64)(unsafe.Pointer(pOut)) = int64(-1) - goto __806 -__805: - *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 824 /* x3 */)) -__806: + goto __838 +__837: + *(*I64)(unsafe.Pointer(pOut)) = *(*I64)(unsafe.Pointer(bp + 888 /* x3 */)) +__838: ; goto __8 @@ -119815,20 +120351,20 @@ __806: // initially greater than zero, then decrement the value in register P1. // If it is non-zero (negative or positive) and then also jump to P2. // If register P1 is initially zero, leave it unchanged and fall through. -__155: // jump, in1 +__156: // jump, in1 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 if !(*(*I64)(unsafe.Pointer(pIn1)) != 0) { - goto __807 + goto __839 } if !(*(*I64)(unsafe.Pointer(pIn1)) > int64(0)) { - goto __808 + goto __840 } *(*I64)(unsafe.Pointer(pIn1))-- -__808: +__840: ; goto jump_to_p2 -__807: +__839: ; goto __8 @@ -119837,21 +120373,21 @@ __807: // // Register P1 must hold an integer. Decrement the value in P1 // and jump to P2 if the new value is exactly zero. -__156: // jump, in1 +__157: // jump, in1 pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 if !(*(*I64)(unsafe.Pointer(pIn1)) > int64(-1)-(int64(0xffffffff)|I64(int64(0x7fffffff))<<32)) { - goto __809 + goto __841 } *(*I64)(unsafe.Pointer(pIn1))-- -__809: +__841: ; if !(*(*I64)(unsafe.Pointer(pIn1)) == int64(0)) { - goto __810 + goto __842 } goto jump_to_p2 -__810: +__842: ; goto __8 @@ -119891,17 +120427,17 @@ __810: // the opcode is changed. In this way, the initialization of the // sqlite3_context only happens once, instead of on each call to the // step function. -__157: __158: +__159: ; n4 = int32((*Op)(unsafe.Pointer(pOp)).Fp5) pCtx = Xsqlite3DbMallocRawNN(tls, db, uint64(n4)*uint64(unsafe.Sizeof(uintptr(0)))+(uint64(unsafe.Sizeof(Sqlite3_context{}))+uint64(unsafe.Sizeof(Mem{}))-uint64(unsafe.Sizeof(uintptr(0))))) if !(pCtx == uintptr(0)) { - goto __811 + goto __843 } goto no_mem -__811: +__843: ; (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpMem = uintptr(0) (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut = pCtx + 48 + uintptr(n4)*8 @@ -119911,93 +120447,94 @@ __811: (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpVdbe = p (*Sqlite3_context)(unsafe.Pointer(pCtx)).FskipFlag = U8(0) (*Sqlite3_context)(unsafe.Pointer(pCtx)).FisError = 0 + (*Sqlite3_context)(unsafe.Pointer(pCtx)).Fenc = encoding (*Sqlite3_context)(unsafe.Pointer(pCtx)).Fargc = U8(n4) - (*Op)(unsafe.Pointer(pOp)).Fp4type = int8(-16) + (*Op)(unsafe.Pointer(pOp)).Fp4type = int8(-15) *(*uintptr)(unsafe.Pointer(pOp + 16)) = pCtx // OP_AggInverse must have P1==1 and OP_AggStep must have P1==0 (*Op)(unsafe.Pointer(pOp)).Fopcode = U8(OP_AggStep1) -__159: +__160: ; pCtx1 = *(*uintptr)(unsafe.Pointer(pOp + 16)) - pMem3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 + pMem2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 // If this function is inside of a trigger, the register array in aMem[] // might change from one evaluation to the next. The next block of code // checks to see if the register array has changed, and if so it // reinitializes the relavant parts of the sqlite3_context object - if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpMem != pMem3) { - goto __812 + if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpMem != pMem2) { + goto __844 } - (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpMem = pMem3 + (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpMem = pMem2 i5 = int32((*Sqlite3_context)(unsafe.Pointer(pCtx1)).Fargc) - 1 -__813: +__845: if !(i5 >= 0) { - goto __815 + goto __847 } *(*uintptr)(unsafe.Pointer(pCtx1 + 48 + uintptr(i5)*8)) = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2+i5)*56 - goto __814 -__814: + goto __846 +__846: i5-- - goto __813 - goto __815 -__815: + goto __845 + goto __847 +__847: ; -__812: +__844: ; - (*Mem)(unsafe.Pointer(pMem3)).Fn++ + (*Mem)(unsafe.Pointer(pMem2)).Fn++ if !((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) { - goto __816 + goto __848 } (*struct { f func(*libc.TLS, uintptr, int32, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*FuncDef)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpFunc)).FxInverse})).f(tls, pCtx1, int32((*Sqlite3_context)(unsafe.Pointer(pCtx1)).Fargc), pCtx1+48 /* &.argv */) - goto __817 -__816: + goto __849 +__848: (*struct { f func(*libc.TLS, uintptr, int32, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*FuncDef)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpFunc)).FxSFunc})).f(tls, pCtx1, int32((*Sqlite3_context)(unsafe.Pointer(pCtx1)).Fargc), pCtx1+48 /* &.argv */) -__817: +__849: ; // IMP: R-24505-23230 if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError != 0) { - goto __818 + goto __850 } if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError > 0) { - goto __819 + goto __851 } - Xsqlite3VdbeError(tls, p, ts+4444, libc.VaList(bp+120, Xsqlite3_value_text(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut))) + Xsqlite3VdbeError(tls, p, ts+4479, libc.VaList(bp+120, Xsqlite3_value_text(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut))) rc = (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError -__819: +__851: ; if !((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FskipFlag != 0) { - goto __820 + goto __852 } i5 = (*Op)(unsafe.Pointer(pOp + libc.UintptrFromInt32(-1)*24)).Fp1 if !(i5 != 0) { - goto __821 + goto __853 } Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr(i5)*56, int64(1)) -__821: +__853: ; (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FskipFlag = U8(0) -__820: +__852: ; Xsqlite3VdbeMemRelease(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut) (*Mem)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut)).Fflags = U16(MEM_Null) (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FisError = 0 if !(rc != 0) { - goto __822 + goto __854 } goto abort_due_to_error -__822: +__854: ; -__818: +__850: ; goto __8 @@ -120026,40 +120563,34 @@ __818: // functions that can take varying numbers of arguments. The // P4 argument is only needed for the case where // the step function was not previously called. -__160: __161: +__162: ; - pMem4 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 + pMem3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) { - goto __823 + goto __855 } - rc = Xsqlite3VdbeMemAggValue(tls, pMem4, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56, *(*uintptr)(unsafe.Pointer(pOp + 16))) - pMem4 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 - goto __824 -__823: + rc = Xsqlite3VdbeMemAggValue(tls, pMem3, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56, *(*uintptr)(unsafe.Pointer(pOp + 16))) + pMem3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 + goto __856 +__855: - rc = Xsqlite3VdbeMemFinalize(tls, pMem4, *(*uintptr)(unsafe.Pointer(pOp + 16))) -__824: + rc = Xsqlite3VdbeMemFinalize(tls, pMem3, *(*uintptr)(unsafe.Pointer(pOp + 16))) +__856: ; if !(rc != 0) { - goto __825 + goto __857 } - Xsqlite3VdbeError(tls, p, ts+4444, libc.VaList(bp+128, Xsqlite3_value_text(tls, pMem4))) + Xsqlite3VdbeError(tls, p, ts+4479, libc.VaList(bp+128, Xsqlite3_value_text(tls, pMem3))) goto abort_due_to_error -__825: +__857: ; - Xsqlite3VdbeChangeEncoding(tls, pMem4, int32(encoding)) + Xsqlite3VdbeChangeEncoding(tls, pMem3, int32(encoding)) - if !(Xsqlite3VdbeMemTooBig(tls, pMem4) != 0) { - goto __826 - } - goto too_big -__826: - ; goto __8 // Opcode: Checkpoint P1 P2 P3 * * @@ -120072,40 +120603,40 @@ __826: // in the WAL that have been checkpointed after the checkpoint // completes into mem[P3+2]. However on an error, mem[P3+1] and // mem[P3+2] are initialized to -1. -__162: // Write results here +__163: // Write results here ; - *(*int32)(unsafe.Pointer(bp + 832)) = 0 - *(*int32)(unsafe.Pointer(bp + 832 + 1*4)) = libc.AssignPtrInt32(bp+832+2*4, -1) + *(*int32)(unsafe.Pointer(bp + 896)) = 0 + *(*int32)(unsafe.Pointer(bp + 896 + 1*4)) = libc.AssignPtrInt32(bp+896+2*4, -1) - rc = Xsqlite3Checkpoint(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, bp+832+1*4, bp+832+2*4) + rc = Xsqlite3Checkpoint(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, (*Op)(unsafe.Pointer(pOp)).Fp2, bp+896+1*4, bp+896+2*4) if !(rc != 0) { - goto __827 + goto __858 } if !(rc != SQLITE_BUSY) { - goto __828 + goto __859 } goto abort_due_to_error -__828: +__859: ; rc = SQLITE_OK - *(*int32)(unsafe.Pointer(bp + 832)) = 1 -__827: + *(*int32)(unsafe.Pointer(bp + 896)) = 1 +__858: ; i6 = 0 - pMem5 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 -__829: + pMem4 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 +__860: if !(i6 < 3) { - goto __831 + goto __862 } - Xsqlite3VdbeMemSetInt64(tls, pMem5, I64(*(*int32)(unsafe.Pointer(bp + 832 + uintptr(i6)*4)))) - goto __830 -__830: + Xsqlite3VdbeMemSetInt64(tls, pMem4, I64(*(*int32)(unsafe.Pointer(bp + 896 + uintptr(i6)*4)))) + goto __861 +__861: i6++ - pMem5 += 56 - goto __829 - goto __831 -__831: + pMem4 += 56 + goto __860 + goto __862 +__862: ; goto __8 @@ -120119,7 +120650,7 @@ __831: // If changing into or out of WAL mode the procedure is more complicated. // // Write a string containing the final journal-mode to register P2. -__163: // Name of database file for pPager +__164: // Name of database file for pPager pOut = out2Prerelease(tls, p, pOp) eNew = (*Op)(unsafe.Pointer(pOp)).Fp3 @@ -120128,17 +120659,17 @@ __163: // Name of database file for pPager pPager = Xsqlite3BtreePager(tls, pBt1) eOld = Xsqlite3PagerGetJournalMode(tls, pPager) if !(eNew == -1) { - goto __832 + goto __863 } eNew = eOld -__832: +__863: ; if !!(Xsqlite3PagerOkToChangeJournalMode(tls, pPager) != 0) { - goto __833 + goto __864 } eNew = eOld -__833: +__864: ; zFilename = Xsqlite3PagerFilename(tls, pPager, 1) @@ -120148,34 +120679,34 @@ __833: if !(eNew == PAGER_JOURNALMODE_WAL && (Xsqlite3Strlen30(tls, zFilename) == 0 || !(Xsqlite3PagerWalSupported(tls, pPager) != 0))) { - goto __834 + goto __865 } eNew = eOld -__834: +__865: ; if !(eNew != eOld && (eOld == PAGER_JOURNALMODE_WAL || eNew == PAGER_JOURNALMODE_WAL)) { - goto __835 + goto __866 } if !(!(int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) != 0) || (*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead > 1) { - goto __836 + goto __867 } rc = SQLITE_ERROR Xsqlite3VdbeError(tls, p, - ts+7290, + ts+7325, libc.VaList(bp+136, func() uintptr { if eNew == PAGER_JOURNALMODE_WAL { - return ts + 7342 /* "into" */ + return ts + 7377 /* "into" */ } - return ts + 7347 /* "out of" */ + return ts + 7382 /* "out of" */ }())) goto abort_due_to_error - goto __837 -__836: + goto __868 +__867: if !(eOld == PAGER_JOURNALMODE_WAL) { - goto __838 + goto __869 } // If leaving WAL mode, close the log file. If successful, the call // to PagerCloseWal() checkpoints and deletes the write-ahead-log @@ -120183,29 +120714,29 @@ __836: // after a successful return. rc = Xsqlite3PagerCloseWal(tls, pPager, db) if !(rc == SQLITE_OK) { - goto __840 + goto __871 } Xsqlite3PagerSetJournalMode(tls, pPager, eNew) -__840: +__871: ; - goto __839 -__838: + goto __870 +__869: if !(eOld == PAGER_JOURNALMODE_MEMORY) { - goto __841 + goto __872 } // Cannot transition directly from MEMORY to WAL. Use mode OFF // as an intermediate Xsqlite3PagerSetJournalMode(tls, pPager, PAGER_JOURNALMODE_OFF) -__841: +__872: ; -__839: +__870: ; // Open a transaction on the database file. Regardless of the journal // mode, this transaction always uses a rollback journal. if !(rc == SQLITE_OK) { - goto __842 + goto __873 } rc = Xsqlite3BtreeSetVersion(tls, pBt1, func() int32 { if eNew == PAGER_JOURNALMODE_WAL { @@ -120213,18 +120744,18 @@ __839: } return 1 }()) -__842: +__873: ; -__837: +__868: ; -__835: +__866: ; if !(rc != 0) { - goto __843 + goto __874 } eNew = eOld -__843: +__874: ; eNew = Xsqlite3PagerSetJournalMode(tls, pPager, eNew) @@ -120234,10 +120765,10 @@ __843: (*Mem)(unsafe.Pointer(pOut)).Fenc = U8(SQLITE_UTF8) Xsqlite3VdbeChangeEncoding(tls, pOut, int32(encoding)) if !(rc != 0) { - goto __844 + goto __875 } goto abort_due_to_error -__844: +__875: ; goto __8 @@ -120249,9 +120780,9 @@ __844: // If P2 is not zero, then it is a register holding a string which is // the file into which the result of vacuum should be written. When // P2 is zero, the vacuum overwrites the original database. -__164: +__165: ; - rc = Xsqlite3RunVacuum(tls, p+176, db, (*Op)(unsafe.Pointer(pOp)).Fp1, + rc = Xsqlite3RunVacuum(tls, p+168, db, (*Op)(unsafe.Pointer(pOp)).Fp1, func() uintptr { if (*Op)(unsafe.Pointer(pOp)).Fp2 != 0 { return aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56 @@ -120259,10 +120790,10 @@ __164: return uintptr(0) }()) if !(rc != 0) { - goto __845 + goto __876 } goto abort_due_to_error -__845: +__876: ; goto __8 @@ -120271,24 +120802,24 @@ __845: // Perform a single step of the incremental vacuum procedure on // the P1 database. If the vacuum has finished, jump to instruction // P2. Otherwise, fall through to the next instruction. -__165: +__166: ; pBt2 = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32)).FpBt rc = Xsqlite3BtreeIncrVacuum(tls, pBt2) if !(rc != 0) { - goto __846 + goto __877 } if !(rc != SQLITE_DONE) { - goto __847 + goto __878 } goto abort_due_to_error -__847: +__878: ; rc = SQLITE_OK goto jump_to_p2 -__846: +__877: ; goto __8 @@ -120307,16 +120838,16 @@ __846: // The P2==1 case occurs when a CREATE INDEX or similar schema change happens // that might help the statement run faster but which does not affect the // correctness of operation. -__166: +__167: ; if !!((*Op)(unsafe.Pointer(pOp)).Fp1 != 0) { - goto __848 + goto __879 } Xsqlite3ExpirePreparedStatements(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp2) - goto __849 -__848: - libc.SetBitFieldPtr16Uint32(p+208, Bft((*Op)(unsafe.Pointer(pOp)).Fp2+1), 0, 0x3) -__849: + goto __880 +__879: + libc.SetBitFieldPtr8Uint32(p+200, Bft((*Op)(unsafe.Pointer(pOp)).Fp2+1), 0, 0x3) +__880: ; goto __8 @@ -120324,7 +120855,7 @@ __849: // // Lock the btree to which cursor P1 is pointing so that the btree cannot be // written by an other cursor. -__167: +__168: ; pC28 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) @@ -120335,7 +120866,7 @@ __167: // // Unlock the btree to which cursor P1 is pointing so that it can be // written by other cursors. -__168: +__169: ; pC29 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) @@ -120356,28 +120887,28 @@ __168: // // P4 contains a pointer to the name of the table being locked. This is only // used to generate an error message if the lock cannot be obtained. -__169: +__170: isWriteLock = U8((*Op)(unsafe.Pointer(pOp)).Fp3) if !(isWriteLock != 0 || uint64(0) == (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_ReadUncommit)) { - goto __850 + goto __881 } p13 = (*Op)(unsafe.Pointer(pOp)).Fp1 rc = Xsqlite3BtreeLockTable(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(p13)*32)).FpBt, (*Op)(unsafe.Pointer(pOp)).Fp2, isWriteLock) if !(rc != 0) { - goto __851 + goto __882 } if !(rc&0xFF == SQLITE_LOCKED) { - goto __852 + goto __883 } z1 = *(*uintptr)(unsafe.Pointer(pOp + 16)) - Xsqlite3VdbeError(tls, p, ts+7354, libc.VaList(bp+144, z1)) -__852: + Xsqlite3VdbeError(tls, p, ts+7389, libc.VaList(bp+144, z1)) +__883: ; goto abort_due_to_error -__851: +__882: ; -__850: +__881: ; goto __8 @@ -120389,20 +120920,20 @@ __850: // Also, whether or not P4 is set, check that this is not being called from // within a callback to a virtual table xSync() method. If it is, the error // code will be set to SQLITE_LOCKED. -__170: +__171: pVTab = *(*uintptr)(unsafe.Pointer(pOp + 16)) rc = Xsqlite3VtabBegin(tls, db, pVTab) if !(pVTab != 0) { - goto __853 + goto __884 } Xsqlite3VtabImportErrmsg(tls, p, (*VTable)(unsafe.Pointer(pVTab)).FpVtab) -__853: +__884: ; if !(rc != 0) { - goto __854 + goto __885 } goto abort_due_to_error -__854: +__885: ; goto __8 @@ -120410,29 +120941,29 @@ __854: // // P2 is a register that holds the name of a virtual table in database // P1. Call the xCreate method for that table. -__171: // Name of the virtual table +__172: // Name of the virtual table - libc.Xmemset(tls, bp+848, 0, uint64(unsafe.Sizeof(Mem{}))) - (*Mem)(unsafe.Pointer(bp + 848 /* &sMem1 */)).Fdb = db + libc.Xmemset(tls, bp+912, 0, uint64(unsafe.Sizeof(Mem{}))) + (*Mem)(unsafe.Pointer(bp + 912 /* &sMem1 */)).Fdb = db // Because P2 is always a static string, it is impossible for the // sqlite3VdbeMemCopy() to fail - rc = Xsqlite3VdbeMemCopy(tls, bp+848, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56) + rc = Xsqlite3VdbeMemCopy(tls, bp+912, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56) - zTab = Xsqlite3_value_text(tls, bp+848) + zTab = Xsqlite3_value_text(tls, bp+912) if !(zTab != 0) { - goto __855 + goto __886 } - rc = Xsqlite3VtabCallCreate(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, zTab, p+176) -__855: + rc = Xsqlite3VtabCallCreate(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, zTab, p+168) +__886: ; - Xsqlite3VdbeMemRelease(tls, bp+848) + Xsqlite3VdbeMemRelease(tls, bp+912) if !(rc != 0) { - goto __856 + goto __887 } goto abort_due_to_error -__856: +__887: ; goto __8 @@ -120440,16 +120971,16 @@ __856: // // P4 is the name of a virtual table in database P1. Call the xDestroy method // of that table. -__172: +__173: (*Sqlite3)(unsafe.Pointer(db)).FnVDestroy++ rc = Xsqlite3VtabCallDestroy(tls, db, (*Op)(unsafe.Pointer(pOp)).Fp1, *(*uintptr)(unsafe.Pointer(pOp + 16))) (*Sqlite3)(unsafe.Pointer(db)).FnVDestroy-- if !(rc != 0) { - goto __857 + goto __888 } goto abort_due_to_error -__857: +__888: ; goto __8 @@ -120458,48 +120989,48 @@ __857: // P4 is a pointer to a virtual table object, an sqlite3_vtab structure. // P1 is a cursor number. This opcode opens a cursor to the virtual // table and stores that cursor in P1. -__173: +__174: ; pCur2 = uintptr(0) - *(*uintptr)(unsafe.Pointer(bp + 904 /* pVCur */)) = uintptr(0) + *(*uintptr)(unsafe.Pointer(bp + 968 /* pVCur */)) = uintptr(0) pVtab1 = (*VTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FpVtab if !(pVtab1 == uintptr(0) || (*Sqlite3_vtab)(unsafe.Pointer(pVtab1)).FpModule == uintptr(0)) { - goto __858 + goto __889 } rc = SQLITE_LOCKED goto abort_due_to_error -__858: +__889: ; pModule1 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab1)).FpModule rc = (*struct { f func(*libc.TLS, uintptr, uintptr) int32 - })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule1)).FxOpen})).f(tls, pVtab1, bp+904 /* &pVCur */) + })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule1)).FxOpen})).f(tls, pVtab1, bp+968 /* &pVCur */) Xsqlite3VtabImportErrmsg(tls, p, pVtab1) if !(rc != 0) { - goto __859 + goto __890 } goto abort_due_to_error -__859: +__890: ; // Initialize sqlite3_vtab_cursor base class - (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 904 /* pVCur */)))).FpVtab = pVtab1 + (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 968 /* pVCur */)))).FpVtab = pVtab1 // Initialize vdbe cursor object pCur2 = allocateCursor(tls, p, (*Op)(unsafe.Pointer(pOp)).Fp1, 0, uint8(CURTYPE_VTAB)) if !(pCur2 != 0) { - goto __860 + goto __891 } - *(*uintptr)(unsafe.Pointer(pCur2 + 48)) = *(*uintptr)(unsafe.Pointer(bp + 904 /* pVCur */)) + *(*uintptr)(unsafe.Pointer(pCur2 + 48)) = *(*uintptr)(unsafe.Pointer(bp + 968 /* pVCur */)) (*Sqlite3_vtab)(unsafe.Pointer(pVtab1)).FnRef++ - goto __861 -__860: + goto __892 +__891: ; (*struct { f func(*libc.TLS, uintptr) int32 - })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule1)).FxClose})).f(tls, *(*uintptr)(unsafe.Pointer(bp + 904 /* pVCur */))) + })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule1)).FxClose})).f(tls, *(*uintptr)(unsafe.Pointer(bp + 968 /* pVCur */))) goto no_mem -__861: +__892: ; goto __8 @@ -120512,21 +121043,21 @@ __861: // sqlite3_vtab_in_next() to extract all of the values stored in the P1 // cursor. Register P3 is used to hold the values returned by // sqlite3_vtab_in_first() and sqlite3_vtab_in_next(). -__174: // New ValueList object to put in reg[P2] +__175: // New ValueList object to put in reg[P2] pC30 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) pRhs = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(ValueList{}))) if !(pRhs == uintptr(0)) { - goto __862 + goto __893 } goto no_mem -__862: +__893: ; (*ValueList)(unsafe.Pointer(pRhs)).FpCsr = *(*uintptr)(unsafe.Pointer(pC30 + 48)) (*ValueList)(unsafe.Pointer(pRhs)).FpOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 pOut = out2Prerelease(tls, p, pOp) (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(MEM_Null) - Xsqlite3VdbeMemSetPointer(tls, pOut, pRhs, ts+6660, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free}))) + Xsqlite3VdbeMemSetPointer(tls, pOut, pRhs, ts+6695, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free}))) goto __8 // Opcode: VFilter P1 P2 P3 P4 * @@ -120547,7 +121078,7 @@ __862: // xFilter as argv. Register P3+2 becomes argv[0] when passed to xFilter. // // A jump is made to P2 if the result set after filtering would be empty. -__175: +__176: pQuery = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 pArgc = pQuery + 1*56 @@ -120565,38 +121096,38 @@ __175: // Invoke the xFilter method apArg = (*Vdbe)(unsafe.Pointer(p)).FapArg i7 = 0 -__863: +__894: if !(i7 < nArg) { - goto __865 + goto __896 } *(*uintptr)(unsafe.Pointer(apArg + uintptr(i7)*8)) = pArgc + uintptr(i7+1)*56 - goto __864 -__864: + goto __895 +__895: i7++ - goto __863 - goto __865 -__865: + goto __894 + goto __896 +__896: ; rc = (*struct { f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule2)).FxFilter})).f(tls, pVCur1, iQuery, *(*uintptr)(unsafe.Pointer(pOp + 16 /* &.p4 */)), nArg, apArg) Xsqlite3VtabImportErrmsg(tls, p, pVtab2) if !(rc != 0) { - goto __866 + goto __897 } goto abort_due_to_error -__866: +__897: ; - res13 = (*struct { + res12 = (*struct { f func(*libc.TLS, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule2)).FxEof})).f(tls, pVCur1) (*VdbeCursor)(unsafe.Pointer(pCur3)).FnullRow = U8(0) - if !(res13 != 0) { - goto __867 + if !(res12 != 0) { + goto __898 } goto jump_to_p2 -__867: +__898: ; goto __8 @@ -120613,60 +121144,56 @@ __867: // table implementation. The P5 column might also contain other // bits (OPFLAG_LENGTHARG or OPFLAG_TYPEOFARG) but those bits are // unused by OP_VColumn. -__176: +__177: pCur4 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) pDest2 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 if !((*VdbeCursor)(unsafe.Pointer(pCur4)).FnullRow != 0) { - goto __868 + goto __899 } Xsqlite3VdbeMemSetNull(tls, pDest2) goto __8 -__868: +__899: ; + pVtab3 = (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pCur4 + 48)))).FpVtab pModule3 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab3)).FpModule - libc.Xmemset(tls, bp+912, 0, uint64(unsafe.Sizeof(Sqlite3_context{}))) - (*Sqlite3_context)(unsafe.Pointer(bp + 912 /* &sContext */)).FpOut = pDest2 + libc.Xmemset(tls, bp+976, 0, uint64(unsafe.Sizeof(Sqlite3_context{}))) + (*Sqlite3_context)(unsafe.Pointer(bp + 976 /* &sContext */)).FpOut = pDest2 + (*Sqlite3_context)(unsafe.Pointer(bp + 976 /* &sContext */)).Fenc = encoding if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5)&OPFLAG_NOCHNG != 0) { - goto __869 + goto __900 } Xsqlite3VdbeMemSetNull(tls, pDest2) (*Mem)(unsafe.Pointer(pDest2)).Fflags = U16(MEM_Null | MEM_Zero) *(*int32)(unsafe.Pointer(pDest2)) = 0 - goto __870 -__869: + goto __901 +__900: (*Mem)(unsafe.Pointer(pDest2)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pDest2)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Null) -__870: +__901: ; rc = (*struct { f func(*libc.TLS, uintptr, uintptr, int32) int32 - })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule3)).FxColumn})).f(tls, *(*uintptr)(unsafe.Pointer(pCur4 + 48 /* &.uc */)), bp+912 /* &sContext */, (*Op)(unsafe.Pointer(pOp)).Fp2) + })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule3)).FxColumn})).f(tls, *(*uintptr)(unsafe.Pointer(pCur4 + 48 /* &.uc */)), bp+976 /* &sContext */, (*Op)(unsafe.Pointer(pOp)).Fp2) Xsqlite3VtabImportErrmsg(tls, p, pVtab3) - if !((*Sqlite3_context)(unsafe.Pointer(bp+912)).FisError > 0) { - goto __871 + if !((*Sqlite3_context)(unsafe.Pointer(bp+976)).FisError > 0) { + goto __902 } - Xsqlite3VdbeError(tls, p, ts+4444, libc.VaList(bp+152, Xsqlite3_value_text(tls, pDest2))) - rc = (*Sqlite3_context)(unsafe.Pointer(bp + 912 /* &sContext */)).FisError -__871: + Xsqlite3VdbeError(tls, p, ts+4479, libc.VaList(bp+152, Xsqlite3_value_text(tls, pDest2))) + rc = (*Sqlite3_context)(unsafe.Pointer(bp + 976 /* &sContext */)).FisError +__902: ; Xsqlite3VdbeChangeEncoding(tls, pDest2, int32(encoding)) - if !(Xsqlite3VdbeMemTooBig(tls, pDest2) != 0) { - goto __872 - } - goto too_big -__872: - ; if !(rc != 0) { - goto __873 + goto __903 } goto abort_due_to_error -__873: +__903: ; goto __8 @@ -120675,15 +121202,15 @@ __873: // Advance virtual table P1 to the next row in its result set and // jump to instruction P2. Or, if the virtual table has reached // the end of its result set, then fall through to the next instruction. -__177: +__178: pCur5 = *(*uintptr)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FapCsr + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*8)) if !((*VdbeCursor)(unsafe.Pointer(pCur5)).FnullRow != 0) { - goto __874 + goto __904 } goto __8 -__874: +__904: ; pVtab4 = (*Sqlite3_vtab_cursor)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pCur5 + 48)))).FpVtab pModule4 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab4)).FpModule @@ -120698,21 +121225,21 @@ __874: })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule4)).FxNext})).f(tls, *(*uintptr)(unsafe.Pointer(pCur5 + 48 /* &.uc */))) Xsqlite3VtabImportErrmsg(tls, p, pVtab4) if !(rc != 0) { - goto __875 + goto __905 } goto abort_due_to_error -__875: +__905: ; - res14 = (*struct { + res13 = (*struct { f func(*libc.TLS, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule4)).FxEof})).f(tls, *(*uintptr)(unsafe.Pointer(pCur5 + 48 /* &.uc */))) - if !!(res14 != 0) { - goto __876 + if !!(res13 != 0) { + goto __906 } // If there is data, jump to P2 goto jump_to_p2_and_check_for_interrupt -__876: +__906: ; goto check_for_interrupt @@ -120721,7 +121248,7 @@ __876: // P4 is a pointer to a virtual table object, an sqlite3_vtab structure. // This opcode invokes the corresponding xRename method. The value // in register P1 is passed as the zName argument to the xRename method. -__178: +__179: isLegacy = int32((*Sqlite3)(unsafe.Pointer(db)).Fflags & uint64(SQLITE_LegacyAlter)) *(*U64)(unsafe.Pointer(db + 48)) |= uint64(SQLITE_LegacyAlter) @@ -120730,27 +121257,27 @@ __178: rc = Xsqlite3VdbeChangeEncoding(tls, pName, SQLITE_UTF8) if !(rc != 0) { - goto __877 + goto __907 } goto abort_due_to_error -__877: +__907: ; rc = (*struct { f func(*libc.TLS, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer((*Sqlite3_vtab)(unsafe.Pointer(pVtab5)).FpModule)).FxRename})).f(tls, pVtab5, (*Mem)(unsafe.Pointer(pName)).Fz) if !(isLegacy == 0) { - goto __878 + goto __908 } *(*U64)(unsafe.Pointer(db + 48)) &= libc.CplUint64(uint64(SQLITE_LegacyAlter)) -__878: +__908: ; Xsqlite3VtabImportErrmsg(tls, p, pVtab5) - libc.SetBitFieldPtr16Uint32(p+208, Bft(0), 0, 0x3) + libc.SetBitFieldPtr8Uint32(p+200, Bft(0), 0, 0x3) if !(rc != 0) { - goto __879 + goto __909 } goto abort_due_to_error -__879: +__909: ; goto __8 @@ -120780,97 +121307,97 @@ __879: // // P5 is the error actions (OE_Replace, OE_Fail, OE_Ignore, etc) to // apply in the case of a constraint failure on an insert or update. -__179: - *(*Sqlite_int64)(unsafe.Pointer(bp + 968 /* rowid1 */)) = int64(0) +__180: + *(*Sqlite_int64)(unsafe.Pointer(bp + 1032 /* rowid1 */)) = int64(0) if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { - goto __880 + goto __910 } goto no_mem -__880: +__910: ; pVtab6 = (*VTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FpVtab if !(pVtab6 == uintptr(0) || (*Sqlite3_vtab)(unsafe.Pointer(pVtab6)).FpModule == uintptr(0)) { - goto __881 + goto __911 } rc = SQLITE_LOCKED goto abort_due_to_error -__881: +__911: ; pModule5 = (*Sqlite3_vtab)(unsafe.Pointer(pVtab6)).FpModule nArg1 = (*Op)(unsafe.Pointer(pOp)).Fp2 if !((*Sqlite3_module)(unsafe.Pointer(pModule5)).FxUpdate != 0) { - goto __882 + goto __912 } vtabOnConflict = (*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict apArg1 = (*Vdbe)(unsafe.Pointer(p)).FapArg pX1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 i8 = 0 -__883: +__913: if !(i8 < nArg1) { - goto __885 + goto __915 } *(*uintptr)(unsafe.Pointer(apArg1 + uintptr(i8)*8)) = pX1 pX1 += 56 - goto __884 -__884: + goto __914 +__914: i8++ - goto __883 - goto __885 -__885: + goto __913 + goto __915 +__915: ; (*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict = U8((*Op)(unsafe.Pointer(pOp)).Fp5) rc = (*struct { f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32 - })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule5)).FxUpdate})).f(tls, pVtab6, nArg1, apArg1, bp+968 /* &rowid1 */) + })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3_module)(unsafe.Pointer(pModule5)).FxUpdate})).f(tls, pVtab6, nArg1, apArg1, bp+1032 /* &rowid1 */) (*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict = vtabOnConflict Xsqlite3VtabImportErrmsg(tls, p, pVtab6) if !(rc == SQLITE_OK && (*Op)(unsafe.Pointer(pOp)).Fp1 != 0) { - goto __886 + goto __916 } - (*Sqlite3)(unsafe.Pointer(db)).FlastRowid = *(*Sqlite_int64)(unsafe.Pointer(bp + 968 /* rowid1 */)) -__886: + (*Sqlite3)(unsafe.Pointer(db)).FlastRowid = *(*Sqlite_int64)(unsafe.Pointer(bp + 1032 /* rowid1 */)) +__916: ; if !(rc&0xff == SQLITE_CONSTRAINT && (*VTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FbConstraint != 0) { - goto __887 + goto __917 } if !(int32((*Op)(unsafe.Pointer(pOp)).Fp5) == OE_Ignore) { - goto __889 + goto __919 } rc = SQLITE_OK - goto __890 -__889: + goto __920 +__919: (*Vdbe)(unsafe.Pointer(p)).FerrorAction = func() uint8 { if int32((*Op)(unsafe.Pointer(pOp)).Fp5) == OE_Replace { return uint8(OE_Abort) } return uint8((*Op)(unsafe.Pointer(pOp)).Fp5) }() -__890: +__920: ; - goto __888 -__887: + goto __918 +__917: (*Vdbe)(unsafe.Pointer(p)).FnChange++ -__888: +__918: ; if !(rc != 0) { - goto __891 + goto __921 } goto abort_due_to_error -__891: +__921: ; -__882: +__912: ; goto __8 // Opcode: Pagecount P1 P2 * * * // // Write the current number of pages in database P1 to memory cell P2. -__180: // out2 +__181: // out2 pOut = out2Prerelease(tls, p, pOp) *(*I64)(unsafe.Pointer(pOut)) = I64(Xsqlite3BtreeLastPage(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32)).FpBt)) goto __8 @@ -120882,22 +121409,22 @@ __180: // out2 // do not change the maximum page count value if P3==0. // // Store the maximum page count after the change in register P2. -__181: +__182: pOut = out2Prerelease(tls, p, pOp) pBt3 = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*32)).FpBt newMax = uint32(0) if !((*Op)(unsafe.Pointer(pOp)).Fp3 != 0) { - goto __892 + goto __922 } newMax = Xsqlite3BtreeLastPage(tls, pBt3) if !(newMax < uint32((*Op)(unsafe.Pointer(pOp)).Fp3)) { - goto __893 + goto __923 } newMax = uint32((*Op)(unsafe.Pointer(pOp)).Fp3) -__893: +__923: ; -__892: +__922: ; *(*I64)(unsafe.Pointer(pOut)) = I64(Xsqlite3BtreeMaxPageCount(tls, pBt3, newMax)) goto __8 @@ -120946,8 +121473,8 @@ __892: // if they were, they throw an error. // // See also: AggStep, AggFinal, Function -__182: // group -__183: +__183: // group +__184: ; pCtx2 = *(*uintptr)(unsafe.Pointer(pOp + 16)) @@ -120957,24 +121484,25 @@ __183: // reinitializes the relavant parts of the sqlite3_context object pOut = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 if !((*Sqlite3_context)(unsafe.Pointer(pCtx2)).FpOut != pOut) { - goto __894 + goto __924 } (*Sqlite3_context)(unsafe.Pointer(pCtx2)).FpVdbe = p (*Sqlite3_context)(unsafe.Pointer(pCtx2)).FpOut = pOut + (*Sqlite3_context)(unsafe.Pointer(pCtx2)).Fenc = encoding i9 = int32((*Sqlite3_context)(unsafe.Pointer(pCtx2)).Fargc) - 1 -__895: +__925: if !(i9 >= 0) { - goto __897 + goto __927 } *(*uintptr)(unsafe.Pointer(pCtx2 + 48 + uintptr(i9)*8)) = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp2+i9)*56 - goto __896 -__896: + goto __926 +__926: i9-- - goto __895 - goto __897 -__897: + goto __925 + goto __927 +__927: ; -__894: +__924: ; (*Mem)(unsafe.Pointer(pOut)).Fflags = U16(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&libc.CplInt32(MEM_TypeMask|MEM_Zero) | MEM_Null) @@ -120985,40 +121513,35 @@ __894: // If the function returned an error, throw an exception if !((*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError != 0) { - goto __898 + goto __928 } if !((*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError > 0) { - goto __899 + goto __929 } - Xsqlite3VdbeError(tls, p, ts+4444, libc.VaList(bp+160, Xsqlite3_value_text(tls, pOut))) + Xsqlite3VdbeError(tls, p, ts+4479, libc.VaList(bp+160, Xsqlite3_value_text(tls, pOut))) rc = (*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError -__899: +__929: ; - Xsqlite3VdbeDeleteAuxData(tls, db, p+304, (*Sqlite3_context)(unsafe.Pointer(pCtx2)).FiOp, (*Op)(unsafe.Pointer(pOp)).Fp1) + Xsqlite3VdbeDeleteAuxData(tls, db, p+296, (*Sqlite3_context)(unsafe.Pointer(pCtx2)).FiOp, (*Op)(unsafe.Pointer(pOp)).Fp1) (*Sqlite3_context)(unsafe.Pointer(pCtx2)).FisError = 0 if !(rc != 0) { - goto __900 + goto __930 } goto abort_due_to_error -__900: +__930: ; -__898: +__928: ; - // Copy the result of the function into register P3 - if !(int32((*Mem)(unsafe.Pointer(pOut)).Fflags)&(MEM_Str|MEM_Blob) != 0) { - goto __901 - } - Xsqlite3VdbeChangeEncoding(tls, pOut, int32(encoding)) - if !(Xsqlite3VdbeMemTooBig(tls, pOut) != 0) { - goto __902 - } - goto too_big -__902: - ; -__901: - ; + goto __8 + // Opcode: ClrSubtype P1 * * * * + // Synopsis: r[P1].subtype = 0 + // + // Clear the subtype from register P1. +__185: // in1 + pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 + *(*U16)(unsafe.Pointer(pIn1 + 20)) &= libc.Uint16FromInt32(libc.CplInt32(MEM_Subtype)) goto __8 // Opcode: FilterAdd P1 * P3 P4 * @@ -121026,7 +121549,7 @@ __901: // // Compute a hash on the P4 registers starting with r[P3] and // add that hash to the bloom filter contained in r[P1]. -__184: +__186: ; pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 @@ -121048,23 +121571,23 @@ __184: // more CPU cycles to be used, but it should still yield the correct // answer. However, an incorrect answer may well arise from a // false positive - if the jump is taken when it should fall through. -__185: +__187: ; pIn1 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp1)*56 h1 = filterHash(tls, aMem, pOp) h1 = h1 % U64((*Mem)(unsafe.Pointer(pIn1)).Fn) if !(int32(*(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pIn1)).Fz + uintptr(h1/uint64(8)))))&(int32(1)<<(h1&uint64(7))) == 0) { - goto __903 + goto __931 } - *(*U32)(unsafe.Pointer(p + 220 + 8*4))++ + *(*U32)(unsafe.Pointer(p + 212 + 8*4))++ goto jump_to_p2 - goto __904 -__903: - *(*U32)(unsafe.Pointer(p + 220 + 7*4))++ + goto __932 +__931: + *(*U32)(unsafe.Pointer(p + 212 + 7*4))++ -__904: +__932: ; goto __8 @@ -121091,8 +121614,8 @@ __904: // // If P3 is not zero, then it is an address to jump to if an SQLITE_CORRUPT // error is encountered. -__186: -__187: +__188: +__189: // If the P4 argument is not NULL, then it must be an SQL comment string. // The "--" string is broken up to prevent false-positives with srcck1.c. @@ -121107,77 +121630,77 @@ __187: // OP_Init is always instruction 0 if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmTrace)&(SQLITE_TRACE_STMT|SQLITE_TRACE_LEGACY) != 0 && - !(int32((*Vdbe)(unsafe.Pointer(p)).FdoingRerun) != 0) && + int32((*Vdbe)(unsafe.Pointer(p)).FminWriteFileFormat) != 254 && libc.AssignUintptr(&zTrace, func() uintptr { if *(*uintptr)(unsafe.Pointer(pOp + 16)) != 0 { return *(*uintptr)(unsafe.Pointer(pOp + 16)) } return (*Vdbe)(unsafe.Pointer(p)).FzSql }()) != uintptr(0)) { - goto __905 + goto __933 } if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmTrace)&SQLITE_TRACE_LEGACY != 0) { - goto __906 + goto __934 } z2 = Xsqlite3VdbeExpandSql(tls, p, zTrace) (*struct { f func(*libc.TLS, uintptr, uintptr) })(unsafe.Pointer(&struct{ uintptr }{*(*uintptr)(unsafe.Pointer(db + 248 /* &.trace */))})).f(tls, (*Sqlite3)(unsafe.Pointer(db)).FpTraceArg, z2) Xsqlite3_free(tls, z2) - goto __907 -__906: + goto __935 +__934: if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeExec > 1) { - goto __908 + goto __936 } - z3 = Xsqlite3MPrintf(tls, db, ts+7383, libc.VaList(bp+168, zTrace)) + z3 = Xsqlite3MPrintf(tls, db, ts+7418, libc.VaList(bp+168, zTrace)) (*struct { f func(*libc.TLS, U32, uintptr, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{*(*uintptr)(unsafe.Pointer(db + 248 /* &.trace */))})).f(tls, uint32(SQLITE_TRACE_STMT), (*Sqlite3)(unsafe.Pointer(db)).FpTraceArg, p, z3) Xsqlite3DbFree(tls, db, z3) - goto __909 -__908: + goto __937 +__936: (*struct { f func(*libc.TLS, U32, uintptr, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{*(*uintptr)(unsafe.Pointer(db + 248 /* &.trace */))})).f(tls, uint32(SQLITE_TRACE_STMT), (*Sqlite3)(unsafe.Pointer(db)).FpTraceArg, p, zTrace) -__909: +__937: ; -__907: +__935: ; -__905: +__933: ; if !((*Op)(unsafe.Pointer(pOp)).Fp1 >= Xsqlite3Config.FiOnceResetThreshold) { - goto __910 + goto __938 } if !(int32((*Op)(unsafe.Pointer(pOp)).Fopcode) == OP_Trace) { - goto __911 + goto __939 } goto __8 -__911: +__939: ; i10 = 1 -__912: +__940: if !(i10 < (*Vdbe)(unsafe.Pointer(p)).FnOp) { - goto __914 + goto __942 } if !(int32((*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp+uintptr(i10)*24)).Fopcode) == OP_Once) { - goto __915 + goto __943 } (*Op)(unsafe.Pointer((*Vdbe)(unsafe.Pointer(p)).FaOp + uintptr(i10)*24)).Fp1 = 0 -__915: +__943: ; - goto __913 -__913: + goto __941 +__941: i10++ - goto __912 - goto __914 -__914: + goto __940 + goto __942 +__942: ; (*Op)(unsafe.Pointer(pOp)).Fp1 = 0 -__910: +__938: ; (*Op)(unsafe.Pointer(pOp)).Fp1++ - *(*U32)(unsafe.Pointer(p + 220 + 6*4))++ + *(*U32)(unsafe.Pointer(p + 212 + 6*4))++ goto jump_to_p2 // Opcode: Noop * * * * * @@ -121188,7 +121711,7 @@ __910: // is to say when the EXPLAIN QUERY PLAN syntax is used.) // This opcode records information from the optimizer. It is the // the same as a no-op. This opcodesnever appears in a real VM program. -__188: // This is really OP_Noop, OP_Explain +__190: // This is really OP_Noop, OP_Explain ; goto __8 @@ -121219,75 +121742,80 @@ __7: // an error of some kind. abort_due_to_error: if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { - goto __916 + goto __944 } rc = SQLITE_NOMEM - goto __917 -__916: + goto __945 +__944: if !(rc == SQLITE_IOERR|int32(33)<<8) { - goto __918 + goto __946 } - rc = Xsqlite3CorruptError(tls, 95929) -__918: + rc = Xsqlite3CorruptError(tls, 96958) +__946: ; -__917: +__945: ; if !((*Vdbe)(unsafe.Pointer(p)).FzErrMsg == uintptr(0) && rc != SQLITE_IOERR|int32(12)<<8) { - goto __919 + goto __947 } - Xsqlite3VdbeError(tls, p, ts+4444, libc.VaList(bp+176, Xsqlite3ErrStr(tls, rc))) -__919: + Xsqlite3VdbeError(tls, p, ts+4479, libc.VaList(bp+176, Xsqlite3ErrStr(tls, rc))) +__947: ; (*Vdbe)(unsafe.Pointer(p)).Frc = rc Xsqlite3SystemError(tls, db, rc) - Xsqlite3_log(tls, rc, ts+7389, + Xsqlite3_log(tls, rc, ts+7424, libc.VaList(bp+184, int32((int64(pOp)-int64(aOp))/24), (*Vdbe)(unsafe.Pointer(p)).FzSql, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg)) + if !(int32((*Vdbe)(unsafe.Pointer(p)).FeVdbeState) == VDBE_RUN_STATE) { + goto __948 + } Xsqlite3VdbeHalt(tls, p) +__948: + ; if !(rc == SQLITE_IOERR|int32(12)<<8) { - goto __920 + goto __949 } Xsqlite3OomFault(tls, db) -__920: +__949: ; if !(rc == SQLITE_CORRUPT && int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) == 0) { - goto __921 + goto __950 } *(*U64)(unsafe.Pointer(db + 48)) |= U64(uint64(0x00002)) << 32 -__921: +__950: ; rc = SQLITE_ERROR if !(int32(resetSchemaOnFault) > 0) { - goto __922 + goto __951 } Xsqlite3ResetOneSchema(tls, db, int32(resetSchemaOnFault)-1) -__922: +__951: ; // This is the only way out of this procedure. We have to // release the mutexes on btrees that were acquired at the // top. vdbe_return: -__923: +__952: if !(nVmStep >= nProgressLimit && (*Sqlite3)(unsafe.Pointer(db)).FxProgress != uintptr(0)) { - goto __924 + goto __953 } nProgressLimit = nProgressLimit + U64((*Sqlite3)(unsafe.Pointer(db)).FnProgressOps) if !((*struct { f func(*libc.TLS, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3)(unsafe.Pointer(db)).FxProgress})).f(tls, (*Sqlite3)(unsafe.Pointer(db)).FpProgressArg) != 0) { - goto __925 + goto __954 } nProgressLimit = uint64(0xffffffff) | U64(uint64(0xffffffff))<<32 rc = SQLITE_INTERRUPT goto abort_due_to_error -__925: +__954: ; - goto __923 -__924: + goto __952 +__953: ; - *(*U32)(unsafe.Pointer(p + 220 + 4*4)) += U32(int32(nVmStep)) + *(*U32)(unsafe.Pointer(p + 212 + 4*4)) += U32(int32(nVmStep)) Xsqlite3VdbeLeave(tls, p) return rc @@ -121295,7 +121823,7 @@ __924: // Jump to here if a string or blob larger than SQLITE_MAX_LENGTH // is encountered. too_big: - Xsqlite3VdbeError(tls, p, ts+6637, 0) + Xsqlite3VdbeError(tls, p, ts+6672, 0) rc = SQLITE_TOOBIG goto abort_due_to_error @@ -121315,12 +121843,12 @@ abort_due_to_interrupt: return int32(0) } -var azType = [4]uintptr{ts + 7421, ts + 7430, ts + 7437, - ts + 7443} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:88560:25 */ -var and_logic = [9]uint8{uint8(0), uint8(0), uint8(0), uint8(0), uint8(1), uint8(2), uint8(0), uint8(2), uint8(2)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:89784:32 */ -var or_logic = [9]uint8{uint8(0), uint8(1), uint8(2), uint8(1), uint8(1), uint8(1), uint8(2), uint8(1), uint8(2)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:89787:32 */ -var aFlag1 = [2]U16{U16(MEM_Blob), U16(MEM_Str | MEM_Term)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:90280:24 */ -var vfsFlags int32 = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE | SQLITE_OPEN_TRANSIENT_DB /* testdata/sqlite-amalgamation-3380500/sqlite3.c:91535:20 */ +var azType = [4]uintptr{ts + 7456, ts + 7465, ts + 7472, + ts + 7478} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:89482:25 */ +var and_logic = [9]uint8{uint8(0), uint8(0), uint8(0), uint8(0), uint8(1), uint8(2), uint8(0), uint8(2), uint8(2)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:90730:32 */ +var or_logic = [9]uint8{uint8(0), uint8(1), uint8(2), uint8(1), uint8(1), uint8(1), uint8(2), uint8(1), uint8(2)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:90733:32 */ +var aFlag1 = [2]U16{U16(MEM_Blob), U16(MEM_Str | MEM_Term)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:91243:24 */ +var vfsFlags int32 = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE | SQLITE_OPEN_TRANSIENT_DB /* testdata/sqlite-amalgamation-3390200/sqlite3.c:92549:20 */ //************* End of vdbe.c *********************************************** //************* Begin file vdbeblob.c *************************************** @@ -121351,7 +121879,7 @@ type Incrblob1 = struct { Fdb uintptr FzDb uintptr FpTab uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96034:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97063:9 */ //************* End of vdbe.c *********************************************** //************* Begin file vdbeblob.c *************************************** @@ -121372,7 +121900,7 @@ type Incrblob1 = struct { // #include "vdbeInt.h" // Valid sqlite3_blob* handles point to Incrblob structures. -type Incrblob = Incrblob1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96034:25 */ +type Incrblob = Incrblob1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97063:25 */ // This function is used by both blob_open() and blob_reopen(). It seeks // the b-tree cursor associated with blob handle p to point to row iRow. @@ -121389,7 +121917,7 @@ type Incrblob = Incrblob1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:9603 // If an error does occur, then the b-tree cursor is closed. All subsequent // calls to sqlite3_blob_read(), blob_write() or blob_reopen() will // immediately return SQLITE_ABORT. -func blobSeekToRow(tls *libc.TLS, p uintptr, iRow Sqlite3_int64, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96064:12: */ +func blobSeekToRow(tls *libc.TLS, p uintptr, iRow Sqlite3_int64, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97093:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -121424,16 +121952,16 @@ func blobSeekToRow(tls *libc.TLS, p uintptr, iRow Sqlite3_int64, pzErr uintptr) } if type1 < U32(12) { - zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+7455, + zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+7490, libc.VaList(bp, func() uintptr { if type1 == U32(0) { - return ts + 7484 /* "null" */ + return ts + 7519 /* "null" */ } return func() uintptr { if type1 == U32(7) { - return ts + 7489 /* "real" */ + return ts + 7524 /* "real" */ } - return ts + 7494 /* "integer" */ + return ts + 7529 /* "integer" */ }() }())) rc = SQLITE_ERROR @@ -121453,10 +121981,10 @@ func blobSeekToRow(tls *libc.TLS, p uintptr, iRow Sqlite3_int64, pzErr uintptr) rc = Xsqlite3_finalize(tls, (*Incrblob)(unsafe.Pointer(p)).FpStmt) (*Incrblob)(unsafe.Pointer(p)).FpStmt = uintptr(0) if rc == SQLITE_OK { - zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+7502, libc.VaList(bp+8, iRow)) + zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+7537, libc.VaList(bp+8, iRow)) rc = SQLITE_ERROR } else { - zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+4444, libc.VaList(bp+16, Xsqlite3_errmsg(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb))) + zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+4479, libc.VaList(bp+16, Xsqlite3_errmsg(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb))) } } @@ -121465,7 +121993,7 @@ func blobSeekToRow(tls *libc.TLS, p uintptr, iRow Sqlite3_int64, pzErr uintptr) } // Open a blob handle. -func Xsqlite3_blob_open(tls *libc.TLS, db uintptr, zDb uintptr, zTable uintptr, zColumn uintptr, iRow Sqlite_int64, wrFlag int32, ppBlob uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96132:16: */ +func Xsqlite3_blob_open(tls *libc.TLS, db uintptr, zDb uintptr, zTable uintptr, zColumn uintptr, iRow Sqlite_int64, wrFlag int32, ppBlob uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97161:16: */ bp := tls.Alloc(464) defer tls.Free(464) @@ -121521,21 +122049,21 @@ __3: goto __4 } pTab = uintptr(0) - Xsqlite3ErrorMsg(tls, bp+48, ts+7522, libc.VaList(bp, zTable)) + Xsqlite3ErrorMsg(tls, bp+48, ts+7557, libc.VaList(bp, zTable)) __4: ; if !(pTab != 0 && !((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0))) { goto __5 } pTab = uintptr(0) - Xsqlite3ErrorMsg(tls, bp+48, ts+7552, libc.VaList(bp+8, zTable)) + Xsqlite3ErrorMsg(tls, bp+48, ts+7587, libc.VaList(bp+8, zTable)) __5: ; if !(pTab != 0 && int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) { goto __6 } pTab = uintptr(0) - Xsqlite3ErrorMsg(tls, bp+48, ts+7588, libc.VaList(bp+16, zTable)) + Xsqlite3ErrorMsg(tls, bp+48, ts+7623, libc.VaList(bp+16, zTable)) __6: ; if !!(pTab != 0) { @@ -121580,7 +122108,7 @@ __11: goto __13 } Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */))) - *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+7609, libc.VaList(bp+24, zColumn)) + *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+7644, libc.VaList(bp+24, zColumn)) rc = SQLITE_ERROR Xsqlite3BtreeLeaveAll(tls, db) goto blob_open_out @@ -121610,7 +122138,7 @@ __19: if !((*sColMap)(unsafe.Pointer(pFKey+64+uintptr(j)*16)).FiFrom == iCol) { goto __22 } - zFault = ts + 7630 /* "foreign key" */ + zFault = ts + 7665 /* "foreign key" */ __22: ; goto __20 @@ -121643,7 +122171,7 @@ __26: if !(int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(j1)*2))) == iCol || int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(j1)*2))) == -2) { goto __29 } - zFault = ts + 7642 /* "indexed" */ + zFault = ts + 7677 /* "indexed" */ __29: ; goto __27 @@ -121664,7 +122192,7 @@ __25: goto __30 } Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */))) - *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+7650, libc.VaList(bp+32, zFault)) + *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+7685, libc.VaList(bp+32, zFault)) rc = SQLITE_ERROR Xsqlite3BtreeLeaveAll(tls, db) goto blob_open_out @@ -121775,7 +122303,7 @@ __38: ; Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr { if *(*uintptr)(unsafe.Pointer(bp + 456)) != 0 { - return ts + 4444 /* "%s" */ + return ts + 4479 /* "%s" */ } return uintptr(0) }(), libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)))) @@ -121786,7 +122314,7 @@ __38: return rc } -var iLn int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96275:24 */ +var iLn int32 = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97304:24 */ var openBlob = [6]VdbeOpList{ {Fopcode: U8(OP_TableLock)}, // 0: Acquire a read or write lock {Fopcode: U8(OP_OpenRead)}, // 1: Open a cursor @@ -121795,11 +122323,11 @@ var openBlob = [6]VdbeOpList{ {Fopcode: U8(OP_Column), Fp3: int8(1)}, // 3 {Fopcode: U8(OP_ResultRow), Fp1: int8(1)}, // 4 {Fopcode: U8(OP_Halt)}, // 5 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96276:31 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97305:31 */ // Close a blob handle that was previously created using // sqlite3_blob_open(). -func Xsqlite3_blob_close(tls *libc.TLS, pBlob uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96367:16: */ +func Xsqlite3_blob_close(tls *libc.TLS, pBlob uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97396:16: */ var p uintptr = pBlob var rc int32 var db uintptr @@ -121818,14 +122346,14 @@ func Xsqlite3_blob_close(tls *libc.TLS, pBlob uintptr) int32 { /* testdata/sqlit } // Perform a read or write operation on a blob -func blobReadWrite(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32, xCall uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96388:12: */ +func blobReadWrite(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32, xCall uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97417:12: */ var rc int32 var p uintptr = pBlob var v uintptr var db uintptr if p == uintptr(0) { - return Xsqlite3MisuseError(tls, 96400) + return Xsqlite3MisuseError(tls, 97429) } db = (*Incrblob)(unsafe.Pointer(p)).Fdb Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -121884,14 +122412,14 @@ func blobReadWrite(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int } // Read data from a blob handle. -func Xsqlite3_blob_read(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96463:16: */ +func Xsqlite3_blob_read(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97492:16: */ return blobReadWrite(tls, pBlob, z, n, iOffset, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, U32, U32, uintptr) int32 }{Xsqlite3BtreePayloadChecked}))) } // Write data to a blob handle. -func Xsqlite3_blob_write(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96470:16: */ +func Xsqlite3_blob_write(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffset int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97499:16: */ return blobReadWrite(tls, pBlob, z, n, iOffset, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, U32, U32, uintptr) int32 }{Xsqlite3BtreePutData}))) @@ -121901,7 +122429,7 @@ func Xsqlite3_blob_write(tls *libc.TLS, pBlob uintptr, z uintptr, n int32, iOffs // // The Incrblob.nByte field is fixed for the lifetime of the Incrblob // so no mutex is required for access. -func Xsqlite3_blob_bytes(tls *libc.TLS, pBlob uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96480:16: */ +func Xsqlite3_blob_bytes(tls *libc.TLS, pBlob uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97509:16: */ var p uintptr = pBlob if p != 0 && (*Incrblob)(unsafe.Pointer(p)).FpStmt != 0 { return (*Incrblob)(unsafe.Pointer(p)).FnByte @@ -121917,7 +122445,7 @@ func Xsqlite3_blob_bytes(tls *libc.TLS, pBlob uintptr) int32 { /* testdata/sqlit // database handle error code and message set. If this happens, then all // subsequent calls to sqlite3_blob_xxx() functions (except blob_close()) // immediately return SQLITE_ABORT. -func Xsqlite3_blob_reopen(tls *libc.TLS, pBlob uintptr, iRow Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96495:16: */ +func Xsqlite3_blob_reopen(tls *libc.TLS, pBlob uintptr, iRow Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97524:16: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -121926,7 +122454,7 @@ func Xsqlite3_blob_reopen(tls *libc.TLS, pBlob uintptr, iRow Sqlite3_int64) int3 var db uintptr if p == uintptr(0) { - return Xsqlite3MisuseError(tls, 96500) + return Xsqlite3MisuseError(tls, 97529) } db = (*Incrblob)(unsafe.Pointer(p)).Fdb Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -121943,7 +122471,7 @@ func Xsqlite3_blob_reopen(tls *libc.TLS, pBlob uintptr, iRow Sqlite3_int64) int3 if rc != SQLITE_OK { Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr { if *(*uintptr)(unsafe.Pointer(bp + 8)) != 0 { - return ts + 4444 /* "%s" */ + return ts + 4479 /* "%s" */ } return uintptr(0) }(), libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */)))) @@ -122113,7 +122641,7 @@ type MergeEngine1 = struct { FpTask uintptr FaTree uintptr FaReadr uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22228:9 */ //************* End of vdbeblob.c ******************************************* //************* Begin file vdbesort.c *************************************** @@ -122264,7 +122792,7 @@ type MergeEngine1 = struct { // overflows. 512MiB. // Private objects used by the sorter -type MergeEngine = MergeEngine1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96689:28 */ // Merge PMAs together +type MergeEngine = MergeEngine1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97718:28 */ // Merge PMAs together type PmaReader1 = struct { FiReadOff I64 FiEof I64 @@ -122278,10 +122806,10 @@ type PmaReader1 = struct { F__ccgo_pad1 [4]byte FaMap uintptr FpIncr uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22228:9 */ // Merge PMAs together -type PmaReader = PmaReader1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96690:26 */ // Incrementally read one PMA +type PmaReader = PmaReader1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97719:26 */ // Incrementally read one PMA type PmaWriter1 = struct { FeFWErr int32 F__ccgo_pad1 [4]byte @@ -122292,18 +122820,18 @@ type PmaWriter1 = struct { F__ccgo_pad2 [4]byte FiWriteOff I64 FpFd uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96691:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97720:9 */ // Incrementally read one PMA -type PmaWriter = PmaWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96691:26 */ // Incrementally write one PMA +type PmaWriter = PmaWriter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97720:26 */ // Incrementally write one PMA type SorterRecord1 = struct { FnVal int32 F__ccgo_pad1 [4]byte Fu struct{ FpNext uintptr } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22228:9 */ // Incrementally write one PMA -type SorterRecord = SorterRecord1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96692:29 */ // A record being sorted +type SorterRecord = SorterRecord1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97721:29 */ // A record being sorted type SortSubtask1 = struct { FpThread uintptr FbDone int32 @@ -122316,26 +122844,26 @@ type SortSubtask1 = struct { FxCompare SorterCompare Ffile SorterFile Ffile2 SorterFile -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22228:9 */ // A record being sorted -type SortSubtask = SortSubtask1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96693:28 */ // A sub-task in the sort process +type SortSubtask = SortSubtask1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97722:28 */ // A sub-task in the sort process type SorterFile1 = struct { FpFd uintptr FiEof I64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22228:9 */ // A sub-task in the sort process -type SorterFile = SorterFile1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96694:27 */ // Temporary file object wrapper +type SorterFile = SorterFile1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97723:27 */ // Temporary file object wrapper type SorterList1 = struct { FpList uintptr FaMemory uintptr FszPMA int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22228:9 */ // Temporary file object wrapper -type SorterList = SorterList1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96695:27 */ // In-memory list of records +type SorterList = SorterList1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97724:27 */ // In-memory list of records type IncrMerger1 = struct { FpTask uintptr FpMerger uintptr @@ -122345,10 +122873,10 @@ type IncrMerger1 = struct { FbUseThread int32 F__ccgo_pad1 [4]byte FaFile [2]SorterFile -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22083:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22228:9 */ // In-memory list of records -type IncrMerger = IncrMerger1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96696:27 */ +type IncrMerger = IncrMerger1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97725:27 */ // This object represents a single thread of control in a sort operation. // Exactly VdbeSorter.nTask instances of this object are allocated @@ -122367,23 +122895,23 @@ type IncrMerger = IncrMerger1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c: // right before it exits, the thread itself sets bDone to 1. This is used for // two purposes: // -// 1. When flushing the contents of memory to a level-0 PMA on disk, to -// attempt to select a SortSubtask for which there is not already an -// active background thread (since doing so causes the main thread -// to block until it finishes). +// 1. When flushing the contents of memory to a level-0 PMA on disk, to +// attempt to select a SortSubtask for which there is not already an +// active background thread (since doing so causes the main thread +// to block until it finishes). // -// 2. If SQLITE_DEBUG_SORTER_THREADS is defined, to determine if a call -// to sqlite3ThreadJoin() is likely to block. Cases that are likely to -// block provoke debugging output. +// 2. If SQLITE_DEBUG_SORTER_THREADS is defined, to determine if a call +// to sqlite3ThreadJoin() is likely to block. Cases that are likely to +// block provoke debugging output. // // In both cases, the effects of the main thread seeing (bDone==0) even // after the thread has finished are not dire. So we don't worry about // memory barriers and such here. -type SorterCompare = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96823:13 */ +type SorterCompare = uintptr /* testdata/sqlite-amalgamation-3390200/sqlite3.c:97852:13 */ // Free all memory belonging to the PmaReader object passed as the // argument. All structure fields are set to zero before returning. -func vdbePmaReaderClear(tls *libc.TLS, pReadr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:96998:13: */ +func vdbePmaReaderClear(tls *libc.TLS, pReadr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98027:13: */ Xsqlite3_free(tls, (*PmaReader)(unsafe.Pointer(pReadr)).FaAlloc) Xsqlite3_free(tls, (*PmaReader)(unsafe.Pointer(pReadr)).FaBuffer) if (*PmaReader)(unsafe.Pointer(pReadr)).FaMap != 0 { @@ -122400,7 +122928,7 @@ func vdbePmaReaderClear(tls *libc.TLS, pReadr uintptr) { /* testdata/sqlite-amal // // The buffer returned in *ppOut is only valid until the // next call to this function. -func vdbePmaReadBlob(tls *libc.TLS, p uintptr, nByte int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97015:12: */ +func vdbePmaReadBlob(tls *libc.TLS, p uintptr, nByte int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98044:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -122504,7 +123032,7 @@ func vdbePmaReadBlob(tls *libc.TLS, p uintptr, nByte int32, ppOut uintptr) int32 // Read a varint from the stream of data accessed by p. Set *pnOut to // the value read. -func vdbePmaReadVarint(tls *libc.TLS, p uintptr, pnOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97109:12: */ +func vdbePmaReadVarint(tls *libc.TLS, p uintptr, pnOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98138:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -122544,7 +123072,7 @@ func vdbePmaReadVarint(tls *libc.TLS, p uintptr, pnOut uintptr) int32 { /* testd // // Or, if an error occurs, return an SQLite error code. The final value of // *pp is undefined in this case. -func vdbeSorterMapFile(tls *libc.TLS, pTask uintptr, pFile uintptr, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97142:12: */ +func vdbeSorterMapFile(tls *libc.TLS, pTask uintptr, pFile uintptr, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98171:12: */ var rc int32 = SQLITE_OK if (*SorterFile)(unsafe.Pointer(pFile)).FiEof <= I64((*Sqlite3)(unsafe.Pointer((*VdbeSorter)(unsafe.Pointer((*SortSubtask)(unsafe.Pointer(pTask)).FpSorter)).Fdb)).FnMaxSorterMmap) { var pFd uintptr = (*SorterFile)(unsafe.Pointer(pFile)).FpFd @@ -122559,7 +123087,7 @@ func vdbeSorterMapFile(tls *libc.TLS, pTask uintptr, pFile uintptr, pp uintptr) // Attach PmaReader pReadr to file pFile (if it is not already attached to // that file) and seek it to offset iOff within the file. Return SQLITE_OK // if successful, or an SQLite error code if an error occurs. -func vdbePmaReaderSeek(tls *libc.TLS, pTask uintptr, pReadr uintptr, pFile uintptr, iOff I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97159:12: */ +func vdbePmaReaderSeek(tls *libc.TLS, pTask uintptr, pReadr uintptr, pFile uintptr, iOff I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98188:12: */ var rc int32 = SQLITE_OK if Xsqlite3FaultSim(tls, 201) != 0 { @@ -122600,7 +123128,7 @@ func vdbePmaReaderSeek(tls *libc.TLS, pTask uintptr, pReadr uintptr, pFile uintp // Advance PmaReader pReadr to the next key in its PMA. Return SQLITE_OK if // no error occurs, or an SQLite error code if one does. -func vdbePmaReaderNext(tls *libc.TLS, pReadr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97206:12: */ +func vdbePmaReaderNext(tls *libc.TLS, pReadr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98235:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -122646,7 +123174,7 @@ func vdbePmaReaderNext(tls *libc.TLS, pReadr uintptr) int32 { /* testdata/sqlite // // If the pnByte parameter is NULL, then it is assumed that the file // contains a single PMA, and that that PMA omits the initial length varint. -func vdbePmaReaderInit(tls *libc.TLS, pTask uintptr, pFile uintptr, iStart I64, pReadr uintptr, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97253:12: */ +func vdbePmaReaderInit(tls *libc.TLS, pTask uintptr, pFile uintptr, iStart I64, pReadr uintptr, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98282:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -122669,7 +123197,7 @@ func vdbePmaReaderInit(tls *libc.TLS, pTask uintptr, pFile uintptr, iStart I64, // A version of vdbeSorterCompare() that assumes that it has already been // determined that the first field of key1 is equal to the first field of // key2. -func vdbeSorterCompareTail(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97286:12: */ +func vdbeSorterCompareTail(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98315:12: */ var r2 uintptr = (*SortSubtask)(unsafe.Pointer(pTask)).FpUnpacked if *(*int32)(unsafe.Pointer(pbKey2Cached)) == 0 { Xsqlite3VdbeRecordUnpack(tls, (*VdbeSorter)(unsafe.Pointer((*SortSubtask)(unsafe.Pointer(pTask)).FpSorter)).FpKeyInfo, nKey2, pKey2, r2) @@ -122689,7 +123217,7 @@ func vdbeSorterCompareTail(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, p // // If an OOM error is encountered, (pTask->pUnpacked->error_rc) is set // to SQLITE_NOMEM. -func vdbeSorterCompare(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97313:12: */ +func vdbeSorterCompare(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98342:12: */ var r2 uintptr = (*SortSubtask)(unsafe.Pointer(pTask)).FpUnpacked if !(*(*int32)(unsafe.Pointer(pbKey2Cached)) != 0) { Xsqlite3VdbeRecordUnpack(tls, (*VdbeSorter)(unsafe.Pointer((*SortSubtask)(unsafe.Pointer(pTask)).FpSorter)).FpKeyInfo, nKey2, pKey2, r2) @@ -122701,7 +123229,7 @@ func vdbeSorterCompare(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 // A specially optimized version of vdbeSorterCompare() that assumes that // the first field of each key is a TEXT value and that the collation // sequence to compare them with is BINARY. -func vdbeSorterCompareText(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97332:12: */ +func vdbeSorterCompareText(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98361:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -122751,7 +123279,7 @@ func vdbeSorterCompareText(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, p // A specially optimized version of vdbeSorterCompare() that assumes that // the first field of each key is an INTEGER value. -func vdbeSorterCompareInt(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97374:12: */ +func vdbeSorterCompareInt(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pKey1 uintptr, nKey1 int32, pKey2 uintptr, nKey2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98403:12: */ var p1 uintptr = pKey1 var p2 uintptr = pKey2 var s1 int32 = int32(*(*U8)(unsafe.Pointer(p1 + 1))) // Left hand serial type @@ -122811,7 +123339,7 @@ func vdbeSorterCompareInt(tls *libc.TLS, pTask uintptr, pbKey2Cached uintptr, pK return res } -var aLen = [10]U8{U8(0), U8(1), U8(2), U8(3), U8(4), U8(6), U8(8), U8(0), U8(0), U8(0)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97393:21 */ +var aLen = [10]U8{U8(0), U8(1), U8(2), U8(3), U8(4), U8(6), U8(8), U8(0), U8(0), U8(0)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98422:21 */ // Initialize the temporary index cursor just opened as a sorter cursor. // @@ -122830,7 +123358,7 @@ var aLen = [10]U8{U8(0), U8(1), U8(2), U8(3), U8(4), U8(6), U8(8), U8(0), U8(0), // mode, but not in multi-threaded mode. // // SQLITE_OK is returned if successful, or an SQLite error code otherwise. -func Xsqlite3VdbeSorterInit(tls *libc.TLS, db uintptr, nField int32, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97457:20: */ +func Xsqlite3VdbeSorterInit(tls *libc.TLS, db uintptr, nField int32, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98486:20: */ var pgsz int32 // Page size of main database var i int32 // Used to iterate through aTask[] var pSorter uintptr // The new sorter @@ -122926,7 +123454,7 @@ func Xsqlite3VdbeSorterInit(tls *libc.TLS, db uintptr, nField int32, pCsr uintpt } // Free the list of sorted records starting at pRecord. -func vdbeSorterRecordFree(tls *libc.TLS, db uintptr, pRecord uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97563:13: */ +func vdbeSorterRecordFree(tls *libc.TLS, db uintptr, pRecord uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98592:13: */ var p uintptr var pNext uintptr for p = pRecord; p != 0; p = pNext { @@ -122937,7 +123465,7 @@ func vdbeSorterRecordFree(tls *libc.TLS, db uintptr, pRecord uintptr) { /* testd // Free all resources owned by the object indicated by argument pTask. All // fields of *pTask are zeroed before returning. -func vdbeSortSubtaskCleanup(tls *libc.TLS, db uintptr, pTask uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97576:13: */ +func vdbeSortSubtaskCleanup(tls *libc.TLS, db uintptr, pTask uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98605:13: */ Xsqlite3DbFree(tls, db, (*SortSubtask)(unsafe.Pointer(pTask)).FpUnpacked) // pTask->list.aMemory can only be non-zero if it was handed memory // from the main thread. That only occurs SQLITE_MAX_WORKER_THREADS>0 @@ -122957,7 +123485,7 @@ func vdbeSortSubtaskCleanup(tls *libc.TLS, db uintptr, pTask uintptr) { /* testd } // Join thread pTask->thread. -func vdbeSorterJoinThread(tls *libc.TLS, pTask uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97642:12: */ +func vdbeSorterJoinThread(tls *libc.TLS, pTask uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98671:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -122976,14 +123504,14 @@ func vdbeSorterJoinThread(tls *libc.TLS, pTask uintptr) int32 { /* testdata/sqli } // Launch a background thread to run xTask(pIn). -func vdbeSorterCreateThread(tls *libc.TLS, pTask uintptr, xTask uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97663:12: */ +func vdbeSorterCreateThread(tls *libc.TLS, pTask uintptr, xTask uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98692:12: */ return Xsqlite3ThreadCreate(tls, pTask, xTask, pIn) } // Join all outstanding threads launched by SorterWrite() to create // level-0 PMAs. -func vdbeSorterJoinAll(tls *libc.TLS, pSorter uintptr, rcin int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97676:12: */ +func vdbeSorterJoinAll(tls *libc.TLS, pSorter uintptr, rcin int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98705:12: */ var rc int32 = rcin var i int32 @@ -123009,7 +123537,7 @@ func vdbeSorterJoinAll(tls *libc.TLS, pSorter uintptr, rcin int32) int32 { /* te // // nReader is automatically rounded up to the next power of two. // nReader may not exceed SORTER_MAX_MERGE_COUNT even after rounding up. -func vdbeMergeEngineNew(tls *libc.TLS, nReader int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97706:20: */ +func vdbeMergeEngineNew(tls *libc.TLS, nReader int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98735:20: */ var N int32 = 2 // Smallest power of two >= nReader var nByte int32 // Total bytes of space to allocate var pNew uintptr // Pointer to allocated object to return @@ -123034,7 +123562,7 @@ func vdbeMergeEngineNew(tls *libc.TLS, nReader int32) uintptr { /* testdata/sqli } // Free the MergeEngine object passed as the only argument. -func vdbeMergeEngineFree(tls *libc.TLS, pMerger uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97729:13: */ +func vdbeMergeEngineFree(tls *libc.TLS, pMerger uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98758:13: */ var i int32 if pMerger != 0 { for i = 0; i < (*MergeEngine)(unsafe.Pointer(pMerger)).FnTree; i++ { @@ -123046,7 +123574,7 @@ func vdbeMergeEngineFree(tls *libc.TLS, pMerger uintptr) { /* testdata/sqlite-am // Free all resources associated with the IncrMerger object indicated by // the first argument. -func vdbeIncrFree(tls *libc.TLS, pIncr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97743:13: */ +func vdbeIncrFree(tls *libc.TLS, pIncr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98772:13: */ if pIncr != 0 { if (*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread != 0 { vdbeSorterJoinThread(tls, (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask) @@ -123063,7 +123591,7 @@ func vdbeIncrFree(tls *libc.TLS, pIncr uintptr) { /* testdata/sqlite-amalgamatio } // Reset a sorting cursor back to its original empty state. -func Xsqlite3VdbeSorterReset(tls *libc.TLS, db uintptr, pSorter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97760:21: */ +func Xsqlite3VdbeSorterReset(tls *libc.TLS, db uintptr, pSorter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98789:21: */ var i int32 vdbeSorterJoinAll(tls, pSorter, SQLITE_OK) @@ -123092,7 +123620,7 @@ func Xsqlite3VdbeSorterReset(tls *libc.TLS, db uintptr, pSorter uintptr) { /* te } // Free any cursor components allocated by sqlite3VdbeSorterXXX routines. -func Xsqlite3VdbeSorterClose(tls *libc.TLS, db uintptr, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97793:21: */ +func Xsqlite3VdbeSorterClose(tls *libc.TLS, db uintptr, pCsr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98822:21: */ var pSorter uintptr pSorter = *(*uintptr)(unsafe.Pointer(pCsr + 48)) @@ -123111,7 +123639,7 @@ func Xsqlite3VdbeSorterClose(tls *libc.TLS, db uintptr, pCsr uintptr) { /* testd // // Whether or not the file does end up memory mapped of course depends on // the specific VFS implementation. -func vdbeSorterExtendFile(tls *libc.TLS, db uintptr, pFd uintptr, nByte I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97815:13: */ +func vdbeSorterExtendFile(tls *libc.TLS, db uintptr, pFd uintptr, nByte I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98844:13: */ bp := tls.Alloc(24) defer tls.Free(24) *(*I64)(unsafe.Pointer(bp + 8)) = nByte @@ -123131,7 +123659,7 @@ func vdbeSorterExtendFile(tls *libc.TLS, db uintptr, pFd uintptr, nByte I64) { / // Allocate space for a file-handle and open a temporary file. If successful, // set *ppFd to point to the malloc'd file-handle and return SQLITE_OK. // Otherwise, set *ppFd to 0 and return an SQLite error code. -func vdbeSorterOpenTempFile(tls *libc.TLS, db uintptr, nExtend I64, ppFd uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97834:12: */ +func vdbeSorterOpenTempFile(tls *libc.TLS, db uintptr, nExtend I64, ppFd uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98863:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -123155,7 +123683,7 @@ func vdbeSorterOpenTempFile(tls *libc.TLS, db uintptr, nExtend I64, ppFd uintptr // If it has not already been allocated, allocate the UnpackedRecord // structure at pTask->pUnpacked. Return SQLITE_OK if successful (or // if no allocation was required), or SQLITE_NOMEM otherwise. -func vdbeSortAllocUnpacked(tls *libc.TLS, pTask uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97861:12: */ +func vdbeSortAllocUnpacked(tls *libc.TLS, pTask uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98890:12: */ if (*SortSubtask)(unsafe.Pointer(pTask)).FpUnpacked == uintptr(0) { (*SortSubtask)(unsafe.Pointer(pTask)).FpUnpacked = Xsqlite3VdbeAllocUnpackedRecord(tls, (*VdbeSorter)(unsafe.Pointer((*SortSubtask)(unsafe.Pointer(pTask)).FpSorter)).FpKeyInfo) if (*SortSubtask)(unsafe.Pointer(pTask)).FpUnpacked == uintptr(0) { @@ -123168,7 +123696,7 @@ func vdbeSortAllocUnpacked(tls *libc.TLS, pTask uintptr) int32 { /* testdata/sql } // Merge the two sorted lists p1 and p2 into a single list. -func vdbeSorterMerge(tls *libc.TLS, pTask uintptr, p1 uintptr, p2 uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97875:21: */ +func vdbeSorterMerge(tls *libc.TLS, pTask uintptr, p1 uintptr, p2 uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98904:21: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -123207,7 +123735,7 @@ func vdbeSorterMerge(tls *libc.TLS, pTask uintptr, p1 uintptr, p2 uintptr) uintp // Return the SorterCompare function to compare values collected by the // sorter object passed as the only argument. -func vdbeSorterGetCompare(tls *libc.TLS, p uintptr) SorterCompare { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97917:22: */ +func vdbeSorterGetCompare(tls *libc.TLS, p uintptr) SorterCompare { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98946:22: */ if int32((*VdbeSorter)(unsafe.Pointer(p)).FtypeMask) == SORTER_TYPE_INTEGER { return *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr, int32) int32 @@ -123225,7 +123753,7 @@ func vdbeSorterGetCompare(tls *libc.TLS, p uintptr) SorterCompare { /* testdata/ // Sort the linked list of records headed at pTask->pList. Return // SQLITE_OK if successful, or an SQLite error code (i.e. SQLITE_NOMEM) if // an error occurs. -func vdbeSorterSort(tls *libc.TLS, pTask uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97931:12: */ +func vdbeSorterSort(tls *libc.TLS, pTask uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:98960:12: */ bp := tls.Alloc(512) defer tls.Free(512) @@ -123282,7 +123810,7 @@ func vdbeSorterSort(tls *libc.TLS, pTask uintptr, pList uintptr) int32 { /* test } // Initialize a PMA-writer object. -func vdbePmaWriterInit(tls *libc.TLS, pFd uintptr, p uintptr, nBuf int32, iStart I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:97982:13: */ +func vdbePmaWriterInit(tls *libc.TLS, pFd uintptr, p uintptr, nBuf int32, iStart I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99011:13: */ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(PmaWriter{}))) (*PmaWriter)(unsafe.Pointer(p)).FaBuffer = Xsqlite3Malloc(tls, uint64(nBuf)) if !(int32((*PmaWriter)(unsafe.Pointer(p)).FaBuffer) != 0) { @@ -123297,7 +123825,7 @@ func vdbePmaWriterInit(tls *libc.TLS, pFd uintptr, p uintptr, nBuf int32, iStart // Write nData bytes of data to the PMA. Return SQLITE_OK // if successful, or an SQLite error code if an error occurs. -func vdbePmaWriteBlob(tls *libc.TLS, p uintptr, pData uintptr, nData int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98004:13: */ +func vdbePmaWriteBlob(tls *libc.TLS, p uintptr, pData uintptr, nData int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99033:13: */ var nRem int32 = nData for nRem > 0 && (*PmaWriter)(unsafe.Pointer(p)).FeFWErr == 0 { var nCopy int32 = nRem @@ -123326,7 +123854,7 @@ func vdbePmaWriteBlob(tls *libc.TLS, p uintptr, pData uintptr, nData int32) { /* // // Before returning, set *piEof to the offset immediately following the // last byte written to the file. -func vdbePmaWriterFinish(tls *libc.TLS, p uintptr, piEof uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98037:12: */ +func vdbePmaWriterFinish(tls *libc.TLS, p uintptr, piEof uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99066:12: */ var rc int32 if (*PmaWriter)(unsafe.Pointer(p)).FeFWErr == 0 && (*PmaWriter)(unsafe.Pointer(p)).FaBuffer != 0 && (*PmaWriter)(unsafe.Pointer(p)).FiBufEnd > (*PmaWriter)(unsafe.Pointer(p)).FiBufStart { (*PmaWriter)(unsafe.Pointer(p)).FeFWErr = Xsqlite3OsWrite(tls, (*PmaWriter)(unsafe.Pointer(p)).FpFd, @@ -123342,7 +123870,7 @@ func vdbePmaWriterFinish(tls *libc.TLS, p uintptr, piEof uintptr) int32 { /* tes // Write value iVal encoded as a varint to the PMA. Return // SQLITE_OK if successful, or an SQLite error code if an error occurs. -func vdbePmaWriteVarint(tls *libc.TLS, p uintptr, iVal U64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98056:13: */ +func vdbePmaWriteVarint(tls *libc.TLS, p uintptr, iVal U64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99085:13: */ bp := tls.Alloc(10) defer tls.Free(10) @@ -123359,13 +123887,13 @@ func vdbePmaWriteVarint(tls *libc.TLS, p uintptr, iVal U64) { /* testdata/sqlite // // The format of a PMA is: // -// * A varint. This varint contains the total number of bytes of content -// in the PMA (not including the varint itself). +// - A varint. This varint contains the total number of bytes of content +// in the PMA (not including the varint itself). // -// * One or more records packed end-to-end in order of ascending keys. -// Each record consists of a varint followed by a blob of data (the -// key). The varint is the number of bytes in the blob of data. -func vdbeSorterListToPMA(tls *libc.TLS, pTask uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98077:12: */ +// - One or more records packed end-to-end in order of ascending keys. +// Each record consists of a varint followed by a blob of data (the +// key). The varint is the number of bytes in the blob of data. +func vdbeSorterListToPMA(tls *libc.TLS, pTask uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99106:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -123420,7 +123948,7 @@ func vdbeSorterListToPMA(tls *libc.TLS, pTask uintptr, pList uintptr) int32 { /* // the MergeEngine has reached the end of all its inputs. // // Return SQLITE_OK if successful or an error code if an error occurs. -func vdbeMergeEngineStep(tls *libc.TLS, pMerger uintptr, pbEof uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98141:12: */ +func vdbeMergeEngineStep(tls *libc.TLS, pMerger uintptr, pbEof uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99170:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -123496,7 +124024,7 @@ func vdbeMergeEngineStep(tls *libc.TLS, pMerger uintptr, pbEof uintptr) int32 { } // The main routine for background threads that write level-0 PMAs. -func vdbeSorterFlushThread(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98212:13: */ +func vdbeSorterFlushThread(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99241:13: */ var pTask uintptr = pCtx var rc int32 // Return code @@ -123507,7 +124035,7 @@ func vdbeSorterFlushThread(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sq // Flush the current contents of VdbeSorter.list to a new PMA, possibly // using a background thread. -func vdbeSorterFlushPMA(tls *libc.TLS, pSorter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98226:12: */ +func vdbeSorterFlushPMA(tls *libc.TLS, pSorter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99255:12: */ var rc int32 = SQLITE_OK var i int32 var pTask uintptr = uintptr(0) // Thread context used to create new PMA @@ -123571,7 +124099,7 @@ func vdbeSorterFlushPMA(tls *libc.TLS, pSorter uintptr) int32 { /* testdata/sqli } // Add a record to the sorter. -func Xsqlite3VdbeSorterWrite(tls *libc.TLS, pCsr uintptr, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98296:20: */ +func Xsqlite3VdbeSorterWrite(tls *libc.TLS, pCsr uintptr, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99325:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -123687,7 +124215,7 @@ func Xsqlite3VdbeSorterWrite(tls *libc.TLS, pCsr uintptr, pVal uintptr) int32 { // Read keys from pIncr->pMerger and populate pIncr->aFile[1]. The format // of the data stored in aFile[1] is the same as that used by regular PMAs, // except that the number-of-bytes varint is omitted from the start. -func vdbeIncrPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98408:12: */ +func vdbeIncrPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99437:12: */ bp := tls.Alloc(52) defer tls.Free(52) @@ -123733,7 +124261,7 @@ func vdbeIncrPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite-a // The main routine for background threads that populate aFile[1] of // multi-threaded IncrMerger objects. -func vdbeIncrPopulateThread(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98450:13: */ +func vdbeIncrPopulateThread(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99479:13: */ var pIncr uintptr = pCtx var pRet uintptr = uintptr(int64(vdbeIncrPopulate(tls, pIncr))) (*SortSubtask)(unsafe.Pointer((*IncrMerger)(unsafe.Pointer(pIncr)).FpTask)).FbDone = 1 @@ -123741,7 +124269,7 @@ func vdbeIncrPopulateThread(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/s } // Launch a background thread to populate aFile[1] of pIncr. -func vdbeIncrBgPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98460:12: */ +func vdbeIncrBgPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99489:12: */ var p uintptr = pIncr return vdbeSorterCreateThread(tls, (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask, *(*uintptr)(unsafe.Pointer(&struct { @@ -123764,7 +124292,7 @@ func vdbeIncrBgPopulate(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite // to populate the new aFile[1]. // // SQLITE_OK is returned on success, or an SQLite error code otherwise. -func vdbeIncrSwap(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98484:12: */ +func vdbeIncrSwap(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99513:12: */ var rc int32 = SQLITE_OK if (*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread != 0 { @@ -123798,7 +124326,7 @@ func vdbeIncrSwap(tls *libc.TLS, pIncr uintptr) int32 { /* testdata/sqlite-amalg // // If an OOM condition is encountered, return NULL. In this case free the // pMerger argument before returning. -func vdbeIncrMergerNew(tls *libc.TLS, pTask uintptr, pMerger uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98523:12: */ +func vdbeIncrMergerNew(tls *libc.TLS, pTask uintptr, pMerger uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99552:12: */ var rc int32 = SQLITE_OK var pIncr uintptr = libc.AssignPtrUintptr(ppOut, func() uintptr { if Xsqlite3FaultSim(tls, 100) != 0 { @@ -123825,7 +124353,7 @@ func vdbeIncrMergerNew(tls *libc.TLS, pTask uintptr, pMerger uintptr, ppOut uint } // Set the "use-threads" flag on object pIncr. -func vdbeIncrMergerSetThreads(tls *libc.TLS, pIncr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98548:13: */ +func vdbeIncrMergerSetThreads(tls *libc.TLS, pIncr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99577:13: */ (*IncrMerger)(unsafe.Pointer(pIncr)).FbUseThread = 1 *(*I64)(unsafe.Pointer((*IncrMerger)(unsafe.Pointer(pIncr)).FpTask + 88 + 8)) -= I64((*IncrMerger)(unsafe.Pointer(pIncr)).FmxSz) } @@ -123833,7 +124361,7 @@ func vdbeIncrMergerSetThreads(tls *libc.TLS, pIncr uintptr) { /* testdata/sqlite // Recompute pMerger->aTree[iOut] by comparing the next keys on the // two PmaReaders that feed that entry. Neither of the PmaReaders // are advanced. This routine merely does the comparison. -func vdbeMergeEngineCompare(tls *libc.TLS, pMerger uintptr, iOut int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98561:13: */ +func vdbeMergeEngineCompare(tls *libc.TLS, pMerger uintptr, iOut int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99590:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -123893,7 +124421,7 @@ func vdbeMergeEngineCompare(tls *libc.TLS, pMerger uintptr, iOut int32) { /* tes // to pMerger. // // SQLITE_OK is returned if successful, or an SQLite error code otherwise. -func vdbeMergeEngineInit(tls *libc.TLS, pTask uintptr, pMerger uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98643:12: */ +func vdbeMergeEngineInit(tls *libc.TLS, pTask uintptr, pMerger uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99672:12: */ var rc int32 = SQLITE_OK // Return code var i int32 // For looping over PmaReader objects var nTree int32 // Number of subtrees to merge @@ -123963,7 +124491,7 @@ func vdbeMergeEngineInit(tls *libc.TLS, pTask uintptr, pMerger uintptr, eMode in // the current PmaReader set to point to the first key in its range. // // SQLITE_OK is returned if successful, or an SQLite error code otherwise. -func vdbePmaReaderIncrMergeInit(tls *libc.TLS, pReadr uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98719:12: */ +func vdbePmaReaderIncrMergeInit(tls *libc.TLS, pReadr uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99748:12: */ var rc int32 = SQLITE_OK var pIncr uintptr = (*PmaReader)(unsafe.Pointer(pReadr)).FpIncr var pTask uintptr = (*IncrMerger)(unsafe.Pointer(pIncr)).FpTask @@ -124020,7 +124548,7 @@ func vdbePmaReaderIncrMergeInit(tls *libc.TLS, pReadr uintptr, eMode int32) int3 // The main routine for vdbePmaReaderIncrMergeInit() operations run in // background threads. -func vdbePmaReaderBgIncrInit(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98786:13: */ +func vdbePmaReaderBgIncrInit(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99815:13: */ var pReader uintptr = pCtx var pRet uintptr = uintptr(int64(vdbePmaReaderIncrMergeInit(tls, pReader, INCRINIT_TASK))) (*SortSubtask)(unsafe.Pointer((*IncrMerger)(unsafe.Pointer((*PmaReader)(unsafe.Pointer(pReader)).FpIncr)).FpTask)).FbDone = 1 @@ -124036,7 +124564,7 @@ func vdbePmaReaderBgIncrInit(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/ // then a background thread is launched to call vdbePmaReaderIncrMergeInit(). // Or, if the IncrMerger is single threaded, the same function is called // using the current thread. -func vdbePmaReaderIncrInit(tls *libc.TLS, pReadr uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98807:12: */ +func vdbePmaReaderIncrInit(tls *libc.TLS, pReadr uintptr, eMode int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99836:12: */ var pIncr uintptr = (*PmaReader)(unsafe.Pointer(pReadr)).FpIncr // Incremental merger var rc int32 = SQLITE_OK // Return code if pIncr != 0 { @@ -124063,7 +124591,7 @@ func vdbePmaReaderIncrInit(tls *libc.TLS, pReadr uintptr, eMode int32) int32 { / // set to the offset immediately following the last byte of the last // PMA before returning. If an error does occur, then the final value of // *piOffset is undefined. -func vdbeMergeEngineLevel0(tls *libc.TLS, pTask uintptr, nPMA int32, piOffset uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98837:12: */ +func vdbeMergeEngineLevel0(tls *libc.TLS, pTask uintptr, nPMA int32, piOffset uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99866:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -124097,10 +124625,10 @@ func vdbeMergeEngineLevel0(tls *libc.TLS, pTask uintptr, nPMA int32, piOffset ui // // i.e. // -// nPMA<=16 -> TreeDepth() == 0 -// nPMA<=256 -> TreeDepth() == 1 -// nPMA<=65536 -> TreeDepth() == 2 -func vdbeSorterTreeDepth(tls *libc.TLS, nPMA int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98876:12: */ +// nPMA<=16 -> TreeDepth() == 0 +// nPMA<=256 -> TreeDepth() == 1 +// nPMA<=65536 -> TreeDepth() == 2 +func vdbeSorterTreeDepth(tls *libc.TLS, nPMA int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99905:12: */ var nDepth int32 = 0 var nDiv I64 = int64(SORTER_MAX_MERGE_COUNT) for nDiv < I64(nPMA) { @@ -124116,7 +124644,7 @@ func vdbeSorterTreeDepth(tls *libc.TLS, nPMA int32) int32 { /* testdata/sqlite-a // // If successful, SQLITE_OK is returned. If an error occurs, an SQLite error // code is returned and pLeaf is freed. -func vdbeSorterAddToTree(tls *libc.TLS, pTask uintptr, nDepth int32, iSeq int32, pRoot uintptr, pLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98894:12: */ +func vdbeSorterAddToTree(tls *libc.TLS, pTask uintptr, nDepth int32, iSeq int32, pRoot uintptr, pLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99923:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -124167,7 +124695,7 @@ func vdbeSorterAddToTree(tls *libc.TLS, pTask uintptr, nDepth int32, iSeq int32, // MergeEngine object at the root of the tree before returning. Or, if an // error occurs, an SQLite error code is returned and the final value // of *ppOut is undefined. -func vdbeSorterMergeTreeBuild(tls *libc.TLS, pSorter uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:98950:12: */ +func vdbeSorterMergeTreeBuild(tls *libc.TLS, pSorter uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:99979:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -124248,7 +124776,7 @@ func vdbeSorterMergeTreeBuild(tls *libc.TLS, pSorter uintptr, ppOut uintptr) int // all records stored in the sorter. // // SQLITE_OK is returned if successful, or an SQLite error code otherwise. -func vdbeSorterSetupMerge(tls *libc.TLS, pSorter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99029:12: */ +func vdbeSorterSetupMerge(tls *libc.TLS, pSorter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100058:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -124323,7 +124851,7 @@ func vdbeSorterSetupMerge(tls *libc.TLS, pSorter uintptr) int32 { /* testdata/sq // Once the sorter has been populated by calls to sqlite3VdbeSorterWrite, // this function is called to prepare for iterating through the records // in sorted order. -func Xsqlite3VdbeSorterRewind(tls *libc.TLS, pCsr uintptr, pbEof uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99111:20: */ +func Xsqlite3VdbeSorterRewind(tls *libc.TLS, pCsr uintptr, pbEof uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100140:20: */ var pSorter uintptr var rc int32 = SQLITE_OK // Return code @@ -124365,10 +124893,10 @@ func Xsqlite3VdbeSorterRewind(tls *libc.TLS, pCsr uintptr, pbEof uintptr) int32 // Advance to the next element in the sorter. Return value: // -// SQLITE_OK success -// SQLITE_DONE end of data -// otherwise some kind of error. -func Xsqlite3VdbeSorterNext(tls *libc.TLS, db uintptr, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99163:20: */ +// SQLITE_OK success +// SQLITE_DONE end of data +// otherwise some kind of error. +func Xsqlite3VdbeSorterNext(tls *libc.TLS, db uintptr, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100192:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -124410,7 +124938,7 @@ func Xsqlite3VdbeSorterNext(tls *libc.TLS, db uintptr, pCsr uintptr) int32 { /* // Return a pointer to a buffer owned by the sorter that contains the // current key. -func vdbeSorterRowkey(tls *libc.TLS, pSorter uintptr, pnKey uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99201:13: */ +func vdbeSorterRowkey(tls *libc.TLS, pSorter uintptr, pnKey uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100230:13: */ var pKey uintptr if (*VdbeSorter)(unsafe.Pointer(pSorter)).FbUsePMA != 0 { var pReader uintptr @@ -124429,7 +124957,7 @@ func vdbeSorterRowkey(tls *libc.TLS, pSorter uintptr, pnKey uintptr) uintptr { / } // Copy the current sorter key into the memory cell pOut. -func Xsqlite3VdbeSorterRowkey(tls *libc.TLS, pCsr uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99228:20: */ +func Xsqlite3VdbeSorterRowkey(tls *libc.TLS, pCsr uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100257:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -124464,7 +124992,7 @@ func Xsqlite3VdbeSorterRowkey(tls *libc.TLS, pCsr uintptr, pOut uintptr) int32 { // // This routine forms the core of the OP_SorterCompare opcode, which in // turn is used to verify uniqueness when constructing a UNIQUE INDEX. -func Xsqlite3VdbeSorterCompare(tls *libc.TLS, pCsr uintptr, pVal uintptr, nKeyCol int32, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99261:20: */ +func Xsqlite3VdbeSorterCompare(tls *libc.TLS, pCsr uintptr, pVal uintptr, nKeyCol int32, pRes uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100290:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -124556,7 +125084,7 @@ type MemJournal1 = struct { F__ccgo_pad1 [4]byte FpVfs uintptr FzJournal uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99754:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100783:9 */ //************* End of vdbesort.c ******************************************* //************* Begin file vdbevtab.c *************************************** @@ -124603,23 +125131,23 @@ type MemJournal1 = struct { // #include "sqliteInt.h" // Forward references to internal structures -type MemJournal = MemJournal1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99754:27 */ +type MemJournal = MemJournal1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100783:27 */ type FilePoint1 = struct { FiOffset Sqlite3_int64 FpChunk uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99754:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100783:9 */ -type FilePoint = FilePoint1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99755:26 */ +type FilePoint = FilePoint1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100784:26 */ type FileChunk1 = struct { FpNext uintptr FzChunk [8]U8 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99754:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100783:9 */ -type FileChunk = FileChunk1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99756:26 */ +type FileChunk = FileChunk1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100785:26 */ // Read data from the in-memory journal file. This is the implementation // of the sqlite3_vfs.xRead method. -func memjrnlRead(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99811:12: */ +func memjrnlRead(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100840:12: */ var p uintptr = pJfd var zOut uintptr = zBuf var nRead int32 = iAmt @@ -124666,7 +125194,7 @@ func memjrnlRead(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sq } // Free the list of FileChunk structures headed at MemJournal.pFirst. -func memjrnlFreeChunks(tls *libc.TLS, pFirst uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99858:13: */ +func memjrnlFreeChunks(tls *libc.TLS, pFirst uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100887:13: */ var pIter uintptr var pNext uintptr for pIter = pFirst; pIter != 0; pIter = pNext { @@ -124676,7 +125204,7 @@ func memjrnlFreeChunks(tls *libc.TLS, pFirst uintptr) { /* testdata/sqlite-amalg } // Flush the contents of memory to a real file on disk. -func memjrnlCreateFile(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99870:12: */ +func memjrnlCreateFile(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100899:12: */ var rc int32 var pReal uintptr = p var copy = *(*MemJournal)(unsafe.Pointer(p)) @@ -124714,7 +125242,7 @@ func memjrnlCreateFile(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amal } // Write data to the file. -func memjrnlWrite(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99912:12: */ +func memjrnlWrite(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:100941:12: */ var p uintptr = pJfd var nWrite int32 = iAmt var zWrite uintptr = zBuf @@ -124780,7 +125308,7 @@ func memjrnlWrite(tls *libc.TLS, pJfd uintptr, zBuf uintptr, iAmt int32, iOfst S } // Truncate the in-memory file. -func memjrnlTruncate(tls *libc.TLS, pJfd uintptr, size Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:99985:12: */ +func memjrnlTruncate(tls *libc.TLS, pJfd uintptr, size Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101014:12: */ var p uintptr = pJfd if size < (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FiOffset { @@ -124808,7 +125336,7 @@ func memjrnlTruncate(tls *libc.TLS, pJfd uintptr, size Sqlite_int64) int32 { /* } // Close the file. -func memjrnlClose(tls *libc.TLS, pJfd uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100015:12: */ +func memjrnlClose(tls *libc.TLS, pJfd uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101044:12: */ var p uintptr = pJfd memjrnlFreeChunks(tls, (*MemJournal)(unsafe.Pointer(p)).FpFirst) return SQLITE_OK @@ -124818,14 +125346,14 @@ func memjrnlClose(tls *libc.TLS, pJfd uintptr) int32 { /* testdata/sqlite-amalga // // If the real file has been created, call its xSync method. Otherwise, // syncing an in-memory journal is a no-op. -func memjrnlSync(tls *libc.TLS, pJfd uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100027:12: */ +func memjrnlSync(tls *libc.TLS, pJfd uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101056:12: */ _ = pJfd _ = flags return SQLITE_OK } // Query the size of the file in bytes. -func memjrnlFileSize(tls *libc.TLS, pJfd uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100035:12: */ +func memjrnlFileSize(tls *libc.TLS, pJfd uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101064:12: */ var p uintptr = pJfd *(*Sqlite_int64)(unsafe.Pointer(pSize)) = (*MemJournal)(unsafe.Pointer(p)).Fendpoint.FiOffset return SQLITE_OK @@ -124840,7 +125368,7 @@ var sMemJournalMethods = sqlite3_io_methods{ FxTruncate: 0, // xTruncate FxSync: 0, // xSync FxFileSize: 0, // xUnfetch -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100044:40 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101073:40 */ // Open a journal file. // @@ -124852,7 +125380,7 @@ var sMemJournalMethods = sqlite3_io_methods{ // but may be flushed to disk later on. In this case the journal file is // flushed to disk either when it grows larger than nSpill bytes in size, // or when sqlite3JournalCreate() is called. -func Xsqlite3JournalOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pJfd uintptr, flags int32, nSpill int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100078:20: */ +func Xsqlite3JournalOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pJfd uintptr, flags int32, nSpill int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101107:20: */ var p uintptr = pJfd // Zero the file-handle object. If nSpill was passed zero, initialize @@ -124880,20 +125408,20 @@ func Xsqlite3JournalOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pJfd uintpt } // Open an in-memory journal file. -func Xsqlite3MemJournalOpen(tls *libc.TLS, pJfd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100114:21: */ +func Xsqlite3MemJournalOpen(tls *libc.TLS, pJfd uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101143:21: */ Xsqlite3JournalOpen(tls, uintptr(0), uintptr(0), pJfd, 0, -1) } // The file-handle passed as the only argument is open on a journal file. // Return true if this "journal file" is currently stored in heap memory, // or false otherwise. -func Xsqlite3JournalIsInMemory(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100153:20: */ +func Xsqlite3JournalIsInMemory(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101182:20: */ return libc.Bool32((*Sqlite3_file)(unsafe.Pointer(p)).FpMethods == uintptr(unsafe.Pointer(&sMemJournalMethods))) } // Return the number of bytes required to store a JournalFile that uses vfs // pVfs to create the underlying on-disk files. -func Xsqlite3JournalSize(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100161:20: */ +func Xsqlite3JournalSize(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101190:20: */ return func() int32 { if (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile > int32(unsafe.Sizeof(MemJournal{})) { return (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile @@ -124922,7 +125450,7 @@ func Xsqlite3JournalSize(tls *libc.TLS, pVfs uintptr) int32 { /* testdata/sqlite // Walk all expressions linked into the list of Window objects passed // as the second argument. -func walkWindowList(tls *libc.TLS, pWalker uintptr, pList uintptr, bOneOnly int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100191:12: */ +func walkWindowList(tls *libc.TLS, pWalker uintptr, pList uintptr, bOneOnly int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101220:12: */ var pWin uintptr for pWin = pList; pWin != 0; pWin = (*Window)(unsafe.Pointer(pWin)).FpNextWin { var rc int32 @@ -124960,17 +125488,17 @@ func walkWindowList(tls *libc.TLS, pWalker uintptr, pList uintptr, bOneOnly int3 // The return value from the callback should be one of the WRC_* // constants to specify how to proceed with the walk. // -// WRC_Continue Continue descending down the tree. +// WRC_Continue Continue descending down the tree. // -// WRC_Prune Do not descend into child nodes, but allow -// the walk to continue with sibling nodes. +// WRC_Prune Do not descend into child nodes, but allow +// the walk to continue with sibling nodes. // -// WRC_Abort Do no more callbacks. Unwind the stack and -// return from the top-level walk call. +// WRC_Abort Do no more callbacks. Unwind the stack and +// return from the top-level walk call. // // The return value from this routine is WRC_Abort to abandon the tree walk // and WRC_Continue to continue. -func walkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100230:28: */ +func walkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101259:28: */ var rc int32 for 1 != 0 { @@ -125012,7 +125540,7 @@ func walkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata return WRC_Continue } -func Xsqlite3WalkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100262:20: */ +func Xsqlite3WalkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101291:20: */ if pExpr != 0 { return walkExpr(tls, pWalker, pExpr) } @@ -125021,7 +125549,7 @@ func Xsqlite3WalkExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* // Call sqlite3WalkExpr() for every expression in list p or until // an abort request is seen. -func Xsqlite3WalkExprList(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100270:20: */ +func Xsqlite3WalkExprList(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101299:20: */ var i int32 var pItem uintptr if p != 0 { @@ -125050,7 +125578,7 @@ func Xsqlite3WalkExprList(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* // This is a no-op callback for Walker->xSelectCallback2. If this // callback is set, then the Select->pWinDefn list is traversed. -func Xsqlite3WalkWinDefnDummyCallback(tls *libc.TLS, pWalker uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100285:21: */ +func Xsqlite3WalkWinDefnDummyCallback(tls *libc.TLS, pWalker uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101314:21: */ _ = pWalker _ = p // No-op @@ -125060,7 +125588,7 @@ func Xsqlite3WalkWinDefnDummyCallback(tls *libc.TLS, pWalker uintptr, p uintptr) // not invoke the SELECT callback on p, but do (of course) invoke // any expr callbacks and SELECT callbacks that come from subqueries. // Return WRC_Abort or WRC_Continue. -func Xsqlite3WalkSelectExpr(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100297:20: */ +func Xsqlite3WalkSelectExpr(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101326:20: */ if Xsqlite3WalkExprList(tls, pWalker, (*Select)(unsafe.Pointer(p)).FpEList) != 0 { return WRC_Abort } @@ -125102,7 +125630,7 @@ func Xsqlite3WalkSelectExpr(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { / // callback on p, but do invoke it on each FROM clause subquery // and on any subqueries further down in the tree. Return // WRC_Abort or WRC_Continue; -func Xsqlite3WalkSelectFrom(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100330:20: */ +func Xsqlite3WalkSelectFrom(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101359:20: */ var pSrc uintptr var i int32 var pItem uintptr @@ -125120,7 +125648,7 @@ func Xsqlite3WalkSelectFrom(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { / return WRC_Abort } if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x4>>2)) != 0 && - Xsqlite3WalkExprList(tls, pWalker, *(*uintptr)(unsafe.Pointer(pItem + 96))) != 0 { + Xsqlite3WalkExprList(tls, pWalker, *(*uintptr)(unsafe.Pointer(pItem + 88))) != 0 { return WRC_Abort } @@ -125128,7 +125656,7 @@ func Xsqlite3WalkSelectFrom(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { / goto __2 __2: i-- - pItem += 112 + pItem += 104 goto __1 goto __3 __3: @@ -125151,7 +125679,7 @@ func Xsqlite3WalkSelectFrom(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { / // // If the Walker does not have an xSelectCallback() then this routine // is a no-op returning WRC_Continue. -func Xsqlite3WalkSelect(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100368:20: */ +func Xsqlite3WalkSelect(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101397:20: */ var rc int32 if p == uintptr(0) { return WRC_Continue @@ -125182,13 +125710,13 @@ func Xsqlite3WalkSelect(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* te // Increase the walkerDepth when entering a subquery, and // descrease when leaving the subquery. -func Xsqlite3WalkerDepthIncrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100391:20: */ +func Xsqlite3WalkerDepthIncrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101420:20: */ _ = pSelect (*Walker)(unsafe.Pointer(pWalker)).FwalkerDepth++ return WRC_Continue } -func Xsqlite3WalkerDepthDecrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100396:21: */ +func Xsqlite3WalkerDepthDecrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101425:21: */ _ = pSelect (*Walker)(unsafe.Pointer(pWalker)).FwalkerDepth-- } @@ -125200,7 +125728,7 @@ func Xsqlite3WalkerDepthDecrease(tls *libc.TLS, pWalker uintptr, pSelect uintptr // when this routine is used for Walker.xExprCallback then // Walker.xSelectCallback is set to do something useful for every // subquery in the parser tree. -func Xsqlite3ExprWalkNoop(tls *libc.TLS, NotUsed uintptr, NotUsed2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100411:20: */ +func Xsqlite3ExprWalkNoop(tls *libc.TLS, NotUsed uintptr, NotUsed2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101440:20: */ _ = NotUsed _ = NotUsed2 return WRC_Continue @@ -125208,7 +125736,7 @@ func Xsqlite3ExprWalkNoop(tls *libc.TLS, NotUsed uintptr, NotUsed2 uintptr) int3 // No-op routine for the parse-tree walker for SELECT statements. // subquery in the parser tree. -func Xsqlite3SelectWalkNoop(tls *libc.TLS, NotUsed uintptr, NotUsed2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100420:20: */ +func Xsqlite3SelectWalkNoop(tls *libc.TLS, NotUsed uintptr, NotUsed2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101449:20: */ _ = NotUsed _ = NotUsed2 return WRC_Continue @@ -125243,14 +125771,14 @@ func Xsqlite3SelectWalkNoop(tls *libc.TLS, NotUsed uintptr, NotUsed2 uintptr) in // is a helper function - a callback for the tree walker. // // See also the sqlite3WindowExtraAggFuncDepth() routine in window.c -func incrAggDepth(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100461:12: */ +func incrAggDepth(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101490:12: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_AGG_FUNCTION { *(*U8)(unsafe.Pointer(pExpr + 2)) += U8(*(*int32)(unsafe.Pointer(pWalker + 40))) } return WRC_Continue } -func incrAggFunctionDepth(tls *libc.TLS, pExpr uintptr, N int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100465:13: */ +func incrAggFunctionDepth(tls *libc.TLS, pExpr uintptr, N int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101494:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -125272,18 +125800,21 @@ func incrAggFunctionDepth(tls *libc.TLS, pExpr uintptr, N int32) { /* testdata/s // If the reference is followed by a COLLATE operator, then make sure // the COLLATE operator is preserved. For example: // -// SELECT a+b, c+d FROM t1 ORDER BY 1 COLLATE nocase; +// SELECT a+b, c+d FROM t1 ORDER BY 1 COLLATE nocase; // // Should be transformed into: // -// SELECT a+b, c+d FROM t1 ORDER BY (a+b) COLLATE nocase; +// SELECT a+b, c+d FROM t1 ORDER BY (a+b) COLLATE nocase; // // The nSubquery parameter specifies how many levels of subquery the // alias is removed from the original expression. The usual value is // zero but it might be more if the alias is contained within a subquery // of the original expression. The Expr.op2 field of TK_AGG_FUNCTION // structures must be increased by the nSubquery amount. -func resolveAlias(tls *libc.TLS, pParse uintptr, pEList uintptr, iCol int32, pExpr uintptr, nSubquery int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100494:13: */ +func resolveAlias(tls *libc.TLS, pParse uintptr, pEList uintptr, iCol int32, pExpr uintptr, nSubquery int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101523:13: */ + bp := tls.Alloc(72) + defer tls.Free(72) + var pOrig uintptr // The iCol-th column of the result set var pDup uintptr // Copy of pOrig var db uintptr // The database connection @@ -125296,49 +125827,27 @@ func resolveAlias(tls *libc.TLS, pParse uintptr, pEList uintptr, iCol int32, pEx Xsqlite3ExprDelete(tls, db, pDup) pDup = uintptr(0) } else { + // var temp Expr at bp, 72 + incrAggFunctionDepth(tls, pDup, nSubquery) if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLLATE { pDup = Xsqlite3ExprAddCollateString(tls, pParse, pDup, *(*uintptr)(unsafe.Pointer(pExpr + 8))) } - - // Before calling sqlite3ExprDelete(), set the EP_Static flag. This - // prevents ExprDelete() from deleting the Expr structure itself, - // allowing it to be repopulated by the memcpy() on the following line. - // The pExpr->u.zToken might point into memory that will be freed by the - // sqlite3DbFree(db, pDup) on the last line of this block, so be sure to - // make a copy of the token before doing the sqlite3DbFree(). - *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_Static) - Xsqlite3ExprDelete(tls, db, pExpr) - libc.Xmemcpy(tls, pExpr, pDup, uint64(unsafe.Sizeof(Expr{}))) - if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_IntValue) != U32(0)) && *(*uintptr)(unsafe.Pointer(pExpr + 8)) != uintptr(0) { - - *(*uintptr)(unsafe.Pointer(pExpr + 8)) = Xsqlite3DbStrDup(tls, db, *(*uintptr)(unsafe.Pointer(pExpr + 8))) - *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_MemToken) - } + libc.Xmemcpy(tls, bp, pDup, uint64(unsafe.Sizeof(Expr{}))) + libc.Xmemcpy(tls, pDup, pExpr, uint64(unsafe.Sizeof(Expr{}))) + libc.Xmemcpy(tls, pExpr, bp, uint64(unsafe.Sizeof(Expr{}))) if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_WinFunc) != U32(0) { if *(*uintptr)(unsafe.Pointer(pExpr + 64)) != uintptr(0) { (*Window)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 64)))).FpOwner = pExpr } } - Xsqlite3DbFree(tls, db, pDup) - } -} - -// Return TRUE if the name zCol occurs anywhere in the USING clause. -// -// Return FALSE if the USING clause is NULL or if it does not contain -// zCol. -func nameInUsingClause(tls *libc.TLS, pUsing uintptr, zCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100551:12: */ - if pUsing != 0 { - var k int32 - for k = 0; k < (*IdList)(unsafe.Pointer(pUsing)).FnId; k++ { - if Xsqlite3StrICmp(tls, (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pUsing)).Fa+uintptr(k)*16)).FzName, zCol) == 0 { - return 1 - } - } + Xsqlite3ParserAddCleanup(tls, pParse, + *(*uintptr)(unsafe.Pointer(&struct { + f func(*libc.TLS, uintptr, uintptr) + }{Xsqlite3ExprDelete})), + pDup) } - return 0 } // Subqueries stores the original database, table and column names for their @@ -125346,10 +125855,10 @@ func nameInUsingClause(tls *libc.TLS, pUsing uintptr, zCol uintptr) int32 { /* t // Check to see if the zSpan given to this routine matches the zDb, zTab, // and zCol. If any of zDb, zTab, and zCol are NULL then those fields will // match anything. -func Xsqlite3MatchEName(tls *libc.TLS, pItem uintptr, zCol uintptr, zTab uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100568:20: */ +func Xsqlite3MatchEName(tls *libc.TLS, pItem uintptr, zCol uintptr, zTab uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101570:20: */ var n int32 var zSpan uintptr - if int32(*(*uint8)(unsafe.Pointer(pItem + 20))&0x3>>0) != ENAME_TAB { + if int32(*(*uint16)(unsafe.Pointer(pItem + 16 + 4))&0x3>>0) != ENAME_TAB { return 0 } zSpan = (*ExprList_item)(unsafe.Pointer(pItem)).FzEName @@ -125372,7 +125881,7 @@ func Xsqlite3MatchEName(tls *libc.TLS, pItem uintptr, zCol uintptr, zTab uintptr } // Return TRUE if the double-quoted string mis-feature should be supported. -func areDoubleQuotedStringsEnabled(tls *libc.TLS, db uintptr, pTopNC uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100597:12: */ +func areDoubleQuotedStringsEnabled(tls *libc.TLS, db uintptr, pTopNC uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101599:12: */ if (*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy != 0 { return 1 } // Always support for legacy schemas @@ -125391,7 +125900,7 @@ func areDoubleQuotedStringsEnabled(tls *libc.TLS, db uintptr, pTopNC uintptr) in // The argument is guaranteed to be a non-NULL Expr node of type TK_COLUMN. // return the appropriate colUsed mask. -func Xsqlite3ExprColUsed(tls *libc.TLS, pExpr uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100615:24: */ +func Xsqlite3ExprColUsed(tls *libc.TLS, pExpr uintptr) Bitmask { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101617:24: */ var n int32 var pExTab uintptr @@ -125416,21 +125925,37 @@ func Xsqlite3ExprColUsed(tls *libc.TLS, pExpr uintptr) Bitmask { /* testdata/sql return Bitmask(0) } +// Create a new expression term for the column specified by pMatch and +// iColumn. Append this new expression term to the FULL JOIN Match set +// in *ppList. Create a new *ppList if this is the first term in the +// set. +func extendFJMatch(tls *libc.TLS, pParse uintptr, ppList uintptr, pMatch uintptr, iColumn I16) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101645:13: */ + var pNew uintptr = Xsqlite3ExprAlloc(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_COLUMN, uintptr(0), 0) + if pNew != 0 { + (*Expr)(unsafe.Pointer(pNew)).FiTable = (*SrcItem)(unsafe.Pointer(pMatch)).FiCursor + (*Expr)(unsafe.Pointer(pNew)).FiColumn = iColumn + *(*uintptr)(unsafe.Pointer(pNew + 64)) = (*SrcItem)(unsafe.Pointer(pMatch)).FpTab + + *(*U32)(unsafe.Pointer(pNew + 4)) |= U32(EP_CanBeNull) + *(*uintptr)(unsafe.Pointer(ppList)) = Xsqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(ppList)), pNew) + } +} + // Given the name of a column of the form X.Y.Z or Y.Z or just Z, look up // that name in the set of source tables in pSrcList and make the pExpr // expression node refer back to that source column. The following changes // are made to pExpr: // -// pExpr->iDb Set the index in db->aDb[] of the database X -// (even if X is implied). -// pExpr->iTable Set to the cursor number for the table obtained -// from pSrcList. -// pExpr->y.pTab Points to the Table structure of X.Y (even if -// X and/or Y are implied.) -// pExpr->iColumn Set to the column number within the table. -// pExpr->op Set to TK_COLUMN. -// pExpr->pLeft Any expression this points to is deleted -// pExpr->pRight Any expression this points to is deleted. +// pExpr->iDb Set the index in db->aDb[] of the database X +// (even if X is implied). +// pExpr->iTable Set to the cursor number for the table obtained +// from pSrcList. +// pExpr->y.pTab Points to the Table structure of X.Y (even if +// X and/or Y are implied.) +// pExpr->iColumn Set to the column number within the table. +// pExpr->op Set to TK_COLUMN. +// pExpr->pLeft Any expression this points to is deleted +// pExpr->pRight Any expression this points to is deleted. // // The zDb variable is the name of the database (the "X"). This value may be // NULL meaning that name is of the form Y.Z or Z. Any available database @@ -125441,9 +125966,9 @@ func Xsqlite3ExprColUsed(tls *libc.TLS, pExpr uintptr) Bitmask { /* testdata/sql // // If the name cannot be resolved unambiguously, leave an error message // in pParse and return WRC_Abort. Return WRC_Prune on success. -func lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol uintptr, pNC uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:100664:12: */ - bp := tls.Alloc(96) - defer tls.Free(96) +func lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol uintptr, pNC uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:101689:12: */ + bp := tls.Alloc(104) + defer tls.Free(104) var i int32 var j int32 // Loop counters @@ -125456,8 +125981,15 @@ func lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol u var pTopNC uintptr // First namecontext in the list var pSchema uintptr // Schema of the expression var eNewExprOp int32 // New value for pExpr->op on success - var pTab uintptr // Table hold the row - var pCol uintptr + var pTab uintptr // Table holding the row + var pCol uintptr // A column of pTab + // var pFJMatch uintptr at bp+96, 8 + + // In this case, pItem is a subquery that has been formed from a + // parenthesized subset of the FROM clause terms. Example: + // .... FROM t1 LEFT JOIN (t2 RIGHT JOIN t3 USING(x)) USING(y) ... + // \_________________________/ + // This pItem -------------^ var hit int32 var zTabName uintptr var hCol U8 @@ -125478,7 +126010,8 @@ func lookupName(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zCol u pTopNC = pNC pSchema = uintptr(0) eNewExprOp = TK_COLUMN - pTab = uintptr(0) // A column of pTab + pTab = uintptr(0) + *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */)) = uintptr(0) // Matches for FULL JOIN .. USING // the name context cannot be NULL. // The Z in X.Y.Z cannot be NULL @@ -125523,7 +126056,7 @@ __5: goto __6 __6: ; - if !(i == (*Sqlite3)(unsafe.Pointer(db)).FnDb && Xsqlite3StrICmp(tls, ts+7684, zDb) == 0) { + if !(i == (*Sqlite3)(unsafe.Pointer(db)).FnDb && Xsqlite3StrICmp(tls, ts+7719, zDb) == 0) { goto __8 } // This branch is taken when the main database has been renamed @@ -125553,25 +126086,80 @@ __13: } pTab = (*SrcItem)(unsafe.Pointer(pItem)).FpTab - if !((*SrcItem)(unsafe.Pointer(pItem)).FpSelect != 0 && (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpSelect)).FselFlags&U32(SF_NestedFrom) != U32(0)) { + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x2000>>13)) != 0) { goto __16 } + // In this case, pItem is a subquery that has been formed from a + // parenthesized subset of the FROM clause terms. Example: + // .... FROM t1 LEFT JOIN (t2 RIGHT JOIN t3 USING(x)) USING(y) ... + // \_________________________/ + // This pItem -------------^ hit = 0 + pEList = (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpSelect)).FpEList + j = 0 __17: if !(j < (*ExprList)(unsafe.Pointer(pEList)).FnExpr) { goto __19 } - if !(Xsqlite3MatchEName(tls, pEList+8+uintptr(j)*32, zCol, zTab, zDb) != 0) { + if !!(Xsqlite3MatchEName(tls, pEList+8+uintptr(j)*32, zCol, zTab, zDb) != 0) { goto __20 } + goto __18 +__20: + ; + if !(cnt > 0) { + goto __21 + } + if !(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x400>>10) == 0 || + Xsqlite3IdListIndex(tls, *(*uintptr)(unsafe.Pointer(pItem + 72)), zCol) < 0) { + goto __22 + } + // Two or more tables have the same column name which is + // not joined by USING. This is an error. Signal as much + // by clearing pFJMatch and letting cnt go above 1. + Xsqlite3ExprListDelete(tls, db, *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */))) + *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */)) = uintptr(0) + goto __23 +__22: + if !(int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_RIGHT == 0) { + goto __24 + } + // An INNER or LEFT JOIN. Use the left-most table + goto __18 + goto __25 +__24: + if !(int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_LEFT == 0) { + goto __26 + } + // A RIGHT JOIN. Use the right-most table + cnt = 0 + Xsqlite3ExprListDelete(tls, db, *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */))) + *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */)) = uintptr(0) + goto __27 +__26: + // For a FULL JOIN, we must construct a coalesce() func + extendFJMatch(tls, pParse, bp+96, pMatch, (*Expr)(unsafe.Pointer(pExpr)).FiColumn) +__27: + ; +__25: + ; +__23: + ; +__21: + ; cnt++ cntTab = 2 pMatch = pItem (*Expr)(unsafe.Pointer(pExpr)).FiColumn = YnVar(j) + libc.SetBitFieldPtr16Uint32(pEList+8+uintptr(j)*32+16+4, uint32(1), 6, 0x40) hit = 1 -__20: + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pEList + 8 + uintptr(j)*32 + 16 + 4))&0x80>>7)) != 0) { + goto __28 + } + goto __19 +__28: ; goto __18 __18: @@ -125581,33 +126169,34 @@ __18: __19: ; if !(hit != 0 || zTab == uintptr(0)) { - goto __21 + goto __29 } goto __14 -__21: +__29: ; __16: ; + + if !(zTab != 0) { + goto __30 + } if !(zDb != 0) { - goto __22 + goto __31 } if !((*Table)(unsafe.Pointer(pTab)).FpSchema != pSchema) { - goto __23 + goto __32 } goto __14 -__23: +__32: ; - if !(pSchema == uintptr(0) && libc.Xstrcmp(tls, zDb, ts+7689) != 0) { - goto __24 + if !(pSchema == uintptr(0) && libc.Xstrcmp(tls, zDb, ts+7724) != 0) { + goto __33 } goto __14 -__24: +__33: ; -__22: +__31: ; - if !(zTab != 0) { - goto __25 - } if (*SrcItem)(unsafe.Pointer(pItem)).FzAlias != 0 { zTabName = (*SrcItem)(unsafe.Pointer(pItem)).FzAlias } else { @@ -125615,50 +126204,70 @@ __22: } if !(Xsqlite3StrICmp(tls, zTabName, zTab) != 0) { - goto __26 + goto __34 } goto __14 -__26: +__34: ; if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME && (*SrcItem)(unsafe.Pointer(pItem)).FzAlias != 0) { - goto __27 + goto __35 } Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), pExpr+64) -__27: +__35: ; -__25: +__30: ; hCol = Xsqlite3StrIHash(tls, zCol) j = 0 pCol = (*Table)(unsafe.Pointer(pTab)).FaCol -__28: +__36: if !(j < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) { - goto __30 + goto __38 } if !(int32((*Column)(unsafe.Pointer(pCol)).FhName) == int32(hCol) && Xsqlite3StrICmp(tls, (*Column)(unsafe.Pointer(pCol)).FzCnName, zCol) == 0) { - goto __31 + goto __39 } - // If there has been exactly one prior match and this match - // is for the right-hand table of a NATURAL JOIN or is in a - // USING clause, then skip this match. - if !(cnt == 1) { - goto __32 + if !(cnt > 0) { + goto __40 } - if !(int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_NATURAL != 0) { - goto __33 + if !(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x400>>10) == 0 || + Xsqlite3IdListIndex(tls, *(*uintptr)(unsafe.Pointer(pItem + 72)), zCol) < 0) { + goto __41 } - goto __29 -__33: - ; - if !(nameInUsingClause(tls, (*SrcItem)(unsafe.Pointer(pItem)).FpUsing, zCol) != 0) { - goto __34 + // Two or more tables have the same column name which is + // not joined by USING. This is an error. Signal as much + // by clearing pFJMatch and letting cnt go above 1. + Xsqlite3ExprListDelete(tls, db, *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */))) + *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */)) = uintptr(0) + goto __42 +__41: + if !(int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_RIGHT == 0) { + goto __43 } - goto __29 -__34: + // An INNER or LEFT JOIN. Use the left-most table + goto __37 + goto __44 +__43: + if !(int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_LEFT == 0) { + goto __45 + } + // A RIGHT JOIN. Use the right-most table + cnt = 0 + Xsqlite3ExprListDelete(tls, db, *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */))) + *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */)) = uintptr(0) + goto __46 +__45: + // For a FULL JOIN, we must construct a coalesce() func + extendFJMatch(tls, pParse, bp+96, pMatch, (*Expr)(unsafe.Pointer(pExpr)).FiColumn) +__46: ; -__32: +__44: + ; +__42: + ; +__40: ; cnt++ pMatch = pItem @@ -125669,48 +126278,52 @@ __32: } return I16(j) }() - goto __30 -__31: + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x2000>>13)) != 0) { + goto __47 + } + Xsqlite3SrcItemColumnUsed(tls, pItem, j) +__47: ; - goto __29 -__29: + goto __38 +__39: + ; + goto __37 +__37: j++ pCol += 24 - goto __28 - goto __30 -__30: + goto __36 + goto __38 +__38: ; if !(0 == cnt && (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_NoVisibleRowid) == U32(0)) { - goto __35 + goto __48 } cntTab++ pMatch = pItem -__35: +__48: ; goto __14 __14: i++ - pItem += 112 + pItem += 104 goto __13 goto __15 __15: ; if !(pMatch != 0) { - goto __36 + goto __49 } (*Expr)(unsafe.Pointer(pExpr)).FiTable = (*SrcItem)(unsafe.Pointer(pMatch)).FiCursor *(*uintptr)(unsafe.Pointer(pExpr + 64)) = (*SrcItem)(unsafe.Pointer(pMatch)).FpTab - // RIGHT JOIN not (yet) supported - - if !(int32((*SrcItem)(unsafe.Pointer(pMatch)).Ffg.Fjointype)&JT_LEFT != 0) { - goto __37 + if !(int32((*SrcItem)(unsafe.Pointer(pMatch)).Ffg.Fjointype)&(JT_LEFT|JT_LTORJ) != 0) { + goto __50 } *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_CanBeNull) -__37: +__50: ; pSchema = (*Table)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 64)))).FpSchema -__36: +__49: ; __12: ; // if( pSrcList ) @@ -125720,144 +126333,144 @@ __12: // maybe it is an excluded.* from an upsert. Or maybe it is // a reference in the RETURNING clause to a table being modified. if !(cnt == 0 && zDb == uintptr(0)) { - goto __38 + goto __51 } pTab = uintptr(0) if !((*Parse)(unsafe.Pointer(pParse)).FpTriggerTab != uintptr(0)) { - goto __39 + goto __52 } op = int32((*Parse)(unsafe.Pointer(pParse)).FeTriggerOp) if !((*Parse)(unsafe.Pointer(pParse)).FbReturning != 0) { - goto __40 + goto __53 } if !((*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_UBaseReg != 0 && (zTab == uintptr(0) || Xsqlite3StrICmp(tls, zTab, (*Table)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).FpTriggerTab)).FzName) == 0)) { - goto __42 + goto __55 } (*Expr)(unsafe.Pointer(pExpr)).FiTable = libc.Bool32(op != TK_DELETE) pTab = (*Parse)(unsafe.Pointer(pParse)).FpTriggerTab -__42: +__55: ; - goto __41 -__40: - if !(op != TK_DELETE && zTab != 0 && Xsqlite3StrICmp(tls, ts+7691, zTab) == 0) { - goto __43 + goto __54 +__53: + if !(op != TK_DELETE && zTab != 0 && Xsqlite3StrICmp(tls, ts+7726, zTab) == 0) { + goto __56 } (*Expr)(unsafe.Pointer(pExpr)).FiTable = 1 pTab = (*Parse)(unsafe.Pointer(pParse)).FpTriggerTab - goto __44 -__43: - if !(op != TK_INSERT && zTab != 0 && Xsqlite3StrICmp(tls, ts+7695, zTab) == 0) { - goto __45 + goto __57 +__56: + if !(op != TK_INSERT && zTab != 0 && Xsqlite3StrICmp(tls, ts+7730, zTab) == 0) { + goto __58 } (*Expr)(unsafe.Pointer(pExpr)).FiTable = 0 pTab = (*Parse)(unsafe.Pointer(pParse)).FpTriggerTab -__45: +__58: ; -__44: +__57: ; -__41: +__54: ; -__39: +__52: ; if !((*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_UUpsert != 0 && zTab != uintptr(0)) { - goto __46 + goto __59 } pUpsert = *(*uintptr)(unsafe.Pointer(pNC + 16)) - if !(pUpsert != 0 && Xsqlite3StrICmp(tls, ts+7699, zTab) == 0) { - goto __47 + if !(pUpsert != 0 && Xsqlite3StrICmp(tls, ts+7734, zTab) == 0) { + goto __60 } pTab = (*SrcItem)(unsafe.Pointer((*Upsert)(unsafe.Pointer(pUpsert)).FpUpsertSrc + 8)).FpTab (*Expr)(unsafe.Pointer(pExpr)).FiTable = EXCLUDED_TABLE_NUMBER -__47: +__60: ; -__46: +__59: ; if !(pTab != 0) { - goto __48 + goto __61 } hCol1 = Xsqlite3StrIHash(tls, zCol) pSchema = (*Table)(unsafe.Pointer(pTab)).FpSchema cntTab++ iCol = 0 pCol = (*Table)(unsafe.Pointer(pTab)).FaCol -__49: +__62: if !(iCol < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) { - goto __51 + goto __64 } if !(int32((*Column)(unsafe.Pointer(pCol)).FhName) == int32(hCol1) && Xsqlite3StrICmp(tls, (*Column)(unsafe.Pointer(pCol)).FzCnName, zCol) == 0) { - goto __52 + goto __65 } if !(iCol == int32((*Table)(unsafe.Pointer(pTab)).FiPKey)) { - goto __53 + goto __66 } iCol = -1 -__53: +__66: ; - goto __51 -__52: + goto __64 +__65: ; - goto __50 -__50: + goto __63 +__63: iCol++ pCol += 24 - goto __49 - goto __51 -__51: + goto __62 + goto __64 +__64: ; if !(iCol >= int32((*Table)(unsafe.Pointer(pTab)).FnCol) && Xsqlite3IsRowid(tls, zCol) != 0 && (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_NoVisibleRowid) == U32(0)) { - goto __54 + goto __67 } // IMP: R-51414-32910 iCol = -1 -__54: +__67: ; if !(iCol < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) { - goto __55 + goto __68 } cnt++ pMatch = uintptr(0) if !((*Expr)(unsafe.Pointer(pExpr)).FiTable == EXCLUDED_TABLE_NUMBER) { - goto __56 + goto __69 } if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) { - goto __58 + goto __71 } (*Expr)(unsafe.Pointer(pExpr)).FiColumn = YnVar(iCol) *(*uintptr)(unsafe.Pointer(pExpr + 64)) = pTab eNewExprOp = TK_COLUMN - goto __59 -__58: + goto __72 +__71: (*Expr)(unsafe.Pointer(pExpr)).FiTable = (*Upsert)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pNC + 16)))).FregData + int32(Xsqlite3TableColumnToStorage(tls, pTab, int16(iCol))) eNewExprOp = TK_REGISTER -__59: +__72: ; - goto __57 -__56: + goto __70 +__69: ; *(*uintptr)(unsafe.Pointer(pExpr + 64)) = pTab if !((*Parse)(unsafe.Pointer(pParse)).FbReturning != 0) { - goto __60 + goto __73 } eNewExprOp = TK_REGISTER (*Expr)(unsafe.Pointer(pExpr)).Fop2 = U8(TK_COLUMN) (*Expr)(unsafe.Pointer(pExpr)).FiTable = *(*int32)(unsafe.Pointer(pNC + 16)) + (int32((*Table)(unsafe.Pointer(pTab)).FnCol)+1)*(*Expr)(unsafe.Pointer(pExpr)).FiTable + int32(Xsqlite3TableColumnToStorage(tls, pTab, int16(iCol))) + 1 - goto __61 -__60: + goto __74 +__73: (*Expr)(unsafe.Pointer(pExpr)).FiColumn = I16(iCol) eNewExprOp = TK_TRIGGER if !(iCol < 0) { - goto __62 + goto __75 } (*Expr)(unsafe.Pointer(pExpr)).FaffExpr = int8(SQLITE_AFF_INTEGER) - goto __63 -__62: + goto __76 +__75: if !((*Expr)(unsafe.Pointer(pExpr)).FiTable == 0) { - goto __64 + goto __77 } *(*U32)(unsafe.Pointer(pParse + 204)) |= func() uint32 { @@ -125866,8 +126479,8 @@ __62: } return U32(U32(1)) << iCol }() - goto __65 -__64: + goto __78 +__77: ; *(*U32)(unsafe.Pointer(pParse + 208)) |= func() uint32 { @@ -125876,19 +126489,19 @@ __64: } return U32(U32(1)) << iCol }() -__65: +__78: ; -__63: +__76: ; -__61: +__74: ; -__57: +__70: ; -__55: +__68: ; -__48: +__61: ; -__38: +__51: ; // Perhaps the name is a reference to the ROWID @@ -125898,12 +126511,12 @@ __38: (*NameContext)(unsafe.Pointer(pNC)).FncFlags&(NC_IdxExpr|NC_GenCol) == 0 && Xsqlite3IsRowid(tls, zCol) != 0 && (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pMatch)).FpTab)).FtabFlags&U32(TF_NoVisibleRowid) == U32(0)) { - goto __66 + goto __79 } cnt = 1 (*Expr)(unsafe.Pointer(pExpr)).FiColumn = int16(-1) (*Expr)(unsafe.Pointer(pExpr)).FaffExpr = int8(SQLITE_AFF_INTEGER) -__66: +__79: ; // If the input is of the form Z (not Y.Z or X.Y.Z) then the name Z @@ -125925,74 +126538,74 @@ __66: if !(cnt == 0 && (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_UEList != 0 && zTab == uintptr(0)) { - goto __67 + goto __80 } pEList = *(*uintptr)(unsafe.Pointer(pNC + 16)) j = 0 -__68: +__81: if !(j < (*ExprList)(unsafe.Pointer(pEList)).FnExpr) { - goto __70 + goto __83 } zAs = (*ExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(j)*32)).FzEName - if !(int32(*(*uint8)(unsafe.Pointer(pEList + 8 + uintptr(j)*32 + 20))&0x3>>0) == ENAME_NAME && + if !(int32(*(*uint16)(unsafe.Pointer(pEList + 8 + uintptr(j)*32 + 16 + 4))&0x3>>0) == ENAME_NAME && Xsqlite3_stricmp(tls, zAs, zCol) == 0) { - goto __71 + goto __84 } pOrig = (*ExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(j)*32)).FpExpr if !((*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_AllowAgg == 0 && (*Expr)(unsafe.Pointer(pOrig)).Fflags&U32(EP_Agg) != U32(0)) { - goto __72 + goto __85 } - Xsqlite3ErrorMsg(tls, pParse, ts+7708, libc.VaList(bp, zAs)) + Xsqlite3ErrorMsg(tls, pParse, ts+7743, libc.VaList(bp, zAs)) return WRC_Abort -__72: +__85: ; if !((*Expr)(unsafe.Pointer(pOrig)).Fflags&U32(EP_Win) != U32(0) && ((*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_AllowWin == 0 || pNC != pTopNC)) { - goto __73 + goto __86 } - Xsqlite3ErrorMsg(tls, pParse, ts+7739, libc.VaList(bp+8, zAs)) + Xsqlite3ErrorMsg(tls, pParse, ts+7774, libc.VaList(bp+8, zAs)) return WRC_Abort -__73: +__86: ; if !(Xsqlite3ExprVectorSize(tls, pOrig) != 1) { - goto __74 + goto __87 } - Xsqlite3ErrorMsg(tls, pParse, ts+7776, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+7811, 0) return WRC_Abort -__74: +__87: ; resolveAlias(tls, pParse, pEList, j, pExpr, nSubquery) cnt = 1 pMatch = uintptr(0) if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) { - goto __75 + goto __88 } Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), pExpr) -__75: +__88: ; goto lookupname_end -__71: +__84: ; - goto __69 -__69: + goto __82 +__82: j++ - goto __68 - goto __70 -__70: + goto __81 + goto __83 +__83: ; -__67: +__80: ; // Advance to the next name context. The loop will exit when either // we have a match (cnt>0) or when we run out of name contexts. if !(cnt != 0) { - goto __76 + goto __89 } goto __11 -__76: +__89: ; pNC = (*NameContext)(unsafe.Pointer(pNC)).FpNext nSubquery++ @@ -126014,12 +126627,12 @@ __11: // Because no reference was made to outer contexts, the pNC->nRef // fields are not changed in any context. if !(cnt == 0 && zTab == uintptr(0)) { - goto __77 + goto __90 } if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_DblQuoted) != U32(0) && areDoubleQuotedStringsEnabled(tls, db, pTopNC) != 0) { - goto __78 + goto __91 } // If a double-quoted identifier does not match any known column name, // then treat it as a string. @@ -126035,52 +126648,100 @@ __11: // a huge amount of legacy SQL that uses it. So for now, we just // issue a warning. Xsqlite3_log(tls, SQLITE_WARNING, - ts+7794, libc.VaList(bp+16, zCol)) + ts+7829, libc.VaList(bp+16, zCol)) (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_STRING) libc.Xmemset(tls, pExpr+64, 0, uint64(unsafe.Sizeof(struct{ FpTab uintptr }{}))) return WRC_Prune -__78: +__91: ; if !(Xsqlite3ExprIdToTrueFalse(tls, pExpr) != 0) { - goto __79 + goto __92 } return WRC_Prune -__79: +__92: ; -__77: +__90: ; - // cnt==0 means there was not match. cnt>1 means there were two or - // more matches. Either way, we have an error. + // cnt==0 means there was not match. + // cnt>1 means there were two or more matches. + // + // cnt==0 is always an error. cnt>1 is often an error, but might + // be multiple matches for a NATURAL LEFT JOIN or a LEFT JOIN USING. + if !(cnt != 1) { - goto __80 + goto __93 + } + if !(*(*uintptr)(unsafe.Pointer(bp + 96)) != 0) { + goto __94 + } + if !((*ExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 96)))).FnExpr == cnt-1) { + goto __95 + } + if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Leaf) != U32(0)) { + goto __97 } + *(*U32)(unsafe.Pointer(pExpr + 4)) &= libc.Uint32FromInt32(libc.CplInt32(EP_Leaf)) + goto __98 +__97: + Xsqlite3ExprDelete(tls, db, (*Expr)(unsafe.Pointer(pExpr)).FpLeft) + (*Expr)(unsafe.Pointer(pExpr)).FpLeft = uintptr(0) + Xsqlite3ExprDelete(tls, db, (*Expr)(unsafe.Pointer(pExpr)).FpRight) + (*Expr)(unsafe.Pointer(pExpr)).FpRight = uintptr(0) +__98: + ; + extendFJMatch(tls, pParse, bp+96, pMatch, (*Expr)(unsafe.Pointer(pExpr)).FiColumn) + (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_FUNCTION) + *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 7864 /* "coalesce" */ + *(*uintptr)(unsafe.Pointer(pExpr + 32)) = *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */)) + cnt = 1 + goto lookupname_end + goto __96 +__95: + Xsqlite3ExprListDelete(tls, db, *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */))) + *(*uintptr)(unsafe.Pointer(bp + 96 /* pFJMatch */)) = uintptr(0) +__96: + ; +__94: + ; if cnt == 0 { - zErr = ts + 7829 /* "no such column" */ + zErr = ts + 7873 /* "no such column" */ } else { - zErr = ts + 7844 /* "ambiguous column..." */ + zErr = ts + 7888 /* "ambiguous column..." */ } if !(zDb != 0) { - goto __81 + goto __99 } - Xsqlite3ErrorMsg(tls, pParse, ts+7866, libc.VaList(bp+24, zErr, zDb, zTab, zCol)) - goto __82 -__81: + Xsqlite3ErrorMsg(tls, pParse, ts+7910, libc.VaList(bp+24, zErr, zDb, zTab, zCol)) + goto __100 +__99: if !(zTab != 0) { - goto __83 + goto __101 } - Xsqlite3ErrorMsg(tls, pParse, ts+7879, libc.VaList(bp+56, zErr, zTab, zCol)) - goto __84 -__83: - Xsqlite3ErrorMsg(tls, pParse, ts+7889, libc.VaList(bp+80, zErr, zCol)) -__84: + Xsqlite3ErrorMsg(tls, pParse, ts+7923, libc.VaList(bp+56, zErr, zTab, zCol)) + goto __102 +__101: + Xsqlite3ErrorMsg(tls, pParse, ts+7933, libc.VaList(bp+80, zErr, zCol)) +__102: ; -__82: +__100: ; Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr) (*Parse)(unsafe.Pointer(pParse)).FcheckSchema = U8(1) (*NameContext)(unsafe.Pointer(pTopNC)).FnNcErr++ -__80: +__93: + ; + + // Remove all substructure from pExpr + if !!((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_TokenOnly|EP_Leaf) != U32(0)) { + goto __103 + } + Xsqlite3ExprDelete(tls, db, (*Expr)(unsafe.Pointer(pExpr)).FpLeft) + (*Expr)(unsafe.Pointer(pExpr)).FpLeft = uintptr(0) + Xsqlite3ExprDelete(tls, db, (*Expr)(unsafe.Pointer(pExpr)).FpRight) + (*Expr)(unsafe.Pointer(pExpr)).FpRight = uintptr(0) + *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_Leaf) +__103: ; // If a column from a table in pSrcList is referenced, then record @@ -126097,69 +126758,58 @@ __80: // If a generated column is referenced, set bits for every column // of the table. if !(int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) >= 0 && pMatch != uintptr(0)) { - goto __85 + goto __104 } - *(*Bitmask)(unsafe.Pointer(pMatch + 88)) |= Xsqlite3ExprColUsed(tls, pExpr) -__85: + *(*Bitmask)(unsafe.Pointer(pMatch + 80)) |= Xsqlite3ExprColUsed(tls, pExpr) +__104: ; - // Clean up and return - if !!((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_TokenOnly|EP_Leaf) != U32(0)) { - goto __86 - } - Xsqlite3ExprDelete(tls, db, (*Expr)(unsafe.Pointer(pExpr)).FpLeft) - (*Expr)(unsafe.Pointer(pExpr)).FpLeft = uintptr(0) - Xsqlite3ExprDelete(tls, db, (*Expr)(unsafe.Pointer(pExpr)).FpRight) - (*Expr)(unsafe.Pointer(pExpr)).FpRight = uintptr(0) -__86: - ; (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(eNewExprOp) - *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_Leaf) lookupname_end: if !(cnt == 1) { - goto __87 + goto __105 } if !((*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FxAuth != 0 && (int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN || int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_TRIGGER)) { - goto __89 + goto __107 } Xsqlite3AuthRead(tls, pParse, pExpr, pSchema, (*NameContext)(unsafe.Pointer(pNC)).FpSrcList) -__89: +__107: ; // Increment the nRef value on all name contexts from TopNC up to // the point where the name matched. -__90: +__108: ; (*NameContext)(unsafe.Pointer(pTopNC)).FnRef++ if !(pTopNC == pNC) { - goto __93 + goto __111 } - goto __92 -__93: + goto __110 +__111: ; pTopNC = (*NameContext)(unsafe.Pointer(pTopNC)).FpNext - goto __91 -__91: - goto __90 - goto __92 -__92: + goto __109 +__109: + goto __108 + goto __110 +__110: ; return WRC_Prune - goto __88 -__87: + goto __106 +__105: return WRC_Abort -__88: +__106: ; return int32(0) } // Allocate and return a pointer to an expression to load the column iCol // from datasource iSrc in SrcList pSrc. -func Xsqlite3CreateColumnExpr(tls *libc.TLS, db uintptr, pSrc uintptr, iSrc int32, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101110:21: */ +func Xsqlite3CreateColumnExpr(tls *libc.TLS, db uintptr, pSrc uintptr, iSrc int32, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:102220:21: */ var p uintptr = Xsqlite3ExprAlloc(tls, db, TK_COLUMN, uintptr(0), 0) if p != 0 { - var pItem uintptr = pSrc + 8 + uintptr(iSrc)*112 + var pItem uintptr = pSrc + 8 + uintptr(iSrc)*104 var pTab uintptr pTab = libc.AssignPtrUintptr(p+64, (*SrcItem)(unsafe.Pointer(pItem)).FpTab) @@ -126179,7 +126829,7 @@ func Xsqlite3CreateColumnExpr(tls *libc.TLS, db uintptr, pSrc uintptr, iSrc int3 }() } else { - *(*Bitmask)(unsafe.Pointer(pItem + 88)) |= Bitmask(uint64(1)) << func() int32 { + *(*Bitmask)(unsafe.Pointer(pItem + 80)) |= Bitmask(uint64(1)) << func() int32 { if iCol >= int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8)) { return int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8)) - 1 } @@ -126195,29 +126845,31 @@ func Xsqlite3CreateColumnExpr(tls *libc.TLS, db uintptr, pSrc uintptr, iSrc int3 // pNC->ncFlags values determined by validMask. // // static void notValid( -// Parse *pParse, // Leave error message here -// NameContext *pNC, // The name context -// const char *zMsg, // Type of error -// int validMask, // Set of contexts for which prohibited -// Expr *pExpr // Invalidate this expression on error +// +// Parse *pParse, // Leave error message here +// NameContext *pNC, // The name context +// const char *zMsg, // Type of error +// int validMask, // Set of contexts for which prohibited +// Expr *pExpr // Invalidate this expression on error +// // ){...} // // As an optimization, since the conditional is almost always false // (because errors are rare), the conditional is moved outside of the // function call using a macro. -func notValidImpl(tls *libc.TLS, pParse uintptr, pNC uintptr, zMsg uintptr, pExpr uintptr, pError uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101154:13: */ +func notValidImpl(tls *libc.TLS, pParse uintptr, pNC uintptr, zMsg uintptr, pExpr uintptr, pError uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:102264:13: */ bp := tls.Alloc(16) defer tls.Free(16) - var zIn uintptr = ts + 7896 /* "partial index WH..." */ + var zIn uintptr = ts + 7940 /* "partial index WH..." */ if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_IdxExpr != 0 { - zIn = ts + 7924 /* "index expression..." */ + zIn = ts + 7968 /* "index expression..." */ } else if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_IsCheck != 0 { - zIn = ts + 7942 /* "CHECK constraint..." */ + zIn = ts + 7986 /* "CHECK constraint..." */ } else if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_GenCol != 0 { - zIn = ts + 7960 /* "generated column..." */ + zIn = ts + 8004 /* "generated column..." */ } - Xsqlite3ErrorMsg(tls, pParse, ts+7978, libc.VaList(bp, zMsg, zIn)) + Xsqlite3ErrorMsg(tls, pParse, ts+8022, libc.VaList(bp, zMsg, zIn)) if pExpr != 0 { (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_NULL) } @@ -126227,7 +126879,7 @@ func notValidImpl(tls *libc.TLS, pParse uintptr, pNC uintptr, zMsg uintptr, pExp // Expression p should encode a floating point value between 1.0 and 0.0. // Return 1024 times this value. Or return -1 if p is not a floating point // value between 1.0 and 0.0. -func exprProbability(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101182:12: */ +func exprProbability(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:102292:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -126253,7 +126905,7 @@ func exprProbability(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalga // This routine also does error checking and name resolution for // function names. The operator for aggregate functions is changed // to TK_AGG_FUNCTION. -func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101203:12: */ +func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:102313:12: */ bp := tls.Alloc(96) defer tls.Free(96) @@ -126329,10 +126981,10 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t if 0 == Xsqlite3ExprCanBeNull(tls, (*Expr)(unsafe.Pointer(pExpr)).FpLeft) && !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) { if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_NOTNULL { - *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 7998 /* "true" */ + *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 8042 /* "true" */ *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsTrue) } else { - *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 8003 /* "false" */ + *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 8047 /* "false" */ *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsFalse) } (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_TRUEFALSE) @@ -126386,7 +127038,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t var pLeft uintptr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&(NC_IdxExpr|NC_GenCol) != 0 { - notValidImpl(tls, pParse, pNC, ts+8009, uintptr(0), pExpr) + notValidImpl(tls, pParse, pNC, ts+8053, uintptr(0), pExpr) } pRight = (*Expr)(unsafe.Pointer(pExpr)).FpRight @@ -126453,7 +127105,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t if (*Expr)(unsafe.Pointer(pExpr)).FiTable < 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+8026, libc.VaList(bp, pExpr)) + ts+8070, libc.VaList(bp, pExpr)) (*NameContext)(unsafe.Pointer(pNC)).FnNcErr++ } } else { @@ -126478,7 +127130,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t var auth int32 = Xsqlite3AuthCheck(tls, pParse, SQLITE_FUNCTION, uintptr(0), (*FuncDef)(unsafe.Pointer(pDef)).FzName, uintptr(0)) if auth != SQLITE_OK { if auth == SQLITE_DENY { - Xsqlite3ErrorMsg(tls, pParse, ts+8090, + Xsqlite3ErrorMsg(tls, pParse, ts+8134, libc.VaList(bp+8, pExpr)) (*NameContext)(unsafe.Pointer(pNC)).FnNcErr++ } @@ -126502,7 +127154,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t // in a CHECK constraint. SQLServer, MySQL, and PostgreSQL all // all this. if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&(NC_IdxExpr|NC_PartIdx|NC_GenCol) != 0 { - notValidImpl(tls, pParse, pNC, ts+8126, uintptr(0), pExpr) + notValidImpl(tls, pParse, pNC, ts+8170, uintptr(0), pExpr) } } else { @@ -126531,30 +127183,30 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t if pDef != 0 && (*FuncDef)(unsafe.Pointer(pDef)).FxValue == uintptr(0) && pWin != 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+8154, libc.VaList(bp+16, pExpr)) + ts+8198, libc.VaList(bp+16, pExpr)) (*NameContext)(unsafe.Pointer(pNC)).FnNcErr++ } else if is_agg != 0 && (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_AllowAgg == 0 || is_agg != 0 && (*FuncDef)(unsafe.Pointer(pDef)).FfuncFlags&U32(SQLITE_FUNC_WINDOW) != 0 && !(pWin != 0) || is_agg != 0 && pWin != 0 && (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_AllowWin == 0 { var zType uintptr if (*FuncDef)(unsafe.Pointer(pDef)).FfuncFlags&U32(SQLITE_FUNC_WINDOW) != 0 || pWin != 0 { - zType = ts + 8197 /* "window" */ + zType = ts + 8241 /* "window" */ } else { - zType = ts + 8204 /* "aggregate" */ + zType = ts + 8248 /* "aggregate" */ } - Xsqlite3ErrorMsg(tls, pParse, ts+8214, libc.VaList(bp+24, zType, pExpr)) + Xsqlite3ErrorMsg(tls, pParse, ts+8258, libc.VaList(bp+24, zType, pExpr)) (*NameContext)(unsafe.Pointer(pNC)).FnNcErr++ is_agg = 0 } else if no_such_func != 0 && int32((*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).Finit.Fbusy) == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+8242, libc.VaList(bp+40, pExpr)) + Xsqlite3ErrorMsg(tls, pParse, ts+8286, libc.VaList(bp+40, pExpr)) (*NameContext)(unsafe.Pointer(pNC)).FnNcErr++ } else if wrong_num_args != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+8264, + Xsqlite3ErrorMsg(tls, pParse, ts+8308, libc.VaList(bp+48, pExpr)) (*NameContext)(unsafe.Pointer(pNC)).FnNcErr++ } else if is_agg == 0 && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_WinFunc) != U32(0) { Xsqlite3ErrorMsg(tls, pParse, - ts+8308, + ts+8352, libc.VaList(bp+56, pExpr)) (*NameContext)(unsafe.Pointer(pNC)).FnNcErr++ } @@ -126632,7 +127284,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t var nRef int32 = (*NameContext)(unsafe.Pointer(pNC)).FnRef if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_SelfRef != 0 { - notValidImpl(tls, pParse, pNC, ts+8356, pExpr, pExpr) + notValidImpl(tls, pParse, pNC, ts+8400, pExpr, pExpr) } else { Xsqlite3WalkSelect(tls, pWalker, *(*uintptr)(unsafe.Pointer(pExpr + 32))) } @@ -126649,7 +127301,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t { if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&(NC_IsCheck|NC_PartIdx|NC_IdxExpr|NC_GenCol) != 0 { - notValidImpl(tls, pParse, pNC, ts+8367, pExpr, pExpr) + notValidImpl(tls, pParse, pNC, ts+8411, pExpr, pExpr) } break @@ -126710,7 +127362,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t } if nLeft != nRight { - Xsqlite3ErrorMsg(tls, pParse, ts+7776, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+7811, 0) Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr) } break @@ -126734,7 +127386,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t // return 0. // // pEList has been resolved. pE has not. -func resolveAsName(tls *libc.TLS, pParse uintptr, pEList uintptr, pE uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101661:12: */ +func resolveAsName(tls *libc.TLS, pParse uintptr, pEList uintptr, pE uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:102771:12: */ var i int32 // Loop counter _ = pParse @@ -126744,7 +127396,7 @@ func resolveAsName(tls *libc.TLS, pParse uintptr, pEList uintptr, pE uintptr) in zCol = *(*uintptr)(unsafe.Pointer(pE + 8)) for i = 0; i < (*ExprList)(unsafe.Pointer(pEList)).FnExpr; i++ { - if int32(*(*uint8)(unsafe.Pointer(pEList + 8 + uintptr(i)*32 + 20))&0x3>>0) == ENAME_NAME && + if int32(*(*uint16)(unsafe.Pointer(pEList + 8 + uintptr(i)*32 + 16 + 4))&0x3>>0) == ENAME_NAME && Xsqlite3_stricmp(tls, (*ExprList_item)(unsafe.Pointer(pEList+8+uintptr(i)*32)).FzEName, zCol) == 0 { return i + 1 } @@ -126769,7 +127421,7 @@ func resolveAsName(tls *libc.TLS, pParse uintptr, pEList uintptr, pE uintptr) in // the column. // // If there is no match, return 0. Return -1 if an error occurs. -func resolveOrderByTermToExprList(tls *libc.TLS, pParse uintptr, pSelect uintptr, pE uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101703:12: */ +func resolveOrderByTermToExprList(tls *libc.TLS, pParse uintptr, pSelect uintptr, pE uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:102813:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -126813,13 +127465,13 @@ func resolveOrderByTermToExprList(tls *libc.TLS, pParse uintptr, pSelect uintptr } // Generate an ORDER BY or GROUP BY term out-of-range error. -func resolveOutOfRangeError(tls *libc.TLS, pParse uintptr, zType uintptr, i int32, mx int32, pError uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101750:13: */ +func resolveOutOfRangeError(tls *libc.TLS, pParse uintptr, zType uintptr, i int32, mx int32, pError uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:102860:13: */ bp := tls.Alloc(24) defer tls.Free(24) Xsqlite3ErrorMsg(tls, pParse, - ts+8378, libc.VaList(bp, i, zType, mx)) + ts+8422, libc.VaList(bp, i, zType, mx)) Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pError) } @@ -126836,7 +127488,7 @@ func resolveOutOfRangeError(tls *libc.TLS, pParse uintptr, zType uintptr, i int3 // the integer column number. // // Return the number of errors seen. -func resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101778:12: */ +func resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:102888:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -126852,11 +127504,11 @@ func resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) int3 } db = (*Parse)(unsafe.Pointer(pParse)).Fdb if (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr > *(*int32)(unsafe.Pointer(db + 136 + 2*4)) { - Xsqlite3ErrorMsg(tls, pParse, ts+8434, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+8478, 0) return 1 } for i = 0; i < (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr; i++ { - libc.SetBitFieldPtr8Uint32(pOrderBy+8+uintptr(i)*32+20, uint32(0), 2, 0x4) + libc.SetBitFieldPtr16Uint32(pOrderBy+8+uintptr(i)*32+16+4, uint32(0), 2, 0x4) } (*Select)(unsafe.Pointer(pSelect)).FpNext = uintptr(0) for (*Select)(unsafe.Pointer(pSelect)).FpPrior != 0 { @@ -126878,7 +127530,7 @@ func resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) int3 *(*int32)(unsafe.Pointer(bp + 8 /* iCol */)) = -1 var pE uintptr var pDup uintptr - if uint32(int32(*(*uint8)(unsafe.Pointer(pItem + 20))&0x4>>2)) != 0 { + if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 16 + 4))&0x4>>2)) != 0 { goto __2 } pE = Xsqlite3ExprSkipCollateAndLikely(tls, (*ExprList_item)(unsafe.Pointer(pItem)).FpExpr) @@ -126887,7 +127539,7 @@ func resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) int3 } if Xsqlite3ExprIsInteger(tls, pE, bp+8) != 0 { if *(*int32)(unsafe.Pointer(bp + 8)) <= 0 || *(*int32)(unsafe.Pointer(bp + 8)) > (*ExprList)(unsafe.Pointer(pEList)).FnExpr { - resolveOutOfRangeError(tls, pParse, ts+8468, i+1, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, pE) + resolveOutOfRangeError(tls, pParse, ts+8512, i+1, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, pE) return 1 } } else { @@ -126939,7 +127591,7 @@ func resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) int3 Xsqlite3ExprDelete(tls, db, pE) *(*U16)(unsafe.Pointer(pItem + 24)) = U16(*(*int32)(unsafe.Pointer(bp + 8 /* iCol */))) } - libc.SetBitFieldPtr8Uint32(pItem+20, uint32(1), 2, 0x4) + libc.SetBitFieldPtr16Uint32(pItem+16+4, uint32(1), 2, 0x4) } else { moreToDo = 1 } @@ -126956,9 +127608,9 @@ func resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) int3 pSelect = (*Select)(unsafe.Pointer(pSelect)).FpNext } for i = 0; i < (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr; i++ { - if int32(*(*uint8)(unsafe.Pointer(pOrderBy + 8 + uintptr(i)*32 + 20))&0x4>>2) == 0 { + if int32(*(*uint16)(unsafe.Pointer(pOrderBy + 8 + uintptr(i)*32 + 16 + 4))&0x4>>2) == 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+8474, libc.VaList(bp, i+1)) + ts+8518, libc.VaList(bp, i+1)) return 1 } } @@ -126973,7 +127625,7 @@ func resolveCompoundOrderBy(tls *libc.TLS, pParse uintptr, pSelect uintptr) int3 // // If any errors are detected, add an error message to pParse and // return non-zero. Return zero if no errors are seen. -func Xsqlite3ResolveOrderGroupBy(tls *libc.TLS, pParse uintptr, pSelect uintptr, pOrderBy uintptr, zType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101891:20: */ +func Xsqlite3ResolveOrderGroupBy(tls *libc.TLS, pParse uintptr, pSelect uintptr, pOrderBy uintptr, zType uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103001:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -126986,7 +127638,7 @@ func Xsqlite3ResolveOrderGroupBy(tls *libc.TLS, pParse uintptr, pSelect uintptr, return 0 } if (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr > *(*int32)(unsafe.Pointer(db + 136 + 2*4)) { - Xsqlite3ErrorMsg(tls, pParse, ts+8535, libc.VaList(bp, zType)) + Xsqlite3ErrorMsg(tls, pParse, ts+8579, libc.VaList(bp, zType)) return 1 } pEList = (*Select)(unsafe.Pointer(pSelect)).FpEList @@ -127019,7 +127671,7 @@ __3: } // Walker callback for windowRemoveExprFromSelect(). -func resolveRemoveWindowsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101925:12: */ +func resolveRemoveWindowsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103035:12: */ _ = pWalker if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_WinFunc) != U32(0) { var pWin uintptr = *(*uintptr)(unsafe.Pointer(pExpr + 64)) @@ -127030,7 +127682,7 @@ func resolveRemoveWindowsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 // Remove any Window objects owned by the expression pExpr from the // Select.pWin list of Select object pSelect. -func windowRemoveExprFromSelect(tls *libc.TLS, pSelect uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101938:13: */ +func windowRemoveExprFromSelect(tls *libc.TLS, pSelect uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103048:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -127062,7 +127714,7 @@ func windowRemoveExprFromSelect(tls *libc.TLS, pSelect uintptr, pExpr uintptr) { // This routine returns the number of errors. If errors occur, then // an appropriate error message might be left in pParse. (OOM errors // excepted.) -func resolveOrderGroupBy(tls *libc.TLS, pNC uintptr, pSelect uintptr, pOrderBy uintptr, zType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:101969:12: */ +func resolveOrderGroupBy(tls *libc.TLS, pNC uintptr, pSelect uintptr, pOrderBy uintptr, zType uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103079:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -127139,7 +127791,7 @@ __3: } // Resolve names in the SELECT statement p and all of its descendants. -func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102032:12: */ +func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103142:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -127208,7 +127860,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* tes // Recursively resolve names in all subqueries in the FROM clause for i = 0; i < (*SrcList)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpSrc)).FnSrc; i++ { - var pItem uintptr = (*Select)(unsafe.Pointer(p)).FpSrc + 8 + uintptr(i)*112 + var pItem uintptr = (*Select)(unsafe.Pointer(p)).FpSrc + 8 + uintptr(i)*104 if (*SrcItem)(unsafe.Pointer(pItem)).FpSelect != 0 && (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpSelect)).FselFlags&U32(SF_Resolved) == U32(0) { var nRef int32 if pOuterNC != 0 { @@ -127274,8 +127926,8 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* tes *(*uintptr)(unsafe.Pointer(bp + 16)) = (*Select)(unsafe.Pointer(p)).FpEList *(*int32)(unsafe.Pointer(bp + 40)) |= NC_UEList if (*Select)(unsafe.Pointer(p)).FpHaving != 0 { - if !(pGroupBy != 0) { - Xsqlite3ErrorMsg(tls, pParse, ts+8566, 0) + if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Aggregate) == U32(0) { + Xsqlite3ErrorMsg(tls, pParse, ts+8610, 0) return WRC_Abort } if Xsqlite3ResolveExprNames(tls, bp, (*Select)(unsafe.Pointer(p)).FpHaving) != 0 { @@ -127288,9 +127940,9 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* tes // Resolve names in table-valued-function arguments for i = 0; i < (*SrcList)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpSrc)).FnSrc; i++ { - var pItem uintptr = (*Select)(unsafe.Pointer(p)).FpSrc + 8 + uintptr(i)*112 + var pItem uintptr = (*Select)(unsafe.Pointer(p)).FpSrc + 8 + uintptr(i)*104 if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x4>>2)) != 0 && - Xsqlite3ResolveExprListNames(tls, bp, *(*uintptr)(unsafe.Pointer(pItem + 96))) != 0 { + Xsqlite3ResolveExprListNames(tls, bp, *(*uintptr)(unsafe.Pointer(pItem + 88))) != 0 { return WRC_Abort } } @@ -127332,7 +127984,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* tes // resolve those symbols on the incorrect ORDER BY for consistency. if (*Select)(unsafe.Pointer(p)).FpOrderBy != uintptr(0) && isCompound <= nCompound && - resolveOrderGroupBy(tls, bp, p, (*Select)(unsafe.Pointer(p)).FpOrderBy, ts+8468) != 0 { + resolveOrderGroupBy(tls, bp, p, (*Select)(unsafe.Pointer(p)).FpOrderBy, ts+8512) != 0 { return WRC_Abort } if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { @@ -127345,7 +127997,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* tes if pGroupBy != 0 { var pItem uintptr - if resolveOrderGroupBy(tls, bp, p, pGroupBy, ts+8610) != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { + if resolveOrderGroupBy(tls, bp, p, pGroupBy, ts+8649) != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { return WRC_Abort } i = 0 @@ -127357,7 +128009,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* tes { if (*Expr)(unsafe.Pointer((*ExprList_item)(unsafe.Pointer(pItem)).FpExpr)).Fflags&U32(EP_Agg) != U32(0) { Xsqlite3ErrorMsg(tls, pParse, - ts+8616, 0) + ts+8655, 0) return WRC_Abort } @@ -127400,21 +128052,20 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* tes // To resolve table columns references we look for nodes (or subtrees) of the // form X.Y.Z or Y.Z or just Z where // -// X: The name of a database. Ex: "main" or "temp" or -// the symbolic name assigned to an ATTACH-ed database. +// X: The name of a database. Ex: "main" or "temp" or +// the symbolic name assigned to an ATTACH-ed database. // -// Y: The name of a table in a FROM clause. Or in a trigger -// one of the special names "old" or "new". +// Y: The name of a table in a FROM clause. Or in a trigger +// one of the special names "old" or "new". // -// Z: The name of a column in table Y. +// Z: The name of a column in table Y. // // The node at the root of the subtree is modified as follows: // -// Expr.op Changed to TK_COLUMN -// Expr.pTab Points to the Table object for X.Y -// Expr.iColumn The column index in X.Y. -1 for the rowid. -// Expr.iTable The VDBE cursor number for X.Y -// +// Expr.op Changed to TK_COLUMN +// Expr.pTab Points to the Table object for X.Y +// Expr.iColumn The column index in X.Y. -1 for the rowid. +// Expr.iTable The VDBE cursor number for X.Y // // To resolve result-set references, look for expression nodes of the // form Z (with no X and Y prefix) where the Z matches the right-hand @@ -127423,11 +128074,11 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* tes // Table-name and function resolution occurs on the substituted expression // tree. For example, in: // -// SELECT a+b AS x, c+d AS y FROM t1 ORDER BY x; +// SELECT a+b AS x, c+d AS y FROM t1 ORDER BY x; // // The "x" term of the order by is replaced by "a+b" to render: // -// SELECT a+b AS x, c+d AS y FROM t1 ORDER BY a+b; +// SELECT a+b AS x, c+d AS y FROM t1 ORDER BY a+b; // // Function calls are checked to make sure that the function is // defined and that the correct number of arguments are specified. @@ -127438,7 +128089,7 @@ func resolveSelectStep(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* tes // // An error message is left in pParse if anything is amiss. The number // if errors is returned. -func Xsqlite3ResolveExprNames(tls *libc.TLS, pNC uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102320:20: */ +func Xsqlite3ResolveExprNames(tls *libc.TLS, pNC uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103430:20: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -127479,7 +128130,7 @@ func Xsqlite3ResolveExprNames(tls *libc.TLS, pNC uintptr, pExpr uintptr) int32 { // Resolve all names for all expression in an expression list. This is // just like sqlite3ResolveExprNames() except that it works for an expression // list rather than a single expression. -func Xsqlite3ResolveExprListNames(tls *libc.TLS, pNC uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102359:20: */ +func Xsqlite3ResolveExprListNames(tls *libc.TLS, pNC uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103469:20: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -127536,7 +128187,7 @@ func Xsqlite3ResolveExprListNames(tls *libc.TLS, pNC uintptr, pList uintptr) int // // All SELECT statements should have been expanded using // sqlite3SelectExpand() prior to invoking this routine. -func Xsqlite3ResolveSelectNames(tls *libc.TLS, pParse uintptr, p uintptr, pOuterNC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102415:21: */ +func Xsqlite3ResolveSelectNames(tls *libc.TLS, pParse uintptr, p uintptr, pOuterNC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103525:21: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -127557,24 +128208,24 @@ func Xsqlite3ResolveSelectNames(tls *libc.TLS, pParse uintptr, p uintptr, pOuter // Resolve names in expressions that can only reference a single table // or which cannot reference any tables at all. Examples: // -// "type" flag -// ------------ -// (1) CHECK constraints NC_IsCheck -// (2) WHERE clauses on partial indices NC_PartIdx -// (3) Expressions in indexes on expressions NC_IdxExpr -// (4) Expression arguments to VACUUM INTO. 0 -// (5) GENERATED ALWAYS as expressions NC_GenCol +// "type" flag +// ------------ +// (1) CHECK constraints NC_IsCheck +// (2) WHERE clauses on partial indices NC_PartIdx +// (3) Expressions in indexes on expressions NC_IdxExpr +// (4) Expression arguments to VACUUM INTO. 0 +// (5) GENERATED ALWAYS as expressions NC_GenCol // // In all cases except (4), the Expr.iTable value for Expr.op==TK_COLUMN // nodes of the expression is set to -1 and the Expr.iColumn value is // set to the column number. In case (4), TK_COLUMN nodes cause an error. // // Any errors cause an error message to be set in pParse. -func Xsqlite3ResolveSelfReference(tls *libc.TLS, pParse uintptr, pTab uintptr, type1 int32, pExpr uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102449:20: */ - bp := tls.Alloc(176) - defer tls.Free(176) +func Xsqlite3ResolveSelfReference(tls *libc.TLS, pParse uintptr, pTab uintptr, type1 int32, pExpr uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103559:20: */ + bp := tls.Alloc(168) + defer tls.Free(168) - // var sSrc SrcList at bp+56, 120 + // var sSrc SrcList at bp+56, 112 // Fake SrcList for pParse->pNewTable // var sNC NameContext at bp, 56 // Name context for pParse->pNewTable @@ -127606,7 +128257,7 @@ func Xsqlite3ResolveSelfReference(tls *libc.TLS, pParse uintptr, pTab uintptr, t } // Return the affinity character for a single column of a table. -func Xsqlite3TableColumnAffinity(tls *libc.TLS, pTab uintptr, iCol int32) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102509:21: */ +func Xsqlite3TableColumnAffinity(tls *libc.TLS, pTab uintptr, iCol int32) int8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103619:21: */ if iCol < 0 || iCol >= int32((*Table)(unsafe.Pointer(pTab)).FnCol) { return int8(SQLITE_AFF_INTEGER) } @@ -127627,7 +128278,7 @@ func Xsqlite3TableColumnAffinity(tls *libc.TLS, pTab uintptr, iCol int32) int8 { // SELECT * FROM t1 WHERE a; // SELECT a AS b FROM t1 WHERE b; // SELECT * FROM t1 WHERE (select a from t1); -func Xsqlite3ExprAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102530:21: */ +func Xsqlite3ExprAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103640:21: */ var op int32 for (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Skip|EP_IfNullRow) != U32(0) { @@ -127670,7 +128321,7 @@ func Xsqlite3ExprAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* testdata/sqlit // // If a memory allocation error occurs, that fact is recorded in pParse->db // and the pExpr parameter is returned unchanged. -func Xsqlite3ExprAddCollateToken(tls *libc.TLS, pParse uintptr, pExpr uintptr, pCollName uintptr, dequote int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102583:21: */ +func Xsqlite3ExprAddCollateToken(tls *libc.TLS, pParse uintptr, pExpr uintptr, pCollName uintptr, dequote int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103693:21: */ if (*Token)(unsafe.Pointer(pCollName)).Fn > uint32(0) { var pNew uintptr = Xsqlite3ExprAlloc(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_COLLATE, pCollName, dequote) if pNew != 0 { @@ -127682,7 +128333,7 @@ func Xsqlite3ExprAddCollateToken(tls *libc.TLS, pParse uintptr, pExpr uintptr, p return pExpr } -func Xsqlite3ExprAddCollateString(tls *libc.TLS, pParse uintptr, pExpr uintptr, zC uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102599:21: */ +func Xsqlite3ExprAddCollateString(tls *libc.TLS, pParse uintptr, pExpr uintptr, zC uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103709:21: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -127693,7 +128344,7 @@ func Xsqlite3ExprAddCollateString(tls *libc.TLS, pParse uintptr, pExpr uintptr, } // Skip over any TK_COLLATE operators. -func Xsqlite3ExprSkipCollate(tls *libc.TLS, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102613:21: */ +func Xsqlite3ExprSkipCollate(tls *libc.TLS, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103723:21: */ for pExpr != 0 && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Skip) != U32(0) { pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft @@ -127704,7 +128355,7 @@ func Xsqlite3ExprSkipCollate(tls *libc.TLS, pExpr uintptr) uintptr { /* testdata // Skip over any TK_COLLATE operators and/or any unlikely() // or likelihood() or likely() functions at the root of an // expression. -func Xsqlite3ExprSkipCollateAndLikely(tls *libc.TLS, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102626:21: */ +func Xsqlite3ExprSkipCollateAndLikely(tls *libc.TLS, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103736:21: */ for pExpr != 0 && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Skip|EP_Unlikely) != U32(0) { if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Unlikely) != U32(0) { @@ -127729,7 +128380,7 @@ func Xsqlite3ExprSkipCollateAndLikely(tls *libc.TLS, pExpr uintptr) uintptr { /* // or by the presence of a column with a defined collating sequence. // COLLATE operators take first precedence. Left operands take // precedence over right operands. -func Xsqlite3ExprCollSeq(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102655:24: */ +func Xsqlite3ExprCollSeq(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103765:24: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pColl uintptr = uintptr(0) var p uintptr = pExpr @@ -127801,7 +128452,7 @@ func Xsqlite3ExprCollSeq(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { // // The sqlite3ExprCollSeq() routine works the same except that it // returns NULL if there is no defined collation. -func Xsqlite3ExprNNCollSeq(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102728:24: */ +func Xsqlite3ExprNNCollSeq(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103838:24: */ var p uintptr = Xsqlite3ExprCollSeq(tls, pParse, pExpr) if p == uintptr(0) { p = (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FpDfltColl @@ -127811,7 +128462,7 @@ func Xsqlite3ExprNNCollSeq(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr } // Return TRUE if the two expressions have equivalent collating sequences. -func Xsqlite3ExprCollSeqMatch(tls *libc.TLS, pParse uintptr, pE1 uintptr, pE2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102738:20: */ +func Xsqlite3ExprCollSeqMatch(tls *libc.TLS, pParse uintptr, pE1 uintptr, pE2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103848:20: */ var pColl1 uintptr = Xsqlite3ExprNNCollSeq(tls, pParse, pE1) var pColl2 uintptr = Xsqlite3ExprNNCollSeq(tls, pParse, pE2) return libc.Bool32(Xsqlite3StrICmp(tls, (*CollSeq)(unsafe.Pointer(pColl1)).FzName, (*CollSeq)(unsafe.Pointer(pColl2)).FzName) == 0) @@ -127820,7 +128471,7 @@ func Xsqlite3ExprCollSeqMatch(tls *libc.TLS, pParse uintptr, pE1 uintptr, pE2 ui // pExpr is an operand of a comparison operator. aff2 is the // type affinity of the other operand. This routine returns the // type affinity that should be used for the comparison operator. -func Xsqlite3CompareAffinity(tls *libc.TLS, pExpr uintptr, aff2 int8) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102749:21: */ +func Xsqlite3CompareAffinity(tls *libc.TLS, pExpr uintptr, aff2 int8) int8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103859:21: */ var aff1 int8 = Xsqlite3ExprAffinity(tls, pExpr) if int32(aff1) > SQLITE_AFF_NONE && int32(aff2) > SQLITE_AFF_NONE { // Both sides of the comparison are columns. If one has numeric @@ -127845,7 +128496,7 @@ func Xsqlite3CompareAffinity(tls *libc.TLS, pExpr uintptr, aff2 int8) int8 { /* // pExpr is a comparison operator. Return the type affinity that should // be applied to both operands prior to doing the comparison. -func comparisonAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102771:13: */ +func comparisonAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103881:13: */ var aff int8 aff = Xsqlite3ExprAffinity(tls, (*Expr)(unsafe.Pointer(pExpr)).FpLeft) @@ -127863,7 +128514,7 @@ func comparisonAffinity(tls *libc.TLS, pExpr uintptr) int8 { /* testdata/sqlite- // idx_affinity is the affinity of an indexed column. Return true // if the index with affinity idx_affinity may be used to implement // the comparison in pExpr. -func Xsqlite3IndexAffinityOk(tls *libc.TLS, pExpr uintptr, idx_affinity int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102794:20: */ +func Xsqlite3IndexAffinityOk(tls *libc.TLS, pExpr uintptr, idx_affinity int8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103904:20: */ var aff int8 = comparisonAffinity(tls, pExpr) if int32(aff) < SQLITE_AFF_TEXT { return 1 @@ -127876,7 +128527,7 @@ func Xsqlite3IndexAffinityOk(tls *libc.TLS, pExpr uintptr, idx_affinity int8) in // Return the P5 value that should be used for a binary comparison // opcode (OP_Eq, OP_Ge etc.) used to compare pExpr1 and pExpr2. -func binaryCompareP5(tls *libc.TLS, pExpr1 uintptr, pExpr2 uintptr, jumpIfNull int32) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102809:11: */ +func binaryCompareP5(tls *libc.TLS, pExpr1 uintptr, pExpr2 uintptr, jumpIfNull int32) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103919:11: */ var aff U8 = U8(Xsqlite3ExprAffinity(tls, pExpr2)) aff = U8(int32(U8(Xsqlite3CompareAffinity(tls, pExpr1, int8(aff)))) | int32(U8(jumpIfNull))) return aff @@ -127892,7 +128543,7 @@ func binaryCompareP5(tls *libc.TLS, pExpr1 uintptr, pExpr2 uintptr, jumpIfNull i // // Argument pRight (but not pLeft) may be a null pointer. In this case, // it is not considered. -func Xsqlite3BinaryCompareCollSeq(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102831:24: */ +func Xsqlite3BinaryCompareCollSeq(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103941:24: */ var pColl uintptr if (*Expr)(unsafe.Pointer(pLeft)).Fflags&U32(EP_Collate) != 0 { @@ -127915,7 +128566,7 @@ func Xsqlite3BinaryCompareCollSeq(tls *libc.TLS, pParse uintptr, pLeft uintptr, // However, if the OP_Commuted flag is set, then the order of the operands // is reversed in the sqlite3BinaryCompareCollSeq() call so that the // correct collating sequence is found. -func Xsqlite3ExprCompareCollSeq(tls *libc.TLS, pParse uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102859:24: */ +func Xsqlite3ExprCompareCollSeq(tls *libc.TLS, pParse uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103969:24: */ if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_Commuted) != U32(0) { return Xsqlite3BinaryCompareCollSeq(tls, pParse, (*Expr)(unsafe.Pointer(p)).FpRight, (*Expr)(unsafe.Pointer(p)).FpLeft) } else { @@ -127925,7 +128576,7 @@ func Xsqlite3ExprCompareCollSeq(tls *libc.TLS, pParse uintptr, p uintptr) uintpt } // Generate code for a comparison operator. -func codeCompare(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr, opcode int32, in1 int32, in2 int32, dest int32, jumpIfNull int32, isCommuted int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102870:12: */ +func codeCompare(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr, opcode int32, in1 int32, in2 int32, dest int32, jumpIfNull int32, isCommuted int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:103980:12: */ var p5 int32 var addr int32 var p4 uintptr @@ -127952,7 +128603,7 @@ func codeCompare(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr, o // parser will not generate a TK_VECTOR with fewer than two entries. // But a TK_SELECT might be either a vector or a scalar. It is only // considered a vector if it has two or more result columns. -func Xsqlite3ExprIsVector(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102906:20: */ +func Xsqlite3ExprIsVector(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104016:20: */ return libc.Bool32(Xsqlite3ExprVectorSize(tls, pExpr) > 1) } @@ -127960,7 +128611,7 @@ func Xsqlite3ExprIsVector(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqli // return the number of expressions in the vector. Or, if the expression // is a sub-select, return the number of columns in the sub-select. For // any other type of expression, return 1. -func Xsqlite3ExprVectorSize(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102916:20: */ +func Xsqlite3ExprVectorSize(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104026:20: */ var op U8 = (*Expr)(unsafe.Pointer(pExpr)).Fop if int32(op) == TK_REGISTER { op = (*Expr)(unsafe.Pointer(pExpr)).Fop2 @@ -127990,7 +128641,7 @@ func Xsqlite3ExprVectorSize(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sq // just the expression for the i-th term of the result set, and may // not be ready for evaluation because the table cursor has not yet // been positioned. -func Xsqlite3VectorFieldSubexpr(tls *libc.TLS, pVector uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102945:21: */ +func Xsqlite3VectorFieldSubexpr(tls *libc.TLS, pVector uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104055:21: */ if Xsqlite3ExprIsVector(tls, pVector) != 0 { @@ -128024,7 +128675,7 @@ func Xsqlite3VectorFieldSubexpr(tls *libc.TLS, pVector uintptr, i int32) uintptr // A trick to cause a TK_SELECT pVector to be deleted together with // the returned Expr object is to attach the pVector to the pRight field // of the returned TK_SELECT_COLUMN Expr object. -func Xsqlite3ExprForVectorField(tls *libc.TLS, pParse uintptr, pVector uintptr, iField int32, nField int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:102981:21: */ +func Xsqlite3ExprForVectorField(tls *libc.TLS, pParse uintptr, pVector uintptr, iField int32, nField int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104091:21: */ var pRet uintptr if int32((*Expr)(unsafe.Pointer(pVector)).Fop) == TK_SELECT { @@ -128072,7 +128723,7 @@ func Xsqlite3ExprForVectorField(tls *libc.TLS, pParse uintptr, pVector uintptr, // of registers in which the result is stored). // // If pExpr is not a TK_SELECT expression, return 0. -func exprCodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103037:12: */ +func exprCodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104147:12: */ var reg int32 = 0 if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_SELECT { reg = Xsqlite3CodeSubselect(tls, pParse, pExpr) @@ -128096,7 +128747,7 @@ func exprCodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* // // Before returning, output parameter (*ppExpr) is set to point to the // Expr object corresponding to element iElem of the vector. -func exprVectorRegister(tls *libc.TLS, pParse uintptr, pVector uintptr, iField int32, regSelect int32, ppExpr uintptr, pRegFree uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103065:12: */ +func exprVectorRegister(tls *libc.TLS, pParse uintptr, pVector uintptr, iField int32, regSelect int32, ppExpr uintptr, pRegFree uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104175:12: */ var op U8 = (*Expr)(unsafe.Pointer(pVector)).Fop if int32(op) == TK_REGISTER { @@ -128122,10 +128773,10 @@ func exprVectorRegister(tls *libc.TLS, pParse uintptr, pVector uintptr, iField i // // The caller must satisfy the following preconditions: // -// if pExpr->op==TK_IS: op==TK_EQ and p5==SQLITE_NULLEQ -// if pExpr->op==TK_ISNOT: op==TK_NE and p5==SQLITE_NULLEQ -// otherwise: op==pExpr->op and p5==0 -func codeVectorCompare(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, op U8, p5 U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103103:13: */ +// if pExpr->op==TK_IS: op==TK_EQ and p5==SQLITE_NULLEQ +// if pExpr->op==TK_ISNOT: op==TK_NE and p5==SQLITE_NULLEQ +// otherwise: op==pExpr->op and p5==0 +func codeVectorCompare(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, op U8, p5 U8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104213:13: */ bp := tls.Alloc(28) defer tls.Free(28) @@ -128145,7 +128796,7 @@ func codeVectorCompare(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, return } if nLeft != Xsqlite3ExprVectorSize(tls, pRight) { - Xsqlite3ErrorMsg(tls, pParse, ts+7776, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+7811, 0) return } @@ -128213,7 +128864,7 @@ func codeVectorCompare(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, // Check that argument nHeight is less than or equal to the maximum // expression depth allowed. If it is not, leave an error message in // pParse. -func Xsqlite3ExprCheckHeight(tls *libc.TLS, pParse uintptr, nHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103198:20: */ +func Xsqlite3ExprCheckHeight(tls *libc.TLS, pParse uintptr, nHeight int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104308:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -128221,7 +128872,7 @@ func Xsqlite3ExprCheckHeight(tls *libc.TLS, pParse uintptr, nHeight int32) int32 var mxHeight int32 = *(*int32)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb + 136 + 3*4)) if nHeight > mxHeight { Xsqlite3ErrorMsg(tls, pParse, - ts+8675, libc.VaList(bp, mxHeight)) + ts+8714, libc.VaList(bp, mxHeight)) rc = SQLITE_ERROR } return rc @@ -128235,7 +128886,7 @@ func Xsqlite3ExprCheckHeight(tls *libc.TLS, pParse uintptr, nHeight int32) int32 // If this maximum height is greater than the current value pointed // to by pnHeight, the second parameter, then set *pnHeight to that // value. -func heightOfExpr(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103219:13: */ +func heightOfExpr(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104329:13: */ if p != 0 { if (*Expr)(unsafe.Pointer(p)).FnHeight > *(*int32)(unsafe.Pointer(pnHeight)) { *(*int32)(unsafe.Pointer(pnHeight)) = (*Expr)(unsafe.Pointer(p)).FnHeight @@ -128243,7 +128894,7 @@ func heightOfExpr(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* testdata/sqli } } -func heightOfExprList(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103226:13: */ +func heightOfExprList(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104336:13: */ if p != 0 { var i int32 for i = 0; i < (*ExprList)(unsafe.Pointer(p)).FnExpr; i++ { @@ -128252,7 +128903,7 @@ func heightOfExprList(tls *libc.TLS, p uintptr, pnHeight uintptr) { /* testdata/ } } -func heightOfSelect(tls *libc.TLS, pSelect uintptr, pnHeight uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103234:13: */ +func heightOfSelect(tls *libc.TLS, pSelect uintptr, pnHeight uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104344:13: */ var p uintptr for p = pSelect; p != 0; p = (*Select)(unsafe.Pointer(p)).FpPrior { heightOfExpr(tls, (*Select)(unsafe.Pointer(p)).FpWhere, pnHeight) @@ -128272,7 +128923,7 @@ func heightOfSelect(tls *libc.TLS, pSelect uintptr, pnHeight uintptr) { /* testd // // Also propagate EP_Propagate flags up from Expr.x.pList to Expr.flags, // if appropriate. -func exprSetHeight(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103256:13: */ +func exprSetHeight(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104366:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -128299,7 +128950,7 @@ func exprSetHeight(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3 // // Also propagate all EP_Propagate flags from the Expr.x.pList into // Expr.flags. -func Xsqlite3ExprSetHeightAndFlags(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103276:21: */ +func Xsqlite3ExprSetHeightAndFlags(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104386:21: */ if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 { return } @@ -128309,7 +128960,7 @@ func Xsqlite3ExprSetHeightAndFlags(tls *libc.TLS, pParse uintptr, p uintptr) { / // Return the maximum height of any expression tree referenced // by the select statement passed as an argument. -func Xsqlite3SelectExprHeight(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103286:20: */ +func Xsqlite3SelectExprHeight(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104396:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -128336,7 +128987,7 @@ func Xsqlite3SelectExprHeight(tls *libc.TLS, p uintptr) int32 { /* testdata/sqli // stored in u.zToken. Instead, the integer values is written // into u.iValue and the EP_IntValue flag is set. No extra storage // is allocated to hold the integer text and the dequote flag is ignored. -func Xsqlite3ExprAlloc(tls *libc.TLS, db uintptr, op int32, pToken uintptr, dequote int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103325:21: */ +func Xsqlite3ExprAlloc(tls *libc.TLS, db uintptr, op int32, pToken uintptr, dequote int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104435:21: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -128384,7 +129035,7 @@ func Xsqlite3ExprAlloc(tls *libc.TLS, db uintptr, op int32, pToken uintptr, dequ // Allocate a new expression node from a zero-terminated token that has // already been dequoted. -func Xsqlite3Expr(tls *libc.TLS, db uintptr, op int32, zToken uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103373:21: */ +func Xsqlite3Expr(tls *libc.TLS, db uintptr, op int32, zToken uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104483:21: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -128399,7 +129050,7 @@ func Xsqlite3Expr(tls *libc.TLS, db uintptr, op int32, zToken uintptr) uintptr { // // If pRoot==NULL that means that a memory allocation error has occurred. // In that case, delete the subtrees pLeft and pRight. -func Xsqlite3ExprAttachSubtrees(tls *libc.TLS, db uintptr, pRoot uintptr, pLeft uintptr, pRight uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103390:21: */ +func Xsqlite3ExprAttachSubtrees(tls *libc.TLS, db uintptr, pRoot uintptr, pLeft uintptr, pRight uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104500:21: */ if pRoot == uintptr(0) { Xsqlite3ExprDelete(tls, db, pLeft) @@ -128422,7 +129073,7 @@ func Xsqlite3ExprAttachSubtrees(tls *libc.TLS, db uintptr, pRoot uintptr, pLeft // One or both of the subtrees can be NULL. Return a pointer to the new // Expr node. Or, if an OOM error occurs, set pParse->db->mallocFailed, // free the subtrees and return NULL. -func Xsqlite3PExpr(tls *libc.TLS, pParse uintptr, op int32, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103420:21: */ +func Xsqlite3PExpr(tls *libc.TLS, pParse uintptr, op int32, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104530:21: */ var p uintptr p = Xsqlite3DbMallocRawNN(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, uint64(unsafe.Sizeof(Expr{}))) if p != 0 { @@ -128440,7 +129091,7 @@ func Xsqlite3PExpr(tls *libc.TLS, pParse uintptr, op int32, pLeft uintptr, pRigh // Add pSelect to the Expr.x.pSelect field. Or, if pExpr is NULL (due // do a memory allocation failure) then delete the pSelect object. -func Xsqlite3PExprAddSelect(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103445:21: */ +func Xsqlite3PExprAddSelect(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104555:21: */ if pExpr != 0 { *(*uintptr)(unsafe.Pointer(pExpr + 32)) = pSelect *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_xIsSelect | EP_Subquery) @@ -128456,11 +129107,11 @@ func Xsqlite3PExprAddSelect(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSelec // returning 1 row for each element of the list. For example, the // expression list: // -// ( (1,2), (3,4) (5,6) ) +// ( (1,2), (3,4) (5,6) ) // // is translated to the equivalent of: // -// VALUES(1,2), (3,4), (5,6) +// VALUES(1,2), (3,4), (5,6) // // Each of the vector values in pEList must contain exactly nElem terms. // If a list element that is not a vector or does not contain nElem terms, @@ -128468,7 +129119,7 @@ func Xsqlite3PExprAddSelect(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSelec // // This is used as part of processing IN(...) expressions with a list // of vectors on the RHS. e.g. "... IN ((1,2), (3,4), (5,6))". -func Xsqlite3ExprListToValues(tls *libc.TLS, pParse uintptr, nElem int32, pEList uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103475:23: */ +func Xsqlite3ExprListToValues(tls *libc.TLS, pParse uintptr, nElem int32, pEList uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104585:23: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -128486,10 +129137,10 @@ func Xsqlite3ExprListToValues(tls *libc.TLS, pParse uintptr, nElem int32, pEList nExprElem = 1 } if nExprElem != nElem { - Xsqlite3ErrorMsg(tls, pParse, ts+8723, + Xsqlite3ErrorMsg(tls, pParse, ts+8762, libc.VaList(bp, nExprElem, func() uintptr { if nExprElem > 1 { - return ts + 8767 /* "s" */ + return ts + 8806 /* "s" */ } return ts + 1524 /* "" */ }(), nElem)) @@ -128520,17 +129171,17 @@ func Xsqlite3ExprListToValues(tls *libc.TLS, pParse uintptr, nElem int32, pEList // If one side or the other of the AND is known to be false, then instead // of returning an AND expression, just return a constant expression with // a value of false. -func Xsqlite3ExprAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103522:21: */ +func Xsqlite3ExprAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104632:21: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb if pLeft == uintptr(0) { return pRight } else if pRight == uintptr(0) { return pLeft - } else if ((*Expr)(unsafe.Pointer(pLeft)).Fflags&U32(EP_FromJoin|EP_IsFalse) == U32(EP_IsFalse) || (*Expr)(unsafe.Pointer(pRight)).Fflags&U32(EP_FromJoin|EP_IsFalse) == U32(EP_IsFalse)) && + } else if ((*Expr)(unsafe.Pointer(pLeft)).Fflags&U32(EP_OuterON|EP_IsFalse) == U32(EP_IsFalse) || (*Expr)(unsafe.Pointer(pRight)).Fflags&U32(EP_OuterON|EP_IsFalse) == U32(EP_IsFalse)) && !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) { Xsqlite3ExprDeferredDelete(tls, pParse, pLeft) Xsqlite3ExprDeferredDelete(tls, pParse, pRight) - return Xsqlite3Expr(tls, db, TK_INTEGER, ts+8769) + return Xsqlite3Expr(tls, db, TK_INTEGER, ts+8808) } else { return Xsqlite3PExpr(tls, pParse, TK_AND, pLeft, pRight) } @@ -128539,7 +129190,7 @@ func Xsqlite3ExprAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintpt // Construct a new expression node for a function with multiple // arguments. -func Xsqlite3ExprFunction(tls *libc.TLS, pParse uintptr, pList uintptr, pToken uintptr, eDistinct int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103543:21: */ +func Xsqlite3ExprFunction(tls *libc.TLS, pParse uintptr, pList uintptr, pToken uintptr, eDistinct int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104653:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -128551,11 +129202,12 @@ func Xsqlite3ExprFunction(tls *libc.TLS, pParse uintptr, pList uintptr, pToken u Xsqlite3ExprListDelete(tls, db, pList) // Avoid memory leak when malloc fails return uintptr(0) } + *(*int32)(unsafe.Pointer(pNew + 52)) = int32((int64((*Token)(unsafe.Pointer(pToken)).Fz) - int64((*Parse)(unsafe.Pointer(pParse)).FzTail)) / 1) if pList != 0 && (*ExprList)(unsafe.Pointer(pList)).FnExpr > *(*int32)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb + 136 + 6*4)) && !(int32((*Parse)(unsafe.Pointer(pParse)).Fnested) != 0) { - Xsqlite3ErrorMsg(tls, pParse, ts+8771, libc.VaList(bp, pToken)) + Xsqlite3ErrorMsg(tls, pParse, ts+8810, libc.VaList(bp, pToken)) } *(*uintptr)(unsafe.Pointer(pNew + 32)) = pList *(*U32)(unsafe.Pointer(pNew + 4)) |= U32(EP_HasFunc) @@ -128570,13 +129222,13 @@ func Xsqlite3ExprFunction(tls *libc.TLS, pParse uintptr, pList uintptr, pToken u // Check to see if a function is usable according to current access // rules: // -// SQLITE_FUNC_DIRECT - Only usable from top-level SQL +// SQLITE_FUNC_DIRECT - Only usable from top-level SQL // -// SQLITE_FUNC_UNSAFE - Usable if TRUSTED_SCHEMA or from -// top-level SQL +// SQLITE_FUNC_UNSAFE - Usable if TRUSTED_SCHEMA or from +// top-level SQL // // If the function is not usable, create an error. -func Xsqlite3ExprFunctionUsable(tls *libc.TLS, pParse uintptr, pExpr uintptr, pDef uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103583:21: */ +func Xsqlite3ExprFunctionUsable(tls *libc.TLS, pParse uintptr, pExpr uintptr, pDef uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104694:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -128589,7 +129241,7 @@ func Xsqlite3ExprFunctionUsable(tls *libc.TLS, pParse uintptr, pExpr uintptr, pD // is tagged with SQLITE_FUNC_UNSAFE) and // SQLITE_DBCONFIG_TRUSTED_SCHEMA is off (meaning // that the schema is possibly tainted). - Xsqlite3ErrorMsg(tls, pParse, ts+8805, libc.VaList(bp, pExpr)) + Xsqlite3ErrorMsg(tls, pParse, ts+8844, libc.VaList(bp, pExpr)) } } } @@ -128608,7 +129260,7 @@ func Xsqlite3ExprFunctionUsable(tls *libc.TLS, pParse uintptr, pExpr uintptr, pD // as the previous instance of the same wildcard. Or if this is the first // instance of the wildcard, the next sequential variable number is // assigned. -func Xsqlite3ExprAssignVarNumber(tls *libc.TLS, pParse uintptr, pExpr uintptr, n U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103622:21: */ +func Xsqlite3ExprAssignVarNumber(tls *libc.TLS, pParse uintptr, pExpr uintptr, n U32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104733:21: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -128642,7 +129294,7 @@ func Xsqlite3ExprAssignVarNumber(tls *libc.TLS, pParse uintptr, pExpr uintptr, n } if bOk == 0 || *(*I64)(unsafe.Pointer(bp + 8)) < int64(1) || *(*I64)(unsafe.Pointer(bp + 8)) > I64(*(*int32)(unsafe.Pointer(db + 136 + 9*4))) { - Xsqlite3ErrorMsg(tls, pParse, ts+8825, + Xsqlite3ErrorMsg(tls, pParse, ts+8864, libc.VaList(bp, *(*int32)(unsafe.Pointer(db + 136 + 9*4)))) Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr) return @@ -128670,13 +129322,13 @@ func Xsqlite3ExprAssignVarNumber(tls *libc.TLS, pParse uintptr, pExpr uintptr, n } (*Expr)(unsafe.Pointer(pExpr)).FiColumn = x if int32(x) > *(*int32)(unsafe.Pointer(db + 136 + 9*4)) { - Xsqlite3ErrorMsg(tls, pParse, ts+8868, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+8907, 0) Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr) } } // Recursively delete an expression tree. -func sqlite3ExprDeleteNN(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103692:29: */ +func sqlite3ExprDeleteNN(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104803:29: */ if !((*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_TokenOnly|EP_Leaf) != U32(0)) { // The Expr.x union is never used at the same time as Expr.pRight @@ -128706,12 +129358,23 @@ func sqlite3ExprDeleteNN(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sql } } -func Xsqlite3ExprDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103733:21: */ +func Xsqlite3ExprDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104844:21: */ if p != 0 { sqlite3ExprDeleteNN(tls, db, p) } } +// Clear both elements of an OnOrUsing object +func Xsqlite3ClearOnOrUsing(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104851:21: */ + if p == uintptr(0) { + // Nothing to clear + } else if (*OnOrUsing)(unsafe.Pointer(p)).FpOn != 0 { + sqlite3ExprDeleteNN(tls, db, (*OnOrUsing)(unsafe.Pointer(p)).FpOn) + } else if (*OnOrUsing)(unsafe.Pointer(p)).FpUsing != 0 { + Xsqlite3IdListDelete(tls, db, (*OnOrUsing)(unsafe.Pointer(p)).FpUsing) + } +} + // Arrange to cause pExpr to be deleted when the pParse is deleted. // This is similar to sqlite3ExprDelete() except that the delete is // deferred untilthe pParse is deleted. @@ -128720,13 +129383,13 @@ func Xsqlite3ExprDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqli // // The deferred delete is (currently) implemented by adding the // pExpr to the pParse->pConstExpr list with a register number of 0. -func Xsqlite3ExprDeferredDelete(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103748:21: */ +func Xsqlite3ExprDeferredDelete(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104871:21: */ (*Parse)(unsafe.Pointer(pParse)).FpConstExpr = Xsqlite3ExprListAppend(tls, pParse, (*Parse)(unsafe.Pointer(pParse)).FpConstExpr, pExpr) } // Invoke sqlite3RenameExprUnmap() and sqlite3ExprDelete() on the // expression. -func Xsqlite3ExprUnmapAndDelete(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103756:21: */ +func Xsqlite3ExprUnmapAndDelete(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104879:21: */ if p != 0 { if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME { Xsqlite3RenameExprUnmap(tls, pParse, p) @@ -128738,7 +129401,7 @@ func Xsqlite3ExprUnmapAndDelete(tls *libc.TLS, pParse uintptr, p uintptr) { /* t // Return the number of bytes allocated for the expression structure // passed as the first argument. This is always one of EXPR_FULLSIZE, // EXPR_REDUCEDSIZE or EXPR_TOKENONLYSIZE. -func exprStructSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103770:12: */ +func exprStructSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104893:12: */ if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_TokenOnly) != U32(0) { return int32(uintptr(0) + 16) } @@ -128752,20 +129415,18 @@ func exprStructSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgam // to store a copy of an expression or expression tree. They differ in // how much of the tree is measured. // -// dupedExprStructSize() Size of only the Expr structure -// dupedExprNodeSize() Size of Expr + space for token -// dupedExprSize() Expr + token + subtree components -// -// +// dupedExprStructSize() Size of only the Expr structure +// dupedExprNodeSize() Size of Expr + space for token +// dupedExprSize() Expr + token + subtree components // // The dupedExprStructSize() function returns two values OR-ed together: // (1) the space required for a copy of the Expr structure only and // (2) the EP_xxx flags that indicate what the structure size should be. // The return values is always one of: // -// EXPR_FULLSIZE -// EXPR_REDUCEDSIZE | EP_Reduced -// EXPR_TOKENONLYSIZE | EP_TokenOnly +// EXPR_FULLSIZE +// EXPR_REDUCEDSIZE | EP_Reduced +// EXPR_TOKENONLYSIZE | EP_TokenOnly // // The size of the structure can be found by masking the return value // of this routine with 0xfff. The flags can be found by masking the @@ -128780,7 +129441,7 @@ func exprStructSize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgam // to reduce a pristine expression tree from the parser. The implementation // of dupedExprStructSize() contain multiple assert() statements that attempt // to enforce this constraint. -func dupedExprStructSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103810:12: */ +func dupedExprStructSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104933:12: */ var nSize int32 // Only one flag value allowed @@ -128802,7 +129463,7 @@ func dupedExprStructSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testd // This function returns the space in bytes required to store the copy // of the Expr structure and a copy of the Expr.u.zToken string (if that // string is defined.) -func dupedExprNodeSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103841:12: */ +func dupedExprNodeSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104964:12: */ var nByte int32 = dupedExprStructSize(tls, p, flags) & 0xfff if !((*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_IntValue) != U32(0)) && *(*uintptr)(unsafe.Pointer(p + 8)) != 0 { nByte = int32(Size_t(nByte) + (libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(p + 8)))&uint64(0x3fffffff) + uint64(1))) @@ -128821,7 +129482,7 @@ func dupedExprNodeSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testdat // space to duplicate all Expr nodes in the tree formed by Expr.pLeft // and Expr.pRight variables (but not for any structures pointed to or // descended from the Expr.x.pList or Expr.x.pSelect variables). -func dupedExprSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103862:12: */ +func dupedExprSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:104985:12: */ var nByte int32 = 0 if p != 0 { nByte = dupedExprNodeSize(tls, p, flags) @@ -128838,7 +129499,7 @@ func dupedExprSize(tls *libc.TLS, p uintptr, flags int32) int32 { /* testdata/sq // (if applicable), and the copies of the p->pLeft and p->pRight expressions, // if any. Before returning, *pzBuffer is set to the first byte past the // portion of the buffer copied into by this function. -func exprDup(tls *libc.TLS, db uintptr, p uintptr, dupFlags int32, pzBuffer uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103881:13: */ +func exprDup(tls *libc.TLS, db uintptr, p uintptr, dupFlags int32, pzBuffer uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105004:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -128948,7 +129609,7 @@ func exprDup(tls *libc.TLS, db uintptr, p uintptr, dupFlags int32, pzBuffer uint // Create and return a deep copy of the object passed as the second // argument. If an OOM condition is encountered, NULL is returned // and the db->mallocFailed flag set. -func Xsqlite3WithDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:103991:21: */ +func Xsqlite3WithDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105114:21: */ var pRet uintptr = uintptr(0) if p != 0 { var nByte Sqlite3_int64 = Sqlite3_int64(uint64(unsafe.Sizeof(With{})) + uint64(unsafe.Sizeof(Cte{}))*uint64((*With)(unsafe.Pointer(p)).FnCte-1)) @@ -128960,6 +129621,7 @@ func Xsqlite3WithDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata (*Cte)(unsafe.Pointer(pRet + 16 + uintptr(i)*48)).FpSelect = Xsqlite3SelectDup(tls, db, (*Cte)(unsafe.Pointer(p+16+uintptr(i)*48)).FpSelect, 0) (*Cte)(unsafe.Pointer(pRet + 16 + uintptr(i)*48)).FpCols = Xsqlite3ExprListDup(tls, db, (*Cte)(unsafe.Pointer(p+16+uintptr(i)*48)).FpCols, 0) (*Cte)(unsafe.Pointer(pRet + 16 + uintptr(i)*48)).FzName = Xsqlite3DbStrDup(tls, db, (*Cte)(unsafe.Pointer(p+16+uintptr(i)*48)).FzName) + (*Cte)(unsafe.Pointer(pRet + 16 + uintptr(i)*48)).FeM10d = (*Cte)(unsafe.Pointer(p + 16 + uintptr(i)*48)).FeM10d } } } @@ -128970,7 +129632,7 @@ func Xsqlite3WithDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata // gatherSelectWindowsCallback() are used to scan all the expressions // an a newly duplicated SELECT statement and gather all of the Window // objects found there, assembling them onto the linked list at Select->pWin. -func gatherSelectWindowsCallback(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104019:12: */ +func gatherSelectWindowsCallback(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105143:12: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_FUNCTION && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_WinFunc) != U32(0) { var pSelect uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) var pWin uintptr = *(*uintptr)(unsafe.Pointer(pExpr + 64)) @@ -128980,14 +129642,14 @@ func gatherSelectWindowsCallback(tls *libc.TLS, pWalker uintptr, pExpr uintptr) return WRC_Continue } -func gatherSelectWindowsSelectCallback(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104030:12: */ +func gatherSelectWindowsSelectCallback(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105154:12: */ if p == *(*uintptr)(unsafe.Pointer(pWalker + 40)) { return WRC_Continue } return WRC_Prune } -func gatherSelectWindows(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104033:13: */ +func gatherSelectWindows(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105157:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -129020,7 +129682,7 @@ func gatherSelectWindows(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama // If the EXPRDUP_REDUCE flag is set, then the structure returned is a // truncated version of the usual Expr structure that will be stored as // part of the in-memory representation of the database schema. -func Xsqlite3ExprDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104062:21: */ +func Xsqlite3ExprDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105186:21: */ if p != 0 { return exprDup(tls, db, p, flags, uintptr(0)) @@ -129028,7 +129690,7 @@ func Xsqlite3ExprDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr return uintptr(0) } -func Xsqlite3ExprListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104066:25: */ +func Xsqlite3ExprListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105190:25: */ var pNew uintptr var pItem uintptr var pOldItem uintptr @@ -129073,11 +129735,8 @@ __1: } } (*ExprList_item)(unsafe.Pointer(pItem)).FzEName = Xsqlite3DbStrDup(tls, db, (*ExprList_item)(unsafe.Pointer(pOldItem)).FzEName) - (*ExprList_item)(unsafe.Pointer(pItem)).FsortFlags = (*ExprList_item)(unsafe.Pointer(pOldItem)).FsortFlags - libc.SetBitFieldPtr8Uint32(pItem+20, uint32(int32(*(*uint8)(unsafe.Pointer(pOldItem + 20))&0x3>>0)), 0, 0x3) - libc.SetBitFieldPtr8Uint32(pItem+20, uint32(0), 2, 0x4) - libc.SetBitFieldPtr8Uint32(pItem+20, uint32(int32(*(*uint8)(unsafe.Pointer(pOldItem + 20))&0x20>>5)), 5, 0x20) - libc.SetBitFieldPtr8Uint32(pItem+20, uint32(int32(*(*uint8)(unsafe.Pointer(pOldItem + 20))&0x10>>4)), 4, 0x10) + (*ExprList_item)(unsafe.Pointer(pItem)).Ffg = (*ExprList_item)(unsafe.Pointer(pOldItem)).Ffg + libc.SetBitFieldPtr16Uint32(pItem+16+4, uint32(0), 2, 0x4) (*ExprList_item)(unsafe.Pointer(pItem)).Fu = (*ExprList_item)(unsafe.Pointer(pOldItem)).Fu } @@ -129097,7 +129756,7 @@ __3: // the build, then none of the following routines, except for // sqlite3SelectDup(), can be called. sqlite3SelectDup() is sometimes // called with a NULL argument. -func Xsqlite3SrcListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104121:24: */ +func Xsqlite3SrcListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105242:24: */ var pNew uintptr var i int32 var nByte int32 @@ -129117,8 +129776,8 @@ func Xsqlite3SrcListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintp } (*SrcList)(unsafe.Pointer(pNew)).FnSrc = int32(libc.AssignPtrUint32(pNew+4, U32((*SrcList)(unsafe.Pointer(p)).FnSrc))) for i = 0; i < (*SrcList)(unsafe.Pointer(p)).FnSrc; i++ { - var pNewItem uintptr = pNew + 8 + uintptr(i)*112 - var pOldItem uintptr = p + 8 + uintptr(i)*112 + var pNewItem uintptr = pNew + 8 + uintptr(i)*104 + var pOldItem uintptr = p + 8 + uintptr(i)*104 var pTab uintptr (*SrcItem)(unsafe.Pointer(pNewItem)).FpSchema = (*SrcItem)(unsafe.Pointer(pOldItem)).FpSchema (*SrcItem)(unsafe.Pointer(pNewItem)).FzDatabase = Xsqlite3DbStrDup(tls, db, (*SrcItem)(unsafe.Pointer(pOldItem)).FzDatabase) @@ -129129,57 +129788,55 @@ func Xsqlite3SrcListDup(tls *libc.TLS, db uintptr, p uintptr, flags int32) uintp (*SrcItem)(unsafe.Pointer(pNewItem)).FaddrFillSub = (*SrcItem)(unsafe.Pointer(pOldItem)).FaddrFillSub (*SrcItem)(unsafe.Pointer(pNewItem)).FregReturn = (*SrcItem)(unsafe.Pointer(pOldItem)).FregReturn if uint32(int32(*(*uint16)(unsafe.Pointer(pNewItem + 60 + 4))&0x2>>1)) != 0 { - *(*uintptr)(unsafe.Pointer(pNewItem + 96)) = Xsqlite3DbStrDup(tls, db, *(*uintptr)(unsafe.Pointer(pOldItem + 96))) + *(*uintptr)(unsafe.Pointer(pNewItem + 88)) = Xsqlite3DbStrDup(tls, db, *(*uintptr)(unsafe.Pointer(pOldItem + 88))) } (*SrcItem)(unsafe.Pointer(pNewItem)).Fu2 = (*SrcItem)(unsafe.Pointer(pOldItem)).Fu2 - if uint32(int32(*(*uint16)(unsafe.Pointer(pNewItem + 60 + 4))&0x80>>7)) != 0 { - (*CteUse)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pNewItem + 104)))).FnUse++ + if uint32(int32(*(*uint16)(unsafe.Pointer(pNewItem + 60 + 4))&0x100>>8)) != 0 { + (*CteUse)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pNewItem + 96)))).FnUse++ } if uint32(int32(*(*uint16)(unsafe.Pointer(pNewItem + 60 + 4))&0x4>>2)) != 0 { - *(*uintptr)(unsafe.Pointer(pNewItem + 96)) = Xsqlite3ExprListDup(tls, db, *(*uintptr)(unsafe.Pointer(pOldItem + 96)), flags) + *(*uintptr)(unsafe.Pointer(pNewItem + 88)) = Xsqlite3ExprListDup(tls, db, *(*uintptr)(unsafe.Pointer(pOldItem + 88)), flags) } pTab = libc.AssignPtrUintptr(pNewItem+32, (*SrcItem)(unsafe.Pointer(pOldItem)).FpTab) if pTab != 0 { (*Table)(unsafe.Pointer(pTab)).FnTabRef++ } (*SrcItem)(unsafe.Pointer(pNewItem)).FpSelect = Xsqlite3SelectDup(tls, db, (*SrcItem)(unsafe.Pointer(pOldItem)).FpSelect, flags) - (*SrcItem)(unsafe.Pointer(pNewItem)).FpOn = Xsqlite3ExprDup(tls, db, (*SrcItem)(unsafe.Pointer(pOldItem)).FpOn, flags) - (*SrcItem)(unsafe.Pointer(pNewItem)).FpUsing = Xsqlite3IdListDup(tls, db, (*SrcItem)(unsafe.Pointer(pOldItem)).FpUsing) + if uint32(int32(*(*uint16)(unsafe.Pointer(pOldItem + 60 + 4))&0x400>>10)) != 0 { + + *(*uintptr)(unsafe.Pointer(pNewItem + 72)) = Xsqlite3IdListDup(tls, db, *(*uintptr)(unsafe.Pointer(pOldItem + 72))) + } else { + *(*uintptr)(unsafe.Pointer(pNewItem + 72)) = Xsqlite3ExprDup(tls, db, *(*uintptr)(unsafe.Pointer(pOldItem + 72)), flags) + } (*SrcItem)(unsafe.Pointer(pNewItem)).FcolUsed = (*SrcItem)(unsafe.Pointer(pOldItem)).FcolUsed } return pNew } -func Xsqlite3IdListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104165:23: */ +func Xsqlite3IdListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105290:23: */ var pNew uintptr var i int32 if p == uintptr(0) { return uintptr(0) } - pNew = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(IdList{}))) + + pNew = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(IdList{}))+uint64((*IdList)(unsafe.Pointer(p)).FnId-1)*uint64(unsafe.Sizeof(IdList_item{}))) if pNew == uintptr(0) { return uintptr(0) } (*IdList)(unsafe.Pointer(pNew)).FnId = (*IdList)(unsafe.Pointer(p)).FnId - (*IdList)(unsafe.Pointer(pNew)).Fa = Xsqlite3DbMallocRawNN(tls, db, uint64((*IdList)(unsafe.Pointer(p)).FnId)*uint64(unsafe.Sizeof(IdList_item{}))) - if (*IdList)(unsafe.Pointer(pNew)).Fa == uintptr(0) { - Xsqlite3DbFreeNN(tls, db, pNew) - return uintptr(0) - } - // Note that because the size of the allocation for p->a[] is not - // necessarily a power of two, sqlite3IdListAppend() may not be called - // on the duplicate created by this function. + (*IdList)(unsafe.Pointer(pNew)).FeU4 = (*IdList)(unsafe.Pointer(p)).FeU4 for i = 0; i < (*IdList)(unsafe.Pointer(p)).FnId; i++ { - var pNewItem uintptr = (*IdList)(unsafe.Pointer(pNew)).Fa + uintptr(i)*16 - var pOldItem uintptr = (*IdList)(unsafe.Pointer(p)).Fa + uintptr(i)*16 + var pNewItem uintptr = pNew + 8 + uintptr(i)*16 + var pOldItem uintptr = p + 8 + uintptr(i)*16 (*IdList_item)(unsafe.Pointer(pNewItem)).FzName = Xsqlite3DbStrDup(tls, db, (*IdList_item)(unsafe.Pointer(pOldItem)).FzName) - (*IdList_item)(unsafe.Pointer(pNewItem)).Fidx = (*IdList_item)(unsafe.Pointer(pOldItem)).Fidx + (*IdList_item)(unsafe.Pointer(pNewItem)).Fu4 = (*IdList_item)(unsafe.Pointer(pOldItem)).Fu4 } return pNew } -func Xsqlite3SelectDup(tls *libc.TLS, db uintptr, pDup uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104189:23: */ +func Xsqlite3SelectDup(tls *libc.TLS, db uintptr, pDup uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105308:23: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -129245,9 +129902,9 @@ func Xsqlite3SelectDup(tls *libc.TLS, db uintptr, pDup uintptr, flags int32) uin // If a memory allocation error occurs, the entire list is freed and // NULL is returned. If non-NULL is returned, then it is guaranteed // that the new entry was successfully appended. -var zeroItem = ExprList_item{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104260:35 */ +var zeroItem = ExprList_item{} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105379:35 */ -func Xsqlite3ExprListAppendNew(tls *libc.TLS, db uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104261:41: */ +func Xsqlite3ExprListAppendNew(tls *libc.TLS, db uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105380:41: */ var pItem uintptr var pList uintptr @@ -129264,7 +129921,7 @@ func Xsqlite3ExprListAppendNew(tls *libc.TLS, db uintptr, pExpr uintptr) uintptr return pList } -func Xsqlite3ExprListAppendGrow(tls *libc.TLS, db uintptr, pList uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104280:41: */ +func Xsqlite3ExprListAppendGrow(tls *libc.TLS, db uintptr, pList uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105399:41: */ var pItem uintptr var pNew uintptr *(*int32)(unsafe.Pointer(pList + 4)) *= 2 @@ -129283,7 +129940,7 @@ func Xsqlite3ExprListAppendGrow(tls *libc.TLS, db uintptr, pList uintptr, pExpr return pList } -func Xsqlite3ExprListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104302:25: */ +func Xsqlite3ExprListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105421:25: */ var pItem uintptr if pList == uintptr(0) { return Xsqlite3ExprListAppendNew(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr) @@ -129300,13 +129957,14 @@ func Xsqlite3ExprListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pExpr // pColumns and pExpr form a vector assignment which is part of the SET // clause of an UPDATE statement. Like this: // -// (a,b,c) = (expr1,expr2,expr3) +// (a,b,c) = (expr1,expr2,expr3) +// // Or: (a,b,c) = (SELECT x,y,z FROM ....) // // For each term of the vector assignment, append new entries to the // expression list pList. In the case of a subquery on the RHS, append // TK_SELECT_COLUMN expressions. -func Xsqlite3ExprListAppendVector(tls *libc.TLS, pParse uintptr, pList uintptr, pColumns uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104331:25: */ +func Xsqlite3ExprListAppendVector(tls *libc.TLS, pParse uintptr, pList uintptr, pColumns uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105450:25: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -129344,7 +130002,7 @@ __2: if !(int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_SELECT && (*IdList)(unsafe.Pointer(pColumns)).FnId != libc.AssignInt32(&n, Xsqlite3ExprVectorSize(tls, pExpr))) { goto __3 } - Xsqlite3ErrorMsg(tls, pParse, ts+8891, + Xsqlite3ErrorMsg(tls, pParse, ts+8930, libc.VaList(bp, (*IdList)(unsafe.Pointer(pColumns)).FnId, n)) goto vector_append_error __3: @@ -129368,8 +130026,8 @@ __7: goto __8 } - (*ExprList_item)(unsafe.Pointer(pList + 8 + uintptr((*ExprList)(unsafe.Pointer(pList)).FnExpr-1)*32)).FzEName = (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pColumns)).Fa + uintptr(i)*16)).FzName - (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pColumns)).Fa + uintptr(i)*16)).FzName = uintptr(0) + (*ExprList_item)(unsafe.Pointer(pList + 8 + uintptr((*ExprList)(unsafe.Pointer(pList)).FnExpr-1)*32)).FzEName = (*IdList_item)(unsafe.Pointer(pColumns + 8 + uintptr(i)*16)).FzName + (*IdList_item)(unsafe.Pointer(pColumns + 8 + uintptr(i)*16)).FzName = uintptr(0) __8: ; goto __5 @@ -129403,7 +130061,7 @@ vector_append_error: } // Set the sort order for the last element on the given ExprList. -func Xsqlite3ExprListSetSortOrder(tls *libc.TLS, p uintptr, iSortOrder int32, eNulls int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104393:21: */ +func Xsqlite3ExprListSetSortOrder(tls *libc.TLS, p uintptr, iSortOrder int32, eNulls int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105512:21: */ var pItem uintptr if p == uintptr(0) { return @@ -129414,10 +130072,10 @@ func Xsqlite3ExprListSetSortOrder(tls *libc.TLS, p uintptr, iSortOrder int32, eN if iSortOrder == -1 { iSortOrder = SQLITE_SO_ASC } - (*ExprList_item)(unsafe.Pointer(pItem)).FsortFlags = U8(iSortOrder) + (*ExprList_item)(unsafe.Pointer(pItem)).Ffg.FsortFlags = U8(iSortOrder) if eNulls != -1 { - libc.SetBitFieldPtr8Uint32(pItem+20, uint32(1), 5, 0x20) + libc.SetBitFieldPtr16Uint32(pItem+16+4, uint32(1), 5, 0x20) if iSortOrder != eNulls { *(*U8)(unsafe.Pointer(pItem + 16)) |= U8(KEYINFO_ORDER_BIGNULL) } @@ -129430,7 +130088,7 @@ func Xsqlite3ExprListSetSortOrder(tls *libc.TLS, p uintptr, iSortOrder int32, eN // pList might be NULL following an OOM error. But pName should never be // NULL. If a memory allocation fails, the pParse->db->mallocFailed flag // is set. -func Xsqlite3ExprListSetName(tls *libc.TLS, pParse uintptr, pList uintptr, pName uintptr, dequote int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104431:21: */ +func Xsqlite3ExprListSetName(tls *libc.TLS, pParse uintptr, pList uintptr, pName uintptr, dequote int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105550:21: */ if pList != 0 { var pItem uintptr @@ -129456,7 +130114,7 @@ func Xsqlite3ExprListSetName(tls *libc.TLS, pParse uintptr, pList uintptr, pName // pList might be NULL following an OOM error. But pSpan should never be // NULL. If a memory allocation fails, the pParse->db->mallocFailed flag // is set. -func Xsqlite3ExprListSetSpan(tls *libc.TLS, pParse uintptr, pList uintptr, zStart uintptr, zEnd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104466:21: */ +func Xsqlite3ExprListSetSpan(tls *libc.TLS, pParse uintptr, pList uintptr, zStart uintptr, zEnd uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105585:21: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb if pList != 0 { @@ -129464,26 +130122,26 @@ func Xsqlite3ExprListSetSpan(tls *libc.TLS, pParse uintptr, pList uintptr, zStar if (*ExprList_item)(unsafe.Pointer(pItem)).FzEName == uintptr(0) { (*ExprList_item)(unsafe.Pointer(pItem)).FzEName = Xsqlite3DbSpanDup(tls, db, zStart, zEnd) - libc.SetBitFieldPtr8Uint32(pItem+20, uint32(ENAME_SPAN), 0, 0x3) + libc.SetBitFieldPtr16Uint32(pItem+16+4, uint32(ENAME_SPAN), 0, 0x3) } } } // If the expression list pEList contains more than iLimit elements, // leave an error message in pParse. -func Xsqlite3ExprListCheckLength(tls *libc.TLS, pParse uintptr, pEList uintptr, zObject uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104488:21: */ +func Xsqlite3ExprListCheckLength(tls *libc.TLS, pParse uintptr, pEList uintptr, zObject uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105607:21: */ bp := tls.Alloc(8) defer tls.Free(8) var mx int32 = *(*int32)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb + 136 + 2*4)) if pEList != 0 && (*ExprList)(unsafe.Pointer(pEList)).FnExpr > mx { - Xsqlite3ErrorMsg(tls, pParse, ts+8921, libc.VaList(bp, zObject)) + Xsqlite3ErrorMsg(tls, pParse, ts+8960, libc.VaList(bp, zObject)) } } // Delete an entire expression list. -func exprListDeleteNN(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104504:29: */ +func exprListDeleteNN(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105623:29: */ var i int32 = (*ExprList)(unsafe.Pointer(pList)).FnExpr var pItem uintptr = pList + 8 /* &.a */ @@ -129495,7 +130153,7 @@ func exprListDeleteNN(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sq Xsqlite3DbFreeNN(tls, db, pList) } -func Xsqlite3ExprListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104515:21: */ +func Xsqlite3ExprListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105634:21: */ if pList != 0 { exprListDeleteNN(tls, db, pList) } @@ -129503,7 +130161,7 @@ func Xsqlite3ExprListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* testd // Return the bitwise-OR of all Expr.flags fields in the given // ExprList. -func Xsqlite3ExprListFlags(tls *libc.TLS, pList uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104523:20: */ +func Xsqlite3ExprListFlags(tls *libc.TLS, pList uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105642:20: */ var i int32 var m U32 = U32(0) @@ -129520,7 +130178,7 @@ func Xsqlite3ExprListFlags(tls *libc.TLS, pList uintptr) U32 { /* testdata/sqlit // pWalker->eCode to zero and abort. // // This callback is used by multiple expression walkers. -func Xsqlite3SelectWalkFail(tls *libc.TLS, pWalker uintptr, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104542:20: */ +func Xsqlite3SelectWalkFail(tls *libc.TLS, pWalker uintptr, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105661:20: */ _ = NotUsed (*Walker)(unsafe.Pointer(pWalker)).FeCode = U16(0) return WRC_Abort @@ -129528,15 +130186,15 @@ func Xsqlite3SelectWalkFail(tls *libc.TLS, pWalker uintptr, NotUsed uintptr) int // Check the input string to see if it is "true" or "false" (in any case). // -// If the string is.... Return -// "true" EP_IsTrue -// "false" EP_IsFalse -// anything else 0 -func Xsqlite3IsTrueOrFalse(tls *libc.TLS, zIn uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104556:20: */ - if Xsqlite3StrICmp(tls, zIn, ts+7998) == 0 { +// If the string is.... Return +// "true" EP_IsTrue +// "false" EP_IsFalse +// anything else 0 +func Xsqlite3IsTrueOrFalse(tls *libc.TLS, zIn uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105675:20: */ + if Xsqlite3StrICmp(tls, zIn, ts+8042) == 0 { return U32(EP_IsTrue) } - if Xsqlite3StrICmp(tls, zIn, ts+8003) == 0 { + if Xsqlite3StrICmp(tls, zIn, ts+8047) == 0 { return U32(EP_IsFalse) } return U32(0) @@ -129545,7 +130203,7 @@ func Xsqlite3IsTrueOrFalse(tls *libc.TLS, zIn uintptr) U32 { /* testdata/sqlite- // If the input expression is an ID with the name "true" or "false" // then convert it into an TK_TRUEFALSE term. Return non-zero if // the conversion happened, and zero if the expression is unaltered. -func Xsqlite3ExprIdToTrueFalse(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104568:20: */ +func Xsqlite3ExprIdToTrueFalse(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105687:20: */ var v U32 if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Quoted|EP_IntValue) != U32(0)) && @@ -129559,7 +130217,7 @@ func Xsqlite3ExprIdToTrueFalse(tls *libc.TLS, pExpr uintptr) int32 { /* testdata // The argument must be a TK_TRUEFALSE Expr node. Return 1 if it is TRUE // and 0 if it is FALSE. -func Xsqlite3ExprTruthValue(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104585:20: */ +func Xsqlite3ExprTruthValue(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105704:20: */ pExpr = Xsqlite3ExprSkipCollate(tls, pExpr) return libc.Bool32(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 8)) + 4))) == 0) @@ -129571,23 +130229,23 @@ func Xsqlite3ExprTruthValue(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sq // // Examples: // -// (x<10) AND true => (x<10) -// (x<10) AND false => false -// (x<10) AND (y=22 OR false) => (x<10) AND (y=22) -// (x<10) AND (y=22 OR true) => (x<10) -// (y=22) OR true => true -func Xsqlite3ExprSimplifiedAndOr(tls *libc.TLS, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104607:21: */ +// (x<10) AND true => (x<10) +// (x<10) AND false => false +// (x<10) AND (y=22 OR false) => (x<10) AND (y=22) +// (x<10) AND (y=22 OR true) => (x<10) +// (y=22) OR true => true +func Xsqlite3ExprSimplifiedAndOr(tls *libc.TLS, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105726:21: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_AND || int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_OR { var pRight uintptr = Xsqlite3ExprSimplifiedAndOr(tls, (*Expr)(unsafe.Pointer(pExpr)).FpRight) var pLeft uintptr = Xsqlite3ExprSimplifiedAndOr(tls, (*Expr)(unsafe.Pointer(pExpr)).FpLeft) - if (*Expr)(unsafe.Pointer(pLeft)).Fflags&U32(EP_FromJoin|EP_IsTrue) == U32(EP_IsTrue) || (*Expr)(unsafe.Pointer(pRight)).Fflags&U32(EP_FromJoin|EP_IsFalse) == U32(EP_IsFalse) { + if (*Expr)(unsafe.Pointer(pLeft)).Fflags&U32(EP_OuterON|EP_IsTrue) == U32(EP_IsTrue) || (*Expr)(unsafe.Pointer(pRight)).Fflags&U32(EP_OuterON|EP_IsFalse) == U32(EP_IsFalse) { if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_AND { pExpr = pRight } else { pExpr = pLeft } - } else if (*Expr)(unsafe.Pointer(pRight)).Fflags&U32(EP_FromJoin|EP_IsTrue) == U32(EP_IsTrue) || (*Expr)(unsafe.Pointer(pLeft)).Fflags&U32(EP_FromJoin|EP_IsFalse) == U32(EP_IsFalse) { + } else if (*Expr)(unsafe.Pointer(pRight)).Fflags&U32(EP_OuterON|EP_IsTrue) == U32(EP_IsTrue) || (*Expr)(unsafe.Pointer(pLeft)).Fflags&U32(EP_OuterON|EP_IsFalse) == U32(EP_IsFalse) { if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_AND { pExpr = pLeft } else { @@ -129605,10 +130263,10 @@ func Xsqlite3ExprSimplifiedAndOr(tls *libc.TLS, pExpr uintptr) uintptr { /* test // // These callback routines are used to implement the following: // -// sqlite3ExprIsConstant() pWalker->eCode==1 -// sqlite3ExprIsConstantNotJoin() pWalker->eCode==2 -// sqlite3ExprIsTableConstant() pWalker->eCode==3 -// sqlite3ExprIsConstantOrFunction() pWalker->eCode==4 or 5 +// sqlite3ExprIsConstant() pWalker->eCode==1 +// sqlite3ExprIsConstantNotJoin() pWalker->eCode==2 +// sqlite3ExprIsTableConstant() pWalker->eCode==3 +// sqlite3ExprIsConstantOrFunction() pWalker->eCode==4 or 5 // // In all cases, the callbacks set Walker.eCode=0 and abort if the expression // is found to not be a constant. @@ -129622,12 +130280,12 @@ func Xsqlite3ExprSimplifiedAndOr(tls *libc.TLS, pExpr uintptr) uintptr { /* test // contain a bound parameter because they were generated by older versions // of SQLite to be parsed by newer versions of SQLite without raising a // malformed schema error. -func exprNodeIsConstant(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104648:12: */ +func exprNodeIsConstant(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105767:12: */ // If pWalker->eCode is 2 then any term of the expression that comes from - // the ON or USING clauses of a left join disqualifies the expression + // the ON or USING clauses of an outer join disqualifies the expression // from being considered constant. - if int32((*Walker)(unsafe.Pointer(pWalker)).FeCode) == 2 && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) { + if int32((*Walker)(unsafe.Pointer(pWalker)).FeCode) == 2 && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0) { (*Walker)(unsafe.Pointer(pWalker)).FeCode = U16(0) return WRC_Abort } @@ -129697,7 +130355,7 @@ func exprNodeIsConstant(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { / return int32(0) } -func exprIsConst(tls *libc.TLS, p uintptr, initFlag int32, iCur int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104720:12: */ +func exprIsConst(tls *libc.TLS, p uintptr, initFlag int32, iCur int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105839:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -129721,22 +130379,22 @@ func exprIsConst(tls *libc.TLS, p uintptr, initFlag int32, iCur int32) int32 { / // For the purposes of this function, a double-quoted string (ex: "abc") // is considered a variable but a single-quoted string (ex: 'abc') is // a constant. -func Xsqlite3ExprIsConstant(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104741:20: */ +func Xsqlite3ExprIsConstant(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105860:20: */ return exprIsConst(tls, p, 1, 0) } // Walk an expression tree. Return non-zero if // -// (1) the expression is constant, and -// (2) the expression does originate in the ON or USING clause -// of a LEFT JOIN, and -// (3) the expression does not contain any EP_FixedCol TK_COLUMN -// operands created by the constant propagation optimization. +// (1) the expression is constant, and +// (2) the expression does originate in the ON or USING clause +// of a LEFT JOIN, and +// (3) the expression does not contain any EP_FixedCol TK_COLUMN +// operands created by the constant propagation optimization. // // When this routine returns true, it indicates that the expression // can be added to the pParse->pConstExpr list and evaluated once when // the prepared statement starts up. See sqlite3ExprCodeRunJustOnce(). -func Xsqlite3ExprIsConstantNotJoin(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104758:20: */ +func Xsqlite3ExprIsConstantNotJoin(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105877:20: */ return exprIsConst(tls, p, 2, 0) } @@ -129744,40 +130402,45 @@ func Xsqlite3ExprIsConstantNotJoin(tls *libc.TLS, p uintptr) int32 { /* testdata // for any single row of the table with cursor iCur. In other words, the // expression must not refer to any non-deterministic function nor any // table other than iCur. -func Xsqlite3ExprIsTableConstant(tls *libc.TLS, p uintptr, iCur int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104768:20: */ +func Xsqlite3ExprIsTableConstant(tls *libc.TLS, p uintptr, iCur int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105887:20: */ return exprIsConst(tls, p, 3, iCur) } -// Check pExpr to see if it is an invariant constraint on data source pSrc. -// This is an optimization. False negatives will perhaps cause slower -// queries, but false positives will yield incorrect answers. So when in -// double, return 0. +// Check pExpr to see if it is an invariant constraint on data source pSrc. +// This is an optimization. False negatives will perhaps cause slower +// queries, but false positives will yield incorrect answers. So when in +// doubt, return 0. // -// To be an invariant constraint, the following must be true: +// To be an invariant constraint, the following must be true: // -// (1) pExpr cannot refer to any table other than pSrc->iCursor. +// (1) pExpr cannot refer to any table other than pSrc->iCursor. // -// (2) pExpr cannot use subqueries or non-deterministic functions. +// (2) pExpr cannot use subqueries or non-deterministic functions. // -// (*) ** Not applicable to this branch ** +// (3) pSrc cannot be part of the left operand for a RIGHT JOIN. +// (Is there some way to relax this constraint?) // -// (4) If pSrc is the right operand of a LEFT JOIN, then... -// (4a) pExpr must come from an ON clause.. -// (4b) and specifically the ON clause associated with the LEFT JOIN. +// (4) If pSrc is the right operand of a LEFT JOIN, then... +// (4a) pExpr must come from an ON clause.. +// (4b) and specifically the ON clause associated with the LEFT JOIN. // -// (5) If pSrc is not the right operand of a LEFT JOIN or the left -// operand of a RIGHT JOIN, then pExpr must be from the WHERE -// clause, not an ON clause. -func Xsqlite3ExprIsTableConstraint(tls *libc.TLS, pExpr uintptr, pSrc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104794:20: */ +// ** +// ** (5) If pSrc is not the right operand of a LEFT JOIN or the left +// ** operand of a RIGHT JOIN, then pExpr must be from the WHERE +// ** clause, not an ON clause. +func Xsqlite3ExprIsTableConstraint(tls *libc.TLS, pExpr uintptr, pSrc uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105914:20: */ + if int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&JT_LTORJ != 0 { + return 0 // rule (3) + } if int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&JT_LEFT != 0 { - if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0)) { + if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0)) { return 0 } // rule (4a) if *(*int32)(unsafe.Pointer(pExpr + 52)) != (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor { return 0 } // rule (4b) } else { - if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) { + if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0) { return 0 } // rule (5) } @@ -129785,7 +130448,7 @@ func Xsqlite3ExprIsTableConstraint(tls *libc.TLS, pExpr uintptr, pSrc uintptr) i } // sqlite3WalkExpr() callback used by sqlite3ExprIsConstantOrGroupBy(). -func exprNodeIsConstantOrGroupBy(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104808:12: */ +func exprNodeIsConstantOrGroupBy(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105931:12: */ var pGroupBy uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) var i int32 @@ -129827,7 +130490,7 @@ func exprNodeIsConstantOrGroupBy(tls *libc.TLS, pWalker uintptr, pExpr uintptr) // alternative collating sequences are uncommon, and this is only an // optimization, so we take the easy way out and simply require the // GROUP BY to use the BINARY collating sequence. -func Xsqlite3ExprIsConstantOrGroupBy(tls *libc.TLS, pParse uintptr, p uintptr, pGroupBy uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104852:20: */ +func Xsqlite3ExprIsConstantOrGroupBy(tls *libc.TLS, pParse uintptr, p uintptr, pGroupBy uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105975:20: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -129863,7 +130526,7 @@ func Xsqlite3ExprIsConstantOrGroupBy(tls *libc.TLS, pParse uintptr, p uintptr, p // For the purposes of this function, a double-quoted string (ex: "abc") // is considered a variable but a single-quoted string (ex: 'abc') is // a constant. -func Xsqlite3ExprIsConstantOrFunction(tls *libc.TLS, p uintptr, isInit U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104884:20: */ +func Xsqlite3ExprIsConstantOrFunction(tls *libc.TLS, p uintptr, isInit U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106007:20: */ return exprIsConst(tls, p, 4+int32(isInit), 0) } @@ -129872,7 +130535,7 @@ func Xsqlite3ExprIsConstantOrFunction(tls *libc.TLS, p uintptr, isInit U8) int32 // to fit in a 32-bit integer, return 1 and put the value of the integer // in *pValue. If the expression is not an integer or if it is too big // to fit in a signed 32-bit integer, return 0 and leave *pValue unchanged. -func Xsqlite3ExprIsInteger(tls *libc.TLS, p uintptr, pValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104913:20: */ +func Xsqlite3ExprIsInteger(tls *libc.TLS, p uintptr, pValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106036:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -129924,7 +130587,7 @@ func Xsqlite3ExprIsInteger(tls *libc.TLS, p uintptr, pValue uintptr) int32 { /* // hand, a false negative (returning FALSE when the result could be NULL) // will likely result in an incorrect answer. So when in doubt, return // TRUE. -func Xsqlite3ExprCanBeNull(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104959:20: */ +func Xsqlite3ExprCanBeNull(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106082:20: */ var op U8 for int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_UPLUS || int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_UMINUS { @@ -129963,7 +130626,7 @@ func Xsqlite3ExprCanBeNull(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite- // can be omitted. When in doubt return FALSE. A false negative // is harmless. A false positive, however, can result in the wrong // answer. -func Xsqlite3ExprNeedsNoAffinityChange(tls *libc.TLS, p uintptr, aff int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:104996:20: */ +func Xsqlite3ExprNeedsNoAffinityChange(tls *libc.TLS, p uintptr, aff int8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106119:20: */ var op U8 var unaryMinus int32 = 0 if int32(aff) == SQLITE_AFF_BLOB { @@ -130016,14 +130679,14 @@ func Xsqlite3ExprNeedsNoAffinityChange(tls *libc.TLS, p uintptr, aff int8) int32 } // Return TRUE if the given string is a row-id column name. -func Xsqlite3IsRowid(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105032:20: */ - if Xsqlite3StrICmp(tls, z, ts+8944) == 0 { +func Xsqlite3IsRowid(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106155:20: */ + if Xsqlite3StrICmp(tls, z, ts+8983) == 0 { return 1 } - if Xsqlite3StrICmp(tls, z, ts+8952) == 0 { + if Xsqlite3StrICmp(tls, z, ts+8991) == 0 { return 1 } - if Xsqlite3StrICmp(tls, z, ts+8958) == 0 { + if Xsqlite3StrICmp(tls, z, ts+8997) == 0 { return 1 } return 0 @@ -130034,7 +130697,7 @@ func Xsqlite3IsRowid(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalga // a pointer to the SELECT statement. If pX is not a SELECT statement, // or if the SELECT statement needs to be manifested into a transient // table, then return NULL. -func isCandidateForInOpt(tls *libc.TLS, pX uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105047:15: */ +func isCandidateForInOpt(tls *libc.TLS, pX uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106170:15: */ var p uintptr var pSrc uintptr var pEList uintptr @@ -130092,7 +130755,7 @@ func isCandidateForInOpt(tls *libc.TLS, pX uintptr) uintptr { /* testdata/sqlite // it contains any NULL entries. Cause the register at regHasNull to be set // to a non-NULL value if iCur contains no NULLs. Cause register regHasNull // to be set to NULL if iCur contains one or more NULL values. -func sqlite3SetHasNullFlag(tls *libc.TLS, v uintptr, iCur int32, regHasNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105092:13: */ +func sqlite3SetHasNullFlag(tls *libc.TLS, v uintptr, iCur int32, regHasNull int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106215:13: */ var addr1 int32 Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, regHasNull) addr1 = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, iCur) @@ -130104,7 +130767,7 @@ func sqlite3SetHasNullFlag(tls *libc.TLS, v uintptr, iCur int32, regHasNull int3 // The argument is an IN operator with a list (not a subquery) on the // right-hand side. Return TRUE if that list is constant. -func sqlite3InRhsIsConstant(tls *libc.TLS, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105109:12: */ +func sqlite3InRhsIsConstant(tls *libc.TLS, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106232:12: */ var pLHS uintptr var res int32 @@ -130124,27 +130787,30 @@ func sqlite3InRhsIsConstant(tls *libc.TLS, pIn uintptr) int32 { /* testdata/sqli // all members of the RHS set, skipping duplicates. // // A cursor is opened on the b-tree object that is the RHS of the IN operator -// and pX->iTable is set to the index of that cursor. +// and the *piTab parameter is set to the index of that cursor. // // The returned value of this function indicates the b-tree type, as follows: // -// IN_INDEX_ROWID - The cursor was opened on a database table. -// IN_INDEX_INDEX_ASC - The cursor was opened on an ascending index. -// IN_INDEX_INDEX_DESC - The cursor was opened on a descending index. -// IN_INDEX_EPH - The cursor was opened on a specially created and -// populated epheremal table. -// IN_INDEX_NOOP - No cursor was allocated. The IN operator must be -// implemented as a sequence of comparisons. +// IN_INDEX_ROWID - The cursor was opened on a database table. +// IN_INDEX_INDEX_ASC - The cursor was opened on an ascending index. +// IN_INDEX_INDEX_DESC - The cursor was opened on a descending index. +// IN_INDEX_EPH - The cursor was opened on a specially created and +// populated epheremal table. +// IN_INDEX_NOOP - No cursor was allocated. The IN operator must be +// implemented as a sequence of comparisons. // // An existing b-tree might be used if the RHS expression pX is a simple // subquery such as: // -// SELECT <column1>, <column2>... FROM <table> +// SELECT <column1>, <column2>... FROM <table> // // If the RHS of the IN operator is a list or a more complex subquery, then // an ephemeral table might need to be generated from the RHS and then // pX->iTable made to point to the ephemeral table instead of an -// existing table. +// existing table. In this case, the creation and initialization of the +// ephmeral table might be put inside of a subroutine, the EP_Subrtn flag +// will be set on pX and the pX->y.sub fields will be set to show where +// the subroutine is coded. // // The inFlags parameter must contain, at a minimum, one of the bits // IN_INDEX_MEMBERSHIP or IN_INDEX_LOOP but not both. If inFlags contains @@ -130189,21 +130855,22 @@ func sqlite3InRhsIsConstant(tls *libc.TLS, pIn uintptr) int32 { /* testdata/sqli // offset of the index column that matches the i'th column returned by the // SELECT. For example, if the expression and selected index are: // -// (?,?,?) IN (SELECT a, b, c FROM t1) -// CREATE INDEX i1 ON t1(b, c, a); +// (?,?,?) IN (SELECT a, b, c FROM t1) +// CREATE INDEX i1 ON t1(b, c, a); // // then aiMap[] is populated with {2, 0, 1}. -func Xsqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags U32, prRhsHasNull uintptr, aiMap uintptr, piTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105202:20: */ +func Xsqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags U32, prRhsHasNull uintptr, aiMap uintptr, piTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106328:20: */ bp := tls.Alloc(16) defer tls.Free(16) - var p uintptr // SELECT to the right of IN operator - var eType int32 = 0 // Type of RHS table. IN_INDEX_* - var iTab int32 = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) // Cursor of the RHS table - var mustBeUnique int32 // True if RHS must be unique - var v uintptr = Xsqlite3GetVdbe(tls, pParse) // Virtual machine being coded + var p uintptr // SELECT to the right of IN operator + var eType int32 = 0 // Type of RHS table. IN_INDEX_* + var iTab int32 // Cursor of the RHS table + var mustBeUnique int32 // True if RHS must be unique + var v uintptr = Xsqlite3GetVdbe(tls, pParse) // Virtual machine being coded mustBeUnique = libc.Bool32(inFlags&U32(IN_INDEX_LOOP) != U32(0)) + iTab = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) // If the RHS of this IN(...) operator is a SELECT, and if it matters // whether or not the SELECT result contains NULL values, check whether @@ -130251,7 +130918,7 @@ func Xsqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags U32, Xsqlite3OpenTable(tls, pParse, iTab, iDb, pTab, OP_OpenRead) eType = IN_INDEX_ROWID - Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+8962, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+9001, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) Xsqlite3VdbeJumpHere(tls, v, iAddr) } else { var pIdx uintptr // Iterator variable @@ -130342,7 +131009,7 @@ func Xsqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags U32, if colUsed == Bitmask(uint64(1))<<nExpr-uint64(1) { // If we reach this point, that means the index pIdx is usable var iAddr int32 = Xsqlite3VdbeAddOp0(tls, v, OP_Once) - Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+9009, libc.VaList(bp+8, (*Index)(unsafe.Pointer(pIdx)).FzName)) + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+9048, libc.VaList(bp+8, (*Index)(unsafe.Pointer(pIdx)).FzName)) Xsqlite3VdbeAddOp3(tls, v, OP_OpenRead, iTab, int32((*Index)(unsafe.Pointer(pIdx)).Ftnum), iDb) Xsqlite3VdbeSetP4KeyInfo(tls, pParse, pIdx) @@ -130371,6 +131038,8 @@ func Xsqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags U32, inFlags&U32(IN_INDEX_NOOP_OK) != 0 && (*Expr)(unsafe.Pointer(pX)).Fflags&U32(EP_xIsSelect) == U32(0) && (!(sqlite3InRhsIsConstant(tls, pX) != 0) || (*ExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pX + 32)))).FnExpr <= 2) { + (*Parse)(unsafe.Pointer(pParse)).FnTab-- // Back out the allocation of the unused cursor + iTab = -1 // Cursor is not allocated eType = IN_INDEX_NOOP } @@ -130411,7 +131080,7 @@ func Xsqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags U32, // // It is the responsibility of the caller to ensure that the returned // string is eventually freed using sqlite3DbFree(). -func exprINAffinity(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105425:13: */ +func exprINAffinity(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106554:13: */ var pLeft uintptr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft var nVal int32 = Xsqlite3ExprVectorSize(tls, pLeft) var pSelect uintptr @@ -130442,13 +131111,13 @@ func exprINAffinity(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* t // Load the Parse object passed as the first argument with an error // message of the form: // -// "sub-select returns N columns - expected M" -func Xsqlite3SubselectError(tls *libc.TLS, pParse uintptr, nActual int32, nExpect int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105457:21: */ +// "sub-select returns N columns - expected M" +func Xsqlite3SubselectError(tls *libc.TLS, pParse uintptr, nActual int32, nExpect int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106586:21: */ bp := tls.Alloc(16) defer tls.Free(16) if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 { - var zFmt uintptr = ts + 9040 /* "sub-select retur..." */ + var zFmt uintptr = ts + 9079 /* "sub-select retur..." */ Xsqlite3ErrorMsg(tls, pParse, zFmt, libc.VaList(bp, nActual, nExpect)) } } @@ -130457,16 +131126,16 @@ func Xsqlite3SubselectError(tls *libc.TLS, pParse uintptr, nActual int32, nExpec // it is not permitted. If pExpr is a sub-select vector, this routine // loads the Parse object with a message of the form: // -// "sub-select returns N columns - expected 1" +// "sub-select returns N columns - expected 1" // // Or, if it is a regular scalar vector: // -// "row value misused" -func Xsqlite3VectorErrorMsg(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105476:21: */ +// "row value misused" +func Xsqlite3VectorErrorMsg(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106605:21: */ if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_xIsSelect) != U32(0) { Xsqlite3SubselectError(tls, pParse, (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FpEList)).FnExpr, 1) } else { - Xsqlite3ErrorMsg(tls, pParse, ts+7776, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+7811, 0) } } @@ -130474,8 +131143,8 @@ func Xsqlite3VectorErrorMsg(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* t // in the RHS of an IN operator. The IN operator can be in either of two // forms: // -// x IN (4,5,11) -- IN operator with list on right-hand side -// x IN (SELECT a FROM b) -- IN operator with subquery on the right +// x IN (4,5,11) -- IN operator with list on right-hand side +// x IN (SELECT a FROM b) -- IN operator with subquery on the right // // The pExpr parameter is the IN operator. The cursor number for the // constructed ephermeral table is returned. The first time the ephemeral @@ -130490,7 +131159,7 @@ func Xsqlite3VectorErrorMsg(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* t // if either column has NUMERIC or INTEGER affinity. If neither // 'x' nor the SELECT... statement are columns, then numeric affinity // is used. -func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105510:21: */ +func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106639:21: */ bp := tls.Alloc(65) defer tls.Free(65) @@ -130519,11 +131188,12 @@ func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3 if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Subrtn) != U32(0) { addrOnce = Xsqlite3VdbeAddOp0(tls, v, OP_Once) if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_xIsSelect) != U32(0) { - Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+9084, libc.VaList(bp, (*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FselId)) + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+9123, libc.VaList(bp, (*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FselId)) } Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, *(*int32)(unsafe.Pointer(pExpr + 64 + 4 /* &.regReturn */)), *(*int32)(unsafe.Pointer(pExpr + 64))) + Xsqlite3VdbeAddOp2(tls, v, OP_OpenDup, iTab, (*Expr)(unsafe.Pointer(pExpr)).FiTable) Xsqlite3VdbeJumpHere(tls, v, addrOnce) return @@ -130534,7 +131204,7 @@ func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3 *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_Subrtn) *(*int32)(unsafe.Pointer(pExpr + 64 + 4 /* &.regReturn */)) = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) - *(*int32)(unsafe.Pointer(pExpr + 64)) = Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, *(*int32)(unsafe.Pointer(pExpr + 64 + 4))) + 1 + *(*int32)(unsafe.Pointer(pExpr + 64)) = Xsqlite3VdbeAddOp2(tls, v, OP_BeginSubrtn, 0, *(*int32)(unsafe.Pointer(pExpr + 64 + 4))) + 1 addrOnce = Xsqlite3VdbeAddOp0(tls, v, OP_Once) } @@ -130557,11 +131227,11 @@ func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3 var pSelect uintptr = *(*uintptr)(unsafe.Pointer(pExpr + 32)) var pEList uintptr = (*Select)(unsafe.Pointer(pSelect)).FpEList - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+9107, libc.VaList(bp+8, func() uintptr { + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+9146, libc.VaList(bp+8, func() uintptr { if addrOnce != 0 { return ts + 1524 /* "" */ } - return ts + 9126 /* "CORRELATED " */ + return ts + 9165 /* "CORRELATED " */ }(), (*Select)(unsafe.Pointer(pSelect)).FselId)) // If the LHS and RHS of the IN operator do not match, that // error will have been caught long before we reach this point. @@ -130638,6 +131308,7 @@ func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3 // this code only executes once. Because for a non-constant // expression we need to rerun this code each time. if addrOnce != 0 && !(Xsqlite3ExprIsConstant(tls, pE2) != 0) { + Xsqlite3VdbeChangeToNoop(tls, v, addrOnce-1) Xsqlite3VdbeChangeToNoop(tls, v, addrOnce) *(*U32)(unsafe.Pointer(pExpr + 4)) &= libc.Uint32FromInt32(libc.CplInt32(EP_Subrtn)) addrOnce = 0 @@ -130661,14 +131332,15 @@ func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3 Xsqlite3ReleaseTempReg(tls, pParse, r2) } if pKeyInfo != 0 { - Xsqlite3VdbeChangeP4(tls, v, addr, pKeyInfo, -9) + Xsqlite3VdbeChangeP4(tls, v, addr, pKeyInfo, -8) } if addrOnce != 0 { Xsqlite3VdbeJumpHere(tls, v, addrOnce) // Subroutine return - Xsqlite3VdbeAddOp1(tls, v, OP_Return, *(*int32)(unsafe.Pointer(pExpr + 64 + 4 /* &.regReturn */))) - Xsqlite3VdbeChangeP1(tls, v, *(*int32)(unsafe.Pointer(pExpr + 64))-1, Xsqlite3VdbeCurrentAddr(tls, v)-1) + Xsqlite3VdbeAddOp3(tls, v, OP_Return, *(*int32)(unsafe.Pointer(pExpr + 64 + 4 /* &.regReturn */)), + *(*int32)(unsafe.Pointer(pExpr + 64)), 1) + Xsqlite3ClearTempRegCache(tls, pParse) } } @@ -130676,8 +131348,8 @@ func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3 // Generate code for scalar subqueries used as a subquery expression // or EXISTS operator: // -// (SELECT a FROM b) -- subquery -// EXISTS (SELECT a FROM b) -- EXISTS subquery +// (SELECT a FROM b) -- subquery +// EXISTS (SELECT a FROM b) -- EXISTS subquery // // The pExpr parameter is the SELECT or EXISTS operator to be coded. // @@ -130685,7 +131357,7 @@ func Xsqlite3CodeRhsOfIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, iTab int3 // the result is stored in a contiguous array of registers and the // return value is the register of the left-most result column. // Return 0 if an error occurs. -func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105705:20: */ +func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106838:20: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -130708,7 +131380,7 @@ func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { // If this routine has already been coded, then invoke it as a // subroutine. if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Subrtn) != U32(0) { - Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+9138, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId)) + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+9177, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId)) Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, *(*int32)(unsafe.Pointer(pExpr + 64 + 4 /* &.regReturn */)), *(*int32)(unsafe.Pointer(pExpr + 64))) @@ -130719,7 +131391,7 @@ func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_Subrtn) *(*int32)(unsafe.Pointer(pExpr + 64 + 4 /* &.regReturn */)) = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) - *(*int32)(unsafe.Pointer(pExpr + 64)) = Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, *(*int32)(unsafe.Pointer(pExpr + 64 + 4))) + 1 + *(*int32)(unsafe.Pointer(pExpr + 64)) = Xsqlite3VdbeAddOp2(tls, v, OP_BeginSubrtn, 0, *(*int32)(unsafe.Pointer(pExpr + 64 + 4))) + 1 // The evaluation of the EXISTS/SELECT must be repeated every time it // is encountered if any of the following is true: @@ -130743,11 +131415,11 @@ func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { // // In both cases, the query is augmented with "LIMIT 1". Any // preexisting limit is discarded in place of the new LIMIT 1. - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+9156, libc.VaList(bp+8, func() uintptr { + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+9195, libc.VaList(bp+8, func() uintptr { if addrOnce != 0 { return ts + 1524 /* "" */ } - return ts + 9126 /* "CORRELATED " */ + return ts + 9165 /* "CORRELATED " */ }(), (*Select)(unsafe.Pointer(pSel)).FselId)) if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_SELECT { nReg = (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(pSel)).FpEList)).FnExpr @@ -130771,7 +131443,7 @@ func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { // The subquery already has a limit. If the pre-existing limit is X // then make the new limit X<>0 so that the new limit is either 1 or 0 var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb - pLimit = Xsqlite3Expr(tls, db, TK_INTEGER, ts+8769) + pLimit = Xsqlite3Expr(tls, db, TK_INTEGER, ts+8808) if pLimit != 0 { (*Expr)(unsafe.Pointer(pLimit)).FaffExpr = int8(SQLITE_AFF_NUMERIC) pLimit = Xsqlite3PExpr(tls, pParse, TK_NE, @@ -130781,7 +131453,7 @@ func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { (*Expr)(unsafe.Pointer((*Select)(unsafe.Pointer(pSel)).FpLimit)).FpLeft = pLimit } else { // If there is no pre-existing limit add a limit of 1 - pLimit = Xsqlite3Expr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_INTEGER, ts+9177) + pLimit = Xsqlite3Expr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_INTEGER, ts+9216) (*Select)(unsafe.Pointer(pSel)).FpLimit = Xsqlite3PExpr(tls, pParse, TK_LIMIT, pLimit, uintptr(0)) } (*Select)(unsafe.Pointer(pSel)).FiLimit = 0 @@ -130798,8 +131470,9 @@ func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { // Subroutine return - Xsqlite3VdbeAddOp1(tls, v, OP_Return, *(*int32)(unsafe.Pointer(pExpr + 64 + 4 /* &.regReturn */))) - Xsqlite3VdbeChangeP1(tls, v, *(*int32)(unsafe.Pointer(pExpr + 64))-1, Xsqlite3VdbeCurrentAddr(tls, v)-1) + Xsqlite3VdbeAddOp3(tls, v, OP_Return, *(*int32)(unsafe.Pointer(pExpr + 64 + 4 /* &.regReturn */)), + *(*int32)(unsafe.Pointer(pExpr + 64)), 1) + Xsqlite3ClearTempRegCache(tls, pParse) return rReg } @@ -130808,7 +131481,7 @@ func Xsqlite3CodeSubselect(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { // sub-select on the RHS of the IN() operator has the same number of // columns as the vector on the LHS. Or, if the RHS of the IN() is not // a sub-query, that the LHS is a vector of size 1. -func Xsqlite3ExprCheckIN(tls *libc.TLS, pParse uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105827:20: */ +func Xsqlite3ExprCheckIN(tls *libc.TLS, pParse uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106961:20: */ var nVector int32 = Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer(pIn)).FpLeft) if (*Expr)(unsafe.Pointer(pIn)).Fflags&U32(EP_xIsSelect) != U32(0) && !(int32((*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed) != 0) { if nVector != (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pIn + 32)))).FpEList)).FnExpr { @@ -130824,8 +131497,8 @@ func Xsqlite3ExprCheckIN(tls *libc.TLS, pParse uintptr, pIn uintptr) int32 { /* // Generate code for an IN expression. // -// x IN (SELECT ...) -// x IN (value, value, ...) +// x IN (SELECT ...) +// x IN (value, value, ...) // // The left-hand side (LHS) is a scalar or vector expression. The // right-hand side (RHS) is an array of zero or more scalar values, or a @@ -130845,7 +131518,7 @@ func Xsqlite3ExprCheckIN(tls *libc.TLS, pParse uintptr, pIn uintptr) int32 { /* // // See the separate in-operator.md documentation file in the canonical // SQLite source tree for additional information. -func sqlite3ExprCodeIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, destIfFalse int32, destIfNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:105868:13: */ +func sqlite3ExprCodeIN(tls *libc.TLS, pParse uintptr, pExpr uintptr, destIfFalse int32, destIfNull int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107002:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -131226,7 +131899,7 @@ sqlite3ExprCodeIN_oom_error: // The z[] string will probably not be zero-terminated. But the // z[n] character is guaranteed to be something that does not look // like the continuation of the number. -func codeReal(tls *libc.TLS, v uintptr, z uintptr, negateFlag int32, iMem int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106126:13: */ +func codeReal(tls *libc.TLS, v uintptr, z uintptr, negateFlag int32, iMem int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107260:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -131238,7 +131911,7 @@ func codeReal(tls *libc.TLS, v uintptr, z uintptr, negateFlag int32, iMem int32) if negateFlag != 0 { *(*float64)(unsafe.Pointer(bp /* value */)) = -*(*float64)(unsafe.Pointer(bp /* value */)) } - Xsqlite3VdbeAddOp4Dup8(tls, v, OP_Real, 0, iMem, 0, bp, -13) + Xsqlite3VdbeAddOp4Dup8(tls, v, OP_Real, 0, iMem, 0, bp, -12) } } @@ -131246,7 +131919,7 @@ func codeReal(tls *libc.TLS, v uintptr, z uintptr, negateFlag int32, iMem int32) // text z[0..n-1] into register iMem. // // Expr.u.zToken is always UTF8 and zero-terminated. -func codeInteger(tls *libc.TLS, pParse uintptr, pExpr uintptr, negFlag int32, iMem int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106144:13: */ +func codeInteger(tls *libc.TLS, pParse uintptr, pExpr uintptr, negFlag int32, iMem int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107278:13: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -131266,11 +131939,11 @@ func codeInteger(tls *libc.TLS, pParse uintptr, pExpr uintptr, negFlag int32, iM c = Xsqlite3DecOrHexToI64(tls, z, bp+16) if c == 3 && !(negFlag != 0) || c == 2 || negFlag != 0 && *(*I64)(unsafe.Pointer(bp + 16)) == int64(-1)-(int64(0xffffffff)|I64(int64(0x7fffffff))<<32) { - if Xsqlite3_strnicmp(tls, z, ts+9179, 2) == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+9182, + if Xsqlite3_strnicmp(tls, z, ts+9218, 2) == 0 { + Xsqlite3ErrorMsg(tls, pParse, ts+9221, libc.VaList(bp, func() uintptr { if negFlag != 0 { - return ts + 6235 /* "-" */ + return ts + 6270 /* "-" */ } return ts + 1524 /* "" */ }(), pExpr)) @@ -131285,14 +131958,14 @@ func codeInteger(tls *libc.TLS, pParse uintptr, pExpr uintptr, negFlag int32, iM *(*I64)(unsafe.Pointer(bp + 16 /* value */)) = -*(*I64)(unsafe.Pointer(bp + 16 /* value */)) } } - Xsqlite3VdbeAddOp4Dup8(tls, v, OP_Int64, 0, iMem, 0, bp+16, -14) + Xsqlite3VdbeAddOp4Dup8(tls, v, OP_Int64, 0, iMem, 0, bp+16, -13) } } } // Generate code that will load into register regOut a value that is // appropriate for the iIdxCol-th column of index pIdx. -func Xsqlite3ExprCodeLoadIndexColumn(tls *libc.TLS, pParse uintptr, pIdx uintptr, iTabCur int32, iIdxCol int32, regOut int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106182:21: */ +func Xsqlite3ExprCodeLoadIndexColumn(tls *libc.TLS, pParse uintptr, pIdx uintptr, iTabCur int32, iIdxCol int32, regOut int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107316:21: */ var iTabCol I16 = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iIdxCol)*2)) if int32(iTabCol) == -2 { @@ -131307,7 +131980,7 @@ func Xsqlite3ExprCodeLoadIndexColumn(tls *libc.TLS, pParse uintptr, pIdx uintptr // Generate code that will compute the value of generated column pCol // and store the result in register regOut -func Xsqlite3ExprCodeGeneratedColumn(tls *libc.TLS, pParse uintptr, pTab uintptr, pCol uintptr, regOut int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106207:21: */ +func Xsqlite3ExprCodeGeneratedColumn(tls *libc.TLS, pParse uintptr, pTab uintptr, pCol uintptr, regOut int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107341:21: */ var iAddr int32 var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe @@ -131326,7 +131999,7 @@ func Xsqlite3ExprCodeGeneratedColumn(tls *libc.TLS, pParse uintptr, pTab uintptr } // Generate code to extract the value of the iCol-th column of a table. -func Xsqlite3ExprCodeGetColumnOfTable(tls *libc.TLS, v uintptr, pTab uintptr, iTabCur int32, iCol int32, regOut int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106233:21: */ +func Xsqlite3ExprCodeGetColumnOfTable(tls *libc.TLS, v uintptr, pTab uintptr, iTabCur int32, iCol int32, regOut int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107367:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -131338,6 +132011,7 @@ func Xsqlite3ExprCodeGetColumnOfTable(tls *libc.TLS, v uintptr, pTab uintptr, iT } if iCol < 0 || iCol == int32((*Table)(unsafe.Pointer(pTab)).FiPKey) { Xsqlite3VdbeAddOp2(tls, v, OP_Rowid, iTabCur, regOut) + } else { var op int32 var x int32 @@ -131347,7 +132021,7 @@ func Xsqlite3ExprCodeGetColumnOfTable(tls *libc.TLS, v uintptr, pTab uintptr, iT } else if int32((*Column)(unsafe.Pointer(libc.AssignUintptr(&pCol, (*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(iCol)*24))).FcolFlags)&COLFLAG_VIRTUAL != 0 { var pParse uintptr = Xsqlite3VdbeParser(tls, v) if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_BUSY != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+9209, + Xsqlite3ErrorMsg(tls, pParse, ts+9248, libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName)) } else { var savedSelfTab int32 = (*Parse)(unsafe.Pointer(pParse)).FiSelfTab @@ -131377,7 +132051,7 @@ func Xsqlite3ExprCodeGetColumnOfTable(tls *libc.TLS, v uintptr, pTab uintptr, iT // // There must be an open cursor to pTab in iTable when this routine // is called. If iColumn<0 then code is generated that extracts the rowid. -func Xsqlite3ExprCodeGetColumn(tls *libc.TLS, pParse uintptr, pTab uintptr, iColumn int32, iTable int32, iReg int32, p5 U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106291:20: */ +func Xsqlite3ExprCodeGetColumn(tls *libc.TLS, pParse uintptr, pTab uintptr, iColumn int32, iTable int32, iReg int32, p5 U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107426:20: */ Xsqlite3ExprCodeGetColumnOfTable(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, pTab, iTable, iColumn, iReg) if p5 != 0 { @@ -131391,14 +132065,14 @@ func Xsqlite3ExprCodeGetColumn(tls *libc.TLS, pParse uintptr, pTab uintptr, iCol // Generate code to move content from registers iFrom...iFrom+nReg-1 // over to iTo..iTo+nReg-1. -func Xsqlite3ExprCodeMove(tls *libc.TLS, pParse uintptr, iFrom int32, iTo int32, nReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106312:21: */ +func Xsqlite3ExprCodeMove(tls *libc.TLS, pParse uintptr, iFrom int32, iTo int32, nReg int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107447:21: */ Xsqlite3VdbeAddOp3(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_Move, iFrom, iTo, nReg) } // Convert a scalar expression node to a TK_REGISTER referencing // register iReg. The caller must ensure that iReg already contains // the correct value for the expression. -func exprToRegister(tls *libc.TLS, pExpr uintptr, iReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106321:13: */ +func exprToRegister(tls *libc.TLS, pExpr uintptr, iReg int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107456:13: */ var p uintptr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr) if p == uintptr(0) { return @@ -131417,7 +132091,7 @@ func exprToRegister(tls *libc.TLS, pExpr uintptr, iReg int32) { /* testdata/sqli // that register number into *piFreeable. If the returned result register // is not a temporary or if the expression is a vector set *piFreeable // to 0. -func exprCodeVector(tls *libc.TLS, pParse uintptr, p uintptr, piFreeable uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106340:12: */ +func exprCodeVector(tls *libc.TLS, pParse uintptr, p uintptr, piFreeable uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107475:12: */ var iResult int32 var nResult int32 = Xsqlite3ExprVectorSize(tls, p) if nResult == 1 { @@ -131441,7 +132115,7 @@ func exprCodeVector(tls *libc.TLS, pParse uintptr, p uintptr, piFreeable uintptr // If the last opcode is a OP_Copy, then set the do-not-merge flag (p5) // so that a subsequent copy will not be merged into this one. -func setDoNotMergeFlagOnCopy(tls *libc.TLS, v uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106370:13: */ +func setDoNotMergeFlagOnCopy(tls *libc.TLS, v uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107505:13: */ if int32((*VdbeOp)(unsafe.Pointer(Xsqlite3VdbeGetOp(tls, v, -1))).Fopcode) == OP_Copy { Xsqlite3VdbeChangeP5(tls, v, uint16(1)) // Tag trailing OP_Copy as not mergable } @@ -131449,7 +132123,7 @@ func setDoNotMergeFlagOnCopy(tls *libc.TLS, v uintptr) { /* testdata/sqlite-amal // Generate code to implement special SQL functions that are implemented // in-line rather than by using the usual callbacks. -func exprCodeInlineFunction(tls *libc.TLS, pParse uintptr, pFarg uintptr, iFuncId int32, target int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106380:12: */ +func exprCodeInlineFunction(tls *libc.TLS, pParse uintptr, pFarg uintptr, iFuncId int32, target int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107515:12: */ bp := tls.Alloc(112) defer tls.Free(112) @@ -131488,7 +132162,17 @@ func exprCodeInlineFunction(tls *libc.TLS, pParse uintptr, pFarg uintptr, iFuncI return Xsqlite3ExprCodeTarget(tls, pParse, bp, target) } + case INLINEFUNC_sqlite_offset: + { + var pArg uintptr = (*ExprList_item)(unsafe.Pointer(pFarg + 8)).FpExpr + if int32((*Expr)(unsafe.Pointer(pArg)).Fop) == TK_COLUMN && (*Expr)(unsafe.Pointer(pArg)).FiTable >= 0 { + Xsqlite3VdbeAddOp3(tls, v, OP_Offset, (*Expr)(unsafe.Pointer(pArg)).FiTable, int32((*Expr)(unsafe.Pointer(pArg)).FiColumn), target) + } else { + Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, target) + } + break + } default: { // The UNLIKELY() function is a no-op. The result is the value @@ -131547,14 +132231,14 @@ func exprCodeInlineFunction(tls *libc.TLS, pParse uintptr, pFarg uintptr, iFuncI // The AFFINITY() function evaluates to a string that describes // the type affinity of the argument. This is used for testing of // the SQLite type logic. - *(*[5]uintptr)(unsafe.Pointer(bp + 72 /* azAff */)) = [5]uintptr{ts + 9239, ts + 9244, ts + 9249, ts + 7494, ts + 7489} + *(*[5]uintptr)(unsafe.Pointer(bp + 72 /* azAff */)) = [5]uintptr{ts + 9278, ts + 9283, ts + 9288, ts + 7529, ts + 7524} var aff int8 aff = Xsqlite3ExprAffinity(tls, (*ExprList_item)(unsafe.Pointer(pFarg+8)).FpExpr) Xsqlite3VdbeLoadString(tls, v, target, func() uintptr { if int32(aff) <= SQLITE_AFF_NONE { - return ts + 9257 /* "none" */ + return ts + 9296 /* "none" */ } return *(*uintptr)(unsafe.Pointer(bp + 72 /* &azAff[0] */ + uintptr(int32(aff)-SQLITE_AFF_BLOB)*8)) }()) @@ -131574,7 +132258,7 @@ func exprCodeInlineFunction(tls *libc.TLS, pParse uintptr, pFarg uintptr, iFuncI // register if it is convenient to do so. The calling function // must check the return code and move the results to the desired // register. -func Xsqlite3ExprCodeTarget(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106496:20: */ +func Xsqlite3ExprCodeTarget(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107641:20: */ bp := tls.Alloc(192) defer tls.Free(192) @@ -131621,7 +132305,6 @@ func Xsqlite3ExprCodeTarget(tls *libc.TLS, pParse uintptr, pExpr uintptr, target var addr int32 var pInfo uintptr var exprOp U8 - var pArg uintptr var pFarg uintptr // List of function arguments var nFarg int32 // Number of function arguments var pDef uintptr // The function definition object @@ -131633,6 +132316,7 @@ func Xsqlite3ExprCodeTarget(tls *libc.TLS, pParse uintptr, pExpr uintptr, target var pColl uintptr var nCol int32 var n1 int32 + var pLeft2 uintptr var destIfFalse int32 var destIfNull int32 // If the opcode is TK_TRIGGER, then the expression is a reference @@ -131793,9 +132477,9 @@ __2: // Z is stored in pExpr->pList->a[1].pExpr. case TK_BETWEEN: goto __47 - case TK_SPAN: - goto __48 case TK_COLLATE: + goto __48 + case TK_SPAN: goto __49 case TK_UPLUS: goto __50 @@ -131929,7 +132613,7 @@ __69: if !(int32((*Column)(unsafe.Pointer(pCol1)).FcolFlags)&COLFLAG_BUSY != 0) { goto __72 } - Xsqlite3ErrorMsg(tls, pParse, ts+9209, + Xsqlite3ErrorMsg(tls, pParse, ts+9248, libc.VaList(bp, (*Column)(unsafe.Pointer(pCol1)).FzCnName)) return 0 __72: @@ -132013,7 +132697,7 @@ __11: n = Xsqlite3Strlen30(tls, z) - 1 zBlob = Xsqlite3HexToBlob(tls, Xsqlite3VdbeDb(tls, v), z, n) - Xsqlite3VdbeAddOp4(tls, v, OP_Blob, n/2, target, 0, zBlob, -7) + Xsqlite3VdbeAddOp4(tls, v, OP_Blob, n/2, target, 0, zBlob, -6) return target __12: @@ -132183,7 +132867,7 @@ __41: goto __87 } - Xsqlite3ErrorMsg(tls, pParse, ts+9262, libc.VaList(bp+8, pExpr)) + Xsqlite3ErrorMsg(tls, pParse, ts+9301, libc.VaList(bp+8, pExpr)) goto __88 __87: return (*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pInfo)).FaFunc + uintptr((*Expr)(unsafe.Pointer(pExpr)).FiAgg)*32)).FiMem @@ -132225,7 +132909,7 @@ __90: if !(pDef == uintptr(0) || (*FuncDef)(unsafe.Pointer(pDef)).FxFinalize != uintptr(0)) { goto __91 } - Xsqlite3ErrorMsg(tls, pParse, ts+9289, libc.VaList(bp+16, pExpr)) + Xsqlite3ErrorMsg(tls, pParse, ts+9328, libc.VaList(bp+16, pExpr)) goto __3 __91: ; @@ -132348,39 +133032,21 @@ __110: Xsqlite3VdbeAddOp4(tls, v, OP_CollSeq, 0, 0, 0, pColl, -2) __109: ; - if !((*FuncDef)(unsafe.Pointer(pDef)).FfuncFlags&U32(SQLITE_FUNC_OFFSET) != U32(0) && pFarg != uintptr(0)) { - goto __111 - } - pArg = (*ExprList_item)(unsafe.Pointer(pFarg + 8)).FpExpr - if !(int32((*Expr)(unsafe.Pointer(pArg)).Fop) == TK_COLUMN) { - goto __113 - } - Xsqlite3VdbeAddOp3(tls, v, OP_Offset, (*Expr)(unsafe.Pointer(pArg)).FiTable, int32((*Expr)(unsafe.Pointer(pArg)).FiColumn), target) - goto __114 -__113: - Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, target) -__114: - ; - goto __112 -__111: - Xsqlite3VdbeAddFunctionCall(tls, pParse, int32(constMask), r1, target, nFarg, pDef, int32((*Expr)(unsafe.Pointer(pExpr)).Fop2)) -__112: - ; if !(nFarg != 0) { - goto __115 + goto __111 } if !(constMask == U32(0)) { - goto __116 + goto __112 } Xsqlite3ReleaseTempRange(tls, pParse, r1, nFarg) - goto __117 -__116: + goto __113 +__112: ; -__117: +__113: ; -__115: +__111: ; return target @@ -132389,43 +133055,45 @@ __44: ; if !((*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed != 0) { - goto __118 + goto __114 } return 0 - goto __119 -__118: + goto __115 +__114: if !(op == TK_SELECT && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_xIsSelect) != U32(0) && libc.AssignInt32(&nCol, (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 32)))).FpEList)).FnExpr) != 1) { - goto __120 + goto __116 } Xsqlite3SubselectError(tls, pParse, nCol, 1) - goto __121 -__120: + goto __117 +__116: return Xsqlite3CodeSubselect(tls, pParse, pExpr) -__121: +__117: ; -__119: +__115: ; goto __3 __45: - if !((*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(pExpr)).FpLeft)).FiTable == 0) { - goto __122 + pLeft2 = (*Expr)(unsafe.Pointer(pExpr)).FpLeft + if !((*Expr)(unsafe.Pointer(pLeft2)).FiTable == 0 || int32((*Parse)(unsafe.Pointer(pParse)).FwithinRJSubrtn) > int32((*Expr)(unsafe.Pointer(pLeft2)).Fop2)) { + goto __118 } - (*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(pExpr)).FpLeft)).FiTable = Xsqlite3CodeSubselect(tls, pParse, (*Expr)(unsafe.Pointer(pExpr)).FpLeft) -__122: + (*Expr)(unsafe.Pointer(pLeft2)).FiTable = Xsqlite3CodeSubselect(tls, pParse, pLeft2) + (*Expr)(unsafe.Pointer(pLeft2)).Fop2 = (*Parse)(unsafe.Pointer(pParse)).FwithinRJSubrtn +__118: ; - n1 = Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer(pExpr)).FpLeft) + n1 = Xsqlite3ExprVectorSize(tls, pLeft2) if !((*Expr)(unsafe.Pointer(pExpr)).FiTable != n1) { - goto __123 + goto __119 } - Xsqlite3ErrorMsg(tls, pParse, ts+8891, + Xsqlite3ErrorMsg(tls, pParse, ts+8930, libc.VaList(bp+24, (*Expr)(unsafe.Pointer(pExpr)).FiTable, n1)) -__123: +__119: ; - return (*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(pExpr)).FpLeft)).FiTable + int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) + return (*Expr)(unsafe.Pointer(pLeft2)).FiTable + int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) __46: destIfFalse = Xsqlite3VdbeMakeLabel(tls, pParse) @@ -132452,6 +133120,28 @@ __47: return target __48: + if !(!((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Collate) != U32(0)) && + (*Expr)(unsafe.Pointer(pExpr)).FpLeft != 0 && + int32((*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(pExpr)).FpLeft)).Fop) == TK_FUNCTION) { + goto __120 + } + inReg = Xsqlite3ExprCodeTarget(tls, pParse, (*Expr)(unsafe.Pointer(pExpr)).FpLeft, target) + if !(inReg != target) { + goto __122 + } + Xsqlite3VdbeAddOp2(tls, v, OP_SCopy, inReg, target) + inReg = target +__122: + ; + Xsqlite3VdbeAddOp1(tls, v, OP_ClrSubtype, inReg) + return inReg + goto __121 +__120: + pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft + goto expr_code_doover // 2018-04-28: Prevent deep recursion. +__121: + ; + __49: __50: pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft @@ -132472,15 +133162,15 @@ __51: // EVIDENCE-OF: R-60985-57662 SQLite will convert the value back to // floating point when extracting it from the record. if !(iCol1 >= 0 && int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab2)).FaCol+uintptr(iCol1)*24)).Faffinity) == SQLITE_AFF_REAL) { - goto __124 + goto __123 } Xsqlite3VdbeAddOp1(tls, v, OP_RealAffinity, target) -__124: +__123: ; goto __3 __52: - Xsqlite3ErrorMsg(tls, pParse, ts+7776, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+7811, 0) goto __3 // TK_IF_NULL_ROW Expr nodes are inserted ahead of expressions @@ -132531,15 +133221,15 @@ __54: // The X expression nExpr = (*ExprList)(unsafe.Pointer(pEList)).FnExpr endLabel = Xsqlite3VdbeMakeLabel(tls, pParse) if !(libc.AssignUintptr(&pX, (*Expr)(unsafe.Pointer(pExpr)).FpLeft) != uintptr(0)) { - goto __125 + goto __124 } pDel = Xsqlite3ExprDup(tls, db1, pX, 0) if !((*Sqlite3)(unsafe.Pointer(db1)).FmallocFailed != 0) { - goto __126 + goto __125 } Xsqlite3ExprDelete(tls, db1, pDel) goto __3 -__126: +__125: ; exprToRegister(tls, pDel, exprCodeVector(tls, pParse, pDel, bp+40)) @@ -132553,22 +133243,22 @@ __126: // So make sure that the regFree1 register is not reused for other // purposes and possibly overwritten. *(*int32)(unsafe.Pointer(bp + 40 /* regFree1 */)) = 0 -__125: +__124: ; i1 = 0 -__127: +__126: if !(i1 < nExpr-1) { - goto __129 + goto __128 } if !(pX != 0) { - goto __130 + goto __129 } (*Expr)(unsafe.Pointer(bp + 120 /* &opCompare */)).FpRight = (*ExprList_item)(unsafe.Pointer(aListelem + uintptr(i1)*32)).FpExpr - goto __131 -__130: + goto __130 +__129: pTest = (*ExprList_item)(unsafe.Pointer(aListelem + uintptr(i1)*32)).FpExpr -__131: +__130: ; nextCase = Xsqlite3VdbeMakeLabel(tls, pParse) @@ -132577,21 +133267,21 @@ __131: Xsqlite3ExprCode(tls, pParse, (*ExprList_item)(unsafe.Pointer(aListelem+uintptr(i1+1)*32)).FpExpr, target) Xsqlite3VdbeGoto(tls, v, endLabel) Xsqlite3VdbeResolveLabel(tls, v, nextCase) + goto __127 +__127: + i1 = i1 + 2 + goto __126 goto __128 __128: - i1 = i1 + 2 - goto __127 - goto __129 -__129: ; if !(nExpr&1 != 0) { - goto __132 + goto __131 } Xsqlite3ExprCode(tls, pParse, (*ExprList_item)(unsafe.Pointer(pEList+8+uintptr(nExpr-1)*32)).FpExpr, target) - goto __133 -__132: + goto __132 +__131: Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, target) -__133: +__132: ; Xsqlite3ExprDelete(tls, db1, pDel) setDoNotMergeFlagOnCopy(tls, v) @@ -132601,28 +133291,28 @@ __133: __55: ; if !(!(int32((*Parse)(unsafe.Pointer(pParse)).FpTriggerTab) != 0) && !(int32((*Parse)(unsafe.Pointer(pParse)).Fnested) != 0)) { - goto __134 + goto __133 } Xsqlite3ErrorMsg(tls, pParse, - ts+9313, 0) + ts+9352, 0) return 0 -__134: +__133: ; if !(int32((*Expr)(unsafe.Pointer(pExpr)).FaffExpr) == OE_Abort) { - goto __135 + goto __134 } Xsqlite3MayAbort(tls, pParse) -__135: +__134: ; if !(int32((*Expr)(unsafe.Pointer(pExpr)).FaffExpr) == OE_Ignore) { - goto __136 + goto __135 } Xsqlite3VdbeAddOp4(tls, v, OP_Halt, SQLITE_OK, OE_Ignore, 0, *(*uintptr)(unsafe.Pointer(pExpr + 8)), 0) - goto __137 -__136: + goto __136 +__135: Xsqlite3HaltConstraint(tls, pParse, func() int32 { if (*Parse)(unsafe.Pointer(pParse)).FpTriggerTab != 0 { @@ -132631,7 +133321,7 @@ __136: return SQLITE_ERROR }(), int32((*Expr)(unsafe.Pointer(pExpr)).FaffExpr), *(*uintptr)(unsafe.Pointer(pExpr + 8)), int8(0), uint8(0)) -__137: +__136: ; goto __3 @@ -132643,7 +133333,7 @@ __3: return inReg } -var zAff = *(*[8]int8)(unsafe.Pointer(ts + 9363)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106563:29 */ +var zAff = *(*[8]int8)(unsafe.Pointer(ts + 9402)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107708:29 */ // Generate code that will evaluate expression pExpr just one time // per prepared statement execution. @@ -132660,7 +133350,7 @@ var zAff = *(*[8]int8)(unsafe.Pointer(ts + 9363)) /* testdata/sqlite-amalgamatio // code to the same register, if they do not contain function calls and hence // are factored out into the initialization section at the end of the // prepared statement. -func Xsqlite3ExprCodeRunJustOnce(tls *libc.TLS, pParse uintptr, pExpr uintptr, regDest int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107270:20: */ +func Xsqlite3ExprCodeRunJustOnce(tls *libc.TLS, pParse uintptr, pExpr uintptr, regDest int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:108421:20: */ var p uintptr p = (*Parse)(unsafe.Pointer(pParse)).FpConstExpr @@ -132674,7 +133364,8 @@ func Xsqlite3ExprCodeRunJustOnce(tls *libc.TLS, pParse uintptr, pExpr uintptr, r goto __3 } { - if uint32(int32(*(*uint8)(unsafe.Pointer(pItem + 20))&0x8>>3)) != 0 && Xsqlite3ExprCompare(tls, uintptr(0), (*ExprList_item)(unsafe.Pointer(pItem)).FpExpr, pExpr, -1) == 0 { + if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 16 + 4))&0x8>>3)) != 0 && + Xsqlite3ExprCompare(tls, uintptr(0), (*ExprList_item)(unsafe.Pointer(pItem)).FpExpr, pExpr, -1) == 0 { return *(*int32)(unsafe.Pointer(pItem + 24)) } @@ -132707,7 +133398,7 @@ func Xsqlite3ExprCodeRunJustOnce(tls *libc.TLS, pParse uintptr, pExpr uintptr, r p = Xsqlite3ExprListAppend(tls, pParse, p, pExpr) if p != 0 { var pItem uintptr = p + 8 + uintptr((*ExprList)(unsafe.Pointer(p)).FnExpr-1)*32 - libc.SetBitFieldPtr8Uint32(pItem+20, uint32(libc.Bool32(regDest < 0)), 3, 0x8) + libc.SetBitFieldPtr16Uint32(pItem+16+4, uint32(libc.Bool32(regDest < 0)), 3, 0x8) if regDest < 0 { regDest = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) } @@ -132729,7 +133420,7 @@ func Xsqlite3ExprCodeRunJustOnce(tls *libc.TLS, pParse uintptr, pExpr uintptr, r // If pExpr is a constant, then this routine might generate this // code to fill the register in the initialization section of the // VDBE program, in order to factor it out of the evaluation loop. -func Xsqlite3ExprCodeTemp(tls *libc.TLS, pParse uintptr, pExpr uintptr, pReg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107327:20: */ +func Xsqlite3ExprCodeTemp(tls *libc.TLS, pParse uintptr, pExpr uintptr, pReg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:108480:20: */ var r2 int32 pExpr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr) if (*Parse)(unsafe.Pointer(pParse)).FokConstFactor != 0 && @@ -132754,7 +133445,7 @@ func Xsqlite3ExprCodeTemp(tls *libc.TLS, pParse uintptr, pExpr uintptr, pReg uin // Generate code that will evaluate expression pExpr and store the // results in register target. The results are guaranteed to appear // in register target. -func Xsqlite3ExprCode(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107355:21: */ +func Xsqlite3ExprCode(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:108508:21: */ var inReg int32 if (*Parse)(unsafe.Pointer(pParse)).FpVdbe == uintptr(0) { @@ -132775,7 +133466,7 @@ func Xsqlite3ExprCode(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32 // Make a transient copy of expression pExpr and then code it using // sqlite3ExprCode(). This routine works just like sqlite3ExprCode() // except that the input expression is guaranteed to be unchanged. -func Xsqlite3ExprCodeCopy(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107379:21: */ +func Xsqlite3ExprCodeCopy(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:108532:21: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb pExpr = Xsqlite3ExprDup(tls, db, pExpr, 0) if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) { @@ -132788,7 +133479,7 @@ func Xsqlite3ExprCodeCopy(tls *libc.TLS, pParse uintptr, pExpr uintptr, target i // results in register target. The results are guaranteed to appear // in register target. If the expression is constant, then this routine // might choose to code the expression at initialization time. -func Xsqlite3ExprCodeFactorable(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107392:21: */ +func Xsqlite3ExprCodeFactorable(tls *libc.TLS, pParse uintptr, pExpr uintptr, target int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:108545:21: */ if (*Parse)(unsafe.Pointer(pParse)).FokConstFactor != 0 && Xsqlite3ExprIsConstantNotJoin(tls, pExpr) != 0 { Xsqlite3ExprCodeRunJustOnce(tls, pParse, pExpr, target) } else { @@ -132814,7 +133505,7 @@ func Xsqlite3ExprCodeFactorable(tls *libc.TLS, pParse uintptr, pExpr uintptr, ta // in registers at srcReg, and so the value can be copied from there. // If SQLITE_ECEL_OMITREF is also set, then the values with u.x.iOrderByCol>0 // are simply omitted rather than being copied from srcReg. -func Xsqlite3ExprCodeExprList(tls *libc.TLS, pParse uintptr, pList uintptr, target int32, srcReg int32, flags U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107420:20: */ +func Xsqlite3ExprCodeExprList(tls *libc.TLS, pParse uintptr, pList uintptr, target int32, srcReg int32, flags U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:108573:20: */ var pItem uintptr var i int32 var j int32 @@ -132880,23 +133571,23 @@ __3: // Generate code for a BETWEEN operator. // -// x BETWEEN y AND z +// x BETWEEN y AND z // // The above is equivalent to // -// x>=y AND x<=z +// x>=y AND x<=z // // Code it as such, taking care to do the common subexpression // elimination of x. // // The xJumpIf parameter determines details: // -// NULL: Store the boolean result in reg[dest] -// sqlite3ExprIfTrue: Jump to dest if true -// sqlite3ExprIfFalse: Jump to dest if false +// NULL: Store the boolean result in reg[dest] +// sqlite3ExprIfTrue: Jump to dest if true +// sqlite3ExprIfFalse: Jump to dest if false // // The jumpIfNull parameter is ignored if xJumpIf is NULL. -func exprCodeBetween(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, xJump uintptr, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107495:13: */ +func exprCodeBetween(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, xJump uintptr, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:108648:13: */ bp := tls.Alloc(220) defer tls.Free(220) @@ -132935,8 +133626,8 @@ func exprCodeBetween(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, x // so that the sqlite3ExprCodeTarget() routine will not attempt to move // it into the Parse.pConstExpr list. We should use a new bit for this, // for clarity, but we are out of bits in the Expr.flags field so we - // have to reuse the EP_FromJoin bit. Bummer. - *(*U32)(unsafe.Pointer(pDel + 4)) |= U32(EP_FromJoin) + // have to reuse the EP_OuterON bit. Bummer. + *(*U32)(unsafe.Pointer(pDel + 4)) |= U32(EP_OuterON) Xsqlite3ExprCodeTarget(tls, pParse, bp+144, dest) } Xsqlite3ReleaseTempReg(tls, pParse, *(*int32)(unsafe.Pointer(bp + 216 /* regFree1 */))) @@ -132959,7 +133650,7 @@ func exprCodeBetween(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, x // operation. Special comments in vdbe.c and the mkopcodeh.awk script in // the make process cause these values to align. Assert()s in the code // below verify that the numbers are aligned correctly. -func Xsqlite3ExprIfTrue(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107567:21: */ +func Xsqlite3ExprIfTrue(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:108720:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -133155,13 +133846,13 @@ __19: __20: default_expr: - if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin|EP_IsTrue) == U32(EP_IsTrue)) { + if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON|EP_IsTrue) == U32(EP_IsTrue)) { goto __28 } Xsqlite3VdbeGoto(tls, v, dest) goto __29 __28: - if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin|EP_IsFalse) == U32(EP_IsFalse)) { + if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON|EP_IsFalse) == U32(EP_IsFalse)) { goto __30 } // No-op @@ -133189,7 +133880,7 @@ __3: // If the expression evaluates to NULL (neither true nor false) then // jump if jumpIfNull is SQLITE_JUMPIFNULL or fall through if jumpIfNull // is 0. -func Xsqlite3ExprIfFalse(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107709:21: */ +func Xsqlite3ExprIfFalse(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:108862:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -133407,13 +134098,13 @@ __29: __20: default_expr: - if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin|EP_IsFalse) == U32(EP_IsFalse)) { + if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON|EP_IsFalse) == U32(EP_IsFalse)) { goto __30 } Xsqlite3VdbeGoto(tls, v, dest) goto __31 __30: - if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin|EP_IsTrue) == U32(EP_IsTrue)) { + if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON|EP_IsTrue) == U32(EP_IsTrue)) { goto __32 } // no-op @@ -133437,7 +134128,7 @@ __3: // Like sqlite3ExprIfFalse() except that a copy is made of pExpr before // code generation, and that copy is deleted after code generation. This // ensures that the original pExpr is unchanged. -func Xsqlite3ExprIfFalseDup(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107881:21: */ +func Xsqlite3ExprIfFalseDup(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, jumpIfNull int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109034:21: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pCopy uintptr = Xsqlite3ExprDup(tls, db, pExpr, 0) if int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) == 0 { @@ -133457,7 +134148,7 @@ func Xsqlite3ExprIfFalseDup(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest i // same as that currently bound to variable pVar, non-zero is returned. // Otherwise, if the values are not the same or if pExpr is not a simple // SQL value, zero is returned. -func exprCompareVariable(tls *libc.TLS, pParse uintptr, pVar uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107903:12: */ +func exprCompareVariable(tls *libc.TLS, pParse uintptr, pVar uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109056:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -133511,7 +134202,7 @@ func exprCompareVariable(tls *libc.TLS, pParse uintptr, pVar uintptr, pExpr uint // If pParse is NULL (the normal case) then any TK_VARIABLE term in // Argument pParse should normally be NULL. If it is not NULL and pA or // pB causes a return value of 2. -func Xsqlite3ExprCompare(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:107959:20: */ +func Xsqlite3ExprCompare(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109112:20: */ var combinedFlags U32 if pA == uintptr(0) || pB == uintptr(0) { if pB == pA { @@ -133615,7 +134306,7 @@ func Xsqlite3ExprCompare(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, // // Two NULL pointers are considered to be the same. But a NULL pointer // always differs from a non-NULL pointer. -func Xsqlite3ExprListCompare(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108055:20: */ +func Xsqlite3ExprListCompare(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109208:20: */ var i int32 if pA == uintptr(0) && pB == uintptr(0) { return 0 @@ -133630,7 +134321,7 @@ func Xsqlite3ExprListCompare(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32) var res int32 var pExprA uintptr = (*ExprList_item)(unsafe.Pointer(pA + 8 + uintptr(i)*32)).FpExpr var pExprB uintptr = (*ExprList_item)(unsafe.Pointer(pB + 8 + uintptr(i)*32)).FpExpr - if int32((*ExprList_item)(unsafe.Pointer(pA+8+uintptr(i)*32)).FsortFlags) != int32((*ExprList_item)(unsafe.Pointer(pB+8+uintptr(i)*32)).FsortFlags) { + if int32((*ExprList_item)(unsafe.Pointer(pA+8+uintptr(i)*32)).Ffg.FsortFlags) != int32((*ExprList_item)(unsafe.Pointer(pB+8+uintptr(i)*32)).Ffg.FsortFlags) { return 1 } if libc.AssignInt32(&res, Xsqlite3ExprCompare(tls, uintptr(0), pExprA, pExprB, iTab)) != 0 { @@ -133642,7 +134333,7 @@ func Xsqlite3ExprListCompare(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32) // Like sqlite3ExprCompare() except COLLATE operators at the top-level // are ignored. -func Xsqlite3ExprCompareSkip(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108074:20: */ +func Xsqlite3ExprCompareSkip(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109227:20: */ return Xsqlite3ExprCompare(tls, uintptr(0), Xsqlite3ExprSkipCollateAndLikely(tls, pA), Xsqlite3ExprSkipCollateAndLikely(tls, pB), @@ -133653,7 +134344,7 @@ func Xsqlite3ExprCompareSkip(tls *libc.TLS, pA uintptr, pB uintptr, iTab int32) // // Or if seenNot is true, return non-zero if Expr p can only be // non-NULL if pNN is not NULL -func exprImpliesNotNull(tls *libc.TLS, pParse uintptr, p uintptr, pNN uintptr, iTab int32, seenNot int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108087:12: */ +func exprImpliesNotNull(tls *libc.TLS, pParse uintptr, p uintptr, pNN uintptr, iTab int32, seenNot int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109240:12: */ if Xsqlite3ExprCompare(tls, pParse, p, pNN, iTab) == 0 { return libc.Bool32(int32((*Expr)(unsafe.Pointer(pNN)).Fop) != TK_NULL) @@ -133760,13 +134451,13 @@ func exprImpliesNotNull(tls *libc.TLS, pParse uintptr, p uintptr, pNN uintptr, i // true. Return false if we cannot complete the proof or if pE2 might // be false. Examples: // -// pE1: x==5 pE2: x==5 Result: true -// pE1: x>0 pE2: x==5 Result: false -// pE1: x=21 pE2: x=21 OR y=43 Result: true -// pE1: x!=123 pE2: x IS NOT NULL Result: true -// pE1: x!=?1 pE2: x IS NOT NULL Result: true -// pE1: x IS NULL pE2: x IS NOT NULL Result: false -// pE1: x IS ?2 pE2: x IS NOT NULL Reuslt: false +// pE1: x==5 pE2: x==5 Result: true +// pE1: x>0 pE2: x==5 Result: false +// pE1: x=21 pE2: x=21 OR y=43 Result: true +// pE1: x!=123 pE2: x IS NOT NULL Result: true +// pE1: x!=?1 pE2: x IS NOT NULL Result: true +// pE1: x IS NULL pE2: x IS NOT NULL Result: false +// pE1: x IS ?2 pE2: x IS NOT NULL Reuslt: false // // When comparing TK_COLUMN nodes between pE1 and pE2, if pE2 has // Expr.iTable<0 then assume a table number given by iTab. @@ -133779,7 +134470,7 @@ func exprImpliesNotNull(tls *libc.TLS, pParse uintptr, p uintptr, pNN uintptr, i // When in doubt, return false. Returning true might give a performance // improvement. Returning false might cause a performance reduction, but // it will always give the correct answer and is hence always safe. -func Xsqlite3ExprImpliesExpr(tls *libc.TLS, pParse uintptr, pE1 uintptr, pE2 uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108184:20: */ +func Xsqlite3ExprImpliesExpr(tls *libc.TLS, pParse uintptr, pE1 uintptr, pE2 uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109337:20: */ if Xsqlite3ExprCompare(tls, pParse, pE1, pE2, iTab) == 0 { return 1 } @@ -133802,9 +134493,9 @@ func Xsqlite3ExprImpliesExpr(tls *libc.TLS, pParse uintptr, pE1 uintptr, pE2 uin // This routine controls an optimization. False positives (setting // pWalker->eCode to 1 when it should not be) are deadly, but false-negatives // (never setting pWalker->eCode) is a harmless missed optimization. -func impliesNotNullRow(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108216:12: */ +func impliesNotNullRow(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109369:12: */ - if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) { + if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0) { return WRC_Prune } switch int32((*Expr)(unsafe.Pointer(pExpr)).Fop) { @@ -133903,15 +134594,15 @@ func impliesNotNullRow(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* // False positives are not allowed, however. A false positive may result // in an incorrect answer. // -// Terms of p that are marked with EP_FromJoin (and hence that come from -// the ON or USING clauses of LEFT JOINS) are excluded from the analysis. +// Terms of p that are marked with EP_OuterON (and hence that come from +// the ON or USING clauses of OUTER JOINS) are excluded from the analysis. // // This routine is used to check if a LEFT JOIN can be converted into // an ordinary JOIN. The p argument is the WHERE clause. If the WHERE // clause requires that some column of the right table of the LEFT JOIN // be non-NULL, then the LEFT JOIN can be safely converted into an // ordinary join. -func Xsqlite3ExprImpliesNonNullRow(tls *libc.TLS, p uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108325:20: */ +func Xsqlite3ExprImpliesNonNullRow(tls *libc.TLS, p uintptr, iTab int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109478:20: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -133945,7 +134636,7 @@ func Xsqlite3ExprImpliesNonNullRow(tls *libc.TLS, p uintptr, iTab int32) int32 { // Check to see if there are references to columns in table // pWalker->u.pIdxCover->iCur can be satisfied using the index // pWalker->u.pIdxCover->pIdx. -func exprIdxCover(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108363:12: */ +func exprIdxCover(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109516:12: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN && (*Expr)(unsafe.Pointer(pExpr)).FiTable == (*IdxCover)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pWalker + 40)))).FiCur && int32(Xsqlite3TableColumnToIndex(tls, (*IdxCover)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pWalker + 40)))).FpIdx, (*Expr)(unsafe.Pointer(pExpr)).FiColumn)) < 0 { @@ -133963,7 +134654,7 @@ func exprIdxCover(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* test // An index covering an expression means that the expression can be // evaluated using only the index and without having to lookup the // corresponding table entry. -func Xsqlite3ExprCoveredByIndex(tls *libc.TLS, pExpr uintptr, iCur int32, pIdx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108384:20: */ +func Xsqlite3ExprCoveredByIndex(tls *libc.TLS, pExpr uintptr, iCur int32, pIdx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109537:20: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -133988,7 +134679,7 @@ func Xsqlite3ExprCoveredByIndex(tls *libc.TLS, pExpr uintptr, iCur int32, pIdx u // entries for that subquery to the exclude list. // // When leaving the subquery, remove those entries from the exclude list. -func selectRefEnter(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108419:12: */ +func selectRefEnter(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109572:12: */ var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc var i I64 @@ -134012,7 +134703,7 @@ __1: goto __3 } { - *(*int32)(unsafe.Pointer((*RefSrcList)(unsafe.Pointer(p)).FaiExclude + uintptr(j)*4)) = (*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i)*112)).FiCursor + *(*int32)(unsafe.Pointer((*RefSrcList)(unsafe.Pointer(p)).FaiExclude + uintptr(j)*4)) = (*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104)).FiCursor } goto __2 @@ -134026,7 +134717,7 @@ __3: return WRC_Continue } -func selectRefLeave(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108439:13: */ +func selectRefLeave(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109592:13: */ var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc if (*RefSrcList)(unsafe.Pointer(p)).FnExclude != 0 { @@ -134042,7 +134733,7 @@ func selectRefLeave(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* testda // // Set the 0x02 bit of pWalker->eCode if there is a reference to a // table is in neither RefSrcList.pRef nor RefSrcList.aiExclude. -func exprRefToSrcList(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108456:12: */ +func exprRefToSrcList(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109609:12: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN || int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_AGG_COLUMN { var i int32 @@ -134055,7 +134746,7 @@ func exprRefToSrcList(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* nSrc = 0 } for i = 0; i < nSrc; i++ { - if (*Expr)(unsafe.Pointer(pExpr)).FiTable == (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*112)).FiCursor { + if (*Expr)(unsafe.Pointer(pExpr)).FiTable == (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*104)).FiCursor { *(*U16)(unsafe.Pointer(pWalker + 36)) |= U16(1) return WRC_Continue } @@ -134072,17 +134763,17 @@ func exprRefToSrcList(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* // Check to see if pExpr references any tables in pSrcList. // Possible return values: // -// 1 pExpr does references a table in pSrcList. +// 1 pExpr does references a table in pSrcList. // -// 0 pExpr references some table that is not defined in either -// pSrcList or in subqueries of pExpr itself. +// 0 pExpr references some table that is not defined in either +// pSrcList or in subqueries of pExpr itself. // -// -1 pExpr only references no tables at all, or it only -// references tables defined in subqueries of pExpr itself. +// -1 pExpr only references no tables at all, or it only +// references tables defined in subqueries of pExpr itself. // // As currently used, pExpr is always an aggregate function call. That // fact is exploited for efficiency. -func Xsqlite3ReferencesSrcList(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSrcList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108493:20: */ +func Xsqlite3ReferencesSrcList(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSrcList uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109646:20: */ bp := tls.Alloc(80) defer tls.Free(80) @@ -134131,7 +134822,7 @@ func Xsqlite3ReferencesSrcList(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSr // This will cause the expression to be deleted automatically when the // Parse object is destroyed, but the zero register number means that it // will not generate any code in the preamble. -func agginfoPersistExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108535:12: */ +func agginfoPersistExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109688:12: */ if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_TokenOnly|EP_Reduced) != U32(0)) && (*Expr)(unsafe.Pointer(pExpr)).FpAggInfo != uintptr(0) { var pAggInfo uintptr = (*Expr)(unsafe.Pointer(pExpr)).FpAggInfo @@ -134164,7 +134855,7 @@ func agginfoPersistExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { // Initialize a Walker object so that will persist AggInfo entries referenced // by the tree that is walked. -func Xsqlite3AggInfoPersistWalkerInit(tls *libc.TLS, pWalker uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108571:21: */ +func Xsqlite3AggInfoPersistWalkerInit(tls *libc.TLS, pWalker uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109724:21: */ libc.Xmemset(tls, pWalker, 0, uint64(unsafe.Sizeof(Walker{}))) (*Walker)(unsafe.Pointer(pWalker)).FpParse = pParse (*Walker)(unsafe.Pointer(pWalker)).FxExprCallback = *(*uintptr)(unsafe.Pointer(&struct { @@ -134177,7 +134868,7 @@ func Xsqlite3AggInfoPersistWalkerInit(tls *libc.TLS, pWalker uintptr, pParse uin // Add a new element to the pAggInfo->aCol[] array. Return the index of // the new element. Return a negative number if malloc fails. -func addAggInfoColumn(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108582:12: */ +func addAggInfoColumn(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109735:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -134194,7 +134885,7 @@ func addAggInfoColumn(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* testd // Add a new element to the pAggInfo->aFunc[] array. Return the index of // the new element. Return a negative number if malloc fails. -func addAggInfoFunc(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108598:12: */ +func addAggInfoFunc(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109751:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -134212,7 +134903,7 @@ func addAggInfoFunc(tls *libc.TLS, db uintptr, pInfo uintptr) int32 { /* testdat // This is the xExprCallback for a tree walker. It is used to // implement sqlite3ExprAnalyzeAggregates(). See sqlite3ExprAnalyzeAggregates // for additional information. -func analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108615:12: */ +func analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109768:12: */ var i int32 var pNC uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) var pParse uintptr = (*NameContext)(unsafe.Pointer(pNC)).FpParse @@ -134320,7 +135011,7 @@ func analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* goto __2 __2: i++ - pItem += 112 + pItem += 104 goto __1 goto __3 __3: // end loop over pSrcList @@ -134403,7 +135094,7 @@ func analyzeAggregate(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* // // This routine should only be called after the expression has been // analyzed by sqlite3ResolveExprNames(). -func Xsqlite3ExprAnalyzeAggregates(tls *libc.TLS, pNC uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108753:21: */ +func Xsqlite3ExprAnalyzeAggregates(tls *libc.TLS, pNC uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109906:21: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -134429,7 +135120,7 @@ func Xsqlite3ExprAnalyzeAggregates(tls *libc.TLS, pNC uintptr, pExpr uintptr) { // expression list. Return the number of errors. // // If an error is found, the analysis is cut short. -func Xsqlite3ExprAnalyzeAggList(tls *libc.TLS, pNC uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108771:21: */ +func Xsqlite3ExprAnalyzeAggList(tls *libc.TLS, pNC uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109924:21: */ var pItem uintptr var i int32 if pList != 0 { @@ -134454,7 +135145,7 @@ func Xsqlite3ExprAnalyzeAggList(tls *libc.TLS, pNC uintptr, pList uintptr) { /* } // Allocate a single new register for use to hold some intermediate result. -func Xsqlite3GetTempReg(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108784:20: */ +func Xsqlite3GetTempReg(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109937:20: */ if int32((*Parse)(unsafe.Pointer(pParse)).FnTempReg) == 0 { return libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) } @@ -134463,7 +135154,7 @@ func Xsqlite3GetTempReg(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlit // Deallocate a register, making available for reuse for some other // purpose. -func Xsqlite3ReleaseTempReg(tls *libc.TLS, pParse uintptr, iReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108795:21: */ +func Xsqlite3ReleaseTempReg(tls *libc.TLS, pParse uintptr, iReg int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109948:21: */ if iReg != 0 { if int32((*Parse)(unsafe.Pointer(pParse)).FnTempReg) < int32(uint64(unsafe.Sizeof([8]int32{}))/uint64(unsafe.Sizeof(int32(0)))) { @@ -134473,7 +135164,7 @@ func Xsqlite3ReleaseTempReg(tls *libc.TLS, pParse uintptr, iReg int32) { /* test } // Allocate or deallocate a block of nReg consecutive registers. -func Xsqlite3GetTempRange(tls *libc.TLS, pParse uintptr, nReg int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108807:20: */ +func Xsqlite3GetTempRange(tls *libc.TLS, pParse uintptr, nReg int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109960:20: */ var i int32 var n int32 if nReg == 1 { @@ -134491,7 +135182,7 @@ func Xsqlite3GetTempRange(tls *libc.TLS, pParse uintptr, nReg int32) int32 { /* return i } -func Xsqlite3ReleaseTempRange(tls *libc.TLS, pParse uintptr, iReg int32, nReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108821:21: */ +func Xsqlite3ReleaseTempRange(tls *libc.TLS, pParse uintptr, iReg int32, nReg int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109974:21: */ if nReg == 1 { Xsqlite3ReleaseTempReg(tls, pParse, iReg) return @@ -134509,7 +135200,7 @@ func Xsqlite3ReleaseTempRange(tls *libc.TLS, pParse uintptr, iReg int32, nReg in // that might be invoked from other parts of the code, to ensure that // the sub/co-routine does not use registers in common with the code that // invokes the sub/co-routine. -func Xsqlite3ClearTempRegCache(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108841:21: */ +func Xsqlite3ClearTempRegCache(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:109994:21: */ (*Parse)(unsafe.Pointer(pParse)).FnTempReg = U8(0) (*Parse)(unsafe.Pointer(pParse)).FnRangeReg = 0 } @@ -134543,15 +135234,15 @@ func Xsqlite3ClearTempRegCache(tls *libc.TLS, pParse uintptr) { /* testdata/sqli // in pParse->zErr (system tables may not be altered) and returns non-zero. // // Or, if zName is not a system table, zero is returned. -func isAlterableTable(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108901:12: */ +func isAlterableTable(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110054:12: */ bp := tls.Alloc(8) defer tls.Free(8) - if 0 == Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+9371, 7) || + if 0 == Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+9410, 7) || (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_Eponymous) != U32(0) || (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_Shadow) != U32(0) && Xsqlite3ReadOnlyShadowTables(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb) != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+9379, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+9418, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) return 1 } return 0 @@ -134562,21 +135253,21 @@ func isAlterableTable(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* te // called at the end of the generation of an ALTER TABLE ... RENAME ... // statement to ensure that the operation has not rendered any schema // objects unusable. -func renameTestSchema(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32, zWhen uintptr, bNoDQS int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108923:13: */ +func renameTestSchema(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32, zWhen uintptr, bNoDQS int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110076:13: */ bp := tls.Alloc(64) defer tls.Free(64) (*Parse)(unsafe.Pointer(pParse)).FcolNamesSet = U8(1) Xsqlite3NestedParse(tls, pParse, - ts+9407, + ts+9446, libc.VaList(bp, zDb, zDb, bTemp, zWhen, bNoDQS)) if bTemp == 0 { Xsqlite3NestedParse(tls, pParse, - ts+9582, + ts+9621, libc.VaList(bp+40, zDb, zWhen, bNoDQS)) } } @@ -134586,23 +135277,23 @@ func renameTestSchema(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32, z // database zDb with their single-quoted equivalents. If argument bTemp is // not true, similarly update all SQL statements in the sqlite_schema table // of the temp db. -func renameFixQuotes(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108960:13: */ +func renameFixQuotes(tls *libc.TLS, pParse uintptr, zDb uintptr, bTemp int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110113:13: */ bp := tls.Alloc(16) defer tls.Free(16) Xsqlite3NestedParse(tls, pParse, - ts+9756, libc.VaList(bp, zDb, zDb)) + ts+9795, libc.VaList(bp, zDb, zDb)) if bTemp == 0 { Xsqlite3NestedParse(tls, pParse, - ts+9903, 0) + ts+9942, 0) } } // Generate code to reload the schema for database iDb. And, if iDb!=1, for // the temp database as well. -func renameReloadSchema(tls *libc.TLS, pParse uintptr, iDb int32, p5 U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108981:13: */ +func renameReloadSchema(tls *libc.TLS, pParse uintptr, iDb int32, p5 U16) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110134:13: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe if v != 0 { Xsqlite3ChangeCookie(tls, pParse, iDb) @@ -134615,7 +135306,7 @@ func renameReloadSchema(tls *libc.TLS, pParse uintptr, iDb int32, p5 U16) { /* t // Generate code to implement the "ALTER TABLE xxx RENAME TO yyy" // command. -func Xsqlite3AlterRenameTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:108994:21: */ +func Xsqlite3AlterRenameTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110147:21: */ bp := tls.Alloc(184) defer tls.Free(184) @@ -134667,7 +135358,7 @@ __3: goto __4 } Xsqlite3ErrorMsg(tls, pParse, - ts+10054, libc.VaList(bp, zName)) + ts+10093, libc.VaList(bp, zName)) goto exit_rename_table __4: ; @@ -134680,7 +135371,7 @@ __4: goto exit_rename_table __5: ; - if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+10113, zName)) { + if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+10152, zName)) { goto __6 } goto exit_rename_table @@ -134690,7 +135381,7 @@ __6: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) { goto __7 } - Xsqlite3ErrorMsg(tls, pParse, ts+10119, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+10158, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) goto exit_rename_table __7: ; @@ -134743,24 +135434,24 @@ __12: // the schema to use the new table name. Xsqlite3NestedParse(tls, pParse, - ts+10146, libc.VaList(bp+16, zDb, zDb, zTabName, zName, libc.Bool32(iDb == 1), zTabName)) + ts+10185, libc.VaList(bp+16, zDb, zDb, zTabName, zName, libc.Bool32(iDb == 1), zTabName)) // Update the tbl_name and name columns of the sqlite_schema table // as required. Xsqlite3NestedParse(tls, pParse, - ts+10330, + ts+10369, libc.VaList(bp+64, zDb, zName, zName, zName, nTabName, zTabName)) // If the sqlite_sequence table exists in this database, then update // it with the new table name. - if !(Xsqlite3FindTable(tls, db, ts+10635, zDb) != 0) { + if !(Xsqlite3FindTable(tls, db, ts+10674, zDb) != 0) { goto __13 } Xsqlite3NestedParse(tls, pParse, - ts+10651, + ts+10690, libc.VaList(bp+112, zDb, zName, (*Table)(unsafe.Pointer(pTab)).FzName)) __13: ; @@ -134773,7 +135464,7 @@ __13: } Xsqlite3NestedParse(tls, pParse, - ts+10709, libc.VaList(bp+136, zDb, zTabName, zName, zTabName, zDb, zName)) + ts+10748, libc.VaList(bp+136, zDb, zTabName, zName, zTabName, zDb, zName)) __14: ; @@ -134786,12 +135477,12 @@ __14: } i = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) Xsqlite3VdbeLoadString(tls, v, i, zName) - Xsqlite3VdbeAddOp4(tls, v, OP_VRename, i, 0, 0, pVTab, -12) + Xsqlite3VdbeAddOp4(tls, v, OP_VRename, i, 0, 0, pVTab, -11) __15: ; renameReloadSchema(tls, pParse, iDb, uint16(INITFLAG_AlterRename)) - renameTestSchema(tls, pParse, zDb, libc.Bool32(iDb == 1), ts+10974, 0) + renameTestSchema(tls, pParse, zDb, libc.Bool32(iDb == 1), ts+11013, 0) exit_rename_table: Xsqlite3SrcListDelete(tls, db, pSrc) @@ -134800,12 +135491,12 @@ exit_rename_table: // Write code that will raise an error if the table described by // zDb and zTab is not empty. -func sqlite3ErrorIfNotEmpty(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zErr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109163:13: */ +func sqlite3ErrorIfNotEmpty(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uintptr, zErr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110316:13: */ bp := tls.Alloc(24) defer tls.Free(24) Xsqlite3NestedParse(tls, pParse, - ts+10987, + ts+11026, libc.VaList(bp, zErr, zDb, zTab)) } @@ -134815,7 +135506,7 @@ func sqlite3ErrorIfNotEmpty(tls *libc.TLS, pParse uintptr, zDb uintptr, zTab uin // // The Table structure pParse->pNewTable was extended to include // the new column during parsing. -func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109183:21: */ +func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110336:21: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -134855,12 +135546,12 @@ func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr // If there is a NOT NULL constraint, then the default value for the // column must not be NULL. if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_PRIMKEY != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+11025, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+11064, 0) return } if (*Table)(unsafe.Pointer(pNew)).FpIndex != 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+11057, 0) + ts+11096, 0) return } if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED == 0 { @@ -134874,11 +135565,11 @@ func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr if (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_ForeignKeys) != 0 && *(*uintptr)(unsafe.Pointer(pNew + 64 + 8)) != 0 && pDflt != 0 { sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, - ts+11084) + ts+11123) } if uint32(int32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf>>0)) != 0 && !(pDflt != 0) { sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, - ts+11143) + ts+11182) } // Ensure the default expression is something that sqlite3ValueFromExpr() @@ -134894,12 +135585,12 @@ func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr } if !(*(*uintptr)(unsafe.Pointer(bp + 56)) != 0) { sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, - ts+11196) + ts+11235) } Xsqlite3ValueFree(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pVal */))) } } else if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_STORED != 0 { - sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, ts+11242) + sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, ts+11281) } // Modify the CREATE TABLE statement. @@ -134914,7 +135605,7 @@ func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr Xsqlite3NestedParse(tls, pParse, - ts+11269, + ts+11308, libc.VaList(bp, zDb, *(*int32)(unsafe.Pointer(pNew + 64)), zCol, *(*int32)(unsafe.Pointer(pNew + 64)), zTab)) Xsqlite3DbFree(tls, db, zCol) @@ -134942,7 +135633,7 @@ func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr uint32(int32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf>>0)) != 0 && int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED != 0 { Xsqlite3NestedParse(tls, pParse, - ts+11415, + ts+11454, libc.VaList(bp+40, zTab, zDb)) } } @@ -134961,7 +135652,7 @@ func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr // // Routine sqlite3AlterFinishAddColumn() will be called to complete // coding the "ALTER TABLE ... ADD" statement. -func Xsqlite3AlterBeginAddColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109348:21: */ +func Xsqlite3AlterBeginAddColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110501:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -134993,7 +135684,7 @@ __2: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { goto __3 } - Xsqlite3ErrorMsg(tls, pParse, ts+11645, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+11684, 0) goto exit_begin_add_column __3: ; @@ -135002,7 +135693,7 @@ __3: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) { goto __4 } - Xsqlite3ErrorMsg(tls, pParse, ts+11679, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+11718, 0) goto exit_begin_add_column __4: ; @@ -135037,7 +135728,7 @@ __6: nAlloc = (int32((*Table)(unsafe.Pointer(pNew)).FnCol)-1)/8*8 + 8 (*Table)(unsafe.Pointer(pNew)).FaCol = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Column{}))*uint64(nAlloc)) - (*Table)(unsafe.Pointer(pNew)).FzName = Xsqlite3MPrintf(tls, db, ts+11709, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + (*Table)(unsafe.Pointer(pNew)).FzName = Xsqlite3MPrintf(tls, db, ts+11748, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) if !(!(int32((*Table)(unsafe.Pointer(pNew)).FaCol) != 0) || !(int32((*Table)(unsafe.Pointer(pNew)).FzName) != 0)) { goto __7 } @@ -135078,24 +135769,24 @@ exit_begin_add_column: // it loads an error message into pParse and returns non-zero. // // Or, if pTab is not a view or virtual table, zero is returned. -func isRealTable(tls *libc.TLS, pParse uintptr, pTab uintptr, bDrop int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109431:12: */ +func isRealTable(tls *libc.TLS, pParse uintptr, pTab uintptr, bDrop int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110584:12: */ bp := tls.Alloc(24) defer tls.Free(24) var zType uintptr = uintptr(0) if int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW { - zType = ts + 11728 /* "view" */ + zType = ts + 11767 /* "view" */ } if int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB { - zType = ts + 11733 /* "virtual table" */ + zType = ts + 11772 /* "virtual table" */ } if zType != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+11747, + Xsqlite3ErrorMsg(tls, pParse, ts+11786, libc.VaList(bp, func() uintptr { if bDrop != 0 { - return ts + 11765 /* "drop column from" */ + return ts + 11804 /* "drop column from" */ } - return ts + 11782 /* "rename columns o..." */ + return ts + 11821 /* "rename columns o..." */ }(), zType, (*Table)(unsafe.Pointer(pTab)).FzName)) return 1 @@ -135105,8 +135796,8 @@ func isRealTable(tls *libc.TLS, pParse uintptr, pTab uintptr, bDrop int32) int32 // Handles the following parser reduction: // -// cmd ::= ALTER TABLE pSrc RENAME COLUMN pOld TO pNew -func Xsqlite3AlterRenameColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pOld uintptr, pNew uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109461:21: */ +// cmd ::= ALTER TABLE pSrc RENAME COLUMN pOld TO pNew +func Xsqlite3AlterRenameColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pOld uintptr, pNew uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110614:21: */ bp := tls.Alloc(112) defer tls.Free(112) @@ -135188,7 +135879,7 @@ __8: if !(iCol == int32((*Table)(unsafe.Pointer(pTab)).FnCol)) { goto __10 } - Xsqlite3ErrorMsg(tls, pParse, ts+11800, libc.VaList(bp, pOld)) + Xsqlite3ErrorMsg(tls, pParse, ts+11839, libc.VaList(bp, pOld)) goto exit_rename_column __10: ; @@ -135212,19 +135903,19 @@ __11: bQuote = int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer((*Token)(unsafe.Pointer(pNew)).Fz)))]) & 0x80 Xsqlite3NestedParse(tls, pParse, - ts+11821, + ts+11860, libc.VaList(bp+8, zDb, zDb, (*Table)(unsafe.Pointer(pTab)).FzName, iCol, zNew, bQuote, libc.Bool32(iSchema == 1), (*Table)(unsafe.Pointer(pTab)).FzName)) Xsqlite3NestedParse(tls, pParse, - ts+12003, + ts+12042, libc.VaList(bp+72, zDb, (*Table)(unsafe.Pointer(pTab)).FzName, iCol, zNew, bQuote)) // Drop and reload the database schema. renameReloadSchema(tls, pParse, iSchema, uint16(INITFLAG_AlterRename)) - renameTestSchema(tls, pParse, zDb, libc.Bool32(iSchema == 1), ts+10974, 1) + renameTestSchema(tls, pParse, zDb, libc.Bool32(iSchema == 1), ts+11013, 1) exit_rename_column: Xsqlite3SrcListDelete(tls, db, pSrc) @@ -135235,7 +135926,7 @@ exit_rename_column: // The context of an ALTER TABLE RENAME COLUMN operation that gets passed // down into the Walker. -type RenameCtx = RenameCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109576:26 */ +type RenameCtx = RenameCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110729:26 */ // Remember that the parser tree element pPtr was created using // the token pToken. @@ -135247,7 +135938,7 @@ type RenameCtx = RenameCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10 // The pPtr argument is returned so that this routine can be used // with tail recursion in tokenExpr() routine, for a small performance // improvement. -func Xsqlite3RenameTokenMap(tls *libc.TLS, pParse uintptr, pPtr uintptr, pToken uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109639:27: */ +func Xsqlite3RenameTokenMap(tls *libc.TLS, pParse uintptr, pPtr uintptr, pToken uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110792:27: */ var pNew uintptr if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) != PARSE_MODE_UNMAP { @@ -135266,7 +135957,7 @@ func Xsqlite3RenameTokenMap(tls *libc.TLS, pParse uintptr, pPtr uintptr, pToken // It is assumed that there is already a RenameToken object associated // with parse tree element pFrom. This function remaps the associated token // to parse tree element pTo. -func Xsqlite3RenameTokenRemap(tls *libc.TLS, pParse uintptr, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109665:21: */ +func Xsqlite3RenameTokenRemap(tls *libc.TLS, pParse uintptr, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110818:21: */ var p uintptr for p = (*Parse)(unsafe.Pointer(pParse)).FpRename; p != 0; p = (*RenameToken)(unsafe.Pointer(p)).FpNext { @@ -135278,7 +135969,7 @@ func Xsqlite3RenameTokenRemap(tls *libc.TLS, pParse uintptr, pTo uintptr, pFrom } // Walker callback used by sqlite3RenameExprUnmap(). -func renameUnmapExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109679:12: */ +func renameUnmapExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110832:12: */ var pParse uintptr = (*Walker)(unsafe.Pointer(pWalker)).FpParse Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), pExpr) if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_WinFunc|EP_Subrtn) == U32(0) { @@ -135289,7 +135980,7 @@ func renameUnmapExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* // Iterate through the Select objects that are part of WITH clauses attached // to select statement pSelect. -func renameWalkWith(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109692:13: */ +func renameWalkWith(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110845:13: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -135330,17 +136021,16 @@ func renameWalkWith(tls *libc.TLS, pWalker uintptr, pSelect uintptr) { /* testda } // Unmap all tokens in the IdList object passed as the second argument. -func unmapColumnIdlistNames(tls *libc.TLS, pParse uintptr, pIdList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109727:13: */ - if pIdList != 0 { - var ii int32 - for ii = 0; ii < (*IdList)(unsafe.Pointer(pIdList)).FnId; ii++ { - Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pIdList)).Fa+uintptr(ii)*16)).FzName) - } +func unmapColumnIdlistNames(tls *libc.TLS, pParse uintptr, pIdList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110880:13: */ + var ii int32 + + for ii = 0; ii < (*IdList)(unsafe.Pointer(pIdList)).FnId; ii++ { + Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), (*IdList_item)(unsafe.Pointer(pIdList+8+uintptr(ii)*16)).FzName) } } // Walker callback used by sqlite3RenameExprUnmap(). -func renameUnmapSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109742:12: */ +func renameUnmapSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110894:12: */ var pParse uintptr = (*Walker)(unsafe.Pointer(pWalker)).FpParse var i int32 if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 { @@ -135353,7 +136043,7 @@ func renameUnmapSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* t if (*Select)(unsafe.Pointer(p)).FpEList != 0 { var pList uintptr = (*Select)(unsafe.Pointer(p)).FpEList for i = 0; i < (*ExprList)(unsafe.Pointer(pList)).FnExpr; i++ { - if (*ExprList_item)(unsafe.Pointer(pList+8+uintptr(i)*32)).FzEName != 0 && int32(*(*uint8)(unsafe.Pointer(pList + 8 + uintptr(i)*32 + 20))&0x3>>0) == ENAME_NAME { + if (*ExprList_item)(unsafe.Pointer(pList+8+uintptr(i)*32)).FzEName != 0 && int32(*(*uint16)(unsafe.Pointer(pList + 8 + uintptr(i)*32 + 16 + 4))&0x3>>0) == ENAME_NAME { Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), (*ExprList_item)(unsafe.Pointer(pList+8+uintptr(i)*32)).FzEName) } } @@ -135361,9 +136051,12 @@ func renameUnmapSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* t if (*Select)(unsafe.Pointer(p)).FpSrc != 0 { // Every Select as a SrcList, even if it is empty var pSrc uintptr = (*Select)(unsafe.Pointer(p)).FpSrc for i = 0; i < (*SrcList)(unsafe.Pointer(pSrc)).FnSrc; i++ { - Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*112)).FzName) - Xsqlite3WalkExpr(tls, pWalker, (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*112)).FpOn) - unmapColumnIdlistNames(tls, pParse, (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*112)).FpUsing) + Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*104)).FzName) + if int32(*(*uint16)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104 + 60 + 4))&0x400>>10) == 0 { + Xsqlite3WalkExpr(tls, pWalker, *(*uintptr)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104 + 72))) + } else { + unmapColumnIdlistNames(tls, pParse, *(*uintptr)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104 + 72))) + } } } @@ -135372,7 +136065,7 @@ func renameUnmapSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* t } // Remove all nodes that are part of expression pExpr from the rename list. -func Xsqlite3RenameExprUnmap(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109775:21: */ +func Xsqlite3RenameExprUnmap(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110930:21: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -135394,7 +136087,7 @@ func Xsqlite3RenameExprUnmap(tls *libc.TLS, pParse uintptr, pExpr uintptr) { /* // Remove all nodes that are part of expression-list pEList from the // rename list. -func Xsqlite3RenameExprlistUnmap(tls *libc.TLS, pParse uintptr, pEList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109791:21: */ +func Xsqlite3RenameExprlistUnmap(tls *libc.TLS, pParse uintptr, pEList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110946:21: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -135409,7 +136102,7 @@ func Xsqlite3RenameExprlistUnmap(tls *libc.TLS, pParse uintptr, pEList uintptr) }{renameUnmapExprCb})) Xsqlite3WalkExprList(tls, bp, pEList) for i = 0; i < (*ExprList)(unsafe.Pointer(pEList)).FnExpr; i++ { - if int32(*(*uint8)(unsafe.Pointer(pEList + 8 + uintptr(i)*32 + 20))&0x3>>0) == ENAME_NAME { + if int32(*(*uint16)(unsafe.Pointer(pEList + 8 + uintptr(i)*32 + 16 + 4))&0x3>>0) == ENAME_NAME { Xsqlite3RenameTokenRemap(tls, pParse, uintptr(0), (*ExprList_item)(unsafe.Pointer(pEList+8+uintptr(i)*32)).FzEName) } } @@ -135417,7 +136110,7 @@ func Xsqlite3RenameExprlistUnmap(tls *libc.TLS, pParse uintptr, pEList uintptr) } // Free the list of RenameToken objects given in the second argument -func renameTokenFree(tls *libc.TLS, db uintptr, pToken uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109810:13: */ +func renameTokenFree(tls *libc.TLS, db uintptr, pToken uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110965:13: */ var pNext uintptr var p uintptr for p = pToken; p != 0; p = pNext { @@ -135433,7 +136126,7 @@ func renameTokenFree(tls *libc.TLS, db uintptr, pToken uintptr) { /* testdata/sq // If the second argument passed to this function is not NULL and a matching // RenameToken object is found, remove it from the Parse object and add it to // the list maintained by the RenameCtx object. -func renameTokenFind(tls *libc.TLS, pParse uintptr, pCtx uintptr, pPtr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109828:20: */ +func renameTokenFind(tls *libc.TLS, pParse uintptr, pCtx uintptr, pPtr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:110983:20: */ var pp uintptr if pPtr == uintptr(0) { return uintptr(0) @@ -135456,7 +136149,7 @@ func renameTokenFind(tls *libc.TLS, pParse uintptr, pCtx uintptr, pPtr uintptr) // This is a Walker select callback. It does nothing. It is only required // because without a dummy callback, sqlite3WalkExpr() and similar do not // descend into sub-select statements. -func renameColumnSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109857:12: */ +func renameColumnSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111012:12: */ if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_View|SF_CopyCte) != 0 { return WRC_Prune @@ -135472,7 +136165,7 @@ func renameColumnSelectCb(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* // ALTER TABLE statement. If it is, then attach its associated // RenameToken object to the list of RenameToken objects being // constructed in RenameCtx object at pWalker->u.pRename. -func renameColumnExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109876:12: */ +func renameColumnExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111031:12: */ var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_TRIGGER && int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) == (*RenameCtx)(unsafe.Pointer(p)).FiCol && @@ -135494,7 +136187,7 @@ func renameColumnExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { / // the input SQL is parsed from left to right. Repeated calls to this routine // return all column name tokens in the order that they are encountered // in the SQL statement. -func renameColumnTokenNext(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109902:20: */ +func renameColumnTokenNext(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111057:20: */ var pBest uintptr = (*RenameCtx)(unsafe.Pointer(pCtx)).FpList var pToken uintptr var pp uintptr @@ -135516,7 +136209,7 @@ func renameColumnTokenNext(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sq // ALTER TABLE RENAME COLUMN program. The error message emitted by the // sub-routine is currently stored in pParse->zErrMsg. This function // adds context to the error message and then stores it in pCtx. -func renameColumnParseError(tls *libc.TLS, pCtx uintptr, zWhen uintptr, pType uintptr, pObject uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109923:13: */ +func renameColumnParseError(tls *libc.TLS, pCtx uintptr, zWhen uintptr, pType uintptr, pObject uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111078:13: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -135524,10 +136217,10 @@ func renameColumnParseError(tls *libc.TLS, pCtx uintptr, zWhen uintptr, pType ui var zN uintptr = Xsqlite3_value_text(tls, pObject) var zErr uintptr - zErr = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+12134, + zErr = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+12173, libc.VaList(bp, zT, zN, func() uintptr { if *(*int8)(unsafe.Pointer(zWhen)) != 0 { - return ts + 12157 /* " " */ + return ts + 12196 /* " " */ } return ts + 1524 /* "" */ }(), zWhen, @@ -135540,12 +136233,12 @@ func renameColumnParseError(tls *libc.TLS, pCtx uintptr, zWhen uintptr, pType ui // pEList->a[i].zName) that matches the string in zOld, extract the // corresponding rename-token from Parse object pParse and add it // to the RenameCtx pCtx. -func renameColumnElistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pEList uintptr, zOld uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109948:13: */ +func renameColumnElistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pEList uintptr, zOld uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111103:13: */ if pEList != 0 { var i int32 for i = 0; i < (*ExprList)(unsafe.Pointer(pEList)).FnExpr; i++ { var zName uintptr = (*ExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(i)*32)).FzEName - if int32(*(*uint8)(unsafe.Pointer(pEList + 8 + uintptr(i)*32 + 20))&0x3>>0) == ENAME_NAME && + if int32(*(*uint16)(unsafe.Pointer(pEList + 8 + uintptr(i)*32 + 16 + 4))&0x3>>0) == ENAME_NAME && zName != uintptr(0) && 0 == Xsqlite3_stricmp(tls, zName, zOld) { renameTokenFind(tls, pParse, pCtx, zName) @@ -135557,11 +136250,11 @@ func renameColumnElistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pEList // For each name in the the id-list pIdList (i.e. each pIdList->a[i].zName) // that matches the string in zOld, extract the corresponding rename-token // from Parse object pParse and add it to the RenameCtx pCtx. -func renameColumnIdlistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pIdList uintptr, zOld uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109973:13: */ +func renameColumnIdlistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pIdList uintptr, zOld uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111128:13: */ if pIdList != 0 { var i int32 for i = 0; i < (*IdList)(unsafe.Pointer(pIdList)).FnId; i++ { - var zName uintptr = (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pIdList)).Fa + uintptr(i)*16)).FzName + var zName uintptr = (*IdList_item)(unsafe.Pointer(pIdList + 8 + uintptr(i)*16)).FzName if 0 == Xsqlite3_stricmp(tls, zName, zOld) { renameTokenFind(tls, pParse, pCtx, zName) } @@ -135571,15 +136264,15 @@ func renameColumnIdlistNames(tls *libc.TLS, pParse uintptr, pCtx uintptr, pIdLis // Parse the SQL statement zSql using Parse object (*p). The Parse object // is initialized by this function before it is used. -func renameParseSql(tls *libc.TLS, p uintptr, zDb uintptr, db uintptr, zSql uintptr, bTemp int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:109995:12: */ +func renameParseSql(tls *libc.TLS, p uintptr, zDb uintptr, db uintptr, zSql uintptr, bTemp int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111150:12: */ var rc int32 Xsqlite3ParseObjectInit(tls, p, db) if zSql == uintptr(0) { return SQLITE_NOMEM } - if Xsqlite3_strnicmp(tls, zSql, ts+12159, 7) != 0 { - return Xsqlite3CorruptError(tls, 110009) + if Xsqlite3_strnicmp(tls, zSql, ts+12198, 7) != 0 { + return Xsqlite3CorruptError(tls, 111164) } (*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = func() uint8 { if bTemp != 0 { @@ -135596,7 +136289,7 @@ func renameParseSql(tls *libc.TLS, p uintptr, zDb uintptr, db uintptr, zSql uint } if rc == SQLITE_OK && ((*Parse)(unsafe.Pointer(p)).FpNewTable == uintptr(0) && (*Parse)(unsafe.Pointer(p)).FpNewIndex == uintptr(0) && (*Parse)(unsafe.Pointer(p)).FpNewTrigger == uintptr(0)) { - rc = Xsqlite3CorruptError(tls, 110020) + rc = Xsqlite3CorruptError(tls, 111175) } (*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = U8(0) @@ -135610,7 +136303,7 @@ func renameParseSql(tls *libc.TLS, p uintptr, zDb uintptr, db uintptr, zSql uint // // Or, if an error occurs (i.e. an OOM condition), an error is left in // pCtx and an SQLite error code returned. -func renameEditSql(tls *libc.TLS, pCtx uintptr, pRename uintptr, zSql uintptr, zNew uintptr, bQuote int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110048:12: */ +func renameEditSql(tls *libc.TLS, pCtx uintptr, pRename uintptr, zSql uintptr, zNew uintptr, bQuote int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111203:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -135630,7 +136323,7 @@ func renameEditSql(tls *libc.TLS, pCtx uintptr, pRename uintptr, zSql uintptr, z // ALTER TABLE statement was quoted (bQuote==1), then set zNew to // point to zQuot so that all substitutions are made using the // quoted version of the new column name. - zQuot = Xsqlite3MPrintf(tls, db, ts+12167, libc.VaList(bp, zNew)) + zQuot = Xsqlite3MPrintf(tls, db, ts+12206, libc.VaList(bp, zNew)) if zQuot == uintptr(0) { return SQLITE_NOMEM } else { @@ -135680,10 +136373,10 @@ func renameEditSql(tls *libc.TLS, pCtx uintptr, pRename uintptr, zSql uintptr, z libc.Xmemcpy(tls, zBuf1, (*RenameToken)(unsafe.Pointer(pBest)).Ft.Fz, uint64((*RenameToken)(unsafe.Pointer(pBest)).Ft.Fn)) *(*int8)(unsafe.Pointer(zBuf1 + uintptr((*RenameToken)(unsafe.Pointer(pBest)).Ft.Fn))) = int8(0) Xsqlite3Dequote(tls, zBuf1) - Xsqlite3_snprintf(tls, int32(nSql*int64(2)), zBuf2, ts+12173, libc.VaList(bp+8, zBuf1, + Xsqlite3_snprintf(tls, int32(nSql*int64(2)), zBuf2, ts+12212, libc.VaList(bp+8, zBuf1, func() uintptr { if int32(*(*int8)(unsafe.Pointer((*RenameToken)(unsafe.Pointer(pBest)).Ft.Fz + uintptr((*RenameToken)(unsafe.Pointer(pBest)).Ft.Fn)))) == '\'' { - return ts + 12157 /* " " */ + return ts + 12196 /* " " */ } return ts + 1524 /* "" */ }())) @@ -135716,7 +136409,7 @@ func renameEditSql(tls *libc.TLS, pCtx uintptr, pRename uintptr, zSql uintptr, z // it was read from the schema of database zDb. Return SQLITE_OK if // successful. Otherwise, return an SQLite error code and leave an error // message in the Parse object. -func renameResolveTrigger(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110155:12: */ +func renameResolveTrigger(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111310:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -135754,26 +136447,37 @@ func renameResolveTrigger(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sql if rc == SQLITE_OK && (*TriggerStep)(unsafe.Pointer(pStep)).FzTarget != 0 { var pSrc uintptr = Xsqlite3TriggerStepSrc(tls, pParse, pStep) if pSrc != 0 { - var i int32 - for i = 0; i < (*SrcList)(unsafe.Pointer(pSrc)).FnSrc && rc == SQLITE_OK; i++ { - var p uintptr = pSrc + 8 + uintptr(i)*112 - (*SrcItem)(unsafe.Pointer(p)).FiCursor = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) - if (*SrcItem)(unsafe.Pointer(p)).FpSelect != 0 { - Xsqlite3SelectPrep(tls, pParse, (*SrcItem)(unsafe.Pointer(p)).FpSelect, uintptr(0)) - Xsqlite3ExpandSubquery(tls, pParse, p) - - Xsqlite3SelectPrep(tls, pParse, (*SrcItem)(unsafe.Pointer((*TriggerStep)(unsafe.Pointer(pStep)).FpFrom+8+uintptr(i-1)*112)).FpSelect, uintptr(0)) + var pSel uintptr = Xsqlite3SelectNew(tls, + pParse, (*TriggerStep)(unsafe.Pointer(pStep)).FpExprList, pSrc, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uint32(0), uintptr(0)) + if pSel == uintptr(0) { + (*TriggerStep)(unsafe.Pointer(pStep)).FpExprList = uintptr(0) + pSrc = uintptr(0) + rc = SQLITE_NOMEM + } else { + Xsqlite3SelectPrep(tls, pParse, pSel, uintptr(0)) + if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 { + rc = SQLITE_ERROR } else { - (*SrcItem)(unsafe.Pointer(p)).FpTab = Xsqlite3LocateTableItem(tls, pParse, uint32(0), p) - if (*SrcItem)(unsafe.Pointer(p)).FpTab == uintptr(0) { - rc = SQLITE_ERROR - } else { - (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(p)).FpTab)).FnTabRef++ - rc = Xsqlite3ViewGetColumnNames(tls, pParse, (*SrcItem)(unsafe.Pointer(p)).FpTab) + rc = SQLITE_OK + } + + if (*TriggerStep)(unsafe.Pointer(pStep)).FpExprList != 0 { + (*Select)(unsafe.Pointer(pSel)).FpEList = uintptr(0) + } + (*Select)(unsafe.Pointer(pSel)).FpSrc = uintptr(0) + Xsqlite3SelectDelete(tls, db, pSel) + } + if (*TriggerStep)(unsafe.Pointer(pStep)).FpFrom != 0 { + var i int32 + for i = 0; i < (*SrcList)(unsafe.Pointer((*TriggerStep)(unsafe.Pointer(pStep)).FpFrom)).FnSrc && rc == SQLITE_OK; i++ { + var p uintptr = (*TriggerStep)(unsafe.Pointer(pStep)).FpFrom + 8 + uintptr(i)*104 + if (*SrcItem)(unsafe.Pointer(p)).FpSelect != 0 { + Xsqlite3SelectPrep(tls, pParse, (*SrcItem)(unsafe.Pointer(p)).FpSelect, uintptr(0)) } } } - if rc == SQLITE_OK && (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { + + if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { rc = SQLITE_NOMEM } (*NameContext)(unsafe.Pointer(bp /* &sNC */)).FpSrcList = pSrc @@ -135814,7 +136518,7 @@ func renameResolveTrigger(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sql // Invoke sqlite3WalkExpr() or sqlite3WalkSelect() on all Select or Expr // objects that are part of the trigger passed as the second argument. -func renameWalkTrigger(tls *libc.TLS, pWalker uintptr, pTrigger uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110251:13: */ +func renameWalkTrigger(tls *libc.TLS, pWalker uintptr, pTrigger uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111412:13: */ var pStep uintptr // Find tokens to edit in WHEN clause @@ -135835,7 +136539,7 @@ func renameWalkTrigger(tls *libc.TLS, pWalker uintptr, pTrigger uintptr) { /* te if (*TriggerStep)(unsafe.Pointer(pStep)).FpFrom != 0 { var i int32 for i = 0; i < (*SrcList)(unsafe.Pointer((*TriggerStep)(unsafe.Pointer(pStep)).FpFrom)).FnSrc; i++ { - Xsqlite3WalkSelect(tls, pWalker, (*SrcItem)(unsafe.Pointer((*TriggerStep)(unsafe.Pointer(pStep)).FpFrom+8+uintptr(i)*112)).FpSelect) + Xsqlite3WalkSelect(tls, pWalker, (*SrcItem)(unsafe.Pointer((*TriggerStep)(unsafe.Pointer(pStep)).FpFrom+8+uintptr(i)*104)).FpSelect) } } } @@ -135843,7 +136547,7 @@ func renameWalkTrigger(tls *libc.TLS, pWalker uintptr, pTrigger uintptr) { /* te // Free the contents of Parse object (*pParse). Do not free the memory // occupied by the Parse object itself. -func renameParseCleanup(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110282:13: */ +func renameParseCleanup(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111443:13: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pIdx uintptr if (*Parse)(unsafe.Pointer(pParse)).FpVdbe != 0 { @@ -135862,17 +136566,17 @@ func renameParseCleanup(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amal // SQL function: // -// sqlite_rename_column(SQL,TYPE,OBJ,DB,TABLE,COL,NEWNAME,QUOTE,TEMP) +// sqlite_rename_column(SQL,TYPE,OBJ,DB,TABLE,COL,NEWNAME,QUOTE,TEMP) // -// 0. zSql: SQL statement to rewrite -// 1. type: Type of object ("table", "view" etc.) -// 2. object: Name of object -// 3. Database: Database name (e.g. "main") -// 4. Table: Table name -// 5. iCol: Index of column to rename -// 6. zNew: New column name -// 7. bQuote: Non-zero if the new column name should be quoted. -// 8. bTemp: True if zSql comes from temp schema +// 0. zSql: SQL statement to rewrite +// 1. type: Type of object ("table", "view" etc.) +// 2. object: Name of object +// 3. Database: Database name (e.g. "main") +// 4. Table: Table name +// 5. iCol: Index of column to rename +// 6. zNew: New column name +// 7. bQuote: Non-zero if the new column name should be quoted. +// 8. bTemp: True if zSql comes from temp schema // // Do a column rename operation on the CREATE statement given in zSql. // The iCol-th column (left-most is 0) of table zTable is renamed from zCol @@ -135882,7 +136586,7 @@ func renameParseCleanup(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amal // It is only accessible to SQL created using sqlite3NestedParse(). It is // not reachable from ordinary SQL passed into sqlite3_prepare() unless the // SQLITE_TESTCTRL_INTERNAL_FUNCTIONS test setting is enabled. -func renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110323:13: */ +func renameColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111484:13: */ bp := tls.Alloc(488) defer tls.Free(488) @@ -136225,7 +136929,7 @@ __44: } // Walker expression callback used by "RENAME TABLE". -func renameTableExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110490:12: */ +func renameTableExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111651:12: */ var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_WinFunc|EP_Subrtn) == U32(0) && @@ -136236,7 +136940,7 @@ func renameTableExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* } // Walker select callback used by "RENAME TABLE". -func renameTableSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110504:12: */ +func renameTableSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111665:12: */ var i int32 var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) var pSrc uintptr = (*Select)(unsafe.Pointer(pSelect)).FpSrc @@ -136249,7 +136953,7 @@ func renameTableSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 return WRC_Abort } for i = 0; i < (*SrcList)(unsafe.Pointer(pSrc)).FnSrc; i++ { - var pItem uintptr = pSrc + 8 + uintptr(i)*112 + var pItem uintptr = pSrc + 8 + uintptr(i)*104 if (*SrcItem)(unsafe.Pointer(pItem)).FpTab == (*RenameCtx)(unsafe.Pointer(p)).FpTab { renameTokenFind(tls, (*Walker)(unsafe.Pointer(pWalker)).FpParse, p, (*SrcItem)(unsafe.Pointer(pItem)).FzName) } @@ -136264,19 +136968,20 @@ func renameTableSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 // of any foreign key constraints that use the table being renamed as the // parent table. It is passed three arguments: // -// 0: The database containing the table being renamed. -// 1. type: Type of object ("table", "view" etc.) -// 2. object: Name of object -// 3: The complete text of the schema statement being modified, -// 4: The old name of the table being renamed, and -// 5: The new name of the table being renamed. -// 6: True if the schema statement comes from the temp db. +// 0: The database containing the table being renamed. +// 1. type: Type of object ("table", "view" etc.) +// 2. object: Name of object +// 3: The complete text of the schema statement being modified, +// 4: The old name of the table being renamed, and +// 5: The new name of the table being renamed. +// 6: True if the schema statement comes from the temp db. // // It returns the new schema statement. For example: // // sqlite_rename_table('main', 'CREATE TABLE t1(a REFERENCES t2)','t2','t3',0) -// -> 'CREATE TABLE t1(a REFERENCES t3)' -func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110548:13: */ +// +// -> 'CREATE TABLE t1(a REFERENCES t3)' +func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111709:13: */ bp := tls.Alloc(544) defer tls.Free(544) @@ -136382,6 +137087,15 @@ func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr if (*TriggerStep)(unsafe.Pointer(pStep)).FzTarget != 0 && 0 == Xsqlite3_stricmp(tls, (*TriggerStep)(unsafe.Pointer(pStep)).FzTarget, zOld) { renameTokenFind(tls, bp+80, bp, (*TriggerStep)(unsafe.Pointer(pStep)).FzTarget) } + if (*TriggerStep)(unsafe.Pointer(pStep)).FpFrom != 0 { + var i int32 + for i = 0; i < (*SrcList)(unsafe.Pointer((*TriggerStep)(unsafe.Pointer(pStep)).FpFrom)).FnSrc; i++ { + var pItem uintptr = (*TriggerStep)(unsafe.Pointer(pStep)).FpFrom + 8 + uintptr(i)*104 + if 0 == Xsqlite3_stricmp(tls, (*SrcItem)(unsafe.Pointer(pItem)).FzName, zOld) { + renameTokenFind(tls, bp+80, bp, (*SrcItem)(unsafe.Pointer(pItem)).FzName) + } + } + } } } } @@ -136410,7 +137124,7 @@ func renameTableFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr return } -func renameQuotefixExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110691:12: */ +func renameQuotefixExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111861:12: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_STRING && (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_DblQuoted) != 0 { renameTokenFind(tls, (*Walker)(unsafe.Pointer(pWalker)).FpParse, *(*uintptr)(unsafe.Pointer(pWalker + 40)), pExpr) } @@ -136424,26 +137138,26 @@ func renameQuotefixExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { // // Two arguments must be passed: // -// 0: Database name ("main", "temp" etc.). -// 1: SQL statement to edit. +// 0: Database name ("main", "temp" etc.). +// 1: SQL statement to edit. // // The returned value is the modified SQL statement. For example, given // the database schema: // -// CREATE TABLE t1(a, b, c); +// CREATE TABLE t1(a, b, c); // -// SELECT sqlite_rename_quotefix('main', -// 'CREATE VIEW v1 AS SELECT "a", "string" FROM t1' -// ); +// SELECT sqlite_rename_quotefix('main', +// 'CREATE VIEW v1 AS SELECT "a", "string" FROM t1' +// ); // // returns the string: // -// CREATE VIEW v1 AS SELECT "a", 'string' FROM t1 +// CREATE VIEW v1 AS SELECT "a", 'string' FROM t1 // // If there is a error in the input SQL, then raise an error, except // if PRAGMA writable_schema=ON, then just return the input string // unmodified following an error. -func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110725:13: */ +func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:111895:13: */ bp := tls.Alloc(488) defer tls.Free(488) @@ -136542,22 +137256,22 @@ func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uint // reloaded, this function is called on each SQL statement in the schema // to ensure that it is still usable. // -// 0: Database name ("main", "temp" etc.). -// 1: SQL statement. -// 2: Object type ("view", "table", "trigger" or "index"). -// 3: Object name. -// 4: True if object is from temp schema. -// 5: "when" part of error message. -// 6: True to disable the DQS quirk when parsing SQL. +// 0: Database name ("main", "temp" etc.). +// 1: SQL statement. +// 2: Object type ("view", "table", "trigger" or "index"). +// 3: Object name. +// 4: True if object is from temp schema. +// 5: "when" part of error message. +// 6: True to disable the DQS quirk when parsing SQL. // // The return value is computed as follows: // -// A. If an error is seen and not in PRAGMA writable_schema=ON mode, -// then raise the error. -// B. Else if a trigger is created and the the table that the trigger is -// attached to is in database zDb, then return 1. -// C. Otherwise return NULL. -func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110838:13: */ +// A. If an error is seen and not in PRAGMA writable_schema=ON mode, +// then raise the error. +// B. Else if a trigger is created and the the table that the trigger is +// attached to is in database zDb, then return 1. +// C. Otherwise return NULL. +func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112008:13: */ bp := tls.Alloc(464) defer tls.Free(464) @@ -136623,13 +137337,13 @@ func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr // // Arguments: // -// argv[0]: An integer - the index of the schema containing the table -// argv[1]: CREATE TABLE statement to modify. -// argv[2]: An integer - the index of the column to remove. +// argv[0]: An integer - the index of the schema containing the table +// argv[1]: CREATE TABLE statement to modify. +// argv[2]: An integer - the index of the column to remove. // // The value returned is a string containing the CREATE TABLE statement // with column argv[2] removed. -func dropColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110913:13: */ +func dropColumnFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112083:13: */ bp := tls.Alloc(432) defer tls.Free(432) @@ -136669,7 +137383,7 @@ __1: goto __2 } // This can happen if the sqlite_schema table is corrupt - rc = Xsqlite3CorruptError(tls, 110941) + rc = Xsqlite3CorruptError(tls, 112111) goto drop_column_done __2: ; @@ -136695,7 +137409,7 @@ __6: __4: ; - zNew = Xsqlite3MPrintf(tls, db, ts+12178, libc.VaList(bp, (int64((*RenameToken)(unsafe.Pointer(pCol)).Ft.Fz)-int64(zSql))/1, zSql, zEnd)) + zNew = Xsqlite3MPrintf(tls, db, ts+12217, libc.VaList(bp, (int64((*RenameToken)(unsafe.Pointer(pCol)).Ft.Fz)-int64(zSql))/1, zSql, zEnd)) Xsqlite3_result_text(tls, context, zNew, -1, libc.UintptrFromInt32(-1)) Xsqlite3_free(tls, zNew) @@ -136711,11 +137425,11 @@ __7: // This function is called by the parser upon parsing an // -// ALTER TABLE pSrc DROP COLUMN pName +// ALTER TABLE pSrc DROP COLUMN pName // // statement. Argument pSrc contains the possibly qualified name of the // table being edited, and token pName the name of the column to drop. -func Xsqlite3AlterDropColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:110978:21: */ +func Xsqlite3AlterDropColumn(tls *libc.TLS, pParse uintptr, pSrc uintptr, pName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112148:21: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -136783,7 +137497,7 @@ __5: if !(iCol < 0) { goto __6 } - Xsqlite3ErrorMsg(tls, pParse, ts+11800, libc.VaList(bp, pName)) + Xsqlite3ErrorMsg(tls, pParse, ts+11839, libc.VaList(bp, pName)) goto exit_drop_column __6: ; @@ -136793,12 +137507,12 @@ __6: if !(int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(iCol)*24)).FcolFlags)&(COLFLAG_PRIMKEY|COLFLAG_UNIQUE) != 0) { goto __7 } - Xsqlite3ErrorMsg(tls, pParse, ts+12185, + Xsqlite3ErrorMsg(tls, pParse, ts+12224, libc.VaList(bp+8, func() uintptr { if int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(iCol)*24)).FcolFlags)&COLFLAG_PRIMKEY != 0 { - return ts + 12213 /* "PRIMARY KEY" */ + return ts + 12252 /* "PRIMARY KEY" */ } - return ts + 7430 /* "UNIQUE" */ + return ts + 7465 /* "UNIQUE" */ }(), zCol)) goto exit_drop_column @@ -136809,7 +137523,7 @@ __7: if !(int32((*Table)(unsafe.Pointer(pTab)).FnCol) <= 1) { goto __8 } - Xsqlite3ErrorMsg(tls, pParse, ts+12225, libc.VaList(bp+24, zCol)) + Xsqlite3ErrorMsg(tls, pParse, ts+12264, libc.VaList(bp+24, zCol)) goto exit_drop_column __8: ; @@ -136829,11 +137543,11 @@ __9: renameFixQuotes(tls, pParse, zDb, libc.Bool32(iDb == 1)) Xsqlite3NestedParse(tls, pParse, - ts+12273, libc.VaList(bp+32, zDb, iDb, iCol, (*Table)(unsafe.Pointer(pTab)).FzName)) + ts+12312, libc.VaList(bp+32, zDb, iDb, iCol, (*Table)(unsafe.Pointer(pTab)).FzName)) // Drop and reload the database schema. renameReloadSchema(tls, pParse, iDb, uint16(INITFLAG_AlterDrop)) - renameTestSchema(tls, pParse, zDb, libc.Bool32(iDb == 1), ts+12394, 1) + renameTestSchema(tls, pParse, zDb, libc.Bool32(iDb == 1), ts+12433, 1) // Edit rows of table on disk if !((*Parse)(unsafe.Pointer(pParse)).FnErr == 0 && int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(iCol)*24)).FcolFlags)&COLFLAG_VIRTUAL == 0) { @@ -136948,16 +137662,16 @@ exit_drop_column: } // Register built-in functions used to help implement ALTER TABLE -func Xsqlite3AlterFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111120:21: */ +func Xsqlite3AlterFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112290:21: */ Xsqlite3InsertBuiltinFuncs(tls, uintptr(unsafe.Pointer(&aAlterTableFuncs)), int32(uint64(unsafe.Sizeof(aAlterTableFuncs))/uint64(unsafe.Sizeof(FuncDef{})))) } var aAlterTableFuncs = [5]FuncDef{ - {FnArg: int8(9), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12412}, - {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12433}, - {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12453}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12472}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12491}} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111121:18 */ + {FnArg: int8(9), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12451}, + {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12472}, + {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12492}, + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12511}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 12530}} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112291:18 */ //************* End of alter.c ********************************************** //************* Begin file analyze.c **************************************** @@ -137113,7 +137827,7 @@ var aAlterTableFuncs = [5]FuncDef{ // or it may be a NULL pointer. If it is not NULL, then all entries in // the sqlite_statN tables associated with the named table are deleted. // If zWhere==0, then code is generated to delete all stat table entries. -func openStatTable(tls *libc.TLS, pParse uintptr, iDb int32, iStatCur int32, zWhere uintptr, zWhereType uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111299:13: */ +func openStatTable(tls *libc.TLS, pParse uintptr, iDb int32, iStatCur int32, zWhere uintptr, zWhereType uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112469:13: */ bp := tls.Alloc(88) defer tls.Free(88) @@ -137154,7 +137868,7 @@ func openStatTable(tls *libc.TLS, pParse uintptr, iDb int32, iStatCur int32, zWh // of the new table in register pParse->regRoot. This is important // because the OpenWrite opcode below will be needing it. Xsqlite3NestedParse(tls, pParse, - ts+12514, libc.VaList(bp, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab, aTable[i].FzCols)) + ts+12553, libc.VaList(bp, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab, aTable[i].FzCols)) *(*U32)(unsafe.Pointer(bp + 76 + uintptr(i)*4)) = U32((*Parse)(unsafe.Pointer(pParse)).FregRoot) *(*U8)(unsafe.Pointer(bp + 72 + uintptr(i))) = U8(OPFLAG_P2ISREG) } @@ -137166,10 +137880,10 @@ func openStatTable(tls *libc.TLS, pParse uintptr, iDb int32, iStatCur int32, zWh Xsqlite3TableLock(tls, pParse, iDb, *(*U32)(unsafe.Pointer(bp + 76 + uintptr(i)*4)), uint8(1), zTab) if zWhere != 0 { Xsqlite3NestedParse(tls, pParse, - ts+12537, + ts+12576, libc.VaList(bp+24, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab, zWhereType, zWhere)) } else if (*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 { - Xsqlite3NestedParse(tls, pParse, ts+12567, libc.VaList(bp+56, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab)) + Xsqlite3NestedParse(tls, pParse, ts+12606, libc.VaList(bp+56, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab)) } else { // The sqlite_stat[134] table already exists. Delete all rows. Xsqlite3VdbeAddOp2(tls, v, OP_Clear, int32(*(*U32)(unsafe.Pointer(bp + 76 + uintptr(i)*4))), iDb) @@ -137190,10 +137904,10 @@ var aTable = [3]struct { FzName uintptr FzCols uintptr }{ - {FzName: ts + 12585 /* "sqlite_stat1" */, FzCols: ts + 12598 /* "tbl,idx,stat" */}, - {FzName: ts + 12611 /* "sqlite_stat4" */, FzCols: ts + 12624 /* "tbl,idx,neq,nlt,..." */}, - {FzName: ts + 12652 /* "sqlite_stat3" */}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111309:5 */ + {FzName: ts + 12624 /* "sqlite_stat1" */, FzCols: ts + 12637 /* "tbl,idx,stat" */}, + {FzName: ts + 12650 /* "sqlite_stat4" */, FzCols: ts + 12663 /* "tbl,idx,neq,nlt,..." */}, + {FzName: ts + 12691 /* "sqlite_stat3" */}, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112479:5 */ // Recommended number of samples for sqlite_stat4 @@ -137220,14 +137934,14 @@ type StatAccum1 = struct { FnMaxEqZero int32 FiGet int32 Fa uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111397:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112567:9 */ // Recommended number of samples for sqlite_stat4 // Three SQL functions - stat_init(), stat_push(), and stat_get() - // share an instance of the following structure to hold their state // information. -type StatAccum = StatAccum1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111397:26 */ +type StatAccum = StatAccum1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112567:26 */ type StatSample1 = struct { FanEq uintptr FanDLt uintptr @@ -137238,12 +137952,12 @@ type StatSample1 = struct { F__ccgo_pad1 [3]byte FiCol int32 FiHash U32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111397:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112567:9 */ -type StatSample = StatSample1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111398:27 */ +type StatSample = StatSample1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112568:27 */ // Reclaim memory used by a StatSample -func sampleClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111439:13: */ +func sampleClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112609:13: */ if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 { Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24))) @@ -137252,7 +137966,7 @@ func sampleClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amal } // Initialize the BLOB value of a ROWID -func sampleSetRowid(tls *libc.TLS, db uintptr, p uintptr, n int32, pData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111451:13: */ +func sampleSetRowid(tls *libc.TLS, db uintptr, p uintptr, n int32, pData uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112621:13: */ if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 { Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24))) @@ -137267,7 +137981,7 @@ func sampleSetRowid(tls *libc.TLS, db uintptr, p uintptr, n int32, pData uintptr } // Initialize the INTEGER value of a ROWID. -func sampleSetRowidInt64(tls *libc.TLS, db uintptr, p uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111467:13: */ +func sampleSetRowidInt64(tls *libc.TLS, db uintptr, p uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112637:13: */ if (*StatSample)(unsafe.Pointer(p)).FnRowid != 0 { Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(p + 24))) @@ -137277,7 +137991,7 @@ func sampleSetRowidInt64(tls *libc.TLS, db uintptr, p uintptr, iRowid I64) { /* } // Copy the contents of object (*pFrom) into (*pTo). -func sampleCopy(tls *libc.TLS, p uintptr, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111480:13: */ +func sampleCopy(tls *libc.TLS, p uintptr, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112650:13: */ (*StatSample)(unsafe.Pointer(pTo)).FisPSample = (*StatSample)(unsafe.Pointer(pFrom)).FisPSample (*StatSample)(unsafe.Pointer(pTo)).FiCol = (*StatSample)(unsafe.Pointer(pFrom)).FiCol (*StatSample)(unsafe.Pointer(pTo)).FiHash = (*StatSample)(unsafe.Pointer(pFrom)).FiHash @@ -137292,7 +138006,7 @@ func sampleCopy(tls *libc.TLS, p uintptr, pTo uintptr, pFrom uintptr) { /* testd } // Reclaim all memory of a StatAccum structure. -func statAccumDestructor(tls *libc.TLS, pOld uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111498:13: */ +func statAccumDestructor(tls *libc.TLS, pOld uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112668:13: */ var p uintptr = pOld if (*StatAccum)(unsafe.Pointer(p)).FmxSample != 0 { var i int32 @@ -137309,10 +138023,11 @@ func statAccumDestructor(tls *libc.TLS, pOld uintptr) { /* testdata/sqlite-amalg // Implementation of the stat_init(N,K,C,L) SQL function. The four parameters // are: -// N: The number of columns in the index including the rowid/pk (note 1) -// K: The number of columns in the index excluding the rowid/pk. -// C: Estimated number of rows in the index -// L: A limit on the number of rows to scan, or 0 for no-limit +// +// N: The number of columns in the index including the rowid/pk (note 1) +// K: The number of columns in the index excluding the rowid/pk. +// C: Estimated number of rows in the index +// L: A limit on the number of rows to scan, or 0 for no-limit // // Note 1: In the special case of the covering index that implements a // WITHOUT ROWID table, N is the number of PRIMARY KEY columns, not the @@ -137327,7 +138042,7 @@ func statAccumDestructor(tls *libc.TLS, pOld uintptr) { /* testdata/sqlite-amalg // value is a pointer to the StatAccum object. The datatype of the // return value is BLOB, but it is really just a pointer to the StatAccum // object. -func statInit(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111533:13: */ +func statInit(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112703:13: */ var p uintptr var nCol int32 // Number of columns in index being sampled var nKeyCol int32 // Number of key columns @@ -137422,7 +138137,7 @@ var statInitFuncdef = FuncDef{ FnArg: int8(4), // nArg FfuncFlags: U32(SQLITE_UTF8), // pNext FxSFunc: 0, // xValue, xInverse - FzName: ts + 12665} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111619:22 */ + FzName: ts + 12704} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112789:22 */ // pNew and pOld are both candidate non-periodic samples selected for // the same column (pNew->iCol==pOld->iCol). Ignoring this column and @@ -137433,7 +138148,7 @@ var statInitFuncdef = FuncDef{ // // This function assumes that for each argument sample, the contents of // the anEq[] array from pSample->anEq[pSample->iCol+1] onwards are valid. -func sampleIsBetterPost(tls *libc.TLS, pAccum uintptr, pNew uintptr, pOld uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111643:12: */ +func sampleIsBetterPost(tls *libc.TLS, pAccum uintptr, pNew uintptr, pOld uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112813:12: */ var nCol int32 = (*StatAccum)(unsafe.Pointer(pAccum)).FnCol var i int32 @@ -137455,7 +138170,7 @@ func sampleIsBetterPost(tls *libc.TLS, pAccum uintptr, pNew uintptr, pOld uintpt // // This function assumes that for each argument sample, the contents of // the anEq[] array from pSample->anEq[pSample->iCol] onwards are valid. -func sampleIsBetter(tls *libc.TLS, pAccum uintptr, pNew uintptr, pOld uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111667:12: */ +func sampleIsBetter(tls *libc.TLS, pAccum uintptr, pNew uintptr, pOld uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112837:12: */ var nEqNew TRowcnt = *(*TRowcnt)(unsafe.Pointer((*StatSample)(unsafe.Pointer(pNew)).FanEq + uintptr((*StatSample)(unsafe.Pointer(pNew)).FiCol)*4)) var nEqOld TRowcnt = *(*TRowcnt)(unsafe.Pointer((*StatSample)(unsafe.Pointer(pOld)).FanEq + uintptr((*StatSample)(unsafe.Pointer(pOld)).FiCol)*4)) @@ -137473,7 +138188,7 @@ func sampleIsBetter(tls *libc.TLS, pAccum uintptr, pNew uintptr, pOld uintptr) i // Copy the contents of sample *pNew into the p->a[] array. If necessary, // remove the least desirable sample from p->a[] to make room. -func sampleInsert(tls *libc.TLS, p uintptr, pNew uintptr, nEqZero int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111690:13: */ +func sampleInsert(tls *libc.TLS, p uintptr, pNew uintptr, nEqZero int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112860:13: */ var pSample uintptr var i int32 var pOld uintptr @@ -137616,7 +138331,7 @@ __11: // p->current contains a sample that reflects the previous row of the // index. The value of anEq[iChng] and subsequent anEq[] elements are // correct at this point. -func samplePushPrevious(tls *libc.TLS, p uintptr, iChng int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111782:13: */ +func samplePushPrevious(tls *libc.TLS, p uintptr, iChng int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112952:13: */ var i int32 // Check if any samples from the aBest[] array should be pushed @@ -137654,10 +138369,10 @@ func samplePushPrevious(tls *libc.TLS, p uintptr, iChng int32) { /* testdata/sql // Implementation of the stat_push SQL function: stat_push(P,C,R) // Arguments: // -// P Pointer to the StatAccum object created by stat_init() -// C Index of left-most column to differ from previous row -// R Rowid for the current row. Might be a key record for -// WITHOUT ROWID tables. +// P Pointer to the StatAccum object created by stat_init() +// C Index of left-most column to differ from previous row +// R Rowid for the current row. Might be a key record for +// WITHOUT ROWID tables. // // The purpose of this routine is to collect statistical data and/or // samples from the index being analyzed into the StatAccum object. @@ -137668,7 +138383,7 @@ func samplePushPrevious(tls *libc.TLS, p uintptr, iChng int32) { /* testdata/sql // if it wants the byte-code to do special processing. // // The R parameter is only used for STAT4 -func statPush(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111834:13: */ +func statPush(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113004:13: */ var i int32 // The three function arguments @@ -137740,7 +138455,7 @@ var statPushFuncdef = FuncDef{ FnArg: int8(2 + IsStat4), FfuncFlags: U32(SQLITE_UTF8), // pNext FxSFunc: 0, // xValue, xInverse - FzName: ts + 12675} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111909:22 */ + FzName: ts + 12714} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113079:22 */ // Implementation of the stat_get(P,J) SQL function. This routine is // used to query statistical information that has been gathered into @@ -137759,7 +138474,7 @@ var statPushFuncdef = FuncDef{ // STAT_GET_STAT1 and is hence omitted and this routine becomes // a one-parameter function, stat_get(P), that always returns the // stat1 table entry information. -func statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111946:13: */ +func statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113116:13: */ bp := tls.Alloc(88) defer tls.Free(88) @@ -137785,15 +138500,20 @@ func statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test // * "WHERE a=? AND b=?" matches 2 rows. // // If D is the count of distinct values and K is the total number of - // rows, then each estimate is computed as: + // rows, then each estimate is usually computed as: // // I = (K+D-1)/D + // + // In other words, I is K/D rounded up to the next whole integer. + // However, if I is between 1.0 and 1.1 (in other words if I is + // close to 1.0 but just a little larger) then do not round up but + // instead keep the I value at 1.0. // var sStat Sqlite3_str at bp+24, 32 // Text of the constructed "stat" line var i int32 // Loop counter Xsqlite3StrAccumInit(tls, bp+24, uintptr(0), uintptr(0), 0, ((*StatAccum)(unsafe.Pointer(p)).FnKeyCol+1)*100) - Xsqlite3_str_appendf(tls, bp+24, ts+12685, + Xsqlite3_str_appendf(tls, bp+24, ts+12724, libc.VaList(bp, func() uint64 { if (*StatAccum)(unsafe.Pointer(p)).FnSkipAhead != 0 { return U64((*StatAccum)(unsafe.Pointer(p)).FnEst) @@ -137803,7 +138523,10 @@ func statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test for i = 0; i < (*StatAccum)(unsafe.Pointer(p)).FnKeyCol; i++ { var nDistinct U64 = U64(*(*TRowcnt)(unsafe.Pointer((*StatAccum)(unsafe.Pointer(p)).Fcurrent.FanDLt + uintptr(i)*4)) + TRowcnt(1)) var iVal U64 = (U64((*StatAccum)(unsafe.Pointer(p)).FnRow) + nDistinct - uint64(1)) / nDistinct - Xsqlite3_str_appendf(tls, bp+24, ts+12690, libc.VaList(bp+8, iVal)) + if iVal == uint64(2) && U64((*StatAccum)(unsafe.Pointer(p)).FnRow*TRowcnt(10)) <= nDistinct*uint64(11) { + iVal = uint64(1) + } + Xsqlite3_str_appendf(tls, bp+24, ts+12729, libc.VaList(bp+8, iVal)) } Xsqlite3ResultStrAccum(tls, context, bp+24) @@ -137846,7 +138569,7 @@ func statGet(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test } Xsqlite3StrAccumInit(tls, bp+56, uintptr(0), uintptr(0), 0, (*StatAccum)(unsafe.Pointer(p)).FnCol*100) for i = 0; i < (*StatAccum)(unsafe.Pointer(p)).FnCol; i++ { - Xsqlite3_str_appendf(tls, bp+56, ts+12696, libc.VaList(bp+16, U64(*(*TRowcnt)(unsafe.Pointer(aCnt + uintptr(i)*4))))) + Xsqlite3_str_appendf(tls, bp+56, ts+12735, libc.VaList(bp+16, U64(*(*TRowcnt)(unsafe.Pointer(aCnt + uintptr(i)*4))))) } if (*Sqlite3_str)(unsafe.Pointer(bp+56)).FnChar != 0 { (*Sqlite3_str)(unsafe.Pointer(bp+56 /* &sStat */)).FnChar-- @@ -137860,9 +138583,9 @@ var statGetFuncdef = FuncDef{ FnArg: int8(1 + IsStat4), FfuncFlags: U32(SQLITE_UTF8), // pNext FxSFunc: 0, // xValue, xInverse - FzName: ts + 12702} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112043:22 */ + FzName: ts + 12741} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113219:22 */ -func callStatGet(tls *libc.TLS, pParse uintptr, regStat int32, iParam int32, regOut int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112055:13: */ +func callStatGet(tls *libc.TLS, pParse uintptr, regStat int32, iParam int32, regOut int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113231:13: */ Xsqlite3VdbeAddOp2(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_Integer, iParam, regStat+1) Xsqlite3VdbeAddFunctionCall(tls, pParse, 0, regStat, regOut, 1+IsStat4, @@ -137871,7 +138594,7 @@ func callStatGet(tls *libc.TLS, pParse uintptr, regStat int32, iParam int32, reg // Generate code to do an analysis of all indices associated with // a single table. -func analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr, iStatCur int32, iMem int32, iTab int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112096:13: */ +func analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr, iStatCur int32, iMem int32, iTab int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113272:13: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb // Database handle var pIdx uintptr // An index to being analyzed var iIdxCur int32 // Cursor open on index being analyzed @@ -137907,7 +138630,7 @@ func analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintp // Do not gather statistics on views or virtual tables return } - if Xsqlite3_strlike(tls, ts+12711, (*Table)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 { + if Xsqlite3_strlike(tls, ts+12750, (*Table)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 { // Do not gather statistics on system tables return } @@ -137925,10 +138648,10 @@ func analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintp return } (*Table)(unsafe.Pointer(pStat1)).FzName = pStat1 + 1*104 - libc.Xmemcpy(tls, (*Table)(unsafe.Pointer(pStat1)).FzName, ts+12585, uint64(13)) + libc.Xmemcpy(tls, (*Table)(unsafe.Pointer(pStat1)).FzName, ts+12624, uint64(13)) (*Table)(unsafe.Pointer(pStat1)).FnCol = int16(3) (*Table)(unsafe.Pointer(pStat1)).FiPKey = int16(-1) - Xsqlite3VdbeAddOp4(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_Noop, 0, 0, 0, pStat1, -17) + Xsqlite3VdbeAddOp4(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_Noop, 0, 0, 0, pStat1, -6) } // Establish a read-lock on the table at the shared-cache level. @@ -138158,10 +138881,10 @@ func analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintp // Add the entry to the stat1 table. callStatGet(tls, pParse, regStat, STAT_GET_STAT1, regStat1) - Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+12721, 0) + Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+12760, 0) Xsqlite3VdbeAddOp2(tls, v, OP_NewRowid, iStatCur, regNewRowid) Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iStatCur, regTemp, regNewRowid) - Xsqlite3VdbeChangeP4(tls, v, -1, pStat1, -6) + Xsqlite3VdbeChangeP4(tls, v, -1, pStat1, -5) Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_APPEND)) // Add the entries to the stat4 table. @@ -138220,18 +138943,18 @@ func analyzeOneTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintp jZeroRows = Xsqlite3VdbeAddOp1(tls, v, OP_IfNot, regStat1) Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regIdxname) - Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+12721, 0) + Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+12760, 0) Xsqlite3VdbeAddOp2(tls, v, OP_NewRowid, iStatCur, regNewRowid) Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iStatCur, regTemp, regNewRowid) Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_APPEND)) - Xsqlite3VdbeChangeP4(tls, v, -1, pStat1, -6) + Xsqlite3VdbeChangeP4(tls, v, -1, pStat1, -5) Xsqlite3VdbeJumpHere(tls, v, jZeroRows) } } // Generate code that will cause the most recent index analysis to // be loaded into internal hash tables where is can be used. -func loadAnalysis(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112458:13: */ +func loadAnalysis(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113634:13: */ var v uintptr = Xsqlite3GetVdbe(tls, pParse) if v != 0 { Xsqlite3VdbeAddOp1(tls, v, OP_LoadAnalysis, iDb) @@ -138239,7 +138962,7 @@ func loadAnalysis(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite } // Generate code that will do an analysis of an entire database -func analyzeDatabase(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112468:13: */ +func analyzeDatabase(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113644:13: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pSchema uintptr = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FpSchema // Schema of database iDb var k uintptr @@ -138264,7 +138987,7 @@ func analyzeDatabase(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sql // Generate code that will do an analysis of a single table in // a database. If pOnlyIdx is not NULL then it is a single index // in pTab that should be analyzed. -func analyzeTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112495:13: */ +func analyzeTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113671:13: */ var iDb int32 var iStatCur int32 @@ -138273,9 +138996,9 @@ func analyzeTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr) iStatCur = (*Parse)(unsafe.Pointer(pParse)).FnTab *(*int32)(unsafe.Pointer(pParse + 52)) += 3 if pOnlyIdx != 0 { - openStatTable(tls, pParse, iDb, iStatCur, (*Index)(unsafe.Pointer(pOnlyIdx)).FzName, ts+12725) + openStatTable(tls, pParse, iDb, iStatCur, (*Index)(unsafe.Pointer(pOnlyIdx)).FzName, ts+12764) } else { - openStatTable(tls, pParse, iDb, iStatCur, (*Table)(unsafe.Pointer(pTab)).FzName, ts+12729) + openStatTable(tls, pParse, iDb, iStatCur, (*Table)(unsafe.Pointer(pTab)).FzName, ts+12768) } analyzeOneTable(tls, pParse, pTab, pOnlyIdx, iStatCur, (*Parse)(unsafe.Pointer(pParse)).FnMem+1, (*Parse)(unsafe.Pointer(pParse)).FnTab) loadAnalysis(tls, pParse, iDb) @@ -138284,14 +139007,14 @@ func analyzeTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr) // Generate code for the ANALYZE command. The parser calls this routine // when it recognizes an ANALYZE command. // -// ANALYZE -- 1 -// ANALYZE <database> -- 2 -// ANALYZE ?<database>.?<tablename> -- 3 +// ANALYZE -- 1 +// ANALYZE <database> -- 2 +// ANALYZE ?<database>.?<tablename> -- 3 // // Form 1 causes all indices in all attached databases to be analyzed. // Form 2 analyzes all indices the single database named. // Form 3 analyzes all indices associated with the named table. -func Xsqlite3Analyze(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112526:21: */ +func Xsqlite3Analyze(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113702:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -138354,16 +139077,16 @@ func Xsqlite3Analyze(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp type analysisInfo = struct { Fdb uintptr FzDatabase uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112578:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113754:9 */ // Used to pass information from the analyzer reader through to the // callback routine. -type AnalysisInfo = analysisInfo /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112578:29 */ +type AnalysisInfo = analysisInfo /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113754:29 */ // The first argument points to a nul-terminated string containing a // list of space separated integers. Read the first nOut of these into // the array aOut[]. -func decodeIntArray(tls *libc.TLS, zIntArray uintptr, nOut int32, aOut uintptr, aLog uintptr, pIndex uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112589:13: */ +func decodeIntArray(tls *libc.TLS, zIntArray uintptr, nOut int32, aOut uintptr, aLog uintptr, pIndex uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113765:13: */ var z uintptr = zIntArray var c int32 var i int32 @@ -138392,15 +139115,15 @@ func decodeIntArray(tls *libc.TLS, zIntArray uintptr, nOut int32, aOut uintptr, libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(0), 2, 0x4) libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(0), 6, 0x40) for *(*int8)(unsafe.Pointer(z)) != 0 { - if Xsqlite3_strglob(tls, ts+12733, z) == 0 { + if Xsqlite3_strglob(tls, ts+12772, z) == 0 { libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(1), 2, 0x4) - } else if Xsqlite3_strglob(tls, ts+12744, z) == 0 { + } else if Xsqlite3_strglob(tls, ts+12783, z) == 0 { var sz int32 = Xsqlite3Atoi(tls, z+uintptr(3)) if sz < 2 { sz = 2 } (*Index)(unsafe.Pointer(pIndex)).FszIdxRow = Xsqlite3LogEst(tls, uint64(sz)) - } else if Xsqlite3_strglob(tls, ts+12754, z) == 0 { + } else if Xsqlite3_strglob(tls, ts+12793, z) == 0 { libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(1), 6, 0x40) } for int32(*(*int8)(unsafe.Pointer(z))) != 0 && int32(*(*int8)(unsafe.Pointer(z))) != ' ' { @@ -138416,13 +139139,13 @@ func decodeIntArray(tls *libc.TLS, zIntArray uintptr, nOut int32, aOut uintptr, // This callback is invoked once for each index when reading the // sqlite_stat1 table. // -// argv[0] = name of the table -// argv[1] = name of the index (might be NULL) -// argv[2] = results of analysis - on integer for each column +// argv[0] = name of the table +// argv[1] = name of the index (might be NULL) +// argv[2] = results of analysis - on integer for each column // // Entries for which argv[1]==NULL simply record the number of rows in // the table. -func analysisLoader(tls *libc.TLS, pData uintptr, argc int32, argv uintptr, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112662:12: */ +func analysisLoader(tls *libc.TLS, pData uintptr, argc int32, argv uintptr, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113838:12: */ bp := tls.Alloc(152) defer tls.Free(152) @@ -138484,7 +139207,7 @@ func analysisLoader(tls *libc.TLS, pData uintptr, argc int32, argv uintptr, NotU // If the Index.aSample variable is not NULL, delete the aSample[] array // and its contents. -func Xsqlite3DeleteIndexSamples(tls *libc.TLS, db uintptr, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112725:21: */ +func Xsqlite3DeleteIndexSamples(tls *libc.TLS, db uintptr, pIdx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113901:21: */ if (*Index)(unsafe.Pointer(pIdx)).FaSample != 0 { var j int32 for j = 0; j < (*Index)(unsafe.Pointer(pIdx)).FnSample; j++ { @@ -138501,7 +139224,7 @@ func Xsqlite3DeleteIndexSamples(tls *libc.TLS, db uintptr, pIdx uintptr) { /* te // Populate the pIdx->aAvgEq[] array based on the samples currently // stored in pIdx->aSample[]. -func initAvgEq(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112750:13: */ +func initAvgEq(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113926:13: */ if pIdx != 0 { var aSample uintptr = (*Index)(unsafe.Pointer(pIdx)).FaSample var pFinal uintptr = aSample + uintptr((*Index)(unsafe.Pointer(pIdx)).FnSample-1)*40 @@ -138559,7 +139282,7 @@ func initAvgEq(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-33 // Look up an index by name. Or, if the name of a WITHOUT ROWID table // is supplied instead, find the PRIMARY KEY index for that table. -func findIndexOrPrimaryKey(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112809:14: */ +func findIndexOrPrimaryKey(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:113985:14: */ var pIdx uintptr = Xsqlite3FindIndex(tls, db, zName, zDb) if pIdx == uintptr(0) { var pTab uintptr = Xsqlite3FindTable(tls, db, zName, zDb) @@ -138576,11 +139299,11 @@ func findIndexOrPrimaryKey(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr // Arguments zSql1 and zSql2 must point to SQL statements that return // data equivalent to the following: // -// zSql1: SELECT idx,count(*) FROM %Q.sqlite_stat4 GROUP BY idx -// zSql2: SELECT idx,neq,nlt,ndlt,sample FROM %Q.sqlite_stat4 +// zSql1: SELECT idx,count(*) FROM %Q.sqlite_stat4 GROUP BY idx +// zSql2: SELECT idx,neq,nlt,ndlt,sample FROM %Q.sqlite_stat4 // // where %Q is replaced with the database name before the SQL is executed. -func loadStatTbl(tls *libc.TLS, db uintptr, zSql1 uintptr, zSql2 uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112834:12: */ +func loadStatTbl(tls *libc.TLS, db uintptr, zSql1 uintptr, zSql2 uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114010:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -138716,15 +139439,15 @@ func loadStatTbl(tls *libc.TLS, db uintptr, zSql1 uintptr, zSql2 uintptr, zDb ui // Load content from the sqlite_stat4 table into // the Index.aSample[] arrays of all indices. -func loadStat4(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112955:12: */ +func loadStat4(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114131:12: */ var rc int32 = SQLITE_OK // Result codes from subroutines var pStat4 uintptr - if libc.AssignUintptr(&pStat4, Xsqlite3FindTable(tls, db, ts+12611, zDb)) != uintptr(0) && + if libc.AssignUintptr(&pStat4, Xsqlite3FindTable(tls, db, ts+12650, zDb)) != uintptr(0) && int32((*Table)(unsafe.Pointer(pStat4)).FeTabType) == TABTYP_NORM { rc = loadStatTbl(tls, db, - ts+12766, - ts+12820, + ts+12805, + ts+12859, zDb) } return rc @@ -138748,7 +139471,7 @@ func loadStat4(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* testdata/sqlit // If an OOM error occurs, this function always sets db->mallocFailed. // This means if the caller does not care about other errors, the return // code may be ignored. -func Xsqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112993:20: */ +func Xsqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114169:20: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -138776,10 +139499,10 @@ func Xsqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) int32 { /* testd // Load new statistics out of the sqlite_stat1 table (*AnalysisInfo)(unsafe.Pointer(bp + 8 /* &sInfo */)).Fdb = db (*AnalysisInfo)(unsafe.Pointer(bp + 8 /* &sInfo */)).FzDatabase = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName - if libc.AssignUintptr(&pStat1, Xsqlite3FindTable(tls, db, ts+12585, (*AnalysisInfo)(unsafe.Pointer(bp+8)).FzDatabase)) != 0 && + if libc.AssignUintptr(&pStat1, Xsqlite3FindTable(tls, db, ts+12624, (*AnalysisInfo)(unsafe.Pointer(bp+8)).FzDatabase)) != 0 && int32((*Table)(unsafe.Pointer(pStat1)).FeTabType) == TABTYP_NORM { zSql = Xsqlite3MPrintf(tls, db, - ts+12872, libc.VaList(bp, (*AnalysisInfo)(unsafe.Pointer(bp+8 /* &sInfo */)).FzDatabase)) + ts+12911, libc.VaList(bp, (*AnalysisInfo)(unsafe.Pointer(bp+8 /* &sInfo */)).FzDatabase)) if zSql == uintptr(0) { rc = SQLITE_NOMEM } else { @@ -138845,17 +139568,17 @@ func Xsqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) int32 { /* testd // // i.e. if the parser sees: // -// ATTACH DATABASE abc AS def +// ATTACH DATABASE abc AS def // // it treats the two expressions as literal strings 'abc' and 'def' instead of // looking for columns of the same name. // // This only applies to the root node of pExpr, so the statement: // -// ATTACH DATABASE abc||def AS 'db2' +// ATTACH DATABASE abc||def AS 'db2' // // will fail because neither abc or def can be resolved. -func resolveAttachExpr(tls *libc.TLS, pName uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113101:12: */ +func resolveAttachExpr(tls *libc.TLS, pName uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114277:12: */ var rc int32 = SQLITE_OK if pExpr != 0 { if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_ID { @@ -138869,17 +139592,17 @@ func resolveAttachExpr(tls *libc.TLS, pName uintptr, pExpr uintptr) int32 { /* t // Return true if zName points to a name that may be used to refer to // database iDb attached to handle db. -func Xsqlite3DbIsNamed(tls *libc.TLS, db uintptr, iDb int32, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113118:20: */ +func Xsqlite3DbIsNamed(tls *libc.TLS, db uintptr, iDb int32, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114294:20: */ return libc.Bool32(Xsqlite3StrICmp(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, zName) == 0 || - iDb == 0 && Xsqlite3StrICmp(tls, ts+7684, zName) == 0) + iDb == 0 && Xsqlite3StrICmp(tls, ts+7719, zName) == 0) } // An SQL user-function registered to do the work of an ATTACH statement. The // three arguments to the function come directly from an attach statement: // -// ATTACH DATABASE x AS y KEY z +// ATTACH DATABASE x AS y KEY z // -// SELECT sqlite_attach(x, y, z) +// SELECT sqlite_attach(x, y, z) // // If the optional "KEY z" syntax is omitted, an SQL NULL is passed as the // third argument. @@ -138887,7 +139610,7 @@ func Xsqlite3DbIsNamed(tls *libc.TLS, db uintptr, iDb int32, zName uintptr) int3 // If the db->init.reopenMemdb flags is set, then instead of attaching a // new database, close the database on db->init.iDb and reopen it as an // empty MemDB. -func attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113140:13: */ +func attachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114316:13: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -138938,7 +139661,7 @@ __2: // This is not a real ATTACH. Instead, this routine is being called // from sqlite3_deserialize() to close database db->init.iDb and // reopen it as a MemDB - *(*uintptr)(unsafe.Pointer(bp + 32 /* pVfs */)) = Xsqlite3_vfs_find(tls, ts+5138) + *(*uintptr)(unsafe.Pointer(bp + 32 /* pVfs */)) = Xsqlite3_vfs_find(tls, ts+5173) if !(*(*uintptr)(unsafe.Pointer(bp + 32)) == uintptr(0)) { goto __5 } @@ -138954,7 +139677,7 @@ __6: ; (*Db)(unsafe.Pointer(pNew)).FpBt = uintptr(0) (*Db)(unsafe.Pointer(pNew)).FpSchema = uintptr(0) - rc = Xsqlite3BtreeOpen(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pVfs */)), ts+12913, db, pNew+8, 0, SQLITE_OPEN_MAIN_DB) + rc = Xsqlite3BtreeOpen(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pVfs */)), ts+12952, db, pNew+8, 0, SQLITE_OPEN_MAIN_DB) goto __4 __3: // This is a real ATTACH @@ -138967,7 +139690,7 @@ __3: if !((*Sqlite3)(unsafe.Pointer(db)).FnDb >= *(*int32)(unsafe.Pointer(db + 136 + 7*4))+2) { goto __7 } - *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+12916, + *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+12955, libc.VaList(bp, *(*int32)(unsafe.Pointer(db + 136 + 7*4)))) goto attach_error __7: @@ -138981,7 +139704,7 @@ __8: if !(Xsqlite3DbIsNamed(tls, db, i, zName) != 0) { goto __11 } - *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+12953, libc.VaList(bp+8, zName)) + *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+12992, libc.VaList(bp+8, zName)) goto attach_error __11: ; @@ -139052,7 +139775,7 @@ __4: goto __18 } rc = SQLITE_ERROR - *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+12983, 0) + *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+13022, 0) goto __19 __18: if !(rc == SQLITE_OK) { @@ -139069,7 +139792,7 @@ __21: goto __23 } *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, - ts+13012, 0) + ts+13051, 0) rc = SQLITE_ERROR __23: ; @@ -139145,7 +139868,7 @@ __30: if !(*(*uintptr)(unsafe.Pointer(bp + 56)) == uintptr(0)) { goto __32 } - *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+13080, libc.VaList(bp+16, zFile)) + *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+13119, libc.VaList(bp+16, zFile)) __32: ; __31: @@ -139177,10 +139900,10 @@ __34: // An SQL user-function registered to do the work of an DETACH statement. The // three arguments to the function come directly from a detach statement: // -// DETACH DATABASE x +// DETACH DATABASE x // -// SELECT sqlite_detach(x) -func detachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113333:13: */ +// SELECT sqlite_detach(x) +func detachFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114509:13: */ bp := tls.Alloc(152) defer tls.Free(152) @@ -139233,14 +139956,14 @@ __4: if !(i >= (*Sqlite3)(unsafe.Pointer(db)).FnDb) { goto __7 } - Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13108, libc.VaList(bp, zName)) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13147, libc.VaList(bp, zName)) goto detach_error __7: ; if !(i < 2) { goto __8 } - Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13129, libc.VaList(bp+8, zName)) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13168, libc.VaList(bp+8, zName)) goto detach_error __8: ; @@ -139248,7 +139971,7 @@ __8: Xsqlite3BtreeIsInBackup(tls, (*Db)(unsafe.Pointer(pDb)).FpBt) != 0) { goto __9 } - Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13155, libc.VaList(bp+16, zName)) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+13194, libc.VaList(bp+16, zName)) goto detach_error __9: ; @@ -139285,7 +140008,7 @@ detach_error: // This procedure generates VDBE code for a single invocation of either the // sqlite_detach() or sqlite_attach() SQL user functions. -func codeAttach(tls *libc.TLS, pParse uintptr, type1 int32, pFunc uintptr, pAuthArg uintptr, pFilename uintptr, pDbname uintptr, pKey uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113395:13: */ +func codeAttach(tls *libc.TLS, pParse uintptr, type1 int32, pFunc uintptr, pAuthArg uintptr, pFilename uintptr, pDbname uintptr, pKey uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114571:13: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -139363,8 +140086,8 @@ attach_end: // Called by the parser to compile a DETACH statement. // -// DETACH pDbname -func Xsqlite3Detach(tls *libc.TLS, pParse uintptr, pDbname uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113467:21: */ +// DETACH pDbname +func Xsqlite3Detach(tls *libc.TLS, pParse uintptr, pDbname uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114643:21: */ codeAttach(tls, pParse, SQLITE_DETACH, uintptr(unsafe.Pointer(&detach_func)), pDbname, uintptr(0), uintptr(0), pDbname) } @@ -139372,12 +140095,12 @@ var detach_func = FuncDef{ FnArg: int8(1), // nArg FfuncFlags: U32(SQLITE_UTF8), // pNext FxSFunc: 0, // xValue, xInverse - FzName: ts + 13177} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113468:24 */ + FzName: ts + 13216} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114644:24 */ // Called by the parser to compile an ATTACH statement. // -// ATTACH p AS pDbname KEY pKey -func Xsqlite3Attach(tls *libc.TLS, pParse uintptr, p uintptr, pDbname uintptr, pKey uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113487:21: */ +// ATTACH p AS pDbname KEY pKey +func Xsqlite3Attach(tls *libc.TLS, pParse uintptr, p uintptr, pDbname uintptr, pKey uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114663:21: */ codeAttach(tls, pParse, SQLITE_ATTACH, uintptr(unsafe.Pointer(&attach_func)), p, p, pDbname, pKey) } @@ -139385,10 +140108,10 @@ var attach_func = FuncDef{ FnArg: int8(3), // nArg FfuncFlags: U32(SQLITE_UTF8), // pNext FxSFunc: 0, // xValue, xInverse - FzName: ts + 13191} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113488:24 */ + FzName: ts + 13230} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114664:24 */ // Expression callback used by sqlite3FixAAAA() routines. -func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113506:12: */ +func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114682:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -139400,7 +140123,7 @@ func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* testdata/sqli if (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer((*DbFixer)(unsafe.Pointer(pFix)).FpParse)).Fdb)).Finit.Fbusy != 0 { (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_NULL) } else { - Xsqlite3ErrorMsg(tls, (*DbFixer)(unsafe.Pointer(pFix)).FpParse, ts+13205, libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType)) + Xsqlite3ErrorMsg(tls, (*DbFixer)(unsafe.Pointer(pFix)).FpParse, ts+13244, libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType)) return WRC_Abort } } @@ -139408,7 +140131,7 @@ func fixExprCb(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* testdata/sqli } // Select callback used by sqlite3FixAAAA() routines. -func fixSelectCb(tls *libc.TLS, p uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113523:12: */ +func fixSelectCb(tls *libc.TLS, p uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114699:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -139433,18 +140156,19 @@ __1: if (*SrcItem)(unsafe.Pointer(pItem)).FzDatabase != 0 { if iDb != Xsqlite3FindDbName(tls, db, (*SrcItem)(unsafe.Pointer(pItem)).FzDatabase) { Xsqlite3ErrorMsg(tls, (*DbFixer)(unsafe.Pointer(pFix)).FpParse, - ts+13229, + ts+13268, libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType, (*DbFixer)(unsafe.Pointer(pFix)).FpName, (*SrcItem)(unsafe.Pointer(pItem)).FzDatabase)) return WRC_Abort } Xsqlite3DbFree(tls, db, (*SrcItem)(unsafe.Pointer(pItem)).FzDatabase) (*SrcItem)(unsafe.Pointer(pItem)).FzDatabase = uintptr(0) - libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 8, 0x100) + libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 9, 0x200) } (*SrcItem)(unsafe.Pointer(pItem)).FpSchema = (*DbFixer)(unsafe.Pointer(pFix)).FpSchema - libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 6, 0x40) + libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 7, 0x80) } - if Xsqlite3WalkExpr(tls, pFix+8, (*SrcItem)(unsafe.Pointer(pList+8+uintptr(i)*112)).FpOn) != 0 { + if int32(*(*uint16)(unsafe.Pointer(pList + 8 + uintptr(i)*104 + 60 + 4))&0x400>>10) == 0 && + Xsqlite3WalkExpr(tls, pFix+8, *(*uintptr)(unsafe.Pointer(pList + 8 + uintptr(i)*104 + 72))) != 0 { return WRC_Abort } @@ -139452,7 +140176,7 @@ __1: goto __2 __2: i++ - pItem += 112 + pItem += 104 goto __1 goto __3 __3: @@ -139469,7 +140193,7 @@ __3: // Initialize a DbFixer structure. This routine must be called prior // to passing the structure to one of the sqliteFixAAAA() routines below. -func Xsqlite3FixInit(tls *libc.TLS, pFix uintptr, pParse uintptr, iDb int32, zType uintptr, pName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113566:21: */ +func Xsqlite3FixInit(tls *libc.TLS, pFix uintptr, pParse uintptr, iDb int32, zType uintptr, pName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114746:21: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb (*DbFixer)(unsafe.Pointer(pFix)).FpParse = pParse @@ -139505,7 +140229,7 @@ func Xsqlite3FixInit(tls *libc.TLS, pFix uintptr, pParse uintptr, iDb int32, zTy // to an object in a different database, an error message is added to // pParse->zErrMsg and these routines return non-zero. If everything // checks out, these routines return 0. -func Xsqlite3FixSrcList(tls *libc.TLS, pFix uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113604:20: */ +func Xsqlite3FixSrcList(tls *libc.TLS, pFix uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114784:20: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -139520,15 +140244,15 @@ func Xsqlite3FixSrcList(tls *libc.TLS, pFix uintptr, pList uintptr) int32 { /* t return res } -func Xsqlite3FixSelect(tls *libc.TLS, pFix uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113618:20: */ +func Xsqlite3FixSelect(tls *libc.TLS, pFix uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114798:20: */ return Xsqlite3WalkSelect(tls, pFix+8, pSelect) } -func Xsqlite3FixExpr(tls *libc.TLS, pFix uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113624:20: */ +func Xsqlite3FixExpr(tls *libc.TLS, pFix uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114804:20: */ return Xsqlite3WalkExpr(tls, pFix+8, pExpr) } -func Xsqlite3FixTriggerStep(tls *libc.TLS, pFix uintptr, pStep uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113633:20: */ +func Xsqlite3FixTriggerStep(tls *libc.TLS, pFix uintptr, pStep uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114813:20: */ for pStep != 0 { if Xsqlite3WalkSelect(tls, pFix+8, (*TriggerStep)(unsafe.Pointer(pStep)).FpSelect) != 0 || Xsqlite3WalkExpr(tls, pFix+8, (*TriggerStep)(unsafe.Pointer(pStep)).FpWhere) != 0 || @@ -139583,29 +140307,29 @@ func Xsqlite3FixTriggerStep(tls *libc.TLS, pFix uintptr, pStep uintptr) int32 { // is a copy of the 3rd argument to this routine. The second argument // to the auth function is one of these constants: // -// SQLITE_CREATE_INDEX -// SQLITE_CREATE_TABLE -// SQLITE_CREATE_TEMP_INDEX -// SQLITE_CREATE_TEMP_TABLE -// SQLITE_CREATE_TEMP_TRIGGER -// SQLITE_CREATE_TEMP_VIEW -// SQLITE_CREATE_TRIGGER -// SQLITE_CREATE_VIEW -// SQLITE_DELETE -// SQLITE_DROP_INDEX -// SQLITE_DROP_TABLE -// SQLITE_DROP_TEMP_INDEX -// SQLITE_DROP_TEMP_TABLE -// SQLITE_DROP_TEMP_TRIGGER -// SQLITE_DROP_TEMP_VIEW -// SQLITE_DROP_TRIGGER -// SQLITE_DROP_VIEW -// SQLITE_INSERT -// SQLITE_PRAGMA -// SQLITE_READ -// SQLITE_SELECT -// SQLITE_TRANSACTION -// SQLITE_UPDATE +// SQLITE_CREATE_INDEX +// SQLITE_CREATE_TABLE +// SQLITE_CREATE_TEMP_INDEX +// SQLITE_CREATE_TEMP_TABLE +// SQLITE_CREATE_TEMP_TRIGGER +// SQLITE_CREATE_TEMP_VIEW +// SQLITE_CREATE_TRIGGER +// SQLITE_CREATE_VIEW +// SQLITE_DELETE +// SQLITE_DROP_INDEX +// SQLITE_DROP_TABLE +// SQLITE_DROP_TEMP_INDEX +// SQLITE_DROP_TEMP_TABLE +// SQLITE_DROP_TEMP_TRIGGER +// SQLITE_DROP_TEMP_VIEW +// SQLITE_DROP_TRIGGER +// SQLITE_DROP_VIEW +// SQLITE_INSERT +// SQLITE_PRAGMA +// SQLITE_READ +// SQLITE_SELECT +// SQLITE_TRANSACTION +// SQLITE_UPDATE // // The third and fourth arguments to the auth function are the name of // the table and the column that are being accessed. The auth function @@ -139618,7 +140342,7 @@ func Xsqlite3FixTriggerStep(tls *libc.TLS, pFix uintptr, pStep uintptr) int32 { // // Setting the auth function to NULL disables this hook. The default // setting of the auth function is NULL. -func Xsqlite3_set_authorizer(tls *libc.TLS, db uintptr, xAuth uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113737:16: */ +func Xsqlite3_set_authorizer(tls *libc.TLS, db uintptr, xAuth uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114917:16: */ Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) (*Sqlite3)(unsafe.Pointer(db)).FxAuth = xAuth (*Sqlite3)(unsafe.Pointer(db)).FpAuthArg = pArg @@ -139631,8 +140355,8 @@ func Xsqlite3_set_authorizer(tls *libc.TLS, db uintptr, xAuth uintptr, pArg uint // Write an error message into pParse->zErrMsg that explains that the // user-supplied authorization function returned an illegal value. -func sqliteAuthBadReturnCode(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113757:13: */ - Xsqlite3ErrorMsg(tls, pParse, ts+13275, 0) +func sqliteAuthBadReturnCode(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114937:13: */ + Xsqlite3ErrorMsg(tls, pParse, ts+13314, 0) (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR } @@ -139643,7 +140367,7 @@ func sqliteAuthBadReturnCode(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite // If SQLITE_IGNORE is returned and pExpr is not NULL, then pExpr is changed // to an SQL NULL expression. Otherwise, if pExpr is NULL, then SQLITE_IGNORE // is treated as SQLITE_DENY. In this case an error is left in pParse. -func Xsqlite3AuthReadCol(tls *libc.TLS, pParse uintptr, zTab uintptr, zCol uintptr, iDb int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113771:20: */ +func Xsqlite3AuthReadCol(tls *libc.TLS, pParse uintptr, zTab uintptr, zCol uintptr, iDb int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114951:20: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -139658,11 +140382,11 @@ func Xsqlite3AuthReadCol(tls *libc.TLS, pParse uintptr, zTab uintptr, zCol uintp f func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3)(unsafe.Pointer(db)).FxAuth})).f(tls, (*Sqlite3)(unsafe.Pointer(db)).FpAuthArg, SQLITE_READ, zTab, zCol, zDb, (*Parse)(unsafe.Pointer(pParse)).FzAuthContext) if rc == SQLITE_DENY { - var z uintptr = Xsqlite3_mprintf(tls, ts+13298, libc.VaList(bp, zTab, zCol)) + var z uintptr = Xsqlite3_mprintf(tls, ts+13337, libc.VaList(bp, zTab, zCol)) if (*Sqlite3)(unsafe.Pointer(db)).FnDb > 2 || iDb != 0 { - z = Xsqlite3_mprintf(tls, ts+13304, libc.VaList(bp+16, zDb, z)) + z = Xsqlite3_mprintf(tls, ts+13343, libc.VaList(bp+16, zDb, z)) } - Xsqlite3ErrorMsg(tls, pParse, ts+13310, libc.VaList(bp+32, z)) + Xsqlite3ErrorMsg(tls, pParse, ts+13349, libc.VaList(bp+32, z)) (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_AUTH } else if rc != SQLITE_IGNORE && rc != SQLITE_OK { sqliteAuthBadReturnCode(tls, pParse) @@ -139677,7 +140401,7 @@ func Xsqlite3AuthReadCol(tls *libc.TLS, pParse uintptr, zTab uintptr, zCol uintp // If the auth function returns SQLITE_IGNORE, change the TK_COLUMN // instruction into a TK_NULL. If the auth function returns SQLITE_DENY, // then generate an error. -func Xsqlite3AuthRead(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSchema uintptr, pTabList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113807:21: */ +func Xsqlite3AuthRead(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSchema uintptr, pTabList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114987:21: */ var pTab uintptr = uintptr(0) // The table being read var zCol uintptr // Name of the column of the table var iSrc int32 // Index in pTabList->a[] of table being read @@ -139696,8 +140420,8 @@ func Xsqlite3AuthRead(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSchema uint } else { for iSrc = 0; iSrc < (*SrcList)(unsafe.Pointer(pTabList)).FnSrc; iSrc++ { - if (*Expr)(unsafe.Pointer(pExpr)).FiTable == (*SrcItem)(unsafe.Pointer(pTabList+8+uintptr(iSrc)*112)).FiCursor { - pTab = (*SrcItem)(unsafe.Pointer(pTabList + 8 + uintptr(iSrc)*112)).FpTab + if (*Expr)(unsafe.Pointer(pExpr)).FiTable == (*SrcItem)(unsafe.Pointer(pTabList+8+uintptr(iSrc)*104)).FiCursor { + pTab = (*SrcItem)(unsafe.Pointer(pTabList + 8 + uintptr(iSrc)*104)).FpTab break } } @@ -139714,7 +140438,7 @@ func Xsqlite3AuthRead(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSchema uint zCol = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr((*Table)(unsafe.Pointer(pTab)).FiPKey)*24)).FzCnName } else { - zCol = ts + 8952 /* "ROWID" */ + zCol = ts + 8991 /* "ROWID" */ } if SQLITE_IGNORE == Xsqlite3AuthReadCol(tls, pParse, (*Table)(unsafe.Pointer(pTab)).FzName, zCol, iDb) { @@ -139726,7 +140450,7 @@ func Xsqlite3AuthRead(tls *libc.TLS, pParse uintptr, pExpr uintptr, pSchema uint // either SQLITE_OK (zero) or SQLITE_IGNORE or SQLITE_DENY. If SQLITE_DENY // is returned, then the error count and error message in pParse are // modified appropriately. -func Xsqlite3AuthCheck(tls *libc.TLS, pParse uintptr, code int32, zArg1 uintptr, zArg2 uintptr, zArg3 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113864:20: */ +func Xsqlite3AuthCheck(tls *libc.TLS, pParse uintptr, code int32, zArg1 uintptr, zArg2 uintptr, zArg3 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115044:20: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var rc int32 @@ -139748,7 +140472,7 @@ func Xsqlite3AuthCheck(tls *libc.TLS, pParse uintptr, code int32, zArg1 uintptr, f func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3)(unsafe.Pointer(db)).FxAuth})).f(tls, (*Sqlite3)(unsafe.Pointer(db)).FpAuthArg, code, zArg1, zArg2, zArg3, (*Parse)(unsafe.Pointer(pParse)).FzAuthContext) if rc == SQLITE_DENY { - Xsqlite3ErrorMsg(tls, pParse, ts+13337, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+13376, 0) (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_AUTH } else if rc != SQLITE_OK && rc != SQLITE_IGNORE { rc = SQLITE_DENY @@ -139760,7 +140484,7 @@ func Xsqlite3AuthCheck(tls *libc.TLS, pParse uintptr, code int32, zArg1 uintptr, // Push an authorization context. After this routine is called, the // zArg3 argument to authorization callbacks will be zContext until // popped. Or if pParse==0, this routine is a no-op. -func Xsqlite3AuthContextPush(tls *libc.TLS, pParse uintptr, pContext uintptr, zContext uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113913:21: */ +func Xsqlite3AuthContextPush(tls *libc.TLS, pParse uintptr, pContext uintptr, zContext uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115093:21: */ (*AuthContext)(unsafe.Pointer(pContext)).FpParse = pParse (*AuthContext)(unsafe.Pointer(pContext)).FzAuthContext = (*Parse)(unsafe.Pointer(pParse)).FzAuthContext @@ -139769,7 +140493,7 @@ func Xsqlite3AuthContextPush(tls *libc.TLS, pParse uintptr, pContext uintptr, zC // Pop an authorization context that was previously pushed // by sqlite3AuthContextPush -func Xsqlite3AuthContextPop(tls *libc.TLS, pContext uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113928:21: */ +func Xsqlite3AuthContextPop(tls *libc.TLS, pContext uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115108:21: */ if (*AuthContext)(unsafe.Pointer(pContext)).FpParse != 0 { (*Parse)(unsafe.Pointer((*AuthContext)(unsafe.Pointer(pContext)).FpParse)).FzAuthContext = (*AuthContext)(unsafe.Pointer(pContext)).FzAuthContext (*AuthContext)(unsafe.Pointer(pContext)).FpParse = uintptr(0) @@ -139784,7 +140508,7 @@ func Xsqlite3AuthContextPop(tls *libc.TLS, pContext uintptr) { /* testdata/sqlit // This routine just records the fact that the lock is desired. The // code to make the lock occur is generated by a later call to // codeTableLocks() which occurs during sqlite3FinishCoding(). -func lockTable(tls *libc.TLS, pParse uintptr, iDb int32, iTab Pgno, isWriteLock U8, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113987:29: */ +func lockTable(tls *libc.TLS, pParse uintptr, iDb int32, iTab Pgno, isWriteLock U8, zName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115167:29: */ var pToplevel uintptr var i int32 var nBytes int32 @@ -139818,7 +140542,7 @@ func lockTable(tls *libc.TLS, pParse uintptr, iDb int32, iTab Pgno, isWriteLock } } -func Xsqlite3TableLock(tls *libc.TLS, pParse uintptr, iDb int32, iTab Pgno, isWriteLock U8, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114023:21: */ +func Xsqlite3TableLock(tls *libc.TLS, pParse uintptr, iDb int32, iTab Pgno, isWriteLock U8, zName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115203:21: */ if iDb == 1 { return } @@ -139830,7 +140554,7 @@ func Xsqlite3TableLock(tls *libc.TLS, pParse uintptr, iDb int32, iTab Pgno, isWr // Code an OP_TableLock instruction for each table locked by the // statement (configured by calls to sqlite3TableLock()). -func codeTableLocks(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114039:13: */ +func codeTableLocks(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115219:13: */ var i int32 var pVdbe uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe @@ -139854,7 +140578,7 @@ func codeTableLocks(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgama // // Note that if an error occurred, it might be the case that // no VDBE code was generated. -func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114078:21: */ +func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115258:21: */ var db uintptr var v uintptr @@ -139891,9 +140615,7 @@ func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-am var i int32 var reg int32 - if (*Returning)(unsafe.Pointer(pReturning)).FnRetCol == 0 { - - } else { + if (*Returning)(unsafe.Pointer(pReturning)).FnRetCol != 0 { Xsqlite3VdbeAddOp0(tls, v, OP_FkCheck) addrRewind = Xsqlite3VdbeAddOp1(tls, v, OP_Rewind, (*Returning)(unsafe.Pointer(pReturning)).FiRetCur) @@ -139920,7 +140642,9 @@ func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-am var i int32 Xsqlite3VdbeJumpHere(tls, v, 0) - for iDb = 0; iDb < (*Sqlite3)(unsafe.Pointer(db)).FnDb; iDb++ { + + iDb = 0 + for __ccgo := true; __ccgo; __ccgo = libc.PreIncInt32(&iDb, 1) < (*Sqlite3)(unsafe.Pointer(db)).FnDb { var pSchema uintptr if libc.Bool32((*Parse)(unsafe.Pointer(pParse)).FcookieMask&(YDbMask(YDbMask(1))<<iDb) != YDbMask(0)) == 0 { continue @@ -139940,7 +140664,7 @@ func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-am } for i = 0; i < (*Parse)(unsafe.Pointer(pParse)).FnVtabLock; i++ { var vtab uintptr = Xsqlite3GetVTable(tls, db, *(*uintptr)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).FapVtabLock + uintptr(i)*8))) - Xsqlite3VdbeAddOp4(tls, v, OP_VBegin, 0, 0, 0, vtab, -12) + Xsqlite3VdbeAddOp4(tls, v, OP_VBegin, 0, 0, 0, vtab, -11) } (*Parse)(unsafe.Pointer(pParse)).FnVtabLock = 0 @@ -139971,9 +140695,7 @@ func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-am if (*Parse)(unsafe.Pointer(pParse)).FbReturning != 0 { var pRet uintptr = *(*uintptr)(unsafe.Pointer(pParse + 192)) - if (*Returning)(unsafe.Pointer(pRet)).FnRetCol == 0 { - - } else { + if (*Returning)(unsafe.Pointer(pRet)).FnRetCol != 0 { Xsqlite3VdbeAddOp2(tls, v, OP_OpenEphemeral, (*Returning)(unsafe.Pointer(pRet)).FiRetCur, (*Returning)(unsafe.Pointer(pRet)).FnRetCol) } } @@ -140000,14 +140722,14 @@ func Xsqlite3FinishCoding(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-am // code for the SQL statement given onto the end of the pParse context // currently under construction. Notes: // -// * The final OP_Halt is not appended and other initialization -// and finalization steps are omitted because those are handling by the -// outermost parser. +// - The final OP_Halt is not appended and other initialization +// and finalization steps are omitted because those are handling by the +// outermost parser. // -// * Built-in SQL functions always take precedence over application-defined -// SQL functions. In other words, it is not possible to override a -// built-in function. -func Xsqlite3NestedParse(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114249:21: */ +// - Built-in SQL functions always take precedence over application-defined +// SQL functions. In other words, it is not possible to override a +// built-in function. +func Xsqlite3NestedParse(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115427:21: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -140040,8 +140762,6 @@ func Xsqlite3NestedParse(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uint libc.Xmemset(tls, pParse+uintptr(uint64(uintptr(0)+272)), 0, uint64(unsafe.Sizeof(Parse{}))-uint64(uintptr(0)+272)) *(*U32)(unsafe.Pointer(db + 44)) |= U32(DBFLAG_PreferBuiltin) Xsqlite3RunParser(tls, pParse, zSql) - Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(pParse)).FzErrMsg) - (*Parse)(unsafe.Pointer(pParse)).FzErrMsg = uintptr(0) (*Sqlite3)(unsafe.Pointer(db)).FmDbFlags = savedDbFlags Xsqlite3DbFree(tls, db, zSql) libc.Xmemcpy(tls, pParse+uintptr(uint64(uintptr(0)+272)), bp, uint64(unsafe.Sizeof(Parse{}))-uint64(uintptr(0)+272)) @@ -140058,7 +140778,7 @@ func Xsqlite3NestedParse(tls *libc.TLS, pParse uintptr, zFormat uintptr, va uint // auxiliary databases added using the ATTACH command. // // See also sqlite3LocateTable(). -func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114304:22: */ +func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115480:22: */ var p uintptr = uintptr(0) var i int32 @@ -140073,25 +140793,25 @@ func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintp if i >= (*Sqlite3)(unsafe.Pointer(db)).FnDb { // No match against the official names. But always match "main" // to schema 0 as a legacy fallback. - if Xsqlite3StrICmp(tls, zDatabase, ts+7684) == 0 { + if Xsqlite3StrICmp(tls, zDatabase, ts+7719) == 0 { i = 0 } else { return uintptr(0) } } p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i)*32)).FpSchema+8, zName) - if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+9371, 7) == 0 { + if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+9410, 7) == 0 { if i == 1 { - if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13352+7) == 0 || - Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13371+7) == 0 || - Xsqlite3StrICmp(tls, zName+uintptr(7), ts+7196+7) == 0 { + if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13391+7) == 0 || + Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13410+7) == 0 || + Xsqlite3StrICmp(tls, zName+uintptr(7), ts+7231+7) == 0 { p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema+8, - ts+13385) + ts+13424) } } else { - if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13371+7) == 0 { + if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13410+7) == 0 { p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i)*32)).FpSchema+8, - ts+7196) + ts+7231) } } } @@ -140114,12 +140834,12 @@ func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintp break } } - if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+9371, 7) == 0 { - if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13371+7) == 0 { - p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FpSchema+8, ts+7196) - } else if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13352+7) == 0 { + if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+9410, 7) == 0 { + if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13410+7) == 0 { + p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FpSchema+8, ts+7231) + } else if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13391+7) == 0 { p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema+8, - ts+13385) + ts+13424) } } } @@ -140134,7 +140854,7 @@ func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintp // The difference between this routine and sqlite3FindTable() is that this // routine leaves an error message in pParse->zErrMsg where // sqlite3FindTable() does not. -func Xsqlite3LocateTable(tls *libc.TLS, pParse uintptr, flags U32, zName uintptr, zDbase uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114382:22: */ +func Xsqlite3LocateTable(tls *libc.TLS, pParse uintptr, flags U32, zName uintptr, zDbase uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115558:22: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -140155,7 +140875,7 @@ func Xsqlite3LocateTable(tls *libc.TLS, pParse uintptr, flags U32, zName uintptr // can be an eponymous virtual table. if int32((*Parse)(unsafe.Pointer(pParse)).FdisableVtab) == 0 && int32((*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy) == 0 { var pMod uintptr = Xsqlite3HashFind(tls, db+568, zName) - if pMod == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+13404, 7) == 0 { + if pMod == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+13443, 7) == 0 { pMod = Xsqlite3PragmaVtabRegister(tls, db, zName) } if pMod != 0 && Xsqlite3VtabEponymousTableInit(tls, pParse, pMod) != 0 { @@ -140174,14 +140894,14 @@ func Xsqlite3LocateTable(tls *libc.TLS, pParse uintptr, flags U32, zName uintptr if p == uintptr(0) { var zMsg uintptr if flags&U32(LOCATE_VIEW) != 0 { - zMsg = ts + 13412 /* "no such view" */ + zMsg = ts + 13451 /* "no such view" */ } else { - zMsg = ts + 13425 /* "no such table" */ + zMsg = ts + 13464 /* "no such table" */ } if zDbase != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+7879, libc.VaList(bp, zMsg, zDbase, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+7923, libc.VaList(bp, zMsg, zDbase, zName)) } else { - Xsqlite3ErrorMsg(tls, pParse, ts+7889, libc.VaList(bp+24, zMsg, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+7933, libc.VaList(bp+24, zMsg, zName)) } } else { @@ -140197,7 +140917,7 @@ func Xsqlite3LocateTable(tls *libc.TLS, pParse uintptr, flags U32, zName uintptr // the search to schema (p->pSchema) if it is not NULL. p->pSchema may be // non-NULL if it is part of a view or trigger program definition. See // sqlite3FixSrcList() for details. -func Xsqlite3LocateTableItem(tls *libc.TLS, pParse uintptr, flags U32, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114445:22: */ +func Xsqlite3LocateTableItem(tls *libc.TLS, pParse uintptr, flags U32, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115621:22: */ var zDb uintptr if (*SrcItem)(unsafe.Pointer(p)).FpSchema != 0 { @@ -140211,13 +140931,13 @@ func Xsqlite3LocateTableItem(tls *libc.TLS, pParse uintptr, flags U32, p uintptr // Return the preferred table name for system tables. Translate legacy // names into the new preferred names, as appropriate. -func Xsqlite3PreferredTableName(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114465:27: */ - if Xsqlite3_strnicmp(tls, zName, ts+9371, 7) == 0 { - if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+7196+7) == 0 { - return ts + 13371 /* "sqlite_schema" */ +func Xsqlite3PreferredTableName(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115641:27: */ + if Xsqlite3_strnicmp(tls, zName, ts+9410, 7) == 0 { + if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+7231+7) == 0 { + return ts + 13410 /* "sqlite_schema" */ } - if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13385+7) == 0 { - return ts + 13352 /* "sqlite_temp_sche..." */ + if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+13424+7) == 0 { + return ts + 13391 /* "sqlite_temp_sche..." */ } } return zName @@ -140233,7 +140953,7 @@ func Xsqlite3PreferredTableName(tls *libc.TLS, zName uintptr) uintptr { /* testd // for duplicate index names is done.) The search order is // TEMP first, then MAIN, then any auxiliary databases added // using the ATTACH command. -func Xsqlite3FindIndex(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114489:22: */ +func Xsqlite3FindIndex(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115665:22: */ var p uintptr = uintptr(0) var i int32 // All mutexes are required for schema access. Make sure we hold them. @@ -140260,7 +140980,7 @@ func Xsqlite3FindIndex(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr) ui } // Reclaim the memory used by an index -func Xsqlite3FreeIndex(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114509:21: */ +func Xsqlite3FreeIndex(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115685:21: */ Xsqlite3DeleteIndexSamples(tls, db, p) Xsqlite3ExprDelete(tls, db, (*Index)(unsafe.Pointer(p)).FpPartIdxWhere) Xsqlite3ExprListDelete(tls, db, (*Index)(unsafe.Pointer(p)).FaColExpr) @@ -140276,7 +140996,7 @@ func Xsqlite3FreeIndex(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlit // unlike that index from its Table then remove the index from // the index hash table and free all memory structures associated // with the index. -func Xsqlite3UnlinkAndDeleteIndex(tls *libc.TLS, db uintptr, iDb int32, zIdxName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114529:21: */ +func Xsqlite3UnlinkAndDeleteIndex(tls *libc.TLS, db uintptr, iDb int32, zIdxName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115705:21: */ var pIndex uintptr var pHash uintptr @@ -140308,7 +141028,7 @@ func Xsqlite3UnlinkAndDeleteIndex(tls *libc.TLS, db uintptr, iDb int32, zIdxName // // Entry 0 (the "main" database) and entry 1 (the "temp" database) // are never candidates for being collapsed. -func Xsqlite3CollapseDatabaseArray(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114562:21: */ +func Xsqlite3CollapseDatabaseArray(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115738:21: */ var i int32 var j int32 for i = libc.AssignInt32(&j, 2); i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ { @@ -140334,7 +141054,7 @@ func Xsqlite3CollapseDatabaseArray(tls *libc.TLS, db uintptr) { /* testdata/sqli // Reset the schema for the database at index iDb. Also reset the // TEMP schema. The reset is deferred if db->nSchemaLock is not zero. // Deferred resets may be run by calling with iDb<0. -func Xsqlite3ResetOneSchema(tls *libc.TLS, db uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114589:21: */ +func Xsqlite3ResetOneSchema(tls *libc.TLS, db uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115765:21: */ var i int32 if iDb >= 0 { @@ -140355,7 +141075,7 @@ func Xsqlite3ResetOneSchema(tls *libc.TLS, db uintptr, iDb int32) { /* testdata/ // Erase all schema information from all attached databases (including // "main" and "temp") for a single database connection. -func Xsqlite3ResetAllSchemasOfConnection(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114613:21: */ +func Xsqlite3ResetAllSchemasOfConnection(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115789:21: */ var i int32 Xsqlite3BtreeEnterAll(tls, db) for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ { @@ -140377,14 +141097,14 @@ func Xsqlite3ResetAllSchemasOfConnection(tls *libc.TLS, db uintptr) { /* testdat } // This routine is called when a commit occurs. -func Xsqlite3CommitInternalChanges(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114637:21: */ +func Xsqlite3CommitInternalChanges(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115813:21: */ *(*U32)(unsafe.Pointer(db + 44)) &= libc.Uint32FromInt32(libc.CplInt32(DBFLAG_SchemaChange)) } // Set the expression associated with a column. This is usually // the DEFAULT value, but might also be the expression that computes // the value for a generated column. -func Xsqlite3ColumnSetExpr(tls *libc.TLS, pParse uintptr, pTab uintptr, pCol uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114646:21: */ +func Xsqlite3ColumnSetExpr(tls *libc.TLS, pParse uintptr, pTab uintptr, pCol uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115822:21: */ var pList uintptr pList = *(*uintptr)(unsafe.Pointer(pTab + 64 + 16 /* &.pDfltList */)) @@ -140407,7 +141127,7 @@ func Xsqlite3ColumnSetExpr(tls *libc.TLS, pParse uintptr, pTab uintptr, pCol uin // Return the expression associated with a column. The expression might be // the DEFAULT clause or the AS clause of a generated column. // Return NULL if the column has no associated expression. -func Xsqlite3ColumnExpr(tls *libc.TLS, pTab uintptr, pCol uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114672:21: */ +func Xsqlite3ColumnExpr(tls *libc.TLS, pTab uintptr, pCol uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115848:21: */ if int32((*Column)(unsafe.Pointer(pCol)).FiDflt) == 0 { return uintptr(0) } @@ -140424,7 +141144,7 @@ func Xsqlite3ColumnExpr(tls *libc.TLS, pTab uintptr, pCol uintptr) uintptr { /* } // Set the collating sequence name for a column. -func Xsqlite3ColumnSetColl(tls *libc.TLS, db uintptr, pCol uintptr, zColl uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114683:21: */ +func Xsqlite3ColumnSetColl(tls *libc.TLS, db uintptr, pCol uintptr, zColl uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115859:21: */ var nColl I64 var n I64 var zNew uintptr @@ -140443,7 +141163,7 @@ func Xsqlite3ColumnSetColl(tls *libc.TLS, db uintptr, pCol uintptr, zColl uintpt } // Return the collating squence name for a column -func Xsqlite3ColumnColl(tls *libc.TLS, pCol uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114708:27: */ +func Xsqlite3ColumnColl(tls *libc.TLS, pCol uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115884:27: */ var z uintptr if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_HASCOLL == 0 { return uintptr(0) @@ -140462,7 +141182,7 @@ func Xsqlite3ColumnColl(tls *libc.TLS, pCol uintptr) uintptr { /* testdata/sqlit // Delete memory allocated for the column names of a table or view (the // Table.aCol[] array). -func Xsqlite3DeleteColumnNames(tls *libc.TLS, db uintptr, pTable uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114723:21: */ +func Xsqlite3DeleteColumnNames(tls *libc.TLS, db uintptr, pTable uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115899:21: */ var i int32 var pCol uintptr @@ -140512,7 +141232,7 @@ func Xsqlite3DeleteColumnNames(tls *libc.TLS, db uintptr, pTable uintptr) { /* t // lookaside memory, but some ephemeral Table objects do.) Or the // db parameter can be used with db->pnBytesFreed to measure the memory // used by the Table object. -func deleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114761:29: */ +func deleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115937:29: */ var pIndex uintptr var pNext uintptr @@ -140549,7 +141269,7 @@ func deleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* testdata/sqlite } -func Xsqlite3DeleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114818:21: */ +func Xsqlite3DeleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115994:21: */ // Do not delete the table until the reference count reaches zero. if !(pTable != 0) { return @@ -140562,7 +141282,7 @@ func Xsqlite3DeleteTable(tls *libc.TLS, db uintptr, pTable uintptr) { /* testdat // Unlink the given table from the hash tables and the delete the // table structure with all its indices and foreign keys. -func Xsqlite3UnlinkAndDeleteTable(tls *libc.TLS, db uintptr, iDb int32, zTabName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114830:21: */ +func Xsqlite3UnlinkAndDeleteTable(tls *libc.TLS, db uintptr, iDb int32, zTabName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116006:21: */ var p uintptr var pDb uintptr @@ -140584,7 +141304,7 @@ func Xsqlite3UnlinkAndDeleteTable(tls *libc.TLS, db uintptr, iDb int32, zTabName // Tokens are often just pointers into the original SQL text and so // are not \000 terminated and are not persistent. The returned string // is \000 terminated and is persistent. -func Xsqlite3NameFromToken(tls *libc.TLS, db uintptr, pName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114858:21: */ +func Xsqlite3NameFromToken(tls *libc.TLS, db uintptr, pName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116034:21: */ var zName uintptr if pName != 0 { zName = Xsqlite3DbStrNDup(tls, db, (*Token)(unsafe.Pointer(pName)).Fz, uint64((*Token)(unsafe.Pointer(pName)).Fn)) @@ -140597,9 +141317,9 @@ func Xsqlite3NameFromToken(tls *libc.TLS, db uintptr, pName uintptr) uintptr { / // Open the sqlite_schema table stored in database number iDb for // writing. The table is opened using cursor 0. -func Xsqlite3OpenSchemaTable(tls *libc.TLS, p uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114873:21: */ +func Xsqlite3OpenSchemaTable(tls *libc.TLS, p uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116049:21: */ var v uintptr = Xsqlite3GetVdbe(tls, p) - Xsqlite3TableLock(tls, p, iDb, uint32(SCHEMA_ROOT), uint8(1), ts+7196) + Xsqlite3TableLock(tls, p, iDb, uint32(SCHEMA_ROOT), uint8(1), ts+7231) Xsqlite3VdbeAddOp4Int(tls, v, OP_OpenWrite, 0, SCHEMA_ROOT, iDb, 5) if (*Parse)(unsafe.Pointer(p)).FnTab == 0 { (*Parse)(unsafe.Pointer(p)).FnTab = 1 @@ -140610,7 +141330,7 @@ func Xsqlite3OpenSchemaTable(tls *libc.TLS, p uintptr, iDb int32) { /* testdata/ // of a database ("main", "temp" or the name of an attached db). This // function returns the index of the named database in db->aDb[], or // -1 if the named db cannot be found. -func Xsqlite3FindDbName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114888:20: */ +func Xsqlite3FindDbName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116064:20: */ var i int32 = -1 // Database number if zName != 0 { var pDb uintptr @@ -140626,7 +141346,7 @@ func Xsqlite3FindDbName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* tes } // "main" is always an acceptable alias for the primary database // even if it has been renamed using SQLITE_DBCONFIG_MAINDBNAME. - if i == 0 && 0 == Xsqlite3_stricmp(tls, ts+7684, zName) { + if i == 0 && 0 == Xsqlite3_stricmp(tls, ts+7719, zName) { goto __3 } @@ -140646,7 +141366,7 @@ func Xsqlite3FindDbName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* tes // "temp" or the name of an attached db). This routine returns the // index of the named database in db->aDb[], or -1 if the named db // does not exist. -func Xsqlite3FindDb(tls *libc.TLS, db uintptr, pName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114908:20: */ +func Xsqlite3FindDb(tls *libc.TLS, db uintptr, pName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116084:20: */ var i int32 // Database number var zName uintptr // Name we are searching for zName = Xsqlite3NameFromToken(tls, db, pName) @@ -140670,7 +141390,7 @@ func Xsqlite3FindDb(tls *libc.TLS, db uintptr, pName uintptr) int32 { /* testdat // This routine sets the *ppUnqual pointer to point at the token (pName1 or // pName2) that stores the unqualified table name. The index of the // database "xxx" is returned. -func Xsqlite3TwoPartName(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, pUnqual uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114933:20: */ +func Xsqlite3TwoPartName(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, pUnqual uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116109:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -140679,13 +141399,13 @@ func Xsqlite3TwoPartName(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u if (*Token)(unsafe.Pointer(pName2)).Fn > uint32(0) { if (*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+13439, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+13478, 0) return -1 } *(*uintptr)(unsafe.Pointer(pUnqual)) = pName2 iDb = Xsqlite3FindDb(tls, db, pName1) if iDb < 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+13456, libc.VaList(bp, pName1)) + Xsqlite3ErrorMsg(tls, pParse, ts+13495, libc.VaList(bp, pName1)) return -1 } } else { @@ -140697,7 +141417,7 @@ func Xsqlite3TwoPartName(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 u } // True if PRAGMA writable_schema is ON -func Xsqlite3WritableSchema(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114966:20: */ +func Xsqlite3WritableSchema(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116142:20: */ return libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_WriteSchema|SQLITE_Defensive) == uint64(SQLITE_WriteSchema)) } @@ -140711,7 +141431,7 @@ func Xsqlite3WritableSchema(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlit // When parsing the sqlite_schema table, this routine also checks to // make sure the "type", "name", and "tbl_name" columns are consistent // with the SQL. -func Xsqlite3CheckObjectName(tls *libc.TLS, pParse uintptr, zName uintptr, zType uintptr, zTblName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:114988:20: */ +func Xsqlite3CheckObjectName(tls *libc.TLS, pParse uintptr, zName uintptr, zType uintptr, zTblName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116164:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -140730,9 +141450,9 @@ func Xsqlite3CheckObjectName(tls *libc.TLS, pParse uintptr, zName uintptr, zType return SQLITE_ERROR } } else { - if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 && 0 == Xsqlite3_strnicmp(tls, zName, ts+9371, 7) || + if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 && 0 == Xsqlite3_strnicmp(tls, zName, ts+9410, 7) || Xsqlite3ReadOnlyShadowTables(tls, db) != 0 && Xsqlite3ShadowTableName(tls, db, zName) != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+13476, + Xsqlite3ErrorMsg(tls, pParse, ts+13515, libc.VaList(bp, zName)) return SQLITE_ERROR } @@ -140742,7 +141462,7 @@ func Xsqlite3CheckObjectName(tls *libc.TLS, pParse uintptr, zName uintptr, zType } // Return the PRIMARY KEY index of a table -func Xsqlite3PrimaryKeyIndex(tls *libc.TLS, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115026:22: */ +func Xsqlite3PrimaryKeyIndex(tls *libc.TLS, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116202:22: */ var p uintptr for p = (*Table)(unsafe.Pointer(pTab)).FpIndex; p != 0 && !(int32(*(*uint16)(unsafe.Pointer(p + 100 /* &.idxType */))&0x3>>0) == SQLITE_IDXTYPE_PRIMARYKEY); p = (*Index)(unsafe.Pointer(p)).FpNext { } @@ -140753,7 +141473,7 @@ func Xsqlite3PrimaryKeyIndex(tls *libc.TLS, pTab uintptr) uintptr { /* testdata/ // for the column iCol in the table (as defined by the CREATE TABLE statement) // find the (first) offset of that column in index pIdx. Or return -1 // if column iCol is not used in index pIdx. -func Xsqlite3TableColumnToIndex(tls *libc.TLS, pIdx uintptr, iCol I16) I16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115038:20: */ +func Xsqlite3TableColumnToIndex(tls *libc.TLS, pIdx uintptr, iCol I16) I16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116214:20: */ var i int32 for i = 0; i < int32((*Index)(unsafe.Pointer(pIdx)).FnColumn); i++ { if int32(iCol) == int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(i)*2))) { @@ -140773,7 +141493,7 @@ func Xsqlite3TableColumnToIndex(tls *libc.TLS, pIdx uintptr, iCol I16) I16 { /* // and only there are VIRTUAL columns to the left. // // If SQLITE_OMIT_GENERATED_COLUMNS, this routine is a no-op macro. -func Xsqlite3StorageColumnToTable(tls *libc.TLS, pTab uintptr, iCol I16) I16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115058:20: */ +func Xsqlite3StorageColumnToTable(tls *libc.TLS, pTab uintptr, iCol I16) I16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116234:20: */ if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_HasVirtual) != 0 { var i int32 for i = 0; i <= int32(iCol); i++ { @@ -140805,13 +141525,13 @@ func Xsqlite3StorageColumnToTable(tls *libc.TLS, pTab uintptr, iCol I16) I16 { / // In the following, N means "normal column", S means STORED, and // V means VIRTUAL. Suppose the CREATE TABLE has columns like this: // -// CREATE TABLE ex(N,S,V,N,S,V,N,S,V); -// -- 0 1 2 3 4 5 6 7 8 +// CREATE TABLE ex(N,S,V,N,S,V,N,S,V); +// -- 0 1 2 3 4 5 6 7 8 // // Then the mapping from this function is as follows: // -// INPUTS: 0 1 2 3 4 5 6 7 8 -// OUTPUTS: 0 1 6 2 3 7 4 5 8 +// INPUTS: 0 1 2 3 4 5 6 7 8 +// OUTPUTS: 0 1 6 2 3 7 4 5 8 // // So, in other words, this routine shifts all the virtual columns to // the end. @@ -140820,7 +141540,7 @@ func Xsqlite3StorageColumnToTable(tls *libc.TLS, pTab uintptr, iCol I16) I16 { / // this routine is a no-op macro. If the pTab does not have any virtual // columns, then this routine is no-op that always return iCol. If iCol // is negative (indicating the ROWID column) then this routine return iCol. -func Xsqlite3TableColumnToStorage(tls *libc.TLS, pTab uintptr, iCol I16) I16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115106:20: */ +func Xsqlite3TableColumnToStorage(tls *libc.TLS, pTab uintptr, iCol I16) I16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116282:20: */ var i int32 var n I16 @@ -140850,7 +141570,7 @@ func Xsqlite3TableColumnToStorage(tls *libc.TLS, pTab uintptr, iCol I16) I16 { / // exists, so that the prepared statement for CREATE TABLE IF NOT EXISTS // will return false for sqlite3_stmt_readonly() even if that statement // is a read-only no-op. -func sqlite3ForceNotReadOnly(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115132:13: */ +func sqlite3ForceNotReadOnly(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116308:13: */ var iReg int32 = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) var v uintptr = Xsqlite3GetVdbe(tls, pParse) if v != 0 { @@ -140873,7 +141593,7 @@ func sqlite3ForceNotReadOnly(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite // routines will be called to add more information to this record. // At the end of the CREATE TABLE statement, the sqlite3EndTable() routine // is called to complete the construction of the new table record. -func Xsqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, isTemp int32, isView int32, isVirtual int32, noErr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115157:21: */ +func Xsqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, isTemp int32, isView int32, isVirtual int32, noErr int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116333:21: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -140901,9 +141621,9 @@ func Xsqlite3StartTable(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 ui iDb = int32((*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb) zName = Xsqlite3DbStrDup(tls, db, func() uintptr { if !(0 != 0) && iDb == 1 { - return ts + 13385 /* "sqlite_temp_mast..." */ + return ts + 13424 /* "sqlite_temp_mast..." */ } - return ts + 7196 /* "sqlite_master" */ + return ts + 7231 /* "sqlite_master" */ }()) *(*uintptr)(unsafe.Pointer(bp + 24 /* pName */)) = pName1 goto __2 @@ -140921,7 +141641,7 @@ __3: } // If creating a temp table, the name may not be qualified. Unless // the database name is "temp" anyway. - Xsqlite3ErrorMsg(tls, pParse, ts+13518, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+13557, 0) return __4: ; @@ -140949,9 +141669,9 @@ __7: ; if !(Xsqlite3CheckObjectName(tls, pParse, zName, func() uintptr { if isView != 0 { - return ts + 11728 + return ts + 11767 } - return ts + 10113 + return ts + 10152 }(), zName) != 0) { goto __8 } @@ -140968,9 +141688,9 @@ __9: zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_INSERT, func() uintptr { if !(0 != 0) && isTemp == 1 { - return ts + 13385 + return ts + 13424 } - return ts + 7196 + return ts + 7231 }(), uintptr(0), zDb) != 0) { goto __10 } @@ -141008,12 +141728,12 @@ __13: if !!(noErr != 0) { goto __15 } - Xsqlite3ErrorMsg(tls, pParse, ts+13559, + Xsqlite3ErrorMsg(tls, pParse, ts+13598, libc.VaList(bp, func() uintptr { if int32((*Table)(unsafe.Pointer(pTable)).FeTabType) == TABTYP_VIEW { - return ts + 11728 /* "view" */ + return ts + 11767 /* "view" */ } - return ts + 10113 /* "table" */ + return ts + 10152 /* "table" */ }(), *(*uintptr)(unsafe.Pointer(bp + 24 /* pName */)))) goto __16 __15: @@ -141028,7 +141748,7 @@ __14: if !(Xsqlite3FindIndex(tls, db, zName, zDb1) != uintptr(0)) { goto __17 } - Xsqlite3ErrorMsg(tls, pParse, ts+13580, libc.VaList(bp+16, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+13619, libc.VaList(bp+16, zName)) goto begin_table_error __17: ; @@ -141131,8 +141851,8 @@ var aCode = [4]U8{ U8(SQLITE_CREATE_TEMP_TABLE), U8(SQLITE_CREATE_VIEW), U8(SQLITE_CREATE_TEMP_VIEW), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115204:21 */ -var nullRow = [6]int8{int8(6), int8(0), int8(0), int8(0), int8(0), int8(0)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115283:23 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116380:21 */ +var nullRow = [6]int8{int8(6), int8(0), int8(0), int8(0), int8(0), int8(0)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116459:23 */ // Set properties of a table column based on the (magical) // name of the column. @@ -141142,10 +141862,10 @@ var nullRow = [6]int8{int8(6), int8(0), int8(0), int8(0), int8(0), int8(0)} /* t // with any application-generated triggers. // Clean up the data structures associated with the RETURNING clause. -func sqlite3DeleteReturning(tls *libc.TLS, db uintptr, pRet uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115368:13: */ +func sqlite3DeleteReturning(tls *libc.TLS, db uintptr, pRet uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116544:13: */ var pHash uintptr pHash = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema + 56 - Xsqlite3HashInsert(tls, pHash, ts+13615, uintptr(0)) + Xsqlite3HashInsert(tls, pHash, ts+13654, uintptr(0)) Xsqlite3ExprListDelete(tls, db, (*Returning)(unsafe.Pointer(pRet)).FpReturnEL) Xsqlite3DbFree(tls, db, pRet) } @@ -141164,12 +141884,12 @@ func sqlite3DeleteReturning(tls *libc.TLS, db uintptr, pRet uintptr) { /* testda // is attached to a DELETE, INSERT, or UPDATE, so construct it as a // RETURNING trigger instead. It will then be converted into the appropriate // type on the first call to sqlite3TriggersExist(). -func Xsqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115392:21: */ +func Xsqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116568:21: */ var pRet uintptr var pHash uintptr var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb if (*Parse)(unsafe.Pointer(pParse)).FpNewTrigger != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+13632, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+13671, 0) } else { } @@ -141190,7 +141910,7 @@ func Xsqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) { /* tes if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { return } - (*Returning)(unsafe.Pointer(pRet)).FretTrig.FzName = ts + 13615 /* "sqlite_returning" */ + (*Returning)(unsafe.Pointer(pRet)).FretTrig.FzName = ts + 13654 /* "sqlite_returning" */ (*Returning)(unsafe.Pointer(pRet)).FretTrig.Fop = U8(TK_RETURNING) (*Returning)(unsafe.Pointer(pRet)).FretTrig.Ftr_tm = U8(TRIGGER_AFTER) (*Returning)(unsafe.Pointer(pRet)).FretTrig.FbReturning = U8(1) @@ -141202,7 +141922,7 @@ func Xsqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) { /* tes (*Returning)(unsafe.Pointer(pRet)).FretTStep.FpExprList = pList pHash = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema + 56 - if Xsqlite3HashInsert(tls, pHash, ts+13615, pRet+16) == + if Xsqlite3HashInsert(tls, pHash, ts+13654, pRet+16) == pRet+16 { Xsqlite3OomFault(tls, db) } @@ -141214,7 +141934,7 @@ func Xsqlite3AddReturning(tls *libc.TLS, pParse uintptr, pList uintptr) { /* tes // in a CREATE TABLE statement. sqlite3StartTable() gets called // first to get things going. Then this routine is called for each // column. -func Xsqlite3AddColumn(tls *libc.TLS, pParse uintptr, sName Token, sType Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115440:21: */ +func Xsqlite3AddColumn(tls *libc.TLS, pParse uintptr, sName Token, sType Token) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116616:21: */ bp := tls.Alloc(48) defer tls.Free(48) *(*Token)(unsafe.Pointer(bp + 16)) = sName @@ -141236,7 +141956,7 @@ func Xsqlite3AddColumn(tls *libc.TLS, pParse uintptr, sName Token, sType Token) return } if int32((*Table)(unsafe.Pointer(p)).FnCol)+1 > *(*int32)(unsafe.Pointer(db + 136 + 2*4)) { - Xsqlite3ErrorMsg(tls, pParse, ts+13666, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+13705, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName)) return } if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) { @@ -141248,13 +141968,13 @@ func Xsqlite3AddColumn(tls *libc.TLS, pParse uintptr, sName Token, sType Token) // with "generated always". Check for this case and omit the surplus // text. if (*Token)(unsafe.Pointer(bp+32)).Fn >= uint32(16) && - Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(6)), ts+13689, 6) == 0 { + Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(6)), ts+13728, 6) == 0 { *(*uint32)(unsafe.Pointer(bp + 32 + 8)) -= uint32(6) for (*Token)(unsafe.Pointer(bp+32)).Fn > uint32(0) && int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer((*Token)(unsafe.Pointer(bp+32)).Fz + uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(1)))))])&0x01 != 0 { (*Token)(unsafe.Pointer(bp+32 /* &sType */)).Fn-- } if (*Token)(unsafe.Pointer(bp+32)).Fn >= uint32(9) && - Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(9)), ts+13696, 9) == 0 { + Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(9)), ts+13735, 9) == 0 { *(*uint32)(unsafe.Pointer(bp + 32 + 8)) -= uint32(9) for (*Token)(unsafe.Pointer(bp+32)).Fn > uint32(0) && int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer((*Token)(unsafe.Pointer(bp+32)).Fz + uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(1)))))])&0x01 != 0 { (*Token)(unsafe.Pointer(bp+32 /* &sType */)).Fn-- @@ -141294,7 +142014,7 @@ func Xsqlite3AddColumn(tls *libc.TLS, pParse uintptr, sName Token, sType Token) hName = Xsqlite3StrIHash(tls, z) for i = 0; i < int32((*Table)(unsafe.Pointer(p)).FnCol); i++ { if int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(p)).FaCol+uintptr(i)*24)).FhName) == int32(hName) && Xsqlite3StrICmp(tls, z, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(p)).FaCol+uintptr(i)*24)).FzCnName) == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+13706, libc.VaList(bp+8, z)) + Xsqlite3ErrorMsg(tls, pParse, ts+13745, libc.VaList(bp+8, z)) Xsqlite3DbFree(tls, db, z) return } @@ -141333,7 +142053,7 @@ func Xsqlite3AddColumn(tls *libc.TLS, pParse uintptr, sName Token, sType Token) // parsing a CREATE TABLE statement. A "NOT NULL" constraint has // been seen on a column. This routine sets the notNull flag on // the column currently under construction. -func Xsqlite3AddNotNull(tls *libc.TLS, pParse uintptr, onError int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115553:21: */ +func Xsqlite3AddNotNull(tls *libc.TLS, pParse uintptr, onError int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116729:21: */ var p uintptr var pCol uintptr p = (*Parse)(unsafe.Pointer(pParse)).FpNewTable @@ -141380,7 +142100,7 @@ func Xsqlite3AddNotNull(tls *libc.TLS, pParse uintptr, onError int32) { /* testd // // If none of the substrings in the above table are found, // SQLITE_AFF_NUMERIC is returned. -func Xsqlite3AffinityType(tls *libc.TLS, zIn uintptr, pCol uintptr) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115600:21: */ +func Xsqlite3AffinityType(tls *libc.TLS, zIn uintptr, pCol uintptr) int8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116776:21: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -141454,7 +142174,7 @@ func Xsqlite3AffinityType(tls *libc.TLS, zIn uintptr, pCol uintptr) int8 { /* te // // This routine is called by the parser while in the middle of // parsing a CREATE TABLE statement. -func Xsqlite3AddDefaultValue(tls *libc.TLS, pParse uintptr, pExpr uintptr, zStart uintptr, zEnd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115677:21: */ +func Xsqlite3AddDefaultValue(tls *libc.TLS, pParse uintptr, pExpr uintptr, zStart uintptr, zEnd uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116853:21: */ bp := tls.Alloc(80) defer tls.Free(80) @@ -141466,11 +142186,11 @@ func Xsqlite3AddDefaultValue(tls *libc.TLS, pParse uintptr, pExpr uintptr, zStar var isInit int32 = libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy != 0 && int32((*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb) != 1) pCol = (*Table)(unsafe.Pointer(p)).FaCol + uintptr(int32((*Table)(unsafe.Pointer(p)).FnCol)-1)*24 if !(Xsqlite3ExprIsConstantOrFunction(tls, pExpr, uint8(isInit)) != 0) { - Xsqlite3ErrorMsg(tls, pParse, ts+13732, + Xsqlite3ErrorMsg(tls, pParse, ts+13771, libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName)) } else if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+13777, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+13816, 0) } else { // A copy of pExpr is used instead of the original, as pExpr contains // tokens that point to volatile memory. @@ -141498,8 +142218,8 @@ func Xsqlite3AddDefaultValue(tls *libc.TLS, pParse uintptr, pExpr uintptr, zStar // Historical versions of SQLite accepted strings as column names in // indexes and PRIMARY KEY constraints and in UNIQUE constraints. Example: // -// CREATE TABLE xyz(a,b,c,d,e,PRIMARY KEY('a'),UNIQUE('b','c' COLLATE trim) -// CREATE INDEX abc ON xyz('c','d' DESC,'e' COLLATE nocase DESC); +// CREATE TABLE xyz(a,b,c,d,e,PRIMARY KEY('a'),UNIQUE('b','c' COLLATE trim) +// CREATE INDEX abc ON xyz('c','d' DESC,'e' COLLATE nocase DESC); // // This is goofy. But to preserve backwards compatibility we continue to // accept it. This routine does the necessary conversion. It converts @@ -141507,7 +142227,7 @@ func Xsqlite3AddDefaultValue(tls *libc.TLS, pParse uintptr, pExpr uintptr, zStar // if the expression is just a TK_STRING with an optional COLLATE clause. // If the expression is anything other than TK_STRING, the expression is // unchanged. -func sqlite3StringToId(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115736:13: */ +func sqlite3StringToId(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116912:13: */ if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_STRING { (*Expr)(unsafe.Pointer(p)).Fop = U8(TK_ID) } else if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_COLLATE && int32((*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(p)).FpLeft)).Fop) == TK_STRING { @@ -141516,12 +142236,12 @@ func sqlite3StringToId(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamati } // Tag the given column as being part of the PRIMARY KEY -func makeColumnPartOfPrimaryKey(tls *libc.TLS, pParse uintptr, pCol uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115747:13: */ +func makeColumnPartOfPrimaryKey(tls *libc.TLS, pParse uintptr, pCol uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116923:13: */ *(*U16)(unsafe.Pointer(pCol + 16)) |= U16(COLFLAG_PRIMKEY) if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED != 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+13818, 0) + ts+13857, 0) } } @@ -141541,7 +142261,7 @@ func makeColumnPartOfPrimaryKey(tls *libc.TLS, pParse uintptr, pCol uintptr) { / // // If the key is not an INTEGER PRIMARY KEY, then create a unique // index for the key. No index is created for INTEGER PRIMARY KEYs. -func Xsqlite3AddPrimaryKey(tls *libc.TLS, pParse uintptr, pList uintptr, onError int32, autoInc int32, sortOrder int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115777:21: */ +func Xsqlite3AddPrimaryKey(tls *libc.TLS, pParse uintptr, pList uintptr, onError int32, autoInc int32, sortOrder int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:116953:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -141566,7 +142286,7 @@ __1: goto __2 } Xsqlite3ErrorMsg(tls, pParse, - ts+13870, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + ts+13909, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) goto primary_key_exit __2: ; @@ -141645,7 +142365,7 @@ __15: if !(pList != 0) { goto __16 } - (*Parse)(unsafe.Pointer(pParse)).FiPkSortOrder = (*ExprList_item)(unsafe.Pointer(pList + 8)).FsortFlags + (*Parse)(unsafe.Pointer(pParse)).FiPkSortOrder = (*ExprList_item)(unsafe.Pointer(pList + 8)).Ffg.FsortFlags __16: ; Xsqlite3HasExplicitNulls(tls, pParse, pList) @@ -141655,7 +142375,7 @@ __13: goto __17 } Xsqlite3ErrorMsg(tls, pParse, - ts+13911, 0) + ts+13950, 0) goto __18 __17: Xsqlite3CreateIndex(tls, pParse, uintptr(0), uintptr(0), uintptr(0), pList, onError, uintptr(0), @@ -141672,7 +142392,7 @@ primary_key_exit: } // Add a new CHECK constraint to the table currently under construction. -func Xsqlite3AddCheckConstraint(tls *libc.TLS, pParse uintptr, pCheckExpr uintptr, zStart uintptr, zEnd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115854:21: */ +func Xsqlite3AddCheckConstraint(tls *libc.TLS, pParse uintptr, pCheckExpr uintptr, zStart uintptr, zEnd uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117030:21: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -141702,7 +142422,7 @@ func Xsqlite3AddCheckConstraint(tls *libc.TLS, pParse uintptr, pCheckExpr uintpt // Set the collation function of the most recently parsed table column // to the CollSeq given. -func Xsqlite3AddCollateType(tls *libc.TLS, pParse uintptr, pToken uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115888:21: */ +func Xsqlite3AddCollateType(tls *libc.TLS, pParse uintptr, pToken uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117064:21: */ var p uintptr var i int32 var zColl uintptr // Dequoted name of collation sequence @@ -141737,7 +142457,7 @@ func Xsqlite3AddCollateType(tls *libc.TLS, pParse uintptr, pToken uintptr) { /* // Change the most recently parsed column to be a GENERATED ALWAYS AS // column. -func Xsqlite3AddGenerated(tls *libc.TLS, pParse uintptr, pExpr uintptr, pType uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115921:21: */ +func Xsqlite3AddGenerated(tls *libc.TLS, pParse uintptr, pExpr uintptr, pType uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117097:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -141757,7 +142477,7 @@ __1: if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) == PARSE_MODE_DECLARE_VTAB) { goto __2 } - Xsqlite3ErrorMsg(tls, pParse, ts+13967, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+14006, 0) goto generated_done __2: ; @@ -141770,13 +142490,13 @@ __3: if !(pType != 0) { goto __4 } - if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, ts+14010, (*Token)(unsafe.Pointer(pType)).Fz, 7) == 0) { + if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, ts+14049, (*Token)(unsafe.Pointer(pType)).Fz, 7) == 0) { goto __5 } // no-op goto __6 __5: - if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, ts+14018, (*Token)(unsafe.Pointer(pType)).Fz, 6) == 0) { + if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, ts+14057, (*Token)(unsafe.Pointer(pType)).Fz, 6) == 0) { goto __7 } eType = U8(COLFLAG_STORED) @@ -141809,7 +142529,7 @@ __10: goto generated_done generated_error: - Xsqlite3ErrorMsg(tls, pParse, ts+14025, + Xsqlite3ErrorMsg(tls, pParse, ts+14064, libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName)) generated_done: Xsqlite3ExprDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr) @@ -141832,7 +142552,7 @@ generated_done: // // IMPLEMENTATION-OF: R-34230-56049 SQLite automatically increments // the schema-version whenever the schema changes. -func Xsqlite3ChangeCookie(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:115989:21: */ +func Xsqlite3ChangeCookie(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117165:21: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe @@ -141846,7 +142566,7 @@ func Xsqlite3ChangeCookie(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdat // // The estimate is conservative. It might be larger that what is // really needed. -func identLength(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116005:12: */ +func identLength(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117181:12: */ var n int32 n = 0 __1: @@ -141881,7 +142601,7 @@ __3: // characters, does not begin with a digit and is not an SQL keyword, // then it is copied to the output buffer exactly as it is. Otherwise, // it is quoted using double-quotes. -func identPut(tls *libc.TLS, z uintptr, pIdx uintptr, zSignedIdent uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116026:13: */ +func identPut(tls *libc.TLS, z uintptr, pIdx uintptr, zSignedIdent uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117202:13: */ var zIdent uintptr = zSignedIdent var i int32 var j int32 @@ -141917,7 +142637,7 @@ func identPut(tls *libc.TLS, z uintptr, pIdx uintptr, zSignedIdent uintptr) { /* // Generate a CREATE TABLE statement appropriate for the given // table. Memory to hold the text of the statement is obtained // from sqliteMalloc() and must be freed by the calling function. -func createTableStmt(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116054:13: */ +func createTableStmt(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117230:13: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -141952,12 +142672,12 @@ __3: n = n + identLength(tls, (*Table)(unsafe.Pointer(p)).FzName) if n < 50 { zSep = ts + 1524 /* "" */ - zSep2 = ts + 14056 /* "," */ - zEnd = ts + 6260 /* ")" */ + zSep2 = ts + 14095 /* "," */ + zEnd = ts + 6295 /* ")" */ } else { - zSep = ts + 14058 /* "\n " */ - zSep2 = ts + 14062 /* ",\n " */ - zEnd = ts + 14067 /* "\n)" */ + zSep = ts + 14097 /* "\n " */ + zSep2 = ts + 14101 /* ",\n " */ + zEnd = ts + 14106 /* "\n)" */ } n = n + (35 + 6*int32((*Table)(unsafe.Pointer(p)).FnCol)) zStmt = Xsqlite3DbMallocRaw(tls, uintptr(0), uint64(n)) @@ -141965,7 +142685,7 @@ __3: Xsqlite3OomFault(tls, db) return uintptr(0) } - Xsqlite3_snprintf(tls, n, zStmt, ts+14070, 0) + Xsqlite3_snprintf(tls, n, zStmt, ts+14109, 0) *(*int32)(unsafe.Pointer(bp + 8 /* k */)) = Xsqlite3Strlen30(tls, zStmt) identPut(tls, zStmt, bp+8, (*Table)(unsafe.Pointer(p)).FzName) *(*int8)(unsafe.Pointer(zStmt + uintptr(libc.PostIncInt32(&*(*int32)(unsafe.Pointer(bp + 8 /* k */)), 1)))) = int8('(') @@ -141999,21 +142719,21 @@ __5: goto __6 __6: ; - Xsqlite3_snprintf(tls, n-*(*int32)(unsafe.Pointer(bp + 8)), zStmt+uintptr(*(*int32)(unsafe.Pointer(bp + 8))), ts+4444, libc.VaList(bp, zEnd)) + Xsqlite3_snprintf(tls, n-*(*int32)(unsafe.Pointer(bp + 8)), zStmt+uintptr(*(*int32)(unsafe.Pointer(bp + 8))), ts+4479, libc.VaList(bp, zEnd)) return zStmt } var azType1 = [5]uintptr{ ts + 1524, - ts + 14084, - ts + 14090, - ts + 14095, - ts + 14100, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116084:23 */ + ts + 14123, + ts + 14129, + ts + 14134, + ts + 14139, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117260:23 */ // Resize an Index object to hold N columns total. Return SQLITE_OK // on success and SQLITE_NOMEM on an OOM error. -func resizeIndexObject(tls *libc.TLS, db uintptr, pIdx uintptr, N int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116122:12: */ +func resizeIndexObject(tls *libc.TLS, db uintptr, pIdx uintptr, N int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117298:12: */ var zExtra uintptr var nByte int32 if int32((*Index)(unsafe.Pointer(pIdx)).FnColumn) >= N { @@ -142042,7 +142762,7 @@ func resizeIndexObject(tls *libc.TLS, db uintptr, pIdx uintptr, N int32) int32 { } // Estimate the total row width for a table. -func estimateTableWidth(tls *libc.TLS, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116149:13: */ +func estimateTableWidth(tls *libc.TLS, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117325:13: */ var wTable uint32 = uint32(0) var pTabCol uintptr var i int32 @@ -142071,7 +142791,7 @@ __3: } // Estimate the average size of a row for an index. -func estimateIndexWidth(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116163:13: */ +func estimateIndexWidth(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117339:13: */ var wIndex uint32 = uint32(0) var i int32 var aCol uintptr = (*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol @@ -142091,7 +142811,7 @@ func estimateIndexWidth(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalga // Return true if column number x is any of the first nCol entries of aiCol[]. // This is used to determine if the column number x appears in any of the // first nCol entries of an index. -func hasColumn(tls *libc.TLS, aiCol uintptr, nCol int32, x int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116179:12: */ +func hasColumn(tls *libc.TLS, aiCol uintptr, nCol int32, x int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117355:12: */ for libc.PostDecInt32(&nCol, 1) > 0 { if x == int32(*(*I16)(unsafe.Pointer(libc.PostIncUintptr(&aiCol, 2)))) { return 1 @@ -142111,7 +142831,7 @@ func hasColumn(tls *libc.TLS, aiCol uintptr, nCol int32, x int32) int32 { /* tes // This routine differs from hasColumn() in that both the column and the // collating sequence must match for this routine, but for hasColumn() only // the column name must match. -func isDupColumn(tls *libc.TLS, pIdx uintptr, nKey int32, pPk uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116201:12: */ +func isDupColumn(tls *libc.TLS, pIdx uintptr, nKey int32, pPk uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117377:12: */ var i int32 var j int32 @@ -142144,7 +142864,7 @@ func isDupColumn(tls *libc.TLS, pIdx uintptr, nKey int32, pPk uintptr, iCol int3 // // The colNotIdxed mask is AND-ed with the SrcList.a[].colUsed mask // to determine if the index is covering index. -func recomputeColumnsNotIndexed(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116240:13: */ +func recomputeColumnsNotIndexed(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117416:13: */ var m Bitmask = uint64(0) var j int32 var pTab uintptr = (*Index)(unsafe.Pointer(pIdx)).FpTable @@ -142167,23 +142887,23 @@ func recomputeColumnsNotIndexed(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlit // are appropriate for a WITHOUT ROWID table instead of a rowid table. // Changes include: // -// (1) Set all columns of the PRIMARY KEY schema object to be NOT NULL. -// (2) Convert P3 parameter of the OP_CreateBtree from BTREE_INTKEY -// into BTREE_BLOBKEY. -// (3) Bypass the creation of the sqlite_schema table entry -// for the PRIMARY KEY as the primary key index is now -// identified by the sqlite_schema table entry of the table itself. -// (4) Set the Index.tnum of the PRIMARY KEY Index object in the -// schema to the rootpage from the main table. -// (5) Add all table columns to the PRIMARY KEY Index object -// so that the PRIMARY KEY is a covering index. The surplus -// columns are part of KeyInfo.nAllField and are not used for -// sorting or lookup or uniqueness checks. -// (6) Replace the rowid tail on all automatically generated UNIQUE -// indices with the PRIMARY KEY columns. +// (1) Set all columns of the PRIMARY KEY schema object to be NOT NULL. +// (2) Convert P3 parameter of the OP_CreateBtree from BTREE_INTKEY +// into BTREE_BLOBKEY. +// (3) Bypass the creation of the sqlite_schema table entry +// for the PRIMARY KEY as the primary key index is now +// identified by the sqlite_schema table entry of the table itself. +// (4) Set the Index.tnum of the PRIMARY KEY Index object in the +// schema to the rootpage from the main table. +// (5) Add all table columns to the PRIMARY KEY Index object +// so that the PRIMARY KEY is a covering index. The surplus +// columns are part of KeyInfo.nAllField and are not used for +// sorting or lookup or uniqueness checks. +// (6) Replace the rowid tail on all automatically generated UNIQUE +// indices with the PRIMARY KEY columns. // // For virtual tables, only (1) is performed. -func convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116280:13: */ +func convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117456:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -142231,7 +142951,7 @@ func convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { / if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME { Xsqlite3RenameTokenRemap(tls, pParse, (*ExprList_item)(unsafe.Pointer(pList+8)).FpExpr, pTab+52) } - (*ExprList_item)(unsafe.Pointer(pList + 8)).FsortFlags = (*Parse)(unsafe.Pointer(pParse)).FiPkSortOrder + (*ExprList_item)(unsafe.Pointer(pList + 8)).Ffg.FsortFlags = (*Parse)(unsafe.Pointer(pParse)).FiPkSortOrder (*Table)(unsafe.Pointer(pTab)).FiPKey = int16(-1) Xsqlite3CreateIndex(tls, pParse, uintptr(0), uintptr(0), uintptr(0), pList, int32((*Table)(unsafe.Pointer(pTab)).FkeyConf), uintptr(0), uintptr(0), 0, 0, @@ -142346,7 +143066,7 @@ func convertToWithoutRowidTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { / // Return true if pTab is a virtual table and zName is a shadow table name // for that virtual table. -func Xsqlite3IsShadowTableOf(tls *libc.TLS, db uintptr, pTab uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116440:20: */ +func Xsqlite3IsShadowTableOf(tls *libc.TLS, db uintptr, pTab uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117616:20: */ var nName int32 // Length of zName var pMod uintptr // Module for the virtual table @@ -142379,7 +143099,7 @@ func Xsqlite3IsShadowTableOf(tls *libc.TLS, db uintptr, pTab uintptr, zName uint // exists and has an xShadowName method, then loop over all other ordinary // tables within the same schema looking for shadow tables of pTab, and mark // any shadow tables seen using the TF_Shadow flag. -func Xsqlite3MarkAllShadowTablesOf(tls *libc.TLS, db uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116463:21: */ +func Xsqlite3MarkAllShadowTablesOf(tls *libc.TLS, db uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117639:21: */ var nName int32 // Length of pTab->zName var pMod uintptr // Module for the virtual table var k uintptr // For looping through the symbol table @@ -142423,7 +143143,7 @@ func Xsqlite3MarkAllShadowTablesOf(tls *libc.TLS, db uintptr, pTab uintptr) { /* // // zName is temporarily modified while this routine is running, but is // restored to its original value prior to this routine returning. -func Xsqlite3ShadowTableName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116499:20: */ +func Xsqlite3ShadowTableName(tls *libc.TLS, db uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117675:20: */ var zTail uintptr // Pointer to the last "_" in zName var pTab uintptr // Table that zName is a shadow of zTail = libc.Xstrrchr(tls, zName, '_') @@ -142460,7 +143180,7 @@ func Xsqlite3ShadowTableName(tls *libc.TLS, db uintptr, zName uintptr) int32 { / // was called to create a table generated from a // "CREATE TABLE ... AS SELECT ..." statement. The column names of // the new table will match the result set of the SELECT. -func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr, tabOpts U32, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116560:21: */ +func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr, tabOpts U32, pSelect uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:117736:21: */ bp := tls.Alloc(184) defer tls.Free(184) @@ -142516,10 +143236,10 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr if int32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf0>>4) == COLTYPE_CUSTOM { if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_HASTYPE != 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+14106, + ts+14145, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName, Xsqlite3ColumnType(tls, pCol, ts+1524))) } else { - Xsqlite3ErrorMsg(tls, pParse, ts+14139, + Xsqlite3ErrorMsg(tls, pParse, ts+14178, libc.VaList(bp+24, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName)) } return @@ -142539,11 +143259,11 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr if tabOpts&U32(TF_WithoutRowid) != 0 { if (*Table)(unsafe.Pointer(p)).FtabFlags&U32(TF_Autoincrement) != 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+14166, 0) + ts+14205, 0) return } if (*Table)(unsafe.Pointer(p)).FtabFlags&U32(TF_HasPrimaryKey) == U32(0) { - Xsqlite3ErrorMsg(tls, pParse, ts+14216, libc.VaList(bp+40, (*Table)(unsafe.Pointer(p)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+14255, libc.VaList(bp+40, (*Table)(unsafe.Pointer(p)).FzName)) return } *(*U32)(unsafe.Pointer(p + 48)) |= U32(TF_WithoutRowid | TF_NoVisibleRowid) @@ -142587,7 +143307,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr } } if nNG == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+14248, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+14287, 0) return } } @@ -142620,12 +143340,12 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr // Initialize zType for the new view or table. if int32((*Table)(unsafe.Pointer(p)).FeTabType) == TABTYP_NORM { // A regular table - zType = ts + 10113 /* "table" */ - zType2 = ts + 14292 /* "TABLE" */ + zType = ts + 10152 /* "table" */ + zType2 = ts + 14331 /* "TABLE" */ } else { // A view - zType = ts + 11728 /* "view" */ - zType2 = ts + 14298 /* "VIEW" */ + zType = ts + 11767 /* "view" */ + zType2 = ts + 14337 /* "VIEW" */ } // If this is a CREATE TABLE xx AS SELECT ..., execute the SELECT @@ -142711,7 +143431,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr n = int32(uint32(n) + (*Token)(unsafe.Pointer(pEnd2)).Fn) } zStmt = Xsqlite3MPrintf(tls, db, - ts+14303, libc.VaList(bp+48, zType2, n, (*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fz)) + ts+14342, libc.VaList(bp+48, zType2, n, (*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fz)) } // A slot for the record has already been allocated in the @@ -142719,7 +143439,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr // the information we've collected. Xsqlite3NestedParse(tls, pParse, - ts+14318, + ts+14357, libc.VaList(bp+72, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, zType, (*Table)(unsafe.Pointer(p)).FzName, @@ -142737,14 +143457,14 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr if (*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb)).FpSchema)).FpSeqTab == uintptr(0) { Xsqlite3NestedParse(tls, pParse, - ts+14416, + ts+14455, libc.VaList(bp+128, (*Db)(unsafe.Pointer(pDb)).FzDbSName)) } } // Reparse everything to update our internal data structures Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb, - Xsqlite3MPrintf(tls, db, ts+14458, libc.VaList(bp+136, (*Table)(unsafe.Pointer(p)).FzName)), uint16(0)) + Xsqlite3MPrintf(tls, db, ts+14497, libc.VaList(bp+136, (*Table)(unsafe.Pointer(p)).FzName)), uint16(0)) } // Add the table to the in-memory representation of the database. @@ -142765,7 +143485,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr // then record a pointer to this table in the main database structure // so that INSERT can find the table easily. - if libc.Xstrcmp(tls, (*Table)(unsafe.Pointer(p)).FzName, ts+10635) == 0 { + if libc.Xstrcmp(tls, (*Table)(unsafe.Pointer(p)).FzName, ts+10674) == 0 { (*Schema)(unsafe.Pointer((*Table)(unsafe.Pointer(p)).FpSchema)).FpSeqTab = p } @@ -142781,7 +143501,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr } // The parser calls this routine in order to create a new VIEW -func Xsqlite3CreateView(tls *libc.TLS, pParse uintptr, pBegin uintptr, pName1 uintptr, pName2 uintptr, pCNames uintptr, pSelect uintptr, isTemp int32, noErr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116902:21: */ +func Xsqlite3CreateView(tls *libc.TLS, pParse uintptr, pBegin uintptr, pName1 uintptr, pName2 uintptr, pCNames uintptr, pSelect uintptr, isTemp int32, noErr int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118078:21: */ bp := tls.Alloc(120) defer tls.Free(120) @@ -142802,7 +143522,7 @@ func Xsqlite3CreateView(tls *libc.TLS, pParse uintptr, pBegin uintptr, pName1 ui if !(int32((*Parse)(unsafe.Pointer(pParse)).FnVar) > 0) { goto __1 } - Xsqlite3ErrorMsg(tls, pParse, ts+14492, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+14531, 0) goto create_view_fail __1: ; @@ -142824,7 +143544,7 @@ __2: Xsqlite3TwoPartName(tls, pParse, pName1, pName2, bp) iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(p)).FpSchema) - Xsqlite3FixInit(tls, bp+8, pParse, iDb, ts+11728, *(*uintptr)(unsafe.Pointer(bp /* pName */))) + Xsqlite3FixInit(tls, bp+8, pParse, iDb, ts+11767, *(*uintptr)(unsafe.Pointer(bp /* pName */))) if !(Xsqlite3FixSelect(tls, bp+8, pSelect) != 0) { goto __3 } @@ -142899,14 +143619,13 @@ __10: // The Table structure pTable is really a VIEW. Fill in the names of // the columns of the view in the pTable structure. Return the number // of errors. If an error is seen leave an error message in pParse->zErrMsg. -func Xsqlite3ViewGetColumnNames(tls *libc.TLS, pParse uintptr, pTable uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116994:20: */ +func Xsqlite3ViewGetColumnNames(tls *libc.TLS, pParse uintptr, pTable uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118170:20: */ bp := tls.Alloc(8) defer tls.Free(8) var pSelTab uintptr // A fake table from which we get the result set var pSel uintptr // Copy of the SELECT that implements the view var nErr int32 = 0 // Number of errors encountered - var n int32 // Temporarily holds the number of cursors assigned var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb // Database connection for malloc errors var rc int32 var xAuth Sqlite3_xauth // Saved xAuth pointer @@ -142939,7 +143658,7 @@ func Xsqlite3ViewGetColumnNames(tls *libc.TLS, pParse uintptr, pTable uintptr) i // CREATE TEMP VIEW ex1 AS SELECT a FROM ex1; // SELECT * FROM temp.ex1; if int32((*Table)(unsafe.Pointer(pTable)).FnCol) < 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+14528, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+14567, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName)) return 1 } @@ -142953,8 +143672,9 @@ func Xsqlite3ViewGetColumnNames(tls *libc.TLS, pParse uintptr, pTable uintptr) i pSel = Xsqlite3SelectDup(tls, db, *(*uintptr)(unsafe.Pointer(pTable + 64)), 0) if pSel != 0 { var eParseMode U8 = (*Parse)(unsafe.Pointer(pParse)).FeParseMode + var nTab int32 = (*Parse)(unsafe.Pointer(pParse)).FnTab + var nSelect int32 = (*Parse)(unsafe.Pointer(pParse)).FnSelect (*Parse)(unsafe.Pointer(pParse)).FeParseMode = U8(PARSE_MODE_NORMAL) - n = (*Parse)(unsafe.Pointer(pParse)).FnTab Xsqlite3SrcListAssignCursors(tls, pParse, (*Select)(unsafe.Pointer(pSel)).FpSrc) (*Table)(unsafe.Pointer(pTable)).FnCol = int16(-1) (*Sqlite3)(unsafe.Pointer(db)).Flookaside.FbDisable++ @@ -142963,7 +143683,8 @@ func Xsqlite3ViewGetColumnNames(tls *libc.TLS, pParse uintptr, pTable uintptr) i (*Sqlite3)(unsafe.Pointer(db)).FxAuth = uintptr(0) pSelTab = Xsqlite3ResultSetOfSelect(tls, pParse, pSel, int8(SQLITE_AFF_NONE)) (*Sqlite3)(unsafe.Pointer(db)).FxAuth = xAuth - (*Parse)(unsafe.Pointer(pParse)).FnTab = n + (*Parse)(unsafe.Pointer(pParse)).FnTab = nTab + (*Parse)(unsafe.Pointer(pParse)).FnSelect = nSelect if pSelTab == uintptr(0) { (*Table)(unsafe.Pointer(pTable)).FnCol = int16(0) nErr++ @@ -143014,7 +143735,7 @@ func Xsqlite3ViewGetColumnNames(tls *libc.TLS, pParse uintptr, pTable uintptr) i } // Clear the column names from every VIEW in database idx. -func sqliteViewResetAll(tls *libc.TLS, db uintptr, idx int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117122:13: */ +func sqliteViewResetAll(tls *libc.TLS, db uintptr, idx int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118299:13: */ var i uintptr if !(int32((*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(idx)*32)).FpSchema)).FschemaFlags)&DB_UnresetViews == DB_UnresetViews) { @@ -143044,7 +143765,7 @@ func sqliteViewResetAll(tls *libc.TLS, db uintptr, idx int32) { /* testdata/sqli // We must continue looping until all tables and indices with // rootpage==iFrom have been converted to have a rootpage of iTo // in order to be certain that we got the right one. -func Xsqlite3RootPageMoved(tls *libc.TLS, db uintptr, iDb int32, iFrom Pgno, iTo Pgno) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117156:21: */ +func Xsqlite3RootPageMoved(tls *libc.TLS, db uintptr, iDb int32, iFrom Pgno, iTo Pgno) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118333:21: */ var pElem uintptr var pHash uintptr var pDb uintptr @@ -143070,14 +143791,14 @@ func Xsqlite3RootPageMoved(tls *libc.TLS, db uintptr, iDb int32, iFrom Pgno, iTo // Also write code to modify the sqlite_schema table and internal schema // if a root-page of another table is moved by the btree-layer whilst // erasing iTable (this can happen with an auto-vacuum database). -func destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117186:13: */ +func destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118363:13: */ bp := tls.Alloc(32) defer tls.Free(32) var v uintptr = Xsqlite3GetVdbe(tls, pParse) var r1 int32 = Xsqlite3GetTempReg(tls, pParse) if iTable < 2 { - Xsqlite3ErrorMsg(tls, pParse, ts+14558, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+14597, 0) } Xsqlite3VdbeAddOp3(tls, v, OP_Destroy, iTable, r1, iDb) Xsqlite3MayAbort(tls, pParse) @@ -143091,7 +143812,7 @@ func destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) { / // token for additional information. Xsqlite3NestedParse(tls, pParse, - ts+14573, + ts+14612, libc.VaList(bp, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FaDb+uintptr(iDb)*32)).FzDbSName, iTable, r1, r1)) Xsqlite3ReleaseTempReg(tls, pParse, r1) } @@ -143100,7 +143821,7 @@ func destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) { / // Code to update the sqlite_schema tables and internal schema definitions // in case a root-page belonging to another table is moved by the btree layer // is also added (this can happen with an auto-vacuum database). -func destroyTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117216:13: */ +func destroyTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118393:13: */ // If the database may be auto-vacuum capable (if SQLITE_OMIT_AUTOVACUUM // is not defined), then it is important to call OP_Destroy on the // table and index root-pages in order, starting with the numerically @@ -143146,7 +143867,7 @@ func destroyTable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* testdata/sql // Remove entries from the sqlite_statN tables (for N in (1,2,3)) // after a DROP INDEX or DROP TABLE command. -func sqlite3ClearStatTables(tls *libc.TLS, pParse uintptr, iDb int32, zType uintptr, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117265:13: */ +func sqlite3ClearStatTables(tls *libc.TLS, pParse uintptr, iDb int32, zType uintptr, zName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118442:13: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -143155,17 +143876,17 @@ func sqlite3ClearStatTables(tls *libc.TLS, pParse uintptr, iDb int32, zType uint for i = 1; i <= 4; i++ { // var zTab [24]int8 at bp+40, 24 - Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([24]int8{})), bp+40, ts+14640, libc.VaList(bp, i)) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([24]int8{})), bp+40, ts+14679, libc.VaList(bp, i)) if Xsqlite3FindTable(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, bp+40, zDbName) != 0 { Xsqlite3NestedParse(tls, pParse, - ts+12537, + ts+12576, libc.VaList(bp+8, zDbName, bp+40, zType, zName)) } } } // Generate code to drop a table. -func Xsqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int32, isView int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117288:21: */ +func Xsqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int32, isView int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118465:21: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -143198,7 +143919,7 @@ func Xsqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int3 // move as a result of the drop (can happen in auto-vacuum mode). if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_Autoincrement) != 0 { Xsqlite3NestedParse(tls, pParse, - ts+14654, + ts+14693, libc.VaList(bp, (*Db)(unsafe.Pointer(pDb)).FzDbSName, (*Table)(unsafe.Pointer(pTab)).FzName)) } @@ -143210,7 +143931,7 @@ func Xsqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int3 // database. Xsqlite3NestedParse(tls, pParse, - ts+14699, + ts+14738, libc.VaList(bp+16, (*Db)(unsafe.Pointer(pDb)).FzDbSName, (*Table)(unsafe.Pointer(pTab)).FzName)) if !(isView != 0) && !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { destroyTable(tls, pParse, pTab) @@ -143229,7 +143950,7 @@ func Xsqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int3 // Return TRUE if shadow tables should be read-only in the current // context. -func Xsqlite3ReadOnlyShadowTables(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117361:20: */ +func Xsqlite3ReadOnlyShadowTables(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118538:20: */ if (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_Defensive) != uint64(0) && (*Sqlite3)(unsafe.Pointer(db)).FpVtabCtx == uintptr(0) && (*Sqlite3)(unsafe.Pointer(db)).FnVdbeExec == 0 && @@ -143240,12 +143961,12 @@ func Xsqlite3ReadOnlyShadowTables(tls *libc.TLS, db uintptr) int32 { /* testdata } // Return true if it is not allowed to drop the given table -func tableMayNotBeDropped(tls *libc.TLS, db uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117377:12: */ - if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+9371, 7) == 0 { - if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+14766, 4) == 0 { +func tableMayNotBeDropped(tls *libc.TLS, db uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118554:12: */ + if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+9410, 7) == 0 { + if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+14805, 4) == 0 { return 0 } - if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+8367, 10) == 0 { + if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+8411, 10) == 0 { return 0 } return 1 @@ -143261,7 +143982,7 @@ func tableMayNotBeDropped(tls *libc.TLS, db uintptr, pTab uintptr) int32 { /* te // This routine is called to do the work of a DROP TABLE statement. // pName is the name of the table to be dropped. -func Xsqlite3DropTable(tls *libc.TLS, pParse uintptr, pName uintptr, isView int32, noErr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117396:21: */ +func Xsqlite3DropTable(tls *libc.TLS, pParse uintptr, pName uintptr, isView int32, noErr int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118573:21: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -143329,9 +144050,9 @@ __7: zTab = func() uintptr { if !(0 != 0) && iDb == 1 { - return ts + 13385 + return ts + 13424 } - return ts + 7196 + return ts + 7231 }() zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName zArg2 = uintptr(0) @@ -143391,7 +144112,7 @@ __18: if !(tableMayNotBeDropped(tls, db, pTab) != 0) { goto __19 } - Xsqlite3ErrorMsg(tls, pParse, ts+14771, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+14810, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) goto exit_drop_table __19: ; @@ -143401,14 +144122,14 @@ __19: if !(isView != 0 && !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW)) { goto __20 } - Xsqlite3ErrorMsg(tls, pParse, ts+14799, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+14838, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) goto exit_drop_table __20: ; if !(!(isView != 0) && int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) { goto __21 } - Xsqlite3ErrorMsg(tls, pParse, ts+14833, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+14872, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName)) goto exit_drop_table __21: ; @@ -143423,7 +144144,7 @@ __21: if !!(isView != 0) { goto __23 } - sqlite3ClearStatTables(tls, pParse, iDb, ts+12729, (*Table)(unsafe.Pointer(pTab)).FzName) + sqlite3ClearStatTables(tls, pParse, iDb, ts+12768, (*Table)(unsafe.Pointer(pTab)).FzName) Xsqlite3FkDropTable(tls, pParse, pName, pTab) __23: ; @@ -143449,7 +144170,7 @@ exit_drop_table: // // The foreign key is set for IMMEDIATE processing. A subsequent call // to sqlite3DeferForeignKey() might change this to DEFERRED. -func Xsqlite3CreateForeignKey(tls *libc.TLS, pParse uintptr, pFromCol uintptr, pTo uintptr, pToCol uintptr, flags int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117516:21: */ +func Xsqlite3CreateForeignKey(tls *libc.TLS, pParse uintptr, pFromCol uintptr, pTo uintptr, pToCol uintptr, flags int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118693:21: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -143488,7 +144209,7 @@ __4: goto __5 } Xsqlite3ErrorMsg(tls, pParse, - ts+14865, + ts+14904, libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(p)).FaCol+uintptr(iCol)*24)).FzCnName, pTo)) goto fk_end __5: @@ -143501,7 +144222,7 @@ __2: } Xsqlite3ErrorMsg(tls, pParse, - ts+14928, 0) + ts+14967, 0) goto fk_end goto __7 __6: @@ -143586,7 +144307,7 @@ __21: goto __23 } Xsqlite3ErrorMsg(tls, pParse, - ts+15022, + ts+15061, libc.VaList(bp+16, (*ExprList_item)(unsafe.Pointer(pFromCol+8+uintptr(i)*32)).FzEName)) goto fk_end __23: @@ -143672,7 +144393,7 @@ fk_end: // parameter is 1 for INITIALLY DEFERRED and 0 for INITIALLY IMMEDIATE. // The behavior of the most recently created foreign key is adjusted // accordingly. -func Xsqlite3DeferForeignKey(tls *libc.TLS, pParse uintptr, isDeferred int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117648:21: */ +func Xsqlite3DeferForeignKey(tls *libc.TLS, pParse uintptr, isDeferred int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118825:21: */ var pTab uintptr var pFKey uintptr if libc.AssignUintptr(&pTab, (*Parse)(unsafe.Pointer(pParse)).FpNewTable) == uintptr(0) { @@ -143697,7 +144418,7 @@ func Xsqlite3DeferForeignKey(tls *libc.TLS, pParse uintptr, isDeferred int32) { // root page number of the index. If memRootPage is negative, then // the index already exists and must be cleared before being refilled and // the root page number of the index is taken from pIndex->tnum. -func sqlite3RefillIndex(tls *libc.TLS, pParse uintptr, pIndex uintptr, memRootPage int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117671:13: */ +func sqlite3RefillIndex(tls *libc.TLS, pParse uintptr, pIndex uintptr, memRootPage int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118848:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -143737,7 +144458,7 @@ func sqlite3RefillIndex(tls *libc.TLS, pParse uintptr, pIndex uintptr, memRootPa // Open the sorter cursor if we are to use one. iSorter = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) - Xsqlite3VdbeAddOp4(tls, v, OP_SorterOpen, iSorter, 0, int32((*Index)(unsafe.Pointer(pIndex)).FnKeyCol), Xsqlite3KeyInfoRef(tls, pKey), -9) + Xsqlite3VdbeAddOp4(tls, v, OP_SorterOpen, iSorter, 0, int32((*Index)(unsafe.Pointer(pIndex)).FnKeyCol), Xsqlite3KeyInfoRef(tls, pKey), -8) // Open the table. Loop through all rows of the table, inserting index // records into the sorter. @@ -143755,7 +144476,7 @@ func sqlite3RefillIndex(tls *libc.TLS, pParse uintptr, pIndex uintptr, memRootPa Xsqlite3VdbeAddOp2(tls, v, OP_Clear, int32(tnum), iDb) } Xsqlite3VdbeAddOp4(tls, v, OP_OpenWrite, iIdx, int32(tnum), iDb, - pKey, -9) + pKey, -8) Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_BULKCSR|func() int32 { if memRootPage >= 0 { return OPFLAG_P2ISREG @@ -143809,7 +144530,7 @@ func sqlite3RefillIndex(tls *libc.TLS, pParse uintptr, pIndex uintptr, memRootPa // Increase the allocation size to provide an extra nExtra bytes // of 8-byte aligned space after the Index object and return a // pointer to this extra space in *ppExtra. -func Xsqlite3AllocateIndexObject(tls *libc.TLS, db uintptr, nCol I16, nExtra int32, ppExtra uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117777:22: */ +func Xsqlite3AllocateIndexObject(tls *libc.TLS, db uintptr, nCol I16, nExtra int32, ppExtra uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118954:22: */ var p uintptr // Allocated index object var nByte int32 // Bytes of space for Index object + arrays @@ -143834,21 +144555,21 @@ func Xsqlite3AllocateIndexObject(tls *libc.TLS, db uintptr, nCol I16, nExtra int // If expression list pList contains an expression that was parsed with // an explicit "NULLS FIRST" or "NULLS LAST" clause, leave an error in // pParse and return non-zero. Otherwise, return zero. -func Xsqlite3HasExplicitNulls(tls *libc.TLS, pParse uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117810:20: */ +func Xsqlite3HasExplicitNulls(tls *libc.TLS, pParse uintptr, pList uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:118987:20: */ bp := tls.Alloc(8) defer tls.Free(8) if pList != 0 { var i int32 for i = 0; i < (*ExprList)(unsafe.Pointer(pList)).FnExpr; i++ { - if uint32(int32(*(*uint8)(unsafe.Pointer(pList + 8 + uintptr(i)*32 + 20))&0x20>>5)) != 0 { - var sf U8 = (*ExprList_item)(unsafe.Pointer(pList + 8 + uintptr(i)*32)).FsortFlags - Xsqlite3ErrorMsg(tls, pParse, ts+15068, + if uint32(int32(*(*uint16)(unsafe.Pointer(pList + 8 + uintptr(i)*32 + 16 + 4))&0x20>>5)) != 0 { + var sf U8 = (*ExprList_item)(unsafe.Pointer(pList + 8 + uintptr(i)*32)).Ffg.FsortFlags + Xsqlite3ErrorMsg(tls, pParse, ts+15107, libc.VaList(bp, func() uintptr { if int32(sf) == 0 || int32(sf) == 3 { - return ts + 15096 /* "FIRST" */ + return ts + 15135 /* "FIRST" */ } - return ts + 15102 /* "LAST" */ + return ts + 15141 /* "LAST" */ }())) return 1 } @@ -143867,7 +144588,7 @@ func Xsqlite3HasExplicitNulls(tls *libc.TLS, pParse uintptr, pList uintptr) int3 // pList is a list of columns to be indexed. pList will be NULL if this // is a primary key or unique-constraint on the most recent column added // to the table currently under construction. -func Xsqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, pTblName uintptr, pList uintptr, onError int32, pStart uintptr, pPIWhere uintptr, sortOrder int32, ifNotExist int32, idxType U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:117838:21: */ +func Xsqlite3CreateIndex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, pTblName uintptr, pList uintptr, onError int32, pStart uintptr, pPIWhere uintptr, sortOrder int32, ifNotExist int32, idxType U8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:119015:21: */ bp := tls.Alloc(256) defer tls.Free(256) @@ -144007,7 +144728,7 @@ __9: __8: ; - Xsqlite3FixInit(tls, bp+136, pParse, iDb, ts+15107, *(*uintptr)(unsafe.Pointer(bp + 128 /* pName */))) + Xsqlite3FixInit(tls, bp+136, pParse, iDb, ts+15146, *(*uintptr)(unsafe.Pointer(bp + 128 /* pName */))) if !(Xsqlite3FixSrcList(tls, bp+136, pTblName) != 0) { goto __10 } @@ -144028,7 +144749,7 @@ __11: goto __12 } Xsqlite3ErrorMsg(tls, pParse, - ts+15113, + ts+15152, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) goto exit_create_index __12: @@ -144055,26 +144776,26 @@ __6: ; pDb = (*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32 - if !(Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+9371, 7) == 0 && + if !(Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+9410, 7) == 0 && int32((*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy) == 0 && pTblName != uintptr(0)) { goto __15 } - Xsqlite3ErrorMsg(tls, pParse, ts+15163, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+15202, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) goto exit_create_index __15: ; if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) { goto __16 } - Xsqlite3ErrorMsg(tls, pParse, ts+15191, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+15230, 0) goto exit_create_index __16: ; if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { goto __17 } - Xsqlite3ErrorMsg(tls, pParse, ts+15216, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+15255, 0) goto exit_create_index __17: ; @@ -144101,7 +144822,7 @@ __17: __20: ; - if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+15107, (*Table)(unsafe.Pointer(pTab)).FzName)) { + if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+15146, (*Table)(unsafe.Pointer(pTab)).FzName)) { goto __21 } goto exit_create_index @@ -144116,7 +144837,7 @@ __21: if !(Xsqlite3FindTable(tls, db, zName, uintptr(0)) != uintptr(0)) { goto __24 } - Xsqlite3ErrorMsg(tls, pParse, ts+15250, libc.VaList(bp+16, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+15289, libc.VaList(bp+16, zName)) goto exit_create_index __24: ; @@ -144128,7 +144849,7 @@ __23: if !!(ifNotExist != 0) { goto __26 } - Xsqlite3ErrorMsg(tls, pParse, ts+15284, libc.VaList(bp+24, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+15323, libc.VaList(bp+24, zName)) goto __27 __26: ; @@ -144157,7 +144878,7 @@ __29: goto __30 __30: ; - zName = Xsqlite3MPrintf(tls, db, ts+15308, libc.VaList(bp+32, (*Table)(unsafe.Pointer(pTab)).FzName, n)) + zName = Xsqlite3MPrintf(tls, db, ts+15347, libc.VaList(bp+32, (*Table)(unsafe.Pointer(pTab)).FzName, n)) if !(zName == uintptr(0)) { goto __31 } @@ -144186,9 +144907,9 @@ __19: zDb = (*Db)(unsafe.Pointer(pDb)).FzDbSName if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_INSERT, func() uintptr { if !(0 != 0) && iDb == 1 { - return ts + 13385 + return ts + 13424 } - return ts + 7196 + return ts + 7231 }(), uintptr(0), zDb) != 0) { goto __34 } @@ -144232,7 +144953,7 @@ __39: Xsqlite3ExprListSetSortOrder(tls, pList, sortOrder, -1) goto __38 __37: - Xsqlite3ExprListCheckLength(tls, pParse, pList, ts+15107) + Xsqlite3ExprListCheckLength(tls, pParse, pList, ts+15146) if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) { goto __40 } @@ -144350,7 +145071,7 @@ __53: goto __56 } Xsqlite3ErrorMsg(tls, pParse, - ts+15331, 0) + ts+15370, 0) goto exit_create_index __56: ; @@ -144426,7 +145147,7 @@ __65: __66: ; *(*uintptr)(unsafe.Pointer((*Index)(unsafe.Pointer(pIndex)).FazColl + uintptr(i)*8)) = zColl - requestedSortOrder = int32((*ExprList_item)(unsafe.Pointer(pListItem)).FsortFlags) & sortOrderMask + requestedSortOrder = int32((*ExprList_item)(unsafe.Pointer(pListItem)).Ffg.FsortFlags) & sortOrderMask *(*U8)(unsafe.Pointer((*Index)(unsafe.Pointer(pIndex)).FaSortOrder + uintptr(i))) = U8(requestedSortOrder) goto __51 __51: @@ -144580,7 +145301,7 @@ __88: goto __93 } Xsqlite3ErrorMsg(tls, pParse, - ts+15392, libc.VaList(bp+48, 0)) + ts+15431, libc.VaList(bp+48, 0)) __93: ; if !(int32((*Index)(unsafe.Pointer(pIdx)).FonError) == OE_Default) { @@ -144636,8 +145357,8 @@ __81: if !(Xsqlite3IndexHasDuplicateRootPage(tls, pIndex) != 0) { goto __101 } - Xsqlite3ErrorMsg(tls, pParse, ts+15434, 0) - (*Parse)(unsafe.Pointer(pParse)).Frc = Xsqlite3CorruptError(tls, 118294) + Xsqlite3ErrorMsg(tls, pParse, ts+15473, 0) + (*Parse)(unsafe.Pointer(pParse)).Frc = Xsqlite3CorruptError(tls, 119471) goto exit_create_index __101: ; @@ -144694,12 +145415,12 @@ __104: __107: ; // A named index with an explicit CREATE INDEX statement - zStmt = Xsqlite3MPrintf(tls, db, ts+15451, + zStmt = Xsqlite3MPrintf(tls, db, ts+15490, libc.VaList(bp+56, func() uintptr { if onError == OE_None { return ts + 1524 /* "" */ } - return ts + 15471 /* " UNIQUE" */ + return ts + 15510 /* " UNIQUE" */ }(), n1, (*Token)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 128 /* pName */)))).Fz)) goto __106 __105: @@ -144711,7 +145432,7 @@ __106: // Add an entry in sqlite_schema for this index Xsqlite3NestedParse(tls, pParse, - ts+15479, + ts+15518, libc.VaList(bp+80, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, (*Index)(unsafe.Pointer(pIndex)).FzName, (*Table)(unsafe.Pointer(pTab)).FzName, @@ -144727,7 +145448,7 @@ __106: sqlite3RefillIndex(tls, pParse, pIndex, iMem) Xsqlite3ChangeCookie(tls, pParse, iDb) Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb, - Xsqlite3MPrintf(tls, db, ts+15538, libc.VaList(bp+120, (*Index)(unsafe.Pointer(pIndex)).FzName)), uint16(0)) + Xsqlite3MPrintf(tls, db, ts+15577, libc.VaList(bp+120, (*Index)(unsafe.Pointer(pIndex)).FzName)), uint16(0)) Xsqlite3VdbeAddOp2(tls, v, OP_Expire, 0, 1) __108: ; @@ -144817,13 +145538,13 @@ __113: // of rows that match any particular combination of the first 2 columns // of the index. And so forth. It must always be the case that // -// aiRowEst[N]<=aiRowEst[N-1] -// aiRowEst[N]>=1 +// aiRowEst[N]<=aiRowEst[N-1] +// aiRowEst[N]>=1 // // Apart from that, we have little to go on besides intuition as to // how aiRowEst[] should be initialized. The numbers generated here // are based on typical values found in actual indices. -func Xsqlite3DefaultRowEst(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118449:21: */ +func Xsqlite3DefaultRowEst(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:119626:21: */ var a uintptr = (*Index)(unsafe.Pointer(pIdx)).FaiRowLogEst var x LogEst var nCopy int32 = func() int32 { @@ -144867,11 +145588,11 @@ func Xsqlite3DefaultRowEst(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlite-ama } } -var aVal = [5]LogEst{int16(33), int16(32), int16(30), int16(28), int16(26)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118451:23 */ +var aVal = [5]LogEst{int16(33), int16(32), int16(30), int16(28), int16(26)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:119628:23 */ // This routine will drop an existing named index. This routine // implements the DROP INDEX statement. -func Xsqlite3DropIndex(tls *libc.TLS, pParse uintptr, pName uintptr, ifExists int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118493:21: */ +func Xsqlite3DropIndex(tls *libc.TLS, pParse uintptr, pName uintptr, ifExists int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:119670:21: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -144906,7 +145627,7 @@ __2: if !!(ifExists != 0) { goto __4 } - Xsqlite3ErrorMsg(tls, pParse, ts+15565, libc.VaList(bp, pName+8)) + Xsqlite3ErrorMsg(tls, pParse, ts+15604, libc.VaList(bp, pName+8)) goto __5 __4: Xsqlite3CodeVerifyNamedSchema(tls, pParse, (*SrcItem)(unsafe.Pointer(pName+8)).FzDatabase) @@ -144921,7 +145642,7 @@ __3: goto __6 } Xsqlite3ErrorMsg(tls, pParse, - ts+15583, libc.VaList(bp+8, 0)) + ts+15622, libc.VaList(bp+8, 0)) goto exit_drop_index __6: ; @@ -144932,9 +145653,9 @@ __6: zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName zTab = func() uintptr { if !(0 != 0) && iDb == 1 { - return ts + 13385 + return ts + 13424 } - return ts + 7196 + return ts + 7231 }() if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_DELETE, zTab, uintptr(0), zDb) != 0) { goto __7 @@ -144962,9 +145683,9 @@ __9: } Xsqlite3BeginWriteOperation(tls, pParse, 1, iDb) Xsqlite3NestedParse(tls, pParse, - ts+15656, + ts+15695, libc.VaList(bp+16, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, (*Index)(unsafe.Pointer(pIndex)).FzName)) - sqlite3ClearStatTables(tls, pParse, iDb, ts+12725, (*Index)(unsafe.Pointer(pIndex)).FzName) + sqlite3ClearStatTables(tls, pParse, iDb, ts+12764, (*Index)(unsafe.Pointer(pIndex)).FzName) Xsqlite3ChangeCookie(tls, pParse, iDb) destroyRootPage(tls, pParse, int32((*Index)(unsafe.Pointer(pIndex)).Ftnum), iDb) Xsqlite3VdbeAddOp4(tls, v, OP_DropIndex, iDb, 0, 0, (*Index)(unsafe.Pointer(pIndex)).FzName, 0) @@ -144990,7 +145711,7 @@ exit_drop_index: // // Otherwise, if the realloc() fails, *pIdx is set to -1, *pnEntry remains // unchanged and a copy of pArray returned. -func Xsqlite3ArrayAllocate(tls *libc.TLS, db uintptr, pArray uintptr, szEntry int32, pnEntry uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118575:21: */ +func Xsqlite3ArrayAllocate(tls *libc.TLS, db uintptr, pArray uintptr, szEntry int32, pnEntry uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:119752:21: */ var z uintptr var n Sqlite3_int64 = Sqlite3_int64(libc.AssignPtrInt32(pIdx, *(*int32)(unsafe.Pointer(pnEntry)))) if n&(n-int64(1)) == int64(0) { @@ -145017,58 +145738,52 @@ func Xsqlite3ArrayAllocate(tls *libc.TLS, db uintptr, pArray uintptr, szEntry in // need be. // // A new IdList is returned, or NULL if malloc() fails. -func Xsqlite3IdListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pToken uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118605:23: */ - bp := tls.Alloc(4) - defer tls.Free(4) - +func Xsqlite3IdListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pToken uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:119782:23: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb - // var i int32 at bp, 4 - + var i int32 if pList == uintptr(0) { pList = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(IdList{}))) if pList == uintptr(0) { return uintptr(0) } + } else { + var pNew uintptr + pNew = Xsqlite3DbRealloc(tls, db, pList, + uint64(unsafe.Sizeof(IdList{}))+uint64((*IdList)(unsafe.Pointer(pList)).FnId)*uint64(unsafe.Sizeof([1]IdList_item{}))) + if pNew == uintptr(0) { + Xsqlite3IdListDelete(tls, db, pList) + return uintptr(0) + } + pList = pNew } - (*IdList)(unsafe.Pointer(pList)).Fa = Xsqlite3ArrayAllocate(tls, - db, - (*IdList)(unsafe.Pointer(pList)).Fa, - int32(unsafe.Sizeof(IdList_item{})), - pList+8, - bp) - if *(*int32)(unsafe.Pointer(bp)) < 0 { - Xsqlite3IdListDelete(tls, db, pList) - return uintptr(0) - } - (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pList)).Fa + uintptr(*(*int32)(unsafe.Pointer(bp /* i */)))*16)).FzName = Xsqlite3NameFromToken(tls, db, pToken) - if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME && (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pList)).Fa+uintptr(*(*int32)(unsafe.Pointer(bp)))*16)).FzName != 0 { - Xsqlite3RenameTokenMap(tls, pParse, (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pList)).Fa+uintptr(*(*int32)(unsafe.Pointer(bp /* i */)))*16)).FzName, pToken) + i = libc.PostIncInt32(&(*IdList)(unsafe.Pointer(pList)).FnId, 1) + (*IdList_item)(unsafe.Pointer(pList + 8 + uintptr(i)*16)).FzName = Xsqlite3NameFromToken(tls, db, pToken) + if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME && (*IdList_item)(unsafe.Pointer(pList+8+uintptr(i)*16)).FzName != 0 { + Xsqlite3RenameTokenMap(tls, pParse, (*IdList_item)(unsafe.Pointer(pList+8+uintptr(i)*16)).FzName, pToken) } return pList } // Delete an IdList. -func Xsqlite3IdListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118633:21: */ +func Xsqlite3IdListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:119809:21: */ var i int32 if pList == uintptr(0) { return } + // EU4_EXPR mode is not currently used for i = 0; i < (*IdList)(unsafe.Pointer(pList)).FnId; i++ { - Xsqlite3DbFree(tls, db, (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pList)).Fa+uintptr(i)*16)).FzName) + Xsqlite3DbFree(tls, db, (*IdList_item)(unsafe.Pointer(pList+8+uintptr(i)*16)).FzName) } - Xsqlite3DbFree(tls, db, (*IdList)(unsafe.Pointer(pList)).Fa) Xsqlite3DbFreeNN(tls, db, pList) } // Return the index in pList of the identifier named zId. Return -1 // if not found. -func Xsqlite3IdListIndex(tls *libc.TLS, pList uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118647:20: */ +func Xsqlite3IdListIndex(tls *libc.TLS, pList uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:119823:20: */ var i int32 - if pList == uintptr(0) { - return -1 - } + for i = 0; i < (*IdList)(unsafe.Pointer(pList)).FnId; i++ { - if Xsqlite3StrICmp(tls, (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pList)).Fa+uintptr(i)*16)).FzName, zName) == 0 { + if Xsqlite3StrICmp(tls, (*IdList_item)(unsafe.Pointer(pList+8+uintptr(i)*16)).FzName, zName) == 0 { return i } } @@ -145089,7 +145804,7 @@ func Xsqlite3IdListIndex(tls *libc.TLS, pList uintptr, zName uintptr) int32 { /* // For example, suppose a SrcList initially contains two entries: A,B. // To append 3 new entries onto the end, do this: // -// sqlite3SrcListEnlarge(db, pSrclist, 3, 2); +// sqlite3SrcListEnlarge(db, pSrclist, 3, 2); // // After the call above it would contain: A, B, nil, nil, nil. // If the iStart argument had been 1 instead of 2, then the result @@ -145100,7 +145815,7 @@ func Xsqlite3IdListIndex(tls *libc.TLS, pList uintptr, zName uintptr) int32 { /* // If a memory allocation fails or the SrcList becomes too large, leave // the original SrcList unchanged, return NULL, and leave an error message // in pParse. -func Xsqlite3SrcListEnlarge(tls *libc.TLS, pParse uintptr, pSrc uintptr, nExtra int32, iStart int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118688:24: */ +func Xsqlite3SrcListEnlarge(tls *libc.TLS, pParse uintptr, pSrc uintptr, nExtra int32, iStart int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:119864:24: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -145115,7 +145830,7 @@ func Xsqlite3SrcListEnlarge(tls *libc.TLS, pParse uintptr, pSrc uintptr, nExtra var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb if (*SrcList)(unsafe.Pointer(pSrc)).FnSrc+nExtra >= SQLITE_MAX_SRCLIST { - Xsqlite3ErrorMsg(tls, pParse, ts+15716, + Xsqlite3ErrorMsg(tls, pParse, ts+15755, libc.VaList(bp, SQLITE_MAX_SRCLIST)) return uintptr(0) } @@ -145135,14 +145850,14 @@ func Xsqlite3SrcListEnlarge(tls *libc.TLS, pParse uintptr, pSrc uintptr, nExtra // Move existing slots that come after the newly inserted slots // out of the way for i = (*SrcList)(unsafe.Pointer(pSrc)).FnSrc - 1; i >= iStart; i-- { - *(*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i+nExtra)*112)) = *(*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i)*112)) + *(*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i+nExtra)*104)) = *(*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104)) } *(*int32)(unsafe.Pointer(pSrc)) += nExtra // Zero the newly allocated slots - libc.Xmemset(tls, pSrc+8+uintptr(iStart)*112, 0, uint64(unsafe.Sizeof(SrcItem{}))*uint64(nExtra)) + libc.Xmemset(tls, pSrc+8+uintptr(iStart)*104, 0, uint64(unsafe.Sizeof(SrcItem{}))*uint64(nExtra)) for i = iStart; i < iStart+nExtra; i++ { - (*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i)*112)).FiCursor = -1 + (*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104)).FiCursor = -1 } // Return a pointer to the enlarged SrcList @@ -145168,21 +145883,21 @@ func Xsqlite3SrcListEnlarge(tls *libc.TLS, pParse uintptr, pSrc uintptr, nExtra // // In other words, if call like this: // -// sqlite3SrcListAppend(D,A,B,0); +// sqlite3SrcListAppend(D,A,B,0); // // Then B is a table name and the database name is unspecified. If called // like this: // -// sqlite3SrcListAppend(D,A,B,C); +// sqlite3SrcListAppend(D,A,B,C); // // Then C is the table name and B is the database name. If C is defined // then so is B. In other words, we never have a case where: // -// sqlite3SrcListAppend(D,A,0,C); +// sqlite3SrcListAppend(D,A,0,C); // // Both pTable and pDatabase are assumed to be quoted. They are dequoted // before being added to the SrcList. -func Xsqlite3SrcListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pTable uintptr, pDatabase uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118777:24: */ +func Xsqlite3SrcListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pTable uintptr, pDatabase uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:119953:24: */ var pItem uintptr var db uintptr // Cannot have C without B @@ -145206,7 +145921,7 @@ func Xsqlite3SrcListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pTable pList = pNew } } - pItem = pList + 8 + uintptr((*SrcList)(unsafe.Pointer(pList)).FnSrc-1)*112 + pItem = pList + 8 + uintptr((*SrcList)(unsafe.Pointer(pList)).FnSrc-1)*104 if pDatabase != 0 && (*Token)(unsafe.Pointer(pDatabase)).Fz == uintptr(0) { pDatabase = uintptr(0) } @@ -145221,7 +145936,7 @@ func Xsqlite3SrcListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pTable } // Assign VdbeCursor index numbers to all tables in a SrcList -func Xsqlite3SrcListAssignCursors(tls *libc.TLS, pParse uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118822:21: */ +func Xsqlite3SrcListAssignCursors(tls *libc.TLS, pParse uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:119998:21: */ var i int32 var pItem uintptr @@ -145245,7 +145960,7 @@ func Xsqlite3SrcListAssignCursors(tls *libc.TLS, pParse uintptr, pList uintptr) goto __2 __2: i++ - pItem += 112 + pItem += 104 goto __1 goto __3 __3: @@ -145253,7 +145968,7 @@ func Xsqlite3SrcListAssignCursors(tls *libc.TLS, pParse uintptr, pList uintptr) } // Delete an entire SrcList including all its substructure. -func Xsqlite3SrcListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118840:21: */ +func Xsqlite3SrcListDelete(tls *libc.TLS, db uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120016:21: */ var i int32 var pItem uintptr if pList == uintptr(0) { @@ -145274,27 +145989,26 @@ __1: Xsqlite3DbFreeNN(tls, db, (*SrcItem)(unsafe.Pointer(pItem)).FzAlias) } if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x2>>1)) != 0 { - Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pItem + 96))) + Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pItem + 88))) } if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x4>>2)) != 0 { - Xsqlite3ExprListDelete(tls, db, *(*uintptr)(unsafe.Pointer(pItem + 96))) + Xsqlite3ExprListDelete(tls, db, *(*uintptr)(unsafe.Pointer(pItem + 88))) } Xsqlite3DeleteTable(tls, db, (*SrcItem)(unsafe.Pointer(pItem)).FpTab) if (*SrcItem)(unsafe.Pointer(pItem)).FpSelect != 0 { Xsqlite3SelectDelete(tls, db, (*SrcItem)(unsafe.Pointer(pItem)).FpSelect) } - if (*SrcItem)(unsafe.Pointer(pItem)).FpOn != 0 { - Xsqlite3ExprDelete(tls, db, (*SrcItem)(unsafe.Pointer(pItem)).FpOn) - } - if (*SrcItem)(unsafe.Pointer(pItem)).FpUsing != 0 { - Xsqlite3IdListDelete(tls, db, (*SrcItem)(unsafe.Pointer(pItem)).FpUsing) + if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x400>>10)) != 0 { + Xsqlite3IdListDelete(tls, db, *(*uintptr)(unsafe.Pointer(pItem + 72))) + } else if *(*uintptr)(unsafe.Pointer(pItem + 72)) != 0 { + Xsqlite3ExprDelete(tls, db, *(*uintptr)(unsafe.Pointer(pItem + 72))) } } goto __2 __2: i++ - pItem += 112 + pItem += 104 goto __1 goto __3 __3: @@ -145316,7 +146030,7 @@ __3: // // Return a new SrcList which encodes is the FROM with the new // term added. -func Xsqlite3SrcListAppendFromTerm(tls *libc.TLS, pParse uintptr, p uintptr, pTable uintptr, pDatabase uintptr, pAlias uintptr, pSubquery uintptr, pOn uintptr, pUsing uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118874:24: */ +func Xsqlite3SrcListAppendFromTerm(tls *libc.TLS, pParse uintptr, p uintptr, pTable uintptr, pDatabase uintptr, pAlias uintptr, pSubquery uintptr, pOnUsing uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120053:24: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -145324,15 +146038,15 @@ func Xsqlite3SrcListAppendFromTerm(tls *libc.TLS, pParse uintptr, p uintptr, pTa var db uintptr var pToken uintptr db = (*Parse)(unsafe.Pointer(pParse)).Fdb - if !(!(p != 0) && (pOn != 0 || pUsing != 0)) { + if !(!(p != 0) && pOnUsing != uintptr(0) && ((*OnOrUsing)(unsafe.Pointer(pOnUsing)).FpOn != 0 || (*OnOrUsing)(unsafe.Pointer(pOnUsing)).FpUsing != 0)) { goto __1 } - Xsqlite3ErrorMsg(tls, pParse, ts+15752, + Xsqlite3ErrorMsg(tls, pParse, ts+15791, libc.VaList(bp, func() uintptr { - if pOn != 0 { - return ts + 15788 /* "ON" */ + if (*OnOrUsing)(unsafe.Pointer(pOnUsing)).FpOn != 0 { + return ts + 15827 /* "ON" */ } - return ts + 15791 /* "USING" */ + return ts + 15830 /* "USING" */ }())) goto append_from_error __1: @@ -145345,7 +146059,7 @@ __1: __2: ; - pItem = p + 8 + uintptr((*SrcList)(unsafe.Pointer(p)).FnSrc-1)*112 + pItem = p + 8 + uintptr((*SrcList)(unsafe.Pointer(p)).FnSrc-1)*104 if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME && (*SrcItem)(unsafe.Pointer(pItem)).FzName != 0) { goto __3 @@ -145365,34 +146079,61 @@ __3: (*SrcItem)(unsafe.Pointer(pItem)).FzAlias = Xsqlite3NameFromToken(tls, db, pAlias) __4: ; + if !(pSubquery != 0) { + goto __5 + } (*SrcItem)(unsafe.Pointer(pItem)).FpSelect = pSubquery - (*SrcItem)(unsafe.Pointer(pItem)).FpOn = pOn - (*SrcItem)(unsafe.Pointer(pItem)).FpUsing = pUsing + if !((*Select)(unsafe.Pointer(pSubquery)).FselFlags&U32(SF_NestedFrom) != 0) { + goto __6 + } + libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 13, 0x2000) +__6: + ; +__5: + ; + + if !(pOnUsing == uintptr(0)) { + goto __7 + } + *(*uintptr)(unsafe.Pointer(pItem + 72)) = uintptr(0) + goto __8 +__7: + if !((*OnOrUsing)(unsafe.Pointer(pOnUsing)).FpUsing != 0) { + goto __9 + } + libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 10, 0x400) + *(*uintptr)(unsafe.Pointer(pItem + 72)) = (*OnOrUsing)(unsafe.Pointer(pOnUsing)).FpUsing + goto __10 +__9: + *(*uintptr)(unsafe.Pointer(pItem + 72)) = (*OnOrUsing)(unsafe.Pointer(pOnUsing)).FpOn +__10: + ; +__8: + ; return p append_from_error: ; - Xsqlite3ExprDelete(tls, db, pOn) - Xsqlite3IdListDelete(tls, db, pUsing) + Xsqlite3ClearOnOrUsing(tls, db, pOnUsing) Xsqlite3SelectDelete(tls, db, pSubquery) return uintptr(0) } // Add an INDEXED BY or NOT INDEXED clause to the most recently added // element of the source-list passed as the second argument. -func Xsqlite3SrcListIndexedBy(tls *libc.TLS, pParse uintptr, p uintptr, pIndexedBy uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118925:21: */ +func Xsqlite3SrcListIndexedBy(tls *libc.TLS, pParse uintptr, p uintptr, pIndexedBy uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120115:21: */ if p != 0 && (*Token)(unsafe.Pointer(pIndexedBy)).Fn > uint32(0) { var pItem uintptr - pItem = p + 8 + uintptr((*SrcList)(unsafe.Pointer(p)).FnSrc-1)*112 + pItem = p + 8 + uintptr((*SrcList)(unsafe.Pointer(p)).FnSrc-1)*104 if (*Token)(unsafe.Pointer(pIndexedBy)).Fn == uint32(1) && !(int32((*Token)(unsafe.Pointer(pIndexedBy)).Fz) != 0) { // A "NOT INDEXED" clause was supplied. See parse.y // construct "indexed_opt" for details. libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 0, 0x1) } else { - *(*uintptr)(unsafe.Pointer(pItem + 96)) = Xsqlite3NameFromToken(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pIndexedBy) + *(*uintptr)(unsafe.Pointer(pItem + 88)) = Xsqlite3NameFromToken(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pIndexedBy) libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 1, 0x2) // No collision on union u2 } @@ -145402,7 +146143,7 @@ func Xsqlite3SrcListIndexedBy(tls *libc.TLS, pParse uintptr, p uintptr, pIndexed // Append the contents of SrcList p2 to SrcList p1 and return the resulting // SrcList. Or, if an error occurs, return NULL. In all cases, p1 and p2 // are deleted by this function. -func Xsqlite3SrcListAppendList(tls *libc.TLS, pParse uintptr, p1 uintptr, p2 uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118951:24: */ +func Xsqlite3SrcListAppendList(tls *libc.TLS, pParse uintptr, p1 uintptr, p2 uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120141:24: */ if p2 != 0 { var pNew uintptr = Xsqlite3SrcListEnlarge(tls, pParse, p1, (*SrcList)(unsafe.Pointer(p2)).FnSrc, 1) @@ -145410,8 +146151,9 @@ func Xsqlite3SrcListAppendList(tls *libc.TLS, pParse uintptr, p1 uintptr, p2 uin Xsqlite3SrcListDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, p2) } else { p1 = pNew - libc.Xmemcpy(tls, p1+8+1*112, p2+8, uint64((*SrcList)(unsafe.Pointer(p2)).FnSrc)*uint64(unsafe.Sizeof(SrcItem{}))) + libc.Xmemcpy(tls, p1+8+1*104, p2+8, uint64((*SrcList)(unsafe.Pointer(p2)).FnSrc)*uint64(unsafe.Sizeof(SrcItem{}))) Xsqlite3DbFree(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, p2) + *(*U8)(unsafe.Pointer(p1 + 8 + 60)) |= U8(JT_LTORJ & int32((*SrcItem)(unsafe.Pointer(p1+8+1*104)).Ffg.Fjointype)) } } return p1 @@ -145419,11 +146161,11 @@ func Xsqlite3SrcListAppendList(tls *libc.TLS, pParse uintptr, p1 uintptr, p2 uin // Add the list of function arguments to the SrcList entry for a // table-valued-function. -func Xsqlite3SrcListFuncArgs(tls *libc.TLS, pParse uintptr, p uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118970:21: */ +func Xsqlite3SrcListFuncArgs(tls *libc.TLS, pParse uintptr, p uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120161:21: */ if p != 0 { - var pItem uintptr = p + 8 + uintptr((*SrcList)(unsafe.Pointer(p)).FnSrc-1)*112 + var pItem uintptr = p + 8 + uintptr((*SrcList)(unsafe.Pointer(p)).FnSrc-1)*104 - *(*uintptr)(unsafe.Pointer(pItem + 96)) = pList + *(*uintptr)(unsafe.Pointer(pItem + 88)) = pList libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 2, 0x4) } else { Xsqlite3ExprListDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pList) @@ -145438,30 +146180,51 @@ func Xsqlite3SrcListFuncArgs(tls *libc.TLS, pParse uintptr, p uintptr, pList uin // // Example: Suppose the join is like this: // -// A natural cross join B +// A natural cross join B // // The operator is "natural cross join". The A and B operands are stored // in p->a[0] and p->a[1], respectively. The parser initially stores the // operator with A. This routine shifts that operator over to B. -func Xsqlite3SrcListShiftJoinType(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:118998:21: */ - if p != 0 { - var i int32 - for i = (*SrcList)(unsafe.Pointer(p)).FnSrc - 1; i > 0; i-- { - (*SrcItem)(unsafe.Pointer(p + 8 + uintptr(i)*112)).Ffg.Fjointype = (*SrcItem)(unsafe.Pointer(p + 8 + uintptr(i-1)*112)).Ffg.Fjointype +// +// Additional changes: +// +// - All tables to the left of the right-most RIGHT JOIN are tagged with +// JT_LTORJ (mnemonic: Left Table Of Right Join) so that the +// code generator can easily tell that the table is part of +// the left operand of at least one RIGHT JOIN. +func Xsqlite3SrcListShiftJoinType(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120196:21: */ + _ = pParse + if p != 0 && (*SrcList)(unsafe.Pointer(p)).FnSrc > 1 { + var i int32 = (*SrcList)(unsafe.Pointer(p)).FnSrc - 1 + var allFlags U8 = U8(0) + for __ccgo := true; __ccgo; __ccgo = libc.PreDecInt32(&i, 1) > 0 { + allFlags = U8(int32(allFlags) | int32(libc.AssignPtrUint8(p+8+uintptr(i)*104+60, (*SrcItem)(unsafe.Pointer(p+8+uintptr(i-1)*104)).Ffg.Fjointype))) } (*SrcItem)(unsafe.Pointer(p + 8)).Ffg.Fjointype = U8(0) + + // All terms to the left of a RIGHT JOIN should be tagged with the + // JT_LTORJ flags + if int32(allFlags)&JT_RIGHT != 0 { + for i = (*SrcList)(unsafe.Pointer(p)).FnSrc - 1; i > 0 && int32((*SrcItem)(unsafe.Pointer(p+8 /* &.a */ +uintptr(i)*104)).Ffg.Fjointype)&JT_RIGHT == 0; i-- { + } + i-- + + for __ccgo1 := true; __ccgo1; __ccgo1 = libc.PreDecInt32(&i, 1) >= 0 { + *(*U8)(unsafe.Pointer(p + 8 + uintptr(i)*104 + 60)) |= U8(JT_LTORJ) + } + } } } // Generate VDBE code for a BEGIN statement. -func Xsqlite3BeginTransaction(tls *libc.TLS, pParse uintptr, type1 int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119011:21: */ +func Xsqlite3BeginTransaction(tls *libc.TLS, pParse uintptr, type1 int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120222:21: */ var db uintptr var v uintptr var i int32 db = (*Parse)(unsafe.Pointer(pParse)).Fdb - if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION, ts+15797, uintptr(0), uintptr(0)) != 0 { + if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION, ts+15836, uintptr(0), uintptr(0)) != 0 { return } v = Xsqlite3GetVdbe(tls, pParse) @@ -145489,7 +146252,7 @@ func Xsqlite3BeginTransaction(tls *libc.TLS, pParse uintptr, type1 int32) { /* t // Generate VDBE code for a COMMIT or ROLLBACK statement. // Code for ROLLBACK is generated if eType==TK_ROLLBACK. Otherwise // code is generated for a COMMIT. -func Xsqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119047:21: */ +func Xsqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120258:21: */ var v uintptr var isRollback int32 @@ -145497,9 +146260,9 @@ func Xsqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) { /* tes if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION, func() uintptr { if isRollback != 0 { - return ts + 15803 + return ts + 15842 } - return ts + 15812 + return ts + 15851 }(), uintptr(0), uintptr(0)) != 0 { return } @@ -145511,7 +146274,7 @@ func Xsqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) { /* tes // This function is called by the parser when it parses a command to create, // release or rollback an SQL savepoint. -func Xsqlite3Savepoint(tls *libc.TLS, pParse uintptr, op int32, pName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119069:21: */ +func Xsqlite3Savepoint(tls *libc.TLS, pParse uintptr, op int32, pName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120280:21: */ var zName uintptr = Xsqlite3NameFromToken(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pName) if zName != 0 { var v uintptr = Xsqlite3GetVdbe(tls, pParse) @@ -145520,15 +146283,15 @@ func Xsqlite3Savepoint(tls *libc.TLS, pParse uintptr, op int32, pName uintptr) { Xsqlite3DbFree(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, zName) return } - Xsqlite3VdbeAddOp4(tls, v, OP_Savepoint, op, 0, 0, zName, -7) + Xsqlite3VdbeAddOp4(tls, v, OP_Savepoint, op, 0, 0, zName, -6) } } -var az = [3]uintptr{ts + 15797, ts + 15819, ts + 15803} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119074:23 */ +var az = [3]uintptr{ts + 15836, ts + 15858, ts + 15842} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120285:23 */ // Make sure the TEMP database is open and available for use. Return // the number of errors. Leave any error messages in the pParse structure. -func Xsqlite3OpenTempDatabase(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119089:20: */ +func Xsqlite3OpenTempDatabase(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120300:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -145540,7 +146303,7 @@ func Xsqlite3OpenTempDatabase(tls *libc.TLS, pParse uintptr) int32 { /* testdata rc = Xsqlite3BtreeOpen(tls, (*Sqlite3)(unsafe.Pointer(db)).FpVfs, uintptr(0), db, bp, 0, flags) if rc != SQLITE_OK { Xsqlite3ErrorMsg(tls, pParse, - ts+15827, 0) + ts+15866, 0) (*Parse)(unsafe.Pointer(pParse)).Frc = rc return 1 } @@ -145554,13 +146317,13 @@ func Xsqlite3OpenTempDatabase(tls *libc.TLS, pParse uintptr) int32 { /* testdata return 0 } -var flags int32 = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE | SQLITE_OPEN_TEMP_DB /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119094:22 */ +var flags int32 = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE | SQLITE_OPEN_TEMP_DB /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120305:22 */ // Record the fact that the schema cookie will need to be verified // for database iDb. The code to actually verify the schema cookie // will occur at the end of the top-level VDBE and will be generated // later, by sqlite3FinishCoding(). -func sqlite3CodeVerifySchemaAtToplevel(tls *libc.TLS, pToplevel uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119124:13: */ +func sqlite3CodeVerifySchemaAtToplevel(tls *libc.TLS, pToplevel uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120335:13: */ if libc.Bool32((*Parse)(unsafe.Pointer(pToplevel)).FcookieMask&(YDbMask(YDbMask(1))<<iDb) != YDbMask(0)) == 0 { *(*YDbMask)(unsafe.Pointer(pToplevel + 116)) |= YDbMask(YDbMask(1)) << iDb @@ -145570,7 +146333,7 @@ func sqlite3CodeVerifySchemaAtToplevel(tls *libc.TLS, pToplevel uintptr, iDb int } } -func Xsqlite3CodeVerifySchema(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119136:21: */ +func Xsqlite3CodeVerifySchema(tls *libc.TLS, pParse uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120347:21: */ sqlite3CodeVerifySchemaAtToplevel(tls, func() uintptr { if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 { return (*Parse)(unsafe.Pointer(pParse)).FpToplevel @@ -145581,7 +146344,7 @@ func Xsqlite3CodeVerifySchema(tls *libc.TLS, pParse uintptr, iDb int32) { /* tes // If argument zDb is NULL, then call sqlite3CodeVerifySchema() for each // attached database. Otherwise, invoke it for the database named zDb only. -func Xsqlite3CodeVerifyNamedSchema(tls *libc.TLS, pParse uintptr, zDb uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119145:21: */ +func Xsqlite3CodeVerifyNamedSchema(tls *libc.TLS, pParse uintptr, zDb uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120356:21: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var i int32 for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnDb; i++ { @@ -145603,7 +146366,7 @@ func Xsqlite3CodeVerifyNamedSchema(tls *libc.TLS, pParse uintptr, zDb uintptr) { // rollback the whole transaction. For operations where all constraints // can be checked before any changes are made to the database, it is never // necessary to undo a write and the checkpoint should not be set. -func Xsqlite3BeginWriteOperation(tls *libc.TLS, pParse uintptr, setStatement int32, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119169:21: */ +func Xsqlite3BeginWriteOperation(tls *libc.TLS, pParse uintptr, setStatement int32, iDb int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120380:21: */ var pToplevel uintptr = func() uintptr { if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 { return (*Parse)(unsafe.Pointer(pParse)).FpToplevel @@ -145620,7 +146383,7 @@ func Xsqlite3BeginWriteOperation(tls *libc.TLS, pParse uintptr, setStatement int // inserting multiple rows in a table, or inserting a row and index entries.) // If an abort occurs after some of these writes have completed, then it will // be necessary to undo the completed writes. -func Xsqlite3MultiWrite(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119183:21: */ +func Xsqlite3MultiWrite(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120394:21: */ var pToplevel uintptr = func() uintptr { if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 { return (*Parse)(unsafe.Pointer(pParse)).FpToplevel @@ -145644,7 +146407,7 @@ func Xsqlite3MultiWrite(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amal // particular, it prevents us from writing an effective // implementation of sqlite3AssertMayAbort()) and so we have chosen // to take the safe route and skip the optimization. -func Xsqlite3MayAbort(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119204:21: */ +func Xsqlite3MayAbort(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120415:21: */ var pToplevel uintptr = func() uintptr { if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 { return (*Parse)(unsafe.Pointer(pParse)).FpToplevel @@ -145657,7 +146420,7 @@ func Xsqlite3MayAbort(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalga // Code an OP_Halt that causes the vdbe to return an SQLITE_CONSTRAINT // error. The onError parameter determines which (if any) of the statement // and/or current transaction is rolled back. -func Xsqlite3HaltConstraint(tls *libc.TLS, pParse uintptr, errCode int32, onError int32, p4 uintptr, p4type I8, p5Errmsg U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119214:21: */ +func Xsqlite3HaltConstraint(tls *libc.TLS, pParse uintptr, errCode int32, onError int32, p4 uintptr, p4type I8, p5Errmsg U8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120425:21: */ var v uintptr v = Xsqlite3GetVdbe(tls, pParse) @@ -145670,7 +146433,7 @@ func Xsqlite3HaltConstraint(tls *libc.TLS, pParse uintptr, errCode int32, onErro } // Code an OP_Halt due to UNIQUE or PRIMARY KEY constraint violation. -func Xsqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119236:21: */ +func Xsqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120447:21: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -145683,14 +146446,14 @@ func Xsqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx Xsqlite3StrAccumInit(tls, bp+8, (*Parse)(unsafe.Pointer(pParse)).Fdb, uintptr(0), 0, *(*int32)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb + 136))) if (*Index)(unsafe.Pointer(pIdx)).FaColExpr != 0 { - Xsqlite3_str_appendf(tls, bp+8, ts+15897, libc.VaList(bp, (*Index)(unsafe.Pointer(pIdx)).FzName)) + Xsqlite3_str_appendf(tls, bp+8, ts+15936, libc.VaList(bp, (*Index)(unsafe.Pointer(pIdx)).FzName)) } else { for j = 0; j < int32((*Index)(unsafe.Pointer(pIdx)).FnKeyCol); j++ { var zCol uintptr zCol = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(j)*2)))*24)).FzCnName if j != 0 { - Xsqlite3_str_append(tls, bp+8, ts+15908, 2) + Xsqlite3_str_append(tls, bp+8, ts+15947, 2) } Xsqlite3_str_appendall(tls, bp+8, (*Table)(unsafe.Pointer(pTab)).FzName) Xsqlite3_str_append(tls, bp+8, ts+1537, 1) @@ -145705,31 +146468,31 @@ func Xsqlite3UniqueConstraint(tls *libc.TLS, pParse uintptr, onError int32, pIdx } return SQLITE_CONSTRAINT | int32(8)<<8 }(), - onError, zErr, int8(-7), uint8(P5_ConstraintUnique)) + onError, zErr, int8(-6), uint8(P5_ConstraintUnique)) } // Code an OP_Halt due to non-unique rowid. -func Xsqlite3RowidConstraint(tls *libc.TLS, pParse uintptr, onError int32, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119272:21: */ +func Xsqlite3RowidConstraint(tls *libc.TLS, pParse uintptr, onError int32, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120483:21: */ bp := tls.Alloc(24) defer tls.Free(24) var zMsg uintptr var rc int32 if int32((*Table)(unsafe.Pointer(pTab)).FiPKey) >= 0 { - zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+13298, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, + zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+13337, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr((*Table)(unsafe.Pointer(pTab)).FiPKey)*24)).FzCnName)) rc = SQLITE_CONSTRAINT | int32(6)<<8 } else { - zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+15911, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName)) + zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+15950, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName)) rc = SQLITE_CONSTRAINT | int32(10)<<8 } - Xsqlite3HaltConstraint(tls, pParse, rc, onError, zMsg, int8(-7), + Xsqlite3HaltConstraint(tls, pParse, rc, onError, zMsg, int8(-6), uint8(P5_ConstraintUnique)) } // Check to see if pIndex uses the collating sequence pColl. Return // true if it does and false if it does not. -func collationMatch(tls *libc.TLS, zColl uintptr, pIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119296:12: */ +func collationMatch(tls *libc.TLS, zColl uintptr, pIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120507:12: */ var i int32 for i = 0; i < int32((*Index)(unsafe.Pointer(pIndex)).FnColumn); i++ { @@ -145744,7 +146507,7 @@ func collationMatch(tls *libc.TLS, zColl uintptr, pIndex uintptr) int32 { /* tes // Recompute all indices of pTab that use the collating sequence pColl. // If pColl==0 then recompute all indices of pTab. -func reindexTable(tls *libc.TLS, pParse uintptr, pTab uintptr, zColl uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119315:13: */ +func reindexTable(tls *libc.TLS, pParse uintptr, pTab uintptr, zColl uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120526:13: */ if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { var pIndex uintptr // An index associated with pTab @@ -145761,7 +146524,7 @@ func reindexTable(tls *libc.TLS, pParse uintptr, pTab uintptr, zColl uintptr) { // Recompute all indices of all tables in all databases where the // indices use the collating sequence pColl. If pColl==0 then recompute // all indices everywhere. -func reindexDatabases(tls *libc.TLS, pParse uintptr, zColl uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119336:13: */ +func reindexDatabases(tls *libc.TLS, pParse uintptr, zColl uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120547:13: */ var pDb uintptr // A single database var iDb int32 // The database index number var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb // The database connection @@ -145794,16 +146557,16 @@ __3: // Generate code for the REINDEX command. // -// REINDEX -- 1 -// REINDEX <collation> -- 2 -// REINDEX ?<database>.?<tablename> -- 3 -// REINDEX ?<database>.?<indexname> -- 4 +// REINDEX -- 1 +// REINDEX <collation> -- 2 +// REINDEX ?<database>.?<tablename> -- 3 +// REINDEX ?<database>.?<indexname> -- 4 // // Form 1 causes all indices in all attached databases to be rebuilt. // Form 2 rebuilds all indices in all databases that use the named // collating function. Forms 3 and 4 rebuild the named index or all // indices associated with the named table. -func Xsqlite3Reindex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119368:21: */ +func Xsqlite3Reindex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120579:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -145863,14 +146626,14 @@ func Xsqlite3Reindex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp sqlite3RefillIndex(tls, pParse, pIndex, -1) return } - Xsqlite3ErrorMsg(tls, pParse, ts+15920, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+15959, 0) } // Return a KeyInfo structure that is appropriate for the given Index. // // The caller should invoke sqlite3KeyInfoUnref() on the returned object // when it has finished using it. -func Xsqlite3KeyInfoOfIndex(tls *libc.TLS, pParse uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119428:24: */ +func Xsqlite3KeyInfoOfIndex(tls *libc.TLS, pParse uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120639:24: */ var i int32 var nCol int32 = int32((*Index)(unsafe.Pointer(pIdx)).FnColumn) var nKey int32 = int32((*Index)(unsafe.Pointer(pIdx)).FnKeyCol) @@ -145916,7 +146679,7 @@ func Xsqlite3KeyInfoOfIndex(tls *libc.TLS, pParse uintptr, pIdx uintptr) uintptr } // Create a new CTE object -func Xsqlite3CteNew(tls *libc.TLS, pParse uintptr, pName uintptr, pArglist uintptr, pQuery uintptr, eM10d U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119472:20: */ +func Xsqlite3CteNew(tls *libc.TLS, pParse uintptr, pName uintptr, pArglist uintptr, pQuery uintptr, eM10d U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120683:20: */ var pNew uintptr var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb @@ -145936,7 +146699,7 @@ func Xsqlite3CteNew(tls *libc.TLS, pParse uintptr, pName uintptr, pArglist uintp // Clear information from a Cte object, but do not deallocate storage // for the object itself. -func cteClear(tls *libc.TLS, db uintptr, pCte uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119501:13: */ +func cteClear(tls *libc.TLS, db uintptr, pCte uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120712:13: */ Xsqlite3ExprListDelete(tls, db, (*Cte)(unsafe.Pointer(pCte)).FpCols) Xsqlite3SelectDelete(tls, db, (*Cte)(unsafe.Pointer(pCte)).FpSelect) @@ -145944,7 +146707,7 @@ func cteClear(tls *libc.TLS, db uintptr, pCte uintptr) { /* testdata/sqlite-amal } // Free the contents of the CTE object passed as the second argument. -func Xsqlite3CteDelete(tls *libc.TLS, db uintptr, pCte uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119511:21: */ +func Xsqlite3CteDelete(tls *libc.TLS, db uintptr, pCte uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120722:21: */ cteClear(tls, db, pCte) Xsqlite3DbFree(tls, db, pCte) @@ -145954,7 +146717,7 @@ func Xsqlite3CteDelete(tls *libc.TLS, db uintptr, pCte uintptr) { /* testdata/sq // WITH clause. The CTE described by teh third argument is added to // the WITH clause of the second argument. If the second argument is // NULL, then a new WITH argument is created. -func Xsqlite3WithAdd(tls *libc.TLS, pParse uintptr, pWith uintptr, pCte uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119523:21: */ +func Xsqlite3WithAdd(tls *libc.TLS, pParse uintptr, pWith uintptr, pCte uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120734:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -145973,7 +146736,7 @@ func Xsqlite3WithAdd(tls *libc.TLS, pParse uintptr, pWith uintptr, pCte uintptr) var i int32 for i = 0; i < (*With)(unsafe.Pointer(pWith)).FnCte; i++ { if Xsqlite3StrICmp(tls, zName, (*Cte)(unsafe.Pointer(pWith+16+uintptr(i)*48)).FzName) == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+15966, libc.VaList(bp, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+16005, libc.VaList(bp, zName)) } } } @@ -145997,7 +146760,7 @@ func Xsqlite3WithAdd(tls *libc.TLS, pParse uintptr, pWith uintptr, pCte uintptr) } // Free the contents of the With object passed as the second argument. -func Xsqlite3WithDelete(tls *libc.TLS, db uintptr, pWith uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119570:21: */ +func Xsqlite3WithDelete(tls *libc.TLS, db uintptr, pWith uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120781:21: */ if pWith != 0 { var i int32 for i = 0; i < (*With)(unsafe.Pointer(pWith)).FnCte; i++ { @@ -146027,7 +146790,7 @@ func Xsqlite3WithDelete(tls *libc.TLS, db uintptr, pWith uintptr) { /* testdata/ // Invoke the 'collation needed' callback to request a collation sequence // in the encoding enc of name zName, length nName. -func callCollNeeded(tls *libc.TLS, db uintptr, enc int32, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119605:13: */ +func callCollNeeded(tls *libc.TLS, db uintptr, enc int32, zName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120816:13: */ if (*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded != 0 { var zExternal uintptr = Xsqlite3DbStrDup(tls, db, zName) @@ -146058,7 +146821,7 @@ func callCollNeeded(tls *libc.TLS, db uintptr, enc int32, zName uintptr) { /* te // of this collation function (for other text encodings) available. Use one // of these instead if they exist. Avoid a UTF-8 <-> UTF-16 conversion if // possible. -func synthCollSeq(tls *libc.TLS, db uintptr, pColl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119634:12: */ +func synthCollSeq(tls *libc.TLS, db uintptr, pColl uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120845:12: */ var pColl2 uintptr var z uintptr = (*CollSeq)(unsafe.Pointer(pColl)).FzName var i int32 @@ -146073,7 +146836,7 @@ func synthCollSeq(tls *libc.TLS, db uintptr, pColl uintptr) int32 { /* testdata/ return SQLITE_ERROR } -var aEnc = [3]U8{U8(SQLITE_UTF16BE), U8(SQLITE_UTF16LE), U8(SQLITE_UTF8)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119638:19 */ +var aEnc = [3]U8{U8(SQLITE_UTF16BE), U8(SQLITE_UTF16LE), U8(SQLITE_UTF8)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120849:19 */ // This routine is called on a collation sequence before it is used to // check that it is defined. An undefined collation sequence exists when @@ -146084,7 +146847,7 @@ var aEnc = [3]U8{U8(SQLITE_UTF16BE), U8(SQLITE_UTF16LE), U8(SQLITE_UTF8)} /* tes // request a definition of the collating sequence. If this doesn't work, // an equivalent collating sequence that uses a text encoding different // from the main database is substituted, if one is available. -func Xsqlite3CheckCollSeq(tls *libc.TLS, pParse uintptr, pColl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119661:20: */ +func Xsqlite3CheckCollSeq(tls *libc.TLS, pParse uintptr, pColl uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120872:20: */ if pColl != 0 && (*CollSeq)(unsafe.Pointer(pColl)).FxCmp == uintptr(0) { var zName uintptr = (*CollSeq)(unsafe.Pointer(pColl)).FzName var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb @@ -146108,7 +146871,7 @@ func Xsqlite3CheckCollSeq(tls *libc.TLS, pParse uintptr, pColl uintptr) int32 { // Stored immediately after the three collation sequences is a copy of // the collation sequence name. A pointer to this string is stored in // each collation sequence structure. -func findCollSeqEntry(tls *libc.TLS, db uintptr, zName uintptr, create int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119689:16: */ +func findCollSeqEntry(tls *libc.TLS, db uintptr, zName uintptr, create int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120900:16: */ var pColl uintptr pColl = Xsqlite3HashFind(tls, db+640, zName) @@ -146153,7 +146916,7 @@ func findCollSeqEntry(tls *libc.TLS, db uintptr, zName uintptr, create int32) ui // cannot be found. // // See also: sqlite3LocateCollSeq(), sqlite3GetCollSeq() -func Xsqlite3FindCollSeq(tls *libc.TLS, db uintptr, enc U8, zName uintptr, create int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119741:24: */ +func Xsqlite3FindCollSeq(tls *libc.TLS, db uintptr, enc U8, zName uintptr, create int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120952:24: */ var pColl uintptr if zName != 0 { @@ -146169,7 +146932,7 @@ func Xsqlite3FindCollSeq(tls *libc.TLS, db uintptr, enc U8, zName uintptr, creat // Change the text encoding for a database connection. This means that // the pDfltColl must change as well. -func Xsqlite3SetTextEncoding(tls *libc.TLS, db uintptr, enc U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119763:21: */ +func Xsqlite3SetTextEncoding(tls *libc.TLS, db uintptr, enc U8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120974:21: */ (*Sqlite3)(unsafe.Pointer(db)).Fenc = enc // EVIDENCE-OF: R-08308-17224 The default collating function for all @@ -146189,7 +146952,7 @@ func Xsqlite3SetTextEncoding(tls *libc.TLS, db uintptr, enc U8) { /* testdata/sq // sequence can be found. If no collation is found, leave an error message. // // See also: sqlite3LocateCollSeq(), sqlite3FindCollSeq() -func Xsqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc U8, pColl uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119786:24: */ +func Xsqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc U8, pColl uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:120997:24: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -146211,7 +146974,7 @@ func Xsqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc U8, pColl uintptr, zN } if p == uintptr(0) { - Xsqlite3ErrorMsg(tls, pParse, ts+15996, libc.VaList(bp, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+16035, libc.VaList(bp, zName)) (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR | int32(1)<<8 } return p @@ -146235,7 +146998,7 @@ func Xsqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc U8, pColl uintptr, zN // and generates an error message. // // See also: sqlite3FindCollSeq(), sqlite3GetCollSeq() -func Xsqlite3LocateCollSeq(tls *libc.TLS, pParse uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119837:24: */ +func Xsqlite3LocateCollSeq(tls *libc.TLS, pParse uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121048:24: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var enc U8 = (*Sqlite3)(unsafe.Pointer(db)).Fenc var initbusy U8 = (*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy @@ -146276,7 +147039,7 @@ func Xsqlite3LocateCollSeq(tls *libc.TLS, pParse uintptr, zName uintptr) uintptr // If nArg==(-2) then any function with a non-null xSFunc is // a perfect match and any function with xSFunc NULL is // a non-match. -func matchQuality(tls *libc.TLS, p uintptr, nArg int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119880:12: */ +func matchQuality(tls *libc.TLS, p uintptr, nArg int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121091:12: */ var match int32 // Wrong number of arguments means "no match" @@ -146312,7 +147075,7 @@ func matchQuality(tls *libc.TLS, p uintptr, nArg int32, enc U8) int32 { /* testd // Search a FuncDefHash for a function with the given name. Return // a pointer to the matching FuncDef if found, or 0 if there is no match. -func Xsqlite3FunctionSearch(tls *libc.TLS, h int32, zFunc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119916:24: */ +func Xsqlite3FunctionSearch(tls *libc.TLS, h int32, zFunc uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121127:24: */ var p uintptr for p = *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3BuiltinFunctions)) + uintptr(h)*8)); p != 0; p = *(*uintptr)(unsafe.Pointer(p + 64)) { @@ -146324,7 +147087,7 @@ func Xsqlite3FunctionSearch(tls *libc.TLS, h int32, zFunc uintptr) uintptr { /* } // Insert a new FuncDef into a FuncDefHash hash table. -func Xsqlite3InsertBuiltinFuncs(tls *libc.TLS, aDef uintptr, nDef int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119933:21: */ +func Xsqlite3InsertBuiltinFuncs(tls *libc.TLS, aDef uintptr, nDef int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121144:21: */ var i int32 for i = 0; i < nDef; i++ { var pOther uintptr @@ -146362,7 +147125,7 @@ func Xsqlite3InsertBuiltinFuncs(tls *libc.TLS, aDef uintptr, nDef int32) { /* te // If createFlag is false, then a function with the required name and // number of arguments may be returned even if the eTextRep flag does not // match that requested. -func Xsqlite3FindFunction(tls *libc.TLS, db uintptr, zName uintptr, nArg int32, enc U8, createFlag U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119978:24: */ +func Xsqlite3FindFunction(tls *libc.TLS, db uintptr, zName uintptr, nArg int32, enc U8, createFlag U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121189:24: */ var p uintptr // Iterator variable var pBest uintptr = uintptr(0) // Best match found so far var bestScore int32 = 0 // Score of best match @@ -146442,7 +147205,7 @@ func Xsqlite3FindFunction(tls *libc.TLS, db uintptr, zName uintptr, nArg int32, // of the schema hash tables). // // The Schema.cache_size variable is not cleared. -func Xsqlite3SchemaClear(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120070:21: */ +func Xsqlite3SchemaClear(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121281:21: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -146477,7 +147240,7 @@ func Xsqlite3SchemaClear(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama // Find and return the schema associated with a BTree. Create // a new one if necessary. -func Xsqlite3SchemaGet(tls *libc.TLS, db uintptr, pBt uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120102:23: */ +func Xsqlite3SchemaGet(tls *libc.TLS, db uintptr, pBt uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121313:23: */ var p uintptr if pBt != 0 { p = Xsqlite3BtreeSchema(tls, pBt, int32(unsafe.Sizeof(Schema{})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3SchemaClear}))) @@ -146521,10 +147284,9 @@ func Xsqlite3SchemaGet(tls *libc.TLS, db uintptr, pBt uintptr) uintptr { /* test // // The following fields are initialized appropriate in pSrc: // -// pSrc->a[0].pTab Pointer to the Table object -// pSrc->a[0].pIndex Pointer to the INDEXED BY index, if there is one -// -func Xsqlite3SrcListLookup(tls *libc.TLS, pParse uintptr, pSrc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120153:22: */ +// pSrc->a[0].pTab Pointer to the Table object +// pSrc->a[0].pIndex Pointer to the INDEXED BY index, if there is one +func Xsqlite3SrcListLookup(tls *libc.TLS, pParse uintptr, pSrc uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121364:22: */ var pItem uintptr = pSrc + 8 /* &.a */ var pTab uintptr @@ -146542,7 +147304,7 @@ func Xsqlite3SrcListLookup(tls *libc.TLS, pParse uintptr, pSrc uintptr) uintptr // Generate byte-code that will report the number of rows modified // by a DELETE, INSERT, or UPDATE statement. -func Xsqlite3CodeChangeCount(tls *libc.TLS, v uintptr, regCounter int32, zColName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120172:21: */ +func Xsqlite3CodeChangeCount(tls *libc.TLS, v uintptr, regCounter int32, zColName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121383:21: */ Xsqlite3VdbeAddOp0(tls, v, OP_FkCheck) Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, regCounter, 1) Xsqlite3VdbeSetNumCols(tls, v, 1) @@ -146553,17 +147315,17 @@ func Xsqlite3CodeChangeCount(tls *libc.TLS, v uintptr, regCounter int32, zColNam // // A table is read-only if any of the following are true: // -// 1) It is a virtual table and no implementation of the xUpdate method -// has been provided +// 1. It is a virtual table and no implementation of the xUpdate method +// has been provided // -// 2) It is a system table (i.e. sqlite_schema), this call is not -// part of a nested parse and writable_schema pragma has not -// been specified +// 2. It is a system table (i.e. sqlite_schema), this call is not +// part of a nested parse and writable_schema pragma has not +// been specified // -// 3) The table is a shadow table, the database connection is in -// defensive mode, and the current sqlite3_prepare() -// is for a top-level SQL statement. -func tabIsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120194:12: */ +// 3. The table is a shadow table, the database connection is in +// defensive mode, and the current sqlite3_prepare() +// is for a top-level SQL statement. +func tabIsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121405:12: */ var db uintptr if int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB { return libc.Bool32((*Sqlite3_module)(unsafe.Pointer((*Module)(unsafe.Pointer((*VTable)(unsafe.Pointer(Xsqlite3GetVTable(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pTab))).FpMod)).FpModule)).FxUpdate == uintptr(0)) @@ -146582,16 +147344,16 @@ func tabIsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* testd // Check to make sure the given table is writable. If it is not // writable, generate an error message and return 1. If it is // writable return 0; -func Xsqlite3IsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr, viewOk int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120213:20: */ +func Xsqlite3IsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr, viewOk int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121424:20: */ bp := tls.Alloc(16) defer tls.Free(16) if tabIsReadOnly(tls, pParse, pTab) != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+16027, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+16066, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) return 1 } if !(viewOk != 0) && int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW { - Xsqlite3ErrorMsg(tls, pParse, ts+16056, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+16095, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) return 1 } return 0 @@ -146600,7 +147362,7 @@ func Xsqlite3IsReadOnly(tls *libc.TLS, pParse uintptr, pTab uintptr, viewOk int3 // Evaluate a view and store its result in an ephemeral table. The // pWhere argument is an optional WHERE clause that restricts the // set of rows in the view that are to be added to the ephemeral table. -func Xsqlite3MaterializeView(tls *libc.TLS, pParse uintptr, pView uintptr, pWhere uintptr, pOrderBy uintptr, pLimit uintptr, iCur int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120234:21: */ +func Xsqlite3MaterializeView(tls *libc.TLS, pParse uintptr, pView uintptr, pWhere uintptr, pOrderBy uintptr, pLimit uintptr, iCur int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121445:21: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -146629,10 +147391,10 @@ func Xsqlite3MaterializeView(tls *libc.TLS, pParse uintptr, pView uintptr, pWher // Generate code for a DELETE FROM statement. // -// DELETE FROM table_wxyz WHERE a<5 AND b NOT NULL; -// \________/ \________________/ -// pTabList pWhere -func Xsqlite3DeleteFrom(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pLimit uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120373:21: */ +// DELETE FROM table_wxyz WHERE a<5 AND b NOT NULL; +// \________/ \________________/ +// pTabList pWhere +func Xsqlite3DeleteFrom(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pLimit uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:121584:21: */ bp := tls.Alloc(88) defer tls.Free(88) @@ -147132,7 +147894,7 @@ __55: ; __54: ; - Xsqlite3VdbeAddOp4(tls, v, OP_VUpdate, 0, 1, iKey, pVTab, -12) + Xsqlite3VdbeAddOp4(tls, v, OP_VUpdate, 0, 1, iKey, pVTab, -11) Xsqlite3VdbeChangeP5(tls, v, uint16(OE_Abort)) goto __53 __52: @@ -147183,7 +147945,7 @@ __60: if !(memCnt != 0) { goto __61 } - Xsqlite3CodeChangeCount(tls, v, memCnt, ts+16094) + Xsqlite3CodeChangeCount(tls, v, memCnt, ts+16133) __61: ; @@ -147205,40 +147967,42 @@ delete_from_cleanup: // // Preconditions: // -// 1. iDataCur is an open cursor on the btree that is the canonical data -// store for the table. (This will be either the table itself, -// in the case of a rowid table, or the PRIMARY KEY index in the case -// of a WITHOUT ROWID table.) +// 1. iDataCur is an open cursor on the btree that is the canonical data +// store for the table. (This will be either the table itself, +// in the case of a rowid table, or the PRIMARY KEY index in the case +// of a WITHOUT ROWID table.) // -// 2. Read/write cursors for all indices of pTab must be open as -// cursor number iIdxCur+i for the i-th index. +// 2. Read/write cursors for all indices of pTab must be open as +// cursor number iIdxCur+i for the i-th index. // -// 3. The primary key for the row to be deleted must be stored in a -// sequence of nPk memory cells starting at iPk. If nPk==0 that means -// that a search record formed from OP_MakeRecord is contained in the -// single memory location iPk. +// 3. The primary key for the row to be deleted must be stored in a +// sequence of nPk memory cells starting at iPk. If nPk==0 that means +// that a search record formed from OP_MakeRecord is contained in the +// single memory location iPk. // // eMode: -// Parameter eMode may be passed either ONEPASS_OFF (0), ONEPASS_SINGLE, or -// ONEPASS_MULTI. If eMode is not ONEPASS_OFF, then the cursor -// iDataCur already points to the row to delete. If eMode is ONEPASS_OFF -// then this function must seek iDataCur to the entry identified by iPk -// and nPk before reading from it. -// -// If eMode is ONEPASS_MULTI, then this call is being made as part -// of a ONEPASS delete that affects multiple rows. In this case, if -// iIdxNoSeek is a valid cursor number (>=0) and is not the same as -// iDataCur, then its position should be preserved following the delete -// operation. Or, if iIdxNoSeek is not a valid cursor number, the -// position of iDataCur should be preserved instead. +// +// Parameter eMode may be passed either ONEPASS_OFF (0), ONEPASS_SINGLE, or +// ONEPASS_MULTI. If eMode is not ONEPASS_OFF, then the cursor +// iDataCur already points to the row to delete. If eMode is ONEPASS_OFF +// then this function must seek iDataCur to the entry identified by iPk +// and nPk before reading from it. +// +// If eMode is ONEPASS_MULTI, then this call is being made as part +// of a ONEPASS delete that affects multiple rows. In this case, if +// iIdxNoSeek is a valid cursor number (>=0) and is not the same as +// iDataCur, then its position should be preserved following the delete +// operation. Or, if iIdxNoSeek is not a valid cursor number, the +// position of iDataCur should be preserved instead. // // iIdxNoSeek: -// If iIdxNoSeek is a valid cursor number (>=0) not equal to iDataCur, -// then it identifies an index cursor (from within array of cursors -// starting at iIdxCur) that already points to the index entry to be deleted. -// Except, this optimization is disabled if there are BEFORE triggers since -// the trigger body might have moved the cursor. -func Xsqlite3GenerateRowDelete(tls *libc.TLS, pParse uintptr, pTab uintptr, pTrigger uintptr, iDataCur int32, iIdxCur int32, iPk int32, nPk I16, count U8, onconf U8, eMode U8, iIdxNoSeek int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120821:21: */ +// +// If iIdxNoSeek is a valid cursor number (>=0) not equal to iDataCur, +// then it identifies an index cursor (from within array of cursors +// starting at iIdxCur) that already points to the index entry to be deleted. +// Except, this optimization is disabled if there are BEFORE triggers since +// the trigger body might have moved the cursor. +func Xsqlite3GenerateRowDelete(tls *libc.TLS, pParse uintptr, pTab uintptr, pTrigger uintptr, iDataCur int32, iIdxCur int32, iPk int32, nPk I16, count U8, onconf U8, eMode U8, iIdxNoSeek int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122039:21: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe // Vdbe var iOld int32 = 0 // First register in OLD.* array var iLabel int32 // Label resolved to end of generated code @@ -147328,8 +148092,8 @@ func Xsqlite3GenerateRowDelete(tls *libc.TLS, pParse uintptr, pTab uintptr, pTri } return 0 }()) - if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 || 0 == Xsqlite3_stricmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+12585) { - Xsqlite3VdbeAppendP4(tls, v, pTab, -6) + if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 || 0 == Xsqlite3_stricmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+12624) { + Xsqlite3VdbeAppendP4(tls, v, pTab, -5) } if int32(eMode) != ONEPASS_OFF { Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_AUXDELETE)) @@ -147364,18 +148128,18 @@ func Xsqlite3GenerateRowDelete(tls *libc.TLS, pParse uintptr, pTab uintptr, pTri // // Preconditions: // -// 1. A read/write cursor "iDataCur" must be open on the canonical storage -// btree for the table pTab. (This will be either the table itself -// for rowid tables or to the primary key index for WITHOUT ROWID -// tables.) +// 1. A read/write cursor "iDataCur" must be open on the canonical storage +// btree for the table pTab. (This will be either the table itself +// for rowid tables or to the primary key index for WITHOUT ROWID +// tables.) // -// 2. Read/write cursors for all indices of pTab must be open as -// cursor number iIdxCur+i for the i-th index. (The pTab->pIndex -// index is the 0-th index.) +// 2. Read/write cursors for all indices of pTab must be open as +// cursor number iIdxCur+i for the i-th index. (The pTab->pIndex +// index is the 0-th index.) // -// 3. The "iDataCur" cursor must be already be positioned on the row -// that is to be deleted. -func Xsqlite3GenerateRowIndexDelete(tls *libc.TLS, pParse uintptr, pTab uintptr, iDataCur int32, iIdxCur int32, aRegIdx uintptr, iIdxNoSeek int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:120973:21: */ +// 3. The "iDataCur" cursor must be already be positioned on the row +// that is to be deleted. +func Xsqlite3GenerateRowIndexDelete(tls *libc.TLS, pParse uintptr, pTab uintptr, iDataCur int32, iIdxCur int32, aRegIdx uintptr, iIdxNoSeek int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122191:21: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -147464,7 +148228,7 @@ __3: // This optimization is helpful when doing a DELETE or an INTEGRITY_CHECK // on a table with multiple indices, and especially with the ROWID or // PRIMARY KEY columns of the index. -func Xsqlite3GenerateIndexKey(tls *libc.TLS, pParse uintptr, pIdx uintptr, iDataCur int32, regOut int32, prefixOnly int32, piPartIdxLabel uintptr, pPrior uintptr, regPrior int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121038:20: */ +func Xsqlite3GenerateIndexKey(tls *libc.TLS, pParse uintptr, pIdx uintptr, iDataCur int32, regOut int32, prefixOnly int32, piPartIdxLabel uintptr, pPrior uintptr, regPrior int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122256:20: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var j int32 var regBase int32 @@ -147520,7 +148284,7 @@ func Xsqlite3GenerateIndexKey(tls *libc.TLS, pParse uintptr, pIdx uintptr, iData // If a prior call to sqlite3GenerateIndexKey() generated a jump-over label // because it was a partial index, then this routine should be called to // resolve that label. -func Xsqlite3ResolvePartIdxLabel(tls *libc.TLS, pParse uintptr, iLabel int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121100:21: */ +func Xsqlite3ResolvePartIdxLabel(tls *libc.TLS, pParse uintptr, iLabel int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122318:21: */ if iLabel != 0 { Xsqlite3VdbeResolveLabel(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, iLabel) } @@ -147548,7 +148312,7 @@ func Xsqlite3ResolvePartIdxLabel(tls *libc.TLS, pParse uintptr, iLabel int32) { // #include "vdbeInt.h" // Return the collating function associated with a function. -func sqlite3GetFuncCollSeq(tls *libc.TLS, context uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121134:16: */ +func sqlite3GetFuncCollSeq(tls *libc.TLS, context uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122352:16: */ var pOp uintptr pOp = (*Vdbe)(unsafe.Pointer((*Sqlite3_context)(unsafe.Pointer(context)).FpVdbe)).FaOp + uintptr((*Sqlite3_context)(unsafe.Pointer(context)).FiOp-1)*24 @@ -147558,14 +148322,14 @@ func sqlite3GetFuncCollSeq(tls *libc.TLS, context uintptr) uintptr { /* testdata // Indicate that the accumulator load should be skipped on this // iteration of the aggregate loop. -func sqlite3SkipAccumulatorLoad(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121147:13: */ +func sqlite3SkipAccumulatorLoad(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122365:13: */ (*Sqlite3_context)(unsafe.Pointer(context)).FisError = -1 (*Sqlite3_context)(unsafe.Pointer(context)).FskipFlag = U8(1) } // Implementation of the non-aggregate min() and max() functions -func minmaxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121156:13: */ +func minmaxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122374:13: */ var i int32 var mask int32 // 0 for min() or 0xffffffff for max() var iBest int32 @@ -147595,7 +148359,7 @@ func minmaxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* t } // Return the type of the argument. -func typeofFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121186:13: */ +func typeofFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122404:13: */ var i int32 = Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) - 1 _ = NotUsed @@ -147606,18 +148370,18 @@ func typeofFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { / Xsqlite3_result_text(tls, context, azType2[i], -1, uintptr(0)) } -var azType2 = [5]uintptr{ts + 7494, ts + 7489, ts + 9244, ts + 9239, ts + 7484} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121191:21 */ +var azType2 = [5]uintptr{ts + 7529, ts + 7524, ts + 9283, ts + 9278, ts + 7519} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122409:21 */ // subtype(X) // // Return the subtype of X -func subtypeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121211:13: */ +func subtypeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122429:13: */ _ = argc Xsqlite3_result_int(tls, context, int32(Xsqlite3_value_subtype(tls, *(*uintptr)(unsafe.Pointer(argv))))) } // Implementation of the length() function -func lengthFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121223:13: */ +func lengthFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122441:13: */ _ = argc switch Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) { @@ -147666,7 +148430,7 @@ func lengthFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* t // // IMP: R-23979-26855 The abs(X) function returns the absolute value of // the numeric argument X. -func absFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121265:13: */ +func absFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122483:13: */ _ = argc switch Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv))) { @@ -147678,7 +148442,7 @@ func absFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test // IMP: R-31676-45509 If X is the integer -9223372036854775808 // then abs(X) throws an integer overflow error since there is no // equivalent positive 64-bit two complement value. - Xsqlite3_result_error(tls, context, ts+16107, -1) + Xsqlite3_result_error(tls, context, ts+16146, -1) return } iVal = -iVal @@ -147720,7 +148484,7 @@ func absFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test // If both haystack and needle are BLOBs, then the result is one more than // the number of bytes in haystack prior to the first occurrence of needle, // or 0 if needle never occurs in haystack. -func instrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121314:13: */ +func instrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122532:13: */ var zHaystack uintptr var zNeedle uintptr var nHaystack int32 @@ -147835,7 +148599,7 @@ endInstrOOM: } // Implementation of the printf() (a.k.a. format()) SQL function. -func printfFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121382:13: */ +func printfFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122600:13: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -147856,9 +148620,7 @@ func printfFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* t Xsqlite3_str_appendf(tls, bp+8, zFormat, libc.VaList(bp, bp+40)) n = int32((*StrAccum)(unsafe.Pointer(bp + 8 /* &str */)).FnChar) Xsqlite3_result_text(tls, context, Xsqlite3StrAccumFinish(tls, bp+8), n, - *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr) uintptr - }{Xsqlite3OomFault}))) + *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3OomClear}))) } } @@ -147872,7 +148634,7 @@ func printfFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* t // If p1 is negative, then we begin abs(p1) from the end of x[]. // // If p2 is negative, return the p2 characters preceding p1. -func substrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121418:13: */ +func substrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122636:13: */ var z uintptr var z2 uintptr var len int32 @@ -147980,7 +148742,7 @@ func substrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* t } // Implementation of the round() function -func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121513:13: */ +func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122731:13: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -148018,7 +148780,7 @@ func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* te return +0.5 }())) } else { - zBuf = Xsqlite3_mprintf(tls, ts+16124, libc.VaList(bp, n, *(*float64)(unsafe.Pointer(bp + 16 /* r */)))) + zBuf = Xsqlite3_mprintf(tls, ts+16163, libc.VaList(bp, n, *(*float64)(unsafe.Pointer(bp + 16 /* r */)))) if zBuf == uintptr(0) { Xsqlite3_result_error_nomem(tls, context) return @@ -148034,7 +148796,7 @@ func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* te // the database handle that malloc() has failed and return NULL. // If nByte is larger than the maximum string or blob length, then // raise an SQLITE_TOOBIG exception and return NULL. -func contextMalloc(tls *libc.TLS, context uintptr, nByte I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121554:13: */ +func contextMalloc(tls *libc.TLS, context uintptr, nByte I64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122772:13: */ var z uintptr var db uintptr = Xsqlite3_context_db_handle(tls, context) @@ -148051,7 +148813,7 @@ func contextMalloc(tls *libc.TLS, context uintptr, nByte I64) uintptr { /* testd } // Implementation of the upper() and lower() SQL functions. -func upperFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121575:13: */ +func upperFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122793:13: */ var z1 uintptr var z2 uintptr var i int32 @@ -148072,7 +148834,7 @@ func upperFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* te } } -func lowerFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121594:13: */ +func lowerFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122812:13: */ var z1 uintptr var z2 uintptr var i int32 @@ -148101,7 +148863,7 @@ func lowerFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* te // is. We might as well use the "version()" function as a substitute. // Implementation of random(). Return a random integer. -func randomFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121627:13: */ +func randomFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122845:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -148125,7 +148887,7 @@ func randomFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) // Implementation of randomblob(N). Return a random blob // that is N bytes long. -func randomBlob(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121653:13: */ +func randomBlob(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122871:13: */ var n Sqlite3_int64 var p uintptr @@ -148143,7 +148905,7 @@ func randomBlob(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* t // Implementation of the last_insert_rowid() SQL function. The return // value is the same as the sqlite3_last_insert_rowid() API function. -func last_insert_rowid(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121677:13: */ +func last_insert_rowid(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122895:13: */ var db uintptr = Xsqlite3_context_db_handle(tls, context) _ = NotUsed _ = NotUsed2 @@ -148158,7 +148920,7 @@ func last_insert_rowid(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 u // IMP: R-32760-32347 The changes() SQL function is a wrapper // around the sqlite3_changes64() C/C++ function and hence follows the // same rules for counting changes. -func changes(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121697:13: */ +func changes(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122915:13: */ var db uintptr = Xsqlite3_context_db_handle(tls, context) _ = NotUsed _ = NotUsed2 @@ -148167,7 +148929,7 @@ func changes(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { // Implementation of the total_changes() SQL function. The return value is // the same as the sqlite3_total_changes64() API function. -func total_changes(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121711:13: */ +func total_changes(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122929:13: */ var db uintptr = Xsqlite3_context_db_handle(tls, context) _ = NotUsed _ = NotUsed2 @@ -148182,40 +148944,40 @@ type compareInfo = struct { FmatchOne U8 FmatchSet U8 FnoCase U8 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121726:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122944:1 */ // For LIKE and GLOB matching on EBCDIC machines, assume that every // character is exactly one byte in size. Also, provde the Utf8Read() // macro for fast reading of the next character in the common case where // the next character is ASCII. -var globInfo = compareInfo{FmatchAll: U8('*'), FmatchOne: U8('?'), FmatchSet: U8('[')} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121746:33 */ +var globInfo = compareInfo{FmatchAll: U8('*'), FmatchOne: U8('?'), FmatchSet: U8('[')} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122964:33 */ // The correct SQL-92 behavior is for the LIKE operator to ignore // case. Thus 'a' LIKE 'A' would be true. -var likeInfoNorm = compareInfo{FmatchAll: U8('%'), FmatchOne: U8('_'), FnoCase: U8(1)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121749:33 */ +var likeInfoNorm = compareInfo{FmatchAll: U8('%'), FmatchOne: U8('_'), FnoCase: U8(1)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122967:33 */ // If SQLITE_CASE_SENSITIVE_LIKE is defined, then the LIKE operator // is case sensitive causing 'a' LIKE 'A' to be false -var likeInfoAlt = compareInfo{FmatchAll: U8('%'), FmatchOne: U8('_')} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121752:33 */ +var likeInfoAlt = compareInfo{FmatchAll: U8('%'), FmatchOne: U8('_')} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:122970:33 */ // Possible error returns from patternMatch() // Compare two UTF-8 strings for equality where the first string is // a GLOB or LIKE expression. Return values: // -// SQLITE_MATCH: Match -// SQLITE_NOMATCH: No match -// SQLITE_NOWILDCARDMATCH: No match in spite of having * or % wildcards. +// SQLITE_MATCH: Match +// SQLITE_NOMATCH: No match +// SQLITE_NOWILDCARDMATCH: No match in spite of having * or % wildcards. // // Globbing rules: // -// '*' Matches any sequence of zero or more characters. +// '*' Matches any sequence of zero or more characters. // -// '?' Matches exactly one character. +// '?' Matches exactly one character. // -// [...] Matches one character from the enclosed list of -// characters. +// [...] Matches one character from the enclosed list of +// characters. // -// [^...] Matches one character not in the enclosed list. +// [^...] Matches one character not in the enclosed list. // // With the [...] and [^...] matching, a ']' character can be included // in the list by making it the first character after '[' or '^'. A @@ -148225,17 +148987,17 @@ var likeInfoAlt = compareInfo{FmatchAll: U8('%'), FmatchOne: U8('_')} /* testdat // // Like matching rules: // -// '%' Matches any sequence of zero or more characters +// '%' Matches any sequence of zero or more characters // -// '_' Matches any one character +// '_' Matches any one character // -// Ec Where E is the "esc" character and c is any other -// character, including '%', '_', and esc, match exactly c. +// Ec Where E is the "esc" character and c is any other +// character, including '%', '_', and esc, match exactly c. // // The comments within this routine usually assume glob matching. // // This routine is usually quick, but can be N**2 in the worst case. -func patternCompare(tls *libc.TLS, zPattern uintptr, zString uintptr, pInfo uintptr, matchOther U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121799:12: */ +func patternCompare(tls *libc.TLS, zPattern uintptr, zString uintptr, pInfo uintptr, matchOther U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123017:12: */ bp := tls.Alloc(19) defer tls.Free(19) *(*uintptr)(unsafe.Pointer(bp)) = zPattern @@ -148421,13 +149183,13 @@ func patternCompare(tls *libc.TLS, zPattern uintptr, zString uintptr, pInfo uint // The sqlite3_strglob() interface. Return 0 on a match (like strcmp()) and // non-zero if there is no match. -func Xsqlite3_strglob(tls *libc.TLS, zGlobPattern uintptr, zString uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121932:16: */ +func Xsqlite3_strglob(tls *libc.TLS, zGlobPattern uintptr, zString uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123150:16: */ return patternCompare(tls, zGlobPattern, zString, uintptr(unsafe.Pointer(&globInfo)), uint32('[')) } // The sqlite3_strlike() interface. Return 0 on a match and non-zero for // a miss - like strcmp(). -func Xsqlite3_strlike(tls *libc.TLS, zPattern uintptr, zStr uintptr, esc uint32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121940:16: */ +func Xsqlite3_strlike(tls *libc.TLS, zPattern uintptr, zStr uintptr, esc uint32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123158:16: */ return patternCompare(tls, zPattern, zStr, uintptr(unsafe.Pointer(&likeInfoNorm)), esc) } @@ -148439,13 +149201,13 @@ func Xsqlite3_strlike(tls *libc.TLS, zPattern uintptr, zStr uintptr, esc uint32) // the build-in LIKE operator. The first argument to the function is the // pattern and the second argument is the string. So, the SQL statements: // -// A LIKE B +// A LIKE B // // is implemented as like(B,A). // // This same function (with a different compareInfo structure) computes // the GLOB operator. -func likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121966:13: */ +func likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123184:13: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -148468,7 +149230,7 @@ func likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* tes nPat = Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv))) if nPat > *(*int32)(unsafe.Pointer(db + 136 + 8*4)) { - Xsqlite3_result_error(tls, context, ts+16129, -1) + Xsqlite3_result_error(tls, context, ts+16168, -1) return } if argc == 3 { @@ -148480,7 +149242,7 @@ func likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* tes } if Xsqlite3Utf8CharLen(tls, *(*uintptr)(unsafe.Pointer(bp)), -1) != 1 { Xsqlite3_result_error(tls, context, - ts+16162, -1) + ts+16201, -1) return } escape = Xsqlite3Utf8Read(tls, bp) @@ -148508,7 +149270,7 @@ func likeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* tes // Implementation of the NULLIF(x,y) function. The result is the first // argument if the arguments are different. The result is NULL if the // arguments are equal to each other. -func nullifFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122037:13: */ +func nullifFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123255:13: */ var pColl uintptr = sqlite3GetFuncCollSeq(tls, context) _ = NotUsed if Xsqlite3MemCompare(tls, *(*uintptr)(unsafe.Pointer(argv)), *(*uintptr)(unsafe.Pointer(argv + 1*8)), pColl) != 0 { @@ -148518,7 +149280,7 @@ func nullifFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { / // Implementation of the sqlite_version() function. The result is the version // of the SQLite library that is running. -func versionFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122053:13: */ +func versionFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123271:13: */ _ = NotUsed _ = NotUsed2 // IMP: R-48699-48617 This function is an SQL wrapper around the @@ -148529,7 +149291,7 @@ func versionFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr // Implementation of the sqlite_source_id() function. The result is a string // that identifies the particular version of the source code used to build // SQLite. -func sourceidFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122069:13: */ +func sourceidFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123287:13: */ _ = NotUsed _ = NotUsed2 // IMP: R-24470-31136 This function is an SQL wrapper around the @@ -148540,19 +149302,19 @@ func sourceidFunc(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintpt // Implementation of the sqlite_log() function. This is a wrapper around // sqlite3_log(). The return value is NULL. The function exists purely for // its side-effects. -func errlogFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122085:13: */ +func errlogFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123303:13: */ bp := tls.Alloc(8) defer tls.Free(8) _ = argc _ = context - Xsqlite3_log(tls, Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv))), ts+4444, libc.VaList(bp, Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8))))) + Xsqlite3_log(tls, Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv))), ts+4479, libc.VaList(bp, Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8))))) } // Implementation of the sqlite_compileoption_used() function. // The result is an integer that identifies if the compiler option // was used to build SQLite. -func compileoptionusedFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122101:13: */ +func compileoptionusedFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123319:13: */ var zOptName uintptr _ = argc @@ -148567,7 +149329,7 @@ func compileoptionusedFunc(tls *libc.TLS, context uintptr, argc int32, argv uint // Implementation of the sqlite_compileoption_get() function. // The result is a string that identifies the compiler options // used to build SQLite. -func compileoptiongetFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122125:13: */ +func compileoptiongetFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123343:13: */ var n int32 _ = argc @@ -148582,11 +149344,11 @@ func compileoptiongetFunc(tls *libc.TLS, context uintptr, argc int32, argv uintp var hexdigits = [16]int8{ int8('0'), int8('1'), int8('2'), int8('3'), int8('4'), int8('5'), int8('6'), int8('7'), int8('8'), int8('9'), int8('A'), int8('B'), int8('C'), int8('D'), int8('E'), int8('F'), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122143:19 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123361:19 */ // Append to pStr text that is the SQL literal representation of the // value contained in pValue. -func Xsqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122152:21: */ +func Xsqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123370:21: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -148602,13 +149364,13 @@ func Xsqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) { /* testda var zVal uintptr r1 = Xsqlite3_value_double(tls, pValue) - Xsqlite3_str_appendf(tls, pStr, ts+6228, libc.VaList(bp, r1)) + Xsqlite3_str_appendf(tls, pStr, ts+6263, libc.VaList(bp, r1)) zVal = Xsqlite3_str_value(tls, pStr) if zVal != 0 { Xsqlite3AtoF(tls, zVal, bp+32, int32((*StrAccum)(unsafe.Pointer(pStr)).FnChar), uint8(SQLITE_UTF8)) if r1 != *(*float64)(unsafe.Pointer(bp + 32)) { Xsqlite3_str_reset(tls, pStr) - Xsqlite3_str_appendf(tls, pStr, ts+16207, libc.VaList(bp+8, r1)) + Xsqlite3_str_appendf(tls, pStr, ts+16246, libc.VaList(bp+8, r1)) } } break @@ -148645,7 +149407,7 @@ func Xsqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) { /* testda case SQLITE_TEXT: { var zArg uintptr = Xsqlite3_value_text(tls, pValue) - Xsqlite3_str_appendf(tls, pStr, ts+16214, libc.VaList(bp+24, zArg)) + Xsqlite3_str_appendf(tls, pStr, ts+16253, libc.VaList(bp+24, zArg)) break } @@ -148667,7 +149429,7 @@ func Xsqlite3QuoteValue(tls *libc.TLS, pStr uintptr, pValue uintptr) { /* testda // as needed. BLOBs are encoded as hexadecimal literals. Strings with // embedded NUL characters cannot be represented as string literals in SQL // and hence the returned string literal is truncated prior to the first NUL. -func quoteFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122221:13: */ +func quoteFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123439:13: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -148679,9 +149441,7 @@ func quoteFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* te Xsqlite3StrAccumInit(tls, bp, db, uintptr(0), 0, *(*int32)(unsafe.Pointer(db + 136))) Xsqlite3QuoteValue(tls, bp, *(*uintptr)(unsafe.Pointer(argv))) Xsqlite3_result_text(tls, context, Xsqlite3StrAccumFinish(tls, bp), int32((*Sqlite3_str)(unsafe.Pointer(bp /* &str */)).FnChar), - *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr) uintptr - }{Xsqlite3OomFault}))) + *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3OomClear}))) if int32((*Sqlite3_str)(unsafe.Pointer(bp)).FaccError) != SQLITE_OK { Xsqlite3_result_null(tls, context) Xsqlite3_result_error_code(tls, context, int32((*Sqlite3_str)(unsafe.Pointer(bp /* &str */)).FaccError)) @@ -148690,7 +149450,7 @@ func quoteFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* te // The unicode() function. Return the integer unicode code-point value // for the first character of the input string. -func unicodeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122240:13: */ +func unicodeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123458:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -148704,7 +149464,7 @@ func unicodeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* // The char() function takes zero or more arguments, each of which is // an integer. It constructs a string where each character of the string // is the unicode character for the corresponding integer argument. -func charFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122255:13: */ +func charFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123473:13: */ var z uintptr var zOut uintptr var i int32 @@ -148742,7 +149502,7 @@ func charFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* tes // The hex() function. Interpret the argument as a blob. Return // a hexadecimal rendering as text. -func hexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122296:13: */ +func hexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123514:13: */ var i int32 var n int32 var pBlob uintptr @@ -148780,7 +149540,7 @@ func hexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test } // The zeroblob(N) function returns a zero-filled blob of size N bytes. -func zeroblobFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122324:13: */ +func zeroblobFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123542:13: */ var n I64 var rc int32 @@ -148799,7 +149559,7 @@ func zeroblobFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* // them A, B, and C. The result is also a string which is derived // from A by replacing every occurrence of B with C. The match // must be exact. Collating sequences are not used. -func replaceFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122347:13: */ +func replaceFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123565:13: */ var zStr uintptr // The input string A var zPattern uintptr // The pattern string B var zRep uintptr // The replacement string C @@ -148888,7 +149648,7 @@ func replaceFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* // Implementation of the TRIM(), LTRIM(), and RTRIM() functions. // The userdata is 0x1 for left trim, 0x2 for right trim, 0x3 for both. -func trimFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122440:13: */ +func trimFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123658:13: */ var zIn uintptr // Input string var zCharSet uintptr // Set of characters to trim var nIn uint32 // Number of bytes in input @@ -148991,8 +149751,8 @@ func trimFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* tes Xsqlite3_result_text(tls, context, zIn, int32(nIn), libc.UintptrFromInt32(-1)) } -var lenOne = [1]uint32{uint32(1)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122462:27 */ -var azOne = [1]uintptr{uintptr(ts + 12157 /* " " */)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122463:26 */ +var lenOne = [1]uint32{uint32(1)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123680:27 */ +var azOne = [1]uintptr{uintptr(ts + 12196 /* " " */)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123681:26 */ // IMP: R-25361-16150 This function is omitted from SQLite by default. It // is only available if the SQLITE_SOUNDEX compile-time option is used @@ -149001,7 +149761,7 @@ var azOne = [1]uintptr{uintptr(ts + 12157 /* " " */)} /* testdata/sqlite-amalgam // // IMP: R-59782-00072 The soundex(X) function returns a string that is the // soundex encoding of the string X. -func soundexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122553:13: */ +func soundexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123771:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -149039,7 +149799,7 @@ func soundexFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* } else { // IMP: R-64894-50321 The string "?000" is returned if the argument // is NULL or contains no ASCII alphabetic characters. - Xsqlite3_result_text(tls, context, ts+16217, 4, uintptr(0)) + Xsqlite3_result_text(tls, context, ts+16256, 4, uintptr(0)) } } @@ -149052,10 +149812,10 @@ var iCode = [128]uint8{ uint8(1), uint8(2), uint8(6), uint8(2), uint8(3), uint8(0), uint8(1), uint8(0), uint8(2), uint8(0), uint8(2), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(1), uint8(2), uint8(3), uint8(0), uint8(1), uint8(2), uint8(0), uint8(0), uint8(2), uint8(2), uint8(4), uint8(5), uint8(5), uint8(0), uint8(1), uint8(2), uint8(6), uint8(2), uint8(3), uint8(0), uint8(1), uint8(0), uint8(2), uint8(0), uint8(2), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122561:30 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123779:30 */ // A function that loads a shared-library extension then returns NULL. -func loadExt(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122606:13: */ +func loadExt(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123824:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -149067,7 +149827,7 @@ func loadExt(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test // Disallow the load_extension() SQL function unless the SQLITE_LoadExtFunc // flag is set. See the sqlite3_enable_load_extension() API. if (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_LoadExtFunc) == uint64(0) { - Xsqlite3_result_error(tls, context, ts+13337, -1) + Xsqlite3_result_error(tls, context, ts+13376, -1) return } @@ -149091,11 +149851,11 @@ type SumCtx1 = struct { Foverflow U8 Fapprox U8 F__ccgo_pad1 [6]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122637:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123855:9 */ // An instance of the following structure holds the context of a // sum() or avg() aggregate computation. -type SumCtx = SumCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122637:23 */ +type SumCtx = SumCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123855:23 */ // Routines used to compute the sum, average, and total. // @@ -149105,7 +149865,7 @@ type SumCtx = SumCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122637:2 // SUM might return an integer if it never encounters a floating point // value. TOTAL never fails, but SUM might through an exception if // it overflows an integer. -func sumStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122656:13: */ +func sumStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123874:13: */ var p uintptr var type1 int32 @@ -149127,7 +149887,7 @@ func sumStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test } } -func sumInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122678:13: */ +func sumInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123896:13: */ var p uintptr var type1 int32 @@ -149150,12 +149910,12 @@ func sumInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* t } } -func sumFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122703:13: */ +func sumFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123921:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, context, 0) if p != 0 && (*SumCtx)(unsafe.Pointer(p)).Fcnt > int64(0) { if (*SumCtx)(unsafe.Pointer(p)).Foverflow != 0 { - Xsqlite3_result_error(tls, context, ts+16107, -1) + Xsqlite3_result_error(tls, context, ts+16146, -1) } else if (*SumCtx)(unsafe.Pointer(p)).Fapprox != 0 { Xsqlite3_result_double(tls, context, (*SumCtx)(unsafe.Pointer(p)).FrSum) } else { @@ -149164,7 +149924,7 @@ func sumFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamati } } -func avgFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122716:13: */ +func avgFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123934:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, context, 0) if p != 0 && (*SumCtx)(unsafe.Pointer(p)).Fcnt > int64(0) { @@ -149172,7 +149932,7 @@ func avgFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamati } } -func totalFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122723:13: */ +func totalFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123941:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, context, 0) // (double)0 In case of SQLITE_OMIT_FLOATING_POINT... @@ -149186,14 +149946,14 @@ func totalFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgama // The following structure keeps track of state information for the // count() aggregate function. -type CountCtx1 = struct{ Fn I64 } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122734:9 */ +type CountCtx1 = struct{ Fn I64 } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123952:9 */ // The following structure keeps track of state information for the // count() aggregate function. -type CountCtx = CountCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122734:25 */ +type CountCtx = CountCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123952:25 */ // Routines to implement the count() aggregate function. -func countStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122745:13: */ +func countStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123963:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, context, int32(unsafe.Sizeof(CountCtx{}))) if (argc == 0 || SQLITE_NULL != Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv)))) && p != 0 { @@ -149207,7 +149967,7 @@ func countStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* te } -func countFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122761:13: */ +func countFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123979:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, context, 0) Xsqlite3_result_int64(tls, context, func() int64 { @@ -149218,7 +149978,7 @@ func countFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgama }()) } -func countInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122767:13: */ +func countInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:123985:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, ctx, int32(unsafe.Sizeof(CountCtx{}))) // p is always non-NULL since countStep() will have been called first @@ -149228,7 +149988,7 @@ func countInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* tes } // Routines to implement min() and max() aggregate functions. -func minmaxStep(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122785:13: */ +func minmaxStep(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124003:13: */ var pArg uintptr = *(*uintptr)(unsafe.Pointer(argv)) var pBest uintptr _ = NotUsed @@ -149266,7 +150026,7 @@ func minmaxStep(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr) { / } } -func minMaxValueFinalize(tls *libc.TLS, context uintptr, bValue int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122823:13: */ +func minMaxValueFinalize(tls *libc.TLS, context uintptr, bValue int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124041:13: */ var pRes uintptr pRes = Xsqlite3_aggregate_context(tls, context, 0) if pRes != 0 { @@ -149279,11 +150039,11 @@ func minMaxValueFinalize(tls *libc.TLS, context uintptr, bValue int32) { /* test } } -func minMaxValue(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122834:13: */ +func minMaxValue(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124052:13: */ minMaxValueFinalize(tls, context, 1) } -func minMaxFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122840:13: */ +func minMaxFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124058:13: */ minMaxValueFinalize(tls, context, 0) } @@ -149299,9 +150059,9 @@ type GroupConcatCtx = struct { FnAccum int32 FnFirstSepLength int32 FpnSepLengths uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122865:3 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124083:3 */ -func groupConcatStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122867:13: */ +func groupConcatStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124085:13: */ var zVal uintptr var pGCC uintptr var zSep uintptr @@ -149366,7 +150126,7 @@ func groupConcatStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { } } -func groupConcatInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122938:13: */ +func groupConcatInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124156:13: */ var pGCC uintptr _ = argc // Suppress unused parameter warning @@ -149408,7 +150168,7 @@ func groupConcatInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr } } -func groupConcatFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122984:13: */ +func groupConcatFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124202:13: */ var pGCC uintptr = Xsqlite3_aggregate_context(tls, context, 0) if pGCC != 0 { Xsqlite3ResultStrAccum(tls, context, pGCC) @@ -149416,7 +150176,7 @@ func groupConcatFinalize(tls *libc.TLS, context uintptr) { /* testdata/sqlite-am } } -func groupConcatValue(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:122995:13: */ +func groupConcatValue(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124213:13: */ var pGCC uintptr = Xsqlite3_aggregate_context(tls, context, 0) if pGCC != 0 { var pAccum uintptr = pGCC @@ -149434,8 +150194,8 @@ func groupConcatValue(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalg // This routine does per-connection function registration. Most // of the built-in functions above are part of the global function set. // This routine only deals with those that are not global. -func Xsqlite3RegisterPerConnectionBuiltinFunctions(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123019:21: */ - var rc int32 = Xsqlite3_overload_function(tls, db, ts+16222, 2) +func Xsqlite3RegisterPerConnectionBuiltinFunctions(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124237:21: */ + var rc int32 = Xsqlite3_overload_function(tls, db, ts+16261, 2) if rc == SQLITE_NOMEM { Xsqlite3OomFault(tls, db) @@ -149445,7 +150205,7 @@ func Xsqlite3RegisterPerConnectionBuiltinFunctions(tls *libc.TLS, db uintptr) { // Re-register the built-in LIKE functions. The caseSensitive // parameter determines whether or not the LIKE operator is case // sensitive. -func Xsqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123032:21: */ +func Xsqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124250:21: */ var pInfo uintptr var flags int32 if caseSensitive != 0 { @@ -149455,14 +150215,14 @@ func Xsqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int3 pInfo = uintptr(unsafe.Pointer(&likeInfoNorm)) flags = SQLITE_FUNC_LIKE } - Xsqlite3CreateFunc(tls, db, ts+16228, 2, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct { + Xsqlite3CreateFunc(tls, db, ts+16267, 2, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{likeFunc})), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0)) - Xsqlite3CreateFunc(tls, db, ts+16228, 3, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct { + Xsqlite3CreateFunc(tls, db, ts+16267, 3, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{likeFunc})), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0)) - *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+16228, 2, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags) - *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+16228, 3, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags) + *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+16267, 2, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags) + *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+16267, 3, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags) } // pExpr points to an expression which implements a function. If @@ -149480,7 +150240,7 @@ func Xsqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int3 // the function (default for LIKE). If the function makes the distinction // between uppercase and lowercase (as does GLOB) then *pIsNocase is set to // false. -func Xsqlite3IsLikeFunction(tls *libc.TLS, db uintptr, pExpr uintptr, pIsNocase uintptr, aWc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123065:20: */ +func Xsqlite3IsLikeFunction(tls *libc.TLS, db uintptr, pExpr uintptr, pIsNocase uintptr, aWc uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124283:20: */ var pDef uintptr var nExpr int32 @@ -149530,13 +150290,13 @@ func Xsqlite3IsLikeFunction(tls *libc.TLS, db uintptr, pExpr uintptr, pIsNocase // Extra math functions that require linking with -lm // Implementation SQL functions: // -// ceil(X) -// ceiling(X) -// floor(X) +// ceil(X) +// ceiling(X) +// floor(X) // // The sqlite3_user_data() pointer is a pointer to the libm implementation // of the underlying C function. -func ceilingFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123136:13: */ +func ceilingFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124354:13: */ switch Xsqlite3_value_numeric_type(tls, *(*uintptr)(unsafe.Pointer(argv))) { case SQLITE_INTEGER: @@ -149565,21 +150325,21 @@ func ceilingFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* // On some systems, ceil() and floor() are intrinsic function. You are // unable to take a pointer to these functions. Hence, we here wrap them // in our own actual functions. -func xCeil(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123163:15: */ +func xCeil(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124381:15: */ return libc.Xceil(tls, x) } -func xFloor(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123164:15: */ +func xFloor(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124382:15: */ return libc.Xfloor(tls, x) } // Implementation of SQL functions: // -// ln(X) - natural logarithm -// log(X) - log X base 10 -// log10(X) - log X base 10 -// log(B,X) - log X base B -func logFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123174:13: */ +// ln(X) - natural logarithm +// log(X) - log X base 10 +// log10(X) - log X base 10 +// log(B,X) - log X base B +func logFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124392:13: */ var x float64 var b float64 var ans float64 @@ -149620,12 +150380,12 @@ func logFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test switch int32(Xsqlite3_user_data(tls, context)) { case 1: // Convert from natural logarithm to log base 10 - ans = ans * (float64(1.0) / 2.30258509299404568402) + ans = ans / 2.30258509299404568402 break fallthrough case 2: // Convert from natural logarithm to log base 2 - ans = ans * (float64(1.0) / 0.69314718055994530942) + ans = ans / 0.69314718055994530942 break fallthrough default: @@ -149636,18 +150396,18 @@ func logFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test } // Functions to converts degrees to radians and radians to degrees. -func degToRad(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123224:15: */ +func degToRad(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124442:15: */ return x * (float64(3.14159265358979323846) / 180.0) } -func radToDeg(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123225:15: */ +func radToDeg(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124443:15: */ return x * (float64(180.0) / 3.14159265358979323846) } // Implementation of 1-argument SQL math functions: // -// exp(X) - Compute e to the X-th power -func math1Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123232:13: */ +// exp(X) - Compute e to the X-th power +func math1Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124450:13: */ var type0 int32 var v0 float64 var ans float64 @@ -149667,8 +150427,8 @@ func math1Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* te // Implementation of 2-argument SQL math functions: // -// power(X,Y) - Compute X to the Y-th power -func math2Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123254:13: */ +// power(X,Y) - Compute X to the Y-th power +func math2Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124472:13: */ var type0 int32 var type1 int32 var v0 float64 @@ -149694,13 +150454,13 @@ func math2Func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* te } // Implementation of 0-argument pi() function. -func piFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123277:13: */ +func piFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124495:13: */ Xsqlite3_result_double(tls, context, 3.14159265358979323846) } // Implementation of sign(X) function. -func signFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123291:13: */ +func signFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124509:13: */ var type0 int32 var x float64 _ = argc @@ -149728,7 +150488,7 @@ func signFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* tes // a consequence of calling sqlite3_initialize()). // // After this routine runs -func Xsqlite3RegisterBuiltinFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123313:21: */ +func Xsqlite3RegisterBuiltinFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124531:21: */ Xsqlite3AlterFunctions(tls) Xsqlite3WindowFunctions(tls) Xsqlite3RegisterDateTimeFunctions(tls) @@ -149739,109 +150499,109 @@ func Xsqlite3RegisterBuiltinFunctions(tls *libc.TLS) { /* testdata/sqlite-amalga var aBuiltinFunc = [101]FuncDef{ //**** Functions only available with SQLITE_TESTCTRL_INTERNAL_FUNCTIONS **** - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_implies_nonnull_row)), FxSFunc: 0, FzName: ts + 16233}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_expr_compare)), FxSFunc: 0, FzName: ts + 16253}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_expr_implies_expr)), FxSFunc: 0, FzName: ts + 16266}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_affinity)), FxSFunc: 0, FzName: ts + 16284}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_implies_nonnull_row)), FxSFunc: 0, FzName: ts + 16272}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_expr_compare)), FxSFunc: 0, FzName: ts + 16292}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_expr_implies_expr)), FxSFunc: 0, FzName: ts + 16305}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INTERNAL | SQLITE_FUNC_TEST | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_affinity)), FxSFunc: 0, FzName: ts + 16323}, //**** Regular functions **** - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16293}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 16301}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 16301}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16316}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16342}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | SQLITE_FUNC_UNLIKELY), FpUserData: uintptr(int64(INLINEFUNC_unlikely)), FxSFunc: 0, FzName: ts + 16367}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | SQLITE_FUNC_UNLIKELY), FpUserData: uintptr(int64(INLINEFUNC_unlikely)), FxSFunc: 0, FzName: ts + 16376}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | SQLITE_FUNC_UNLIKELY), FpUserData: uintptr(int64(INLINEFUNC_unlikely)), FxSFunc: 0, FzName: ts + 16387}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_OFFSET | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 16394}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16408}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16408}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(2)), FxSFunc: 0, FzName: ts + 16414}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(2)), FxSFunc: 0, FzName: ts + 16414}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(3)), FxSFunc: 0, FzName: ts + 16420}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(3)), FxSFunc: 0, FzName: ts + 16420}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16425}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FzName: ts + 16425}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_MINMAX | SQLITE_FUNC_ANYORDER), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FzName: ts + 16425}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16429}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FzName: ts + 16429}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_MINMAX | SQLITE_FUNC_ANYORDER), FpUserData: uintptr(int64(1)), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FzName: ts + 16429}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 16433}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 16440}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_LENGTH), FxSFunc: 0, FzName: ts + 16448}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16455}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16461}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16468}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16475}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16483}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16488}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16492}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16492}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16498}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16504}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16510}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 16514}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16521}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16528}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16539}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16546}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16561}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16578}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16589}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16595}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16613}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16621}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16635}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16643}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16652}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16652}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16659}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16659}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16669}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16673}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16679}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_COUNT | SQLITE_FUNC_ANYORDER), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16683}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_ANYORDER), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16683}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16689}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16689}, - - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE | SQLITE_FUNC_CASE), FpUserData: 0, FxSFunc: 0, FzName: ts + 16702}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 16228}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 16228}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 16707}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 16707}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16716}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16721}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16729}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16735}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16741}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16744}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16748}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(2)), FxSFunc: 0, FzName: ts + 16754}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16744}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16332}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 16340}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 16340}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16355}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16381}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | SQLITE_FUNC_UNLIKELY), FpUserData: uintptr(int64(INLINEFUNC_unlikely)), FxSFunc: 0, FzName: ts + 16406}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | SQLITE_FUNC_UNLIKELY), FpUserData: uintptr(int64(INLINEFUNC_unlikely)), FxSFunc: 0, FzName: ts + 16415}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | SQLITE_FUNC_UNLIKELY), FpUserData: uintptr(int64(INLINEFUNC_unlikely)), FxSFunc: 0, FzName: ts + 16426}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_sqlite_offset)), FxSFunc: 0, FzName: ts + 16433}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16447}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16447}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(2)), FxSFunc: 0, FzName: ts + 16453}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(2)), FxSFunc: 0, FzName: ts + 16453}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(3)), FxSFunc: 0, FzName: ts + 16459}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(3)), FxSFunc: 0, FzName: ts + 16459}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16464}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FzName: ts + 16464}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_MINMAX | SQLITE_FUNC_ANYORDER), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FzName: ts + 16464}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16468}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FzName: ts + 16468}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_MINMAX | SQLITE_FUNC_ANYORDER), FpUserData: uintptr(int64(1)), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FzName: ts + 16468}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 16472}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 16479}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_LENGTH), FxSFunc: 0, FzName: ts + 16487}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16494}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16500}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16507}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16514}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16522}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16527}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16531}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16531}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16537}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16543}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16549}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 16553}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16560}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16567}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16578}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16585}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 16600}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16617}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16628}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16634}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16652}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16660}, + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16674}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16682}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16691}, + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16691}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16698}, + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16698}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16708}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16712}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16718}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_COUNT | SQLITE_FUNC_ANYORDER), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16722}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_ANYORDER), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16722}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16728}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 16728}, + + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE | SQLITE_FUNC_CASE), FpUserData: 0, FxSFunc: 0, FzName: ts + 16741}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 16267}, + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 16267}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 7864}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 7864}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16746}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16751}, {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16759}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16763}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16767}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16773}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16777}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16782}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16787}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16792}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16798}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16802}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16806}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16810}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16815}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16820}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16825}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16831}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16837}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16843}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16848}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16856}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16864}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16867}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 16707}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_iif)), FxSFunc: 0, FzName: ts + 16872}} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123324:18 */ + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16765}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16771}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16774}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FxSFunc: 0, FzName: ts + 16778}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(2)), FxSFunc: 0, FzName: ts + 16784}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16774}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16789}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16793}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16797}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16803}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16807}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16812}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16817}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16822}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16828}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16832}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16836}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16840}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16845}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16850}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16855}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16861}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16867}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16873}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16878}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 16886}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16894}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 16897}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 7864}, + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FpUserData: uintptr(int64(INLINEFUNC_iif)), FxSFunc: 0, FzName: ts + 16902}} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124542:18 */ //************* End of func.c *********************************************** //************* Begin file fkey.c ******************************************* @@ -149999,24 +150759,24 @@ var aBuiltinFunc = [101]FuncDef{ // // If the required index cannot be found, either because: // -// 1) The named parent key columns do not exist, or +// 1. The named parent key columns do not exist, or // -// 2) The named parent key columns do exist, but are not subject to a -// UNIQUE or PRIMARY KEY constraint, or +// 2. The named parent key columns do exist, but are not subject to a +// UNIQUE or PRIMARY KEY constraint, or // -// 3) No parent key columns were provided explicitly as part of the -// foreign key definition, and the parent table does not have a -// PRIMARY KEY, or +// 3. No parent key columns were provided explicitly as part of the +// foreign key definition, and the parent table does not have a +// PRIMARY KEY, or // -// 4) No parent key columns were provided explicitly as part of the -// foreign key definition, and the PRIMARY KEY of the parent table -// consists of a different number of columns to the child key in -// the child table. +// 4. No parent key columns were provided explicitly as part of the +// foreign key definition, and the PRIMARY KEY of the parent table +// consists of a different number of columns to the child key in +// the child table. // // then non-zero is returned, and a "foreign key mismatch" error loaded // into pParse. If an OOM error occurs, non-zero is returned and the // pParse->db->mallocFailed flag is set. -func Xsqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey uintptr, ppIdx uintptr, paiCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123677:20: */ +func Xsqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey uintptr, ppIdx uintptr, paiCol uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124894:20: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -150127,7 +150887,7 @@ func Xsqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey if !(pIdx != 0) { if !(int32((*Parse)(unsafe.Pointer(pParse)).FdisableTriggers) != 0) { Xsqlite3ErrorMsg(tls, pParse, - ts+16876, + ts+16906, libc.VaList(bp, (*Table)(unsafe.Pointer((*FKey)(unsafe.Pointer(pFKey)).FpFrom)).FzName, (*FKey)(unsafe.Pointer(pFKey)).FzTo)) } Xsqlite3DbFree(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, aiCol) @@ -150150,19 +150910,19 @@ func Xsqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey // special action is taken. Otherwise, if the parent row can *not* be // found in the parent table: // -// Operation | FK type | Action taken -// -------------------------------------------------------------------------- -// INSERT immediate Increment the "immediate constraint counter". +// Operation | FK type | Action taken +// -------------------------------------------------------------------------- +// INSERT immediate Increment the "immediate constraint counter". // -// DELETE immediate Decrement the "immediate constraint counter". +// DELETE immediate Decrement the "immediate constraint counter". // -// INSERT deferred Increment the "deferred constraint counter". +// INSERT deferred Increment the "deferred constraint counter". // -// DELETE deferred Decrement the "deferred constraint counter". +// DELETE deferred Decrement the "deferred constraint counter". // // These operations are identified in the comment at the top of this file // (fkey.c) as "I.1" and "D.1". -func fkLookupParent(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr, pIdx uintptr, pFKey uintptr, aiCol uintptr, regData int32, nIncr int32, isIgnore int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123814:13: */ +func fkLookupParent(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr, pIdx uintptr, pFKey uintptr, aiCol uintptr, regData int32, nIncr int32, isIgnore int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125031:13: */ var i int32 // Iterator variable var v uintptr = Xsqlite3GetVdbe(tls, pParse) // Vdbe to add code to var iCur int32 = (*Parse)(unsafe.Pointer(pParse)).FnTab - 1 // Cursor number to use @@ -150218,7 +150978,6 @@ func fkLookupParent(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr, pIdx } else { var nCol int32 = (*FKey)(unsafe.Pointer(pFKey)).FnCol var regTemp int32 = Xsqlite3GetTempRange(tls, pParse, nCol) - var regRec int32 = Xsqlite3GetTempReg(tls, pParse) Xsqlite3VdbeAddOp3(tls, v, OP_OpenRead, iCur, int32((*Index)(unsafe.Pointer(pIdx)).Ftnum), iDb) Xsqlite3VdbeSetP4KeyInfo(tls, pParse, pIdx) @@ -150256,11 +151015,10 @@ func fkLookupParent(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr, pIdx Xsqlite3VdbeGoto(tls, v, iOk) } - Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTemp, nCol, regRec, + Xsqlite3VdbeAddOp4(tls, v, OP_Affinity, regTemp, nCol, 0, Xsqlite3IndexAffinityStr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pIdx), nCol) - Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, iCur, iOk, regRec, 0) + Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, iCur, iOk, regTemp, nCol) - Xsqlite3ReleaseTempReg(tls, pParse, regRec) Xsqlite3ReleaseTempRange(tls, pParse, regTemp, nCol) } } @@ -150292,7 +151050,7 @@ func fkLookupParent(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr, pIdx // regBase is the first of an array of register that contains the data // for pTab. regBase itself holds the rowid. regBase+1 holds the first // column. regBase+2 holds the second column, and so forth. -func exprTableRegister(tls *libc.TLS, pParse uintptr, pTab uintptr, regBase int32, iCol I16) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123967:13: */ +func exprTableRegister(tls *libc.TLS, pParse uintptr, pTab uintptr, regBase int32, iCol I16) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125182:13: */ var pExpr uintptr var pCol uintptr var zColl uintptr @@ -150319,7 +151077,7 @@ func exprTableRegister(tls *libc.TLS, pParse uintptr, pTab uintptr, regBase int3 // Return an Expr object that refers to column iCol of table pTab which // has cursor iCur. -func exprTableColumn(tls *libc.TLS, db uintptr, pTab uintptr, iCursor int32, iCol I16) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:123999:13: */ +func exprTableColumn(tls *libc.TLS, db uintptr, pTab uintptr, iCursor int32, iCol I16) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125214:13: */ var pExpr uintptr = Xsqlite3Expr(tls, db, TK_COLUMN, uintptr(0)) if pExpr != 0 { @@ -150344,23 +151102,19 @@ func exprTableColumn(tls *libc.TLS, db uintptr, pTab uintptr, iCursor int32, iCo // table that correspond to the parent table row being deleted or inserted. // For each child row found, one of the following actions is taken: // -// Operation | FK type | Action taken -// -------------------------------------------------------------------------- -// DELETE immediate Increment the "immediate constraint counter". -// Or, if the ON (UPDATE|DELETE) action is RESTRICT, -// throw a "FOREIGN KEY constraint failed" exception. +// Operation | FK type | Action taken +// -------------------------------------------------------------------------- +// DELETE immediate Increment the "immediate constraint counter". // -// INSERT immediate Decrement the "immediate constraint counter". +// INSERT immediate Decrement the "immediate constraint counter". // -// DELETE deferred Increment the "deferred constraint counter". -// Or, if the ON (UPDATE|DELETE) action is RESTRICT, -// throw a "FOREIGN KEY constraint failed" exception. +// DELETE deferred Increment the "deferred constraint counter". // -// INSERT deferred Decrement the "deferred constraint counter". +// INSERT deferred Decrement the "deferred constraint counter". // // These operations are identified in the comment at the top of this file // (fkey.c) as "I.2" and "D.2". -func fkScanChildren(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintptr, pIdx uintptr, pFKey uintptr, aiCol uintptr, regData int32, nIncr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124047:13: */ +func fkScanChildren(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintptr, pIdx uintptr, pFKey uintptr, aiCol uintptr, regData int32, nIncr int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125258:13: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -150476,15 +151230,15 @@ func fkScanChildren(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintptr, p // FKey.pNextTo) holding all children of table pTab. For example, // given the following schema: // -// CREATE TABLE t1(a PRIMARY KEY); -// CREATE TABLE t2(b REFERENCES t1(a); +// CREATE TABLE t1(a PRIMARY KEY); +// CREATE TABLE t2(b REFERENCES t1(a); // // Calling this function with table "t1" as an argument returns a pointer // to the FKey structure representing the foreign key constraint on table // "t2". Calling this function with "t2" as the argument would return a // NULL pointer (as there are no FK constraints for which t2 is the parent // table). -func Xsqlite3FkReferences(tls *libc.TLS, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124176:21: */ +func Xsqlite3FkReferences(tls *libc.TLS, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125387:21: */ return Xsqlite3HashFind(tls, (*Table)(unsafe.Pointer(pTab)).FpSchema+80, (*Table)(unsafe.Pointer(pTab)).FzName) } @@ -150494,7 +151248,7 @@ func Xsqlite3FkReferences(tls *libc.TLS, pTab uintptr) uintptr { /* testdata/sql // // The Trigger structure or any of its sub-components may be allocated from // the lookaside buffer belonging to database handle dbMem. -func fkTriggerDelete(tls *libc.TLS, dbMem uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124188:13: */ +func fkTriggerDelete(tls *libc.TLS, dbMem uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125399:13: */ if p != 0 { var pStep uintptr = (*Trigger)(unsafe.Pointer(p)).Fstep_list Xsqlite3ExprDelete(tls, dbMem, (*TriggerStep)(unsafe.Pointer(pStep)).FpWhere) @@ -150508,7 +151262,7 @@ func fkTriggerDelete(tls *libc.TLS, dbMem uintptr, p uintptr) { /* testdata/sqli // Clear the apTrigger[] cache of CASCADE triggers for all foreign keys // in a particular database. This needs to happen when the schema // changes. -func Xsqlite3FkClearTriggerCache(tls *libc.TLS, db uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124204:21: */ +func Xsqlite3FkClearTriggerCache(tls *libc.TLS, db uintptr, iDb int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125415:21: */ var k uintptr var pHash uintptr = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FpSchema + 8 for k = (*Hash)(unsafe.Pointer(pHash)).Ffirst; k != 0; k = (*HashElem)(unsafe.Pointer(k)).Fnext { @@ -150533,15 +151287,15 @@ func Xsqlite3FkClearTriggerCache(tls *libc.TLS, db uintptr, iDb int32) { /* test // // Normally, no code is required. However, if either // -// (a) The table is the parent table of a FK constraint, or -// (b) The table is the child table of a deferred FK constraint and it is -// determined at runtime that there are outstanding deferred FK -// constraint violations in the database, +// (a) The table is the parent table of a FK constraint, or +// (b) The table is the child table of a deferred FK constraint and it is +// determined at runtime that there are outstanding deferred FK +// constraint violations in the database, // // then the equivalent of "DELETE FROM <tbl>" is executed before dropping // the table from the database. Triggers are disabled while running this // DELETE, but foreign key actions are not. -func Xsqlite3FkDropTable(tls *libc.TLS, pParse uintptr, pName uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124235:21: */ +func Xsqlite3FkDropTable(tls *libc.TLS, pParse uintptr, pName uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125446:21: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb if (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_ForeignKeys) != 0 && int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_NORM { var iSkip int32 = 0 @@ -150604,7 +151358,7 @@ func Xsqlite3FkDropTable(tls *libc.TLS, pParse uintptr, pName uintptr, pTab uint // // This function returns true if any of the columns that are part of the // child key for FK constraint *p are modified. -func fkChildIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr, bChngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124298:12: */ +func fkChildIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr, bChngRowid int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125509:12: */ var i int32 for i = 0; i < (*FKey)(unsafe.Pointer(p)).FnCol; i++ { var iChildKey int32 = (*sColMap)(unsafe.Pointer(p + 64 + uintptr(i)*16)).FiFrom @@ -150628,7 +151382,7 @@ func fkChildIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr, // // This function returns true if any of the columns that are part of the // parent key for FK constraint *p are modified. -func fkParentIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr, bChngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124325:12: */ +func fkParentIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr, bChngRowid int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125536:12: */ var i int32 for i = 0; i < (*FKey)(unsafe.Pointer(p)).FnCol; i++ { var zKey uintptr = (*sColMap)(unsafe.Pointer(p + 64 + uintptr(i)*16)).FzCol @@ -150652,7 +151406,7 @@ func fkParentIsModified(tls *libc.TLS, pTab uintptr, p uintptr, aChange uintptr, // Return true if the parser passed as the first argument is being // used to code a trigger that is really a "SET NULL" action belonging // to trigger pFKey. -func isSetNullAction(tls *libc.TLS, pParse uintptr, pFKey uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124354:12: */ +func isSetNullAction(tls *libc.TLS, pParse uintptr, pFKey uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125565:12: */ var pTop uintptr = func() uintptr { if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 { return (*Parse)(unsafe.Pointer(pParse)).FpToplevel @@ -150687,7 +151441,7 @@ func isSetNullAction(tls *libc.TLS, pParse uintptr, pFKey uintptr) int32 { /* te // the original record is deleted from the table using the calling convention // described for DELETE. Then again after the original record is deleted // but before the new record is inserted using the INSERT convention. -func Xsqlite3FkCheck(tls *libc.TLS, pParse uintptr, pTab uintptr, regOld int32, regNew int32, aChange uintptr, bChngRowid int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124387:21: */ +func Xsqlite3FkCheck(tls *libc.TLS, pParse uintptr, pTab uintptr, regOld int32, regNew int32, aChange uintptr, bChngRowid int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125598:21: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -150889,7 +151643,7 @@ func Xsqlite3FkCheck(tls *libc.TLS, pParse uintptr, pTab uintptr, regOld int32, // This function is called before generating code to update or delete a // row contained in table pTab. -func Xsqlite3FkOldmask(tls *libc.TLS, pParse uintptr, pTab uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124590:20: */ +func Xsqlite3FkOldmask(tls *libc.TLS, pParse uintptr, pTab uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125801:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -150941,14 +151695,14 @@ func Xsqlite3FkOldmask(tls *libc.TLS, pParse uintptr, pTab uintptr) U32 { /* tes // // For an UPDATE, this function returns 2 if: // -// * There are any FKs for which pTab is the child and the parent table +// - There are any FKs for which pTab is the child and the parent table // and any FK processing at all is required (even of a different FK), or // -// * the UPDATE modifies one or more parent keys for which the action is +// - the UPDATE modifies one or more parent keys for which the action is // not "NO ACTION" (i.e. is CASCADE, SET DEFAULT or SET NULL). // // Or, assuming some other foreign key processing is required, 1. -func Xsqlite3FkRequired(tls *libc.TLS, pParse uintptr, pTab uintptr, aChange uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124640:20: */ +func Xsqlite3FkRequired(tls *libc.TLS, pParse uintptr, pTab uintptr, aChange uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125851:20: */ var eRet int32 = 1 // Value to return if bHaveFK is true var bHaveFK int32 = 0 // If FK processing is required if (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).Fflags&uint64(SQLITE_ForeignKeys) != 0 && int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_NORM { @@ -150997,28 +151751,28 @@ func Xsqlite3FkRequired(tls *libc.TLS, pParse uintptr, pTab uintptr, aChange uin // // It returns a pointer to a Trigger structure containing a trigger // equivalent to the ON UPDATE or ON DELETE action specified by pFKey. -// If the action is "NO ACTION" or "RESTRICT", then a NULL pointer is -// returned (these actions require no special handling by the triggers -// sub-system, code for them is created by fkScanChildren()). +// If the action is "NO ACTION" then a NULL pointer is returned (these actions +// require no special handling by the triggers sub-system, code for them is +// created by fkScanChildren()). // // For example, if pFKey is the foreign key and pTab is table "p" in // the following schema: // -// CREATE TABLE p(pk PRIMARY KEY); -// CREATE TABLE c(ck REFERENCES p ON DELETE CASCADE); +// CREATE TABLE p(pk PRIMARY KEY); +// CREATE TABLE c(ck REFERENCES p ON DELETE CASCADE); // // then the returned trigger structure is equivalent to: // -// CREATE TRIGGER ... DELETE ON p BEGIN -// DELETE FROM c WHERE ck = old.pk; -// END; +// CREATE TRIGGER ... DELETE ON p BEGIN +// DELETE FROM c WHERE ck = old.pk; +// END; // // The returned pointer is cached as part of the foreign key object. It // is eventually freed along with the rest of the foreign key object by // sqlite3FkDelete(). -func fkActionTrigger(tls *libc.TLS, pParse uintptr, pTab uintptr, pFKey uintptr, pChanges uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124708:16: */ - bp := tls.Alloc(96) - defer tls.Free(96) +func fkActionTrigger(tls *libc.TLS, pParse uintptr, pTab uintptr, pFKey uintptr, pChanges uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:125919:16: */ + bp := tls.Alloc(112) + defer tls.Free(112) var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb // Database handle var action int32 // One of OE_None, OE_Cascade etc. @@ -151048,8 +151802,8 @@ func fkActionTrigger(tls *libc.TLS, pParse uintptr, pTab uintptr, pFKey uintptr, } for i = 0; i < (*FKey)(unsafe.Pointer(pFKey)).FnCol; i++ { - *(*Token)(unsafe.Pointer(bp + 48 /* tOld */)) = Token{Fz: ts + 7695, Fn: uint32(3)} // Literal "old" token - *(*Token)(unsafe.Pointer(bp + 64 /* tNew */)) = Token{Fz: ts + 7691, Fn: uint32(3)} // Literal "new" token + *(*Token)(unsafe.Pointer(bp + 48 /* tOld */)) = Token{Fz: ts + 7730, Fn: uint32(3)} // Literal "old" token + *(*Token)(unsafe.Pointer(bp + 64 /* tNew */)) = Token{Fz: ts + 7726, Fn: uint32(3)} // Literal "new" token // var tFromCol Token at bp+32, 16 // Name of column in child table // var tToCol Token at bp+16, 16 @@ -151131,19 +151885,25 @@ func fkActionTrigger(tls *libc.TLS, pParse uintptr, pTab uintptr, pFKey uintptr, nFrom = Xsqlite3Strlen30(tls, zFrom) if action == OE_Restrict { - // var tFrom Token at bp+80, 16 + var iDb int32 = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema) + // var tFrom Token at bp+96, 16 + + // var tDb Token at bp+80, 16 var pRaise uintptr - (*Token)(unsafe.Pointer(bp + 80 /* &tFrom */)).Fz = zFrom - (*Token)(unsafe.Pointer(bp + 80 /* &tFrom */)).Fn = uint32(nFrom) - pRaise = Xsqlite3Expr(tls, db, TK_RAISE, ts+6439) + (*Token)(unsafe.Pointer(bp + 96 /* &tFrom */)).Fz = zFrom + (*Token)(unsafe.Pointer(bp + 96 /* &tFrom */)).Fn = uint32(nFrom) + (*Token)(unsafe.Pointer(bp + 80 /* &tDb */)).Fz = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName + (*Token)(unsafe.Pointer(bp + 80 /* &tDb */)).Fn = uint32(Xsqlite3Strlen30(tls, (*Token)(unsafe.Pointer(bp+80 /* &tDb */)).Fz)) + + pRaise = Xsqlite3Expr(tls, db, TK_RAISE, ts+6474) if pRaise != 0 { (*Expr)(unsafe.Pointer(pRaise)).FaffExpr = int8(OE_Abort) } pSelect = Xsqlite3SelectNew(tls, pParse, Xsqlite3ExprListAppend(tls, pParse, uintptr(0), pRaise), - Xsqlite3SrcListAppend(tls, pParse, uintptr(0), bp+80, uintptr(0)), + Xsqlite3SrcListAppend(tls, pParse, uintptr(0), bp+80, bp+96), pWhere, uintptr(0), uintptr(0), uintptr(0), uint32(0), uintptr(0)) pWhere = uintptr(0) @@ -151218,7 +151978,7 @@ func fkActionTrigger(tls *libc.TLS, pParse uintptr, pTab uintptr, pFKey uintptr, // This function is called when deleting or updating a row to implement // any required CASCADE, SET NULL or SET DEFAULT actions. -func Xsqlite3FkActions(tls *libc.TLS, pParse uintptr, pTab uintptr, pChanges uintptr, regOld int32, aChange uintptr, bChngRowid int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124900:21: */ +func Xsqlite3FkActions(tls *libc.TLS, pParse uintptr, pTab uintptr, pChanges uintptr, regOld int32, aChange uintptr, bChngRowid int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126116:21: */ // If foreign-key support is enabled, iterate through all FKs that // refer to table pTab. If there is an action associated with the FK // for this operation (either update or delete), invoke the associated @@ -151239,7 +151999,7 @@ func Xsqlite3FkActions(tls *libc.TLS, pParse uintptr, pTab uintptr, pChanges uin // Free all memory associated with foreign key definitions attached to // table pTab. Remove the deleted foreign keys from the Schema.fkeyHash // hash table. -func Xsqlite3FkDelete(tls *libc.TLS, db uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124932:21: */ +func Xsqlite3FkDelete(tls *libc.TLS, db uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126148:21: */ var pFKey uintptr // Iterator variable var pNext uintptr // Copy of pFKey->pNextFrom @@ -151294,12 +152054,12 @@ func Xsqlite3FkDelete(tls *libc.TLS, db uintptr, pTab uintptr) { /* testdata/sql // Generate code that will // -// (1) acquire a lock for table pTab then -// (2) open pTab as cursor iCur. +// (1) acquire a lock for table pTab then +// (2) open pTab as cursor iCur. // // If pTab is a WITHOUT ROWID table, then it is the PRIMARY KEY index // for that table that is actually opened. -func Xsqlite3OpenTable(tls *libc.TLS, pParse uintptr, iCur int32, iDb int32, pTab uintptr, opcode int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:124998:21: */ +func Xsqlite3OpenTable(tls *libc.TLS, pParse uintptr, iCur int32, iDb int32, pTab uintptr, opcode int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126214:21: */ var v uintptr v = (*Parse)(unsafe.Pointer(pParse)).FpVdbe @@ -151327,13 +152087,13 @@ func Xsqlite3OpenTable(tls *libc.TLS, pParse uintptr, iCur int32, iDb int32, pTa // pIdx. A column affinity string has one character for each column in // the table, according to the affinity of the column: // -// Character Column affinity -// ------------------------------ -// 'A' BLOB -// 'B' TEXT -// 'C' NUMERIC -// 'D' INTEGER -// 'F' REAL +// Character Column affinity +// ------------------------------ +// 'A' BLOB +// 'B' TEXT +// 'C' NUMERIC +// 'D' INTEGER +// 'F' REAL // // An extra 'D' is appended to the end of the string to cover the // rowid that appears as the last column in every index. @@ -151341,7 +152101,7 @@ func Xsqlite3OpenTable(tls *libc.TLS, pParse uintptr, iCur int32, iDb int32, pTa // Memory for the buffer containing the column index affinity string // is managed along with the rest of the Index structure. It will be // released when sqlite3DeleteIndex() is called. -func Xsqlite3IndexAffinityStr(tls *libc.TLS, db uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125045:27: */ +func Xsqlite3IndexAffinityStr(tls *libc.TLS, db uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126261:27: */ if !(int32((*Index)(unsafe.Pointer(pIdx)).FzColAff) != 0) { // The first time a column affinity string for a particular index is // required, it is allocated and populated here. It is then stored as @@ -151401,13 +152161,13 @@ func Xsqlite3IndexAffinityStr(tls *libc.TLS, db uintptr, pIdx uintptr) uintptr { // // A column affinity string has one character per column: // -// Character Column affinity -// --------- --------------- -// 'A' BLOB -// 'B' TEXT -// 'C' NUMERIC -// 'D' INTEGER -// 'E' REAL +// Character Column affinity +// --------- --------------- +// 'A' BLOB +// 'B' TEXT +// 'C' NUMERIC +// 'D' INTEGER +// 'E' REAL // // For STRICT tables: // ------------------ @@ -151420,7 +152180,7 @@ func Xsqlite3IndexAffinityStr(tls *libc.TLS, db uintptr, pIdx uintptr) uintptr { // register set as the OP_MakeRecord. If iReg>0 then register iReg is // the first of a series of registers that will form the new record. // Apply the type checking to that array of registers. -func Xsqlite3TableAffinity(tls *libc.TLS, v uintptr, pTab uintptr, iReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125124:21: */ +func Xsqlite3TableAffinity(tls *libc.TLS, v uintptr, pTab uintptr, iReg int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126340:21: */ var i int32 var j int32 var zColAff uintptr @@ -151430,7 +152190,7 @@ func Xsqlite3TableAffinity(tls *libc.TLS, v uintptr, pTab uintptr, iReg int32) { // by one slot and insert a new OP_TypeCheck where the current // OP_MakeRecord is found var pPrev uintptr - Xsqlite3VdbeAppendP4(tls, v, pTab, -6) + Xsqlite3VdbeAppendP4(tls, v, pTab, -5) pPrev = Xsqlite3VdbeGetOp(tls, v, -1) (*VdbeOp)(unsafe.Pointer(pPrev)).Fopcode = U8(OP_TypeCheck) @@ -151438,7 +152198,7 @@ func Xsqlite3TableAffinity(tls *libc.TLS, v uintptr, pTab uintptr, iReg int32) { } else { // Insert an isolated OP_Typecheck Xsqlite3VdbeAddOp2(tls, v, OP_TypeCheck, iReg, int32((*Table)(unsafe.Pointer(pTab)).FnNVCol)) - Xsqlite3VdbeAppendP4(tls, v, pTab, -6) + Xsqlite3VdbeAppendP4(tls, v, pTab, -5) } return } @@ -151478,7 +152238,7 @@ func Xsqlite3TableAffinity(tls *libc.TLS, v uintptr, pTab uintptr, iReg int32) { // have been opened at any point in the VDBE program. This is used to see if // a statement of the form "INSERT INTO <iDb, pTab> SELECT ..." can // run without using a temporary table for the results of the SELECT. -func readsTable(tls *libc.TLS, p uintptr, iDb int32, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125185:12: */ +func readsTable(tls *libc.TLS, p uintptr, iDb int32, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126401:12: */ var v uintptr = Xsqlite3GetVdbe(tls, p) var i int32 var iEnd int32 = Xsqlite3VdbeCurrentAddr(tls, v) @@ -151514,7 +152274,7 @@ func readsTable(tls *libc.TLS, p uintptr, iDb int32, pTab uintptr) int32 { /* te // This walker callback will compute the union of colFlags flags for all // referenced columns in a CHECK constraint or generated column expression. -func exprColumnFlagUnion(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125222:12: */ +func exprColumnFlagUnion(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126438:12: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN && int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) >= 0 { *(*U16)(unsafe.Pointer(pWalker + 36)) |= U16(int32((*Column)(unsafe.Pointer((*Table1)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pWalker + 40)))).FaCol + uintptr((*Expr)(unsafe.Pointer(pExpr)).FiColumn)*24)).FcolFlags)) @@ -151527,7 +152287,7 @@ func exprColumnFlagUnion(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { // or VIRTUAL columns have not yet been initialized. This routine goes // back and computes the values for those columns based on the previously // computed normal columns. -func Xsqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore int32, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125238:21: */ +func Xsqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore int32, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126454:21: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -151614,7 +152374,7 @@ func Xsqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore in } } if pRedo != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+9209, libc.VaList(bp, (*Column)(unsafe.Pointer(pRedo)).FzCnName)) + Xsqlite3ErrorMsg(tls, pParse, ts+9248, libc.VaList(bp, (*Column)(unsafe.Pointer(pRedo)).FzCnName)) } (*Parse)(unsafe.Pointer(pParse)).FiSelfTab = 0 } @@ -151633,14 +152393,14 @@ func Xsqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore in // // Four consecutive registers are allocated: // -// (1) The name of the pTab table. -// (2) The maximum ROWID of pTab. -// (3) The rowid in sqlite_sequence of pTab -// (4) The original value of the max ROWID in pTab, or NULL if none +// (1) The name of the pTab table. +// (2) The maximum ROWID of pTab. +// (3) The rowid in sqlite_sequence of pTab +// (4) The original value of the max ROWID in pTab, or NULL if none // // The 2nd register is the one that is returned. That is all the // insert routine needs to know about. -func autoIncBegin(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125362:12: */ +func autoIncBegin(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126578:12: */ var memId int32 = 0 // Register holding maximum rowid if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_Autoincrement) != U32(0) && @@ -151694,7 +152454,7 @@ func autoIncBegin(tls *libc.TLS, pParse uintptr, iDb int32, pTab uintptr) int32 // This routine generates code that will initialize all of the // register used by the autoincrement tracker. -func Xsqlite3AutoincrementBegin(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125413:21: */ +func Xsqlite3AutoincrementBegin(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126629:21: */ var p uintptr // Information about an AUTOINCREMENT var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb // The database connection var pDb uintptr // Database only autoinc table @@ -151734,7 +152494,7 @@ func Xsqlite3AutoincrementBegin(tls *libc.TLS, pParse uintptr) { /* testdata/sql } } -var iLn1 int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125427:22 */ +var iLn1 int32 = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126643:22 */ var autoInc = [12]VdbeOpList{ /* 0 */ {Fopcode: U8(OP_Null)}, /* 1 */ {Fopcode: U8(OP_Rewind), Fp2: int8(10)}, @@ -151748,7 +152508,7 @@ var autoInc = [12]VdbeOpList{ /* 9 */ {Fopcode: U8(OP_Next), Fp2: int8(2)}, /* 10 */ {Fopcode: U8(OP_Integer)}, /* 11 */ {Fopcode: U8(OP_Close)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125428:29 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126644:29 */ // Update the maximum rowid for an autoincrement calculation. // @@ -151756,7 +152516,7 @@ var autoInc = [12]VdbeOpList{ // new rowid that is about to be inserted. If that new rowid is // larger than the maximum rowid in the memId memory cell, then the // memory cell is updated. -func autoIncStep(tls *libc.TLS, pParse uintptr, memId int32, regRowid int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125474:13: */ +func autoIncStep(tls *libc.TLS, pParse uintptr, memId int32, regRowid int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126690:13: */ if memId > 0 { Xsqlite3VdbeAddOp2(tls, (*Parse)(unsafe.Pointer(pParse)).FpVdbe, OP_MemMax, memId, regRowid) } @@ -151767,7 +152527,7 @@ func autoIncStep(tls *libc.TLS, pParse uintptr, memId int32, regRowid int32) { / // Every statement that might do an INSERT into an autoincrement // table (either directly or through triggers) needs to call this // routine just before the "exit" code. -func autoIncrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125487:29: */ +func autoIncrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126703:29: */ var p uintptr var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb @@ -151798,16 +152558,16 @@ func autoIncrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalga } } -var iLn2 int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125494:22 */ +var iLn2 int32 = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126710:22 */ var autoIncEnd = [5]VdbeOpList{ /* 0 */ {Fopcode: U8(OP_NotNull), Fp2: int8(2)}, /* 1 */ {Fopcode: U8(OP_NewRowid)}, /* 2 */ {Fopcode: U8(OP_MakeRecord), Fp2: int8(2)}, /* 3 */ {Fopcode: U8(OP_Insert)}, /* 4 */ {Fopcode: U8(OP_Close)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125495:29 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126711:29 */ -func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125524:21: */ +func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126740:21: */ if (*Parse)(unsafe.Pointer(pParse)).FpAinc != 0 { autoIncrementEnd(tls, pParse) } @@ -151815,9 +152575,9 @@ func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlit // This routine is called to handle SQL of the following forms: // -// insert into TABLE (IDLIST) values(EXPRLIST),(EXPRLIST),... -// insert into TABLE (IDLIST) select -// insert into TABLE (IDLIST) default values +// insert into TABLE (IDLIST) values(EXPRLIST),(EXPRLIST),... +// insert into TABLE (IDLIST) select +// insert into TABLE (IDLIST) default values // // The IDLIST following the table name is always optional. If omitted, // then a list of all (non-hidden) columns for the table is substituted. @@ -151835,14 +152595,14 @@ func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlit // once straight down through. Pseudo-code follows (we call this // the "1st template"): // -// open write cursor to <table> and its indices -// put VALUES clause expressions into registers -// write the resulting record into <table> -// cleanup +// open write cursor to <table> and its indices +// put VALUES clause expressions into registers +// write the resulting record into <table> +// cleanup // // The three remaining templates assume the statement is of the form // -// INSERT INTO <table> SELECT ... +// INSERT INTO <table> SELECT ... // // If the SELECT clause is of the restricted form "SELECT * FROM <table2>" - // in other words if the SELECT pulls all columns from a single table @@ -151853,35 +152613,35 @@ func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlit // See the xferOptimization() function for the implementation of this // template. This is the 2nd template. // -// open a write cursor to <table> -// open read cursor on <table2> -// transfer all records in <table2> over to <table> -// close cursors -// foreach index on <table> -// open a write cursor on the <table> index -// open a read cursor on the corresponding <table2> index -// transfer all records from the read to the write cursors -// close cursors -// end foreach +// open a write cursor to <table> +// open read cursor on <table2> +// transfer all records in <table2> over to <table> +// close cursors +// foreach index on <table> +// open a write cursor on the <table> index +// open a read cursor on the corresponding <table2> index +// transfer all records from the read to the write cursors +// close cursors +// end foreach // // The 3rd template is for when the second template does not apply // and the SELECT clause does not read from <table> at any time. // The generated code follows this template: // -// X <- A -// goto B -// A: setup for the SELECT -// loop over the rows in the SELECT -// load values into registers R..R+n -// yield X -// end loop -// cleanup after the SELECT -// end-coroutine X -// B: open write cursor to <table> and its indices -// C: yield X, at EOF goto D -// insert the select result into <table> from R..R+n -// goto C -// D: cleanup +// X <- A +// goto B +// A: setup for the SELECT +// loop over the rows in the SELECT +// load values into registers R..R+n +// yield X +// end loop +// cleanup after the SELECT +// end-coroutine X +// B: open write cursor to <table> and its indices +// C: yield X, at EOF goto D +// insert the select result into <table> from R..R+n +// goto C +// D: cleanup // // The 4th template is used if the insert statement takes its // values from a SELECT but the data is being inserted into a table @@ -151889,26 +152649,26 @@ func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlit // we have to use an intermediate table to store the results of // the select. The template is like this: // -// X <- A -// goto B -// A: setup for the SELECT -// loop over the tables in the SELECT -// load value into register R..R+n -// yield X -// end loop -// cleanup after the SELECT -// end co-routine R -// B: open temp table -// L: yield X, at EOF goto M -// insert row from R..R+n into temp table -// goto L -// M: open write cursor to <table> and its indices -// rewind temp table -// C: loop over rows of intermediate table -// transfer values form intermediate table into <table> -// end loop -// D: cleanup -func Xsqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uintptr, pColumn uintptr, onError int32, pUpsert uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:125643:21: */ +// X <- A +// goto B +// A: setup for the SELECT +// loop over the tables in the SELECT +// load value into register R..R+n +// yield X +// end loop +// cleanup after the SELECT +// end co-routine R +// B: open temp table +// L: yield X, at EOF goto M +// insert row from R..R+n into temp table +// goto L +// M: open write cursor to <table> and its indices +// rewind temp table +// C: loop over rows of intermediate table +// transfer values form intermediate table into <table> +// end loop +// D: cleanup +func Xsqlite3Insert(tls *libc.TLS, pParse uintptr, pTabList uintptr, pSelect uintptr, pColumn uintptr, onError int32, pUpsert uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:126859:21: */ bp := tls.Alloc(188) defer tls.Free(188) @@ -152140,12 +152900,14 @@ __10: if !(pColumn != 0) { goto __11 } + + (*IdList)(unsafe.Pointer(pColumn)).FeU4 = U8(EU4_IDX) i = 0 __12: if !(i < (*IdList)(unsafe.Pointer(pColumn)).FnId) { goto __14 } - (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pColumn)).Fa + uintptr(i)*16)).Fidx = -1 + *(*int32)(unsafe.Pointer(pColumn + 8 + uintptr(i)*16 + 8)) = -1 goto __13 __13: i++ @@ -152163,10 +152925,10 @@ __18: if !(j < int32((*Table)(unsafe.Pointer(pTab)).FnCol)) { goto __20 } - if !(Xsqlite3StrICmp(tls, (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pColumn)).Fa+uintptr(i)*16)).FzName, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName) == 0) { + if !(Xsqlite3StrICmp(tls, (*IdList_item)(unsafe.Pointer(pColumn+8+uintptr(i)*16)).FzName, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName) == 0) { goto __21 } - (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pColumn)).Fa + uintptr(i)*16)).Fidx = j + *(*int32)(unsafe.Pointer(pColumn + 8 + uintptr(i)*16 + 8)) = j if !(i != j) { goto __22 } @@ -152183,7 +152945,7 @@ __23: goto __24 } Xsqlite3ErrorMsg(tls, pParse, - ts+16921, + ts+16951, libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName)) goto insert_cleanup __24: @@ -152201,15 +152963,15 @@ __20: if !(j >= int32((*Table)(unsafe.Pointer(pTab)).FnCol)) { goto __25 } - if !(Xsqlite3IsRowid(tls, (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pColumn)).Fa+uintptr(i)*16)).FzName) != 0 && !(withoutRowid != 0)) { + if !(Xsqlite3IsRowid(tls, (*IdList_item)(unsafe.Pointer(pColumn+8+uintptr(i)*16)).FzName) != 0 && !(withoutRowid != 0)) { goto __26 } ipkColumn = i bIdListInOrder = U8(0) goto __27 __26: - Xsqlite3ErrorMsg(tls, pParse, ts+16962, - libc.VaList(bp+8, pTabList+8, (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pColumn)).Fa+uintptr(i)*16)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+16992, + libc.VaList(bp+8, pTabList+8, (*IdList_item)(unsafe.Pointer(pColumn+8+uintptr(i)*16)).FzName)) (*Parse)(unsafe.Pointer(pParse)).FcheckSchema = U8(1) goto insert_cleanup __27: @@ -152380,7 +153142,7 @@ __42: goto __47 } Xsqlite3ErrorMsg(tls, pParse, - ts+16994, + ts+17024, libc.VaList(bp+24, pTabList+8, int32((*Table)(unsafe.Pointer(pTab)).FnCol)-nHidden, nColumn)) goto insert_cleanup __47: @@ -152390,7 +153152,7 @@ __36: if !(pColumn != uintptr(0) && nColumn != (*IdList)(unsafe.Pointer(pColumn)).FnId) { goto __48 } - Xsqlite3ErrorMsg(tls, pParse, ts+17046, libc.VaList(bp+48, nColumn, (*IdList)(unsafe.Pointer(pColumn)).FnId)) + Xsqlite3ErrorMsg(tls, pParse, ts+17076, libc.VaList(bp+48, nColumn, (*IdList)(unsafe.Pointer(pColumn)).FnId)) goto insert_cleanup __48: ; @@ -152446,7 +153208,7 @@ __50: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { goto __56 } - Xsqlite3ErrorMsg(tls, pParse, ts+17071, + Xsqlite3ErrorMsg(tls, pParse, ts+17101, libc.VaList(bp+64, (*Table)(unsafe.Pointer(pTab)).FzName)) goto insert_cleanup __56: @@ -152454,7 +153216,7 @@ __56: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) { goto __57 } - Xsqlite3ErrorMsg(tls, pParse, ts+17117, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+17147, 0) goto insert_cleanup __57: ; @@ -152612,9 +153374,10 @@ __72: if !(pColumn != 0) { goto __79 } + j = 0 __81: - if !(j < (*IdList)(unsafe.Pointer(pColumn)).FnId && (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pColumn)).Fa+uintptr(j)*16)).Fidx != i) { + if !(j < (*IdList)(unsafe.Pointer(pColumn)).FnId && *(*int32)(unsafe.Pointer(pColumn + 8 + uintptr(j)*16 + 8)) != i) { goto __83 } goto __82 @@ -152851,7 +153614,7 @@ __114: } pVTab = Xsqlite3GetVTable(tls, db, pTab) Xsqlite3VtabMakeWritable(tls, pParse, pTab) - Xsqlite3VdbeAddOp4(tls, v, OP_VUpdate, 1, int32((*Table)(unsafe.Pointer(pTab)).FnCol)+2, regIns, pVTab, -12) + Xsqlite3VdbeAddOp4(tls, v, OP_VUpdate, 1, int32((*Table)(unsafe.Pointer(pTab)).FnCol)+2, regIns, pVTab, -11) Xsqlite3VdbeChangeP5(tls, v, func() uint16 { if onError == OE_Default { return uint16(OE_Abort) @@ -152938,7 +153701,7 @@ __122: if !(regRowCount != 0) { goto __123 } - Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+17138) + Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+17168) __123: ; @@ -152959,10 +153722,12 @@ insert_cleanup: // sqlite3ExprReferencesUpdatedColumn() // This is the Walker callback from sqlite3ExprReferencesUpdatedColumn(). -// Set bit 0x01 of pWalker->eCode if pWalker->eCode to 0 and if this +// +// Set bit 0x01 of pWalker->eCode if pWalker->eCode to 0 and if this +// // expression node references any of the // columns that are being modifed by an UPDATE statement. -func checkConstraintExprNode(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126402:12: */ +func checkConstraintExprNode(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:127629:12: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN { if int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) >= 0 { @@ -152989,7 +153754,7 @@ func checkConstraintExprNode(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int3 // The operation of this routine is the same - return true if an only if // the expression uses one or more of columns identified by the second and // third arguments. -func Xsqlite3ExprReferencesUpdatedColumn(tls *libc.TLS, pExpr uintptr, aiChng uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126431:20: */ +func Xsqlite3ExprReferencesUpdatedColumn(tls *libc.TLS, pExpr uintptr, aiChng uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:127658:20: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -153023,7 +153788,7 @@ type IndexListTerm1 = struct { Fp uintptr Fix int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126464:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:127691:9 */ // The sqlite3GenerateConstraintChecks() routine usually wants to visit // the indexes of a table in the order provided in the Table->pIndex list. @@ -153034,7 +153799,7 @@ type IndexListTerm1 = struct { // The IndexIterator object is used to walk through all of the indexes // of a table in either Index.pNext order, or in some other order established // by an array of IndexListTerm objects. -type IndexListTerm = IndexListTerm1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126464:30 */ +type IndexListTerm = IndexListTerm1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:127691:30 */ type IndexIterator1 = struct { FeType int32 Fi int32 @@ -153042,12 +153807,12 @@ type IndexIterator1 = struct { Flx struct{ FpIdx uintptr } F__ccgo_pad1 [8]byte } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126465:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:127692:9 */ -type IndexIterator = IndexIterator1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126465:30 */ +type IndexIterator = IndexIterator1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:127692:30 */ // Return the first index on the list -func indexIteratorFirst(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126489:14: */ +func indexIteratorFirst(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:127716:14: */ if (*IndexIterator)(unsafe.Pointer(pIter)).FeType != 0 { *(*int32)(unsafe.Pointer(pIx)) = (*IndexListTerm)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pIter + 8 + 8 /* &.aIdx */)))).Fix @@ -153060,7 +153825,7 @@ func indexIteratorFirst(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* } // Return the next index from the list. Return NULL when out of indexes -func indexIteratorNext(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126501:14: */ +func indexIteratorNext(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:127728:14: */ if (*IndexIterator)(unsafe.Pointer(pIter)).FeType != 0 { var i int32 = libc.PreIncInt32(&(*IndexIterator)(unsafe.Pointer(pIter)).Fi, 1) if i >= *(*int32)(unsafe.Pointer(pIter + 8)) { @@ -153132,41 +153897,41 @@ func indexIteratorNext(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* t // then the appropriate action is performed. There are five possible // actions: ROLLBACK, ABORT, FAIL, REPLACE, and IGNORE. // -// Constraint type Action What Happens -// --------------- ---------- ---------------------------------------- -// any ROLLBACK The current transaction is rolled back and -// sqlite3_step() returns immediately with a -// return code of SQLITE_CONSTRAINT. +// Constraint type Action What Happens +// --------------- ---------- ---------------------------------------- +// any ROLLBACK The current transaction is rolled back and +// sqlite3_step() returns immediately with a +// return code of SQLITE_CONSTRAINT. // -// any ABORT Back out changes from the current command -// only (do not do a complete rollback) then -// cause sqlite3_step() to return immediately -// with SQLITE_CONSTRAINT. +// any ABORT Back out changes from the current command +// only (do not do a complete rollback) then +// cause sqlite3_step() to return immediately +// with SQLITE_CONSTRAINT. // -// any FAIL Sqlite3_step() returns immediately with a -// return code of SQLITE_CONSTRAINT. The -// transaction is not rolled back and any -// changes to prior rows are retained. +// any FAIL Sqlite3_step() returns immediately with a +// return code of SQLITE_CONSTRAINT. The +// transaction is not rolled back and any +// changes to prior rows are retained. // -// any IGNORE The attempt in insert or update the current -// row is skipped, without throwing an error. -// Processing continues with the next row. -// (There is an immediate jump to ignoreDest.) +// any IGNORE The attempt in insert or update the current +// row is skipped, without throwing an error. +// Processing continues with the next row. +// (There is an immediate jump to ignoreDest.) // -// NOT NULL REPLACE The NULL value is replace by the default -// value for that column. If the default value -// is NULL, the action is the same as ABORT. +// NOT NULL REPLACE The NULL value is replace by the default +// value for that column. If the default value +// is NULL, the action is the same as ABORT. // -// UNIQUE REPLACE The other row that conflicts with the row -// being inserted is removed. +// UNIQUE REPLACE The other row that conflicts with the row +// being inserted is removed. // -// CHECK REPLACE Illegal. The results in an exception. +// CHECK REPLACE Illegal. The results in an exception. // // Which action to take is determined by the overrideError parameter. // Or if overrideError==OE_Default, then the pParse->onError parameter // is used. Or if pParse->onError==OE_Default then the onError value // for the constraint is used. -func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintptr, aRegIdx uintptr, iDataCur int32, iIdxCur int32, regNewData int32, regOldData int32, pkChng U8, overrideError U8, ignoreDest int32, pbMayReplace uintptr, aiChng uintptr, pUpsert uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:126608:21: */ +func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintptr, aRegIdx uintptr, iDataCur int32, iIdxCur int32, regNewData int32, regOldData int32, pkChng U8, overrideError U8, ignoreDest int32, pbMayReplace uintptr, aiChng uintptr, pUpsert uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:127835:21: */ bp := tls.Alloc(72) defer tls.Free(72) @@ -153283,11 +154048,11 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt fallthrough case OE_Fail: { - var zMsg uintptr = Xsqlite3MPrintf(tls, db, ts+13298, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, + var zMsg uintptr = Xsqlite3MPrintf(tls, db, ts+13337, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName)) Xsqlite3VdbeAddOp3(tls, v, OP_HaltIfNull, SQLITE_CONSTRAINT|int32(5)<<8, onError, iReg) - Xsqlite3VdbeAppendP4(tls, v, zMsg, -7) + Xsqlite3VdbeAppendP4(tls, v, zMsg, -6) Xsqlite3VdbeChangeP5(tls, v, uint16(P5_ConstraintNotNull)) break @@ -153652,7 +154417,7 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt // OP_Insert replace the existing entry than it is to delete the // existing entry and then insert a new one. Xsqlite3VdbeAddOp2(tls, v, OP_Delete, iDataCur, OPFLAG_ISNOOP) - Xsqlite3VdbeAppendP4(tls, v, pTab, -6) + Xsqlite3VdbeAppendP4(tls, v, pTab, -5) if (*Table)(unsafe.Pointer(pTab)).FpIndex != 0 { Xsqlite3MultiWrite(tls, pParse) Xsqlite3GenerateRowIndexDelete(tls, pParse, pTab, iDataCur, iIdxCur, uintptr(0), -1) @@ -153826,7 +154591,7 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt if isUpdate != 0 { // If currently processing the PRIMARY KEY of a WITHOUT ROWID // table, only conflict if the new PRIMARY KEY values are actually - // different from the old. + // different from the old. See TH3 withoutrowid04.test. // // For a UNIQUE index, only conflict if the PRIMARY KEY values // of the matched index row are different from the original PRIMARY @@ -154024,12 +154789,12 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt // number is iCur, and register regData contains the new record for the // PK index. This function adds code to invoke the pre-update hook, // if one is registered. -func codeWithoutRowidPreupdate(tls *libc.TLS, pParse uintptr, pTab uintptr, iCur int32, regData int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:127466:13: */ +func codeWithoutRowidPreupdate(tls *libc.TLS, pParse uintptr, pTab uintptr, iCur int32, regData int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:128693:13: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var r int32 = Xsqlite3GetTempReg(tls, pParse) Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, r) - Xsqlite3VdbeAddOp4(tls, v, OP_Insert, iCur, regData, r, pTab, -6) + Xsqlite3VdbeAddOp4(tls, v, OP_Insert, iCur, regData, r, pTab, -5) Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_ISNOOP)) Xsqlite3ReleaseTempReg(tls, pParse, r) } @@ -154041,7 +154806,7 @@ func codeWithoutRowidPreupdate(tls *libc.TLS, pParse uintptr, pTab uintptr, iCur // // The arguments to this routine should be the same as the first six // arguments to sqlite3GenerateConstraintChecks. -func Xsqlite3CompleteInsertion(tls *libc.TLS, pParse uintptr, pTab uintptr, iDataCur int32, iIdxCur int32, regNewData int32, aRegIdx uintptr, update_flags int32, appendBias int32, useSeekResult int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:127494:21: */ +func Xsqlite3CompleteInsertion(tls *libc.TLS, pParse uintptr, pTab uintptr, iDataCur int32, iIdxCur int32, regNewData int32, aRegIdx uintptr, update_flags int32, appendBias int32, useSeekResult int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:128721:21: */ var v uintptr // Prepared statements under construction var pIdx uintptr // An index being inserted or updated var pik_flags U8 // flag values passed to the btree insert @@ -154120,7 +154885,7 @@ __3: } Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iDataCur, *(*int32)(unsafe.Pointer(aRegIdx + uintptr(i)*4)), regNewData) if !(int32((*Parse)(unsafe.Pointer(pParse)).Fnested) != 0) { - Xsqlite3VdbeAppendP4(tls, v, pTab, -6) + Xsqlite3VdbeAppendP4(tls, v, pTab, -5) } Xsqlite3VdbeChangeP5(tls, v, uint16(pik_flags)) } @@ -154144,7 +154909,7 @@ __3: // // If pTab is a virtual table, then this routine is a no-op and the // *piDataCur and *piIdxCur values are left uninitialized. -func Xsqlite3OpenTableAndIndices(tls *libc.TLS, pParse uintptr, pTab uintptr, op int32, p5 U8, iBase int32, aToOpen uintptr, piDataCur uintptr, piIdxCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:127582:20: */ +func Xsqlite3OpenTableAndIndices(tls *libc.TLS, pParse uintptr, pTab uintptr, op int32, p5 U8, iBase int32, aToOpen uintptr, piDataCur uintptr, piIdxCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:128809:20: */ var i int32 var iDb int32 var iDataCur int32 @@ -154217,12 +154982,12 @@ __3: // for index pDest in an insert transfer optimization. The rules // for a compatible index: // -// * The index is over the same set of columns -// * The same DESC and ASC markings occurs on all columns -// * The same onError processing (OE_Abort, OE_Ignore, etc) -// * The same collating sequence on each column -// * The index has the exact same WHERE clause -func xferCompatibleIndex(tls *libc.TLS, pDest uintptr, pSrc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:127661:12: */ +// - The index is over the same set of columns +// - The same DESC and ASC markings occurs on all columns +// - The same onError processing (OE_Abort, OE_Ignore, etc) +// - The same collating sequence on each column +// - The index has the exact same WHERE clause +func xferCompatibleIndex(tls *libc.TLS, pDest uintptr, pSrc uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:128888:12: */ var i int32 if int32((*Index)(unsafe.Pointer(pDest)).FnKeyCol) != int32((*Index)(unsafe.Pointer(pSrc)).FnKeyCol) || int32((*Index)(unsafe.Pointer(pDest)).FnColumn) != int32((*Index)(unsafe.Pointer(pSrc)).FnColumn) { @@ -154259,7 +155024,7 @@ func xferCompatibleIndex(tls *libc.TLS, pDest uintptr, pSrc uintptr) int32 { /* // Attempt the transfer optimization on INSERTs of the form // -// INSERT INTO tab1 SELECT * FROM tab2; +// INSERT INTO tab1 SELECT * FROM tab2; // // The xfer optimization transfers raw records from tab2 over to tab1. // Columns are not decoded and reassembled, which greatly improves @@ -154280,7 +155045,7 @@ func xferCompatibleIndex(tls *libc.TLS, pDest uintptr, pSrc uintptr) int32 { /* // is no chance that the xfer optimization can be applied. // // This optimization is particularly useful at making VACUUM run faster. -func xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uintptr, onError int32, iDbDest int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:127722:12: */ +func xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uintptr, onError int32, iDbDest int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:128949:12: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pEList uintptr // The result set of the SELECT var pSrc uintptr // The table in the FROM clause of SELECT @@ -154545,7 +155310,7 @@ func xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uint } Xsqlite3VdbeAddOp3(tls, v, OP_Insert, iDest, regData, regRowid) if (*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_Vacuum) == U32(0) { - Xsqlite3VdbeChangeP4(tls, v, -1, pDest, -6) + Xsqlite3VdbeChangeP4(tls, v, -1, pDest, -5) } Xsqlite3VdbeChangeP5(tls, v, uint16(insFlags)) @@ -154660,7 +155425,7 @@ func xferOptimization(tls *libc.TLS, pParse uintptr, pDest uintptr, pSelect uint // the xCallback() function is called. pArg becomes the first // argument to xCallback(). If xCallback=NULL then no callback // is invoked, even for queries. -func Xsqlite3_exec(tls *libc.TLS, db uintptr, zSql uintptr, xCallback Sqlite3_callback, pArg uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:128133:16: */ +func Xsqlite3_exec(tls *libc.TLS, db uintptr, zSql uintptr, xCallback Sqlite3_callback, pArg uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:129360:16: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -154681,7 +155446,7 @@ func Xsqlite3_exec(tls *libc.TLS, db uintptr, zSql uintptr, xCallback Sqlite3_ca if !!(Xsqlite3SafetyCheckOk(tls, db) != 0) { goto __1 } - return Xsqlite3MisuseError(tls, 128146) + return Xsqlite3MisuseError(tls, 129373) __1: ; if !(zSql == uintptr(0)) { @@ -154870,7 +155635,7 @@ __26: // This is the function signature used for all extension entry points. It // is also defined in the file "loadext.c". -type Sqlite3_loadext_entry = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:128627:13 */ +type Sqlite3_loadext_entry = uintptr /* testdata/sqlite-amalgamation-3390200/sqlite3.c:129860:13 */ // The following macros redefine the API routines so that they are // redirected through the global sqlite3_api structure. @@ -155204,7 +155969,11 @@ var sqlite3Apis = Sqlite3_api_routines{ Fvtab_in: 0, Fvtab_in_first: 0, Fvtab_in_next: 0, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129073:35 */ + // Version 3.39.0 and later + Fdeserialize: 0, + Fserialize: 0, + Fdb_name: 0, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:130312:35 */ // True if x is the directory separator character @@ -155218,7 +155987,7 @@ var sqlite3Apis = Sqlite3_api_routines{ // If an error occurs and pzErrMsg is not 0, then fill *pzErrMsg with // error message text. The calling function should free this memory // by calling sqlite3DbFree(db, ). -func sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129457:12: */ +func sqlite3LoadExtension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:130713:12: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -155262,7 +156031,7 @@ __1: if !(pzErrMsg != 0) { goto __3 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+13337, 0) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+13376, 0) __3: ; return SQLITE_ERROR @@ -155272,7 +156041,7 @@ __2: if zProc != 0 { zEntry = zProc } else { - zEntry = ts + 17152 /* "sqlite3_extensio..." */ + zEntry = ts + 17182 /* "sqlite3_extensio..." */ } // tag-20210611-1. Some dlopen() implementations will segfault if given @@ -155292,7 +156061,7 @@ __5: if !(ii < int32(uint64(unsafe.Sizeof(azEndings))/uint64(unsafe.Sizeof(uintptr(0)))) && handle == uintptr(0)) { goto __7 } - zAltFile = Xsqlite3_mprintf(tls, ts+13298, libc.VaList(bp, zFile, azEndings[ii])) + zAltFile = Xsqlite3_mprintf(tls, ts+13337, libc.VaList(bp, zFile, azEndings[ii])) if !(zAltFile == uintptr(0)) { goto __8 } @@ -155338,7 +156107,7 @@ __9: return SQLITE_NOMEM __11: ; - libc.Xmemcpy(tls, zAltEntry, ts+17175, uint64(8)) + libc.Xmemcpy(tls, zAltEntry, ts+17205, uint64(8)) iFile = ncFile - 1 __12: if !(iFile >= 0 && !(int32(*(*int8)(unsafe.Pointer(zFile + uintptr(iFile)))) == '/' || int32(*(*int8)(unsafe.Pointer(zFile + uintptr(iFile)))) == '\\')) { @@ -155352,7 +156121,7 @@ __13: __14: ; iFile++ - if !(Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), ts+17184, 3) == 0) { + if !(Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), ts+17214, 3) == 0) { goto __15 } iFile = iFile + 3 @@ -155376,7 +156145,7 @@ __17: goto __18 __18: ; - libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), ts+17188, uint64(6)) + libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), ts+17218, uint64(6)) zEntry = zAltEntry xInit = Xsqlite3OsDlSym(tls, pVfs, handle, zEntry) __10: @@ -155394,7 +156163,7 @@ __10: } // zErrmsg would be NULL if not so Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)), - ts+17194, libc.VaList(bp+16, zEntry, zFile)) + ts+17224, libc.VaList(bp+16, zEntry, zFile)) Xsqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))) __22: ; @@ -155421,7 +156190,7 @@ __24: if !(pzErrMsg != 0) { goto __25 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+17237, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+17267, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))) __25: ; Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))) @@ -155461,7 +156230,7 @@ extension_not_found: } // zErrmsg would be NULL if not so Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)), - ts+17269, libc.VaList(bp+40, FILENAME_MAX, zFile)) + ts+17299, libc.VaList(bp+40, FILENAME_MAX, zFile)) Xsqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))) __29: ; @@ -155471,10 +156240,10 @@ __28: } var azEndings = [1]uintptr{ - ts + 17306, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129475:21 */ + ts + 17336, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:130731:21 */ -func Xsqlite3_load_extension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129608:16: */ +func Xsqlite3_load_extension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:130864:16: */ var rc int32 Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) rc = sqlite3LoadExtension(tls, db, zFile, zProc, pzErrMsg) @@ -155485,7 +156254,7 @@ func Xsqlite3_load_extension(tls *libc.TLS, db uintptr, zFile uintptr, zProc uin // Call this routine when the database connection is closing in order // to clean up loaded extensions -func Xsqlite3CloseExtensions(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129626:21: */ +func Xsqlite3CloseExtensions(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:130882:21: */ var i int32 for i = 0; i < (*Sqlite3)(unsafe.Pointer(db)).FnExtension; i++ { @@ -155496,7 +156265,7 @@ func Xsqlite3CloseExtensions(tls *libc.TLS, db uintptr) { /* testdata/sqlite-ama // Enable or disable extension loading. Extension loading is disabled by // default so as not to open security holes in older applications. -func Xsqlite3_enable_load_extension(tls *libc.TLS, db uintptr, onoff int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129639:16: */ +func Xsqlite3_enable_load_extension(tls *libc.TLS, db uintptr, onoff int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:130895:16: */ Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) if onoff != 0 { *(*U64)(unsafe.Pointer(db + 48)) |= uint64(SQLITE_LoadExtension | SQLITE_LoadExtFunc) @@ -155516,15 +156285,15 @@ type sqlite3AutoExtList = struct { FnExt U32 F__ccgo_pad1 [4]byte FaExt uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129659:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:130915:9 */ // The following object holds the list of automatically loaded // extensions. // // This list is shared across threads. The SQLITE_MUTEX_STATIC_MAIN // mutex must be held while accessing this list. -type Sqlite3AutoExtList = sqlite3AutoExtList /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129659:35 */ -var sqlite3Autoext = sqlite3AutoExtList{} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129663:3 */ +type Sqlite3AutoExtList = sqlite3AutoExtList /* testdata/sqlite-amalgamation-3390200/sqlite3.c:130915:35 */ +var sqlite3Autoext = sqlite3AutoExtList{} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:130919:3 */ // The "wsdAutoext" macro will resolve to the autoextension // state vector. If writable static data is unsupported on the target, @@ -155534,7 +156303,7 @@ var sqlite3Autoext = sqlite3AutoExtList{} /* testdata/sqlite-amalgamation-338 // Register a statically linked extension that is automatically // loaded by every new database connection. -func Xsqlite3_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129685:16: */ +func Xsqlite3_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:130941:16: */ var rc int32 = SQLITE_OK rc = Xsqlite3_initialize(tls) if rc != 0 { @@ -155575,7 +156344,7 @@ func Xsqlite3_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* testdata/s // // Return 1 if xInit was found on the list and removed. Return 0 if xInit // was not on the list. -func Xsqlite3_cancel_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129732:16: */ +func Xsqlite3_cancel_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:130988:16: */ var mutex uintptr = Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN) var i int32 var n int32 = 0 @@ -155594,7 +156363,7 @@ func Xsqlite3_cancel_auto_extension(tls *libc.TLS, xInit uintptr) int32 { /* tes } // Reset the automatic extension loading mechanism. -func Xsqlite3_reset_auto_extension(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129757:17: */ +func Xsqlite3_reset_auto_extension(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131013:17: */ if Xsqlite3_initialize(tls) == SQLITE_OK { var mutex uintptr = Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN) @@ -155609,7 +156378,7 @@ func Xsqlite3_reset_auto_extension(tls *libc.TLS) { /* testdata/sqlite-amalgamat // Load all automatic extensions. // // If anything goes wrong, set an error in the database connection. -func Xsqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129779:21: */ +func Xsqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131035:21: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -155640,7 +156409,7 @@ func Xsqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) { /* testdata/sqlite- f func(*libc.TLS, uintptr, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{xInit})).f(tls, db, bp+8, pThunk)) != 0 { Xsqlite3ErrorWithMsg(tls, db, rc, - ts+17310, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */)))) + ts+17340, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */)))) go1 = 0 } Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */))) @@ -155685,68 +156454,68 @@ func Xsqlite3AutoLoadExtensions(tls *libc.TLS, db uintptr) { /* testdata/sqlite- // or that return single-column results where the name of the // result column is different from the name of the pragma var pragCName = [57]uintptr{ - ts + 6360, - ts + 17349, - ts + 10113, - ts + 17353, - ts + 17358, - ts + 17361, - ts + 17371, - ts + 17381, - ts + 17387, + ts + 6395, + ts + 17379, + ts + 10152, + ts + 17383, + ts + 17388, ts + 17391, - ts + 17396, ts + 17401, - ts + 17409, - ts + 17420, - ts + 17423, - - ts + 17430, - ts + 17391, - ts + 17396, - ts + 17437, - ts + 17442, - ts + 17445, - ts + 17452, - ts + 17387, - ts + 17391, - ts + 17458, - ts + 17463, - ts + 17468, - ts + 17391, + ts + 17411, + ts + 17417, + ts + 17421, + ts + 17426, + ts + 17431, + ts + 17439, + ts + 17450, + ts + 17453, + + ts + 17460, + ts + 17421, + ts + 17426, + ts + 17467, ts + 17472, - ts + 17396, - ts + 17480, - ts + 17484, - ts + 17489, - ts + 12729, - ts + 12725, - ts + 17495, - ts + 17500, - ts + 17505, - ts + 17349, - ts + 17391, + ts + 17475, + ts + 17482, + ts + 17417, + ts + 17421, + ts + 17488, + ts + 17493, + ts + 17498, + ts + 17421, + ts + 17502, + ts + 17426, ts + 17510, - ts + 17517, - ts + 17524, - ts + 10113, - ts + 17532, - ts + 6363, - ts + 17538, - - ts + 17349, - ts + 17391, - ts + 17543, - ts + 17548, - ts + 16744, - ts + 17553, - - ts + 17566, - ts + 17575, - ts + 17582, - - ts + 17593, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129920:19 */ + ts + 17514, + ts + 17519, + ts + 12768, + ts + 12764, + ts + 17525, + ts + 17530, + ts + 17535, + ts + 17379, + ts + 17421, + ts + 17540, + ts + 17547, + ts + 17554, + ts + 10152, + ts + 17562, + ts + 6398, + ts + 17568, + + ts + 17379, + ts + 17421, + ts + 17573, + ts + 17578, + ts + 16774, + ts + 17583, + + ts + 17596, + ts + 17605, + ts + 17612, + + ts + 17623, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131176:19 */ // Definitions of all built-in pragmas type PragmaName1 = struct { @@ -155757,250 +156526,250 @@ type PragmaName1 = struct { FnPragCName U8 F__ccgo_pad1 [4]byte FiArg U64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129985:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131241:9 */ // Definitions of all built-in pragmas -type PragmaName = PragmaName1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129992:3 */ +type PragmaName = PragmaName1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131248:3 */ var aPragmaName = [67]PragmaName{ - { /* zName: */ FzName: ts + 17601, + { /* zName: */ FzName: ts + 17631, /* ePragTyp: */ FePragTyp: U8(PragTyp_ANALYSIS_LIMIT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 17616, + { /* zName: */ FzName: ts + 17646, /* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0), /* iArg: */ FiArg: uint64(BTREE_APPLICATION_ID)}, - { /* zName: */ FzName: ts + 17631, + { /* zName: */ FzName: ts + 17661, /* ePragTyp: */ FePragTyp: U8(PragTyp_AUTO_VACUUM), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 17643, + { /* zName: */ FzName: ts + 17673, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_AutoIndex)}, - { /* zName: */ FzName: ts + 17659, + { /* zName: */ FzName: ts + 17689, /* ePragTyp: */ FePragTyp: U8(PragTyp_BUSY_TIMEOUT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0), /* ColNames: */ FiPragCName: U8(56), FnPragCName: U8(1)}, - { /* zName: */ FzName: ts + 17582, + { /* zName: */ FzName: ts + 17612, /* ePragTyp: */ FePragTyp: U8(PragTyp_CACHE_SIZE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 17672, + { /* zName: */ FzName: ts + 17702, /* ePragTyp: */ FePragTyp: U8(PragTyp_CACHE_SPILL), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 17684, + { /* zName: */ FzName: ts + 17714, /* ePragTyp: */ FePragTyp: U8(PragTyp_CASE_SENSITIVE_LIKE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns)}, - { /* zName: */ FzName: ts + 17704, + { /* zName: */ FzName: ts + 17734, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_CellSizeCk)}, - { /* zName: */ FzName: ts + 17720, + { /* zName: */ FzName: ts + 17750, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_CkptFullFSync)}, - { /* zName: */ FzName: ts + 17741, + { /* zName: */ FzName: ts + 17771, /* ePragTyp: */ FePragTyp: U8(PragTyp_COLLATION_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0), /* ColNames: */ FiPragCName: U8(38), FnPragCName: U8(2)}, - { /* zName: */ FzName: ts + 17756, + { /* zName: */ FzName: ts + 17786, /* ePragTyp: */ FePragTyp: U8(PragTyp_COMPILE_OPTIONS), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 17772, + { /* zName: */ FzName: ts + 17802, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: U64(uint64(0x00001)) << 32}, - { /* zName: */ FzName: ts + 17786, + { /* zName: */ FzName: ts + 17816, /* ePragTyp: */ FePragTyp: U8(PragTyp_DATA_STORE_DIRECTORY), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 17807, + { /* zName: */ FzName: ts + 17837, /* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_ReadOnly | PragFlg_Result0), /* iArg: */ FiArg: uint64(BTREE_DATA_VERSION)}, - { /* zName: */ FzName: ts + 17820, + { /* zName: */ FzName: ts + 17850, /* ePragTyp: */ FePragTyp: U8(PragTyp_DATABASE_LIST), - /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0), + /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0), /* ColNames: */ FiPragCName: U8(47), FnPragCName: U8(3)}, - { /* zName: */ FzName: ts + 17834, + { /* zName: */ FzName: ts + 17864, /* ePragTyp: */ FePragTyp: U8(PragTyp_DEFAULT_CACHE_SIZE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1), /* ColNames: */ FiPragCName: U8(55), FnPragCName: U8(1)}, - { /* zName: */ FzName: ts + 17853, + { /* zName: */ FzName: ts + 17883, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_DeferFKs)}, - { /* zName: */ FzName: ts + 17872, + { /* zName: */ FzName: ts + 17902, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_NullCallback)}, - { /* zName: */ FzName: ts + 17895, + { /* zName: */ FzName: ts + 17925, /* ePragTyp: */ FePragTyp: U8(PragTyp_ENCODING), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 17904, + { /* zName: */ FzName: ts + 17934, /* ePragTyp: */ FePragTyp: U8(PragTyp_FOREIGN_KEY_CHECK), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_Result1 | PragFlg_SchemaOpt), /* ColNames: */ FiPragCName: U8(43), FnPragCName: U8(4)}, - { /* zName: */ FzName: ts + 17922, + { /* zName: */ FzName: ts + 17952, /* ePragTyp: */ FePragTyp: U8(PragTyp_FOREIGN_KEY_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt), FnPragCName: U8(8)}, - { /* zName: */ FzName: ts + 17939, + { /* zName: */ FzName: ts + 17969, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_ForeignKeys)}, - { /* zName: */ FzName: ts + 17952, + { /* zName: */ FzName: ts + 17982, /* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_ReadOnly | PragFlg_Result0)}, - { /* zName: */ FzName: ts + 17967, + { /* zName: */ FzName: ts + 17997, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_FullColNames)}, - { /* zName: */ FzName: ts + 17985, + { /* zName: */ FzName: ts + 18015, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_FullFSync)}, - { /* zName: */ FzName: ts + 17995, + { /* zName: */ FzName: ts + 18025, /* ePragTyp: */ FePragTyp: U8(PragTyp_FUNCTION_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0), /* ColNames: */ FiPragCName: U8(27), FnPragCName: U8(6)}, - { /* zName: */ FzName: ts + 18009, + { /* zName: */ FzName: ts + 18039, /* ePragTyp: */ FePragTyp: U8(PragTyp_HARD_HEAP_LIMIT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 18025, + { /* zName: */ FzName: ts + 18055, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_IgnoreChecks)}, - { /* zName: */ FzName: ts + 18050, + { /* zName: */ FzName: ts + 18080, /* ePragTyp: */ FePragTyp: U8(PragTyp_INCREMENTAL_VACUUM), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_NoColumns)}, - { /* zName: */ FzName: ts + 18069, + { /* zName: */ FzName: ts + 18099, /* ePragTyp: */ FePragTyp: U8(PragTyp_INDEX_INFO), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt), /* ColNames: */ FiPragCName: U8(21), FnPragCName: U8(3)}, - { /* zName: */ FzName: ts + 18080, + { /* zName: */ FzName: ts + 18110, /* ePragTyp: */ FePragTyp: U8(PragTyp_INDEX_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt), /* ColNames: */ FiPragCName: U8(38), FnPragCName: U8(5)}, - { /* zName: */ FzName: ts + 18091, + { /* zName: */ FzName: ts + 18121, /* ePragTyp: */ FePragTyp: U8(PragTyp_INDEX_INFO), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt), /* ColNames: */ FiPragCName: U8(21), FnPragCName: U8(6), /* iArg: */ FiArg: uint64(1)}, - { /* zName: */ FzName: ts + 18103, + { /* zName: */ FzName: ts + 18133, /* ePragTyp: */ FePragTyp: U8(PragTyp_INTEGRITY_CHECK), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_Result1 | PragFlg_SchemaOpt)}, - { /* zName: */ FzName: ts + 18119, + { /* zName: */ FzName: ts + 18149, /* ePragTyp: */ FePragTyp: U8(PragTyp_JOURNAL_MODE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)}, - { /* zName: */ FzName: ts + 18132, + { /* zName: */ FzName: ts + 18162, /* ePragTyp: */ FePragTyp: U8(PragTyp_JOURNAL_SIZE_LIMIT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq)}, - { /* zName: */ FzName: ts + 18151, + { /* zName: */ FzName: ts + 18181, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_LegacyAlter)}, - { /* zName: */ FzName: ts + 18170, + { /* zName: */ FzName: ts + 18200, /* ePragTyp: */ FePragTyp: U8(PragTyp_LOCKING_MODE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq)}, - { /* zName: */ FzName: ts + 18183, + { /* zName: */ FzName: ts + 18213, /* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_COUNT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)}, - { /* zName: */ FzName: ts + 18198, + { /* zName: */ FzName: ts + 18228, /* ePragTyp: */ FePragTyp: U8(PragTyp_MMAP_SIZE)}, - { /* zName: */ FzName: ts + 18208, + { /* zName: */ FzName: ts + 18238, /* ePragTyp: */ FePragTyp: U8(PragTyp_MODULE_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0), /* ColNames: */ FiPragCName: U8(9), FnPragCName: U8(1)}, - { /* zName: */ FzName: ts + 18220, + { /* zName: */ FzName: ts + 18250, /* ePragTyp: */ FePragTyp: U8(PragTyp_OPTIMIZE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result1 | PragFlg_NeedSchema)}, - { /* zName: */ FzName: ts + 18229, + { /* zName: */ FzName: ts + 18259, /* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_COUNT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)}, - { /* zName: */ FzName: ts + 18240, + { /* zName: */ FzName: ts + 18270, /* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_SIZE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 18250, + { /* zName: */ FzName: ts + 18280, /* ePragTyp: */ FePragTyp: U8(PragTyp_PRAGMA_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0), /* ColNames: */ FiPragCName: U8(9), FnPragCName: U8(1)}, - { /* zName: */ FzName: ts + 18262, + { /* zName: */ FzName: ts + 18292, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_QueryOnly)}, - { /* zName: */ FzName: ts + 18273, + { /* zName: */ FzName: ts + 18303, /* ePragTyp: */ FePragTyp: U8(PragTyp_INTEGRITY_CHECK), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_Result1 | PragFlg_SchemaOpt)}, - { /* zName: */ FzName: ts + 18285, + { /* zName: */ FzName: ts + 18315, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_ReadUncommit)}, - { /* zName: */ FzName: ts + 18302, + { /* zName: */ FzName: ts + 18332, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_RecTriggers)}, - { /* zName: */ FzName: ts + 18321, + { /* zName: */ FzName: ts + 18351, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_ReverseOrder)}, - { /* zName: */ FzName: ts + 18347, + { /* zName: */ FzName: ts + 18377, /* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0), /* iArg: */ FiArg: uint64(BTREE_SCHEMA_VERSION)}, - { /* zName: */ FzName: ts + 18362, + { /* zName: */ FzName: ts + 18392, /* ePragTyp: */ FePragTyp: U8(PragTyp_SECURE_DELETE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 18376, + { /* zName: */ FzName: ts + 18406, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_ShortColNames)}, - { /* zName: */ FzName: ts + 18395, + { /* zName: */ FzName: ts + 18425, /* ePragTyp: */ FePragTyp: U8(PragTyp_SHRINK_MEMORY), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns)}, - { /* zName: */ FzName: ts + 18409, + { /* zName: */ FzName: ts + 18439, /* ePragTyp: */ FePragTyp: U8(PragTyp_SOFT_HEAP_LIMIT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 18425, + { /* zName: */ FzName: ts + 18455, /* ePragTyp: */ FePragTyp: U8(PragTyp_SYNCHRONOUS), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 18437, + { /* zName: */ FzName: ts + 18467, /* ePragTyp: */ FePragTyp: U8(PragTyp_TABLE_INFO), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt), /* ColNames: */ FiPragCName: U8(8), FnPragCName: U8(6)}, - { /* zName: */ FzName: ts + 18448, + { /* zName: */ FzName: ts + 18478, /* ePragTyp: */ FePragTyp: U8(PragTyp_TABLE_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1), /* ColNames: */ FiPragCName: U8(15), FnPragCName: U8(6)}, - { /* zName: */ FzName: ts + 18459, + { /* zName: */ FzName: ts + 18489, /* ePragTyp: */ FePragTyp: U8(PragTyp_TABLE_INFO), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt), /* ColNames: */ FiPragCName: U8(8), FnPragCName: U8(7), /* iArg: */ FiArg: uint64(1)}, - { /* zName: */ FzName: ts + 18471, + { /* zName: */ FzName: ts + 18501, /* ePragTyp: */ FePragTyp: U8(PragTyp_TEMP_STORE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 18482, + { /* zName: */ FzName: ts + 18512, /* ePragTyp: */ FePragTyp: U8(PragTyp_TEMP_STORE_DIRECTORY), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 18503, + { /* zName: */ FzName: ts + 18533, /* ePragTyp: */ FePragTyp: U8(PragTyp_THREADS), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 18511, + { /* zName: */ FzName: ts + 18541, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_TrustedSchema)}, - { /* zName: */ FzName: ts + 18526, + { /* zName: */ FzName: ts + 18556, /* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0), /* iArg: */ FiArg: uint64(BTREE_USER_VERSION)}, - { /* zName: */ FzName: ts + 18539, + { /* zName: */ FzName: ts + 18569, /* ePragTyp: */ FePragTyp: U8(PragTyp_WAL_AUTOCHECKPOINT)}, - { /* zName: */ FzName: ts + 18558, + { /* zName: */ FzName: ts + 18588, /* ePragTyp: */ FePragTyp: U8(PragTyp_WAL_CHECKPOINT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema), /* ColNames: */ FiPragCName: U8(50), FnPragCName: U8(3)}, - { /* zName: */ FzName: ts + 18573, + { /* zName: */ FzName: ts + 18603, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_WriteSchema | SQLITE_NoSchemaError)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129993:25 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131249:25 */ // Number of pragmas: 68 on by default, 78 total. @@ -156016,7 +156785,7 @@ var aPragmaName = [67]PragmaName{ // should be passed into sqlite3BtreeSetSafetyLevel(). The is done // to support legacy SQL code. The safety level used to be boolean // and older scripts may have used numbers 0 for OFF and 1 for ON. -func getSafetyLevel(tls *libc.TLS, z uintptr, omitFull int32, dflt U8) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130527:11: */ +func getSafetyLevel(tls *libc.TLS, z uintptr, omitFull int32, dflt U8) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131783:11: */ // on no off false yes true extra full var i int32 var n int32 @@ -156033,13 +156802,13 @@ func getSafetyLevel(tls *libc.TLS, z uintptr, omitFull int32, dflt U8) U8 { /* t return dflt } -var zText = *(*[25]int8)(unsafe.Pointer(ts + 18589)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130529:21 */ -var iOffset = [8]U8{U8(0), U8(1), U8(2), U8(4), U8(9), U8(12), U8(15), U8(20)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130530:19 */ -var iLength = [8]U8{U8(2), U8(2), U8(3), U8(5), U8(3), U8(4), U8(5), U8(4)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130531:19 */ -var iValue = [8]U8{U8(1), U8(0), U8(0), U8(0), U8(1), U8(1), U8(3), U8(2)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130532:19 */ +var zText = *(*[25]int8)(unsafe.Pointer(ts + 18619)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131785:21 */ +var iOffset = [8]U8{U8(0), U8(1), U8(2), U8(4), U8(9), U8(12), U8(15), U8(20)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131786:19 */ +var iLength = [8]U8{U8(2), U8(2), U8(3), U8(5), U8(3), U8(4), U8(5), U8(4)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131787:19 */ +var iValue = [8]U8{U8(1), U8(0), U8(0), U8(0), U8(1), U8(1), U8(3), U8(2)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131788:19 */ // Interpret the given string as a boolean value. -func Xsqlite3GetBoolean(tls *libc.TLS, z uintptr, dflt U8) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130552:19: */ +func Xsqlite3GetBoolean(tls *libc.TLS, z uintptr, dflt U8) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131808:19: */ return U8(libc.Bool32(int32(getSafetyLevel(tls, z, 1, dflt)) != 0)) } @@ -156048,12 +156817,12 @@ func Xsqlite3GetBoolean(tls *libc.TLS, z uintptr, dflt U8) U8 { /* testdata/sqli // the rest of the file if PRAGMAs are omitted from the build. // Interpret the given string as a locking mode value. -func getLockingMode(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130565:12: */ +func getLockingMode(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131821:12: */ if z != 0 { - if 0 == Xsqlite3StrICmp(tls, z, ts+4968) { + if 0 == Xsqlite3StrICmp(tls, z, ts+5003) { return PAGER_LOCKINGMODE_EXCLUSIVE } - if 0 == Xsqlite3StrICmp(tls, z, ts+18614) { + if 0 == Xsqlite3StrICmp(tls, z, ts+18644) { return PAGER_LOCKINGMODE_NORMAL } } @@ -156064,15 +156833,15 @@ func getLockingMode(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgam // // The following strings, "none", "full" and "incremental" are // acceptable, as are their numeric equivalents: 0, 1 and 2 respectively. -func getAutoVacuum(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130580:12: */ +func getAutoVacuum(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131836:12: */ var i int32 - if 0 == Xsqlite3StrICmp(tls, z, ts+9257) { + if 0 == Xsqlite3StrICmp(tls, z, ts+9296) { return BTREE_AUTOVACUUM_NONE } - if 0 == Xsqlite3StrICmp(tls, z, ts+18621) { + if 0 == Xsqlite3StrICmp(tls, z, ts+18651) { return BTREE_AUTOVACUUM_FULL } - if 0 == Xsqlite3StrICmp(tls, z, ts+18626) { + if 0 == Xsqlite3StrICmp(tls, z, ts+18656) { return BTREE_AUTOVACUUM_INCR } i = Xsqlite3Atoi(tls, z) @@ -156087,12 +156856,12 @@ func getAutoVacuum(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgama // Interpret the given string as a temp db location. Return 1 for file // backed temporary databases, 2 for the Red-Black tree in memory database // and 0 to use the compile-time default. -func getTempStore(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130596:12: */ +func getTempStore(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131852:12: */ if int32(*(*int8)(unsafe.Pointer(z))) >= '0' && int32(*(*int8)(unsafe.Pointer(z))) <= '2' { return int32(*(*int8)(unsafe.Pointer(z))) - '0' - } else if Xsqlite3StrICmp(tls, z, ts+17543) == 0 { + } else if Xsqlite3StrICmp(tls, z, ts+17573) == 0 { return 1 - } else if Xsqlite3StrICmp(tls, z, ts+18638) == 0 { + } else if Xsqlite3StrICmp(tls, z, ts+18668) == 0 { return 2 } else { return 0 @@ -156102,13 +156871,13 @@ func getTempStore(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamat // Invalidate temp storage, either when the temp storage is changed // from default, or when 'file' and the temp_store_directory has changed -func invalidateTempStorage(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130614:12: */ +func invalidateTempStorage(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131870:12: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb if (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpBt != uintptr(0) { if !(int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) != 0) || Xsqlite3BtreeTxnState(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpBt) != SQLITE_TXN_NONE { Xsqlite3ErrorMsg(tls, pParse, - ts+18645, 0) + ts+18675, 0) return SQLITE_ERROR } Xsqlite3BtreeClose(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpBt) @@ -156121,7 +156890,7 @@ func invalidateTempStorage(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sq // If the TEMP database is open, close it and mark the database schema // as needing reloading. This must be done when using the SQLITE_TEMP_STORE // or DEFAULT_TEMP_STORE pragmas. -func changeTempStorage(tls *libc.TLS, pParse uintptr, zStorageType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130638:12: */ +func changeTempStorage(tls *libc.TLS, pParse uintptr, zStorageType uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131894:12: */ var ts int32 = getTempStore(tls, zStorageType) var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb if int32((*Sqlite3)(unsafe.Pointer(db)).Ftemp_store) == ts { @@ -156135,7 +156904,7 @@ func changeTempStorage(tls *libc.TLS, pParse uintptr, zStorageType uintptr) int3 } // Set result column names for a pragma. -func setPragmaResultColumnNames(tls *libc.TLS, v uintptr, pPragma uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130653:13: */ +func setPragmaResultColumnNames(tls *libc.TLS, v uintptr, pPragma uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131909:13: */ var n U8 = (*PragmaName)(unsafe.Pointer(pPragma)).FnPragCName Xsqlite3VdbeSetNumCols(tls, v, func() int32 { if int32(n) == 0 { @@ -156169,17 +156938,17 @@ func setPragmaResultColumnNames(tls *libc.TLS, v uintptr, pPragma uintptr) { /* } // Generate code to return a single integer value. -func returnSingleInt(tls *libc.TLS, v uintptr, value I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130672:13: */ +func returnSingleInt(tls *libc.TLS, v uintptr, value I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131928:13: */ bp := tls.Alloc(8) defer tls.Free(8) *(*I64)(unsafe.Pointer(bp)) = value - Xsqlite3VdbeAddOp4Dup8(tls, v, OP_Int64, 0, 1, 0, bp, -14) + Xsqlite3VdbeAddOp4Dup8(tls, v, OP_Int64, 0, 1, 0, bp, -13) Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 1, 1) } // Generate code to return a single text value. -func returnSingleText(tls *libc.TLS, v uintptr, zValue uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130680:13: */ +func returnSingleText(tls *libc.TLS, v uintptr, zValue uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131936:13: */ if zValue != 0 { Xsqlite3VdbeLoadString(tls, v, 1, zValue) Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 1, 1) @@ -156188,7 +156957,7 @@ func returnSingleText(tls *libc.TLS, v uintptr, zValue uintptr) { /* testdata/sq // Set the safety_level and pager flags for pager iDb. Or if iDb<0 // set these values for all pagers. -func setAllPagerFlags(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130696:13: */ +func setAllPagerFlags(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131952:13: */ if (*Sqlite3)(unsafe.Pointer(db)).FautoCommit != 0 { var pDb uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaDb var n int32 = (*Sqlite3)(unsafe.Pointer(db)).FnDb @@ -156204,23 +156973,23 @@ func setAllPagerFlags(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamati } // Return a human-readable name for a constraint resolution action. -func actionName(tls *libc.TLS, action U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130724:19: */ +func actionName(tls *libc.TLS, action U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131980:19: */ var zName uintptr switch int32(action) { case OE_SetNull: - zName = ts + 18707 /* "SET NULL" */ + zName = ts + 18737 /* "SET NULL" */ break case OE_SetDflt: - zName = ts + 18716 /* "SET DEFAULT" */ + zName = ts + 18746 /* "SET DEFAULT" */ break case OE_Cascade: - zName = ts + 18728 /* "CASCADE" */ + zName = ts + 18758 /* "CASCADE" */ break case OE_Restrict: - zName = ts + 18736 /* "RESTRICT" */ + zName = ts + 18766 /* "RESTRICT" */ break default: - zName = ts + 18745 /* "NO ACTION" */ + zName = ts + 18775 /* "NO ACTION" */ break } return zName @@ -156229,7 +156998,7 @@ func actionName(tls *libc.TLS, action U8) uintptr { /* testdata/sqlite-amalgamat // Parameter eMode must be one of the PAGER_JOURNALMODE_XXX constants // defined in pager.h. This function returns the associated lowercase // journal-mode name. -func Xsqlite3JournalModename(tls *libc.TLS, eMode int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130744:27: */ +func Xsqlite3JournalModename(tls *libc.TLS, eMode int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:132000:27: */ if eMode == int32(uint64(unsafe.Sizeof(azModeName))/uint64(unsafe.Sizeof(uintptr(0)))) { return uintptr(0) @@ -156238,11 +157007,11 @@ func Xsqlite3JournalModename(tls *libc.TLS, eMode int32) uintptr { /* testdata/s } var azModeName = [6]uintptr{ - ts + 18755, ts + 18762, ts + 18770, ts + 18774, ts + 18638, ts + 18783, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130745:15 */ + ts + 18785, ts + 18792, ts + 18800, ts + 18804, ts + 18668, ts + 18813, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:132001:15 */ // Locate a pragma in the aPragmaName[] array. -func pragmaLocate(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130766:25: */ +func pragmaLocate(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:132022:25: */ var upr int32 var lwr int32 var mid int32 = 0 @@ -156269,10 +157038,14 @@ func pragmaLocate(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-ama // Create zero or more entries in the output for the SQL functions // defined by FuncDef p. -func pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, showInternFuncs int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130787:13: */ +func pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, showInternFuncs int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:132043:13: */ bp := tls.Alloc(48) defer tls.Free(48) + var mask U32 = U32(SQLITE_DETERMINISTIC | SQLITE_DIRECTONLY | SQLITE_SUBTYPE | SQLITE_INNOCUOUS | SQLITE_FUNC_INTERNAL) + if showInternFuncs != 0 { + mask = 0xffffffff + } for ; p != 0; p = (*FuncDef)(unsafe.Pointer(p)).FpNext { var zType uintptr @@ -156284,13 +157057,13 @@ func pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, sh continue } if (*FuncDef)(unsafe.Pointer(p)).FxValue != uintptr(0) { - zType = ts + 18787 /* "w" */ + zType = ts + 18817 /* "w" */ } else if (*FuncDef)(unsafe.Pointer(p)).FxFinalize != uintptr(0) { - zType = ts + 18789 /* "a" */ + zType = ts + 18819 /* "a" */ } else { - zType = ts + 8767 /* "s" */ + zType = ts + 8806 /* "s" */ } - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18791, + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18821, libc.VaList(bp, (*FuncDef)(unsafe.Pointer(p)).FzName, isBuiltin, zType, azEnc[(*FuncDef)(unsafe.Pointer(p)).FfuncFlags&U32(SQLITE_FUNC_ENCMASK)], int32((*FuncDef)(unsafe.Pointer(p)).FnArg), @@ -156298,15 +157071,14 @@ func pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, sh } } -var mask U32 = U32(SQLITE_DETERMINISTIC | SQLITE_DIRECTONLY | SQLITE_SUBTYPE | SQLITE_INNOCUOUS | SQLITE_FUNC_INTERNAL) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130795:22 */ -var azEnc = [4]uintptr{uintptr(0), ts + 18798, ts + 18803, ts + 18811 /* "utf16be" */} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130802:23 */ +var azEnc = [4]uintptr{uintptr(0), ts + 18828, ts + 18833, ts + 18841} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:132059:23 */ // Helper subroutine for PRAGMA integrity_check: // // Generate code to output a single-column result row with a value of the // string held in register 3. Decrement the result count in register 1 // and halt if the maximum number of result rows have been issued. -func integrityCheckResultRow(tls *libc.TLS, v uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130839:12: */ +func integrityCheckResultRow(tls *libc.TLS, v uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:132096:12: */ var addr int32 Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, 3, 1) addr = Xsqlite3VdbeAddOp3(tls, v, OP_IfPos, 1, Xsqlite3VdbeCurrentAddr(tls, v)+2, 1) @@ -156319,7 +157091,7 @@ func integrityCheckResultRow(tls *libc.TLS, v uintptr) int32 { /* testdata/sqlit // // Pragmas are of this form: // -// PRAGMA [schema.]id [= value] +// PRAGMA [schema.]id [= value] // // The identifier might also be a string. The value is a string, and // identifier, or a number. If minusFlag is true, then the value is @@ -156328,7 +157100,7 @@ func integrityCheckResultRow(tls *libc.TLS, v uintptr) int32 { /* testdata/sqlit // If the left side is "database.id" then pId1 is the database name // and pId2 is the id. If the left side is just "id" then pId1 is the // id and pId2 is any empty string. -func Xsqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, pValue uintptr, minusFlag int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130863:21: */ +func Xsqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, pValue uintptr, minusFlag int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:132120:21: */ bp := tls.Alloc(624) defer tls.Free(624) @@ -156450,7 +157222,6 @@ func Xsqlite3Pragma(tls *libc.TLS, pParse uintptr, pId1 uintptr, pId2 uintptr, p var k2 uintptr // Loop counter: Next table in schema var x1 int32 // result variable var regResult int32 // 3 registers to hold a result row - var regKey int32 // Register to hold key for checking the FK var regRow int32 // Registers to hold a row from pTab var addrTop int32 // Top of a loop checking foreign keys var addrOk int32 // Jump here if the key is OK @@ -156577,7 +157348,7 @@ __4: if !(minusFlag != 0) { goto __5 } - zRight = Xsqlite3MPrintf(tls, db, ts+18819, libc.VaList(bp, pValue)) + zRight = Xsqlite3MPrintf(tls, db, ts+18849, libc.VaList(bp, pValue)) goto __6 __5: zRight = Xsqlite3NameFromToken(tls, db, pValue) @@ -156632,7 +157403,7 @@ __8: if !(*(*uintptr)(unsafe.Pointer(bp + 456)) != 0) { goto __10 } - Xsqlite3ErrorMsg(tls, pParse, ts+4444, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 456)))) + Xsqlite3ErrorMsg(tls, pParse, ts+4479, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 456)))) Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 456))) __10: ; @@ -157234,7 +158005,7 @@ __18: if !(zRight != 0) { goto __64 } - if !(Xsqlite3_stricmp(tls, zRight, ts+18823) == 0) { + if !(Xsqlite3_stricmp(tls, zRight, ts+18853) == 0) { goto __65 } b = 2 @@ -157323,7 +158094,7 @@ __72: // PRAGMA [schema.]locking_mode // PRAGMA [schema.]locking_mode = (normal|exclusive) __20: - zRet = ts + 18614 /* "normal" */ + zRet = ts + 18644 /* "normal" */ eMode = getLockingMode(tls, zRight) if !((*Token)(unsafe.Pointer(pId2)).Fn == uint32(0) && eMode == -1) { @@ -157364,7 +158135,7 @@ __79: if !(eMode == PAGER_LOCKINGMODE_EXCLUSIVE) { goto __84 } - zRet = ts + 4968 /* "exclusive" */ + zRet = ts + 5003 /* "exclusive" */ __84: ; returnSingleText(tls, v, zRet) @@ -157523,6 +158294,7 @@ __101: // // Do N steps of incremental vacuuming on a database. __24: + *(*int32)(unsafe.Pointer(bp + 504 /* iLimit1 */)) = 0 if !(zRight == uintptr(0) || !(Xsqlite3GetInt32(tls, zRight, bp+504) != 0) || *(*int32)(unsafe.Pointer(bp + 504)) <= 0) { goto __104 } @@ -157729,7 +158501,7 @@ __124: if !(rc != SQLITE_OK || *(*int32)(unsafe.Pointer(bp + 520)) == 0) { goto __127 } - Xsqlite3ErrorMsg(tls, pParse, ts+18828, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+18858, 0) goto pragma_out __127: ; @@ -157747,7 +158519,7 @@ __128: if !(*(*int8)(unsafe.Pointer(zRight)) != 0) { goto __129 } - Xsqlite3_temp_directory = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+16, zRight)) + Xsqlite3_temp_directory = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+16, zRight)) goto __130 __129: Xsqlite3_temp_directory = uintptr(0) @@ -157782,7 +158554,7 @@ __131: if !(rc != SQLITE_OK || *(*int32)(unsafe.Pointer(bp + 524)) == 0) { goto __134 } - Xsqlite3ErrorMsg(tls, pParse, ts+18828, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+18858, 0) goto pragma_out __134: ; @@ -157792,7 +158564,7 @@ __133: if !(*(*int8)(unsafe.Pointer(zRight)) != 0) { goto __135 } - Xsqlite3_data_directory = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+24, zRight)) + Xsqlite3_data_directory = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+24, zRight)) goto __136 __135: Xsqlite3_data_directory = uintptr(0) @@ -157820,7 +158592,7 @@ __137: goto __139 } Xsqlite3ErrorMsg(tls, pParse, - ts+18853, 0) + ts+18883, 0) goto __140 __139: if !(iDb != 1) { @@ -157876,7 +158648,7 @@ __146: __148: ; if !(mask&uint64(SQLITE_WriteSchema) != uint64(0) && - Xsqlite3_stricmp(tls, zRight, ts+18906) == 0) { + Xsqlite3_stricmp(tls, zRight, ts+18936) == 0) { goto __149 } // IMP: R-60817-01178 If the argument is "RESET" then schema @@ -157990,9 +158762,9 @@ __162: Xsqlite3VdbeMultiLoad(tls, v, 1, func() uintptr { if (*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0 { - return ts + 18912 /* "issisii" */ + return ts + 18942 /* "issisii" */ } - return ts + 18920 /* "issisi" */ + return ts + 18950 /* "issisi" */ }(), libc.VaList(bp+32, i-nHidden, (*Column)(unsafe.Pointer(pCol)).FzCnName, @@ -158077,7 +158849,7 @@ __177: if !(int32((*Table)(unsafe.Pointer(pTab1)).FnCol) == 0) { goto __178 } - zSql = Xsqlite3MPrintf(tls, db, ts+18927, libc.VaList(bp+88, (*Table)(unsafe.Pointer(pTab1)).FzName)) + zSql = Xsqlite3MPrintf(tls, db, ts+18957, libc.VaList(bp+88, (*Table)(unsafe.Pointer(pTab1)).FzName)) if !(zSql != 0) { goto __179 } @@ -158124,29 +158896,29 @@ __184: if !(int32((*Table)(unsafe.Pointer(pTab2)).FeTabType) == TABTYP_VIEW) { goto __185 } - zType = ts + 11728 /* "view" */ + zType = ts + 11767 /* "view" */ goto __186 __185: if !(int32((*Table)(unsafe.Pointer(pTab2)).FeTabType) == TABTYP_VTAB) { goto __187 } - zType = ts + 14010 /* "virtual" */ + zType = ts + 14049 /* "virtual" */ goto __188 __187: if !((*Table)(unsafe.Pointer(pTab2)).FtabFlags&U32(TF_Shadow) != 0) { goto __189 } - zType = ts + 18943 /* "shadow" */ + zType = ts + 18973 /* "shadow" */ goto __190 __189: - zType = ts + 10113 /* "table" */ + zType = ts + 10152 /* "table" */ __190: ; __188: ; __186: ; - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18950, + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18980, libc.VaList(bp+96, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii4)*32)).FzDbSName, Xsqlite3PreferredTableName(tls, (*Table)(unsafe.Pointer(pTab2)).FzName), zType, @@ -158216,7 +158988,7 @@ __197: goto __199 } cnum = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(i1)*2)) - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18957, libc.VaList(bp+144, i1, int32(cnum), + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18987, libc.VaList(bp+144, i1, int32(cnum), func() uintptr { if int32(cnum) < 0 { return uintptr(0) @@ -158226,7 +158998,7 @@ __197: if !((*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0) { goto __200 } - Xsqlite3VdbeMultiLoad(tls, v, 4, ts+18962, + Xsqlite3VdbeMultiLoad(tls, v, 4, ts+18992, libc.VaList(bp+168, int32(*(*U8)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaSortOrder + uintptr(i1)))), *(*uintptr)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FazColl + uintptr(i1)*8)), libc.Bool32(i1 < int32((*Index)(unsafe.Pointer(pIdx)).FnKeyCol)))) @@ -158263,8 +159035,8 @@ __203: if !(pIdx1 != 0) { goto __205 } - *(*[3]uintptr)(unsafe.Pointer(bp + 536 /* azOrigin */)) = [3]uintptr{ts + 18967, ts + 18969, ts + 17420} - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18971, + *(*[3]uintptr)(unsafe.Pointer(bp + 536 /* azOrigin */)) = [3]uintptr{ts + 18997, ts + 18999, ts + 17450} + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+19001, libc.VaList(bp+192, i2, (*Index)(unsafe.Pointer(pIdx1)).FzName, libc.Bool32(int32((*Index)(unsafe.Pointer(pIdx1)).FonError) != OE_None), @@ -158298,7 +159070,7 @@ __206: __209: ; - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18977, + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+19007, libc.VaList(bp+232, i3, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i3)*32)).FzDbSName, Xsqlite3BtreeGetFilename(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i3)*32)).FpBt))) @@ -158321,7 +159093,7 @@ __210: goto __212 } pColl = (*HashElem)(unsafe.Pointer(p)).Fdata - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18981, libc.VaList(bp+256, libc.PostIncInt32(&i4, 1), (*CollSeq)(unsafe.Pointer(pColl)).FzName)) + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+19011, libc.VaList(bp+256, libc.PostIncInt32(&i4, 1), (*CollSeq)(unsafe.Pointer(pColl)).FzName)) goto __211 __211: p = (*HashElem)(unsafe.Pointer(p)).Fnext @@ -158387,7 +159159,7 @@ __222: goto __224 } pMod = (*HashElem)(unsafe.Pointer(j1)).Fdata - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+8767, libc.VaList(bp+272, (*Module)(unsafe.Pointer(pMod)).FzName)) + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+8806, libc.VaList(bp+272, (*Module)(unsafe.Pointer(pMod)).FzName)) goto __223 __223: j1 = (*HashElem)(unsafe.Pointer(j1)).Fnext @@ -158404,7 +159176,7 @@ __225: if !(i6 < int32(uint64(unsafe.Sizeof(aPragmaName))/uint64(unsafe.Sizeof(PragmaName{})))) { goto __227 } - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+8767, libc.VaList(bp+280, aPragmaName[i6].FzName)) + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+8806, libc.VaList(bp+280, aPragmaName[i6].FzName)) goto __226 __226: i6++ @@ -158440,7 +159212,7 @@ __233: if !(j2 < (*FKey)(unsafe.Pointer(pFK)).FnCol) { goto __235 } - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+18984, + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+19014, libc.VaList(bp+288, i7, j2, (*FKey)(unsafe.Pointer(pFK)).FzTo, @@ -158448,7 +159220,7 @@ __233: (*sColMap)(unsafe.Pointer(pFK+64+uintptr(j2)*16)).FzCol, actionName(tls, *(*U8)(unsafe.Pointer(pFK + 45 + 1))), // ON UPDATE actionName(tls, *(*U8)(unsafe.Pointer(pFK + 45))), - ts+18993)) + ts+19023)) goto __234 __234: j2++ @@ -158473,7 +159245,6 @@ __43: // child to parent column mapping regResult = (*Parse)(unsafe.Pointer(pParse)).FnMem + 1 *(*int32)(unsafe.Pointer(pParse + 56)) += 4 - regKey = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) regRow = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) k2 = (*Hash)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FpSchema + 8)).Ffirst __236: @@ -158621,9 +159392,9 @@ __259: if !(*(*uintptr)(unsafe.Pointer(bp + 560)) != 0) { goto __260 } - Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regRow, (*FKey)(unsafe.Pointer(pFK1)).FnCol, regKey, + Xsqlite3VdbeAddOp4(tls, v, OP_Affinity, regRow, (*FKey)(unsafe.Pointer(pFK1)).FnCol, 0, Xsqlite3IndexAffinityStr(tls, db, *(*uintptr)(unsafe.Pointer(bp + 560 /* pIdx2 */))), (*FKey)(unsafe.Pointer(pFK1)).FnCol) - Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, i8, addrOk, regKey, 0) + Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, i8, addrOk, regRow, (*FKey)(unsafe.Pointer(pFK1)).FnCol) goto __261 __260: @@ -158649,7 +159420,7 @@ __263: Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regResult+1) __264: ; - Xsqlite3VdbeMultiLoad(tls, v, regResult+2, ts+18998, libc.VaList(bp+352, (*FKey)(unsafe.Pointer(pFK1)).FzTo, i8-1)) + Xsqlite3VdbeMultiLoad(tls, v, regResult+2, ts+19028, libc.VaList(bp+352, (*FKey)(unsafe.Pointer(pFK1)).FzTo, i8-1)) Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, regResult, 4) Xsqlite3VdbeResolveLabel(tls, v, addrOk) Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 568 /* aiCols */))) @@ -158911,12 +159682,12 @@ __291: Xsqlite3ClearTempRegCache(tls, pParse) // Do the b-tree integrity checks - Xsqlite3VdbeAddOp4(tls, v, OP_IntegrityCk, 2, cnt, 1, aRoot, -15) + Xsqlite3VdbeAddOp4(tls, v, OP_IntegrityCk, 2, cnt, 1, aRoot, -14) Xsqlite3VdbeChangeP5(tls, v, uint16(U8(i9))) addr1 = Xsqlite3VdbeAddOp1(tls, v, OP_IsNull, 2) Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, 3, 0, - Xsqlite3MPrintf(tls, db, ts+19002, libc.VaList(bp+368, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i9)*32)).FzDbSName)), - -7) + Xsqlite3MPrintf(tls, db, ts+19032, libc.VaList(bp+368, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i9)*32)).FzDbSName)), + -6) Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 2, 3, 3) integrityCheckResultRow(tls, v) Xsqlite3VdbeJumpHere(tls, v, addr1) @@ -159017,9 +159788,9 @@ __311: goto __312 } jmp2 = Xsqlite3VdbeAddOp1(tls, v, OP_NotNull, 3) - zErr = Xsqlite3MPrintf(tls, db, ts+19026, libc.VaList(bp+376, (*Table)(unsafe.Pointer(pTab9)).FzName, + zErr = Xsqlite3MPrintf(tls, db, ts+19056, libc.VaList(bp+376, (*Table)(unsafe.Pointer(pTab9)).FzName, (*Column)(unsafe.Pointer(pCol1)).FzCnName)) - Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, 3, 0, zErr, -7) + Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, 3, 0, zErr, -6) if !(bStrict != 0 && int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4) != COLTYPE_ANY) { goto __313 } @@ -159039,10 +159810,10 @@ __312: jmp2 = Xsqlite3VdbeAddOp3(tls, v, OP_IsNullOrType, 3, 0, int32(Xsqlite3StdTypeMap[(int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4)-1)&0xf<<28>>28])) - zErr = Xsqlite3MPrintf(tls, db, ts+19046, + zErr = Xsqlite3MPrintf(tls, db, ts+19076, libc.VaList(bp+392, Xsqlite3StdType[(int32(*(*uint8)(unsafe.Pointer(pCol1 + 8))&0xf0>>4)-1)&0xf<<28>>28], (*Table)(unsafe.Pointer(pTab9)).FzName, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab9)).FaCol+uintptr(j4)*24)).FzCnName)) - Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, 3, 0, zErr, -7) + Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, 3, 0, zErr, -6) Xsqlite3VdbeResolveLabel(tls, v, doError) integrityCheckResultRow(tls, v) Xsqlite3VdbeJumpHere(tls, v, jmp2) @@ -159083,9 +159854,9 @@ __320: SQLITE_JUMPIFNULL) Xsqlite3VdbeResolveLabel(tls, v, addrCkFault) (*Parse)(unsafe.Pointer(pParse)).FiSelfTab = 0 - zErr1 = Xsqlite3MPrintf(tls, db, ts+19068, + zErr1 = Xsqlite3MPrintf(tls, db, ts+19098, libc.VaList(bp+416, (*Table)(unsafe.Pointer(pTab9)).FzName)) - Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, 3, 0, zErr1, -7) + Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, 3, 0, zErr1, -6) integrityCheckResultRow(tls, v) Xsqlite3VdbeResolveLabel(tls, v, addrCkOk) __317: @@ -159117,9 +159888,9 @@ __325: // Verify that an index entry exists for the current table row jmp21 = Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, *(*int32)(unsafe.Pointer(bp + 584))+j4, ckUniq, r1, int32((*Index)(unsafe.Pointer(pIdx5)).FnColumn)) - Xsqlite3VdbeLoadString(tls, v, 3, ts+19098) + Xsqlite3VdbeLoadString(tls, v, 3, ts+19128) Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 7, 3, 3) - Xsqlite3VdbeLoadString(tls, v, 4, ts+19103) + Xsqlite3VdbeLoadString(tls, v, 4, ts+19133) Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 4, 3, 3) jmp5 = Xsqlite3VdbeLoadString(tls, v, 4, (*Index)(unsafe.Pointer(pIdx5)).FzName) Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 4, 3, 3) @@ -159159,7 +159930,7 @@ __329: Xsqlite3VdbeJumpHere(tls, v, jmp6) Xsqlite3VdbeAddOp4Int(tls, v, OP_IdxGT, *(*int32)(unsafe.Pointer(bp + 584))+j4, uniqOk, r1, int32((*Index)(unsafe.Pointer(pIdx5)).FnKeyCol)) - Xsqlite3VdbeLoadString(tls, v, 3, ts+19124) + Xsqlite3VdbeLoadString(tls, v, 3, ts+19154) Xsqlite3VdbeGoto(tls, v, jmp5) Xsqlite3VdbeResolveLabel(tls, v, uniqOk) __326: @@ -159181,7 +159952,7 @@ __321: if !!(isQuick != 0) { goto __331 } - Xsqlite3VdbeLoadString(tls, v, 2, ts+19151) + Xsqlite3VdbeLoadString(tls, v, 2, ts+19181) j4 = 0 pIdx5 = (*Table)(unsafe.Pointer(pTab9)).FpIndex __332: @@ -159232,7 +160003,7 @@ __273: } (*VdbeOp)(unsafe.Pointer(aOp2)).Fp2 = 1 - *(*int32)(unsafe.Pointer(bp + 576)) (*VdbeOp)(unsafe.Pointer(aOp2 + 2*24)).Fp4type = int8(-1) - *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = ts + 19180 /* "ok" */ + *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = ts + 19210 /* "ok" */ (*VdbeOp)(unsafe.Pointer(aOp2 + 5*24)).Fp4type = int8(-1) *(*uintptr)(unsafe.Pointer(aOp2 + 5*24 + 16)) = Xsqlite3ErrStr(tls, SQLITE_CORRUPT) __336: @@ -159310,7 +160081,7 @@ __343: if !!(int32((*EncName)(unsafe.Pointer(pEnc)).FzName) != 0) { goto __345 } - Xsqlite3ErrorMsg(tls, pParse, ts+19183, libc.VaList(bp+424, zRight)) + Xsqlite3ErrorMsg(tls, pParse, ts+19213, libc.VaList(bp+424, zRight)) __345: ; __340: @@ -159422,19 +160193,19 @@ __49: if !(zRight != 0) { goto __352 } - if !(Xsqlite3StrICmp(tls, zRight, ts+18621) == 0) { + if !(Xsqlite3StrICmp(tls, zRight, ts+18651) == 0) { goto __353 } eMode2 = SQLITE_CHECKPOINT_FULL goto __354 __353: - if !(Xsqlite3StrICmp(tls, zRight, ts+19208) == 0) { + if !(Xsqlite3StrICmp(tls, zRight, ts+19238) == 0) { goto __355 } eMode2 = SQLITE_CHECKPOINT_RESTART goto __356 __355: - if !(Xsqlite3StrICmp(tls, zRight, ts+18774) == 0) { + if !(Xsqlite3StrICmp(tls, zRight, ts+18804) == 0) { goto __357 } eMode2 = SQLITE_CHECKPOINT_TRUNCATE @@ -159621,17 +160392,17 @@ __372: __374: ; - zSubSql = Xsqlite3MPrintf(tls, db, ts+19216, + zSubSql = Xsqlite3MPrintf(tls, db, ts+19246, libc.VaList(bp+432, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, (*Table)(unsafe.Pointer(pTab10)).FzName)) if !(opMask&U32(0x01) != 0) { goto __375 } r11 = Xsqlite3GetTempReg(tls, pParse) - Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, r11, 0, zSubSql, -7) + Xsqlite3VdbeAddOp4(tls, v, OP_String8, 0, r11, 0, zSubSql, -6) Xsqlite3VdbeAddOp2(tls, v, OP_ResultRow, r11, 1) goto __376 __375: - Xsqlite3VdbeAddOp4(tls, v, OP_SqlExec, 0, 0, 0, zSubSql, -7) + Xsqlite3VdbeAddOp4(tls, v, OP_SqlExec, 0, 0, 0, zSubSql, -6) __376: ; goto __367 @@ -159772,9 +160543,9 @@ type EncName = struct { FzName uintptr Fenc U8 F__ccgo_pad1 [7]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132438:18 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:133693:18 */ -var iLn3 int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130992:22 */ +var iLn3 int32 = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:132249:22 */ var getCacheSize = [9]VdbeOpList{ {Fopcode: U8(OP_Transaction)}, // 0 {Fopcode: U8(OP_ReadCookie), Fp2: int8(1), Fp3: int8(BTREE_DEFAULT_CACHE_SIZE)}, // 1 @@ -159785,16 +160556,16 @@ var getCacheSize = [9]VdbeOpList{ {Fopcode: U8(OP_Integer), Fp2: int8(1)}, // 6 {Fopcode: U8(OP_Noop)}, {Fopcode: U8(OP_ResultRow), Fp1: int8(1), Fp2: int8(1)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130993:29 */ -var iLn4 int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:131261:26 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:132250:29 */ +var iLn4 int32 = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:132518:26 */ var setMeta6 = [5]VdbeOpList{ {Fopcode: U8(OP_Transaction), Fp2: int8(1)}, // 0 {Fopcode: U8(OP_ReadCookie), Fp2: int8(1), Fp3: int8(BTREE_LARGEST_ROOT_PAGE)}, {Fopcode: U8(OP_If), Fp1: int8(1)}, // 2 {Fopcode: U8(OP_Halt), Fp2: int8(OE_Abort)}, // 3 {Fopcode: U8(OP_SetCookie), Fp2: int8(BTREE_INCR_VACUUM)}, // 4 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:131262:33 */ -var iLn5 int32 = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132388:24 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:132519:33 */ +var iLn5 int32 = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:133643:24 */ var endCode = [7]VdbeOpList{ {Fopcode: U8(OP_AddImm), Fp1: int8(1)}, // 0 {Fopcode: U8(OP_IfNotZero), Fp1: int8(1), Fp2: int8(4)}, // 1 @@ -159803,31 +160574,30 @@ var endCode = [7]VdbeOpList{ {Fopcode: U8(OP_Halt)}, // 4 {Fopcode: U8(OP_String8), Fp2: int8(3)}, // 5 {Fopcode: U8(OP_Goto), Fp2: int8(3)}, // 6 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132389:31 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:133644:31 */ var encnames1 = [9]EncName{ - {FzName: ts + 19234, Fenc: U8(SQLITE_UTF8)}, - {FzName: ts + 19239, Fenc: U8(SQLITE_UTF8)}, // Must be element [1] - {FzName: ts + 19245, Fenc: U8(SQLITE_UTF16LE)}, // Must be element [2] - {FzName: ts + 19254, Fenc: U8(SQLITE_UTF16BE)}, // Must be element [3] - {FzName: ts + 19263, Fenc: U8(SQLITE_UTF16LE)}, - {FzName: ts + 19271, Fenc: U8(SQLITE_UTF16BE)}, - {FzName: ts + 19279}, - {FzName: ts + 19286}, + {FzName: ts + 19264, Fenc: U8(SQLITE_UTF8)}, + {FzName: ts + 19269, Fenc: U8(SQLITE_UTF8)}, // Must be element [1] + {FzName: ts + 19275, Fenc: U8(SQLITE_UTF16LE)}, // Must be element [2] + {FzName: ts + 19284, Fenc: U8(SQLITE_UTF16BE)}, // Must be element [3] + {FzName: ts + 19293, Fenc: U8(SQLITE_UTF16LE)}, + {FzName: ts + 19301, Fenc: U8(SQLITE_UTF16BE)}, + {FzName: ts + 19309}, + {FzName: ts + 19316}, {}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132441:7 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:133696:7 */ var setCookie = [2]VdbeOpList{ {Fopcode: U8(OP_Transaction), Fp2: int8(1)}, // 0 {Fopcode: U8(OP_SetCookie)}, // 1 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132521:31 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:133776:31 */ var readCookie = [3]VdbeOpList{ {Fopcode: U8(OP_Transaction)}, // 0 {Fopcode: U8(OP_ReadCookie), Fp2: int8(1)}, // 1 {Fopcode: U8(OP_ResultRow), Fp1: int8(1), Fp2: int8(1)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132536:31 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:133791:31 */ // **************************************************************************** // // Implementation of an eponymous virtual table that runs a pragma. -// type PragmaVtab1 = struct { Fbase Sqlite3_vtab Fdb uintptr @@ -159835,24 +160605,23 @@ type PragmaVtab1 = struct { FnHidden U8 FiHidden U8 F__ccgo_pad1 [6]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132896:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134151:9 */ // **************************************************************************** // // Implementation of an eponymous virtual table that runs a pragma. -// -type PragmaVtab = PragmaVtab1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132896:27 */ +type PragmaVtab = PragmaVtab1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134151:27 */ type PragmaVtabCursor1 = struct { Fbase Sqlite3_vtab_cursor FpPragma uintptr FiRowid Sqlite_int64 FazArg [2]uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132897:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134152:9 */ -type PragmaVtabCursor = PragmaVtabCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132897:33 */ +type PragmaVtabCursor = PragmaVtabCursor1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134152:33 */ // Pragma virtual table module xConnect method. -func pragmaVtabConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132915:12: */ +func pragmaVtabConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134170:12: */ bp := tls.Alloc(264) defer tls.Free(264) @@ -159869,7 +160638,7 @@ func pragmaVtabConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv _ = argc _ = argv Xsqlite3StrAccumInit(tls, bp+32, uintptr(0), bp+64, int32(unsafe.Sizeof([200]int8{})), 0) - Xsqlite3_str_appendall(tls, bp+32, ts+19292) + Xsqlite3_str_appendall(tls, bp+32, ts+19322) i = 0 j = int32((*PragmaName)(unsafe.Pointer(pPragma)).FiPragCName) __1: @@ -159877,7 +160646,7 @@ __1: goto __3 } { - Xsqlite3_str_appendf(tls, bp+32, ts+19307, libc.VaList(bp, int32(cSep), pragCName[j])) + Xsqlite3_str_appendf(tls, bp+32, ts+19337, libc.VaList(bp, int32(cSep), pragCName[j])) cSep = int8(',') } @@ -159890,19 +160659,19 @@ __2: __3: ; if i == 0 { - Xsqlite3_str_appendf(tls, bp+32, ts+19314, libc.VaList(bp+16, (*PragmaName)(unsafe.Pointer(pPragma)).FzName)) + Xsqlite3_str_appendf(tls, bp+32, ts+19344, libc.VaList(bp+16, (*PragmaName)(unsafe.Pointer(pPragma)).FzName)) i++ } j = 0 if int32((*PragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&PragFlg_Result1 != 0 { - Xsqlite3_str_appendall(tls, bp+32, ts+19320) + Xsqlite3_str_appendall(tls, bp+32, ts+19350) j++ } if int32((*PragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&(PragFlg_SchemaOpt|PragFlg_SchemaReq) != 0 { - Xsqlite3_str_appendall(tls, bp+32, ts+19332) + Xsqlite3_str_appendall(tls, bp+32, ts+19362) j++ } - Xsqlite3_str_append(tls, bp+32, ts+6260, 1) + Xsqlite3_str_append(tls, bp+32, ts+6295, 1) Xsqlite3StrAccumFinish(tls, bp+32) rc = Xsqlite3_declare_vtab(tls, db, bp+64) @@ -159918,7 +160687,7 @@ __3: (*PragmaVtab)(unsafe.Pointer(pTab)).FnHidden = U8(j) } } else { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db))) } *(*uintptr)(unsafe.Pointer(ppVtab)) = pTab @@ -159926,7 +160695,7 @@ __3: } // Pragma virtual table module xDisconnect method. -func pragmaVtabDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132977:12: */ +func pragmaVtabDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134232:12: */ var pTab uintptr = pVtab Xsqlite3_free(tls, pTab) return SQLITE_OK @@ -159938,7 +160707,7 @@ func pragmaVtabDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqli // query planner to give == constraints on as many hidden parameters as // possible, and especially on the first hidden parameter. So return a // high cost if hidden parameters are unconstrained. -func pragmaVtabBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:132990:12: */ +func pragmaVtabBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134245:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -160003,7 +160772,7 @@ __3: } // Create a new cursor for the pragma virtual table -func pragmaVtabOpen(tls *libc.TLS, pVtab uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133027:12: */ +func pragmaVtabOpen(tls *libc.TLS, pVtab uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134282:12: */ var pCsr uintptr pCsr = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(PragmaVtabCursor{}))) if pCsr == uintptr(0) { @@ -160016,7 +160785,7 @@ func pragmaVtabOpen(tls *libc.TLS, pVtab uintptr, ppCursor uintptr) int32 { /* t } // Clear all content from pragma virtual table cursor. -func pragmaVtabCursorClear(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133038:13: */ +func pragmaVtabCursorClear(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134293:13: */ var i int32 Xsqlite3_finalize(tls, (*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FpPragma) (*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FpPragma = uintptr(0) @@ -160027,7 +160796,7 @@ func pragmaVtabCursorClear(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-ama } // Close a pragma virtual table cursor -func pragmaVtabClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133049:12: */ +func pragmaVtabClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134304:12: */ var pCsr uintptr = cur pragmaVtabCursorClear(tls, pCsr) Xsqlite3_free(tls, pCsr) @@ -160035,7 +160804,7 @@ func pragmaVtabClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amal } // Advance the pragma virtual table cursor to the next row -func pragmaVtabNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133057:12: */ +func pragmaVtabNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134312:12: */ var pCsr uintptr = pVtabCursor var rc int32 = SQLITE_OK @@ -160051,7 +160820,7 @@ func pragmaVtabNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* testdata/sqli } // Pragma virtual table module xFilter method. -func pragmaVtabFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133075:12: */ +func pragmaVtabFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134330:12: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -160081,7 +160850,7 @@ __1: var zText uintptr = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))) if zText != 0 { - *(*uintptr)(unsafe.Pointer(pCsr + 24 + uintptr(j)*8)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, zText)) + *(*uintptr)(unsafe.Pointer(pCsr + 24 + uintptr(j)*8)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, zText)) if *(*uintptr)(unsafe.Pointer(pCsr + 24 + uintptr(j)*8)) == uintptr(0) { return SQLITE_NOMEM } @@ -160097,13 +160866,13 @@ __2: __3: ; Xsqlite3StrAccumInit(tls, bp+32, uintptr(0), uintptr(0), 0, *(*int32)(unsafe.Pointer((*PragmaVtab)(unsafe.Pointer(pTab)).Fdb + 136 + 1*4))) - Xsqlite3_str_appendall(tls, bp+32, ts+19347) + Xsqlite3_str_appendall(tls, bp+32, ts+19377) if *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8)) != 0 { - Xsqlite3_str_appendf(tls, bp+32, ts+19355, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8)))) + Xsqlite3_str_appendf(tls, bp+32, ts+19385, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8)))) } Xsqlite3_str_appendall(tls, bp+32, (*PragmaName)(unsafe.Pointer((*PragmaVtab)(unsafe.Pointer(pTab)).FpName)).FzName) if *(*uintptr)(unsafe.Pointer(pCsr + 24)) != 0 { - Xsqlite3_str_appendf(tls, bp+32, ts+19359, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pCsr + 24)))) + Xsqlite3_str_appendf(tls, bp+32, ts+19389, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pCsr + 24)))) } zSql = Xsqlite3StrAccumFinish(tls, bp+32) if zSql == uintptr(0) { @@ -160112,21 +160881,21 @@ __3: rc = Xsqlite3_prepare_v2(tls, (*PragmaVtab)(unsafe.Pointer(pTab)).Fdb, zSql, -1, pCsr+8, uintptr(0)) Xsqlite3_free(tls, zSql) if rc != SQLITE_OK { - (*PragmaVtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+24, Xsqlite3_errmsg(tls, (*PragmaVtab)(unsafe.Pointer(pTab)).Fdb))) + (*PragmaVtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+24, Xsqlite3_errmsg(tls, (*PragmaVtab)(unsafe.Pointer(pTab)).Fdb))) return rc } return pragmaVtabNext(tls, pVtabCursor) } // Pragma virtual table module xEof method. -func pragmaVtabEof(tls *libc.TLS, pVtabCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133125:12: */ +func pragmaVtabEof(tls *libc.TLS, pVtabCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134380:12: */ var pCsr uintptr = pVtabCursor return libc.Bool32((*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FpPragma == uintptr(0)) } // The xColumn method simply returns the corresponding column from // the PRAGMA. -func pragmaVtabColumn(tls *libc.TLS, pVtabCursor uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133133:12: */ +func pragmaVtabColumn(tls *libc.TLS, pVtabCursor uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134388:12: */ var pCsr uintptr = pVtabCursor var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pVtabCursor)).FpVtab if i < int32((*PragmaVtab)(unsafe.Pointer(pTab)).FiHidden) { @@ -160138,7 +160907,7 @@ func pragmaVtabColumn(tls *libc.TLS, pVtabCursor uintptr, ctx uintptr, i int32) } // Pragma virtual table module xRowid method. -func pragmaVtabRowid(tls *libc.TLS, pVtabCursor uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133151:12: */ +func pragmaVtabRowid(tls *libc.TLS, pVtabCursor uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134406:12: */ var pCsr uintptr = pVtabCursor *(*Sqlite_int64)(unsafe.Pointer(p)) = (*PragmaVtabCursor)(unsafe.Pointer(pCsr)).FiRowid return SQLITE_OK @@ -160156,12 +160925,12 @@ var pragmaVtabModule = Sqlite3_module{ // xCreate - create a table FxEof: 0, // xEof FxColumn: 0, // xColumn - read data FxRowid: 0, // xShadowName -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133158:29 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134413:29 */ // Check to see if zTabName is really the name of a pragma. If it is, // then register an eponymous virtual table for that pragma and return // a pointer to the Module object for the new virtual table. -func Xsqlite3PragmaVtabRegister(tls *libc.TLS, db uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133190:23: */ +func Xsqlite3PragmaVtabRegister(tls *libc.TLS, db uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134445:23: */ var pName uintptr pName = pragmaLocate(tls, zName+uintptr(7)) @@ -160194,7 +160963,7 @@ func Xsqlite3PragmaVtabRegister(tls *libc.TLS, db uintptr, zName uintptr) uintpt // Fill the InitData structure with an error message that indicates // that the database is corrupt. -func corruptSchema(tls *libc.TLS, pData uintptr, azObj uintptr, zExtra uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133227:13: */ +func corruptSchema(tls *libc.TLS, pData uintptr, azObj uintptr, zExtra uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134482:13: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -160205,39 +160974,39 @@ func corruptSchema(tls *libc.TLS, pData uintptr, azObj uintptr, zExtra uintptr) // A error message has already been generated. Do not overwrite it } else if (*InitData)(unsafe.Pointer(pData)).FmInitFlags&U32(INITFLAG_AlterMask) != 0 { *(*uintptr)(unsafe.Pointer((*InitData)(unsafe.Pointer(pData)).FpzErrMsg)) = Xsqlite3MPrintf(tls, db, - ts+19363, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azObj)), *(*uintptr)(unsafe.Pointer(azObj + 1*8)), + ts+19393, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azObj)), *(*uintptr)(unsafe.Pointer(azObj + 1*8)), azAlterType[(*InitData)(unsafe.Pointer(pData)).FmInitFlags&U32(INITFLAG_AlterMask)-U32(1)], zExtra)) (*InitData)(unsafe.Pointer(pData)).Frc = SQLITE_ERROR } else if (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_WriteSchema) != 0 { - (*InitData)(unsafe.Pointer(pData)).Frc = Xsqlite3CorruptError(tls, 133250) + (*InitData)(unsafe.Pointer(pData)).Frc = Xsqlite3CorruptError(tls, 134505) } else { var z uintptr var zObj uintptr if *(*uintptr)(unsafe.Pointer(azObj + 1*8)) != 0 { zObj = *(*uintptr)(unsafe.Pointer(azObj + 1*8)) } else { - zObj = ts + 6311 /* "?" */ + zObj = ts + 6346 /* "?" */ } - z = Xsqlite3MPrintf(tls, db, ts+19391, libc.VaList(bp+32, zObj)) + z = Xsqlite3MPrintf(tls, db, ts+19421, libc.VaList(bp+32, zObj)) if zExtra != 0 && *(*int8)(unsafe.Pointer(zExtra)) != 0 { - z = Xsqlite3MPrintf(tls, db, ts+19422, libc.VaList(bp+40, z, zExtra)) + z = Xsqlite3MPrintf(tls, db, ts+19452, libc.VaList(bp+40, z, zExtra)) } *(*uintptr)(unsafe.Pointer((*InitData)(unsafe.Pointer(pData)).FpzErrMsg)) = z - (*InitData)(unsafe.Pointer(pData)).Frc = Xsqlite3CorruptError(tls, 133257) + (*InitData)(unsafe.Pointer(pData)).Frc = Xsqlite3CorruptError(tls, 134512) } } var azAlterType = [3]uintptr{ - ts + 19430, - ts + 19437, - ts + 19449, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133238:23 */ + ts + 19460, + ts + 19467, + ts + 19479, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134493:23 */ // Check to see if any sibling index (another index on the same table) // of pIndex has the same root page number, and if it does, return true. // This would indicate a corrupt schema. -func Xsqlite3IndexHasDuplicateRootPage(tls *libc.TLS, pIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133266:20: */ +func Xsqlite3IndexHasDuplicateRootPage(tls *libc.TLS, pIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134521:20: */ var p uintptr for p = (*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIndex)).FpTable)).FpIndex; p != 0; p = (*Index)(unsafe.Pointer(p)).FpNext { if (*Index)(unsafe.Pointer(p)).Ftnum == (*Index)(unsafe.Pointer(pIndex)).Ftnum && p != pIndex { @@ -160253,13 +161022,12 @@ func Xsqlite3IndexHasDuplicateRootPage(tls *libc.TLS, pIndex uintptr) int32 { /* // // Each callback contains the following information: // -// argv[0] = type of object: "table", "index", "trigger", or "view". -// argv[1] = name of thing being created -// argv[2] = associated table if an index or trigger -// argv[3] = root page number for table or index. 0 for trigger or view. -// argv[4] = SQL text for the CREATE statement. -// -func Xsqlite3InitCallback(tls *libc.TLS, pInit uintptr, argc int32, argv uintptr, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133300:20: */ +// argv[0] = type of object: "table", "index", "trigger", or "view". +// argv[1] = name of thing being created +// argv[2] = associated table if an index or trigger +// argv[3] = root page number for table or index. 0 for trigger or view. +// argv[4] = SQL text for the CREATE statement. +func Xsqlite3InitCallback(tls *libc.TLS, pInit uintptr, argc int32, argv uintptr, NotUsed uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134555:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -160304,7 +161072,7 @@ func Xsqlite3InitCallback(tls *libc.TLS, pInit uintptr, argc int32, argv uintptr if Xsqlite3GetUInt32(tls, *(*uintptr)(unsafe.Pointer(argv + 3*8)), db+192) == 0 || (*Sqlite3)(unsafe.Pointer(db)).Finit.FnewTnum > (*InitData)(unsafe.Pointer(pData)).FmxPage && (*InitData)(unsafe.Pointer(pData)).FmxPage > Pgno(0) { if Xsqlite3Config.FbExtraSchemaChecks != 0 { - corruptSchema(tls, pData, argv, ts+15434) + corruptSchema(tls, pData, argv, ts+15473) } } libc.SetBitFieldPtr8Uint32(db+192+8, uint32(0), 0, 0x1) @@ -160342,13 +161110,13 @@ func Xsqlite3InitCallback(tls *libc.TLS, pInit uintptr, argc int32, argv uintptr var pIndex uintptr pIndex = Xsqlite3FindIndex(tls, db, *(*uintptr)(unsafe.Pointer(argv + 1*8)), (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName) if pIndex == uintptr(0) { - corruptSchema(tls, pData, argv, ts+19460) + corruptSchema(tls, pData, argv, ts+19490) } else if Xsqlite3GetUInt32(tls, *(*uintptr)(unsafe.Pointer(argv + 3*8)), pIndex+88) == 0 || (*Index)(unsafe.Pointer(pIndex)).Ftnum < Pgno(2) || (*Index)(unsafe.Pointer(pIndex)).Ftnum > (*InitData)(unsafe.Pointer(pData)).FmxPage || Xsqlite3IndexHasDuplicateRootPage(tls, pIndex) != 0 { if Xsqlite3Config.FbExtraSchemaChecks != 0 { - corruptSchema(tls, pData, argv, ts+15434) + corruptSchema(tls, pData, argv, ts+15473) } } } @@ -160361,7 +161129,7 @@ func Xsqlite3InitCallback(tls *libc.TLS, pInit uintptr, argc int32, argv uintptr // database. iDb==1 should never be used. iDb>=2 is used for // auxiliary databases. Return one of the SQLITE_ error codes to // indicate success or failure. -func Xsqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFlags U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133403:20: */ +func Xsqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFlags U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134658:20: */ bp := tls.Alloc(124) defer tls.Free(124) @@ -160391,16 +161159,16 @@ func Xsqlite3InitOne(tls *libc.TLS, db uintptr, iDb int32, pzErrMsg uintptr, mFl // table name will be inserted automatically by the parser so we can just // use the abbreviation "x" here. The parser will also automatically tag // the schema table as read-only. - *(*uintptr)(unsafe.Pointer(bp + 16)) = ts + 10113 /* "table" */ + *(*uintptr)(unsafe.Pointer(bp + 16)) = ts + 10152 /* "table" */ *(*uintptr)(unsafe.Pointer(bp + 16 + 1*8)) = libc.AssignUintptr(&zSchemaTabName, func() uintptr { if !(0 != 0) && iDb == 1 { - return ts + 13385 + return ts + 13424 } - return ts + 7196 + return ts + 7231 }()) *(*uintptr)(unsafe.Pointer(bp + 16 + 2*8)) = *(*uintptr)(unsafe.Pointer(bp + 16 + 1*8)) - *(*uintptr)(unsafe.Pointer(bp + 16 + 3*8)) = ts + 9177 /* "1" */ - *(*uintptr)(unsafe.Pointer(bp + 16 + 4*8)) = ts + 19473 /* "CREATE TABLE x(t..." */ + *(*uintptr)(unsafe.Pointer(bp + 16 + 3*8)) = ts + 9216 /* "1" */ + *(*uintptr)(unsafe.Pointer(bp + 16 + 4*8)) = ts + 19503 /* "CREATE TABLE x(t..." */ *(*uintptr)(unsafe.Pointer(bp + 16 + 5*8)) = uintptr(0) (*InitData)(unsafe.Pointer(bp + 64 /* &initData */)).Fdb = db (*InitData)(unsafe.Pointer(bp + 64 /* &initData */)).FiDb = iDb @@ -160513,7 +161281,7 @@ __10: goto __13 } Xsqlite3SetString(tls, pzErrMsg, db, - ts+13012) + ts+13051) rc = SQLITE_ERROR goto initone_error_out __13: @@ -160553,7 +161321,7 @@ __16: if !(int32((*Schema)(unsafe.Pointer((*Db)(unsafe.Pointer(pDb)).FpSchema)).Ffile_format) > SQLITE_MAX_FILE_FORMAT) { goto __17 } - Xsqlite3SetString(tls, pzErrMsg, db, ts+19545) + Xsqlite3SetString(tls, pzErrMsg, db, ts+19575) rc = SQLITE_ERROR goto initone_error_out __17: @@ -160575,7 +161343,7 @@ __18: (*InitData)(unsafe.Pointer(bp + 64 /* &initData */)).FmxPage = Xsqlite3BtreeLastPage(tls, (*Db)(unsafe.Pointer(pDb)).FpBt) zSql = Xsqlite3MPrintf(tls, db, - ts+19569, + ts+19599, libc.VaList(bp, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, zSchemaTabName)) xAuth = (*Sqlite3)(unsafe.Pointer(db)).FxAuth @@ -160662,7 +161430,7 @@ __25: // // After a database is initialized, the DB_SchemaLoaded bit is set // bit is set in the flags field of the Db structure. -func Xsqlite3Init(tls *libc.TLS, db uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133642:20: */ +func Xsqlite3Init(tls *libc.TLS, db uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134897:20: */ var i int32 var rc int32 var commit_internal int32 = libc.BoolInt32(!((*Sqlite3)(unsafe.Pointer(db)).FmDbFlags&U32(DBFLAG_SchemaChange) != 0)) @@ -160694,7 +161462,7 @@ func Xsqlite3Init(tls *libc.TLS, db uintptr, pzErrMsg uintptr) int32 { /* testda // This routine is a no-op if the database schema is already initialized. // Otherwise, the schema is loaded. An error code is returned. -func Xsqlite3ReadSchema(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133674:20: */ +func Xsqlite3ReadSchema(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134929:20: */ var rc int32 = SQLITE_OK var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb @@ -160713,7 +161481,7 @@ func Xsqlite3ReadSchema(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlit // Check schema cookies in all databases. If any cookie is out // of date set pParse->rc to SQLITE_SCHEMA. If all schema cookies // make no changes to pParse->rc. -func schemaIsValid(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133696:13: */ +func schemaIsValid(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:134951:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -160766,7 +161534,7 @@ func schemaIsValid(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamat // // If the same database is attached more than once, the first // attached database is returned. -func Xsqlite3SchemaToIndex(tls *libc.TLS, db uintptr, pSchema uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133746:20: */ +func Xsqlite3SchemaToIndex(tls *libc.TLS, db uintptr, pSchema uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135001:20: */ var i int32 = -32768 // If pSchema is NULL, then return -32768. This happens when code in @@ -160793,7 +161561,7 @@ func Xsqlite3SchemaToIndex(tls *libc.TLS, db uintptr, pSchema uintptr) int32 { / } // Free all memory allocations in the pParse object -func Xsqlite3ParseObjectReset(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133776:21: */ +func Xsqlite3ParseObjectReset(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135031:21: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(pParse)).FaTableLock) @@ -160840,7 +161608,7 @@ func Xsqlite3ParseObjectReset(tls *libc.TLS, pParse uintptr) { /* testdata/sqlit // use-after-free errors following an OOM. The preferred way to do this is // to immediately follow the call to this routine with: // -// testcase( pParse->earlyCleanup ); +// testcase( pParse->earlyCleanup ); // // This routine returns a copy of its pPtr input (the third parameter) // except if an early cleanup occurs, in which case it returns NULL. So @@ -160848,8 +161616,8 @@ func Xsqlite3ParseObjectReset(tls *libc.TLS, pParse uintptr) { /* testdata/sqlit // Or, stop using the pPtr parameter with this call and use only its // return value thereafter. Something like this: // -// pObj = sqlite3ParserAddCleanup(pParse, destructor, pObj); -func Xsqlite3ParserAddCleanup(tls *libc.TLS, pParse uintptr, xCleanup uintptr, pPtr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133831:21: */ +// pObj = sqlite3ParserAddCleanup(pParse, destructor, pObj); +func Xsqlite3ParserAddCleanup(tls *libc.TLS, pParse uintptr, xCleanup uintptr, pPtr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135086:21: */ var pCleanup uintptr = Xsqlite3DbMallocRaw(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, uint64(unsafe.Sizeof(ParseCleanup{}))) if pCleanup != 0 { (*ParseCleanup)(unsafe.Pointer(pCleanup)).FpNext = (*Parse)(unsafe.Pointer(pParse)).FpCleanup @@ -160872,7 +161640,7 @@ func Xsqlite3ParserAddCleanup(tls *libc.TLS, pParse uintptr, xCleanup uintptr, p // // Caution: Do not confuse this routine with sqlite3ParseObjectInit() which // is generated by Lemon. -func Xsqlite3ParseObjectInit(tls *libc.TLS, pParse uintptr, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133861:21: */ +func Xsqlite3ParseObjectInit(tls *libc.TLS, pParse uintptr, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135116:21: */ libc.Xmemset(tls, pParse+uintptr(uint64(uintptr(0)+8)), 0, uint64(uintptr(0)+216)-uint64(uintptr(0)+8)) libc.Xmemset(tls, pParse+uintptr(uint64(uintptr(0)+272)), 0, uint64(unsafe.Sizeof(Parse{}))-uint64(uintptr(0)+272)) @@ -160888,7 +161656,7 @@ func Xsqlite3ParseObjectInit(tls *libc.TLS, pParse uintptr, db uintptr) { /* tes // that returns SQLITE_ERROR_RETRY. // Compile the UTF-8 encoded SQL statement zSql into a statement handle. -func sqlite3Prepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags U32, pReprepare uintptr, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133882:12: */ +func sqlite3Prepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags U32, pReprepare uintptr, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135137:12: */ bp := tls.Alloc(424) defer tls.Free(424) @@ -160970,7 +161738,7 @@ __4: goto __8 } zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i)*32)).FzDbSName - Xsqlite3ErrorWithMsg(tls, db, rc, ts+19603, libc.VaList(bp, zDb)) + Xsqlite3ErrorWithMsg(tls, db, rc, ts+19633, libc.VaList(bp, zDb)) goto end_prepare __8: @@ -160997,7 +161765,7 @@ __3: if !(nBytes > mxLen) { goto __11 } - Xsqlite3ErrorWithMsg(tls, db, SQLITE_TOOBIG, ts+19633, 0) + Xsqlite3ErrorWithMsg(tls, db, SQLITE_TOOBIG, ts+19663, 0) rc = Xsqlite3ApiExit(tls, db, SQLITE_TOOBIG) goto end_prepare __11: @@ -161060,7 +161828,7 @@ __20: if !((*Parse)(unsafe.Pointer(bp+16)).FzErrMsg != 0) { goto __21 } - Xsqlite3ErrorWithMsg(tls, db, rc, ts+4444, libc.VaList(bp+8, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg)) + Xsqlite3ErrorWithMsg(tls, db, rc, ts+4479, libc.VaList(bp+8, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg)) Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg) goto __22 __21: @@ -161094,13 +161862,13 @@ end_prepare: return rc } -func sqlite3LockAndPrepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags U32, pOld uintptr, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134025:12: */ +func sqlite3LockAndPrepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags U32, pOld uintptr, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135280:12: */ var rc int32 var cnt int32 = 0 *(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0) if !(Xsqlite3SafetyCheckOk(tls, db) != 0) || zSql == uintptr(0) { - return Xsqlite3MisuseError(tls, 134042) + return Xsqlite3MisuseError(tls, 135297) } Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) Xsqlite3BtreeEnterAll(tls, db) @@ -161129,7 +161897,7 @@ func sqlite3LockAndPrepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32 // if the statement cannot be recompiled because another connection has // locked the sqlite3_schema table, return SQLITE_LOCKED. If any other error // occurs, return SQLITE_SCHEMA. -func Xsqlite3Reprepare(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134072:20: */ +func Xsqlite3Reprepare(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135327:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -161168,14 +161936,14 @@ func Xsqlite3Reprepare(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amal // sqlite3_step(). In the new version, the original SQL text is retained // and the statement is automatically recompiled if an schema change // occurs. -func Xsqlite3_prepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134111:16: */ +func Xsqlite3_prepare(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135366:16: */ var rc int32 rc = sqlite3LockAndPrepare(tls, db, zSql, nBytes, uint32(0), uintptr(0), ppStmt, pzTail) // VERIFY: F13021 return rc } -func Xsqlite3_prepare_v2(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134123:16: */ +func Xsqlite3_prepare_v2(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135378:16: */ var rc int32 // EVIDENCE-OF: R-37923-12173 The sqlite3_prepare_v2() interface works // exactly the same as sqlite3_prepare_v3() with a zero prepFlags @@ -161188,7 +161956,7 @@ func Xsqlite3_prepare_v2(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, return rc } -func Xsqlite3_prepare_v3(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags uint32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134141:16: */ +func Xsqlite3_prepare_v3(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags uint32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135396:16: */ var rc int32 // EVIDENCE-OF: R-56861-42673 sqlite3_prepare_v3() differs from // sqlite3_prepare_v2() only in having the extra prepFlags parameter, @@ -161205,7 +161973,7 @@ func Xsqlite3_prepare_v3(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, } // Compile the UTF-16 encoded SQL statement zSql into a statement handle. -func sqlite3Prepare16(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags U32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134169:12: */ +func sqlite3Prepare16(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags U32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135424:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -161218,7 +161986,7 @@ func sqlite3Prepare16(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, pre *(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0) if !(Xsqlite3SafetyCheckOk(tls, db) != 0) || zSql == uintptr(0) { - return Xsqlite3MisuseError(tls, 134190) + return Xsqlite3MisuseError(tls, 135445) } if nBytes >= 0 { var sz int32 @@ -161253,21 +162021,21 @@ func sqlite3Prepare16(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, pre // sqlite3_step(). In the new version, the original SQL text is retained // and the statement is automatically recompiled if an schema change // occurs. -func Xsqlite3_prepare16(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134227:16: */ +func Xsqlite3_prepare16(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135482:16: */ var rc int32 rc = sqlite3Prepare16(tls, db, zSql, nBytes, uint32(0), ppStmt, pzTail) // VERIFY: F13021 return rc } -func Xsqlite3_prepare16_v2(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134239:16: */ +func Xsqlite3_prepare16_v2(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135494:16: */ var rc int32 rc = sqlite3Prepare16(tls, db, zSql, nBytes, uint32(SQLITE_PREPARE_SAVESQL), ppStmt, pzTail) // VERIFY: F13021 return rc } -func Xsqlite3_prepare16_v3(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags uint32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134251:16: */ +func Xsqlite3_prepare16_v3(tls *libc.TLS, db uintptr, zSql uintptr, nBytes int32, prepFlags uint32, ppStmt uintptr, pzTail uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135506:16: */ var rc int32 rc = sqlite3Prepare16(tls, db, zSql, nBytes, uint32(SQLITE_PREPARE_SAVESQL)|prepFlags&uint32(SQLITE_PREPARE_MASK), @@ -161301,7 +162069,7 @@ type DistinctCtx1 = struct { F__ccgo_pad1 [2]byte FtabTnct int32 FaddrTnct int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134292:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135547:9 */ //************* End of prepare.c ******************************************** //************* Begin file select.c ***************************************** @@ -161322,7 +162090,7 @@ type DistinctCtx1 = struct { // An instance of the following object is used to record information about // how to process the DISTINCT keyword, to simplify passing that information // into the selectInnerLoop() routine. -type DistinctCtx = DistinctCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134292:28 */ +type DistinctCtx = DistinctCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135547:28 */ // An instance of the following object is used to record information about // the ORDER BY (or GROUP BY) clause of query is being coded. @@ -161331,7 +162099,7 @@ type DistinctCtx = DistinctCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3. // example, assuming there is no index that can be used for the ORDER BY, // for the query: // -// SELECT a, bigblob FROM t1 ORDER BY a LIMIT 10; +// SELECT a, bigblob FROM t1 ORDER BY a LIMIT 10; // // it may be more efficient to add just the "a" values to the sorter, and // retrieve the associated "bigblob" values directly from table t1 as the @@ -161352,7 +162120,7 @@ type SortCtx1 = struct { FsortFlags U8 F__ccgo_pad1 [3]byte FpDeferredRowLoad uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134318:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135573:9 */ // An instance of the following object is used to record information about // the ORDER BY (or GROUP BY) clause of query is being coded. @@ -161361,7 +162129,7 @@ type SortCtx1 = struct { // example, assuming there is no index that can be used for the ORDER BY, // for the query: // -// SELECT a, bigblob FROM t1 ORDER BY a LIMIT 10; +// SELECT a, bigblob FROM t1 ORDER BY a LIMIT 10; // // it may be more efficient to add just the "a" values to the sorter, and // retrieve the associated "bigblob" values directly from table t1 as the @@ -161370,19 +162138,19 @@ type SortCtx1 = struct { // When the sorter-reference optimization is used, there is one entry in the // aDefer[] array for each database table that may be read as values are // extracted from the sorter. -type SortCtx = SortCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134318:24 */ +type SortCtx = SortCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135573:24 */ type RowLoadInfo1 = struct { FregResult int32 FecelFlags U8 F__ccgo_pad1 [3]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134318:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135573:9 */ // Delete all the content of a Select structure. Deallocate the structure // itself depending on the value of bFree // // If bFree==1, call sqlite3DbFree() on the p object. // If bFree==0, Leave the first Select object unfreed -func clearSelect(tls *libc.TLS, db uintptr, p uintptr, bFree int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134348:13: */ +func clearSelect(tls *libc.TLS, db uintptr, p uintptr, bFree int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135603:13: */ for p != 0 { var pPrior uintptr = (*Select)(unsafe.Pointer(p)).FpPrior Xsqlite3ExprListDelete(tls, db, (*Select)(unsafe.Pointer(p)).FpEList) @@ -161411,7 +162179,7 @@ func clearSelect(tls *libc.TLS, db uintptr, p uintptr, bFree int32) { /* testdat } // Initialize a SelectDest structure. -func Xsqlite3SelectDestInit(tls *libc.TLS, pDest uintptr, eDest int32, iParm int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134377:21: */ +func Xsqlite3SelectDestInit(tls *libc.TLS, pDest uintptr, eDest int32, iParm int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135632:21: */ (*SelectDest)(unsafe.Pointer(pDest)).FeDest = U8(eDest) (*SelectDest)(unsafe.Pointer(pDest)).FiSDParm = iParm (*SelectDest)(unsafe.Pointer(pDest)).FiSDParm2 = 0 @@ -161422,7 +162190,7 @@ func Xsqlite3SelectDestInit(tls *libc.TLS, pDest uintptr, eDest int32, iParm int // Allocate a new Select structure and return a pointer to that // structure. -func Xsqlite3SelectNew(tls *libc.TLS, pParse uintptr, pEList uintptr, pSrc uintptr, pWhere uintptr, pGroupBy uintptr, pHaving uintptr, pOrderBy uintptr, selFlags U32, pLimit uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134391:23: */ +func Xsqlite3SelectNew(tls *libc.TLS, pParse uintptr, pEList uintptr, pSrc uintptr, pWhere uintptr, pGroupBy uintptr, pHaving uintptr, pOrderBy uintptr, selFlags U32, pLimit uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135646:23: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -161472,14 +162240,14 @@ func Xsqlite3SelectNew(tls *libc.TLS, pParse uintptr, pEList uintptr, pSrc uintp } // Delete the given Select structure and all of its substructures. -func Xsqlite3SelectDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134449:21: */ +func Xsqlite3SelectDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135704:21: */ if p != 0 { clearSelect(tls, db, p, 1) } } // Return a pointer to the right-most SELECT statement in a compound. -func findRightmost(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134456:15: */ +func findRightmost(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135711:15: */ for (*Select)(unsafe.Pointer(p)).FpNext != 0 { p = (*Select)(unsafe.Pointer(p)).FpNext } @@ -161490,32 +162258,77 @@ func findRightmost(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalga // type of join. Return an integer constant that expresses that type // in terms of the following bit values: // -// JT_INNER -// JT_CROSS -// JT_OUTER -// JT_NATURAL -// JT_LEFT -// JT_RIGHT +// JT_INNER +// JT_CROSS +// JT_OUTER +// JT_NATURAL +// JT_LEFT +// JT_RIGHT // // A full outer join is the combination of JT_LEFT and JT_RIGHT. // // If an illegal or unsupported join type is seen, then still return // a join type, but put an error in the pParse structure. -func Xsqlite3JoinType(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, pC uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134478:20: */ - bp := tls.Alloc(56) - defer tls.Free(56) +// +// These are the valid join types: +// +// pA pB pC Return Value +// ------- ----- ----- ------------ +// CROSS - - JT_CROSS +// INNER - - JT_INNER +// LEFT - - JT_LEFT|JT_OUTER +// LEFT OUTER - JT_LEFT|JT_OUTER +// RIGHT - - JT_RIGHT|JT_OUTER +// RIGHT OUTER - JT_RIGHT|JT_OUTER +// FULL - - JT_LEFT|JT_RIGHT|JT_OUTER +// FULL OUTER - JT_LEFT|JT_RIGHT|JT_OUTER +// NATURAL INNER - JT_NATURAL|JT_INNER +// NATURAL LEFT - JT_NATURAL|JT_LEFT|JT_OUTER +// NATURAL LEFT OUTER JT_NATURAL|JT_LEFT|JT_OUTER +// NATURAL RIGHT - JT_NATURAL|JT_RIGHT|JT_OUTER +// NATURAL RIGHT OUTER JT_NATURAL|JT_RIGHT|JT_OUTER +// NATURAL FULL - JT_NATURAL|JT_LEFT|JT_RIGHT +// NATURAL FULL OUTER JT_NATRUAL|JT_LEFT|JT_RIGHT +// +// To preserve historical compatibly, SQLite also accepts a variety +// of other non-standard and in many cases non-sensical join types. +// This routine makes as much sense at it can from the nonsense join +// type and returns a result. Examples of accepted nonsense join types +// include but are not limited to: +// +// INNER CROSS JOIN -> same as JOIN +// NATURAL CROSS JOIN -> same as NATURAL JOIN +// OUTER LEFT JOIN -> same as LEFT JOIN +// LEFT NATURAL JOIN -> same as NATURAL LEFT JOIN +// LEFT RIGHT JOIN -> same as FULL JOIN +// RIGHT OUTER FULL JOIN -> same as FULL JOIN +// CROSS CROSS CROSS JOIN -> same as JOIN +// +// The only restrictions on the join type name are: +// +// - "INNER" cannot appear together with "OUTER", "LEFT", "RIGHT", +// or "FULL". +// +// - "CROSS" cannot appear together with "OUTER", "LEFT", "RIGHT, +// or "FULL". +// +// - If "OUTER" is present then there must also be one of +// "LEFT", "RIGHT", or "FULL" +func Xsqlite3JoinType(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, pC uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135779:20: */ + bp := tls.Alloc(64) + defer tls.Free(64) var jointype int32 = 0 - // var apAll [3]uintptr at bp+32, 24 + // var apAll [3]uintptr at bp+40, 24 var p uintptr var i int32 var j int32 - *(*uintptr)(unsafe.Pointer(bp + 32)) = pA - *(*uintptr)(unsafe.Pointer(bp + 32 + 1*8)) = pB - *(*uintptr)(unsafe.Pointer(bp + 32 + 2*8)) = pC - for i = 0; i < 3 && *(*uintptr)(unsafe.Pointer(bp + 32 /* &apAll[0] */ + uintptr(i)*8)) != 0; i++ { - p = *(*uintptr)(unsafe.Pointer(bp + 32 + uintptr(i)*8)) + *(*uintptr)(unsafe.Pointer(bp + 40)) = pA + *(*uintptr)(unsafe.Pointer(bp + 40 + 1*8)) = pB + *(*uintptr)(unsafe.Pointer(bp + 40 + 2*8)) = pC + for i = 0; i < 3 && *(*uintptr)(unsafe.Pointer(bp + 40 /* &apAll[0] */ + uintptr(i)*8)) != 0; i++ { + p = *(*uintptr)(unsafe.Pointer(bp + 40 + uintptr(i)*8)) for j = 0; j < int32(uint64(unsafe.Sizeof(aKeyword))/uint64(unsafe.Sizeof(struct { Fi U8 FnChar U8 @@ -161537,42 +162350,40 @@ func Xsqlite3JoinType(tls *libc.TLS, pParse uintptr, pA uintptr, pB uintptr, pC break } } - if jointype&(JT_INNER|JT_OUTER) == JT_INNER|JT_OUTER || jointype&JT_ERROR != 0 { - var zSp uintptr = ts + 12157 /* " " */ - + if jointype&(JT_INNER|JT_OUTER) == JT_INNER|JT_OUTER || jointype&JT_ERROR != 0 || jointype&(JT_OUTER|JT_LEFT|JT_RIGHT) == JT_OUTER { + var zSp1 uintptr = ts + 12196 /* " " */ + var zSp2 uintptr = ts + 12196 /* " " */ + if pB == uintptr(0) { + zSp1++ + } if pC == uintptr(0) { - zSp++ + zSp2++ } Xsqlite3ErrorMsg(tls, pParse, - ts+19652, libc.VaList(bp, pA, pB, zSp, pC)) - jointype = JT_INNER - } else if jointype&JT_OUTER != 0 && - jointype&(JT_LEFT|JT_RIGHT) != JT_LEFT { - Xsqlite3ErrorMsg(tls, pParse, - ts+19696, 0) + ts+19682, libc.VaList(bp, pA, zSp1, pB, zSp2, pC)) jointype = JT_INNER } return jointype } -var zKeyText = *(*[34]int8)(unsafe.Pointer(ts + 19751)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134483:21 */ +var zKeyText = *(*[34]int8)(unsafe.Pointer(ts + 19712)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135784:21 */ var aKeyword = [7]struct { Fi U8 FnChar U8 Fcode U8 }{ - /* natural */ {FnChar: U8(7), Fcode: U8(JT_NATURAL)}, - /* left */ {Fi: U8(6), FnChar: U8(4), Fcode: U8(JT_LEFT | JT_OUTER)}, - /* outer */ {Fi: U8(10), FnChar: U8(5), Fcode: U8(JT_OUTER)}, - /* right */ {Fi: U8(14), FnChar: U8(5), Fcode: U8(JT_RIGHT | JT_OUTER)}, - /* full */ {Fi: U8(19), FnChar: U8(4), Fcode: U8(JT_LEFT | JT_RIGHT | JT_OUTER)}, - /* inner */ {Fi: U8(23), FnChar: U8(5), Fcode: U8(JT_INNER)}, - /* cross */ {Fi: U8(28), FnChar: U8(5), Fcode: U8(JT_INNER | JT_CROSS)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134488:5 */ + /* (0) natural */ {FnChar: U8(7), Fcode: U8(JT_NATURAL)}, + /* (1) left */ {Fi: U8(6), FnChar: U8(4), Fcode: U8(JT_LEFT | JT_OUTER)}, + /* (2) outer */ {Fi: U8(10), FnChar: U8(5), Fcode: U8(JT_OUTER)}, + /* (3) right */ {Fi: U8(14), FnChar: U8(5), Fcode: U8(JT_RIGHT | JT_OUTER)}, + /* (4) full */ {Fi: U8(19), FnChar: U8(4), Fcode: U8(JT_LEFT | JT_RIGHT | JT_OUTER)}, + /* (5) inner */ {Fi: U8(23), FnChar: U8(5), Fcode: U8(JT_INNER)}, + /* (6) cross */ {Fi: U8(28), FnChar: U8(5), Fcode: U8(JT_INNER | JT_CROSS)}, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135789:5 */ // Return the index of a column in a table. Return -1 if the column // is not contained in the table. -func Xsqlite3ColumnIndex(tls *libc.TLS, pTab uintptr, zCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134539:20: */ +func Xsqlite3ColumnIndex(tls *libc.TLS, pTab uintptr, zCol uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135837:20: */ var i int32 var h U8 = Xsqlite3StrIHash(tls, zCol) var pCol uintptr @@ -161599,23 +162410,38 @@ __3: return -1 } -// Search the first N tables in pSrc, from left to right, looking for a -// table that has a column named zCol. +// Mark a subquery result column as having been used. +func Xsqlite3SrcItemColumnUsed(tls *libc.TLS, pItem uintptr, iCol int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135850:21: */ + + if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x2000>>13)) != 0 { + var pResults uintptr + + pResults = (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpSelect)).FpEList + + libc.SetBitFieldPtr16Uint32(pResults+8+uintptr(iCol)*32+16+4, uint32(1), 6, 0x40) + } +} + +// Search the tables iStart..iEnd (inclusive) in pSrc, looking for a +// table that has a column named zCol. The search is left-to-right. +// The first match found is returned. // // When found, set *piTab and *piCol to the table index and column index // of the matching column and return TRUE. // // If not found, return FALSE. -func tableAndColumnIndex(tls *libc.TLS, pSrc uintptr, N int32, zCol uintptr, piTab uintptr, piCol uintptr, bIgnoreHidden int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134558:12: */ +func tableAndColumnIndex(tls *libc.TLS, pSrc uintptr, iStart int32, iEnd int32, zCol uintptr, piTab uintptr, piCol uintptr, bIgnoreHidden int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135873:12: */ var i int32 // For looping over tables in pSrc var iCol int32 // Index of column matching zCol // Both or neither are NULL - for i = 0; i < N; i++ { - iCol = Xsqlite3ColumnIndex(tls, (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*112)).FpTab, zCol) + + for i = iStart; i <= iEnd; i++ { + iCol = Xsqlite3ColumnIndex(tls, (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*104)).FpTab, zCol) if iCol >= 0 && - (bIgnoreHidden == 0 || libc.Bool32(int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*112)).FpTab)).FaCol+uintptr(iCol)*24)).FcolFlags)&COLFLAG_HIDDEN != 0) == 0) { + (bIgnoreHidden == 0 || libc.Bool32(int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*104)).FpTab)).FaCol+uintptr(iCol)*24)).FcolFlags)&COLFLAG_HIDDEN != 0) == 0) { if piTab != 0 { + Xsqlite3SrcItemColumnUsed(tls, pSrc+8+uintptr(i)*104, iCol) *(*int32)(unsafe.Pointer(piTab)) = i *(*int32)(unsafe.Pointer(piCol)) = iCol } @@ -161625,53 +162451,23 @@ func tableAndColumnIndex(tls *libc.TLS, pSrc uintptr, N int32, zCol uintptr, piT return 0 } -// This function is used to add terms implied by JOIN syntax to the -// WHERE clause expression of a SELECT statement. The new term, which -// is ANDed with the existing WHERE clause, is of the form: -// -// (tab1.col1 = tab2.col2) -// -// where tab1 is the iSrc'th table in SrcList pSrc and tab2 is the -// (iSrc+1)'th. Column col1 is column iColLeft of tab1, and col2 is -// column iColRight of tab2. -func addWhereTerm(tls *libc.TLS, pParse uintptr, pSrc uintptr, iLeft int32, iColLeft int32, iRight int32, iColRight int32, isOuterJoin int32, ppWhere uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134596:13: */ - var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb - var pE1 uintptr - var pE2 uintptr - var pEq uintptr - - pE1 = Xsqlite3CreateColumnExpr(tls, db, pSrc, iLeft, iColLeft) - pE2 = Xsqlite3CreateColumnExpr(tls, db, pSrc, iRight, iColRight) - - pEq = Xsqlite3PExpr(tls, pParse, TK_EQ, pE1, pE2) - // Due to db->mallocFailed test - // in sqlite3DbMallocRawNN() called from - // sqlite3PExpr(). - if pEq != 0 && isOuterJoin != 0 { - *(*U32)(unsafe.Pointer(pEq + 4)) |= U32(EP_FromJoin) - - *(*int32)(unsafe.Pointer(pEq + 52)) = (*Expr)(unsafe.Pointer(pE2)).FiTable - } - *(*uintptr)(unsafe.Pointer(ppWhere)) = Xsqlite3ExprAnd(tls, pParse, *(*uintptr)(unsafe.Pointer(ppWhere)), pEq) -} - -// Set the EP_FromJoin property on all terms of the given expression. -// And set the Expr.w.iRightJoinTable to iTable for every term in the +// Set the EP_OuterON property on all terms of the given expression. +// And set the Expr.w.iJoin to iTable for every term in the // expression. // -// The EP_FromJoin property is used on terms of an expression to tell -// the LEFT OUTER JOIN processing logic that this term is part of the +// The EP_OuterON property is used on terms of an expression to tell +// the OUTER JOIN processing logic that this term is part of the // join restriction specified in the ON or USING clause and not a part // of the more general WHERE clause. These terms are moved over to the // WHERE clause during join processing but we need to remember that they // originated in the ON or USING clause. // -// The Expr.w.iRightJoinTable tells the WHERE clause processing that the -// expression depends on table w.iRightJoinTable even if that table is not +// The Expr.w.iJoin tells the WHERE clause processing that the +// expression depends on table w.iJoin even if that table is not // explicitly mentioned in the expression. That information is needed // for cases like this: // -// SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.b AND t1.x=5 +// SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.b AND t1.x=5 // // The where clause needs to defer the handling of the t1.x=5 // term until after the t2 loop of the join. In that way, a @@ -161679,9 +162475,10 @@ func addWhereTerm(tls *libc.TLS, pParse uintptr, pSrc uintptr, iLeft int32, iCol // defer the handling of t1.x=5, it will be processed immediately // after the t1 loop and rows with t1.x!=5 will never appear in // the output, which is incorrect. -func Xsqlite3SetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134658:21: */ +func Xsqlite3SetJoinExpr(tls *libc.TLS, p uintptr, iTable int32, joinFlag U32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135931:21: */ + for p != 0 { - *(*U32)(unsafe.Pointer(p + 4)) |= U32(EP_FromJoin) + *(*U32)(unsafe.Pointer(p + 4)) |= joinFlag *(*int32)(unsafe.Pointer(p + 52)) = iTable if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_FUNCTION { @@ -161689,27 +162486,37 @@ func Xsqlite3SetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* testdata/s if *(*uintptr)(unsafe.Pointer(p + 32)) != 0 { var i int32 for i = 0; i < (*ExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 32 /* &.x */)))).FnExpr; i++ { - Xsqlite3SetJoinExpr(tls, (*ExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 32))+8+uintptr(i)*32)).FpExpr, iTable) + Xsqlite3SetJoinExpr(tls, (*ExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 32))+8+uintptr(i)*32)).FpExpr, iTable, joinFlag) } } } - Xsqlite3SetJoinExpr(tls, (*Expr)(unsafe.Pointer(p)).FpLeft, iTable) + Xsqlite3SetJoinExpr(tls, (*Expr)(unsafe.Pointer(p)).FpLeft, iTable, joinFlag) p = (*Expr)(unsafe.Pointer(p)).FpRight } } -// Undo the work of sqlite3SetJoinExpr(). In the expression p, convert every -// term that is marked with EP_FromJoin and w.iRightJoinTable==iTable into -// an ordinary term that omits the EP_FromJoin mark. +// Undo the work of sqlite3SetJoinExpr(). This is used when a LEFT JOIN +// is simplified into an ordinary JOIN, and when an ON expression is +// "pushed down" into the WHERE clause of a subquery. // -// This happens when a LEFT JOIN is simplified into an ordinary JOIN. -func unsetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134684:13: */ +// Convert every term that is marked with EP_OuterON and w.iJoin==iTable into +// an ordinary term that omits the EP_OuterON mark. Or if iTable<0, then +// just clear every EP_OuterON and EP_InnerON mark from the expression tree. +// +// If nullable is true, that means that Expr p might evaluate to NULL even +// if it is a reference to a NOT NULL column. This can happen, for example, +// if the table that p references is on the left side of a RIGHT JOIN. +// If nullable is true, then take care to not remove the EP_CanBeNull bit. +// See forum thread https://sqlite.org/forum/forumpost/b40696f50145d21c +func unsetJoinExpr(tls *libc.TLS, p uintptr, iTable int32, nullable int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:135966:13: */ for p != 0 { - if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_FromJoin) != U32(0) && - (iTable < 0 || *(*int32)(unsafe.Pointer(p + 52)) == iTable) { - *(*U32)(unsafe.Pointer(p + 4)) &= libc.Uint32FromInt32(libc.CplInt32(EP_FromJoin)) + if iTable < 0 || (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_OuterON) != U32(0) && *(*int32)(unsafe.Pointer(p + 52)) == iTable { + *(*U32)(unsafe.Pointer(p + 4)) &= libc.Uint32FromInt32(libc.CplInt32(EP_OuterON | EP_InnerON)) + if iTable >= 0 { + *(*U32)(unsafe.Pointer(p + 4)) |= U32(EP_InnerON) + } } - if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_COLUMN && (*Expr)(unsafe.Pointer(p)).FiTable == iTable { + if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_COLUMN && (*Expr)(unsafe.Pointer(p)).FiTable == iTable && !(nullable != 0) { *(*U32)(unsafe.Pointer(p + 4)) &= libc.Uint32FromInt32(libc.CplInt32(EP_CanBeNull)) } if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_FUNCTION { @@ -161717,28 +162524,35 @@ func unsetJoinExpr(tls *libc.TLS, p uintptr, iTable int32) { /* testdata/sqlite- if *(*uintptr)(unsafe.Pointer(p + 32)) != 0 { var i int32 for i = 0; i < (*ExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 32 /* &.x */)))).FnExpr; i++ { - unsetJoinExpr(tls, (*ExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 32))+8+uintptr(i)*32)).FpExpr, iTable) + unsetJoinExpr(tls, (*ExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(p + 32))+8+uintptr(i)*32)).FpExpr, iTable, nullable) } } } - unsetJoinExpr(tls, (*Expr)(unsafe.Pointer(p)).FpLeft, iTable) + unsetJoinExpr(tls, (*Expr)(unsafe.Pointer(p)).FpLeft, iTable, nullable) p = (*Expr)(unsafe.Pointer(p)).FpRight } } // This routine processes the join information for a SELECT statement. -// ON and USING clauses are converted into extra terms of the WHERE clause. -// NATURAL joins also create extra WHERE clause terms. +// +// - A NATURAL join is converted into a USING join. After that, we +// do not need to be concerned with NATURAL joins and we only have +// think about USING joins. +// +// - ON and USING clauses result in extra terms being added to the +// WHERE clause to enforce the specified constraints. The extra +// WHERE clause terms will be tagged with EP_OuterON or +// EP_InnerON so that we know that they originated in ON/USING. // // The terms of a FROM clause are contained in the Select.pSrc structure. // The left most table is the first entry in Select.pSrc. The right-most // table is the last entry. The join operator is held in the entry to -// the left. Thus entry 0 contains the join operator for the join between +// the right. Thus entry 1 contains the join operator for the join between // entries 0 and 1. Any ON or USING clauses associated with the join are -// also attached to the left entry. +// also attached to the right entry. // // This routine returns the number of errors encountered. -func sqliteProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134721:12: */ +func sqlite3ProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:136010:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -161750,7 +162564,7 @@ func sqliteProcessJoin(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* test pSrc = (*Select)(unsafe.Pointer(p)).FpSrc pLeft = pSrc + 8 - pRight = pLeft + 1*112 + pRight = pLeft + 1*104 i = 0 __1: if !(i < (*SrcList)(unsafe.Pointer(pSrc)).FnSrc-1) { @@ -161758,54 +162572,49 @@ __1: } { var pRightTab uintptr = (*SrcItem)(unsafe.Pointer(pRight)).FpTab - var isOuter int32 + var joinType U32 if (*SrcItem)(unsafe.Pointer(pLeft)).FpTab == uintptr(0) || pRightTab == uintptr(0) { goto __2 } - isOuter = libc.Bool32(int32((*SrcItem)(unsafe.Pointer(pRight)).Ffg.Fjointype)&JT_OUTER != 0) + if int32((*SrcItem)(unsafe.Pointer(pRight)).Ffg.Fjointype)&JT_OUTER != 0 { + joinType = uint32(EP_OuterON) + } else { + joinType = uint32(EP_InnerON) + } - // When the NATURAL keyword is present, add WHERE clause terms for - // every column that the two tables have in common. + // If this is a NATURAL join, synthesize an approprate USING clause + // to specify which columns should be joined. if int32((*SrcItem)(unsafe.Pointer(pRight)).Ffg.Fjointype)&JT_NATURAL != 0 { - if (*SrcItem)(unsafe.Pointer(pRight)).FpOn != 0 || (*SrcItem)(unsafe.Pointer(pRight)).FpUsing != 0 { + var pUsing uintptr = uintptr(0) + if uint32(int32(*(*uint16)(unsafe.Pointer(pRight + 60 + 4))&0x400>>10)) != 0 || *(*uintptr)(unsafe.Pointer(pRight + 72)) != 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+19785, libc.VaList(bp, 0)) + ts+19746, libc.VaList(bp, 0)) return 1 } for j = 0; j < int32((*Table)(unsafe.Pointer(pRightTab)).FnCol); j++ { var zName uintptr // Name of column in the right table - // var iLeft int32 at bp+16, 4 - // Matching left table - // var iLeftCol int32 at bp+20, 4 - // Matching column in the left table if int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pRightTab)).FaCol+uintptr(j)*24)).FcolFlags)&COLFLAG_HIDDEN != 0 { continue } zName = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pRightTab)).FaCol + uintptr(j)*24)).FzCnName - if tableAndColumnIndex(tls, pSrc, i+1, zName, bp+16, bp+20, 1) != 0 { - addWhereTerm(tls, pParse, pSrc, *(*int32)(unsafe.Pointer(bp + 16 /* iLeft */)), *(*int32)(unsafe.Pointer(bp + 20 /* iLeftCol */)), i+1, j, - isOuter, p+48) + if tableAndColumnIndex(tls, pSrc, 0, i, zName, uintptr(0), uintptr(0), 1) != 0 { + pUsing = Xsqlite3IdListAppend(tls, pParse, pUsing, uintptr(0)) + if pUsing != 0 { + + (*IdList_item)(unsafe.Pointer(pUsing + 8 + uintptr((*IdList)(unsafe.Pointer(pUsing)).FnId-1)*16)).FzName = Xsqlite3DbStrDup(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, zName) + } } } - } - - // Disallow both ON and USING clauses in the same join - if (*SrcItem)(unsafe.Pointer(pRight)).FpOn != 0 && (*SrcItem)(unsafe.Pointer(pRight)).FpUsing != 0 { - Xsqlite3ErrorMsg(tls, pParse, - ts+19835, 0) - return 1 - } - - // Add the ON clause to the end of the WHERE clause, connected by - // an AND operator. - if (*SrcItem)(unsafe.Pointer(pRight)).FpOn != 0 { - if isOuter != 0 { - Xsqlite3SetJoinExpr(tls, (*SrcItem)(unsafe.Pointer(pRight)).FpOn, (*SrcItem)(unsafe.Pointer(pRight)).FiCursor) + if pUsing != 0 { + libc.SetBitFieldPtr16Uint32(pRight+60+4, uint32(1), 10, 0x400) + libc.SetBitFieldPtr16Uint32(pRight+60+4, uint32(1), 12, 0x1000) + *(*uintptr)(unsafe.Pointer(pRight + 72)) = pUsing + } + if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 { + return 1 } - (*Select)(unsafe.Pointer(p)).FpWhere = Xsqlite3ExprAnd(tls, pParse, (*Select)(unsafe.Pointer(p)).FpWhere, (*SrcItem)(unsafe.Pointer(pRight)).FpOn) - (*SrcItem)(unsafe.Pointer(pRight)).FpOn = uintptr(0) } // Create extra terms on the WHERE clause for each column named @@ -161814,8 +162623,10 @@ __1: // to the WHERE clause: A.X=B.X AND A.Y=B.Y AND A.Z=B.Z // Report an error if any column mentioned in the USING clause is // not contained in both tables to be joined. - if (*SrcItem)(unsafe.Pointer(pRight)).FpUsing != 0 { - var pList uintptr = (*SrcItem)(unsafe.Pointer(pRight)).FpUsing + if uint32(int32(*(*uint16)(unsafe.Pointer(pRight + 60 + 4))&0x400>>10)) != 0 { + var pList uintptr = *(*uintptr)(unsafe.Pointer(pRight + 72)) + var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb + for j = 0; j < (*IdList)(unsafe.Pointer(pList)).FnId; j++ { var zName uintptr // Name of the term in the USING clause // var iLeft int32 at bp+24, 4 @@ -161823,26 +162634,76 @@ __1: // var iLeftCol int32 at bp+28, 4 // Column number of matching column on the left var iRightCol int32 // Column number of matching column on the right + var pE1 uintptr // Reference to the column on the LEFT of the join + var pE2 uintptr // Reference to the column on the RIGHT of the join + var pEq uintptr // Equality constraint. pE1 == pE2 - zName = (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pList)).Fa + uintptr(j)*16)).FzName + zName = (*IdList_item)(unsafe.Pointer(pList + 8 + uintptr(j)*16)).FzName iRightCol = Xsqlite3ColumnIndex(tls, pRightTab, zName) if iRightCol < 0 || - !(tableAndColumnIndex(tls, pSrc, i+1, zName, bp+24, bp+28, 0) != 0) { + tableAndColumnIndex(tls, pSrc, 0, i, zName, bp+24, bp+28, + int32(*(*uint16)(unsafe.Pointer(pRight + 60 + 4))&0x1000>>12)) == 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+19890, libc.VaList(bp+8, zName)) + ts+19796, libc.VaList(bp+8, zName)) return 1 } - addWhereTerm(tls, pParse, pSrc, *(*int32)(unsafe.Pointer(bp + 24 /* iLeft */)), *(*int32)(unsafe.Pointer(bp + 28 /* iLeftCol */)), i+1, iRightCol, - isOuter, p+48) + pE1 = Xsqlite3CreateColumnExpr(tls, db, pSrc, *(*int32)(unsafe.Pointer(bp + 24 /* iLeft */)), *(*int32)(unsafe.Pointer(bp + 28 /* iLeftCol */))) + Xsqlite3SrcItemColumnUsed(tls, pSrc+8+uintptr(*(*int32)(unsafe.Pointer(bp + 24)))*104, *(*int32)(unsafe.Pointer(bp + 28 /* iLeftCol */))) + if int32((*SrcItem)(unsafe.Pointer(pSrc+8)).Ffg.Fjointype)&JT_LTORJ != 0 { + // This branch runs if the query contains one or more RIGHT or FULL + // JOINs. If only a single table on the left side of this join + // contains the zName column, then this branch is a no-op. + // But if there are two or more tables on the left side + // of the join, construct a coalesce() function that gathers all + // such tables. Raise an error if more than one of those references + // to zName is not also within a prior USING clause. + // + // We really ought to raise an error if there are two or more + // non-USING references to zName on the left of an INNER or LEFT + // JOIN. But older versions of SQLite do not do that, so we avoid + // adding a new error so as to not break legacy applications. + var pFuncArgs uintptr = uintptr(0) + for tableAndColumnIndex(tls, pSrc, *(*int32)(unsafe.Pointer(bp + 24))+1, i, zName, bp+24, bp+28, + int32(*(*uint16)(unsafe.Pointer(pRight + 60 + 4))&0x1000>>12)) != 0 { + if int32(*(*uint16)(unsafe.Pointer(pSrc + 8 + uintptr(*(*int32)(unsafe.Pointer(bp + 24)))*104 + 60 + 4))&0x400>>10) == 0 || + Xsqlite3IdListIndex(tls, *(*uintptr)(unsafe.Pointer(pSrc + 8 + uintptr(*(*int32)(unsafe.Pointer(bp + 24)))*104 + 72)), zName) < 0 { + Xsqlite3ErrorMsg(tls, pParse, ts+19860, + libc.VaList(bp+16, zName)) + break + } + pFuncArgs = Xsqlite3ExprListAppend(tls, pParse, pFuncArgs, pE1) + pE1 = Xsqlite3CreateColumnExpr(tls, db, pSrc, *(*int32)(unsafe.Pointer(bp + 24 /* iLeft */)), *(*int32)(unsafe.Pointer(bp + 28 /* iLeftCol */))) + Xsqlite3SrcItemColumnUsed(tls, pSrc+8+uintptr(*(*int32)(unsafe.Pointer(bp + 24)))*104, *(*int32)(unsafe.Pointer(bp + 28 /* iLeftCol */))) + } + if pFuncArgs != 0 { + pFuncArgs = Xsqlite3ExprListAppend(tls, pParse, pFuncArgs, pE1) + pE1 = Xsqlite3ExprFunction(tls, pParse, pFuncArgs, uintptr(unsafe.Pointer(&tkCoalesce)), 0) + } + } + pE2 = Xsqlite3CreateColumnExpr(tls, db, pSrc, i+1, iRightCol) + Xsqlite3SrcItemColumnUsed(tls, pRight, iRightCol) + pEq = Xsqlite3PExpr(tls, pParse, TK_EQ, pE1, pE2) + + if pEq != 0 { + *(*U32)(unsafe.Pointer(pEq + 4)) |= joinType + + *(*int32)(unsafe.Pointer(pEq + 52)) = (*Expr)(unsafe.Pointer(pE2)).FiTable + } + (*Select)(unsafe.Pointer(p)).FpWhere = Xsqlite3ExprAnd(tls, pParse, (*Select)(unsafe.Pointer(p)).FpWhere, pEq) } + } else if *(*uintptr)(unsafe.Pointer(pRight + 72)) != 0 { + Xsqlite3SetJoinExpr(tls, *(*uintptr)(unsafe.Pointer(pRight + 72)), (*SrcItem)(unsafe.Pointer(pRight)).FiCursor, joinType) + (*Select)(unsafe.Pointer(p)).FpWhere = Xsqlite3ExprAnd(tls, pParse, (*Select)(unsafe.Pointer(p)).FpWhere, *(*uintptr)(unsafe.Pointer(pRight + 72))) + *(*uintptr)(unsafe.Pointer(pRight + 72)) = uintptr(0) + libc.SetBitFieldPtr16Uint32(pRight+60+4, uint32(1), 11, 0x800) } } goto __2 __2: i++ - pRight += 112 - pLeft += 112 + pRight += 104 + pLeft += 104 goto __1 goto __3 __3: @@ -161850,13 +162711,15 @@ __3: return 0 } +var tkCoalesce = Token{Fz: ts + 7864, Fn: uint32(8)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:136105:30 */ + // An instance of this object holds information (beyond pParse and pSelect) // needed to load the next result row that is to be added to the sorter. -type RowLoadInfo = RowLoadInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134813:28 */ +type RowLoadInfo = RowLoadInfo1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:136155:28 */ // This routine does the work of loading query data into an array of // registers so that it can be added to the sorter. -func innerLoopLoadRow(tls *libc.TLS, pParse uintptr, pSelect uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134827:13: */ +func innerLoopLoadRow(tls *libc.TLS, pParse uintptr, pSelect uintptr, pInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:136169:13: */ Xsqlite3ExprCodeExprList(tls, pParse, (*Select)(unsafe.Pointer(pSelect)).FpEList, (*RowLoadInfo)(unsafe.Pointer(pInfo)).FregResult, 0, (*RowLoadInfo)(unsafe.Pointer(pInfo)).FecelFlags) } @@ -161865,7 +162728,7 @@ func innerLoopLoadRow(tls *libc.TLS, pParse uintptr, pSelect uintptr, pInfo uint // added into the sorter. // // Return the register in which the result is stored. -func makeSorterRecord(tls *libc.TLS, pParse uintptr, pSort uintptr, pSelect uintptr, regBase int32, nBase int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134848:12: */ +func makeSorterRecord(tls *libc.TLS, pParse uintptr, pSort uintptr, pSelect uintptr, regBase int32, nBase int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:136190:12: */ var nOBSat int32 = (*SortCtx)(unsafe.Pointer(pSort)).FnOBSat var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var regOut int32 = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) @@ -161878,7 +162741,7 @@ func makeSorterRecord(tls *libc.TLS, pParse uintptr, pSort uintptr, pSelect uint // Generate code that will push the record in registers regData // through regData+nData-1 onto the sorter. -func pushOntoSorter(tls *libc.TLS, pParse uintptr, pSort uintptr, pSelect uintptr, regData int32, regOrigData int32, nData int32, nPrefixReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134869:13: */ +func pushOntoSorter(tls *libc.TLS, pParse uintptr, pSort uintptr, pSelect uintptr, regData int32, regOrigData int32, nData int32, nPrefixReg int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:136211:13: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe // Stmt under construction var bSeq int32 = libc.Bool32(int32((*SortCtx)(unsafe.Pointer(pSort)).FsortFlags)&SORTFLAG_UseSorter == 0) var nExpr int32 = (*ExprList)(unsafe.Pointer((*SortCtx)(unsafe.Pointer(pSort)).FpOrderBy)).FnExpr // No. of ORDER BY terms @@ -161956,7 +162819,7 @@ func pushOntoSorter(tls *libc.TLS, pParse uintptr, pSort uintptr, pSelect uintpt (*VdbeOp)(unsafe.Pointer(pOp)).Fp2 = nKey + nData pKI = *(*uintptr)(unsafe.Pointer(pOp + 16)) libc.Xmemset(tls, (*KeyInfo)(unsafe.Pointer(pKI)).FaSortFlags, 0, uint64((*KeyInfo)(unsafe.Pointer(pKI)).FnKeyField)) // Makes OP_Jump testable - Xsqlite3VdbeChangeP4(tls, v, -1, pKI, -9) + Xsqlite3VdbeChangeP4(tls, v, -1, pKI, -8) *(*uintptr)(unsafe.Pointer(pOp + 16)) = Xsqlite3KeyInfoFromExprList(tls, pParse, (*SortCtx)(unsafe.Pointer(pSort)).FpOrderBy, nOBSat, int32((*KeyInfo)(unsafe.Pointer(pKI)).FnAllField)-int32((*KeyInfo)(unsafe.Pointer(pKI)).FnKeyField)-1) @@ -162021,7 +162884,7 @@ func pushOntoSorter(tls *libc.TLS, pParse uintptr, pSort uintptr, pSelect uintpt } // Add code to implement the OFFSET -func codeOffset(tls *libc.TLS, v uintptr, iOffset int32, iContinue int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135011:13: */ +func codeOffset(tls *libc.TLS, v uintptr, iOffset int32, iContinue int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:136353:13: */ if iOffset > 0 { Xsqlite3VdbeAddOp3(tls, v, OP_IfPos, iOffset, iContinue, 1) @@ -162034,42 +162897,42 @@ func codeOffset(tls *libc.TLS, v uintptr, iOffset int32, iContinue int32) { /* t // are available. Which is used depends on the value of parameter eTnctType, // as follows: // -// WHERE_DISTINCT_UNORDERED/WHERE_DISTINCT_NOOP: -// Build an ephemeral table that contains all entries seen before and -// skip entries which have been seen before. +// WHERE_DISTINCT_UNORDERED/WHERE_DISTINCT_NOOP: +// Build an ephemeral table that contains all entries seen before and +// skip entries which have been seen before. // -// Parameter iTab is the cursor number of an ephemeral table that must -// be opened before the VM code generated by this routine is executed. -// The ephemeral cursor table is queried for a record identical to the -// record formed by the current array of registers. If one is found, -// jump to VM address addrRepeat. Otherwise, insert a new record into -// the ephemeral cursor and proceed. +// Parameter iTab is the cursor number of an ephemeral table that must +// be opened before the VM code generated by this routine is executed. +// The ephemeral cursor table is queried for a record identical to the +// record formed by the current array of registers. If one is found, +// jump to VM address addrRepeat. Otherwise, insert a new record into +// the ephemeral cursor and proceed. // -// The returned value in this case is a copy of parameter iTab. +// The returned value in this case is a copy of parameter iTab. // -// WHERE_DISTINCT_ORDERED: -// In this case rows are being delivered sorted order. The ephermal -// table is not required. Instead, the current set of values -// is compared against previous row. If they match, the new row -// is not distinct and control jumps to VM address addrRepeat. Otherwise, -// the VM program proceeds with processing the new row. +// WHERE_DISTINCT_ORDERED: +// In this case rows are being delivered sorted order. The ephermal +// table is not required. Instead, the current set of values +// is compared against previous row. If they match, the new row +// is not distinct and control jumps to VM address addrRepeat. Otherwise, +// the VM program proceeds with processing the new row. // -// The returned value in this case is the register number of the first -// in an array of registers used to store the previous result row so that -// it can be compared to the next. The caller must ensure that this -// register is initialized to NULL. (The fixDistinctOpenEph() routine -// will take care of this initialization.) +// The returned value in this case is the register number of the first +// in an array of registers used to store the previous result row so that +// it can be compared to the next. The caller must ensure that this +// register is initialized to NULL. (The fixDistinctOpenEph() routine +// will take care of this initialization.) // -// WHERE_DISTINCT_UNIQUE: -// In this case it has already been determined that the rows are distinct. -// No special action is required. The return value is zero. +// WHERE_DISTINCT_UNIQUE: +// In this case it has already been determined that the rows are distinct. +// No special action is required. The return value is zero. // // Parameter pEList is the list of expressions used to generated the // contents of each row. It is used by this routine to determine (a) // how many elements there are in the array of registers and (b) the // collation sequences that should be used for the comparisons if // eTnctType is WHERE_DISTINCT_ORDERED. -func codeDistinct(tls *libc.TLS, pParse uintptr, eTnctType int32, iTab int32, addrRepeat int32, pEList uintptr, regElem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135065:12: */ +func codeDistinct(tls *libc.TLS, pParse uintptr, eTnctType int32, iTab int32, addrRepeat int32, pEList uintptr, regElem int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:136407:12: */ var iRet int32 = 0 var nResultCol int32 = (*ExprList)(unsafe.Pointer(pEList)).FnExpr var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe @@ -162138,19 +163001,19 @@ func codeDistinct(tls *libc.TLS, pParse uintptr, eTnctType int32, iTab int32, ad // WHERE_DISTINCT_NOOP: // WHERE_DISTINCT_UNORDERED: // -// No adjustments necessary. This function is a no-op. +// No adjustments necessary. This function is a no-op. // // WHERE_DISTINCT_UNIQUE: // -// The ephemeral table is not needed. So change the -// OP_OpenEphemeral opcode into an OP_Noop. +// The ephemeral table is not needed. So change the +// OP_OpenEphemeral opcode into an OP_Noop. // // WHERE_DISTINCT_ORDERED: // -// The ephemeral table is not needed. But we do need register -// iVal to be initialized to NULL. So change the OP_OpenEphemeral -// into an OP_Null on the iVal register. -func fixDistinctOpenEph(tls *libc.TLS, pParse uintptr, eTnctType int32, iVal int32, iOpenEphAddr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135149:13: */ +// The ephemeral table is not needed. But we do need register +// iVal to be initialized to NULL. So change the OP_OpenEphemeral +// into an OP_Null on the iVal register. +func fixDistinctOpenEph(tls *libc.TLS, pParse uintptr, eTnctType int32, iVal int32, iOpenEphAddr int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:136491:13: */ if (*Parse)(unsafe.Pointer(pParse)).FnErr == 0 && (eTnctType == WHERE_DISTINCT_UNIQUE || eTnctType == WHERE_DISTINCT_ORDERED) { var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe @@ -162178,7 +163041,7 @@ func fixDistinctOpenEph(tls *libc.TLS, pParse uintptr, eTnctType int32, iVal int // are evaluated in order to get the data for this row. If srcTab is // zero or more, then data is pulled from srcTab and p->pEList is used only // to get the number of columns and the collation sequence for each column. -func selectInnerLoop(tls *libc.TLS, pParse uintptr, p uintptr, srcTab int32, pSort uintptr, pDistinct uintptr, pDest uintptr, iContinue int32, iBreak int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135271:13: */ +func selectInnerLoop(tls *libc.TLS, pParse uintptr, p uintptr, srcTab int32, pSort uintptr, pDistinct uintptr, pDest uintptr, iContinue int32, iBreak int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:136613:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -162534,7 +163397,7 @@ func selectInnerLoop(tls *libc.TLS, pParse uintptr, p uintptr, srcTab int32, pSo // Allocate a KeyInfo object sufficient for an index of N key columns and // X extra columns. -func Xsqlite3KeyInfoAlloc(tls *libc.TLS, db uintptr, N int32, X int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135665:24: */ +func Xsqlite3KeyInfoAlloc(tls *libc.TLS, db uintptr, N int32, X int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137007:24: */ var nExtra int32 = int32(uint64(N+X)*(uint64(unsafe.Sizeof(uintptr(0)))+uint64(1)) - uint64(unsafe.Sizeof(uintptr(0)))) var p uintptr = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(KeyInfo{}))+uint64(nExtra)) if p != 0 { @@ -162552,7 +163415,7 @@ func Xsqlite3KeyInfoAlloc(tls *libc.TLS, db uintptr, N int32, X int32) uintptr { } // Deallocate a KeyInfo object -func Xsqlite3KeyInfoUnref(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135685:21: */ +func Xsqlite3KeyInfoUnref(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137027:21: */ if p != 0 { (*KeyInfo)(unsafe.Pointer(p)).FnRef-- @@ -162563,7 +163426,7 @@ func Xsqlite3KeyInfoUnref(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgam } // Make a new pointer to a KeyInfo object -func Xsqlite3KeyInfoRef(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135696:24: */ +func Xsqlite3KeyInfoRef(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137038:24: */ if p != 0 { (*KeyInfo)(unsafe.Pointer(p)).FnRef++ @@ -162583,7 +163446,7 @@ func Xsqlite3KeyInfoRef(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-a // Space to hold the KeyInfo structure is obtained from malloc. The calling // function is responsible for seeing that this structure is eventually // freed. -func Xsqlite3KeyInfoFromExprList(tls *libc.TLS, pParse uintptr, pList uintptr, iStart int32, nExtra int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135728:24: */ +func Xsqlite3KeyInfoFromExprList(tls *libc.TLS, pParse uintptr, pList uintptr, iStart int32, nExtra int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137070:24: */ var nExpr int32 var pInfo uintptr var pItem uintptr @@ -162602,7 +163465,7 @@ func Xsqlite3KeyInfoFromExprList(tls *libc.TLS, pParse uintptr, pList uintptr, i } { *(*uintptr)(unsafe.Pointer(pInfo + 32 + uintptr(i-iStart)*8)) = Xsqlite3ExprNNCollSeq(tls, pParse, (*ExprList_item)(unsafe.Pointer(pItem)).FpExpr) - *(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pInfo)).FaSortFlags + uintptr(i-iStart))) = (*ExprList_item)(unsafe.Pointer(pItem)).FsortFlags + *(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pInfo)).FaSortFlags + uintptr(i-iStart))) = (*ExprList_item)(unsafe.Pointer(pItem)).Ffg.FsortFlags } goto __2 @@ -162617,20 +163480,20 @@ func Xsqlite3KeyInfoFromExprList(tls *libc.TLS, pParse uintptr, pList uintptr, i } // Name of the connection operator, used for error messages. -func Xsqlite3SelectOpName(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135755:27: */ +func Xsqlite3SelectOpName(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137097:27: */ var z uintptr switch id { case TK_ALL: - z = ts + 19954 /* "UNION ALL" */ + z = ts + 19897 /* "UNION ALL" */ break case TK_INTERSECT: - z = ts + 19964 /* "INTERSECT" */ + z = ts + 19907 /* "INTERSECT" */ break case TK_EXCEPT: - z = ts + 19974 /* "EXCEPT" */ + z = ts + 19917 /* "EXCEPT" */ break default: - z = ts + 19981 /* "UNION" */ + z = ts + 19924 /* "UNION" */ break } return z @@ -162640,15 +163503,15 @@ func Xsqlite3SelectOpName(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite- // is a no-op. Otherwise, it adds a single row of output to the EQP result, // where the caption is of the form: // -// "USE TEMP B-TREE FOR xxx" +// "USE TEMP B-TREE FOR xxx" // // where xxx is one of "DISTINCT", "ORDER BY" or "GROUP BY". Exactly which // is determined by the zUsage argument. -func explainTempTable(tls *libc.TLS, pParse uintptr, zUsage uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135777:13: */ +func explainTempTable(tls *libc.TLS, pParse uintptr, zUsage uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137119:13: */ bp := tls.Alloc(8) defer tls.Free(8) - Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+19987, libc.VaList(bp, zUsage)) + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+19930, libc.VaList(bp, zUsage)) } // Assign expression b to lvalue a. A second, no-op, version of this macro @@ -162661,7 +163524,7 @@ func explainTempTable(tls *libc.TLS, pParse uintptr, zUsage uintptr) { /* testda // then the results were placed in a sorter. After the loop is terminated // we need to run the sorter and output the results. The following // routine generates the code needed to do that. -func generateSortTail(tls *libc.TLS, pParse uintptr, p uintptr, pSort uintptr, nColumn int32, pDest uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:135803:13: */ +func generateSortTail(tls *libc.TLS, pParse uintptr, p uintptr, pSort uintptr, nColumn int32, pDest uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137145:13: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe // The prepared statement var addrBreak int32 = (*SortCtx)(unsafe.Pointer(pSort)).FlabelDone // Jump here to exit loop var addrContinue int32 = Xsqlite3VdbeMakeLabel(tls, pParse) // Jump here for next cycle @@ -162831,16 +163694,16 @@ func generateSortTail(tls *libc.TLS, pParse uintptr, p uintptr, pSort uintptr, n // result-set expression in all of the following SELECT statements is // considered a column by this function. // -// SELECT col FROM tbl; -// SELECT (SELECT col FROM tbl; -// SELECT (SELECT col FROM tbl); -// SELECT abc FROM (SELECT col AS abc FROM tbl); +// SELECT col FROM tbl; +// SELECT (SELECT col FROM tbl; +// SELECT (SELECT col FROM tbl); +// SELECT abc FROM (SELECT col AS abc FROM tbl); // // The declaration type for any expression other than a column is NULL. // // This routine has either 3 or 6 parameters depending on whether or not // the SQLITE_ENABLE_COLUMN_METADATA compile-time option is used. -func columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr, pzOrigTab uintptr, pzOrigCol uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136031:19: */ +func columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr, pzOrigTab uintptr, pzOrigCol uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137373:19: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -162861,11 +163724,11 @@ func columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr, var iCol int32 = int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) // Index of column in pTab for pNC != 0 && !(pTab != 0) { var pTabList uintptr = (*NameContext)(unsafe.Pointer(pNC)).FpSrcList - for j = 0; j < (*SrcList)(unsafe.Pointer(pTabList)).FnSrc && (*SrcItem)(unsafe.Pointer(pTabList+8 /* &.a */ +uintptr(j)*112)).FiCursor != (*Expr)(unsafe.Pointer(pExpr)).FiTable; j++ { + for j = 0; j < (*SrcList)(unsafe.Pointer(pTabList)).FnSrc && (*SrcItem)(unsafe.Pointer(pTabList+8 /* &.a */ +uintptr(j)*104)).FiCursor != (*Expr)(unsafe.Pointer(pExpr)).FiTable; j++ { } if j < (*SrcList)(unsafe.Pointer(pTabList)).FnSrc { - pTab = (*SrcItem)(unsafe.Pointer(pTabList + 8 + uintptr(j)*112)).FpTab - pS = (*SrcItem)(unsafe.Pointer(pTabList + 8 + uintptr(j)*112)).FpSelect + pTab = (*SrcItem)(unsafe.Pointer(pTabList + 8 + uintptr(j)*104)).FpTab + pS = (*SrcItem)(unsafe.Pointer(pTabList + 8 + uintptr(j)*104)).FpSelect } else { pNC = (*NameContext)(unsafe.Pointer(pNC)).FpNext } @@ -162918,7 +163781,7 @@ func columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr, if iCol < 0 { zType = ts + 1089 /* "INTEGER" */ - *(*uintptr)(unsafe.Pointer(bp + 72 /* zOrigCol */)) = ts + 17532 /* "rowid" */ + *(*uintptr)(unsafe.Pointer(bp + 72 /* zOrigCol */)) = ts + 17562 /* "rowid" */ } else { *(*uintptr)(unsafe.Pointer(bp + 72 /* zOrigCol */)) = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*24)).FzCnName zType = Xsqlite3ColumnType(tls, (*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(iCol)*24, uintptr(0)) @@ -162964,7 +163827,7 @@ func columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr, // Generate code that will tell the VDBE the declaration types of columns // in the result set. -func generateColumnTypes(tls *libc.TLS, pParse uintptr, pTabList uintptr, pEList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136182:13: */ +func generateColumnTypes(tls *libc.TLS, pParse uintptr, pTabList uintptr, pEList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137524:13: */ bp := tls.Alloc(80) defer tls.Free(80) @@ -163009,19 +163872,19 @@ func generateColumnTypes(tls *libc.TLS, pParse uintptr, pTabList uintptr, pEList // applications should operate this way. Nevertheless, we need to support the // other modes for legacy: // -// short=OFF, full=OFF: Column name is the text of the expression has it -// originally appears in the SELECT statement. In -// other words, the zSpan of the result expression. +// short=OFF, full=OFF: Column name is the text of the expression has it +// originally appears in the SELECT statement. In +// other words, the zSpan of the result expression. // -// short=ON, full=OFF: (This is the default setting). If the result -// refers directly to a table column, then the -// result column name is just the table column -// name: COLUMN. Otherwise use zSpan. +// short=ON, full=OFF: (This is the default setting). If the result +// refers directly to a table column, then the +// result column name is just the table column +// name: COLUMN. Otherwise use zSpan. // -// full=ON, short=ANY: If the result refers directly to a table column, -// then the result column name with the table name -// prefix, ex: TABLE.COLUMN. Otherwise use zSpan. -func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136249:21: */ +// full=ON, short=ANY: If the result refers directly to a table column, +// then the result column name with the table name +// prefix, ex: TABLE.COLUMN. Otherwise use zSpan. +func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137591:21: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -163059,7 +163922,7 @@ func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr) // Agg processing has not run yet // Covering idx not yet coded - if (*ExprList_item)(unsafe.Pointer(pEList+8+uintptr(i)*32)).FzEName != 0 && int32(*(*uint8)(unsafe.Pointer(pEList + 8 + uintptr(i)*32 + 20))&0x3>>0) == ENAME_NAME { + if (*ExprList_item)(unsafe.Pointer(pEList+8+uintptr(i)*32)).FzEName != 0 && int32(*(*uint16)(unsafe.Pointer(pEList + 8 + uintptr(i)*32 + 16 + 4))&0x3>>0) == ENAME_NAME { // An AS clause always takes first priority var zName uintptr = (*ExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(i)*32)).FzEName Xsqlite3VdbeSetColName(tls, v, i, COLNAME_NAME, zName, libc.UintptrFromInt32(-1)) @@ -163073,29 +163936,25 @@ func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr) } if iCol < 0 { - zCol = ts + 17532 /* "rowid" */ + zCol = ts + 17562 /* "rowid" */ } else { zCol = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*24)).FzCnName } if fullName != 0 { var zName uintptr = uintptr(0) - zName = Xsqlite3MPrintf(tls, db, ts+13298, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, zCol)) - Xsqlite3VdbeSetColName(tls, v, i, COLNAME_NAME, zName, *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr) uintptr - }{Xsqlite3OomFault}))) + zName = Xsqlite3MPrintf(tls, db, ts+13337, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, zCol)) + Xsqlite3VdbeSetColName(tls, v, i, COLNAME_NAME, zName, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3OomClear}))) } else { Xsqlite3VdbeSetColName(tls, v, i, COLNAME_NAME, zCol, libc.UintptrFromInt32(-1)) } } else { var z uintptr = (*ExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(i)*32)).FzEName if z == uintptr(0) { - z = Xsqlite3MPrintf(tls, db, ts+20010, libc.VaList(bp+16, i+1)) + z = Xsqlite3MPrintf(tls, db, ts+19953, libc.VaList(bp+16, i+1)) } else { z = Xsqlite3DbStrDup(tls, db, z) } - Xsqlite3VdbeSetColName(tls, v, i, COLNAME_NAME, z, *(*uintptr)(unsafe.Pointer(&struct { - f func(*libc.TLS, uintptr) uintptr - }{Xsqlite3OomFault}))) + Xsqlite3VdbeSetColName(tls, v, i, COLNAME_NAME, z, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3OomClear}))) } } generateColumnTypes(tls, pParse, pTabList, pEList) @@ -163121,7 +163980,7 @@ func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr) // when modifying this routine to avoid breaking legacy. // // See Also: sqlite3GenerateColumnNames() -func Xsqlite3ColumnsFromExprList(tls *libc.TLS, pParse uintptr, pEList uintptr, pnCol uintptr, paCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136342:20: */ +func Xsqlite3ColumnsFromExprList(tls *libc.TLS, pParse uintptr, pEList uintptr, pnCol uintptr, paCol uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137684:20: */ bp := tls.Alloc(60) defer tls.Free(60) @@ -163162,46 +164021,52 @@ __1: goto __3 } { + var pX uintptr = pEList + 8 + uintptr(i)*32 + var pCollide uintptr // Get an appropriate name for the column - if libc.AssignUintptr(&zName, (*ExprList_item)(unsafe.Pointer(pEList+8+uintptr(i)*32)).FzEName) != uintptr(0) && int32(*(*uint8)(unsafe.Pointer(pEList + 8 + uintptr(i)*32 + 20))&0x3>>0) == ENAME_NAME { + if libc.AssignUintptr(&zName, (*ExprList_item)(unsafe.Pointer(pX)).FzEName) != uintptr(0) && int32(*(*uint16)(unsafe.Pointer(pX + 16 + 4))&0x3>>0) == ENAME_NAME { // If the column contains an "AS <name>" phrase, use <name> as the name } else { - var pColExpr uintptr = Xsqlite3ExprSkipCollateAndLikely(tls, (*ExprList_item)(unsafe.Pointer(pEList+8+uintptr(i)*32)).FpExpr) + var pColExpr uintptr = Xsqlite3ExprSkipCollateAndLikely(tls, (*ExprList_item)(unsafe.Pointer(pX)).FpExpr) for pColExpr != uintptr(0) && int32((*Expr)(unsafe.Pointer(pColExpr)).Fop) == TK_DOT { pColExpr = (*Expr)(unsafe.Pointer(pColExpr)).FpRight } if int32((*Expr)(unsafe.Pointer(pColExpr)).Fop) == TK_COLUMN && (*Expr)(unsafe.Pointer(pColExpr)).Fflags&U32(EP_WinFunc|EP_Subrtn) == U32(0) && - libc.AssignUintptr(&pTab, *(*uintptr)(unsafe.Pointer(pColExpr + 64))) != uintptr(0) { + *(*uintptr)(unsafe.Pointer(pColExpr + 64)) != uintptr(0) { // For columns use the column name name var iCol int32 = int32((*Expr)(unsafe.Pointer(pColExpr)).FiColumn) + pTab = *(*uintptr)(unsafe.Pointer(pColExpr + 64)) if iCol < 0 { iCol = int32((*Table)(unsafe.Pointer(pTab)).FiPKey) } if iCol >= 0 { zName = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(iCol)*24)).FzCnName } else { - zName = ts + 17532 /* "rowid" */ + zName = ts + 17562 /* "rowid" */ } } else if int32((*Expr)(unsafe.Pointer(pColExpr)).Fop) == TK_ID { zName = *(*uintptr)(unsafe.Pointer(pColExpr + 8)) } else { // Use the original text of the column expression as its name - zName = (*ExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(i)*32)).FzEName + // pointer comparison intended } } if zName != 0 && !(Xsqlite3IsTrueOrFalse(tls, zName) != 0) { zName = Xsqlite3DbStrDup(tls, db, zName) } else { - zName = Xsqlite3MPrintf(tls, db, ts+20010, libc.VaList(bp, i+1)) + zName = Xsqlite3MPrintf(tls, db, ts+19953, libc.VaList(bp, i+1)) } // Make sure the column name is unique. If the name is not unique, // append an integer to the name so that it becomes unique. *(*U32)(unsafe.Pointer(bp + 56 /* cnt */)) = U32(0) - for zName != 0 && Xsqlite3HashFind(tls, bp+32, zName) != uintptr(0) { + for zName != 0 && libc.AssignUintptr(&pCollide, Xsqlite3HashFind(tls, bp+32, zName)) != uintptr(0) { + if uint32(int32(*(*uint16)(unsafe.Pointer(pCollide + 16 + 4))&0x80>>7)) != 0 { + *(*U16)(unsafe.Pointer(pCol + 16)) |= U16(COLFLAG_NOEXPAND) + } nName = Xsqlite3Strlen30(tls, zName) if nName > 0 { for j = nName - 1; j > 0 && int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zName + uintptr(j))))])&0x04 != 0; j-- { @@ -163210,15 +164075,18 @@ __1: nName = j } } - zName = Xsqlite3MPrintf(tls, db, ts+20019, libc.VaList(bp+8, nName, zName, libc.PreIncUint32(&*(*U32)(unsafe.Pointer(bp + 56 /* cnt */)), 1))) + zName = Xsqlite3MPrintf(tls, db, ts+19962, libc.VaList(bp+8, nName, zName, libc.PreIncUint32(&*(*U32)(unsafe.Pointer(bp + 56 /* cnt */)), 1))) if *(*U32)(unsafe.Pointer(bp + 56)) > U32(3) { Xsqlite3_randomness(tls, int32(unsafe.Sizeof(U32(0))), bp+56) } } (*Column)(unsafe.Pointer(pCol)).FzCnName = zName (*Column)(unsafe.Pointer(pCol)).FhName = Xsqlite3StrIHash(tls, zName) + if uint32(int32(*(*uint16)(unsafe.Pointer(pX + 16 + 4))&0x100>>8)) != 0 { + *(*U16)(unsafe.Pointer(pCol + 16)) |= U16(COLFLAG_NOEXPAND) + } - if zName != 0 && Xsqlite3HashInsert(tls, bp+32, zName, pCol) == pCol { + if zName != 0 && Xsqlite3HashInsert(tls, bp+32, zName, pX) == pX { Xsqlite3OomFault(tls, db) } @@ -163253,7 +164121,7 @@ __3: // // This routine requires that all identifiers in the SELECT // statement be resolved. -func Xsqlite3SelectAddColumnTypeAndCollation(tls *libc.TLS, pParse uintptr, pTab uintptr, pSelect uintptr, aff int8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136449:21: */ +func Xsqlite3SelectAddColumnTypeAndCollation(tls *libc.TLS, pParse uintptr, pTab uintptr, pSelect uintptr, aff int8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137800:21: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -163322,7 +164190,7 @@ __3: // Given a SELECT statement, generate a Table structure that describes // the result set of that SELECT. -func Xsqlite3ResultSetOfSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, aff int8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136504:22: */ +func Xsqlite3ResultSetOfSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, aff int8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137855:22: */ var pTab uintptr var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var savedFlags U64 @@ -163357,7 +164225,7 @@ func Xsqlite3ResultSetOfSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, a // Get a VDBE for the given parser context. Create a new one if necessary. // If an error occurs, return NULL and leave a message in pParse. -func Xsqlite3GetVdbe(tls *libc.TLS, pParse uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136537:21: */ +func Xsqlite3GetVdbe(tls *libc.TLS, pParse uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137888:21: */ if (*Parse)(unsafe.Pointer(pParse)).FpVdbe != 0 { return (*Parse)(unsafe.Pointer(pParse)).FpVdbe } @@ -163389,7 +164257,7 @@ func Xsqlite3GetVdbe(tls *libc.TLS, pParse uintptr) uintptr { /* testdata/sqlite // redefined. The UNION ALL operator uses this property to force // the reuse of the same limit and offset registers across multiple // SELECT statements. -func computeLimitRegisters(tls *libc.TLS, pParse uintptr, p uintptr, iBreak int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136573:13: */ +func computeLimitRegisters(tls *libc.TLS, pParse uintptr, p uintptr, iBreak int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137924:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -163446,7 +164314,7 @@ func computeLimitRegisters(tls *libc.TLS, pParse uintptr, p uintptr, iBreak int3 // // The collating sequence for the compound select is taken from the // left-most term of the select that has a collating sequence. -func multiSelectCollSeq(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136630:16: */ +func multiSelectCollSeq(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:137981:16: */ var pRet uintptr if (*Select)(unsafe.Pointer(p)).FpPrior != 0 { pRet = multiSelectCollSeq(tls, pParse, (*Select)(unsafe.Pointer(p)).FpPrior, iCol) @@ -163470,7 +164338,7 @@ func multiSelectCollSeq(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) ui // Space to hold the KeyInfo structure is obtained from malloc. The calling // function is responsible for ensuring that this structure is eventually // freed. -func multiSelectOrderByKeyInfo(tls *libc.TLS, pParse uintptr, p uintptr, nExtra int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136656:16: */ +func multiSelectOrderByKeyInfo(tls *libc.TLS, pParse uintptr, p uintptr, nExtra int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:138007:16: */ var pOrderBy uintptr = (*Select)(unsafe.Pointer(p)).FpOrderBy var nOrderBy int32 if pOrderBy != uintptr(0) { @@ -163498,7 +164366,7 @@ func multiSelectOrderByKeyInfo(tls *libc.TLS, pParse uintptr, p uintptr, nExtra } *(*uintptr)(unsafe.Pointer(pRet + 32 + uintptr(i)*8)) = pColl - *(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pRet)).FaSortFlags + uintptr(i))) = (*ExprList_item)(unsafe.Pointer(pOrderBy + 8 + uintptr(i)*32)).FsortFlags + *(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pRet)).FaSortFlags + uintptr(i))) = (*ExprList_item)(unsafe.Pointer(pOrderBy + 8 + uintptr(i)*32)).Ffg.FsortFlags } } @@ -163508,10 +164376,9 @@ func multiSelectOrderByKeyInfo(tls *libc.TLS, pParse uintptr, p uintptr, nExtra // This routine generates VDBE code to compute the content of a WITH RECURSIVE // query of the form: // -// <recursive-table> AS (<setup-query> UNION [ALL] <recursive-query>) -// \___________/ \_______________/ -// p->pPrior p -// +// <recursive-table> AS (<setup-query> UNION [ALL] <recursive-query>) +// \___________/ \_______________/ +// p->pPrior p // // There is exactly one reference to the recursive-table in the FROM clause // of recursive-query, marked with the SrcList->a[].fg.isRecursive flag. @@ -163539,7 +164406,7 @@ func multiSelectOrderByKeyInfo(tls *libc.TLS, pParse uintptr, p uintptr, nExtra // with a positive value, then the first OFFSET outputs are discarded rather // than being sent to pDest. The LIMIT count does not begin until after OFFSET // rows have been skipped. -func generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136722:13: */ +func generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:138073:13: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -163575,7 +164442,7 @@ func generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest if !((*Select)(unsafe.Pointer(p)).FpWin != 0) { goto __1 } - Xsqlite3ErrorMsg(tls, pParse, ts+20027, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+19970, 0) return __1: ; @@ -163605,10 +164472,10 @@ __3: if !(i < (*SrcList)(unsafe.Pointer(pSrc)).FnSrc) { goto __5 } - if !(uint32(int32(*(*uint16)(unsafe.Pointer(pSrc + 8 + uintptr(i)*112 + 60 + 4))&0x20>>5)) != 0) { + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104 + 60 + 4))&0x40>>6)) != 0) { goto __6 } - iCurrent = (*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i)*112)).FiCursor + iCurrent = (*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104)).FiCursor goto __5 __6: ; @@ -163652,7 +164519,7 @@ __8: } pKeyInfo = multiSelectOrderByKeyInfo(tls, pParse, p, 1) Xsqlite3VdbeAddOp4(tls, v, OP_OpenEphemeral, iQueue, (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr+2, 0, - pKeyInfo, -9) + pKeyInfo, -8) (*SelectDest)(unsafe.Pointer(bp /* &destQueue */)).FpOrderBy = pOrderBy goto __10 __9: @@ -163685,7 +164552,7 @@ __12: if !((*Select)(unsafe.Pointer(pFirstRec)).FselFlags&U32(SF_Aggregate) != 0) { goto __15 } - Xsqlite3ErrorMsg(tls, pParse, ts+20076, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+20019, 0) goto end_of_recursive_query __15: ; @@ -163707,7 +164574,7 @@ __14: // Store the results of the setup-query in Queue. pSetup = (*Select)(unsafe.Pointer(pFirstRec)).FpPrior (*Select)(unsafe.Pointer(pSetup)).FpNext = uintptr(0) - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20118, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20061, 0) rc = Xsqlite3Select(tls, pParse, pSetup, bp) (*Select)(unsafe.Pointer(pSetup)).FpNext = p if !(rc != 0) { @@ -163750,7 +164617,7 @@ __20: // Execute the recursive SELECT taking the single row in Current as // the value for the recursive-table. Store the results in the Queue. (*Select)(unsafe.Pointer(pFirstRec)).FpPrior = uintptr(0) - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20124, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20067, 0) Xsqlite3Select(tls, pParse, p, bp) (*Select)(unsafe.Pointer(pFirstRec)).FpPrior = pSetup @@ -163772,15 +164639,16 @@ end_of_recursive_query: // on a VALUES clause. // // Because the Select object originates from a VALUES clause: -// (1) There is no LIMIT or OFFSET or else there is a LIMIT of exactly 1 -// (2) All terms are UNION ALL -// (3) There is no ORDER BY clause +// +// (1) There is no LIMIT or OFFSET or else there is a LIMIT of exactly 1 +// (2) All terms are UNION ALL +// (3) There is no ORDER BY clause // // The "LIMIT of exactly 1" case of condition (1) comes about when a VALUES // clause occurs within scalar expression (ex: "SELECT (VALUES(1),(2),(3))"). // The sqlite3CodeSubselect will have added the LIMIT 1 clause in tht case. -// Since the limit is exactly 1, we only need to evalutes the left-most VALUES. -func multiSelectValues(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136898:12: */ +// Since the limit is exactly 1, we only need to evaluate the left-most VALUES. +func multiSelectValues(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:138249:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -163800,11 +164668,11 @@ func multiSelectValues(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) p = (*Select)(unsafe.Pointer(p)).FpPrior nRow = nRow + bShowAll } - Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+20139, libc.VaList(bp, nRow, func() uintptr { + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+20082, libc.VaList(bp, nRow, func() uintptr { if nRow == 1 { return ts + 1524 /* "" */ } - return ts + 20162 /* "S" */ + return ts + 20105 /* "S" */ }())) for p != 0 { selectInnerLoop(tls, pParse, p, -1, uintptr(0), uintptr(0), pDest, 1, 1) @@ -163820,7 +164688,7 @@ func multiSelectValues(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) // Return true if the SELECT statement which is known to be the recursive // part of a recursive CTE still has its anchor terms attached. If the // anchor terms have already been removed, then return false. -func hasAnchor(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136935:12: */ +func hasAnchor(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:138286:12: */ for p != 0 && (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Recursive) != U32(0) { p = (*Select)(unsafe.Pointer(p)).FpPrior } @@ -163840,15 +164708,15 @@ func hasAnchor(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation // // Example 1: Consider a three-way compound SQL statement. // -// SELECT a FROM t1 UNION SELECT b FROM t2 UNION SELECT c FROM t3 +// SELECT a FROM t1 UNION SELECT b FROM t2 UNION SELECT c FROM t3 // // This statement is parsed up as follows: // -// SELECT c FROM t3 -// | -// `-----> SELECT b FROM t2 -// | -// `------> SELECT a FROM t1 +// SELECT c FROM t3 +// | +// `-----> SELECT b FROM t2 +// | +// `------> SELECT a FROM t1 // // The arrows in the diagram above represent the Select.pPrior pointer. // So if this routine is called with p equal to the t3 query, then @@ -163856,7 +164724,7 @@ func hasAnchor(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation // // Notice that because of the way SQLite parses compound SELECTs, the // individual selects always group from left to right. -func multiSelect(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:136971:12: */ +func multiSelect(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:138322:12: */ bp := tls.Alloc(144) defer tls.Free(144) @@ -163956,8 +164824,8 @@ __6: if !((*Select)(unsafe.Pointer(pPrior)).FpPrior == uintptr(0)) { goto __8 } - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20164, 0) - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20179, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20107, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20122, 0) __8: ; @@ -164006,7 +164874,7 @@ __16: ; __15: ; - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19954, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19897, 0) rc = Xsqlite3Select(tls, pParse, p, bp+16) @@ -164082,7 +164950,7 @@ __23: pLimit = (*Select)(unsafe.Pointer(p)).FpLimit (*Select)(unsafe.Pointer(p)).FpLimit = uintptr(0) (*SelectDest)(unsafe.Pointer(bp + 64 /* &uniondest */)).FeDest = op - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20198, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20141, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) rc = Xsqlite3Select(tls, pParse, p, bp+64) @@ -164154,7 +165022,7 @@ __26: pLimit1 = (*Select)(unsafe.Pointer(p)).FpLimit (*Select)(unsafe.Pointer(p)).FpLimit = uintptr(0) (*SelectDest)(unsafe.Pointer(bp + 104 /* &intersectdest */)).FiSDParm = tab2 - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20198, libc.VaList(bp+8, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20141, libc.VaList(bp+8, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) rc = Xsqlite3Select(tls, pParse, p, bp+104) @@ -164281,7 +165149,7 @@ __43: ; Xsqlite3VdbeChangeP2(tls, v, addr3, nCol) Xsqlite3VdbeChangeP4(tls, v, addr3, Xsqlite3KeyInfoRef(tls, pKeyInfo), - -9) + -8) *(*int32)(unsafe.Pointer(pLoop + 20 + uintptr(i)*4)) = -1 goto __41 __41: @@ -164319,15 +165187,15 @@ __44: // Error message for when two or more terms of a compound select have different // size result sets. -func Xsqlite3SelectWrongNumTermsError(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:137327:21: */ +func Xsqlite3SelectWrongNumTermsError(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:138678:21: */ bp := tls.Alloc(8) defer tls.Free(8) if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Values) != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+20219, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+20162, 0) } else { Xsqlite3ErrorMsg(tls, pParse, - ts+20265, + ts+20208, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) } } @@ -164350,7 +165218,7 @@ func Xsqlite3SelectWrongNumTermsError(tls *libc.TLS, pParse uintptr, p uintptr) // // If the LIMIT found in p->iLimit is reached, jump immediately to // iBreak. -func generateOutputSubroutine(tls *libc.TLS, pParse uintptr, p uintptr, pIn uintptr, pDest uintptr, regReturn int32, regPrev int32, pKeyInfo uintptr, iBreak int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:137357:12: */ +func generateOutputSubroutine(tls *libc.TLS, pParse uintptr, p uintptr, pIn uintptr, pDest uintptr, regReturn int32, regPrev int32, pKeyInfo uintptr, iBreak int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:138708:12: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var iContinue int32 var addr int32 @@ -164364,7 +165232,7 @@ func generateOutputSubroutine(tls *libc.TLS, pParse uintptr, p uintptr, pIn uint var addr2 int32 addr1 = Xsqlite3VdbeAddOp1(tls, v, OP_IfNot, regPrev) addr2 = Xsqlite3VdbeAddOp4(tls, v, OP_Compare, (*SelectDest)(unsafe.Pointer(pIn)).FiSdst, regPrev+1, (*SelectDest)(unsafe.Pointer(pIn)).FnSdst, - Xsqlite3KeyInfoRef(tls, pKeyInfo), -9) + Xsqlite3KeyInfoRef(tls, pKeyInfo), -8) Xsqlite3VdbeAddOp3(tls, v, OP_Jump, addr2+2, iContinue, addr2+2) Xsqlite3VdbeJumpHere(tls, v, addr1) Xsqlite3VdbeAddOp3(tls, v, OP_Copy, (*SelectDest)(unsafe.Pointer(pIn)).FiSdst, regPrev+1, (*SelectDest)(unsafe.Pointer(pIn)).FnSdst-1) @@ -164468,7 +165336,7 @@ func generateOutputSubroutine(tls *libc.TLS, pParse uintptr, p uintptr, pIn uint // // We assume a query of the following form: // -// <selectA> <operator> <selectB> ORDER BY <orderbylist> +// <selectA> <operator> <selectB> ORDER BY <orderbylist> // // <operator> is one of UNION ALL, UNION, EXCEPT, or INTERSECT. The idea // is to code both <selectA> and <selectB> with the ORDER BY clause as @@ -164476,39 +165344,38 @@ func generateOutputSubroutine(tls *libc.TLS, pParse uintptr, p uintptr, pIn uint // into the output. In addition to the two coroutines (called selectA and // selectB) there are 7 subroutines: // -// outA: Move the output of the selectA coroutine into the output -// of the compound query. +// outA: Move the output of the selectA coroutine into the output +// of the compound query. // -// outB: Move the output of the selectB coroutine into the output -// of the compound query. (Only generated for UNION and -// UNION ALL. EXCEPT and INSERTSECT never output a row that -// appears only in B.) +// outB: Move the output of the selectB coroutine into the output +// of the compound query. (Only generated for UNION and +// UNION ALL. EXCEPT and INSERTSECT never output a row that +// appears only in B.) // -// AltB: Called when there is data from both coroutines and A<B. +// AltB: Called when there is data from both coroutines and A<B. // -// AeqB: Called when there is data from both coroutines and A==B. +// AeqB: Called when there is data from both coroutines and A==B. // -// AgtB: Called when there is data from both coroutines and A>B. +// AgtB: Called when there is data from both coroutines and A>B. // -// EofA: Called when data is exhausted from selectA. +// EofA: Called when data is exhausted from selectA. // -// EofB: Called when data is exhausted from selectB. +// EofB: Called when data is exhausted from selectB. // // The implementation of the latter five subroutines depend on which // <operator> is used: // +// UNION ALL UNION EXCEPT INTERSECT +// ------------- ----------------- -------------- ----------------- +// AltB: outA, nextA outA, nextA outA, nextA nextA // -// UNION ALL UNION EXCEPT INTERSECT -// ------------- ----------------- -------------- ----------------- -// AltB: outA, nextA outA, nextA outA, nextA nextA -// -// AeqB: outA, nextA nextA nextA outA, nextA +// AeqB: outA, nextA nextA nextA outA, nextA // -// AgtB: outB, nextB outB, nextB nextB nextB +// AgtB: outB, nextB outB, nextB nextB nextB // -// EofA: outB, nextB outB, nextB halt halt +// EofA: outB, nextB outB, nextB halt halt // -// EofB: outA, nextA outA, nextA outA, nextA halt +// EofB: outA, nextA outA, nextA outA, nextA halt // // In the AltB, AeqB, and AgtB subroutines, an EOF on A following nextA // causes an immediate jump to EofA and an EOF on B following nextB causes @@ -164523,30 +165390,30 @@ func generateOutputSubroutine(tls *libc.TLS, pParse uintptr, p uintptr, pIn uint // The implementation plan is to implement the two coroutines and seven // subroutines first, then put the control logic at the bottom. Like this: // -// goto Init -// coA: coroutine for left query (A) -// coB: coroutine for right query (B) -// outA: output one row of A -// outB: output one row of B (UNION and UNION ALL only) -// EofA: ... -// EofB: ... -// AltB: ... -// AeqB: ... -// AgtB: ... -// Init: initialize coroutine registers -// yield coA -// if eof(A) goto EofA -// yield coB -// if eof(B) goto EofB -// Cmpr: Compare A, B -// Jump AltB, AeqB, AgtB -// End: ... +// goto Init +// coA: coroutine for left query (A) +// coB: coroutine for right query (B) +// outA: output one row of A +// outB: output one row of B (UNION and UNION ALL only) +// EofA: ... +// EofB: ... +// AltB: ... +// AeqB: ... +// AgtB: ... +// Init: initialize coroutine registers +// yield coA +// if eof(A) goto EofA +// yield coB +// if eof(B) goto EofB +// Cmpr: Compare A, B +// Jump AltB, AeqB, AgtB +// End: ... // // We call AltB, AeqB, AgtB, EofA, and EofB "subroutines" but they are not // actually called using Gosub and they do not Return. EofA and EofB loop // until all data is exhausted then jump to the "end" labe. AltB, AeqB, // and AgtB jump to either L2 or to one of EofA or EofB. -func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:137565:12: */ +func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:138916:12: */ bp := tls.Alloc(88) defer tls.Free(88) @@ -164724,8 +165591,8 @@ func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) (*Select)(unsafe.Pointer(pPrior)).FpNext = uintptr(0) (*Select)(unsafe.Pointer(pPrior)).FpOrderBy = Xsqlite3ExprListDup(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pOrderBy, 0) - Xsqlite3ResolveOrderGroupBy(tls, pParse, p, (*Select)(unsafe.Pointer(p)).FpOrderBy, ts+8468) - Xsqlite3ResolveOrderGroupBy(tls, pParse, pPrior, (*Select)(unsafe.Pointer(pPrior)).FpOrderBy, ts+8468) + Xsqlite3ResolveOrderGroupBy(tls, pParse, p, (*Select)(unsafe.Pointer(p)).FpOrderBy, ts+8512) + Xsqlite3ResolveOrderGroupBy(tls, pParse, pPrior, (*Select)(unsafe.Pointer(pPrior)).FpOrderBy, ts+8512) // Compute the limit registers computeLimitRegisters(tls, pParse, p, labelEnd) @@ -164753,7 +165620,7 @@ func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) Xsqlite3SelectDestInit(tls, bp+8, SRT_Coroutine, regAddrA) Xsqlite3SelectDestInit(tls, bp+48, SRT_Coroutine, regAddrB) - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20347, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20290, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) // Generate a coroutine to evaluate the SELECT statement to the // left of the compound operator - the "A" select. @@ -164761,7 +165628,7 @@ func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) addr1 = Xsqlite3VdbeAddOp3(tls, v, OP_InitCoroutine, regAddrA, 0, addrSelectA) (*Select)(unsafe.Pointer(pPrior)).FiLimit = regLimitA - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20358, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20301, 0) Xsqlite3Select(tls, pParse, pPrior, bp+8) Xsqlite3VdbeEndCoroutine(tls, v, regAddrA) Xsqlite3VdbeJumpHere(tls, v, addr1) @@ -164775,7 +165642,7 @@ func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) savedOffset = (*Select)(unsafe.Pointer(p)).FiOffset (*Select)(unsafe.Pointer(p)).FiLimit = regLimitB (*Select)(unsafe.Pointer(p)).FiOffset = 0 - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20363, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20306, 0) Xsqlite3Select(tls, pParse, p, bp+48) (*Select)(unsafe.Pointer(p)).FiLimit = savedLimit (*Select)(unsafe.Pointer(p)).FiOffset = savedOffset @@ -164859,9 +165726,9 @@ func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) // Implement the main merge loop Xsqlite3VdbeResolveLabel(tls, v, labelCmpr) - Xsqlite3VdbeAddOp4(tls, v, OP_Permutation, 0, 0, 0, aPermute, -15) + Xsqlite3VdbeAddOp4(tls, v, OP_Permutation, 0, 0, 0, aPermute, -14) Xsqlite3VdbeAddOp4(tls, v, OP_Compare, (*SelectDest)(unsafe.Pointer(bp+8 /* &destA */)).FiSdst, (*SelectDest)(unsafe.Pointer(bp+48 /* &destB */)).FiSdst, nOrderBy, - pKeyMerge, -9) + pKeyMerge, -8) Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_PERMUTE)) Xsqlite3VdbeAddOp3(tls, v, OP_Jump, addrAltB, addrAeqB, addrAgtB) @@ -164889,21 +165756,77 @@ func multiSelectOrderBy(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) // // All references to columns in table iTable are to be replaced by corresponding // expressions in pEList. +// +// ## About "isOuterJoin": +// +// The isOuterJoin column indicates that the replacement will occur into a +// position in the parent that NULL-able due to an OUTER JOIN. Either the +// target slot in the parent is the right operand of a LEFT JOIN, or one of +// the left operands of a RIGHT JOIN. In either case, we need to potentially +// bypass the substituted expression with OP_IfNullRow. +// +// Suppose the original expression integer constant. Even though the table +// has the nullRow flag set, because the expression is an integer constant, +// it will not be NULLed out. So instead, we insert an OP_IfNullRow opcode +// that checks to see if the nullRow flag is set on the table. If the nullRow +// flag is set, then the value in the register is set to NULL and the original +// expression is bypassed. If the nullRow flag is not set, then the original +// expression runs to populate the register. +// +// Example where this is needed: +// +// CREATE TABLE t1(a INTEGER PRIMARY KEY, b INT); +// CREATE TABLE t2(x INT UNIQUE); +// +// SELECT a,b,m,x FROM t1 LEFT JOIN (SELECT 59 AS m,x FROM t2) ON b=x; +// +// When the subquery on the right side of the LEFT JOIN is flattened, we +// have to add OP_IfNullRow in front of the OP_Integer that implements the +// "m" value of the subquery so that a NULL will be loaded instead of 59 +// when processing a non-matched row of the left. type SubstContext1 = struct { FpParse uintptr FiTable int32 FiNewTable int32 - FisLeftJoin int32 + FisOuterJoin int32 F__ccgo_pad1 [4]byte FpEList uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:137890:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139269:9 */ // An instance of the SubstContext object describes an substitution edit // to be performed on a parse tree. // // All references to columns in table iTable are to be replaced by corresponding // expressions in pEList. -type SubstContext = SubstContext1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:137896:3 */ +// +// ## About "isOuterJoin": +// +// The isOuterJoin column indicates that the replacement will occur into a +// position in the parent that NULL-able due to an OUTER JOIN. Either the +// target slot in the parent is the right operand of a LEFT JOIN, or one of +// the left operands of a RIGHT JOIN. In either case, we need to potentially +// bypass the substituted expression with OP_IfNullRow. +// +// Suppose the original expression integer constant. Even though the table +// has the nullRow flag set, because the expression is an integer constant, +// it will not be NULLed out. So instead, we insert an OP_IfNullRow opcode +// that checks to see if the nullRow flag is set on the table. If the nullRow +// flag is set, then the value in the register is set to NULL and the original +// expression is bypassed. If the nullRow flag is not set, then the original +// expression runs to populate the register. +// +// Example where this is needed: +// +// CREATE TABLE t1(a INTEGER PRIMARY KEY, b INT); +// CREATE TABLE t2(x INT UNIQUE); +// +// SELECT a,b,m,x FROM t1 LEFT JOIN (SELECT 59 AS m,x FROM t2) ON b=x; +// +// When the subquery on the right side of the LEFT JOIN is flattened, we +// have to add OP_IfNullRow in front of the OP_Integer that implements the +// "m" value of the subquery so that a NULL will be loaded instead of 59 +// when processing a non-matched row of the left. +type SubstContext = SubstContext1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139275:3 */ // Scan through the expression pExpr. Replace every reference to // a column in table number iTable with a copy of the iColumn-th @@ -164916,15 +165839,16 @@ type SubstContext = SubstContext1 /* testdata/sqlite-amalgamation-3380500/sqlite // FORM clause entry is iTable. This routine makes the necessary // changes to pExpr so that it refers directly to the source table // of the subquery rather the result set of the subquery. -func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:137915:13: */ +func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139294:13: */ bp := tls.Alloc(72) defer tls.Free(72) if pExpr == uintptr(0) { return uintptr(0) } - if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) && + if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON|EP_InnerON) != U32(0) && *(*int32)(unsafe.Pointer(pExpr + 52)) == (*SubstContext)(unsafe.Pointer(pSubst)).FiTable { + *(*int32)(unsafe.Pointer(pExpr + 52)) = (*SubstContext)(unsafe.Pointer(pSubst)).FiNewTable } if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN && @@ -164939,7 +165863,7 @@ func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* testda Xsqlite3VectorErrorMsg(tls, (*SubstContext)(unsafe.Pointer(pSubst)).FpParse, pCopy) } else { var db uintptr = (*Parse)(unsafe.Pointer((*SubstContext)(unsafe.Pointer(pSubst)).FpParse)).Fdb - if (*SubstContext)(unsafe.Pointer(pSubst)).FisLeftJoin != 0 && int32((*Expr)(unsafe.Pointer(pCopy)).Fop) != TK_COLUMN { + if (*SubstContext)(unsafe.Pointer(pSubst)).FisOuterJoin != 0 && int32((*Expr)(unsafe.Pointer(pCopy)).Fop) != TK_COLUMN { libc.Xmemset(tls, bp, 0, uint64(unsafe.Sizeof(Expr{}))) (*Expr)(unsafe.Pointer(bp /* &ifNullRow */)).Fop = U8(TK_IF_NULL_ROW) (*Expr)(unsafe.Pointer(bp /* &ifNullRow */)).FpLeft = pCopy @@ -164953,14 +165877,20 @@ func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* testda Xsqlite3ExprDelete(tls, db, pNew) return pExpr } - if (*SubstContext)(unsafe.Pointer(pSubst)).FisLeftJoin != 0 { + if (*SubstContext)(unsafe.Pointer(pSubst)).FisOuterJoin != 0 { *(*U32)(unsafe.Pointer(pNew + 4)) |= U32(EP_CanBeNull) } - if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) { - Xsqlite3SetJoinExpr(tls, pNew, *(*int32)(unsafe.Pointer(pExpr + 52))) + if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON|EP_InnerON) != U32(0) { + Xsqlite3SetJoinExpr(tls, pNew, *(*int32)(unsafe.Pointer(pExpr + 52)), + (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON|EP_InnerON)) } Xsqlite3ExprDelete(tls, db, pExpr) pExpr = pNew + if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_TRUEFALSE { + *(*int32)(unsafe.Pointer(pExpr + 8)) = Xsqlite3ExprTruthValue(tls, pExpr) + (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_INTEGER) + *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IntValue) + } // Ensure that the expression now has an implicit collation sequence, // just as it did when it was a column of a view or sub-query. @@ -164999,7 +165929,7 @@ func substExpr(tls *libc.TLS, pSubst uintptr, pExpr uintptr) uintptr { /* testda return pExpr } -func substExprList(tls *libc.TLS, pSubst uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138000:13: */ +func substExprList(tls *libc.TLS, pSubst uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139386:13: */ var i int32 if pList == uintptr(0) { return @@ -165009,7 +165939,7 @@ func substExprList(tls *libc.TLS, pSubst uintptr, pList uintptr) { /* testdata/s } } -func substSelect(tls *libc.TLS, pSubst uintptr, p uintptr, doPrior int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138010:13: */ +func substSelect(tls *libc.TLS, pSubst uintptr, p uintptr, doPrior int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139396:13: */ var pSrc uintptr var pItem uintptr var i int32 @@ -165033,14 +165963,14 @@ func substSelect(tls *libc.TLS, pSubst uintptr, p uintptr, doPrior int32) { /* t { substSelect(tls, pSubst, (*SrcItem)(unsafe.Pointer(pItem)).FpSelect, 1) if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x4>>2)) != 0 { - substExprList(tls, pSubst, *(*uintptr)(unsafe.Pointer(pItem + 96))) + substExprList(tls, pSubst, *(*uintptr)(unsafe.Pointer(pItem + 88))) } } goto __2 __2: i-- - pItem += 112 + pItem += 104 goto __1 goto __3 __3: @@ -165052,7 +165982,7 @@ func substSelect(tls *libc.TLS, pSubst uintptr, p uintptr, doPrior int32) { /* t // // This routine scans the entire SELECT statement and recomputes the // pSrcItem->colUsed mask. -func recomputeColumnsUsedExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138045:12: */ +func recomputeColumnsUsedExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139431:12: */ var pItem uintptr if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_COLUMN { return WRC_Continue @@ -165064,11 +165994,11 @@ func recomputeColumnsUsedExpr(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int if int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) < 0 { return WRC_Continue } - *(*Bitmask)(unsafe.Pointer(pItem + 88)) |= Xsqlite3ExprColUsed(tls, pExpr) + *(*Bitmask)(unsafe.Pointer(pItem + 80)) |= Xsqlite3ExprColUsed(tls, pExpr) return WRC_Continue } -func recomputeColumnsUsed(tls *libc.TLS, pSelect uintptr, pSrcItem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138054:13: */ +func recomputeColumnsUsed(tls *libc.TLS, pSelect uintptr, pSrcItem uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139440:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -165093,14 +166023,14 @@ func recomputeColumnsUsed(tls *libc.TLS, pSelect uintptr, pSrcItem uintptr) { /* // new cursor number assigned, set an entry in the aCsrMap[] array // to map the old cursor number to the new: // -// aCsrMap[iOld+1] = iNew; +// aCsrMap[iOld+1] = iNew; // // The array is guaranteed by the caller to be large enough for all // existing cursor numbers in pSrc. aCsrMap[0] is the array size. // // If pSrc contains any sub-selects, call this routine recursively // on the FROM clause of each such sub-select, with iExcept set to -1. -func srclistRenumberCursors(tls *libc.TLS, pParse uintptr, aCsrMap uintptr, pSrc uintptr, iExcept int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138083:13: */ +func srclistRenumberCursors(tls *libc.TLS, pParse uintptr, aCsrMap uintptr, pSrc uintptr, iExcept int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139469:13: */ var i int32 var pItem uintptr i = 0 @@ -165113,7 +166043,7 @@ __1: if i != iExcept { var p uintptr - if !(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x20>>5) != 0) || *(*int32)(unsafe.Pointer(aCsrMap + uintptr((*SrcItem)(unsafe.Pointer(pItem)).FiCursor+1)*4)) == 0 { + if !(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x40>>6) != 0) || *(*int32)(unsafe.Pointer(aCsrMap + uintptr((*SrcItem)(unsafe.Pointer(pItem)).FiCursor+1)*4)) == 0 { *(*int32)(unsafe.Pointer(aCsrMap + uintptr((*SrcItem)(unsafe.Pointer(pItem)).FiCursor+1)*4)) = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) } (*SrcItem)(unsafe.Pointer(pItem)).FiCursor = *(*int32)(unsafe.Pointer(aCsrMap + uintptr((*SrcItem)(unsafe.Pointer(pItem)).FiCursor+1)*4)) @@ -165126,14 +166056,14 @@ __1: goto __2 __2: i++ - pItem += 112 + pItem += 104 goto __1 goto __3 __3: } // *piCursor is a cursor number. Change it if it needs to be mapped. -func renumberCursorDoMapping(tls *libc.TLS, pWalker uintptr, piCursor uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138109:13: */ +func renumberCursorDoMapping(tls *libc.TLS, pWalker uintptr, piCursor uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139495:13: */ var aCsrMap uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) var iCsr int32 = *(*int32)(unsafe.Pointer(piCursor)) if iCsr < *(*int32)(unsafe.Pointer(aCsrMap)) && *(*int32)(unsafe.Pointer(aCsrMap + uintptr(iCsr+1)*4)) > 0 { @@ -165143,12 +166073,12 @@ func renumberCursorDoMapping(tls *libc.TLS, pWalker uintptr, piCursor uintptr) { // Expression walker callback used by renumberCursors() to update // Expr objects to match newly assigned cursor numbers. -func renumberCursorsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138121:12: */ +func renumberCursorsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139507:12: */ var op int32 = int32((*Expr)(unsafe.Pointer(pExpr)).Fop) if op == TK_COLUMN || op == TK_IF_NULL_ROW { renumberCursorDoMapping(tls, pWalker, pExpr+44) } - if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) { + if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0) { renumberCursorDoMapping(tls, pWalker, pExpr+52) } return WRC_Continue @@ -165164,13 +166094,13 @@ func renumberCursorsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* // Argument aCsrMap is an array that may be used for temporary working // space. Two guarantees are made by the caller: // -// * the array is larger than the largest cursor number used within the +// - the array is larger than the largest cursor number used within the // select statement passed as an argument, and // -// * the array entries for all cursor numbers that do *not* appear in +// - the array entries for all cursor numbers that do *not* appear in // FROM clauses of the select statement as described above are // initialized to zero. -func renumberCursors(tls *libc.TLS, pParse uintptr, p uintptr, iExcept int32, aCsrMap uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138150:13: */ +func renumberCursors(tls *libc.TLS, pParse uintptr, p uintptr, iExcept int32, aCsrMap uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139536:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -165194,7 +166124,7 @@ func renumberCursors(tls *libc.TLS, pParse uintptr, p uintptr, iExcept int32, aC // To understand the concept of flattening, consider the following // query: // -// SELECT a FROM (SELECT x+y AS a FROM t1 WHERE z<100) WHERE a>5 +// SELECT a FROM (SELECT x+y AS a FROM t1 WHERE z<100) WHERE a>5 // // The default way of implementing this query is to execute the // subquery first and store the results in a temporary table, then @@ -165206,7 +166136,7 @@ func renumberCursors(tls *libc.TLS, pParse uintptr, p uintptr, iExcept int32, aC // This routine attempts to rewrite queries such as the above into // a single flat select, like this: // -// SELECT x+y AS a FROM t1 WHERE z<100 AND a>5 +// SELECT x+y AS a FROM t1 WHERE z<100 AND a>5 // // The code generated for this simplification gives the same result // but only has to scan the data once. And because indices might @@ -165215,121 +166145,141 @@ func renumberCursors(tls *libc.TLS, pParse uintptr, p uintptr, iExcept int32, aC // // Flattening is subject to the following constraints: // -// (**) We no longer attempt to flatten aggregate subqueries. Was: -// The subquery and the outer query cannot both be aggregates. -// -// (**) We no longer attempt to flatten aggregate subqueries. Was: -// (2) If the subquery is an aggregate then -// (2a) the outer query must not be a join and -// (2b) the outer query must not use subqueries -// other than the one FROM-clause subquery that is a candidate -// for flattening. (This is due to ticket [2f7170d73bf9abf80] -// from 2015-02-09.) -// -// (3) If the subquery is the right operand of a LEFT JOIN then -// (3a) the subquery may not be a join and -// (3b) the FROM clause of the subquery may not contain a virtual -// table and -// (3c) the outer query may not be an aggregate. -// (3d) the outer query may not be DISTINCT. -// -// (4) The subquery can not be DISTINCT. -// -// (**) At one point restrictions (4) and (5) defined a subset of DISTINCT -// sub-queries that were excluded from this optimization. Restriction -// (4) has since been expanded to exclude all DISTINCT subqueries. -// -// (**) We no longer attempt to flatten aggregate subqueries. Was: -// If the subquery is aggregate, the outer query may not be DISTINCT. -// -// (7) The subquery must have a FROM clause. TODO: For subqueries without -// A FROM clause, consider adding a FROM clause with the special -// table sqlite_once that consists of a single row containing a -// single NULL. -// -// (8) If the subquery uses LIMIT then the outer query may not be a join. -// -// (9) If the subquery uses LIMIT then the outer query may not be aggregate. -// -// (**) Restriction (10) was removed from the code on 2005-02-05 but we -// accidently carried the comment forward until 2014-09-15. Original -// constraint: "If the subquery is aggregate then the outer query -// may not use LIMIT." -// -// (11) The subquery and the outer query may not both have ORDER BY clauses. -// -// (**) Not implemented. Subsumed into restriction (3). Was previously -// a separate restriction deriving from ticket #350. -// -// (13) The subquery and outer query may not both use LIMIT. -// -// (14) The subquery may not use OFFSET. -// -// (15) If the outer query is part of a compound select, then the -// subquery may not use LIMIT. -// (See ticket #2339 and ticket [02a8e81d44]). -// -// (16) If the outer query is aggregate, then the subquery may not -// use ORDER BY. (Ticket #2942) This used to not matter -// until we introduced the group_concat() function. -// -// (17) If the subquery is a compound select, then -// (17a) all compound operators must be a UNION ALL, and -// (17b) no terms within the subquery compound may be aggregate -// or DISTINCT, and -// (17c) every term within the subquery compound must have a FROM clause -// (17d) the outer query may not be -// (17d1) aggregate, or -// (17d2) DISTINCT -// (17e) the subquery may not contain window functions, and -// (17f) the subquery must not be the RHS of a LEFT JOIN. -// -// The parent and sub-query may contain WHERE clauses. Subject to -// rules (11), (13) and (14), they may also contain ORDER BY, -// LIMIT and OFFSET clauses. The subquery cannot use any compound -// operator other than UNION ALL because all the other compound -// operators have an implied DISTINCT which is disallowed by -// restriction (4). -// -// Also, each component of the sub-query must return the same number -// of result columns. This is actually a requirement for any compound -// SELECT statement, but all the code here does is make sure that no -// such (illegal) sub-query is flattened. The caller will detect the -// syntax error and return a detailed message. -// -// (18) If the sub-query is a compound select, then all terms of the -// ORDER BY clause of the parent must be copies of a term returned -// by the parent query. -// -// (19) If the subquery uses LIMIT then the outer query may not -// have a WHERE clause. -// -// (20) If the sub-query is a compound select, then it must not use -// an ORDER BY clause. Ticket #3773. We could relax this constraint -// somewhat by saying that the terms of the ORDER BY clause must -// appear as unmodified result columns in the outer query. But we -// have other optimizations in mind to deal with that case. -// -// (21) If the subquery uses LIMIT then the outer query may not be -// DISTINCT. (See ticket [752e1646fc]). -// -// (22) The subquery may not be a recursive CTE. -// -// (23) If the outer query is a recursive CTE, then the sub-query may not be -// a compound query. This restriction is because transforming the -// parent to a compound query confuses the code that handles -// recursive queries in multiSelect(). -// -// (**) We no longer attempt to flatten aggregate subqueries. Was: -// The subquery may not be an aggregate that uses the built-in min() or -// or max() functions. (Without this restriction, a query like: -// "SELECT x FROM (SELECT max(y), x FROM t1)" would not necessarily -// return the value X for which Y was maximal.) -// -// (25) If either the subquery or the parent query contains a window -// function in the select list or ORDER BY clause, flattening -// is not attempted. +// (**) We no longer attempt to flatten aggregate subqueries. Was: +// The subquery and the outer query cannot both be aggregates. +// +// (**) We no longer attempt to flatten aggregate subqueries. Was: +// (2) If the subquery is an aggregate then +// (2a) the outer query must not be a join and +// (2b) the outer query must not use subqueries +// other than the one FROM-clause subquery that is a candidate +// for flattening. (This is due to ticket [2f7170d73bf9abf80] +// from 2015-02-09.) +// +// (3) If the subquery is the right operand of a LEFT JOIN then +// (3a) the subquery may not be a join and +// (3b) the FROM clause of the subquery may not contain a virtual +// table and +// (3c) the outer query may not be an aggregate. +// (3d) the outer query may not be DISTINCT. +// See also (26) for restrictions on RIGHT JOIN. +// +// (4) The subquery can not be DISTINCT. +// +// (**) At one point restrictions (4) and (5) defined a subset of DISTINCT +// sub-queries that were excluded from this optimization. Restriction +// (4) has since been expanded to exclude all DISTINCT subqueries. +// +// (**) We no longer attempt to flatten aggregate subqueries. Was: +// If the subquery is aggregate, the outer query may not be DISTINCT. +// +// (7) The subquery must have a FROM clause. TODO: For subqueries without +// A FROM clause, consider adding a FROM clause with the special +// table sqlite_once that consists of a single row containing a +// single NULL. +// +// (8) If the subquery uses LIMIT then the outer query may not be a join. +// +// (9) If the subquery uses LIMIT then the outer query may not be aggregate. +// +// (**) Restriction (10) was removed from the code on 2005-02-05 but we +// accidently carried the comment forward until 2014-09-15. Original +// constraint: "If the subquery is aggregate then the outer query +// may not use LIMIT." +// +// (11) The subquery and the outer query may not both have ORDER BY clauses. +// +// (**) Not implemented. Subsumed into restriction (3). Was previously +// a separate restriction deriving from ticket #350. +// +// (13) The subquery and outer query may not both use LIMIT. +// +// (14) The subquery may not use OFFSET. +// +// (15) If the outer query is part of a compound select, then the +// subquery may not use LIMIT. +// (See ticket #2339 and ticket [02a8e81d44]). +// +// (16) If the outer query is aggregate, then the subquery may not +// use ORDER BY. (Ticket #2942) This used to not matter +// until we introduced the group_concat() function. +// +// (17) If the subquery is a compound select, then +// (17a) all compound operators must be a UNION ALL, and +// (17b) no terms within the subquery compound may be aggregate +// or DISTINCT, and +// (17c) every term within the subquery compound must have a FROM clause +// (17d) the outer query may not be +// (17d1) aggregate, or +// (17d2) DISTINCT +// (17e) the subquery may not contain window functions, and +// (17f) the subquery must not be the RHS of a LEFT JOIN. +// (17g) either the subquery is the first element of the outer +// query or there are no RIGHT or FULL JOINs in any arm +// of the subquery. (This is a duplicate of condition (27b).) +// +// The parent and sub-query may contain WHERE clauses. Subject to +// rules (11), (13) and (14), they may also contain ORDER BY, +// LIMIT and OFFSET clauses. The subquery cannot use any compound +// operator other than UNION ALL because all the other compound +// operators have an implied DISTINCT which is disallowed by +// restriction (4). +// +// Also, each component of the sub-query must return the same number +// of result columns. This is actually a requirement for any compound +// SELECT statement, but all the code here does is make sure that no +// such (illegal) sub-query is flattened. The caller will detect the +// syntax error and return a detailed message. +// +// (18) If the sub-query is a compound select, then all terms of the +// ORDER BY clause of the parent must be copies of a term returned +// by the parent query. +// +// (19) If the subquery uses LIMIT then the outer query may not +// have a WHERE clause. +// +// (20) If the sub-query is a compound select, then it must not use +// an ORDER BY clause. Ticket #3773. We could relax this constraint +// somewhat by saying that the terms of the ORDER BY clause must +// appear as unmodified result columns in the outer query. But we +// have other optimizations in mind to deal with that case. +// +// (21) If the subquery uses LIMIT then the outer query may not be +// DISTINCT. (See ticket [752e1646fc]). +// +// (22) The subquery may not be a recursive CTE. +// +// (23) If the outer query is a recursive CTE, then the sub-query may not be +// a compound query. This restriction is because transforming the +// parent to a compound query confuses the code that handles +// recursive queries in multiSelect(). +// +// (**) We no longer attempt to flatten aggregate subqueries. Was: +// The subquery may not be an aggregate that uses the built-in min() or +// or max() functions. (Without this restriction, a query like: +// "SELECT x FROM (SELECT max(y), x FROM t1)" would not necessarily +// return the value X for which Y was maximal.) +// +// (25) If either the subquery or the parent query contains a window +// function in the select list or ORDER BY clause, flattening +// is not attempted. // +// (26) The subquery may not be the right operand of a RIGHT JOIN. +// See also (3) for restrictions on LEFT JOIN. +// +// (27) The subquery may not contain a FULL or RIGHT JOIN unless it +// is the first element of the parent query. This must be the +// the case if: +// (27a) the subquery is not compound query, and +// (27b) the subquery is a compound query and the RIGHT JOIN occurs +// in any arm of the compound query. (See also (17g).) +// +// (28) The subquery is not a MATERIALIZED CTE. +// +// (29) Either the subquery is not the right-hand operand of a join with an +// ON or USING clause nor the right-hand operand of a NATURAL JOIN, or +// the right-most table within the FROM clause of the subquery +// is not part of an outer join. // // In this routine, the "p" parameter is a pointer to the outer query. // The subquery is p->pSrc->a[iFrom]. isAgg is true if the outer query @@ -165340,7 +166290,7 @@ func renumberCursors(tls *libc.TLS, pParse uintptr, p uintptr, iExcept int32, aC // // All of the expression analysis must occur on both the outer query and // the subquery before this routine runs. -func flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isAgg int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138321:12: */ +func flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isAgg int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:139728:12: */ bp := tls.Alloc(80) defer tls.Free(80) @@ -165352,7 +166302,7 @@ func flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isAg var pSubSrc uintptr // The FROM clause of the subquery var iParent int32 // VDBE cursor number of the pSub result set temp table var iNewParent int32 = -1 // Replacement table for iParent - var isLeftJoin int32 = 0 // True if pSub is the right side of a LEFT JOIN + var isOuterJoin int32 = 0 // True if pSub is the right side of a LEFT JOIN var i int32 // Loop counter var pWhere uintptr // The WHERE clause var pSubitem uintptr // The subquery @@ -165368,7 +166318,7 @@ func flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isAg } pSrc = (*Select)(unsafe.Pointer(p)).FpSrc - pSubitem = pSrc + 8 + uintptr(iFrom)*112 + pSubitem = pSrc + 8 + uintptr(iFrom)*104 iParent = (*SrcItem)(unsafe.Pointer(pSubitem)).FiCursor pSub = (*SrcItem)(unsafe.Pointer(pSubitem)).FpSelect @@ -165435,12 +166385,47 @@ func flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isAg // the LEFT JOIN table should be all-NULL. // // See also tickets #306, #350, and #3300. - if int32((*SrcItem)(unsafe.Pointer(pSubitem)).Ffg.Fjointype)&JT_OUTER != 0 { - isLeftJoin = 1 + if int32((*SrcItem)(unsafe.Pointer(pSubitem)).Ffg.Fjointype)&(JT_OUTER|JT_LTORJ) != 0 { if (*SrcList)(unsafe.Pointer(pSubSrc)).FnSrc > 1 || isAgg != 0 || int32((*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSubSrc+8)).FpTab)).FeTabType) == TABTYP_VTAB || - (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Distinct) != U32(0) { + (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Distinct) != U32(0) || + int32((*SrcItem)(unsafe.Pointer(pSubitem)).Ffg.Fjointype)&JT_RIGHT != 0 { + return 0 + } + isOuterJoin = 1 + } + + // True by restriction (7) + if iFrom > 0 && int32((*SrcItem)(unsafe.Pointer(pSubSrc+8)).Ffg.Fjointype)&JT_LTORJ != 0 { + return 0 // Restriction (27a) + } + if uint32(int32(*(*uint16)(unsafe.Pointer(pSubitem + 60 + 4))&0x100>>8)) != 0 && int32((*CteUse)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pSubitem + 96)))).FeM10d) == M10d_Yes { + return 0 // (28) + } + + // Restriction (29): + // + // We do not want two constraints on the same term of the flattened + // query where one constraint has EP_InnerON and the other is EP_OuterON. + // To prevent this, one or the other of the following conditions must be + // false: + // + // (29a) The right-most entry in the FROM clause of the subquery + // must not be part of an outer join. + // + // (29b) The subquery itself must not be the right operand of a + // NATURAL join or a join that as an ON or USING clause. + // + // These conditions are sufficient to keep an EP_OuterON from being + // flattened into an EP_InnerON. Restrictions (3a) and (27a) prevent + // an EP_InnerON from being flattened into an EP_OuterON. + if (*SrcList)(unsafe.Pointer(pSubSrc)).FnSrc >= 2 && + int32((*SrcItem)(unsafe.Pointer(pSubSrc+8+uintptr((*SrcList)(unsafe.Pointer(pSubSrc)).FnSrc-1)*104)).Ffg.Fjointype)&JT_OUTER != 0 { + if int32((*SrcItem)(unsafe.Pointer(pSubitem)).Ffg.Fjointype)&JT_NATURAL != 0 || + uint32(int32(*(*uint16)(unsafe.Pointer(pSubitem + 60 + 4))&0x400>>10)) != 0 || + *(*uintptr)(unsafe.Pointer(pSubitem + 72)) != uintptr(0) || + uint32(int32(*(*uint16)(unsafe.Pointer(pSubitem + 60 + 4))&0x800>>11)) != 0 { return 0 } } @@ -165453,7 +166438,7 @@ func flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isAg if (*Select)(unsafe.Pointer(pSub)).FpOrderBy != 0 { return 0 // Restriction (20) } - if isAgg != 0 || (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Distinct) != U32(0) || isLeftJoin > 0 { + if isAgg != 0 || (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Distinct) != U32(0) || isOuterJoin > 0 { return 0 // (17d1), (17d2), or (17f) } for pSub1 = pSub; pSub1 != 0; pSub1 = (*Select)(unsafe.Pointer(pSub1)).FpPrior { @@ -165464,6 +166449,12 @@ func flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isAg (*Select)(unsafe.Pointer(pSub1)).FpWin != 0 { return 0 } + if iFrom > 0 && int32((*SrcItem)(unsafe.Pointer((*Select)(unsafe.Pointer(pSub1)).FpSrc+8)).Ffg.Fjointype)&JT_LTORJ != 0 { + // Without this restriction, the JT_LTORJ flag would end up being + // omitted on left-hand tables of the right join that is being + // flattened. + return 0 // Restrictions (17g), (27b) + } } @@ -165486,6 +166477,9 @@ func flattenSubquery(tls *libc.TLS, pParse uintptr, p uintptr, iFrom int32, isAg if (*Parse)(unsafe.Pointer(pParse)).FnSelect > 500 { return 0 } + if (*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_FlttnUnionAll) != U32(0) { + return 0 + } aCsrMap = Xsqlite3DbMallocZero(tls, db, uint64(I64((*Parse)(unsafe.Pointer(pParse)).FnTab)+int64(1))*uint64(unsafe.Sizeof(int32(0)))) if aCsrMap != 0 { *(*int32)(unsafe.Pointer(aCsrMap)) = (*Parse)(unsafe.Pointer(pParse)).FnTab @@ -165629,6 +166623,7 @@ __1: { var nSubSrc int32 var jointype U8 = U8(0) + var ltorj U8 = U8(int32((*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(iFrom)*104)).Ffg.Fjointype) & JT_LTORJ) pSubSrc = (*Select)(unsafe.Pointer(pSub)).FpSrc // FROM clause of subquery nSubSrc = (*SrcList)(unsafe.Pointer(pSubSrc)).FnSrc // Number of terms in subquery FROM clause @@ -165663,13 +166658,18 @@ __1: // Transfer the FROM clause terms from the subquery into the // outer query. for i = 0; i < nSubSrc; i++ { - Xsqlite3IdListDelete(tls, db, (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i+iFrom)*112)).FpUsing) + var pItem uintptr = pSrc + 8 + uintptr(i+iFrom)*104 + if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x400>>10)) != 0 { + Xsqlite3IdListDelete(tls, db, *(*uintptr)(unsafe.Pointer(pItem + 72))) + } - *(*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(i+iFrom)*112)) = *(*SrcItem)(unsafe.Pointer(pSubSrc + 8 + uintptr(i)*112)) - iNewParent = (*SrcItem)(unsafe.Pointer(pSubSrc + 8 + uintptr(i)*112)).FiCursor - libc.Xmemset(tls, pSubSrc+8+uintptr(i)*112, 0, uint64(unsafe.Sizeof(SrcItem{}))) + *(*SrcItem)(unsafe.Pointer(pItem)) = *(*SrcItem)(unsafe.Pointer(pSubSrc + 8 + uintptr(i)*104)) + *(*U8)(unsafe.Pointer(pItem + 60)) |= U8(int32(ltorj)) + iNewParent = (*SrcItem)(unsafe.Pointer(pSubSrc + 8 + uintptr(i)*104)).FiCursor + libc.Xmemset(tls, pSubSrc+8+uintptr(i)*104, 0, uint64(unsafe.Sizeof(SrcItem{}))) } - (*SrcItem)(unsafe.Pointer(pSrc + 8 + uintptr(iFrom)*112)).Ffg.Fjointype = jointype + *(*U8)(unsafe.Pointer(pSrc + 8 + uintptr(iFrom)*104 + 60)) &= U8(JT_LTORJ) + *(*U8)(unsafe.Pointer(pSrc + 8 + uintptr(iFrom)*104 + 60)) |= U8(int32(jointype) | int32(ltorj)) // Now begin substituting subquery result set expressions for // references to the iParent in the outer query. @@ -165703,8 +166703,8 @@ __1: } pWhere = (*Select)(unsafe.Pointer(pSub)).FpWhere (*Select)(unsafe.Pointer(pSub)).FpWhere = uintptr(0) - if isLeftJoin > 0 { - Xsqlite3SetJoinExpr(tls, pWhere, iNewParent) + if isOuterJoin > 0 { + Xsqlite3SetJoinExpr(tls, pWhere, iNewParent, uint32(EP_OuterON)) } if pWhere != 0 { if (*Select)(unsafe.Pointer(pParent)).FpWhere != 0 { @@ -165719,7 +166719,7 @@ __1: (*SubstContext)(unsafe.Pointer(bp /* &x */)).FpParse = pParse (*SubstContext)(unsafe.Pointer(bp /* &x */)).FiTable = iParent (*SubstContext)(unsafe.Pointer(bp /* &x */)).FiNewTable = iNewParent - (*SubstContext)(unsafe.Pointer(bp /* &x */)).FisLeftJoin = isLeftJoin + (*SubstContext)(unsafe.Pointer(bp /* &x */)).FisOuterJoin = isOuterJoin (*SubstContext)(unsafe.Pointer(bp /* &x */)).FpEList = (*Select)(unsafe.Pointer(pSub)).FpEList substSelect(tls, bp, pParent, 0) } @@ -165741,7 +166741,7 @@ __1: // Recompute the SrcList_item.colUsed masks for the flattened // tables. for i = 0; i < nSubSrc; i++ { - recomputeColumnsUsed(tls, pParent, pSrc+8+uintptr(i+iFrom)*112) + recomputeColumnsUsed(tls, pParent, pSrc+8+uintptr(i+iFrom)*104) } } @@ -165765,7 +166765,7 @@ __3: // A structure to keep track of all of the column values that are fixed to // a known value due to WHERE clause constraints of the form COLUMN=VALUE. -type WhereConst = WhereConst1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138745:27 */ +type WhereConst = WhereConst1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140201:27 */ // Add a new entry to the pConst object. Except, do not add duplicate // pColumn entires. Also, do not add if doing so would not be appropriate. @@ -165773,7 +166773,7 @@ type WhereConst = WhereConst1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c: // The caller guarantees the pColumn is a column and pValue is a constant. // This routine has to do some additional checks before completing the // insert. -func constInsert(tls *libc.TLS, pConst uintptr, pColumn uintptr, pValue uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138763:13: */ +func constInsert(tls *libc.TLS, pConst uintptr, pColumn uintptr, pValue uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140221:13: */ var i int32 if (*Expr)(unsafe.Pointer(pColumn)).Fflags&U32(EP_FixedCol) != U32(0) { @@ -165815,13 +166815,14 @@ func constInsert(tls *libc.TLS, pConst uintptr, pColumn uintptr, pValue uintptr, // is a constant expression and where the term must be true because it // is part of the AND-connected terms of the expression. For each term // found, add it to the pConst structure. -func findConstInWhere(tls *libc.TLS, pConst uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138811:13: */ +func findConstInWhere(tls *libc.TLS, pConst uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140269:13: */ var pRight uintptr var pLeft uintptr if pExpr == uintptr(0) { return } - if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) { + if (*Expr)(unsafe.Pointer(pExpr)).Fflags&(*WhereConst)(unsafe.Pointer(pConst)).FmExcludeOn != U32(0) { + return } if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_AND { @@ -165850,7 +166851,7 @@ func findConstInWhere(tls *libc.TLS, pConst uintptr, pExpr uintptr) { /* testdat // then overwrite it with the corresponding value. Except, do not do so // if argument bIgnoreAffBlob is non-zero and the affinity of pExpr // is SQLITE_AFF_BLOB. -func propagateConstantExprRewriteOne(tls *libc.TLS, pConst uintptr, pExpr uintptr, bIgnoreAffBlob int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138842:12: */ +func propagateConstantExprRewriteOne(tls *libc.TLS, pConst uintptr, pExpr uintptr, bIgnoreAffBlob int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140304:12: */ var i int32 if *(*U8)(unsafe.Pointer((*WhereConst)(unsafe.Pointer(pConst)).FpOomFault)) != 0 { return WRC_Prune @@ -165858,7 +166859,7 @@ func propagateConstantExprRewriteOne(tls *libc.TLS, pConst uintptr, pExpr uintpt if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_COLUMN { return WRC_Continue } - if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FixedCol|EP_FromJoin) != U32(0) { + if (*Expr)(unsafe.Pointer(pExpr)).Fflags&(U32(EP_FixedCol)|(*WhereConst)(unsafe.Pointer(pConst)).FmExcludeOn) != U32(0) { return WRC_Continue } @@ -165897,14 +166898,14 @@ func propagateConstantExprRewriteOne(tls *libc.TLS, pConst uintptr, pExpr uintpt // // A substitution is made if: // -// + pExpr is a column with an affinity other than BLOB that matches +// - pExpr is a column with an affinity other than BLOB that matches // one of the columns in pWalker->u.pConst, or // -// + pExpr is a binary comparison operator (=, <=, >=, <, >) that +// - pExpr is a binary comparison operator (=, <=, >=, <, >) that // uses an affinity other than TEXT and one of its immediate // children is a column that matches one of the columns in // pWalker->u.pConst. -func propagateConstantExprRewrite(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138891:12: */ +func propagateConstantExprRewrite(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140354:12: */ var pConst uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) if (*WhereConst)(unsafe.Pointer(pConst)).FbHasAffBlob != 0 { @@ -165931,21 +166932,21 @@ func propagateConstantExprRewrite(tls *libc.TLS, pWalker uintptr, pExpr uintptr) // // For example, the query: // -// SELECT * FROM t1, t2, t3 WHERE t1.a=39 AND t2.b=t1.a AND t3.c=t2.b +// SELECT * FROM t1, t2, t3 WHERE t1.a=39 AND t2.b=t1.a AND t3.c=t2.b // // Is transformed into // -// SELECT * FROM t1, t2, t3 WHERE t1.a=39 AND t2.b=39 AND t3.c=39 +// SELECT * FROM t1, t2, t3 WHERE t1.a=39 AND t2.b=39 AND t3.c=39 // // Return true if any transformations where made and false if not. // // Implementation note: Constant propagation is tricky due to affinity // and collating sequence interactions. Consider this example: // -// CREATE TABLE t1(a INT,b TEXT); -// INSERT INTO t1 VALUES(123,'0123'); -// SELECT * FROM t1 WHERE a=123 AND b=a; -// SELECT * FROM t1 WHERE a=123 AND b=123; +// CREATE TABLE t1(a INT,b TEXT); +// INSERT INTO t1 VALUES(123,'0123'); +// SELECT * FROM t1 WHERE a=123 AND b=a; +// SELECT * FROM t1 WHERE a=123 AND b=123; // // The two SELECT statements above should return different answers. b=a // is alway true because the comparison uses numeric affinity, but b=123 @@ -165959,9 +166960,9 @@ func propagateConstantExprRewrite(tls *libc.TLS, pWalker uintptr, pExpr uintptr) // // 2021-05-25 forum post 6a06202608: Another troublesome case is... // -// CREATE TABLE t1(x); -// INSERT INTO t1 VALUES(10.0); -// SELECT 1 FROM t1 WHERE x=10 AND x LIKE 10; +// CREATE TABLE t1(x); +// INSERT INTO t1 VALUES(10.0); +// SELECT 1 FROM t1 WHERE x=10 AND x LIKE 10; // // The query should return no rows, because the t1.x value is '10.0' not '10' // and '10.0' is not LIKE '10'. But if we are not careful, the first WHERE @@ -165971,7 +166972,7 @@ func propagateConstantExprRewrite(tls *libc.TLS, pWalker uintptr, pExpr uintptr) // operators ==, <=, <, >=, >, or IS in a way that will cause the correct // type conversions to occur. See logic associated with the bHasAffBlob flag // for details. -func propagateConstants(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:138962:12: */ +func propagateConstants(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140425:12: */ bp := tls.Alloc(88) defer tls.Free(88) @@ -165987,6 +166988,16 @@ func propagateConstants(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* tes (*WhereConst)(unsafe.Pointer(bp /* &x */)).FnChng = 0 (*WhereConst)(unsafe.Pointer(bp /* &x */)).FapExpr = uintptr(0) (*WhereConst)(unsafe.Pointer(bp /* &x */)).FbHasAffBlob = 0 + if (*Select)(unsafe.Pointer(p)).FpSrc != uintptr(0) && + (*SrcList)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpSrc)).FnSrc > 0 && + int32((*SrcItem)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpSrc+8)).Ffg.Fjointype)&JT_LTORJ != 0 { + // Do not propagate constants on any ON clause if there is a + // RIGHT JOIN anywhere in the query + (*WhereConst)(unsafe.Pointer(bp /* &x */)).FmExcludeOn = U32(EP_InnerON | EP_OuterON) + } else { + // Do not propagate constants through the ON clause of a LEFT JOIN + (*WhereConst)(unsafe.Pointer(bp /* &x */)).FmExcludeOn = U32(EP_OuterON) + } findConstInWhere(tls, bp, (*Select)(unsafe.Pointer(p)).FpWhere) if (*WhereConst)(unsafe.Pointer(bp)).FnConst != 0 { libc.Xmemset(tls, bp+40, 0, uint64(unsafe.Sizeof(Walker{}))) @@ -166022,9 +167033,9 @@ func propagateConstants(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* tes // // At the time this function is called it is guaranteed that // -// * the sub-query uses only one distinct window frame, and -// * that the window frame has a PARTITION BY clase. -func pushDownWindowCheck(tls *libc.TLS, pParse uintptr, pSubq uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139013:12: */ +// - the sub-query uses only one distinct window frame, and +// - that the window frame has a PARTITION BY clase. +func pushDownWindowCheck(tls *libc.TLS, pParse uintptr, pSubq uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140487:12: */ return Xsqlite3ExprIsConstantOrGroupBy(tls, pParse, pExpr, (*Window)(unsafe.Pointer((*Select)(unsafe.Pointer(pSubq)).FpWin)).FpPartition) } @@ -166032,70 +167043,70 @@ func pushDownWindowCheck(tls *libc.TLS, pParse uintptr, pSubq uintptr, pExpr uin // Make copies of relevant WHERE clause terms of the outer query into // the WHERE clause of subquery. Example: // -// SELECT * FROM (SELECT a AS x, c-d AS y FROM t1) WHERE x=5 AND y=10; +// SELECT * FROM (SELECT a AS x, c-d AS y FROM t1) WHERE x=5 AND y=10; // // Transformed into: // -// SELECT * FROM (SELECT a AS x, c-d AS y FROM t1 WHERE a=5 AND c-d=10) -// WHERE x=5 AND y=10; +// SELECT * FROM (SELECT a AS x, c-d AS y FROM t1 WHERE a=5 AND c-d=10) +// WHERE x=5 AND y=10; // // The hope is that the terms added to the inner query will make it more // efficient. // // Do not attempt this optimization if: // -// (1) (** This restriction was removed on 2017-09-29. We used to -// disallow this optimization for aggregate subqueries, but now -// it is allowed by putting the extra terms on the HAVING clause. -// The added HAVING clause is pointless if the subquery lacks -// a GROUP BY clause. But such a HAVING clause is also harmless -// so there does not appear to be any reason to add extra logic -// to suppress it. **) +// (1) (** This restriction was removed on 2017-09-29. We used to +// disallow this optimization for aggregate subqueries, but now +// it is allowed by putting the extra terms on the HAVING clause. +// The added HAVING clause is pointless if the subquery lacks +// a GROUP BY clause. But such a HAVING clause is also harmless +// so there does not appear to be any reason to add extra logic +// to suppress it. **) // -// (2) The inner query is the recursive part of a common table expression. +// (2) The inner query is the recursive part of a common table expression. // -// (3) The inner query has a LIMIT clause (since the changes to the WHERE -// clause would change the meaning of the LIMIT). +// (3) The inner query has a LIMIT clause (since the changes to the WHERE +// clause would change the meaning of the LIMIT). // -// (4) The inner query is the right operand of a LEFT JOIN and the -// expression to be pushed down does not come from the ON clause -// on that LEFT JOIN. +// (4) The inner query is the right operand of a LEFT JOIN and the +// expression to be pushed down does not come from the ON clause +// on that LEFT JOIN. // -// (5) The WHERE clause expression originates in the ON or USING clause -// of a LEFT JOIN where iCursor is not the right-hand table of that -// left join. An example: +// (5) The WHERE clause expression originates in the ON or USING clause +// of a LEFT JOIN where iCursor is not the right-hand table of that +// left join. An example: // -// SELECT * -// FROM (SELECT 1 AS a1 UNION ALL SELECT 2) AS aa -// JOIN (SELECT 1 AS b2 UNION ALL SELECT 2) AS bb ON (a1=b2) -// LEFT JOIN (SELECT 8 AS c3 UNION ALL SELECT 9) AS cc ON (b2=2); +// SELECT * +// FROM (SELECT 1 AS a1 UNION ALL SELECT 2) AS aa +// JOIN (SELECT 1 AS b2 UNION ALL SELECT 2) AS bb ON (a1=b2) +// LEFT JOIN (SELECT 8 AS c3 UNION ALL SELECT 9) AS cc ON (b2=2); // -// The correct answer is three rows: (1,1,NULL),(2,2,8),(2,2,9). -// But if the (b2=2) term were to be pushed down into the bb subquery, -// then the (1,1,NULL) row would be suppressed. +// The correct answer is three rows: (1,1,NULL),(2,2,8),(2,2,9). +// But if the (b2=2) term were to be pushed down into the bb subquery, +// then the (1,1,NULL) row would be suppressed. // -// (6) Window functions make things tricky as changes to the WHERE clause -// of the inner query could change the window over which window -// functions are calculated. Therefore, do not attempt the optimization -// if: +// (6) Window functions make things tricky as changes to the WHERE clause +// of the inner query could change the window over which window +// functions are calculated. Therefore, do not attempt the optimization +// if: // -// (6a) The inner query uses multiple incompatible window partitions. +// (6a) The inner query uses multiple incompatible window partitions. // -// (6b) The inner query is a compound and uses window-functions. +// (6b) The inner query is a compound and uses window-functions. // -// (6c) The WHERE clause does not consist entirely of constants and -// copies of expressions found in the PARTITION BY clause of -// all window-functions used by the sub-query. It is safe to -// filter out entire partitions, as this does not change the -// window over which any window-function is calculated. +// (6c) The WHERE clause does not consist entirely of constants and +// copies of expressions found in the PARTITION BY clause of +// all window-functions used by the sub-query. It is safe to +// filter out entire partitions, as this does not change the +// window over which any window-function is calculated. // -// (7) The inner query is a Common Table Expression (CTE) that should -// be materialized. (This restriction is implemented in the calling -// routine.) +// (7) The inner query is a Common Table Expression (CTE) that should +// be materialized. (This restriction is implemented in the calling +// routine.) // // Return 0 if no changes are made and non-zero if one or more WHERE clause // terms are duplicated into the subquery. -func pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere uintptr, pSrc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139091:12: */ +func pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere uintptr, pSrc uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140565:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -166107,6 +167118,9 @@ func pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere uin if (*Select)(unsafe.Pointer(pSubq)).FselFlags&U32(SF_Recursive|SF_MultiPart) != 0 { return 0 } + if int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&(JT_LTORJ|JT_RIGHT) != 0 { + return 0 + } if (*Select)(unsafe.Pointer(pSubq)).FpPrior != 0 { var pSel uintptr @@ -166136,11 +167150,11 @@ func pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere uin // var x SubstContext at bp, 32 pNew = Xsqlite3ExprDup(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pWhere, 0) - unsetJoinExpr(tls, pNew, -1) + unsetJoinExpr(tls, pNew, -1, 1) (*SubstContext)(unsafe.Pointer(bp /* &x */)).FpParse = pParse (*SubstContext)(unsafe.Pointer(bp /* &x */)).FiTable = (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor (*SubstContext)(unsafe.Pointer(bp /* &x */)).FiNewTable = (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor - (*SubstContext)(unsafe.Pointer(bp /* &x */)).FisLeftJoin = 0 + (*SubstContext)(unsafe.Pointer(bp /* &x */)).FisOuterJoin = 0 (*SubstContext)(unsafe.Pointer(bp /* &x */)).FpEList = (*Select)(unsafe.Pointer(pSubq)).FpEList pNew = substExpr(tls, bp, pNew) if (*Select)(unsafe.Pointer(pSubq)).FpWin != 0 && 0 == pushDownWindowCheck(tls, pParse, pSubq, pNew) { @@ -166174,7 +167188,7 @@ func pushDownWhereTerms(tls *libc.TLS, pParse uintptr, pSubq uintptr, pWhere uin // This routine must be called after aggregate functions have been // located but before their arguments have been subjected to aggregate // analysis. -func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139197:11: */ +func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140672:11: */ var eRet int32 = WHERE_ORDERBY_NORMAL // Return value var pEList uintptr // Arguments to agg function var zFunc uintptr // Name of aggregate function pFunc @@ -166190,12 +167204,12 @@ func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8 } zFunc = *(*uintptr)(unsafe.Pointer(pFunc + 8)) - if Xsqlite3StrICmp(tls, zFunc, ts+16425) == 0 { + if Xsqlite3StrICmp(tls, zFunc, ts+16464) == 0 { eRet = WHERE_ORDERBY_MIN if Xsqlite3ExprCanBeNull(tls, (*ExprList_item)(unsafe.Pointer(pEList+8)).FpExpr) != 0 { sortFlags = U8(KEYINFO_ORDER_BIGNULL) } - } else if Xsqlite3StrICmp(tls, zFunc, ts+16429) == 0 { + } else if Xsqlite3StrICmp(tls, zFunc, ts+16468) == 0 { eRet = WHERE_ORDERBY_MAX sortFlags = U8(KEYINFO_ORDER_DESC) } else { @@ -166204,7 +167218,7 @@ func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8 *(*uintptr)(unsafe.Pointer(ppMinMax)) = libc.AssignUintptr(&pOrderBy, Xsqlite3ExprListDup(tls, db, pEList, 0)) if pOrderBy != 0 { - (*ExprList_item)(unsafe.Pointer(pOrderBy + 8)).FsortFlags = sortFlags + (*ExprList_item)(unsafe.Pointer(pOrderBy + 8)).Ffg.FsortFlags = sortFlags } return U8(eRet) } @@ -166213,7 +167227,7 @@ func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8 // The second argument is the associated aggregate-info object. This // function tests if the SELECT is of the form: // -// SELECT count(*) FROM <tbl> +// SELECT count(*) FROM <tbl> // // where table is a database table, not a sub-select or view. If the query // does match this pattern, then a pointer to the Table object representing @@ -166224,7 +167238,7 @@ func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8 // this routine returns NULL when it could have returned a table pointer. // But returning the pointer when NULL should have been returned can // result in incorrect answers and/or crashes. So, when in doubt, return NULL. -func isSimpleCount(tls *libc.TLS, p uintptr, pAggInfo uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139252:14: */ +func isSimpleCount(tls *libc.TLS, p uintptr, pAggInfo uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140727:14: */ var pTab uintptr var pExpr uintptr @@ -166264,35 +167278,35 @@ func isSimpleCount(tls *libc.TLS, p uintptr, pAggInfo uintptr) uintptr { /* test // was such a clause and the named index cannot be found, return // SQLITE_ERROR and leave an error in pParse. Otherwise, populate // pFrom->pIndex and return SQLITE_OK. -func Xsqlite3IndexedByLookup(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139290:20: */ +func Xsqlite3IndexedByLookup(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140765:20: */ bp := tls.Alloc(16) defer tls.Free(16) var pTab uintptr = (*SrcItem)(unsafe.Pointer(pFrom)).FpTab - var zIndexedBy uintptr = *(*uintptr)(unsafe.Pointer(pFrom + 96)) + var zIndexedBy uintptr = *(*uintptr)(unsafe.Pointer(pFrom + 88)) var pIdx uintptr for pIdx = (*Table)(unsafe.Pointer(pTab)).FpIndex; pIdx != 0 && Xsqlite3StrICmp(tls, (*Index)(unsafe.Pointer(pIdx)).FzName, zIndexedBy) != 0; pIdx = (*Index)(unsafe.Pointer(pIdx)).FpNext { } if !(pIdx != 0) { - Xsqlite3ErrorMsg(tls, pParse, ts+20369, libc.VaList(bp, zIndexedBy, 0)) + Xsqlite3ErrorMsg(tls, pParse, ts+20312, libc.VaList(bp, zIndexedBy, 0)) (*Parse)(unsafe.Pointer(pParse)).FcheckSchema = U8(1) return SQLITE_ERROR } - *(*uintptr)(unsafe.Pointer(pFrom + 104)) = pIdx + *(*uintptr)(unsafe.Pointer(pFrom + 96)) = pIdx return SQLITE_OK } // Detect compound SELECT statements that use an ORDER BY clause with // an alternative collating sequence. // -// SELECT ... FROM t1 EXCEPT SELECT ... FROM t2 ORDER BY .. COLLATE ... +// SELECT ... FROM t1 EXCEPT SELECT ... FROM t2 ORDER BY .. COLLATE ... // // These are rewritten as a subquery: // -// SELECT * FROM (SELECT ... FROM t1 EXCEPT SELECT ... FROM t2) -// ORDER BY ... COLLATE ... +// SELECT * FROM (SELECT ... FROM t1 EXCEPT SELECT ... FROM t2) +// ORDER BY ... COLLATE ... // // This transformation is necessary because the multiSelectOrderBy() routine // above that generates the code for a compound SELECT with an ORDER BY clause @@ -166303,7 +167317,7 @@ func Xsqlite3IndexedByLookup(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 // This transformation is only needed for EXCEPT, INTERSECT, and UNION. // The UNION ALL operator works fine with multiSelectOrderBy() even when // there are COLLATE terms in the ORDER BY. -func convertCompoundSelectToSubquery(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139332:12: */ +func convertCompoundSelectToSubquery(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140807:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -166354,7 +167368,7 @@ func convertCompoundSelectToSubquery(tls *libc.TLS, pWalker uintptr, p uintptr) return WRC_Abort } libc.Xmemset(tls, bp, 0, uint64(unsafe.Sizeof(Token{}))) - pNewSrc = Xsqlite3SrcListAppendFromTerm(tls, pParse, uintptr(0), uintptr(0), uintptr(0), bp, pNew, uintptr(0), uintptr(0)) + pNewSrc = Xsqlite3SrcListAppendFromTerm(tls, pParse, uintptr(0), uintptr(0), uintptr(0), bp, pNew, uintptr(0)) if pNewSrc == uintptr(0) { return WRC_Abort } @@ -166382,12 +167396,12 @@ func convertCompoundSelectToSubquery(tls *libc.TLS, pWalker uintptr, p uintptr) // Check to see if the FROM clause term pFrom has table-valued function // arguments. If it does, leave an error message in pParse and return // non-zero, since pFrom is not allowed to be a table-valued function. -func cannotBeFunction(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139397:12: */ +func cannotBeFunction(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140872:12: */ bp := tls.Alloc(8) defer tls.Free(8) if uint32(int32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x4>>2)) != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+20387, libc.VaList(bp, (*SrcItem)(unsafe.Pointer(pFrom)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+20330, libc.VaList(bp, (*SrcItem)(unsafe.Pointer(pFrom)).FzName)) return 1 } return 0 @@ -166401,7 +167415,7 @@ func cannotBeFunction(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* t // // If a non-NULL value is returned, set *ppContext to point to the With // object that the returned CTE belongs to. -func searchWith(tls *libc.TLS, pWith uintptr, pItem uintptr, ppContext uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139416:19: */ +func searchWith(tls *libc.TLS, pWith uintptr, pItem uintptr, ppContext uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140891:19: */ var zName uintptr = (*SrcItem)(unsafe.Pointer(pItem)).FzName var p uintptr @@ -166436,7 +167450,7 @@ func searchWith(tls *libc.TLS, pWith uintptr, pItem uintptr, ppContext uintptr) // // If bFree is true, do not continue to use the pWith pointer after // calling this routine, Instead, use only the return value. -func Xsqlite3WithPush(tls *libc.TLS, pParse uintptr, pWith uintptr, bFree U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139455:21: */ +func Xsqlite3WithPush(tls *libc.TLS, pParse uintptr, pWith uintptr, bFree U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140930:21: */ if pWith != 0 { if bFree != 0 { pWith = Xsqlite3ParserAddCleanup(tls, pParse, @@ -166469,7 +167483,7 @@ func Xsqlite3WithPush(tls *libc.TLS, pParse uintptr, pWith uintptr, bFree U8) ui // Return 0 if no match is found. // Return 1 if a match is found. // Return 2 if an error condition is detected. -func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139486:12: */ +func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:140961:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -166491,7 +167505,7 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom // it cannot possibly be a CTE reference. return 0 } - if uint32(int32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x100>>8)) != 0 { + if uint32(int32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x200>>9)) != 0 { // The FROM term is specifically excluded from matching a CTE. // (1) It is part of a trigger that used to have zDatabase but had // zDatabase removed by sqlite3FixTriggerStep(). @@ -166552,11 +167566,11 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom *(*U32)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pFrom)).FpSelect + 4)) |= U32(SF_CopyCte) if uint32(int32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x2>>1)) != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+20410, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pFrom + 96)))) + Xsqlite3ErrorMsg(tls, pParse, ts+20353, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pFrom + 88)))) return 2 } - libc.SetBitFieldPtr16Uint32(pFrom+60+4, uint32(1), 7, 0x80) - *(*uintptr)(unsafe.Pointer(pFrom + 104)) = pCteUse + libc.SetBitFieldPtr16Uint32(pFrom+60+4, uint32(1), 8, 0x100) + *(*uintptr)(unsafe.Pointer(pFrom + 96)) = pCteUse (*CteUse)(unsafe.Pointer(pCteUse)).FnUse++ if (*CteUse)(unsafe.Pointer(pCteUse)).FnUse >= 2 && int32((*CteUse)(unsafe.Pointer(pCteUse)).FeM10d) == M10d_Any { (*CteUse)(unsafe.Pointer(pCteUse)).FeM10d = U8(M10d_Yes) @@ -166570,16 +167584,16 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom var pSrc uintptr = (*Select)(unsafe.Pointer(pRecTerm)).FpSrc for i = 0; i < (*SrcList)(unsafe.Pointer(pSrc)).FnSrc; i++ { - var pItem uintptr = pSrc + 8 + uintptr(i)*112 + var pItem uintptr = pSrc + 8 + uintptr(i)*104 if (*SrcItem)(unsafe.Pointer(pItem)).FzDatabase == uintptr(0) && (*SrcItem)(unsafe.Pointer(pItem)).FzName != uintptr(0) && 0 == Xsqlite3StrICmp(tls, (*SrcItem)(unsafe.Pointer(pItem)).FzName, (*Cte)(unsafe.Pointer(pCte)).FzName) { (*SrcItem)(unsafe.Pointer(pItem)).FpTab = pTab (*Table)(unsafe.Pointer(pTab)).FnTabRef++ - libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 5, 0x20) + libc.SetBitFieldPtr16Uint32(pItem+60+4, uint32(1), 6, 0x40) if (*Select)(unsafe.Pointer(pRecTerm)).FselFlags&U32(SF_Recursive) != 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+20430, libc.VaList(bp+16, (*Cte)(unsafe.Pointer(pCte)).FzName)) + ts+20373, libc.VaList(bp+16, (*Cte)(unsafe.Pointer(pCte)).FzName)) return 2 } *(*U32)(unsafe.Pointer(pRecTerm + 4)) |= U32(SF_Recursive) @@ -166595,7 +167609,7 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom pRecTerm = (*Select)(unsafe.Pointer(pRecTerm)).FpPrior } - (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 20473 /* "circular referen..." */ + (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 20416 /* "circular referen..." */ pSavedWith = (*Parse)(unsafe.Pointer(pParse)).FpWith (*Parse)(unsafe.Pointer(pParse)).FpWith = *(*uintptr)(unsafe.Pointer(bp + 48 /* pWith */)) if (*Select)(unsafe.Pointer(pSel)).FselFlags&U32(SF_Recursive) != 0 { @@ -166621,7 +167635,7 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom pEList = (*Select)(unsafe.Pointer(pLeft)).FpEList if (*Cte)(unsafe.Pointer(pCte)).FpCols != 0 { if pEList != 0 && (*ExprList)(unsafe.Pointer(pEList)).FnExpr != (*ExprList)(unsafe.Pointer((*Cte)(unsafe.Pointer(pCte)).FpCols)).FnExpr { - Xsqlite3ErrorMsg(tls, pParse, ts+20496, + Xsqlite3ErrorMsg(tls, pParse, ts+20439, libc.VaList(bp+24, (*Cte)(unsafe.Pointer(pCte)).FzName, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, (*ExprList)(unsafe.Pointer((*Cte)(unsafe.Pointer(pCte)).FpCols)).FnExpr)) (*Parse)(unsafe.Pointer(pParse)).FpWith = pSavedWith return 2 @@ -166632,9 +167646,9 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom Xsqlite3ColumnsFromExprList(tls, pParse, pEList, pTab+54, pTab+8) if bMayRecursive != 0 { if (*Select)(unsafe.Pointer(pSel)).FselFlags&U32(SF_Recursive) != 0 { - (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 20534 /* "multiple recursi..." */ + (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 20477 /* "multiple recursi..." */ } else { - (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 20568 /* "recursive refere..." */ + (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 20511 /* "recursive refere..." */ } Xsqlite3WalkSelect(tls, pWalker, pSel) } @@ -166651,7 +167665,7 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom // This function is used as the xSelectCallback2() callback by // sqlite3SelectExpand() when walking a SELECT tree to resolve table // names and other FROM clause elements. -func Xsqlite3SelectPopWith(tls *libc.TLS, pWalker uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139670:21: */ +func Xsqlite3SelectPopWith(tls *libc.TLS, pWalker uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141145:21: */ var pParse uintptr = (*Walker)(unsafe.Pointer(pWalker)).FpParse if (*Parse)(unsafe.Pointer(pParse)).FpWith != 0 && (*Select)(unsafe.Pointer(p)).FpPrior == uintptr(0) { var pWith uintptr = (*Select)(unsafe.Pointer(findRightmost(tls, p))).FpWith @@ -166667,7 +167681,7 @@ func Xsqlite3SelectPopWith(tls *libc.TLS, pWalker uintptr, p uintptr) { /* testd // allocates and populates the SrcList_item.pTab object. If successful, // SQLITE_OK is returned. Otherwise, if an OOM error is encountered, // SQLITE_NOMEM. -func Xsqlite3ExpandSubquery(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139689:20: */ +func Xsqlite3ExpandSubquery(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141164:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -166682,7 +167696,7 @@ func Xsqlite3ExpandSubquery(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 if (*SrcItem)(unsafe.Pointer(pFrom)).FzAlias != 0 { (*Table)(unsafe.Pointer(pTab)).FzName = Xsqlite3DbStrDup(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, (*SrcItem)(unsafe.Pointer(pFrom)).FzAlias) } else { - (*Table)(unsafe.Pointer(pTab)).FzName = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+20606, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId)) + (*Table)(unsafe.Pointer(pTab)).FzName = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+20549, libc.VaList(bp, pFrom)) } for (*Select)(unsafe.Pointer(pSel)).FpPrior != 0 { pSel = (*Select)(unsafe.Pointer(pSel)).FpPrior @@ -166692,38 +167706,60 @@ func Xsqlite3ExpandSubquery(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 (*Table)(unsafe.Pointer(pTab)).FnRowLogEst = int16(200) // The usual case - do not allow ROWID on a subquery *(*U32)(unsafe.Pointer(pTab + 48)) |= U32(TF_Ephemeral | TF_NoVisibleRowid) - if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 { return SQLITE_ERROR } return SQLITE_OK } +// Check the N SrcItem objects to the right of pBase. (N might be zero!) +// If any of those SrcItem objects have a USING clause containing zName +// then return true. +// +// If N is zero, or none of the N SrcItem objects to the right of pBase +// contains a USING clause, or if none of the USING clauses contain zName, +// then return false. +func inAnyUsingClause(tls *libc.TLS, zName uintptr, pBase uintptr, N int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141200:12: */ + for N > 0 { + N-- + pBase += 104 + if int32(*(*uint16)(unsafe.Pointer(pBase + 60 + 4))&0x400>>10) == 0 { + continue + } + if *(*uintptr)(unsafe.Pointer(pBase + 72)) == uintptr(0) { + continue + } + if Xsqlite3IdListIndex(tls, *(*uintptr)(unsafe.Pointer(pBase + 72)), zName) >= 0 { + return 1 + } + } + return 0 +} + // This routine is a Walker callback for "expanding" a SELECT statement. // "Expanding" means to do the following: // -// (1) Make sure VDBE cursor numbers have been assigned to every -// element of the FROM clause. -// -// (2) Fill in the pTabList->a[].pTab fields in the SrcList that -// defines FROM clause. When views appear in the FROM clause, -// fill pTabList->a[].pSelect with a copy of the SELECT statement -// that implements the view. A copy is made of the view's SELECT -// statement so that we can freely modify or delete that statement -// without worrying about messing up the persistent representation -// of the view. -// -// (3) Add terms to the WHERE clause to accommodate the NATURAL keyword -// on joins and the ON and USING clause of joins. -// -// (4) Scan the list of columns in the result set (pEList) looking -// for instances of the "*" operator or the TABLE.* operator. -// If found, expand each "*" to be every column in every table -// and TABLE.* to be every column in TABLE. -// -func selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:139741:12: */ - bp := tls.Alloc(88) - defer tls.Free(88) +// (1) Make sure VDBE cursor numbers have been assigned to every +// element of the FROM clause. +// +// (2) Fill in the pTabList->a[].pTab fields in the SrcList that +// defines FROM clause. When views appear in the FROM clause, +// fill pTabList->a[].pSelect with a copy of the SELECT statement +// that implements the view. A copy is made of the view's SELECT +// statement so that we can freely modify or delete that statement +// without worrying about messing up the persistent representation +// of the view. +// +// (3) Add terms to the WHERE clause to accommodate the NATURAL keyword +// on joins and the ON and USING clause of joins. +// +// (4) Scan the list of columns in the result set (pEList) looking +// for instances of the "*" operator or the TABLE.* operator. +// If found, expand each "*" to be every column in every table +// and TABLE.* to be every column in TABLE. +func selectExpander(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141240:12: */ + bp := tls.Alloc(80) + defer tls.Free(80) var pParse uintptr = (*Walker)(unsafe.Pointer(pWalker)).FpParse var i int32 @@ -166809,7 +167845,7 @@ __1: return WRC_Abort } if (*Table)(unsafe.Pointer(pTab)).FnTabRef >= U32(0xffff) { - Xsqlite3ErrorMsg(tls, pParse, ts+20618, + Xsqlite3ErrorMsg(tls, pParse, ts+20553, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) (*SrcItem)(unsafe.Pointer(pFrom)).FpTab = uintptr(0) return WRC_Abort @@ -166828,15 +167864,15 @@ __1: if int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW { if (*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_EnableView) == uint64(0) && (*Table)(unsafe.Pointer(pTab)).FpSchema != (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema { - Xsqlite3ErrorMsg(tls, pParse, ts+20657, + Xsqlite3ErrorMsg(tls, pParse, ts+20592, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) } (*SrcItem)(unsafe.Pointer(pFrom)).FpSelect = Xsqlite3SelectDup(tls, db, *(*uintptr)(unsafe.Pointer(pTab + 64)), 0) } else if int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB && - uint32(int32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x40>>6)) != 0 && + uint32(int32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x80>>7)) != 0 && *(*uintptr)(unsafe.Pointer(pTab + 64 + 16)) != uintptr(0) && int32((*VTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pTab + 64 + 16)))).FeVtabRisk) > libc.Bool32((*Sqlite3)(unsafe.Pointer(db)).Fflags&uint64(SQLITE_TrustedSchema) != uint64(0)) { - Xsqlite3ErrorMsg(tls, pParse, ts+20688, + Xsqlite3ErrorMsg(tls, pParse, ts+20623, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName)) } @@ -166858,7 +167894,7 @@ __1: goto __2 __2: i++ - pFrom += 112 + pFrom += 104 goto __1 goto __3 __3: @@ -166866,7 +167902,7 @@ __3: // Process NATURAL keywords, and ON and USING clauses of joins. - if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || sqliteProcessJoin(tls, pParse, p) != 0 { + if (*Parse)(unsafe.Pointer(pParse)).FnErr != 0 || sqlite3ProcessJoin(tls, pParse, p) != 0 { return WRC_Abort } @@ -166912,7 +167948,7 @@ __3: pNew = Xsqlite3ExprListAppend(tls, pParse, pNew, (*ExprList_item)(unsafe.Pointer(a+uintptr(k)*32)).FpExpr) if pNew != 0 { (*ExprList_item)(unsafe.Pointer(pNew + 8 + uintptr((*ExprList)(unsafe.Pointer(pNew)).FnExpr-1)*32)).FzEName = (*ExprList_item)(unsafe.Pointer(a + uintptr(k)*32)).FzEName - libc.SetBitFieldPtr8Uint32(pNew+8+uintptr((*ExprList)(unsafe.Pointer(pNew)).FnExpr-1)*32+20, uint32(int32(*(*uint8)(unsafe.Pointer(a + uintptr(k)*32 + 20))&0x3>>0)), 0, 0x3) + libc.SetBitFieldPtr16Uint32(pNew+8+uintptr((*ExprList)(unsafe.Pointer(pNew)).FnExpr-1)*32+16+4, uint32(int32(*(*uint16)(unsafe.Pointer(a + uintptr(k)*32 + 16 + 4))&0x3>>0)), 0, 0x3) (*ExprList_item)(unsafe.Pointer(a + uintptr(k)*32)).FzEName = uintptr(0) } (*ExprList_item)(unsafe.Pointer(a + uintptr(k)*32)).FpExpr = uintptr(0) @@ -166932,38 +167968,63 @@ __3: goto __6 } { - var pTab uintptr = (*SrcItem)(unsafe.Pointer(pFrom)).FpTab - var pSub uintptr = (*SrcItem)(unsafe.Pointer(pFrom)).FpSelect - var zTabName uintptr = (*SrcItem)(unsafe.Pointer(pFrom)).FzAlias - var zSchemaName uintptr = uintptr(0) - var iDb int32 - if zTabName == uintptr(0) { + var pTab uintptr = (*SrcItem)(unsafe.Pointer(pFrom)).FpTab // Table for this data source + var pNestedFrom uintptr // Result-set of a nested FROM clause + var zTabName uintptr // AS name for this data source + var zSchemaName uintptr = uintptr(0) // Schema name for this data source + var iDb int32 // Schema index for this data src + var pUsing uintptr // USING clause for pFrom[1] + + if libc.AssignUintptr(&zTabName, (*SrcItem)(unsafe.Pointer(pFrom)).FzAlias) == uintptr(0) { zTabName = (*Table)(unsafe.Pointer(pTab)).FzName } if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { goto __6 } - if pSub == uintptr(0) || (*Select)(unsafe.Pointer(pSub)).FselFlags&U32(SF_NestedFrom) == U32(0) { - pSub = uintptr(0) + + if uint32(int32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x2000>>13)) != 0 { + + pNestedFrom = (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pFrom)).FpSelect)).FpEList + + } else { if zTName != 0 && Xsqlite3StrICmp(tls, zTName, zTabName) != 0 { goto __5 } + pNestedFrom = uintptr(0) iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema) if iDb >= 0 { zSchemaName = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName } else { - zSchemaName = ts + 7689 /* "*" */ + zSchemaName = ts + 7724 /* "*" */ + } + } + if i+1 < (*SrcList)(unsafe.Pointer(pTabList)).FnSrc && + uint32(int32(*(*uint16)(unsafe.Pointer(pFrom + 1*104 + 60 + 4))&0x400>>10)) != 0 && + int32(selFlags)&SF_NestedFrom != 0 { + var ii int32 + pUsing = *(*uintptr)(unsafe.Pointer(pFrom + 1*104 + 72)) + for ii = 0; ii < (*IdList)(unsafe.Pointer(pUsing)).FnId; ii++ { + var zUName uintptr = (*IdList_item)(unsafe.Pointer(pUsing + 8 + uintptr(ii)*16)).FzName + pRight = Xsqlite3Expr(tls, db, TK_ID, zUName) + pNew = Xsqlite3ExprListAppend(tls, pParse, pNew, pRight) + if pNew != 0 { + var pX uintptr = pNew + 8 + uintptr((*ExprList)(unsafe.Pointer(pNew)).FnExpr-1)*32 + + (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3MPrintf(tls, db, ts+20656, libc.VaList(bp+24, zUName)) + libc.SetBitFieldPtr16Uint32(pX+16+4, uint32(ENAME_TAB), 0, 0x3) + libc.SetBitFieldPtr16Uint32(pX+16+4, uint32(1), 7, 0x80) + } } + } else { + pUsing = uintptr(0) } for j = 0; j < int32((*Table)(unsafe.Pointer(pTab)).FnCol); j++ { var zName uintptr = (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*24)).FzCnName - var zColname uintptr // The computed column name - var zToFree uintptr // Malloced string that needs to be freed - // var sColname Token at bp+72, 16 - // Computed column name as a token + var pX uintptr // Newly added ExprList term - if zTName != 0 && pSub != 0 && - Xsqlite3MatchEName(tls, (*Select)(unsafe.Pointer(pSub)).FpEList+8+uintptr(j)*32, uintptr(0), zTName, uintptr(0)) == 0 { + if zTName != 0 && + pNestedFrom != 0 && + Xsqlite3MatchEName(tls, pNestedFrom+8+uintptr(j)*32, uintptr(0), zTName, uintptr(0)) == 0 { continue } @@ -166974,72 +168035,85 @@ __3: int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FcolFlags)&COLFLAG_HIDDEN != 0 { continue } + if int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FcolFlags)&COLFLAG_NOEXPAND != 0 && + zTName == uintptr(0) && + int32(selFlags)&SF_NestedFrom == 0 { + continue + } tableSeen = 1 - if i > 0 && zTName == uintptr(0) { - if int32((*SrcItem)(unsafe.Pointer(pFrom)).Ffg.Fjointype)&JT_NATURAL != 0 && - tableAndColumnIndex(tls, pTabList, i, zName, uintptr(0), uintptr(0), 1) != 0 { - // In a NATURAL join, omit the join columns from the - // table to the right of the join - continue - } - if Xsqlite3IdListIndex(tls, (*SrcItem)(unsafe.Pointer(pFrom)).FpUsing, zName) >= 0 { + if i > 0 && zTName == uintptr(0) && int32(selFlags)&SF_NestedFrom == 0 { + if uint32(int32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x400>>10)) != 0 && + Xsqlite3IdListIndex(tls, *(*uintptr)(unsafe.Pointer(pFrom + 72)), zName) >= 0 { // In a join with a USING clause, omit columns in the // using clause from the table on the right. continue } } pRight = Xsqlite3Expr(tls, db, TK_ID, zName) - zColname = zName - zToFree = uintptr(0) - if longNames != 0 || (*SrcList)(unsafe.Pointer(pTabList)).FnSrc > 1 { + if (*SrcList)(unsafe.Pointer(pTabList)).FnSrc > 1 && + (int32((*SrcItem)(unsafe.Pointer(pFrom)).Ffg.Fjointype)&JT_LTORJ == 0 || + int32(selFlags)&SF_NestedFrom != 0 || + !(inAnyUsingClause(tls, zName, pFrom, (*SrcList)(unsafe.Pointer(pTabList)).FnSrc-i-1) != 0)) || + int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME { var pLeft uintptr pLeft = Xsqlite3Expr(tls, db, TK_ID, zTabName) pExpr = Xsqlite3PExpr(tls, pParse, TK_DOT, pLeft, pRight) + if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME && (*Expr)(unsafe.Pointer(pE)).FpLeft != 0 { + Xsqlite3RenameTokenRemap(tls, pParse, pLeft, (*Expr)(unsafe.Pointer(pE)).FpLeft) + } if zSchemaName != 0 { pLeft = Xsqlite3Expr(tls, db, TK_ID, zSchemaName) pExpr = Xsqlite3PExpr(tls, pParse, TK_DOT, pLeft, pExpr) } - if longNames != 0 { - zColname = Xsqlite3MPrintf(tls, db, ts+13298, libc.VaList(bp+24, zTabName, zName)) - zToFree = zColname - } } else { pExpr = pRight } pNew = Xsqlite3ExprListAppend(tls, pParse, pNew, pExpr) - Xsqlite3TokenInit(tls, bp+72, zColname) - Xsqlite3ExprListSetName(tls, pParse, pNew, bp+72, 0) - if pNew != 0 && (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_NestedFrom) != U32(0) && !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) { - var pX uintptr = pNew + 8 + uintptr((*ExprList)(unsafe.Pointer(pNew)).FnExpr-1)*32 - Xsqlite3DbFree(tls, db, (*ExprList_item)(unsafe.Pointer(pX)).FzEName) - if pSub != 0 { - (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3DbStrDup(tls, db, (*ExprList_item)(unsafe.Pointer((*Select)(unsafe.Pointer(pSub)).FpEList+8+uintptr(j)*32)).FzEName) + if pNew == uintptr(0) { + break // OOM + } + pX = pNew + 8 + uintptr((*ExprList)(unsafe.Pointer(pNew)).FnExpr-1)*32 + + if int32(selFlags)&SF_NestedFrom != 0 && !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) { + if pNestedFrom != 0 { + (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3DbStrDup(tls, db, (*ExprList_item)(unsafe.Pointer(pNestedFrom+8+uintptr(j)*32)).FzEName) } else { - (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3MPrintf(tls, db, ts+20721, - libc.VaList(bp+40, zSchemaName, zTabName, zColname)) + (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3MPrintf(tls, db, ts+20661, + libc.VaList(bp+32, zSchemaName, zTabName, zName)) } - libc.SetBitFieldPtr8Uint32(pX+20, uint32(ENAME_TAB), 0, 0x3) + libc.SetBitFieldPtr16Uint32(pX+16+4, uint32(ENAME_TAB), 0, 0x3) + if uint32(int32(*(*uint16)(unsafe.Pointer(pFrom + 60 + 4))&0x400>>10)) != 0 && + Xsqlite3IdListIndex(tls, *(*uintptr)(unsafe.Pointer(pFrom + 72)), zName) >= 0 || + pUsing != 0 && Xsqlite3IdListIndex(tls, pUsing, zName) >= 0 || + int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FcolFlags)&COLFLAG_NOEXPAND != 0 { + libc.SetBitFieldPtr16Uint32(pX+16+4, uint32(1), 8, 0x100) + } + } else if longNames != 0 { + (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3MPrintf(tls, db, ts+13337, libc.VaList(bp+56, zTabName, zName)) + libc.SetBitFieldPtr16Uint32(pX+16+4, uint32(ENAME_NAME), 0, 0x3) + } else { + (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3DbStrDup(tls, db, zName) + libc.SetBitFieldPtr16Uint32(pX+16+4, uint32(ENAME_NAME), 0, 0x3) } - Xsqlite3DbFree(tls, db, zToFree) } } goto __5 __5: i++ - pFrom += 112 + pFrom += 104 goto __4 goto __6 __6: ; if !(tableSeen != 0) { if zTName != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+20730, libc.VaList(bp+64, zTName)) + Xsqlite3ErrorMsg(tls, pParse, ts+20670, libc.VaList(bp+72, zTName)) } else { - Xsqlite3ErrorMsg(tls, pParse, ts+20748, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+20688, 0) } } } @@ -167049,7 +168123,7 @@ __3: } if (*Select)(unsafe.Pointer(p)).FpEList != 0 { if (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpEList)).FnExpr > *(*int32)(unsafe.Pointer(db + 136 + 2*4)) { - Xsqlite3ErrorMsg(tls, pParse, ts+20768, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+20708, 0) return WRC_Abort } if elistFlags&U32(EP_HasFunc|EP_Subquery) != U32(0) { @@ -167070,7 +168144,7 @@ __3: // If anything goes wrong, an error message is written into pParse. // The calling function can detect the problem by looking at pParse->nErr // and/or pParse->db->mallocFailed. -func sqlite3SelectExpand(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140068:13: */ +func sqlite3SelectExpand(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141619:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -167108,7 +168182,7 @@ func sqlite3SelectExpand(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* te // by selectExpander() but the type and collation information was omitted // at that point because identifiers had not yet been resolved. This // routine is called after identifier resolution. -func selectAddSubqueryTypeInfo(tls *libc.TLS, pWalker uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140098:13: */ +func selectAddSubqueryTypeInfo(tls *libc.TLS, pWalker uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141649:13: */ var pParse uintptr var i int32 var pTabList uintptr @@ -167145,7 +168219,7 @@ __1: goto __2 __2: i++ - pFrom += 112 + pFrom += 104 goto __1 goto __3 __3: @@ -167156,7 +168230,7 @@ __3: // SELECT statement. // // Use this routine after name resolution. -func sqlite3SelectAddTypeInfo(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140133:13: */ +func sqlite3SelectAddTypeInfo(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141684:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -167178,14 +168252,14 @@ func sqlite3SelectAddTypeInfo(tls *libc.TLS, pParse uintptr, pSelect uintptr) { // This routine sets up a SELECT statement for processing. The // following is accomplished: // -// * VDBE Cursor numbers are assigned to all FROM-clause terms. -// * Ephemeral Table objects are created for all FROM-clause subqueries. -// * ON and USING clauses are shifted into WHERE statements -// * Wildcards "*" and "TABLE.*" in result sets are expanded. -// * Identifiers in expression are matched to tables. +// - VDBE Cursor numbers are assigned to all FROM-clause terms. +// - Ephemeral Table objects are created for all FROM-clause subqueries. +// - ON and USING clauses are shifted into WHERE statements +// - Wildcards "*" and "TABLE.*" in result sets are expanded. +// - Identifiers in expression are matched to tables. // // This routine acts recursively on all subqueries within the SELECT. -func Xsqlite3SelectPrep(tls *libc.TLS, pParse uintptr, p uintptr, pOuterNC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140157:21: */ +func Xsqlite3SelectPrep(tls *libc.TLS, pParse uintptr, p uintptr, pOuterNC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141708:21: */ if (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FmallocFailed != 0 { return @@ -167210,7 +168284,7 @@ func Xsqlite3SelectPrep(tls *libc.TLS, pParse uintptr, p uintptr, pOuterNC uintp // intermediate results while calculating an aggregate. This // routine generates code that stores NULLs in all of those memory // cells. -func resetAccumulator(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140181:13: */ +func resetAccumulator(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141732:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -167238,13 +168312,13 @@ __1: if *(*uintptr)(unsafe.Pointer(pE + 32)) == uintptr(0) || (*ExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pE + 32)))).FnExpr != 1 { Xsqlite3ErrorMsg(tls, pParse, - ts+20799, 0) + ts+20739, 0) (*AggInfo_func)(unsafe.Pointer(pFunc)).FiDistinct = -1 } else { var pKeyInfo uintptr = Xsqlite3KeyInfoFromExprList(tls, pParse, *(*uintptr)(unsafe.Pointer(pE + 32)), 0, 0) (*AggInfo_func)(unsafe.Pointer(pFunc)).FiDistAddr = Xsqlite3VdbeAddOp4(tls, v, OP_OpenEphemeral, - (*AggInfo_func)(unsafe.Pointer(pFunc)).FiDistinct, 0, 0, pKeyInfo, -9) - Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+20850, libc.VaList(bp, (*FuncDef)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName)) + (*AggInfo_func)(unsafe.Pointer(pFunc)).FiDistinct, 0, 0, pKeyInfo, -8) + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+20790, libc.VaList(bp, (*FuncDef)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName)) } } @@ -167260,7 +168334,7 @@ __3: // Invoke the OP_AggFinalize opcode for every aggregate function // in the AggInfo structure. -func finalizeAggFunctions(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140227:13: */ +func finalizeAggFunctions(tls *libc.TLS, pParse uintptr, pAggInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141778:13: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var i int32 var pF uintptr @@ -167280,7 +168354,7 @@ __1: } return 0 }()) - Xsqlite3VdbeAppendP4(tls, v, (*AggInfo_func)(unsafe.Pointer(pF)).FpFunc, -8) + Xsqlite3VdbeAppendP4(tls, v, (*AggInfo_func)(unsafe.Pointer(pF)).FpFunc, -7) } goto __2 @@ -167299,7 +168373,7 @@ __3: // in pAggInfo, then only populate the pAggInfo->nAccumulator accumulator // registers if register regAcc contains 0. The caller will take care // of setting and clearing regAcc. -func updateAccumulator(tls *libc.TLS, pParse uintptr, regAcc int32, pAggInfo uintptr, eDistinctType int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140250:13: */ +func updateAccumulator(tls *libc.TLS, pParse uintptr, regAcc int32, pAggInfo uintptr, eDistinctType int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141801:13: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var i int32 var regHit int32 = 0 @@ -167391,7 +168465,7 @@ __1: Xsqlite3VdbeAddOp4(tls, v, OP_CollSeq, regHit, 0, 0, pColl, -2) } Xsqlite3VdbeAddOp3(tls, v, OP_AggStep, 0, regAgg, (*AggInfo_func)(unsafe.Pointer(pF)).FiMem) - Xsqlite3VdbeAppendP4(tls, v, (*AggInfo_func)(unsafe.Pointer(pF)).FpFunc, -8) + Xsqlite3VdbeAppendP4(tls, v, (*AggInfo_func)(unsafe.Pointer(pF)).FpFunc, -7) Xsqlite3VdbeChangeP5(tls, v, uint16(U8(nArg))) Xsqlite3ReleaseTempRange(tls, pParse, regAgg, nArg) if addrNext != 0 { @@ -167440,17 +168514,17 @@ __9: // Add a single OP_Explain instruction to the VDBE to explain a simple // count(*) query ("SELECT count(*) FROM pTab"). -func explainSimpleCount(tls *libc.TLS, pParse uintptr, pTab uintptr, pIdx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140352:13: */ +func explainSimpleCount(tls *libc.TLS, pParse uintptr, pTab uintptr, pIdx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141903:13: */ bp := tls.Alloc(24) defer tls.Free(24) if int32((*Parse)(unsafe.Pointer(pParse)).Fexplain) == 2 { var bCover int32 = libc.Bool32(pIdx != uintptr(0) && ((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0) || !(int32(*(*uint16)(unsafe.Pointer(pIdx + 100))&0x3>>0) == SQLITE_IDXTYPE_PRIMARYKEY))) - Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+20883, + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+20823, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, func() uintptr { if bCover != 0 { - return ts + 20895 /* " USING COVERING ..." */ + return ts + 20835 /* " USING COVERING ..." */ } return ts + 1524 /* "" */ }(), @@ -167472,7 +168546,7 @@ func explainSimpleCount(tls *libc.TLS, pParse uintptr, pTab uintptr, pIdx uintpt // sub-expression matches the criteria for being moved to the WHERE // clause. If so, add it to the WHERE clause and replace the sub-expression // within the HAVING expression with a constant "1". -func havingToWhereExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140381:12: */ +func havingToWhereExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141932:12: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_AND { var pS uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) // This routine is called before the HAVING clause of the current @@ -167483,10 +168557,10 @@ func havingToWhereExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { // clause in this obscure case, as doing so may corrupt the outer Select // statements AggInfo structure. if Xsqlite3ExprIsConstantOrGroupBy(tls, (*Walker)(unsafe.Pointer(pWalker)).FpParse, pExpr, (*Select)(unsafe.Pointer(pS)).FpGroupBy) != 0 && - libc.Bool32((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin|EP_IsFalse) == U32(EP_IsFalse)) == 0 && + libc.Bool32((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON|EP_IsFalse) == U32(EP_IsFalse)) == 0 && (*Expr)(unsafe.Pointer(pExpr)).FpAggInfo == uintptr(0) { var db uintptr = (*Parse)(unsafe.Pointer((*Walker)(unsafe.Pointer(pWalker)).FpParse)).Fdb - var pNew uintptr = Xsqlite3Expr(tls, db, TK_INTEGER, ts+9177) + var pNew uintptr = Xsqlite3Expr(tls, db, TK_INTEGER, ts+9216) if pNew != 0 { var pWhere uintptr = (*Select)(unsafe.Pointer(pS)).FpWhere { @@ -167509,16 +168583,16 @@ func havingToWhereExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { // processed after grouping, to the WHERE clause, which is processed before // grouping. For example, the query: // -// SELECT * FROM <tables> WHERE a=? GROUP BY b HAVING b=? AND c=? +// SELECT * FROM <tables> WHERE a=? GROUP BY b HAVING b=? AND c=? // // can be rewritten as: // -// SELECT * FROM <tables> WHERE a=? AND b=? GROUP BY b HAVING c=? +// SELECT * FROM <tables> WHERE a=? AND b=? GROUP BY b HAVING c=? // // A term of the HAVING expression is eligible for transfer if it consists // entirely of constants and expressions that are also GROUP BY terms that // use the "BINARY" collation sequence. -func havingToWhere(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140425:13: */ +func havingToWhere(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141976:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -167536,18 +168610,18 @@ func havingToWhere(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlit // Check to see if the pThis entry of pTabList is a self-join of a prior view. // If it is, then return the SrcList_item for the prior view. If it is not, // then return 0. -func isSelfJoinView(tls *libc.TLS, pTabList uintptr, pThis uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140445:16: */ +func isSelfJoinView(tls *libc.TLS, pTabList uintptr, pThis uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:141996:16: */ var pItem uintptr if (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pThis)).FpSelect)).FselFlags&U32(SF_PushDown) != 0 { return uintptr(0) } - for pItem = pTabList + 8; /* &.a */ pItem < pThis; pItem += 112 { + for pItem = pTabList + 8; /* &.a */ pItem < pThis; pItem += 104 { var pS1 uintptr if (*SrcItem)(unsafe.Pointer(pItem)).FpSelect == uintptr(0) { continue } - if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x10>>4)) != 0 { + if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x20>>5)) != 0 { continue } if (*SrcItem)(unsafe.Pointer(pItem)).FzName == uintptr(0) { @@ -167577,12 +168651,34 @@ func isSelfJoinView(tls *libc.TLS, pTabList uintptr, pThis uintptr) uintptr { /* } // Deallocate a single AggInfo object -func agginfoFree(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140480:13: */ +func agginfoFree(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:142031:13: */ Xsqlite3DbFree(tls, db, (*AggInfo)(unsafe.Pointer(p)).FaCol) Xsqlite3DbFree(tls, db, (*AggInfo)(unsafe.Pointer(p)).FaFunc) Xsqlite3DbFreeNN(tls, db, p) } +// If any term of pSrc, or any SF_NestedFrom sub-query, is not the same +// as pSrcItem but has the same alias as p0, then return true. +// Otherwise return false. +func sameSrcAlias(tls *libc.TLS, p0 uintptr, pSrc uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:142131:12: */ + var i int32 + for i = 0; i < (*SrcList)(unsafe.Pointer(pSrc)).FnSrc; i++ { + var p1 uintptr = pSrc + 8 + uintptr(i)*104 + if p1 == p0 { + continue + } + if (*SrcItem)(unsafe.Pointer(p0)).FpTab == (*SrcItem)(unsafe.Pointer(p1)).FpTab && 0 == Xsqlite3_stricmp(tls, (*SrcItem)(unsafe.Pointer(p0)).FzAlias, (*SrcItem)(unsafe.Pointer(p1)).FzAlias) { + return 1 + } + if (*SrcItem)(unsafe.Pointer(p1)).FpSelect != 0 && + (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(p1)).FpSelect)).FselFlags&U32(SF_NestedFrom) != U32(0) && + sameSrcAlias(tls, p0, (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(p1)).FpSelect)).FpSrc) != 0 { + return 1 + } + } + return 0 +} + // Generate code for the SELECT statement given in the p argument. // // The results are returned according to the SelectDest structure. @@ -167594,7 +168690,7 @@ func agginfoFree(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amal // // This routine does NOT free the Select structure passed in. The // calling function needs to do that. -func Xsqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:140588:20: */ +func Xsqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:142162:20: */ bp := tls.Alloc(216) defer tls.Free(216) @@ -167619,7 +168715,6 @@ func Xsqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int // var pMinMaxOrderBy uintptr at bp+208, 8 // Added ORDER BY for min/max queries var minMaxFlag U8 - var p1 uintptr var p0 uintptr var pItem uintptr var pSub uintptr @@ -167638,7 +168733,6 @@ func Xsqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int // the same view can reuse the materialization. var topAddr int32 var onceAddr int32 - var retAddr int32 var pItem1 uintptr var pPrior uintptr // var dest SelectDest at bp+96, 40 @@ -167646,6 +168740,8 @@ func Xsqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int var pSub1 uintptr var zSavedAuthContext uintptr var pKeyInfo uintptr + // Delete or NULL-out result columns that will never be used + var ii int32 var addrGosub int32 var iCont int32 var iBreak int32 @@ -167654,7 +168750,7 @@ func Xsqlite3Select(tls *libc.TLS, pParse uintptr, p uintptr, pDest uintptr) int var wctrlFlags U16 var pWin uintptr var sortFlags U8 - var ii int32 + var ii1 int32 var k int32 // Loop counter var pItem2 uintptr var pExpr uintptr @@ -167785,17 +168881,11 @@ __5: goto __6 } p0 = (*Select)(unsafe.Pointer(p)).FpSrc + 8 - i = 1 -__7: - if !(i < (*SrcList)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpSrc)).FnSrc) { - goto __9 - } - p1 = (*Select)(unsafe.Pointer(p)).FpSrc + 8 + uintptr(i)*112 - if !((*SrcItem)(unsafe.Pointer(p0)).FpTab == (*SrcItem)(unsafe.Pointer(p1)).FpTab && 0 == Xsqlite3_stricmp(tls, (*SrcItem)(unsafe.Pointer(p0)).FzAlias, (*SrcItem)(unsafe.Pointer(p1)).FzAlias)) { - goto __10 + if !(sameSrcAlias(tls, p0, (*Select)(unsafe.Pointer(p)).FpSrc) != 0) { + goto __7 } Xsqlite3ErrorMsg(tls, pParse, - ts+20918, + ts+20858, libc.VaList(bp, func() uintptr { if (*SrcItem)(unsafe.Pointer(p0)).FzAlias != 0 { return (*SrcItem)(unsafe.Pointer(p0)).FzAlias @@ -167803,14 +168893,7 @@ __7: return (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(p0)).FpTab)).FzName }())) goto select_end -__10: - ; - goto __8 -__8: - i++ - goto __7 - goto __9 -__9: +__7: ; // Clear the SF_UFSrcCheck flag. The check has already been performed, @@ -167822,18 +168905,18 @@ __6: ; if !(int32((*SelectDest)(unsafe.Pointer(pDest)).FeDest) == SRT_Output) { - goto __11 + goto __8 } Xsqlite3GenerateColumnNames(tls, pParse, p) -__11: +__8: ; if !(Xsqlite3WindowRewrite(tls, pParse, p) != 0) { - goto __12 + goto __9 } goto select_end -__12: +__9: ; pTabList = (*Select)(unsafe.Pointer(p)).FpSrc isAgg = libc.Bool32((*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Aggregate) != U32(0)) @@ -167843,11 +168926,11 @@ __12: // Try to do various optimizations (flattening subqueries, and strength // reduction of join operators) in the FROM clause up into the main query i = 0 -__13: +__10: if !(!(int32((*Select)(unsafe.Pointer(p)).FpPrior) != 0) && i < (*SrcList)(unsafe.Pointer(pTabList)).FnSrc) { - goto __15 + goto __12 } - pItem = pTabList + 8 + uintptr(i)*112 + pItem = pTabList + 8 + uintptr(i)*104 pSub = (*SrcItem)(unsafe.Pointer(pItem)).FpSelect pTab = (*SrcItem)(unsafe.Pointer(pItem)).FpTab @@ -167857,34 +168940,36 @@ __13: // Convert LEFT JOIN into JOIN if there are terms of the right table // of the LEFT JOIN used in the WHERE clause. - if !(int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_LEFT != 0 && + if !(int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&(JT_LEFT|JT_RIGHT) == JT_LEFT && Xsqlite3ExprImpliesNonNullRow(tls, (*Select)(unsafe.Pointer(p)).FpWhere, (*SrcItem)(unsafe.Pointer(pItem)).FiCursor) != 0 && (*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_SimplifyJoin) == U32(0)) { - goto __16 + goto __13 } *(*U8)(unsafe.Pointer(pItem + 60)) &= libc.Uint8FromInt32(libc.CplInt32(JT_LEFT | JT_OUTER)) - unsetJoinExpr(tls, (*Select)(unsafe.Pointer(p)).FpWhere, (*SrcItem)(unsafe.Pointer(pItem)).FiCursor) -__16: + + unsetJoinExpr(tls, (*Select)(unsafe.Pointer(p)).FpWhere, (*SrcItem)(unsafe.Pointer(pItem)).FiCursor, + int32((*SrcItem)(unsafe.Pointer(pTabList+8)).Ffg.Fjointype)&JT_LTORJ) +__13: ; // No futher action if this term of the FROM clause is no a subquery if !(pSub == uintptr(0)) { - goto __17 + goto __14 } - goto __14 -__17: + goto __11 +__14: ; // Catch mismatch in the declared columns of a view and the number of // columns in the SELECT on the RHS if !(int32((*Table)(unsafe.Pointer(pTab)).FnCol) != (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(pSub)).FpEList)).FnExpr) { - goto __18 + goto __15 } - Xsqlite3ErrorMsg(tls, pParse, ts+20972, + Xsqlite3ErrorMsg(tls, pParse, ts+20912, libc.VaList(bp+8, int32((*Table)(unsafe.Pointer(pTab)).FnCol), (*Table)(unsafe.Pointer(pTab)).FzName, (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(pSub)).FpEList)).FnExpr)) goto select_end -__18: +__15: ; // Do not try to flatten an aggregate subquery. @@ -167894,10 +168979,10 @@ __18: // will be implemented as a co-routine and there is no advantage to // flattening in that case. if !((*Select)(unsafe.Pointer(pSub)).FselFlags&U32(SF_Aggregate) != U32(0)) { - goto __19 + goto __16 } - goto __14 -__19: + goto __11 +__16: ; // If a FROM-clause subquery has an ORDER BY clause that is not @@ -167925,12 +169010,16 @@ __19: (*Select)(unsafe.Pointer(pSub)).FselFlags&U32(SF_OrderByReqd) == U32(0) && (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_OrderByReqd) == U32(0) && (*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_OmitOrderBy) == U32(0)) { - goto __20 + goto __17 } - Xsqlite3ExprListDelete(tls, db, (*Select)(unsafe.Pointer(pSub)).FpOrderBy) + Xsqlite3ParserAddCleanup(tls, pParse, + *(*uintptr)(unsafe.Pointer(&struct { + f func(*libc.TLS, uintptr, uintptr) + }{Xsqlite3ExprListDelete})), + (*Select)(unsafe.Pointer(pSub)).FpOrderBy) (*Select)(unsafe.Pointer(pSub)).FpOrderBy = uintptr(0) -__20: +__17: ; // If the outer query contains a "complex" result set (that is, @@ -167954,61 +169043,61 @@ __20: i == 0 && (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_ComplexResult) != U32(0) && ((*SrcList)(unsafe.Pointer(pTabList)).FnSrc == 1 || - int32((*SrcItem)(unsafe.Pointer(pTabList+8+1*112)).Ffg.Fjointype)&(JT_LEFT|JT_CROSS) != 0)) { - goto __21 + int32((*SrcItem)(unsafe.Pointer(pTabList+8+1*104)).Ffg.Fjointype)&(JT_OUTER|JT_CROSS) != 0)) { + goto __18 } - goto __14 -__21: + goto __11 +__18: ; if !(flattenSubquery(tls, pParse, p, i, isAgg) != 0) { - goto __22 + goto __19 } if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) { - goto __23 + goto __20 } goto select_end -__23: +__20: ; // This subquery can be absorbed into its parent. i = -1 -__22: +__19: ; pTabList = (*Select)(unsafe.Pointer(p)).FpSrc if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { - goto __24 + goto __21 } goto select_end -__24: +__21: ; if !!(int32((*SelectDest)(unsafe.Pointer(pDest)).FeDest) <= SRT_Fifo) { - goto __25 + goto __22 } (*SortCtx)(unsafe.Pointer(bp + 48 /* &sSort */)).FpOrderBy = (*Select)(unsafe.Pointer(p)).FpOrderBy -__25: +__22: ; - goto __14 -__14: + goto __11 +__11: i++ - goto __13 - goto __15 -__15: + goto __10 + goto __12 +__12: ; // Handle compound SELECT statements using the separate multiSelect() // procedure. if !((*Select)(unsafe.Pointer(p)).FpPrior != 0) { - goto __26 + goto __23 } rc = multiSelect(tls, pParse, p, pDest) if !((*Select)(unsafe.Pointer(p)).FpNext == uintptr(0)) { - goto __27 + goto __24 } Xsqlite3VdbeExplainPop(tls, pParse) -__27: +__24: ; return rc -__26: +__23: ; // Do the WHERE-clause constant propagation optimization if this is @@ -168019,23 +169108,23 @@ __26: int32((*Expr)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpWhere)).Fop) == TK_AND && (*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_PropagateConst) == U32(0) && propagateConstants(tls, pParse, p) != 0) { - goto __28 + goto __25 } - goto __29 -__28: + goto __26 +__25: ; -__29: +__26: ; // For each term in the FROM clause, do two things: // (1) Authorized unreferenced tables // (2) Generate code for all sub-queries i = 0 -__30: +__27: if !(i < (*SrcList)(unsafe.Pointer(pTabList)).FnSrc) { - goto __32 + goto __29 } - pItem1 = pTabList + 8 + uintptr(i)*112 + pItem1 = pTabList + 8 + uintptr(i)*104 // Issue SQLITE_READ authorizations with a fake column name for any // tables that are referenced but from which no values are extracted. @@ -168053,19 +169142,19 @@ __30: // assume the column name is non-NULL and segfault. The use of an empty // string for the fake column name seems safer. if !((*SrcItem)(unsafe.Pointer(pItem1)).FcolUsed == uint64(0) && (*SrcItem)(unsafe.Pointer(pItem1)).FzName != uintptr(0)) { - goto __33 + goto __30 } Xsqlite3AuthCheck(tls, pParse, SQLITE_READ, (*SrcItem)(unsafe.Pointer(pItem1)).FzName, ts+1524, (*SrcItem)(unsafe.Pointer(pItem1)).FzDatabase) -__33: +__30: ; // Generate code for all sub-queries in the FROM clause pSub1 = (*SrcItem)(unsafe.Pointer(pItem1)).FpSelect if !(pSub1 == uintptr(0)) { - goto __34 + goto __31 } - goto __31 -__34: + goto __28 +__31: ; // The code for a subquery should only be generated once. @@ -168081,16 +169170,16 @@ __34: // Make copies of constant WHERE-clause terms in the outer query down // inside the subquery. This can help the subquery to run more efficiently. if !((*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_PushDown) == U32(0) && - (int32(*(*uint16)(unsafe.Pointer(pItem1 + 60 + 4))&0x80>>7) == 0 || - int32((*CteUse)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pItem1 + 104)))).FeM10d) != M10d_Yes && (*CteUse)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pItem1 + 104)))).FnUse < 2) && + (int32(*(*uint16)(unsafe.Pointer(pItem1 + 60 + 4))&0x100>>8) == 0 || + int32((*CteUse)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pItem1 + 96)))).FeM10d) != M10d_Yes && (*CteUse)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pItem1 + 96)))).FnUse < 2) && pushDownWhereTerms(tls, pParse, pSub1, (*Select)(unsafe.Pointer(p)).FpWhere, pItem1) != 0) { - goto __35 + goto __32 } - goto __36 -__35: + goto __33 +__32: ; -__36: +__33: ; zSavedAuthContext = (*Parse)(unsafe.Pointer(pParse)).FzAuthContext @@ -168098,18 +169187,19 @@ __36: // Generate code to implement the subquery // - // The subquery is implemented as a co-routine if: + // The subquery is implemented as a co-routine if all of the following are + // true: + // // (1) the subquery is guaranteed to be the outer loop (so that // it does not need to be computed more than once), and // (2) the subquery is not a CTE that should be materialized - // - // TODO: Are there other reasons beside (1) and (2) to use a co-routine - // implementation? + // (3) the subquery is not part of a left operand for a RIGHT JOIN if !(i == 0 && ((*SrcList)(unsafe.Pointer(pTabList)).FnSrc == 1 || - int32((*SrcItem)(unsafe.Pointer(pTabList+8+1*112)).Ffg.Fjointype)&(JT_LEFT|JT_CROSS) != 0) && - (int32(*(*uint16)(unsafe.Pointer(pItem1 + 60 + 4))&0x80>>7) == 0 || int32((*CteUse)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pItem1 + 104)))).FeM10d) != M10d_Yes)) { - goto __37 + int32((*SrcItem)(unsafe.Pointer(pTabList+8+1*104)).Ffg.Fjointype)&(JT_OUTER|JT_CROSS) != 0) && + (int32(*(*uint16)(unsafe.Pointer(pItem1 + 60 + 4))&0x100>>8) == 0 || int32((*CteUse)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pItem1 + 96)))).FeM10d) != M10d_Yes) && + int32((*SrcItem)(unsafe.Pointer(pTabList+8)).Ffg.Fjointype)&JT_LTORJ == 0) { + goto __34 } // Implement a co-routine that will return a single row of the result // set on each invocation. @@ -168120,112 +169210,113 @@ __36: (*SrcItem)(unsafe.Pointer(pItem1)).FaddrFillSub = addrTop Xsqlite3SelectDestInit(tls, bp+96, SRT_Coroutine, (*SrcItem)(unsafe.Pointer(pItem1)).FregReturn) - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+21012, libc.VaList(bp+32, pItem1)) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20952, libc.VaList(bp+32, pItem1)) Xsqlite3Select(tls, pParse, pSub1, bp+96) (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem1)).FpTab)).FnRowLogEst = (*Select)(unsafe.Pointer(pSub1)).FnSelectRow - libc.SetBitFieldPtr16Uint32(pItem1+60+4, uint32(1), 4, 0x10) + libc.SetBitFieldPtr16Uint32(pItem1+60+4, uint32(1), 5, 0x20) (*SrcItem)(unsafe.Pointer(pItem1)).FregResult = (*SelectDest)(unsafe.Pointer(bp + 96 /* &dest */)).FiSdst Xsqlite3VdbeEndCoroutine(tls, v, (*SrcItem)(unsafe.Pointer(pItem1)).FregReturn) Xsqlite3VdbeJumpHere(tls, v, addrTop-1) Xsqlite3ClearTempRegCache(tls, pParse) - goto __38 -__37: - if !(uint32(int32(*(*uint16)(unsafe.Pointer(pItem1 + 60 + 4))&0x80>>7)) != 0 && (*CteUse)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pItem1 + 104)))).FaddrM9e > 0) { - goto __39 + goto __35 +__34: + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pItem1 + 60 + 4))&0x100>>8)) != 0 && (*CteUse)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pItem1 + 96)))).FaddrM9e > 0) { + goto __36 } // This is a CTE for which materialization code has already been // generated. Invoke the subroutine to compute the materialization, // the make the pItem->iCursor be a copy of the ephemerial table that // holds the result of the materialization. - pCteUse = *(*uintptr)(unsafe.Pointer(pItem1 + 104)) + pCteUse = *(*uintptr)(unsafe.Pointer(pItem1 + 96)) Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, (*CteUse)(unsafe.Pointer(pCteUse)).FregRtn, (*CteUse)(unsafe.Pointer(pCteUse)).FaddrM9e) if !((*SrcItem)(unsafe.Pointer(pItem1)).FiCursor != (*CteUse)(unsafe.Pointer(pCteUse)).FiCur) { - goto __41 + goto __38 } Xsqlite3VdbeAddOp2(tls, v, OP_OpenDup, (*SrcItem)(unsafe.Pointer(pItem1)).FiCursor, (*CteUse)(unsafe.Pointer(pCteUse)).FiCur) -__41: +__38: ; (*Select)(unsafe.Pointer(pSub1)).FnSelectRow = (*CteUse)(unsafe.Pointer(pCteUse)).FnRowEst - goto __40 -__39: + goto __37 +__36: if !(libc.AssignUintptr(&pPrior, isSelfJoinView(tls, pTabList, pItem1)) != uintptr(0)) { - goto __42 + goto __39 } // This view has already been materialized by a prior entry in // this same FROM clause. Reuse it. if !((*SrcItem)(unsafe.Pointer(pPrior)).FaddrFillSub != 0) { - goto __44 + goto __41 } Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, (*SrcItem)(unsafe.Pointer(pPrior)).FregReturn, (*SrcItem)(unsafe.Pointer(pPrior)).FaddrFillSub) -__44: +__41: ; Xsqlite3VdbeAddOp2(tls, v, OP_OpenDup, (*SrcItem)(unsafe.Pointer(pItem1)).FiCursor, (*SrcItem)(unsafe.Pointer(pPrior)).FiCursor) (*Select)(unsafe.Pointer(pSub1)).FnSelectRow = (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pPrior)).FpSelect)).FnSelectRow - goto __43 -__42: + goto __40 +__39: onceAddr = 0 (*SrcItem)(unsafe.Pointer(pItem1)).FregReturn = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) - topAddr = Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, (*SrcItem)(unsafe.Pointer(pItem1)).FregReturn) + topAddr = Xsqlite3VdbeAddOp0(tls, v, OP_Goto) (*SrcItem)(unsafe.Pointer(pItem1)).FaddrFillSub = topAddr + 1 + libc.SetBitFieldPtr16Uint32(pItem1+60+4, uint32(1), 4, 0x10) if !(int32(*(*uint16)(unsafe.Pointer(pItem1 + 60 + 4))&0x8>>3) == 0) { - goto __45 + goto __42 } // If the subquery is not correlated and if we are not inside of // a trigger, then we only need to compute the value of the subquery // once. onceAddr = Xsqlite3VdbeAddOp0(tls, v, OP_Once) - goto __46 -__45: + goto __43 +__42: ; -__46: +__43: ; Xsqlite3SelectDestInit(tls, bp+96, SRT_EphemTab, (*SrcItem)(unsafe.Pointer(pItem1)).FiCursor) - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+21027, libc.VaList(bp+40, pItem1)) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+20967, libc.VaList(bp+40, pItem1)) Xsqlite3Select(tls, pParse, pSub1, bp+96) (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem1)).FpTab)).FnRowLogEst = (*Select)(unsafe.Pointer(pSub1)).FnSelectRow if !(onceAddr != 0) { - goto __47 + goto __44 } Xsqlite3VdbeJumpHere(tls, v, onceAddr) -__47: +__44: ; - retAddr = Xsqlite3VdbeAddOp1(tls, v, OP_Return, (*SrcItem)(unsafe.Pointer(pItem1)).FregReturn) + Xsqlite3VdbeAddOp2(tls, v, OP_Return, (*SrcItem)(unsafe.Pointer(pItem1)).FregReturn, topAddr+1) - Xsqlite3VdbeChangeP1(tls, v, topAddr, retAddr) + Xsqlite3VdbeJumpHere(tls, v, topAddr) Xsqlite3ClearTempRegCache(tls, pParse) - if !(uint32(int32(*(*uint16)(unsafe.Pointer(pItem1 + 60 + 4))&0x80>>7)) != 0 && int32(*(*uint16)(unsafe.Pointer(pItem1 + 60 + 4))&0x8>>3) == 0) { - goto __48 + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pItem1 + 60 + 4))&0x100>>8)) != 0 && int32(*(*uint16)(unsafe.Pointer(pItem1 + 60 + 4))&0x8>>3) == 0) { + goto __45 } - pCteUse1 = *(*uintptr)(unsafe.Pointer(pItem1 + 104)) + pCteUse1 = *(*uintptr)(unsafe.Pointer(pItem1 + 96)) (*CteUse)(unsafe.Pointer(pCteUse1)).FaddrM9e = (*SrcItem)(unsafe.Pointer(pItem1)).FaddrFillSub (*CteUse)(unsafe.Pointer(pCteUse1)).FregRtn = (*SrcItem)(unsafe.Pointer(pItem1)).FregReturn (*CteUse)(unsafe.Pointer(pCteUse1)).FiCur = (*SrcItem)(unsafe.Pointer(pItem1)).FiCursor (*CteUse)(unsafe.Pointer(pCteUse1)).FnRowEst = (*Select)(unsafe.Pointer(pSub1)).FnSelectRow -__48: - ; -__43: +__45: ; __40: ; -__38: +__37: + ; +__35: ; if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { - goto __49 + goto __46 } goto select_end -__49: +__46: ; *(*int32)(unsafe.Pointer(pParse + 300)) -= Xsqlite3SelectExprHeight(tls, p) (*Parse)(unsafe.Pointer(pParse)).FzAuthContext = zSavedAuthContext - goto __31 -__31: + goto __28 +__28: i++ - goto __30 - goto __32 -__32: + goto __27 + goto __29 +__29: ; // Various elements of the SELECT copied into local variables for @@ -168253,7 +169344,7 @@ __32: if !((*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Distinct|SF_Aggregate) == U32(SF_Distinct) && Xsqlite3ExprListCompare(tls, (*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy, pEList, -1) == 0 && (*Select)(unsafe.Pointer(p)).FpWin == uintptr(0)) { - goto __50 + goto __47 } *(*U32)(unsafe.Pointer(p + 4)) &= libc.Uint32FromInt32(libc.CplInt32(SF_Distinct)) pGroupBy = libc.AssignPtrUintptr(p+56, Xsqlite3ExprListDup(tls, db, pEList, 0)) @@ -168262,7 +169353,9 @@ __32: // the sDistinct.isTnct is still set. Hence, isTnct represents the // original setting of the SF_Distinct flag, not the current setting -__50: + (*DistinctCtx)(unsafe.Pointer(bp + 136 /* &sDistinct */)).FisTnct = U8(2) + +__47: ; // If there is an ORDER BY clause, then create an ephemeral index to @@ -168273,64 +169366,102 @@ __50: // not needed. The sSort.addrSortIndex variable is used to facilitate // that change. if !((*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy != 0) { - goto __51 + goto __48 } pKeyInfo = Xsqlite3KeyInfoFromExprList(tls, pParse, (*SortCtx)(unsafe.Pointer(bp+48 /* &sSort */)).FpOrderBy, 0, (*ExprList)(unsafe.Pointer(pEList)).FnExpr) (*SortCtx)(unsafe.Pointer(bp + 48 /* &sSort */)).FiECursor = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) (*SortCtx)(unsafe.Pointer(bp + 48 /* &sSort */)).FaddrSortIndex = Xsqlite3VdbeAddOp4(tls, v, OP_OpenEphemeral, (*SortCtx)(unsafe.Pointer(bp+48 /* &sSort */)).FiECursor, (*ExprList)(unsafe.Pointer((*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy)).FnExpr+1+(*ExprList)(unsafe.Pointer(pEList)).FnExpr, 0, - pKeyInfo, -9) - goto __52 -__51: + pKeyInfo, -8) + goto __49 +__48: (*SortCtx)(unsafe.Pointer(bp + 48 /* &sSort */)).FaddrSortIndex = -1 -__52: +__49: ; // If the output is destined for a temporary table, open that table. if !(int32((*SelectDest)(unsafe.Pointer(pDest)).FeDest) == SRT_EphemTab) { - goto __53 + goto __50 } Xsqlite3VdbeAddOp2(tls, v, OP_OpenEphemeral, (*SelectDest)(unsafe.Pointer(pDest)).FiSDParm, (*ExprList)(unsafe.Pointer(pEList)).FnExpr) + if !((*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_NestedFrom) != 0) { + goto __51 + } + ii = (*ExprList)(unsafe.Pointer(pEList)).FnExpr - 1 +__52: + if !(ii > 0 && int32(*(*uint16)(unsafe.Pointer(pEList + 8 + uintptr(ii)*32 + 16 + 4))&0x40>>6) == 0) { + goto __54 + } + Xsqlite3ExprDelete(tls, db, (*ExprList_item)(unsafe.Pointer(pEList+8+uintptr(ii)*32)).FpExpr) + Xsqlite3DbFree(tls, db, (*ExprList_item)(unsafe.Pointer(pEList+8+uintptr(ii)*32)).FzEName) + (*ExprList)(unsafe.Pointer(pEList)).FnExpr-- + goto __53 __53: + ii-- + goto __52 + goto __54 +__54: + ; + ii = 0 +__55: + if !(ii < (*ExprList)(unsafe.Pointer(pEList)).FnExpr) { + goto __57 + } + if !(int32(*(*uint16)(unsafe.Pointer(pEList + 8 + uintptr(ii)*32 + 16 + 4))&0x40>>6) == 0) { + goto __58 + } + (*Expr)(unsafe.Pointer((*ExprList_item)(unsafe.Pointer(pEList + 8 + uintptr(ii)*32)).FpExpr)).Fop = U8(TK_NULL) +__58: + ; + goto __56 +__56: + ii++ + goto __55 + goto __57 +__57: + ; +__51: + ; +__50: ; // Set the limiter. iEnd = Xsqlite3VdbeMakeLabel(tls, pParse) if !((*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_FixedLimit) == U32(0)) { - goto __54 + goto __59 } (*Select)(unsafe.Pointer(p)).FnSelectRow = int16(320) // 4 billion rows -__54: +__59: ; computeLimitRegisters(tls, pParse, p, iEnd) if !((*Select)(unsafe.Pointer(p)).FiLimit == 0 && (*SortCtx)(unsafe.Pointer(bp+48)).FaddrSortIndex >= 0) { - goto __55 + goto __60 } Xsqlite3VdbeChangeOpcode(tls, v, (*SortCtx)(unsafe.Pointer(bp+48 /* &sSort */)).FaddrSortIndex, uint8(OP_SorterOpen)) *(*U8)(unsafe.Pointer(bp + 48 + 36)) |= U8(SORTFLAG_UseSorter) -__55: +__60: ; // Open an ephemeral index to use for the distinct set. if !((*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Distinct) != 0) { - goto __56 + goto __61 } (*DistinctCtx)(unsafe.Pointer(bp + 136 /* &sDistinct */)).FtabTnct = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) (*DistinctCtx)(unsafe.Pointer(bp + 136 /* &sDistinct */)).FaddrTnct = Xsqlite3VdbeAddOp4(tls, v, OP_OpenEphemeral, (*DistinctCtx)(unsafe.Pointer(bp+136 /* &sDistinct */)).FtabTnct, 0, 0, Xsqlite3KeyInfoFromExprList(tls, pParse, (*Select)(unsafe.Pointer(p)).FpEList, 0, 0), - -9) + -8) Xsqlite3VdbeChangeP5(tls, v, uint16(BTREE_UNORDERED)) (*DistinctCtx)(unsafe.Pointer(bp + 136 /* &sDistinct */)).FeTnctType = U8(WHERE_DISTINCT_UNORDERED) - goto __57 -__56: + goto __62 +__61: (*DistinctCtx)(unsafe.Pointer(bp + 136 /* &sDistinct */)).FeTnctType = U8(WHERE_DISTINCT_NOOP) -__57: +__62: ; if !(!(isAgg != 0) && pGroupBy == uintptr(0)) { - goto __58 + goto __63 } // No aggregate functions and no GROUP BY clause wctrlFlags = U16(func() uint32 { @@ -168342,10 +169473,10 @@ __57: (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_FixedLimit)) pWin = (*Select)(unsafe.Pointer(p)).FpWin // Main window object (or NULL) if !(pWin != 0) { - goto __60 + goto __65 } Xsqlite3WindowCodeInit(tls, pParse, p) -__60: +__65: ; // Begin the database scan. @@ -168353,49 +169484,49 @@ __60: pWInfo = Xsqlite3WhereBegin(tls, pParse, pTabList, pWhere, (*SortCtx)(unsafe.Pointer(bp+48 /* &sSort */)).FpOrderBy, (*Select)(unsafe.Pointer(p)).FpEList, p, wctrlFlags, int32((*Select)(unsafe.Pointer(p)).FnSelectRow)) if !(pWInfo == uintptr(0)) { - goto __61 + goto __66 } goto select_end -__61: +__66: ; if !(int32(Xsqlite3WhereOutputRowCount(tls, pWInfo)) < int32((*Select)(unsafe.Pointer(p)).FnSelectRow)) { - goto __62 + goto __67 } (*Select)(unsafe.Pointer(p)).FnSelectRow = Xsqlite3WhereOutputRowCount(tls, pWInfo) -__62: +__67: ; if !((*DistinctCtx)(unsafe.Pointer(bp+136)).FisTnct != 0 && Xsqlite3WhereIsDistinct(tls, pWInfo) != 0) { - goto __63 + goto __68 } (*DistinctCtx)(unsafe.Pointer(bp + 136 /* &sDistinct */)).FeTnctType = U8(Xsqlite3WhereIsDistinct(tls, pWInfo)) -__63: +__68: ; if !((*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy != 0) { - goto __64 + goto __69 } (*SortCtx)(unsafe.Pointer(bp + 48 /* &sSort */)).FnOBSat = Xsqlite3WhereIsOrdered(tls, pWInfo) (*SortCtx)(unsafe.Pointer(bp + 48 /* &sSort */)).FlabelOBLopt = Xsqlite3WhereOrderByLimitOptLabel(tls, pWInfo) if !((*SortCtx)(unsafe.Pointer(bp+48)).FnOBSat == (*ExprList)(unsafe.Pointer((*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy)).FnExpr) { - goto __65 + goto __70 } (*SortCtx)(unsafe.Pointer(bp + 48 /* &sSort */)).FpOrderBy = uintptr(0) -__65: +__70: ; -__64: +__69: ; // If sorting index that was created by a prior OP_OpenEphemeral // instruction ended up not being needed, then change the OP_OpenEphemeral // into an OP_Noop. if !((*SortCtx)(unsafe.Pointer(bp+48)).FaddrSortIndex >= 0 && (*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy == uintptr(0)) { - goto __66 + goto __71 } Xsqlite3VdbeChangeToNoop(tls, v, (*SortCtx)(unsafe.Pointer(bp+48 /* &sSort */)).FaddrSortIndex) -__66: +__71: ; if !(pWin != 0) { - goto __67 + goto __72 } addrGosub = Xsqlite3VdbeMakeLabel(tls, pParse) iCont = Xsqlite3VdbeMakeLabel(tls, pParse) @@ -168413,8 +169544,8 @@ __66: Xsqlite3VdbeAddOp1(tls, v, OP_Return, regGosub) Xsqlite3VdbeResolveLabel(tls, v, iBreak) - goto __68 -__67: + goto __73 +__72: // Use the standard inner loop. selectInnerLoop(tls, pParse, p, -1, bp+48, bp+136, pDest, @@ -168424,10 +169555,10 @@ __67: // End the database scan loop. Xsqlite3WhereEnd(tls, pWInfo) -__68: +__73: ; - goto __59 -__58: // End of processing for this SELECT + goto __64 +__63: // End of processing for this SELECT sortPTab = 0 // Pseudotable used to decode sorting results sortOut = 0 // Output register from the sorter orderByGrp = 0 // True if the GROUP BY and ORDER BY are the same @@ -168435,45 +169566,45 @@ __58: // End of processing for this SELECT // Remove any and all aliases between the result set and the // GROUP BY clause. if !(pGroupBy != 0) { - goto __69 + goto __74 } // For looping over expression in a list k = (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpEList)).FnExpr pItem2 = (*Select)(unsafe.Pointer(p)).FpEList + 8 /* &.a */ -__71: +__76: if !(k > 0) { - goto __73 + goto __78 } *(*U16)(unsafe.Pointer(pItem2 + 24 + 2 /* &.iAlias */)) = U16(0) - goto __72 -__72: + goto __77 +__77: k-- pItem2 += 32 - goto __71 - goto __73 -__73: + goto __76 + goto __78 +__78: ; k = (*ExprList)(unsafe.Pointer(pGroupBy)).FnExpr pItem2 = pGroupBy + 8 /* &.a */ -__74: +__79: if !(k > 0) { - goto __76 + goto __81 } *(*U16)(unsafe.Pointer(pItem2 + 24 + 2 /* &.iAlias */)) = U16(0) - goto __75 -__75: + goto __80 +__80: k-- pItem2 += 32 - goto __74 - goto __76 -__76: + goto __79 + goto __81 +__81: ; if !(int32((*Select)(unsafe.Pointer(p)).FnSelectRow) > 66) { - goto __77 + goto __82 } (*Select)(unsafe.Pointer(p)).FnSelectRow = int16(66) -__77: +__82: ; // If there is both a GROUP BY and an ORDER BY clause and they are @@ -168485,40 +169616,40 @@ __77: // ORDER BY and GROUP BY clauses are the same by setting the orderByGrp // variable. if !((*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy != 0 && (*ExprList)(unsafe.Pointer(pGroupBy)).FnExpr == (*ExprList)(unsafe.Pointer((*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy)).FnExpr) { - goto __78 + goto __83 } // The GROUP BY processing doesn't care whether rows are delivered in // ASC or DESC order - only that each group is returned contiguously. // So set the ASC/DESC flags in the GROUP BY to match those in the // ORDER BY to maximize the chances of rows being delivered in an // order that makes the ORDER BY redundant. - ii = 0 -__79: - if !(ii < (*ExprList)(unsafe.Pointer(pGroupBy)).FnExpr) { - goto __81 + ii1 = 0 +__84: + if !(ii1 < (*ExprList)(unsafe.Pointer(pGroupBy)).FnExpr) { + goto __86 } - sortFlags = U8(int32((*ExprList_item)(unsafe.Pointer((*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy+8+uintptr(ii)*32)).FsortFlags) & KEYINFO_ORDER_DESC) - (*ExprList_item)(unsafe.Pointer(pGroupBy + 8 + uintptr(ii)*32)).FsortFlags = sortFlags - goto __80 -__80: - ii++ - goto __79 - goto __81 -__81: + sortFlags = U8(int32((*ExprList_item)(unsafe.Pointer((*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy+8+uintptr(ii1)*32)).Ffg.FsortFlags) & KEYINFO_ORDER_DESC) + (*ExprList_item)(unsafe.Pointer(pGroupBy + 8 + uintptr(ii1)*32)).Ffg.FsortFlags = sortFlags + goto __85 +__85: + ii1++ + goto __84 + goto __86 +__86: ; if !(Xsqlite3ExprListCompare(tls, pGroupBy, (*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy, -1) == 0) { - goto __82 + goto __87 } orderByGrp = 1 -__82: +__87: ; -__78: +__83: ; - goto __70 -__69: + goto __75 +__74: ; (*Select)(unsafe.Pointer(p)).FnSelectRow = int16(0) -__70: +__75: ; // Create a label to jump to when we want to abort the query @@ -168529,20 +169660,20 @@ __70: // SELECT statement. pAggInfo = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(AggInfo{}))) if !(pAggInfo != 0) { - goto __83 + goto __88 } Xsqlite3ParserAddCleanup(tls, pParse, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr) }{agginfoFree})), pAggInfo) -__83: +__88: ; if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { - goto __84 + goto __89 } goto select_end -__84: +__89: ; (*AggInfo)(unsafe.Pointer(pAggInfo)).FselId = (*Select)(unsafe.Pointer(p)).FselId libc.Xmemset(tls, bp+152, 0, uint64(unsafe.Sizeof(NameContext{}))) @@ -168561,33 +169692,33 @@ __84: Xsqlite3ExprAnalyzeAggList(tls, bp+152, pEList) Xsqlite3ExprAnalyzeAggList(tls, bp+152, (*SortCtx)(unsafe.Pointer(bp+48 /* &sSort */)).FpOrderBy) if !(pHaving != 0) { - goto __85 + goto __90 } if !(pGroupBy != 0) { - goto __86 + goto __91 } havingToWhere(tls, pParse, p) pWhere = (*Select)(unsafe.Pointer(p)).FpWhere -__86: +__91: ; Xsqlite3ExprAnalyzeAggregates(tls, bp+152, pHaving) -__85: +__90: ; (*AggInfo)(unsafe.Pointer(pAggInfo)).FnAccumulator = (*AggInfo)(unsafe.Pointer(pAggInfo)).FnColumn if !((*Select)(unsafe.Pointer(p)).FpGroupBy == uintptr(0) && (*Select)(unsafe.Pointer(p)).FpHaving == uintptr(0) && (*AggInfo)(unsafe.Pointer(pAggInfo)).FnFunc == 1) { - goto __87 + goto __92 } minMaxFlag = minMaxQuery(tls, db, (*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc)).FpFExpr, bp+208) - goto __88 -__87: + goto __93 +__92: minMaxFlag = U8(WHERE_ORDERBY_NORMAL) -__88: +__93: ; i = 0 -__89: +__94: if !(i < (*AggInfo)(unsafe.Pointer(pAggInfo)).FnFunc) { - goto __91 + goto __96 } pExpr = (*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc + uintptr(i)*32)).FpFExpr @@ -168595,31 +169726,31 @@ __89: Xsqlite3ExprAnalyzeAggList(tls, bp+152, *(*uintptr)(unsafe.Pointer(pExpr + 32))) if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_WinFunc) != U32(0)) { - goto __92 + goto __97 } Xsqlite3ExprAnalyzeAggregates(tls, bp+152, (*Window)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pExpr + 64)))).FpFilter) -__92: +__97: ; *(*int32)(unsafe.Pointer(bp + 152 + 40)) &= libc.CplInt32(NC_InAggFunc) - goto __90 -__90: + goto __95 +__95: i++ - goto __89 - goto __91 -__91: + goto __94 + goto __96 +__96: ; (*AggInfo)(unsafe.Pointer(pAggInfo)).FmxReg = (*Parse)(unsafe.Pointer(pParse)).FnMem if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { - goto __93 + goto __98 } goto select_end -__93: +__98: ; // Processing for aggregates with GROUP BY is very different and // much more complex than aggregates without a GROUP BY. if !(pGroupBy != 0) { - goto __94 + goto __99 } // Return address register for reset subroutine pDistinct = uintptr(0) distFlag = U16(0) @@ -168630,7 +169761,7 @@ __93: (*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc)).FpFExpr != uintptr(0) && (*Expr)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc)).FpFExpr)).Fflags&U32(EP_xIsSelect) == U32(0) && *(*uintptr)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc)).FpFExpr + 32)) != uintptr(0)) { - goto __96 + goto __101 } pExpr1 = (*ExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc)).FpFExpr + 32)) + 8)).FpExpr pExpr1 = Xsqlite3ExprDup(tls, db, pExpr1, 0) @@ -168641,7 +169772,7 @@ __93: } else { distFlag = uint16(0) } -__96: +__101: ; // If there is a GROUP BY clause we might need a sorting index to @@ -168653,7 +169784,7 @@ __96: 0, (*AggInfo)(unsafe.Pointer(pAggInfo)).FnColumn) addrSortingIdx = Xsqlite3VdbeAddOp4(tls, v, OP_SorterOpen, (*AggInfo)(unsafe.Pointer(pAggInfo)).FsortingIdx, (*AggInfo)(unsafe.Pointer(pAggInfo)).FnSortingColumn, - 0, pKeyInfo1, -9) + 0, pKeyInfo1, -8) // Initialize memory locations used by GROUP BY aggregate processing iUseFlag = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) @@ -168677,37 +169808,43 @@ __96: Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, regReset, addrReset) pWInfo = Xsqlite3WhereBegin(tls, pParse, pTabList, pWhere, pGroupBy, pDistinct, - uintptr(0), uint16(WHERE_GROUPBY|func() int32 { - if orderByGrp != 0 { - return WHERE_SORTBYGROUP + uintptr(0), uint16(func() int32 { + if int32((*DistinctCtx)(unsafe.Pointer(bp+136)).FisTnct) == 2 { + return WHERE_DISTINCTBY } - return 0 - }()|int32(distFlag)), 0) + return WHERE_GROUPBY + }()| + func() int32 { + if orderByGrp != 0 { + return WHERE_SORTBYGROUP + } + return 0 + }()|int32(distFlag)), 0) if !(pWInfo == uintptr(0)) { - goto __97 + goto __102 } Xsqlite3ExprListDelete(tls, db, pDistinct) goto select_end -__97: +__102: ; eDist = Xsqlite3WhereIsDistinct(tls, pWInfo) if !(Xsqlite3WhereIsOrdered(tls, pWInfo) == (*ExprList)(unsafe.Pointer(pGroupBy)).FnExpr) { - goto __98 + goto __103 } // The optimizer is able to deliver rows in group by order so // we do not have to sort. The OP_OpenEphemeral table will be // cancelled later because we still need to use the pKeyInfo groupBySort = 0 - goto __99 -__98: + goto __104 +__103: explainTempTable(tls, pParse, func() uintptr { if (*DistinctCtx)(unsafe.Pointer(bp+136)).FisTnct != 0 && (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Distinct) == U32(0) { - return ts + 21043 /* "DISTINCT" */ + return ts + 20983 /* "DISTINCT" */ } - return ts + 21052 /* "GROUP BY" */ + return ts + 20992 /* "GROUP BY" */ }()) groupBySort = 1 @@ -168715,48 +169852,48 @@ __98: nCol = nGroupBy j = nGroupBy i = 0 -__100: +__105: if !(i < (*AggInfo)(unsafe.Pointer(pAggInfo)).FnColumn) { - goto __102 + goto __107 } if !(int32((*AggInfo_col)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaCol+uintptr(i)*32)).FiSorterColumn) >= j) { - goto __103 + goto __108 } nCol++ j++ -__103: +__108: ; - goto __101 -__101: + goto __106 +__106: i++ - goto __100 - goto __102 -__102: + goto __105 + goto __107 +__107: ; regBase = Xsqlite3GetTempRange(tls, pParse, nCol) Xsqlite3ExprCodeExprList(tls, pParse, pGroupBy, regBase, 0, uint8(0)) j = nGroupBy i = 0 -__104: +__109: if !(i < (*AggInfo)(unsafe.Pointer(pAggInfo)).FnColumn) { - goto __106 + goto __111 } pCol = (*AggInfo)(unsafe.Pointer(pAggInfo)).FaCol + uintptr(i)*32 if !(int32((*AggInfo_col)(unsafe.Pointer(pCol)).FiSorterColumn) >= j) { - goto __107 + goto __112 } r1 = j + regBase Xsqlite3ExprCodeGetColumnOfTable(tls, v, (*AggInfo_col)(unsafe.Pointer(pCol)).FpTab, (*AggInfo_col)(unsafe.Pointer(pCol)).FiTable, int32((*AggInfo_col)(unsafe.Pointer(pCol)).FiColumn), r1) j++ -__107: +__112: ; - goto __105 -__105: + goto __110 +__110: i++ - goto __104 - goto __106 -__106: + goto __109 + goto __111 +__111: ; regRecord = Xsqlite3GetTempReg(tls, pParse) Xsqlite3VdbeAddOp3(tls, v, OP_MakeRecord, regBase, nCol, regRecord) @@ -168771,7 +169908,7 @@ __106: Xsqlite3VdbeAddOp2(tls, v, OP_SorterSort, (*AggInfo)(unsafe.Pointer(pAggInfo)).FsortingIdx, addrEnd) (*AggInfo)(unsafe.Pointer(pAggInfo)).FuseSortingIdx = U8(1) -__99: +__104: ; // If the index or temporary table used by the GROUP BY sort @@ -168783,11 +169920,11 @@ __99: // disable this optimization for testing purposes. if !(orderByGrp != 0 && (*Sqlite3)(unsafe.Pointer(db)).FdbOptFlags&U32(SQLITE_GroupByOrder) == U32(0) && (groupBySort != 0 || Xsqlite3WhereIsSorted(tls, pWInfo) != 0)) { - goto __108 + goto __113 } (*SortCtx)(unsafe.Pointer(bp + 48 /* &sSort */)).FpOrderBy = uintptr(0) Xsqlite3VdbeChangeToNoop(tls, v, (*SortCtx)(unsafe.Pointer(bp+48 /* &sSort */)).FaddrSortIndex) -__108: +__113: ; // Evaluate the current GROUP BY terms and store in b0, b1, b2... @@ -168796,36 +169933,36 @@ __108: // from the previous row currently stored in a0, a1, a2... addrTopOfLoop = Xsqlite3VdbeCurrentAddr(tls, v) if !(groupBySort != 0) { - goto __109 + goto __114 } Xsqlite3VdbeAddOp3(tls, v, OP_SorterData, (*AggInfo)(unsafe.Pointer(pAggInfo)).FsortingIdx, sortOut, sortPTab) -__109: +__114: ; j = 0 -__110: +__115: if !(j < (*ExprList)(unsafe.Pointer(pGroupBy)).FnExpr) { - goto __112 + goto __117 } if !(groupBySort != 0) { - goto __113 + goto __118 } Xsqlite3VdbeAddOp3(tls, v, OP_Column, sortPTab, j, iBMem+j) - goto __114 -__113: + goto __119 +__118: (*AggInfo)(unsafe.Pointer(pAggInfo)).FdirectMode = U8(1) Xsqlite3ExprCode(tls, pParse, (*ExprList_item)(unsafe.Pointer(pGroupBy+8+uintptr(j)*32)).FpExpr, iBMem+j) -__114: +__119: ; - goto __111 -__111: + goto __116 +__116: j++ - goto __110 - goto __112 -__112: + goto __115 + goto __117 +__117: ; Xsqlite3VdbeAddOp4(tls, v, OP_Compare, iAMem, iBMem, (*ExprList)(unsafe.Pointer(pGroupBy)).FnExpr, - Xsqlite3KeyInfoRef(tls, pKeyInfo1), -9) + Xsqlite3KeyInfoRef(tls, pKeyInfo1), -8) addr1 = Xsqlite3VdbeCurrentAddr(tls, v) Xsqlite3VdbeAddOp3(tls, v, OP_Jump, addr1+1, 0, addr1+1) @@ -168852,16 +169989,16 @@ __112: // End of the loop if !(groupBySort != 0) { - goto __115 + goto __120 } Xsqlite3VdbeAddOp2(tls, v, OP_SorterNext, (*AggInfo)(unsafe.Pointer(pAggInfo)).FsortingIdx, addrTopOfLoop) - goto __116 -__115: + goto __121 +__120: ; Xsqlite3WhereEnd(tls, pWInfo) Xsqlite3VdbeChangeToNoop(tls, v, addrSortingIdx) -__116: +__121: ; Xsqlite3ExprListDelete(tls, db, pDistinct) @@ -168900,17 +170037,17 @@ __116: Xsqlite3VdbeAddOp1(tls, v, OP_Return, regReset) - if !(eDist != WHERE_DISTINCT_NOOP) { - goto __117 + if !(int32(distFlag) != 0 && eDist != WHERE_DISTINCT_NOOP) { + goto __122 } pF = (*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc fixDistinctOpenEph(tls, pParse, eDist, (*AggInfo_func)(unsafe.Pointer(pF)).FiDistinct, (*AggInfo_func)(unsafe.Pointer(pF)).FiDistAddr) -__117: +__122: ; - goto __95 -__94: + goto __100 +__99: if !(libc.AssignUintptr(&pTab1, isSimpleCount(tls, p, pAggInfo)) != uintptr(0)) { - goto __118 + goto __123 } // If isSimpleCount() returns a pointer to a Table structure, then // the SQL statement is of the form: @@ -168942,58 +170079,58 @@ __94: // In practice the KeyInfo structure will not be used. It is only // passed to keep OP_OpenRead happy. if !!((*Table)(unsafe.Pointer(pTab1)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) { - goto __120 + goto __125 } pBest = Xsqlite3PrimaryKeyIndex(tls, pTab1) -__120: +__125: ; if !!(int32(*(*uint16)(unsafe.Pointer((*Select)(unsafe.Pointer(p)).FpSrc + 8 + 60 + 4))&0x1>>0) != 0) { - goto __121 + goto __126 } pIdx = (*Table)(unsafe.Pointer(pTab1)).FpIndex -__122: +__127: if !(pIdx != 0) { - goto __124 + goto __129 } if !(int32(*(*uint16)(unsafe.Pointer(pIdx + 100))&0x4>>2) == 0 && int32((*Index)(unsafe.Pointer(pIdx)).FszIdxRow) < int32((*Table)(unsafe.Pointer(pTab1)).FszTabRow) && (*Index)(unsafe.Pointer(pIdx)).FpPartIdxWhere == uintptr(0) && (!(pBest != 0) || int32((*Index)(unsafe.Pointer(pIdx)).FszIdxRow) < int32((*Index)(unsafe.Pointer(pBest)).FszIdxRow))) { - goto __125 + goto __130 } pBest = pIdx -__125: +__130: ; - goto __123 -__123: + goto __128 +__128: pIdx = (*Index)(unsafe.Pointer(pIdx)).FpNext - goto __122 - goto __124 -__124: + goto __127 + goto __129 +__129: ; -__121: +__126: ; if !(pBest != 0) { - goto __126 + goto __131 } iRoot = (*Index)(unsafe.Pointer(pBest)).Ftnum pKeyInfo2 = Xsqlite3KeyInfoOfIndex(tls, pParse, pBest) -__126: +__131: ; // Open a read-only cursor, execute the OP_Count, close the cursor. Xsqlite3VdbeAddOp4Int(tls, v, OP_OpenRead, iCsr, int32(iRoot), iDb, 1) if !(pKeyInfo2 != 0) { - goto __127 + goto __132 } - Xsqlite3VdbeChangeP4(tls, v, -1, pKeyInfo2, -9) -__127: + Xsqlite3VdbeChangeP4(tls, v, -1, pKeyInfo2, -8) +__132: ; Xsqlite3VdbeAddOp2(tls, v, OP_Count, iCsr, (*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc)).FiMem) Xsqlite3VdbeAddOp1(tls, v, OP_Close, iCsr) explainSimpleCount(tls, pParse, pTab1, pBest) - goto __119 -__118: + goto __124 +__123: regAcc = 0 // "populate accumulators" flag pDistinct1 = uintptr(0) distFlag1 = U16(0) @@ -169008,43 +170145,43 @@ __118: // least once even if the FILTER clause means the min() or max() // function visits zero rows. if !((*AggInfo)(unsafe.Pointer(pAggInfo)).FnAccumulator != 0) { - goto __128 + goto __133 } i = 0 -__130: +__135: if !(i < (*AggInfo)(unsafe.Pointer(pAggInfo)).FnFunc) { - goto __132 + goto __137 } if !((*Expr)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc+uintptr(i)*32)).FpFExpr)).Fflags&U32(EP_WinFunc) != U32(0)) { - goto __133 + goto __138 } - goto __131 -__133: + goto __136 +__138: ; if !((*FuncDef)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc+uintptr(i)*32)).FpFunc)).FfuncFlags&U32(SQLITE_FUNC_NEEDCOLL) != 0) { - goto __134 + goto __139 } - goto __132 -__134: + goto __137 +__139: ; - goto __131 -__131: + goto __136 +__136: i++ - goto __130 - goto __132 -__132: + goto __135 + goto __137 +__137: ; if !(i == (*AggInfo)(unsafe.Pointer(pAggInfo)).FnFunc) { - goto __135 + goto __140 } regAcc = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, regAcc) -__135: +__140: ; - goto __129 -__128: + goto __134 +__133: if !((*AggInfo)(unsafe.Pointer(pAggInfo)).FnFunc == 1 && (*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc)).FiDistinct >= 0) { - goto __136 + goto __141 } pDistinct1 = *(*uintptr)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer((*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc)).FpFExpr + 32)) @@ -169053,9 +170190,9 @@ __128: } else { distFlag1 = uint16(0) } -__136: +__141: ; -__129: +__134: ; // This case runs if the aggregate has no GROUP BY clause. The @@ -169072,73 +170209,78 @@ __129: pWInfo = Xsqlite3WhereBegin(tls, pParse, pTabList, pWhere, *(*uintptr)(unsafe.Pointer(bp + 208 /* pMinMaxOrderBy */)), pDistinct1, uintptr(0), uint16(int32(minMaxFlag)|int32(distFlag1)), 0) if !(pWInfo == uintptr(0)) { - goto __137 + goto __142 } goto select_end -__137: +__142: ; eDist1 = Xsqlite3WhereIsDistinct(tls, pWInfo) updateAccumulator(tls, pParse, regAcc, pAggInfo, eDist1) if !(eDist1 != WHERE_DISTINCT_NOOP) { - goto __138 + goto __143 } pF1 = (*AggInfo)(unsafe.Pointer(pAggInfo)).FaFunc + if !(pF1 != 0) { + goto __144 + } fixDistinctOpenEph(tls, pParse, eDist1, (*AggInfo_func)(unsafe.Pointer(pF1)).FiDistinct, (*AggInfo_func)(unsafe.Pointer(pF1)).FiDistAddr) -__138: +__144: + ; +__143: ; if !(regAcc != 0) { - goto __139 + goto __145 } Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 1, regAcc) -__139: +__145: ; if !(minMaxFlag != 0) { - goto __140 + goto __146 } Xsqlite3WhereMinMaxOptEarlyOut(tls, v, pWInfo) -__140: +__146: ; Xsqlite3WhereEnd(tls, pWInfo) finalizeAggFunctions(tls, pParse, pAggInfo) -__119: +__124: ; (*SortCtx)(unsafe.Pointer(bp + 48 /* &sSort */)).FpOrderBy = uintptr(0) Xsqlite3ExprIfFalse(tls, pParse, pHaving, addrEnd, SQLITE_JUMPIFNULL) selectInnerLoop(tls, pParse, p, -1, uintptr(0), uintptr(0), pDest, addrEnd, addrEnd) -__95: +__100: ; Xsqlite3VdbeResolveLabel(tls, v, addrEnd) -__59: +__64: ; // endif aggregate query if !(int32((*DistinctCtx)(unsafe.Pointer(bp+136)).FeTnctType) == WHERE_DISTINCT_UNORDERED) { - goto __141 + goto __147 } - explainTempTable(tls, pParse, ts+21043) -__141: + explainTempTable(tls, pParse, ts+20983) +__147: ; // If there is an ORDER BY clause, then we need to sort the results // and send them to the callback one by one. if !((*SortCtx)(unsafe.Pointer(bp+48)).FpOrderBy != 0) { - goto __142 + goto __148 } explainTempTable(tls, pParse, func() uintptr { if (*SortCtx)(unsafe.Pointer(bp+48)).FnOBSat > 0 { - return ts + 21061 /* "RIGHT PART OF OR..." */ + return ts + 21001 /* "RIGHT PART OF OR..." */ } - return ts + 21084 /* "ORDER BY" */ + return ts + 21024 /* "ORDER BY" */ }()) generateSortTail(tls, pParse, p, bp+48, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, pDest) -__142: +__148: ; // Jump here to skip this query @@ -169190,7 +170332,7 @@ type TabResult1 = struct { FnData U32 Frc int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:141850:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:143447:9 */ //************* End of select.c ********************************************* //************* Begin file table.c ****************************************** @@ -169214,12 +170356,12 @@ type TabResult1 = struct { // This structure is used to pass data from sqlite3_get_table() through // to the callback function is uses to build the result. -type TabResult = TabResult1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:141858:3 */ +type TabResult = TabResult1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:143455:3 */ // This routine is called once for each row in the result table. Its job // is to fill in the TabResult structure appropriately, allocating new // memory as necessary. -func sqlite3_get_table_cb(tls *libc.TLS, pArg uintptr, nCol int32, argv uintptr, colv uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:141865:12: */ +func sqlite3_get_table_cb(tls *libc.TLS, pArg uintptr, nCol int32, argv uintptr, colv uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:143462:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -169268,7 +170410,7 @@ __7: if !(i < nCol) { goto __9 } - z = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(colv + uintptr(i)*8)))) + z = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(colv + uintptr(i)*8)))) if !(z == uintptr(0)) { goto __10 } @@ -169290,7 +170432,7 @@ __5: } Xsqlite3_free(tls, (*TabResult)(unsafe.Pointer(p)).FzErrMsg) (*TabResult)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3_mprintf(tls, - ts+21093, 0) + ts+21033, 0) (*TabResult)(unsafe.Pointer(p)).Frc = SQLITE_ERROR return 1 __11: @@ -169350,7 +170492,7 @@ malloc_failed: // from malloc(). But the caller cannot free this memory directly. // Instead, the entire table should be passed to sqlite3_free_table() when // the calling procedure is finished using it. -func Xsqlite3_get_table(tls *libc.TLS, db uintptr, zSql uintptr, pazResult uintptr, pnRow uintptr, pnColumn uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:141939:16: */ +func Xsqlite3_get_table(tls *libc.TLS, db uintptr, zSql uintptr, pazResult uintptr, pnRow uintptr, pnColumn uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:143536:16: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -169389,7 +170531,7 @@ func Xsqlite3_get_table(tls *libc.TLS, db uintptr, zSql uintptr, pazResult uintp if (*TabResult)(unsafe.Pointer(bp+8)).FzErrMsg != 0 { if pzErrMsg != 0 { Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(pzErrMsg))) - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg)) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg)) } Xsqlite3_free(tls, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg) } @@ -169422,7 +170564,7 @@ func Xsqlite3_get_table(tls *libc.TLS, db uintptr, zSql uintptr, pazResult uintp } // This routine frees the space the sqlite3_get_table() malloced. -func Xsqlite3_free_table(tls *libc.TLS, azResult uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142008:17: */ +func Xsqlite3_free_table(tls *libc.TLS, azResult uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:143605:17: */ if azResult != 0 { var i int32 var n int32 @@ -169453,7 +170595,7 @@ func Xsqlite3_free_table(tls *libc.TLS, azResult uintptr) { /* testdata/sqlite-a // #include "sqliteInt.h" // Delete a linked list of TriggerStep structures. -func Xsqlite3DeleteTriggerStep(tls *libc.TLS, db uintptr, pTriggerStep uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142043:21: */ +func Xsqlite3DeleteTriggerStep(tls *libc.TLS, db uintptr, pTriggerStep uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:143640:21: */ for pTriggerStep != 0 { var pTmp uintptr = pTriggerStep pTriggerStep = (*TriggerStep)(unsafe.Pointer(pTriggerStep)).FpNext @@ -169482,14 +170624,11 @@ func Xsqlite3DeleteTriggerStep(tls *libc.TLS, db uintptr, pTriggerStep uintptr) // To state it another way: This routine returns a list of all triggers // that fire off of pTab. The list will include any TEMP triggers on // pTab as well as the triggers lised in pTab->pTrigger. -func Xsqlite3TriggerList(tls *libc.TLS, pParse uintptr, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142074:24: */ +func Xsqlite3TriggerList(tls *libc.TLS, pParse uintptr, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:143671:24: */ var pTmpSchema uintptr // Schema of the pTab table var pList uintptr // List of triggers to return var p uintptr // Loop variable for TEMP triggers - if (*Parse)(unsafe.Pointer(pParse)).FdisableTriggers != 0 { - return uintptr(0) - } pTmpSchema = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FaDb + 1*32)).FpSchema p = (*Hash)(unsafe.Pointer(pTmpSchema + 56)).Ffirst pList = (*Table)(unsafe.Pointer(pTab)).FpTrigger @@ -169501,8 +170640,7 @@ func Xsqlite3TriggerList(tls *libc.TLS, pParse uintptr, pTab uintptr) uintptr { (*Trigger)(unsafe.Pointer(pTrig)).FpTabSchema != pTmpSchema { (*Trigger)(unsafe.Pointer(pTrig)).FpNext = pList pList = pTrig - } else if int32((*Trigger)(unsafe.Pointer(pTrig)).Fop) == TK_RETURNING && - (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).FpVtabCtx == uintptr(0) { + } else if int32((*Trigger)(unsafe.Pointer(pTrig)).Fop) == TK_RETURNING { (*Trigger)(unsafe.Pointer(pTrig)).Ftable = (*Table)(unsafe.Pointer(pTab)).FzName (*Trigger)(unsafe.Pointer(pTrig)).FpTabSchema = (*Table)(unsafe.Pointer(pTab)).FpSchema @@ -169520,7 +170658,7 @@ func Xsqlite3TriggerList(tls *libc.TLS, pParse uintptr, pTab uintptr) uintptr { // in pParse->pNewTrigger. After the trigger actions have been parsed, the // sqlite3FinishTrigger() function is called to complete the trigger // construction process. -func Xsqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, tr_tm int32, op int32, pColumns uintptr, pTableName uintptr, pWhen uintptr, isTemp int32, noErr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142130:21: */ +func Xsqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, tr_tm int32, op int32, pColumns uintptr, pTableName uintptr, pWhen uintptr, isTemp int32, noErr int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:143724:21: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -169550,7 +170688,7 @@ func Xsqlite3BeginTrigger(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 if !((*Token)(unsafe.Pointer(pName2)).Fn > uint32(0)) { goto __3 } - Xsqlite3ErrorMsg(tls, pParse, ts+21158, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+21098, 0) goto trigger_cleanup __3: ; @@ -169611,7 +170749,7 @@ __7: __8: ; - Xsqlite3FixInit(tls, bp+40, pParse, iDb, ts+21204, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */))) + Xsqlite3FixInit(tls, bp+40, pParse, iDb, ts+21144, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */))) if !(Xsqlite3FixSrcList(tls, bp+40, pTableName) != 0) { goto __9 } @@ -169629,7 +170767,7 @@ __10: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { goto __11 } - Xsqlite3ErrorMsg(tls, pParse, ts+21212, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+21152, 0) goto trigger_orphan_error __11: ; @@ -169644,7 +170782,7 @@ __11: goto trigger_cleanup __12: ; - if !(Xsqlite3CheckObjectName(tls, pParse, zName, ts+21204, (*Table)(unsafe.Pointer(pTab)).FzName) != 0) { + if !(Xsqlite3CheckObjectName(tls, pParse, zName, ts+21144, (*Table)(unsafe.Pointer(pTab)).FzName) != 0) { goto __13 } goto trigger_cleanup @@ -169660,7 +170798,7 @@ __13: if !!(noErr != 0) { goto __16 } - Xsqlite3ErrorMsg(tls, pParse, ts+21253, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */)))) + Xsqlite3ErrorMsg(tls, pParse, ts+21193, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */)))) goto __17 __16: ; @@ -169674,10 +170812,10 @@ __14: ; // Do not create a trigger on a system table - if !(Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+9371, 7) == 0) { + if !(Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+9410, 7) == 0) { goto __18 } - Xsqlite3ErrorMsg(tls, pParse, ts+21279, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+21219, 0) goto trigger_cleanup __18: ; @@ -169687,12 +170825,12 @@ __18: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW && tr_tm != TK_INSTEAD) { goto __19 } - Xsqlite3ErrorMsg(tls, pParse, ts+21317, + Xsqlite3ErrorMsg(tls, pParse, ts+21257, libc.VaList(bp+8, func() uintptr { if tr_tm == TK_BEFORE { - return ts + 21354 /* "BEFORE" */ + return ts + 21294 /* "BEFORE" */ } - return ts + 21361 /* "AFTER" */ + return ts + 21301 /* "AFTER" */ }(), pTableName+8 /* &.a */)) goto trigger_orphan_error __19: @@ -169701,7 +170839,7 @@ __19: goto __20 } Xsqlite3ErrorMsg(tls, pParse, - ts+21367, libc.VaList(bp+24, pTableName+8)) + ts+21307, libc.VaList(bp+24, pTableName+8)) goto trigger_orphan_error __20: ; @@ -169731,9 +170869,9 @@ __23: ; if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_INSERT, func() uintptr { if !(0 != 0) && iTabDb == 1 { - return ts + 13385 + return ts + 13424 } - return ts + 7196 + return ts + 7231 }(), uintptr(0), zDb) != 0) { goto __24 } @@ -169827,7 +170965,7 @@ __31: // This routine is called after all of the trigger actions have been parsed // in order to complete the process of building the trigger. -func Xsqlite3FinishTrigger(tls *libc.TLS, pParse uintptr, pStepList uintptr, pAll uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142337:21: */ +func Xsqlite3FinishTrigger(tls *libc.TLS, pParse uintptr, pStepList uintptr, pAll uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:143931:21: */ bp := tls.Alloc(152) defer tls.Free(152) @@ -169867,7 +171005,7 @@ __2: __3: ; Xsqlite3TokenInit(tls, bp+40, (*Trigger)(unsafe.Pointer(pTrig)).FzName) - Xsqlite3FixInit(tls, bp+56, pParse, iDb, ts+21204, bp+40) + Xsqlite3FixInit(tls, bp+56, pParse, iDb, ts+21144, bp+40) if !(Xsqlite3FixTriggerStep(tls, bp+56, (*Trigger)(unsafe.Pointer(pTrig)).Fstep_list) != 0 || Xsqlite3FixExpr(tls, bp+56, (*Trigger)(unsafe.Pointer(pTrig)).FpWhen) != 0) { goto __4 @@ -169904,13 +171042,13 @@ __8: Xsqlite3NestedParse(tls, pParse, - ts+21413, + ts+21353, libc.VaList(bp, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, zName, (*Trigger)(unsafe.Pointer(pTrig)).Ftable, z)) Xsqlite3DbFree(tls, db, z) Xsqlite3ChangeCookie(tls, pParse, iDb) Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb, - Xsqlite3MPrintf(tls, db, ts+21488, libc.VaList(bp+32, zName)), uint16(0)) + Xsqlite3MPrintf(tls, db, ts+21428, libc.VaList(bp+32, zName)), uint16(0)) __7: ; __6: @@ -169951,7 +171089,7 @@ triggerfinish_cleanup: // Duplicate a range of text from an SQL statement, then convert all // whitespace characters into ordinary space characters. -func triggerSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142425:13: */ +func triggerSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144019:13: */ var z uintptr = Xsqlite3DbSpanDup(tls, db, zStart, zEnd) var i int32 if z != 0 { @@ -169969,7 +171107,7 @@ func triggerSpanDup(tls *libc.TLS, db uintptr, zStart uintptr, zEnd uintptr) uin // // The parser calls this routine when it finds a SELECT statement in // body of a TRIGGER. -func Xsqlite3TriggerSelectStep(tls *libc.TLS, db uintptr, pSelect uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142439:28: */ +func Xsqlite3TriggerSelectStep(tls *libc.TLS, db uintptr, pSelect uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144033:28: */ var pTriggerStep uintptr = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(TriggerStep{}))) if pTriggerStep == uintptr(0) { Xsqlite3SelectDelete(tls, db, pSelect) @@ -169986,7 +171124,7 @@ func Xsqlite3TriggerSelectStep(tls *libc.TLS, db uintptr, pSelect uintptr, zStar // holds both the TriggerStep object and the TriggerStep.target.z string. // // If an OOM error occurs, NULL is returned and db->mallocFailed is set. -func triggerStepAllocate(tls *libc.TLS, pParse uintptr, op U8, pName uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142463:20: */ +func triggerStepAllocate(tls *libc.TLS, pParse uintptr, op U8, pName uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144057:20: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pTriggerStep uintptr @@ -170013,7 +171151,7 @@ func triggerStepAllocate(tls *libc.TLS, pParse uintptr, op U8, pName uintptr, zS // // The parser calls this routine when it sees an INSERT inside the // body of a trigger. -func Xsqlite3TriggerInsertStep(tls *libc.TLS, pParse uintptr, pTableName uintptr, pColumn uintptr, pSelect uintptr, orconf U8, pUpsert uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142496:28: */ +func Xsqlite3TriggerInsertStep(tls *libc.TLS, pParse uintptr, pTableName uintptr, pColumn uintptr, pSelect uintptr, orconf U8, pUpsert uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144090:28: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pTriggerStep uintptr @@ -170045,7 +171183,7 @@ func Xsqlite3TriggerInsertStep(tls *libc.TLS, pParse uintptr, pTableName uintptr // Construct a trigger step that implements an UPDATE statement and return // a pointer to that trigger step. The parser calls this routine when it // sees an UPDATE statement inside the body of a CREATE TRIGGER. -func Xsqlite3TriggerUpdateStep(tls *libc.TLS, pParse uintptr, pTableName uintptr, pFrom uintptr, pEList uintptr, pWhere uintptr, orconf U8, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142541:28: */ +func Xsqlite3TriggerUpdateStep(tls *libc.TLS, pParse uintptr, pTableName uintptr, pFrom uintptr, pEList uintptr, pWhere uintptr, orconf U8, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144135:28: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pTriggerStep uintptr @@ -170074,7 +171212,7 @@ func Xsqlite3TriggerUpdateStep(tls *libc.TLS, pParse uintptr, pTableName uintptr // Construct a trigger step that implements a DELETE statement and return // a pointer to that trigger step. The parser calls this routine when it // sees a DELETE statement inside the body of a CREATE TRIGGER. -func Xsqlite3TriggerDeleteStep(tls *libc.TLS, pParse uintptr, pTableName uintptr, pWhere uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142581:28: */ +func Xsqlite3TriggerDeleteStep(tls *libc.TLS, pParse uintptr, pTableName uintptr, pWhere uintptr, zStart uintptr, zEnd uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144175:28: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pTriggerStep uintptr @@ -170093,7 +171231,7 @@ func Xsqlite3TriggerDeleteStep(tls *libc.TLS, pParse uintptr, pTableName uintptr } // Recursively delete a Trigger structure -func Xsqlite3DeleteTrigger(tls *libc.TLS, db uintptr, pTrigger uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142608:21: */ +func Xsqlite3DeleteTrigger(tls *libc.TLS, db uintptr, pTrigger uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144202:21: */ if pTrigger == uintptr(0) || (*Trigger)(unsafe.Pointer(pTrigger)).FbReturning != 0 { return } @@ -170105,15 +171243,13 @@ func Xsqlite3DeleteTrigger(tls *libc.TLS, db uintptr, pTrigger uintptr) { /* tes Xsqlite3DbFree(tls, db, pTrigger) } -// // This function is called to drop a trigger from the database schema. // // This may be called directly from the parser and therefore identifies // the trigger by name. The sqlite3DropTriggerPtr() routine does the // same job as this routine except it takes a pointer to the trigger // instead of the trigger name. -// -func Xsqlite3DropTrigger(tls *libc.TLS, pParse uintptr, pName uintptr, noErr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142626:21: */ +func Xsqlite3DropTrigger(tls *libc.TLS, pParse uintptr, pName uintptr, noErr int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144220:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -170179,7 +171315,7 @@ __5: if !!(noErr != 0) { goto __9 } - Xsqlite3ErrorMsg(tls, pParse, ts+21517, libc.VaList(bp, pName+8)) + Xsqlite3ErrorMsg(tls, pParse, ts+21457, libc.VaList(bp, pName+8)) goto __10 __9: Xsqlite3CodeVerifyNamedSchema(tls, pParse, zDb) @@ -170197,12 +171333,12 @@ drop_trigger_cleanup: // Return a pointer to the Table structure for the table that a trigger // is set on. -func tableOfTrigger(tls *libc.TLS, pTrigger uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142668:14: */ +func tableOfTrigger(tls *libc.TLS, pTrigger uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144262:14: */ return Xsqlite3HashFind(tls, (*Trigger)(unsafe.Pointer(pTrigger)).FpTabSchema+8, (*Trigger)(unsafe.Pointer(pTrigger)).Ftable) } // Drop a trigger given a pointer to that trigger. -func Xsqlite3DropTriggerPtr(tls *libc.TLS, pParse uintptr, pTrigger uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142676:21: */ +func Xsqlite3DropTriggerPtr(tls *libc.TLS, pParse uintptr, pTrigger uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144270:21: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -170220,9 +171356,9 @@ func Xsqlite3DropTriggerPtr(tls *libc.TLS, pParse uintptr, pTrigger uintptr) { / var zDb uintptr = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName var zTab uintptr = func() uintptr { if !(0 != 0) && iDb == 1 { - return ts + 13385 + return ts + 13424 } - return ts + 7196 + return ts + 7231 }() if iDb == 1 { code = SQLITE_DROP_TEMP_TRIGGER @@ -170235,7 +171371,7 @@ func Xsqlite3DropTriggerPtr(tls *libc.TLS, pParse uintptr, pTrigger uintptr) { / // Generate code to destroy the database record of the trigger. if libc.AssignUintptr(&v, Xsqlite3GetVdbe(tls, pParse)) != uintptr(0) { Xsqlite3NestedParse(tls, pParse, - ts+21537, + ts+21477, libc.VaList(bp, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, (*Trigger)(unsafe.Pointer(pTrigger)).FzName)) Xsqlite3ChangeCookie(tls, pParse, iDb) Xsqlite3VdbeAddOp4(tls, v, OP_DropTrigger, iDb, 0, 0, (*Trigger)(unsafe.Pointer(pTrigger)).FzName, 0) @@ -170243,7 +171379,7 @@ func Xsqlite3DropTriggerPtr(tls *libc.TLS, pParse uintptr, pTrigger uintptr) { / } // Remove a trigger from the hash tables of the sqlite* pointer. -func Xsqlite3UnlinkAndDeleteTrigger(tls *libc.TLS, db uintptr, iDb int32, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142714:21: */ +func Xsqlite3UnlinkAndDeleteTrigger(tls *libc.TLS, db uintptr, iDb int32, zName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144308:21: */ var pTrigger uintptr var pHash uintptr @@ -170274,7 +171410,7 @@ func Xsqlite3UnlinkAndDeleteTrigger(tls *libc.TLS, db uintptr, iDb int32, zName // wildcard that matches anything. Likewise if pEList==NULL then // it matches anything so always return true. Return false only // if there is no match. -func checkColumnOverlap(tls *libc.TLS, pIdList uintptr, pEList uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142748:12: */ +func checkColumnOverlap(tls *libc.TLS, pIdList uintptr, pEList uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144342:12: */ var e int32 if pIdList == uintptr(0) || pEList == uintptr(0) { return 1 @@ -170287,11 +171423,22 @@ func checkColumnOverlap(tls *libc.TLS, pIdList uintptr, pEList uintptr) int32 { return 0 } +// Return true if any TEMP triggers exist +func tempTriggersExist(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144354:12: */ + if (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema == uintptr(0) { + return 0 + } + if (*Hash)(unsafe.Pointer((*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema+56)).Ffirst == uintptr(0) { + return 0 + } + return 1 +} + // Return a list of all triggers on table pTab if there exists at least // one trigger that must be fired when an operation of type 'op' is // performed on the table, and, if that operation is an UPDATE, if at // least one of the columns in pChanges is being modified. -func Xsqlite3TriggersExist(tls *libc.TLS, pParse uintptr, pTab uintptr, op int32, pChanges uintptr, pMask uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142763:24: */ +func triggersReallyExist(tls *libc.TLS, pParse uintptr, pTab uintptr, op int32, pChanges uintptr, pMask uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144366:32: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -170354,12 +171501,12 @@ __9: goto __15 } Xsqlite3ErrorMsg(tls, pParse, - ts+21599, + ts+21539, libc.VaList(bp, func() uintptr { if op == TK_DELETE { - return ts + 21647 /* "DELETE" */ + return ts + 21587 /* "DELETE" */ } - return ts + 21654 /* "UPDATE" */ + return ts + 21594 /* "UPDATE" */ }())) __15: ; @@ -170410,6 +171557,18 @@ __17: }() } +func Xsqlite3TriggersExist(tls *libc.TLS, pParse uintptr, pTab uintptr, op int32, pChanges uintptr, pMask uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144429:24: */ + + if (*Table)(unsafe.Pointer(pTab)).FpTrigger == uintptr(0) && !(tempTriggersExist(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb) != 0) || + (*Parse)(unsafe.Pointer(pParse)).FdisableTriggers != 0 { + if pMask != 0 { + *(*int32)(unsafe.Pointer(pMask)) = 0 + } + return uintptr(0) + } + return triggersReallyExist(tls, pParse, pTab, op, pChanges, pMask) +} + // Convert the pStep->zTarget string into a SrcList and return a pointer // to that SrcList. // @@ -170418,7 +171577,10 @@ __17: // referring to a target in another database. An exception is when the // trigger is in TEMP in which case it can refer to any other database it // wants. -func Xsqlite3TriggerStepSrc(tls *libc.TLS, pParse uintptr, pStep uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142837:24: */ +func Xsqlite3TriggerStepSrc(tls *libc.TLS, pParse uintptr, pStep uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144456:24: */ + bp := tls.Alloc(16) + defer tls.Free(16) + var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pSrc uintptr // SrcList to be returned var zName uintptr = Xsqlite3DbStrDup(tls, db, (*TriggerStep)(unsafe.Pointer(pStep)).FzTarget) @@ -170432,6 +171594,15 @@ func Xsqlite3TriggerStepSrc(tls *libc.TLS, pParse uintptr, pStep uintptr) uintpt } if (*TriggerStep)(unsafe.Pointer(pStep)).FpFrom != 0 { var pDup uintptr = Xsqlite3SrcListDup(tls, db, (*TriggerStep)(unsafe.Pointer(pStep)).FpFrom, 0) + if pDup != 0 && (*SrcList)(unsafe.Pointer(pDup)).FnSrc > 1 && !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) { + var pSubquery uintptr + // var as Token at bp, 16 + + pSubquery = Xsqlite3SelectNew(tls, pParse, uintptr(0), pDup, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uint32(SF_NestedFrom), uintptr(0)) + (*Token)(unsafe.Pointer(bp /* &as */)).Fn = uint32(0) + (*Token)(unsafe.Pointer(bp /* &as */)).Fz = uintptr(0) + pDup = Xsqlite3SrcListAppendFromTerm(tls, pParse, uintptr(0), uintptr(0), uintptr(0), bp, pSubquery, uintptr(0)) + } pSrc = Xsqlite3SrcListAppendList(tls, pParse, pSrc, pDup) } } else { @@ -170443,7 +171614,7 @@ func Xsqlite3TriggerStepSrc(tls *libc.TLS, pParse uintptr, pStep uintptr) uintpt // Return true if the pExpr term from the RETURNING clause argument // list is of the form "*". Raise an error if the terms if of the // form "table.*". -func isAsteriskTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142868:12: */ +func isAsteriskTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144495:12: */ if int32((*Expr)(unsafe.Pointer(pTerm)).Fop) == TK_ASTERISK { return 1 @@ -170455,7 +171626,7 @@ func isAsteriskTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr) int32 { /* tes if int32((*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(pTerm)).FpRight)).Fop) != TK_ASTERISK { return 0 } - Xsqlite3ErrorMsg(tls, pParse, ts+21661, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+21601, 0) return 1 } @@ -170464,7 +171635,7 @@ func isAsteriskTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr) int32 { /* tes // // This routine makes a copy of the pList, and at the same time expands // any "*" wildcards to be the complete set of columns from pTab. -func sqlite3ExpandReturning(tls *libc.TLS, pParse uintptr, pList uintptr, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142888:17: */ +func sqlite3ExpandReturning(tls *libc.TLS, pParse uintptr, pList uintptr, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144515:17: */ var pNew uintptr = uintptr(0) var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var i int32 @@ -170486,7 +171657,7 @@ func sqlite3ExpandReturning(tls *libc.TLS, pParse uintptr, pList uintptr, pTab u if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) { var pItem uintptr = pNew + 8 + uintptr((*ExprList)(unsafe.Pointer(pNew)).FnExpr-1)*32 (*ExprList_item)(unsafe.Pointer(pItem)).FzEName = Xsqlite3DbStrDup(tls, db, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(jj)*24)).FzCnName) - libc.SetBitFieldPtr8Uint32(pItem+20, uint32(ENAME_NAME), 0, 0x3) + libc.SetBitFieldPtr16Uint32(pItem+16+4, uint32(ENAME_NAME), 0, 0x3) } } } else { @@ -170495,7 +171666,7 @@ func sqlite3ExpandReturning(tls *libc.TLS, pParse uintptr, pList uintptr, pTab u if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) && (*ExprList_item)(unsafe.Pointer(pList+8+uintptr(i)*32)).FzEName != uintptr(0) { var pItem uintptr = pNew + 8 + uintptr((*ExprList)(unsafe.Pointer(pNew)).FnExpr-1)*32 (*ExprList_item)(unsafe.Pointer(pItem)).FzEName = Xsqlite3DbStrDup(tls, db, (*ExprList_item)(unsafe.Pointer(pList+8+uintptr(i)*32)).FzEName) - libc.SetBitFieldPtr8Uint32(pItem+20, uint32(int32(*(*uint8)(unsafe.Pointer(pList + 8 + uintptr(i)*32 + 20))&0x3>>0)), 0, 0x3) + libc.SetBitFieldPtr16Uint32(pItem+16+4, uint32(int32(*(*uint16)(unsafe.Pointer(pList + 8 + uintptr(i)*32 + 16 + 4))&0x3>>0)), 0, 0x3) } } } @@ -170505,9 +171676,9 @@ func sqlite3ExpandReturning(tls *libc.TLS, pParse uintptr, pList uintptr, pTab u // Generate code for the RETURNING trigger. Unlike other triggers // that invoke a subprogram in the bytecode, the code for RETURNING // is generated in-line. -func codeReturningTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr, regIn int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:142931:13: */ - bp := tls.Alloc(304) - defer tls.Free(304) +func codeReturningTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr, regIn int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144558:13: */ + bp := tls.Alloc(296) + defer tls.Free(296) var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb @@ -170515,7 +171686,7 @@ func codeReturningTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab var pReturning uintptr // var sSelect Select at bp, 128 - // var sFrom SrcList at bp+128, 120 + // var sFrom SrcList at bp+128, 112 pReturning = *(*uintptr)(unsafe.Pointer(pParse + 192)) @@ -170534,19 +171705,19 @@ func codeReturningTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab Xsqlite3ExprListDelete(tls, db, (*Select)(unsafe.Pointer(bp /* &sSelect */)).FpEList) pNew = sqlite3ExpandReturning(tls, pParse, (*Returning)(unsafe.Pointer(pReturning)).FpReturnEL, pTab) if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) { - // var sNC NameContext at bp+248, 56 + // var sNC NameContext at bp+240, 56 - libc.Xmemset(tls, bp+248, 0, uint64(unsafe.Sizeof(NameContext{}))) + libc.Xmemset(tls, bp+240, 0, uint64(unsafe.Sizeof(NameContext{}))) if (*Returning)(unsafe.Pointer(pReturning)).FnRetCol == 0 { (*Returning)(unsafe.Pointer(pReturning)).FnRetCol = (*ExprList)(unsafe.Pointer(pNew)).FnExpr (*Returning)(unsafe.Pointer(pReturning)).FiRetCur = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) } - (*NameContext)(unsafe.Pointer(bp + 248 /* &sNC */)).FpParse = pParse - *(*int32)(unsafe.Pointer(bp + 248 + 16)) = regIn - (*NameContext)(unsafe.Pointer(bp + 248 /* &sNC */)).FncFlags = NC_UBaseReg + (*NameContext)(unsafe.Pointer(bp + 240 /* &sNC */)).FpParse = pParse + *(*int32)(unsafe.Pointer(bp + 240 + 16)) = regIn + (*NameContext)(unsafe.Pointer(bp + 240 /* &sNC */)).FncFlags = NC_UBaseReg (*Parse)(unsafe.Pointer(pParse)).FeTriggerOp = (*Trigger)(unsafe.Pointer(pTrigger)).Fop (*Parse)(unsafe.Pointer(pParse)).FpTriggerTab = pTab - if Xsqlite3ResolveExprListNames(tls, bp+248, pNew) == SQLITE_OK && + if Xsqlite3ResolveExprListNames(tls, bp+240, pNew) == SQLITE_OK && !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) { var i int32 var nCol int32 = (*ExprList)(unsafe.Pointer(pNew)).FnExpr @@ -170573,7 +171744,7 @@ func codeReturningTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab // Generate VDBE code for the statements inside the body of a single // trigger. -func codeTriggerProgram(tls *libc.TLS, pParse uintptr, pStepList uintptr, orconf int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143007:12: */ +func codeTriggerProgram(tls *libc.TLS, pParse uintptr, pStepList uintptr, orconf int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144634:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -170603,8 +171774,8 @@ func codeTriggerProgram(tls *libc.TLS, pParse uintptr, pStepList uintptr, orconf if (*TriggerStep)(unsafe.Pointer(pStep)).FzSpan != 0 { Xsqlite3VdbeAddOp4(tls, v, OP_Trace, 0x7fffffff, 1, 0, - Xsqlite3MPrintf(tls, db, ts+7383, libc.VaList(bp, (*TriggerStep)(unsafe.Pointer(pStep)).FzSpan)), - -7) + Xsqlite3MPrintf(tls, db, ts+7418, libc.VaList(bp, (*TriggerStep)(unsafe.Pointer(pStep)).FzSpan)), + -6) } switch int32((*TriggerStep)(unsafe.Pointer(pStep)).Fop) { @@ -170660,7 +171831,7 @@ func codeTriggerProgram(tls *libc.TLS, pParse uintptr, pStepList uintptr, orconf // Parse context structure pFrom has just been used to create a sub-vdbe // (trigger program). If an error has occurred, transfer error information // from pFrom to pTo. -func transferParseError(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143111:13: */ +func transferParseError(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144738:13: */ if (*Parse)(unsafe.Pointer(pTo)).FnErr == 0 { (*Parse)(unsafe.Pointer(pTo)).FzErrMsg = (*Parse)(unsafe.Pointer(pFrom)).FzErrMsg @@ -170673,7 +171844,7 @@ func transferParseError(tls *libc.TLS, pTo uintptr, pFrom uintptr) { /* testdata // Create and populate a new TriggerPrg object with a sub-program // implementing trigger pTrigger with ON CONFLICT policy orconf. -func codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr, orconf int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143127:19: */ +func codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr, orconf int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144754:19: */ bp := tls.Alloc(472) defer tls.Free(472) @@ -170730,7 +171901,7 @@ func codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintpt if (*Trigger)(unsafe.Pointer(pTrigger)).FzName != 0 { Xsqlite3VdbeChangeP4(tls, v, -1, - Xsqlite3MPrintf(tls, db, ts+21703, libc.VaList(bp, (*Trigger)(unsafe.Pointer(pTrigger)).FzName)), -7) + Xsqlite3MPrintf(tls, db, ts+21643, libc.VaList(bp, (*Trigger)(unsafe.Pointer(pTrigger)).FzName)), -6) } // If one was specified, code the WHEN clause. If it evaluates to false @@ -170779,7 +171950,7 @@ func codeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintpt // trigger pTrigger with default ON CONFLICT algorithm orconf. If no such // TriggerPrg object exists, a new object is allocated and populated before // being returned. -func getRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr, orconf int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143241:19: */ +func getRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr, orconf int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144868:19: */ var pRoot uintptr = func() uintptr { if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 { return (*Parse)(unsafe.Pointer(pParse)).FpToplevel @@ -170808,7 +171979,7 @@ func getRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pTab uintptr // table pTab. The reg, orconf and ignoreJump parameters passed to this // function are the same as those described in the header function for // sqlite3CodeRowTrigger() -func Xsqlite3CodeRowTriggerDirect(tls *libc.TLS, pParse uintptr, p uintptr, pTab uintptr, reg int32, orconf int32, ignoreJump int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143276:21: */ +func Xsqlite3CodeRowTriggerDirect(tls *libc.TLS, pParse uintptr, p uintptr, pTab uintptr, reg int32, orconf int32, ignoreJump int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144903:21: */ var v uintptr = Xsqlite3GetVdbe(tls, pParse) // Main VM var pPrg uintptr pPrg = getRowTrigger(tls, pParse, p, pTab, orconf) @@ -170844,16 +172015,16 @@ func Xsqlite3CodeRowTriggerDirect(tls *libc.TLS, pParse uintptr, p uintptr, pTab // in the trigger program. If N is the number of columns in table pTab // (a copy of pTab->nCol), then registers are populated as follows: // -// Register Contains -// ------------------------------------------------------ -// reg+0 OLD.rowid -// reg+1 OLD.* value of left-most column of pTab -// ... ... -// reg+N OLD.* value of right-most column of pTab -// reg+N+1 NEW.rowid -// reg+N+2 NEW.* value of left-most column of pTab -// ... ... -// reg+N+N+1 NEW.* value of right-most column of pTab +// Register Contains +// ------------------------------------------------------ +// reg+0 OLD.rowid +// reg+1 OLD.* value of left-most column of pTab +// ... ... +// reg+N OLD.* value of right-most column of pTab +// reg+N+1 NEW.rowid +// reg+N+2 NEW.* value of left-most column of pTab +// ... ... +// reg+N+N+1 NEW.* value of right-most column of pTab // // For ON DELETE triggers, the registers containing the NEW.* values will // never be accessed by the trigger program, so they are not allocated or @@ -170868,7 +172039,7 @@ func Xsqlite3CodeRowTriggerDirect(tls *libc.TLS, pParse uintptr, p uintptr, pTab // trigger program to use (REPLACE, IGNORE etc.). Parameter ignoreJump // is the instruction that control should jump to if a trigger program // raises an IGNORE exception. -func Xsqlite3CodeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, op int32, pChanges uintptr, tr_tm int32, pTab uintptr, reg int32, orconf int32, ignoreJump int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143348:21: */ +func Xsqlite3CodeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, op int32, pChanges uintptr, tr_tm int32, pTab uintptr, reg int32, orconf int32, ignoreJump int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:144975:21: */ var p uintptr // Used to iterate through pTrigger list for p = pTrigger; p != 0; p = (*Trigger)(unsafe.Pointer(p)).FpNext { @@ -170916,7 +172087,7 @@ func Xsqlite3CodeRowTrigger(tls *libc.TLS, pParse uintptr, pTrigger uintptr, op // included in the returned mask if the TRIGGER_BEFORE bit is set in the // tr_tm parameter. Similarly, values accessed by AFTER triggers are only // included in the returned mask if the TRIGGER_AFTER bit is set in tr_tm. -func Xsqlite3TriggerColmask(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pChanges uintptr, isNew int32, tr_tm int32, pTab uintptr, orconf int32) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143418:20: */ +func Xsqlite3TriggerColmask(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pChanges uintptr, isNew int32, tr_tm int32, pTab uintptr, orconf int32) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:145045:20: */ var op int32 if pChanges != 0 { op = TK_UPDATE @@ -170973,7 +172144,7 @@ func Xsqlite3TriggerColmask(tls *libc.TLS, pParse uintptr, pTrigger uintptr, pCh // (not a virtual table) then the value might have been stored as an // integer. In that case, add an OP_RealAffinity opcode to make sure // it has been converted into REAL. -func Xsqlite3ColumnDefault(tls *libc.TLS, v uintptr, pTab uintptr, i int32, iReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143516:21: */ +func Xsqlite3ColumnDefault(tls *libc.TLS, v uintptr, pTab uintptr, i int32, iReg int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:145143:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -170986,7 +172157,7 @@ func Xsqlite3ColumnDefault(tls *libc.TLS, v uintptr, pTab uintptr, i int32, iReg Xsqlite3ColumnExpr(tls, pTab, pCol), enc, uint8((*Column)(unsafe.Pointer(pCol)).Faffinity), bp) if *(*uintptr)(unsafe.Pointer(bp)) != 0 { - Xsqlite3VdbeAppendP4(tls, v, *(*uintptr)(unsafe.Pointer(bp /* pValue */)), -11) + Xsqlite3VdbeAppendP4(tls, v, *(*uintptr)(unsafe.Pointer(bp /* pValue */)), -10) } } if int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(i)*24)).Faffinity) == SQLITE_AFF_REAL && !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { @@ -171003,7 +172174,7 @@ func Xsqlite3ColumnDefault(tls *libc.TLS, v uintptr, pTab uintptr, i int32, iReg // aXRef[j] will be non-negative if column j of the original table is // being updated. chngRowid will be true if the rowid of the table is // being updated. -func indexColumnIsBeingUpdated(tls *libc.TLS, pIdx uintptr, iCol int32, aXRef uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143549:12: */ +func indexColumnIsBeingUpdated(tls *libc.TLS, pIdx uintptr, iCol int32, aXRef uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:145176:12: */ var iIdxCol I16 = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iCol)*2)) // Cannot index rowid if int32(iIdxCol) >= 0 { @@ -171024,7 +172195,7 @@ func indexColumnIsBeingUpdated(tls *libc.TLS, pIdx uintptr, iCol int32, aXRef ui // aXRef[j] will be non-negative if column j of the original table is // being updated. chngRowid will be true if the rowid of the table is // being updated. -func indexWhereClauseMightChange(tls *libc.TLS, pIdx uintptr, aXRef uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143579:12: */ +func indexWhereClauseMightChange(tls *libc.TLS, pIdx uintptr, aXRef uintptr, chngRowid int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:145206:12: */ if (*Index)(unsafe.Pointer(pIdx)).FpPartIdxWhere == uintptr(0) { return 0 } @@ -171036,7 +172207,7 @@ func indexWhereClauseMightChange(tls *libc.TLS, pIdx uintptr, aXRef uintptr, chn // Expr.iColumn set to value (iCol+1). The resolver will modify the // expression to be a TK_COLUMN reading column iCol of the first // table in the source-list (pSrc->a[0]). -func exprRowColumn(tls *libc.TLS, pParse uintptr, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143595:13: */ +func exprRowColumn(tls *libc.TLS, pParse uintptr, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:145222:13: */ var pRet uintptr = Xsqlite3PExpr(tls, pParse, TK_ROW, uintptr(0), uintptr(0)) if pRet != 0 { (*Expr)(unsafe.Pointer(pRet)).FiColumn = YnVar(iCol + 1) @@ -171047,7 +172218,7 @@ func exprRowColumn(tls *libc.TLS, pParse uintptr, iCol int32) uintptr { /* testd // Assuming both the pLimit and pOrderBy parameters are NULL, this function // generates VM code to run the query: // -// SELECT <other-columns>, pChanges FROM pTabList WHERE pWhere +// SELECT <other-columns>, pChanges FROM pTabList WHERE pWhere // // and write the results to the ephemeral table already opened as cursor // iEph. None of pChanges, pTabList or pWhere are modified or consumed by @@ -171055,10 +172226,10 @@ func exprRowColumn(tls *libc.TLS, pParse uintptr, iCol int32) uintptr { /* testd // // Or, if pLimit and pOrderBy are not NULL, and pTab is not a view: // -// SELECT <other-columns>, pChanges FROM pTabList -// WHERE pWhere -// GROUP BY <other-columns> -// ORDER BY pOrderBy LIMIT pLimit +// SELECT <other-columns>, pChanges FROM pTabList +// WHERE pWhere +// GROUP BY <other-columns> +// ORDER BY pOrderBy LIMIT pLimit // // If pTab is a view, the GROUP BY clause is omitted. // @@ -171080,7 +172251,7 @@ func exprRowColumn(tls *libc.TLS, pParse uintptr, iCol int32) uintptr { /* testd // records with automatically assigned integer keys For intkey tables, the // rowid value in <other-columns> is used as the integer key, and the // remaining fields make up the table record. -func updateFromSelect(tls *libc.TLS, pParse uintptr, iEph int32, pPk uintptr, pChanges uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pLimit uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143639:13: */ +func updateFromSelect(tls *libc.TLS, pParse uintptr, iEph int32, pPk uintptr, pChanges uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pLimit uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:145266:13: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -171105,7 +172276,7 @@ func updateFromSelect(tls *libc.TLS, pParse uintptr, iEph int32, pPk uintptr, pC pWhere2 = Xsqlite3ExprDup(tls, db, pWhere, 0) if pSrc != 0 { - libc.SetBitFieldPtr16Uint32(pSrc+8+60+4, uint32(1), 8, 0x100) + libc.SetBitFieldPtr16Uint32(pSrc+8+60+4, uint32(1), 9, 0x200) (*SrcItem)(unsafe.Pointer(pSrc + 8)).FiCursor = -1 (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc+8)).FpTab)).FnTabRef-- (*SrcItem)(unsafe.Pointer(pSrc + 8)).FpTab = uintptr(0) @@ -171158,12 +172329,12 @@ func updateFromSelect(tls *libc.TLS, pParse uintptr, iEph int32, pPk uintptr, pC // Process an UPDATE statement. // -// UPDATE OR IGNORE tbl SET a=b, c=d FROM tbl2... WHERE e<5 AND f NOT NULL; -// \_______/ \_/ \______/ \_____/ \________________/ -// onError | pChanges | pWhere -// \_______________________/ -// pTabList -func Xsqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges uintptr, pWhere uintptr, onError int32, pOrderBy uintptr, pLimit uintptr, pUpsert uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:143736:21: */ +// UPDATE OR IGNORE tbl SET a=b, c=d FROM tbl2... WHERE e<5 AND f NOT NULL; +// \_______/ \_/ \______/ \_____/ \________________/ +// onError | pChanges | pWhere +// \_______________________/ +// pTabList +func Xsqlite3Update(tls *libc.TLS, pParse uintptr, pTabList uintptr, pChanges uintptr, pWhere uintptr, onError int32, pOrderBy uintptr, pLimit uintptr, pUpsert uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:145363:21: */ bp := tls.Alloc(108) defer tls.Free(108) @@ -171444,7 +172615,7 @@ __25: } Xsqlite3ErrorMsg(tls, pParse, - ts+21717, + ts+21657, libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName)) goto update_cleanup __27: @@ -171476,7 +172647,7 @@ __21: iRowidExpr = i goto __30 __29: - Xsqlite3ErrorMsg(tls, pParse, ts+21753, libc.VaList(bp+8, (*ExprList_item)(unsafe.Pointer(pChanges+8+uintptr(i)*32)).FzEName)) + Xsqlite3ErrorMsg(tls, pParse, ts+21693, libc.VaList(bp+8, (*ExprList_item)(unsafe.Pointer(pChanges+8+uintptr(i)*32)).FzEName)) (*Parse)(unsafe.Pointer(pParse)).FcheckSchema = U8(1) goto update_cleanup __30: @@ -171487,7 +172658,7 @@ __28: rc = Xsqlite3AuthCheck(tls, pParse, SQLITE_UPDATE, (*Table)(unsafe.Pointer(pTab)).FzName, func() uintptr { if j < 0 { - return ts + 8952 /* "ROWID" */ + return ts + 8991 /* "ROWID" */ } return (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*24)).FzCnName }(), @@ -171800,7 +172971,7 @@ __69: goto __71 } (*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnAllField = U16(nEphCol) - Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -9) + Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -8) __71: ; __70: @@ -172434,7 +173605,7 @@ __159: if !!(int32((*Parse)(unsafe.Pointer(pParse)).Fnested) != 0) { goto __160 } - Xsqlite3VdbeAppendP4(tls, v, pTab, -6) + Xsqlite3VdbeAppendP4(tls, v, pTab, -5) __160: ; @@ -172517,7 +173688,7 @@ __168: if !(regRowCount != 0) { goto __169 } - Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+21772) + Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+21712) __169: ; @@ -172543,9 +173714,9 @@ update_cleanup: // The default strategy is to create an ephemeral table that contains // for each row to be changed: // -// (A) The original rowid of that row. -// (B) The revised rowid for the row. -// (C) The content of every column in the row. +// (A) The original rowid of that row. +// (B) The revised rowid for the row. +// (C) The content of every column in the row. // // Then loop through the contents of this ephemeral table executing a // VUpdate for each row. When finished, drop the ephemeral table. @@ -172553,7 +173724,7 @@ update_cleanup: // The "onepass" strategy does not use an ephemeral table. Instead, it // stores the same values (A, B and C above) in a register array and // makes a single invocation of VUpdate. -func updateVirtualTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintptr, pChanges uintptr, pRowid uintptr, aXRef uintptr, pWhere uintptr, onError int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:144628:13: */ +func updateVirtualTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintptr, pChanges uintptr, pRowid uintptr, aXRef uintptr, pWhere uintptr, onError int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146263:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -172689,7 +173860,7 @@ func updateVirtualTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintpt } } Xsqlite3VtabMakeWritable(tls, pParse, pTab) - Xsqlite3VdbeAddOp4(tls, v, OP_VUpdate, 0, nArg, regArg, pVTab, -12) + Xsqlite3VdbeAddOp4(tls, v, OP_VUpdate, 0, nArg, regArg, pVTab, -11) Xsqlite3VdbeChangeP5(tls, v, func() uint16 { if onError == OE_Default { return uint16(OE_Abort) @@ -172726,7 +173897,7 @@ func updateVirtualTable(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintpt // #include "sqliteInt.h" // Free a list of Upsert objects -func upsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:144816:29: */ +func upsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146451:29: */ for __ccgo := true; __ccgo; __ccgo = p != 0 { var pNext uintptr = (*Upsert)(unsafe.Pointer(p)).FpNextUpsert Xsqlite3ExprListDelete(tls, db, (*Upsert)(unsafe.Pointer(p)).FpUpsertTarget) @@ -172739,14 +173910,14 @@ func upsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-ama } } -func Xsqlite3UpsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:144828:21: */ +func Xsqlite3UpsertDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146463:21: */ if p != 0 { upsertDelete(tls, db, p) } } // Duplicate an Upsert object. -func Xsqlite3UpsertDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:144836:23: */ +func Xsqlite3UpsertDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146471:23: */ if p == uintptr(0) { return uintptr(0) } @@ -172759,7 +173930,7 @@ func Xsqlite3UpsertDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testda } // Create a new Upsert object. -func Xsqlite3UpsertNew(tls *libc.TLS, db uintptr, pTarget uintptr, pTargetWhere uintptr, pSet uintptr, pWhere uintptr, pNext uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:144850:23: */ +func Xsqlite3UpsertNew(tls *libc.TLS, db uintptr, pTarget uintptr, pTargetWhere uintptr, pSet uintptr, pWhere uintptr, pNext uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146485:23: */ var pNew uintptr pNew = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Upsert{}))) if pNew == uintptr(0) { @@ -172785,7 +173956,7 @@ func Xsqlite3UpsertNew(tls *libc.TLS, db uintptr, pTarget uintptr, pTargetWhere // // Return SQLITE_OK if everything works, or an error code is something // is wrong. -func Xsqlite3UpsertAnalyzeTarget(tls *libc.TLS, pParse uintptr, pTabList uintptr, pUpsert uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:144885:20: */ +func Xsqlite3UpsertAnalyzeTarget(tls *libc.TLS, pParse uintptr, pTabList uintptr, pUpsert uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146520:20: */ bp := tls.Alloc(232) defer tls.Free(232) @@ -172905,10 +174076,10 @@ __1: if nClause == 0 && (*Upsert)(unsafe.Pointer(pUpsert)).FpNextUpsert == uintptr(0) { *(*int8)(unsafe.Pointer(bp + 216)) = int8(0) } else { - Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([16]int8{})), bp+216, ts+21785, libc.VaList(bp, nClause+1)) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([16]int8{})), bp+216, ts+21725, libc.VaList(bp, nClause+1)) } Xsqlite3ErrorMsg(tls, pParse, - ts+21789, libc.VaList(bp+8, bp+216)) + ts+21729, libc.VaList(bp+8, bp+216)) return SQLITE_ERROR } @@ -172927,7 +174098,7 @@ __3: // Return true if pUpsert is the last ON CONFLICT clause with a // conflict target, or if pUpsert is followed by another ON CONFLICT // clause that targets the INTEGER PRIMARY KEY. -func Xsqlite3UpsertNextIsIPK(tls *libc.TLS, pUpsert uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145012:20: */ +func Xsqlite3UpsertNextIsIPK(tls *libc.TLS, pUpsert uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146647:20: */ var pNext uintptr if pUpsert == uintptr(0) { return 0 @@ -172949,7 +174120,7 @@ func Xsqlite3UpsertNextIsIPK(tls *libc.TLS, pUpsert uintptr) int32 { /* testdata // a particular index pIdx, return a pointer to the particular ON CONFLICT // clause that applies to the index. Or, if the index is not subject to // any ON CONFLICT clause, return NULL. -func Xsqlite3UpsertOfIndex(tls *libc.TLS, pUpsert uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145028:23: */ +func Xsqlite3UpsertOfIndex(tls *libc.TLS, pUpsert uintptr, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146663:23: */ for pUpsert != 0 && (*Upsert)(unsafe.Pointer(pUpsert)).FpUpsertTarget != uintptr(0) && (*Upsert)(unsafe.Pointer(pUpsert)).FpUpsertIdx != pIdx { @@ -172965,7 +174136,7 @@ func Xsqlite3UpsertOfIndex(tls *libc.TLS, pUpsert uintptr, pIdx uintptr) uintptr // currently points to the conflicting table row. Otherwise, if pIdx // is not NULL, then pIdx is the constraint that failed and iCur is a // cursor points to the conflicting row. -func Xsqlite3UpsertDoUpdate(tls *libc.TLS, pParse uintptr, pUpsert uintptr, pTab uintptr, pIdx uintptr, iCur int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145048:21: */ +func Xsqlite3UpsertDoUpdate(tls *libc.TLS, pParse uintptr, pUpsert uintptr, pTab uintptr, pIdx uintptr, iCur int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146683:21: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pSrc uintptr // FROM clause for the UPDATE @@ -172999,7 +174170,7 @@ func Xsqlite3UpsertDoUpdate(tls *libc.TLS, pParse uintptr, pUpsert uintptr, pTab i = Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, iDataCur, 0, iPk, nPk) Xsqlite3VdbeAddOp4(tls, v, OP_Halt, SQLITE_CORRUPT, OE_Abort, 0, - ts+13439, -1) + ts+13478, -1) Xsqlite3MayAbort(tls, pParse) Xsqlite3VdbeJumpHere(tls, v, i) } @@ -173045,7 +174216,7 @@ func Xsqlite3UpsertDoUpdate(tls *libc.TLS, pParse uintptr, pUpsert uintptr, pTab // // The execSqlF() routine does the same thing, except it accepts // a format string as its third argument -func execSql(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145145:12: */ +func execSql(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146780:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -173067,7 +174238,7 @@ func execSql(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr) int32 { // then run VACUUM to get those statements to execute at inappropriate // times. if zSubSql != 0 && - (libc.Xstrncmp(tls, zSubSql, ts+21862, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, ts+21866, uint64(3)) == 0) { + (libc.Xstrncmp(tls, zSubSql, ts+21802, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, ts+21806, uint64(3)) == 0) { rc = execSql(tls, db, pzErrMsg, zSubSql) if rc != SQLITE_OK { break @@ -173085,7 +174256,7 @@ func execSql(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr) int32 { return rc } -func execSqlF(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145175:12: */ +func execSqlF(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146810:12: */ var z uintptr var ap Va_list _ = ap @@ -173105,11 +174276,11 @@ func execSqlF(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr, va uint // collapse free space, etc. It is modelled after the VACUUM command // in PostgreSQL. The VACUUM command works as follows: // -// (1) Create a new transient database file -// (2) Copy all content from the database being vacuumed into -// the new transient database file -// (3) Copy content from the transient database back into the -// original database. +// (1) Create a new transient database file +// (2) Copy all content from the database being vacuumed into +// the new transient database file +// (3) Copy content from the transient database back into the +// original database. // // The transient database requires temporary disk space approximately // equal to the size of the original database. The copy operation of @@ -173129,7 +174300,7 @@ func execSqlF(tls *libc.TLS, db uintptr, pzErrMsg uintptr, zSql uintptr, va uint // And a power loss in between deleting the original and renaming the // transient would cause the database file to appear to be deleted // following reboot. -func Xsqlite3Vacuum(tls *libc.TLS, pParse uintptr, pNm uintptr, pInto uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145218:21: */ +func Xsqlite3Vacuum(tls *libc.TLS, pParse uintptr, pNm uintptr, pInto uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146853:21: */ bp := tls.Alloc(8) defer tls.Free(8) *(*uintptr)(unsafe.Pointer(bp)) = pNm @@ -173186,7 +174357,7 @@ build_vacuum_end: } // This routine implements the OP_Vacuum opcode of the VDBE. -func Xsqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145256:36: */ +func Xsqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:146891:36: */ bp := tls.Alloc(52) defer tls.Free(52) @@ -173217,14 +174388,14 @@ func Xsqlite3RunVacuum(tls *libc.TLS, pzErrMsg uintptr, db uintptr, iDb int32, p if !!(int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) != 0) { goto __1 } - Xsqlite3SetString(tls, pzErrMsg, db, ts+21870) + Xsqlite3SetString(tls, pzErrMsg, db, ts+21810) return SQLITE_ERROR // IMP: R-12218-18073 __1: ; if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeActive > 1) { goto __2 } - Xsqlite3SetString(tls, pzErrMsg, db, ts+21910) + Xsqlite3SetString(tls, pzErrMsg, db, ts+21850) return SQLITE_ERROR // IMP: R-15610-35227 __2: ; @@ -173235,7 +174406,7 @@ __2: if !(Xsqlite3_value_type(tls, pOut) != SQLITE_TEXT) { goto __5 } - Xsqlite3SetString(tls, pzErrMsg, db, ts+21953) + Xsqlite3SetString(tls, pzErrMsg, db, ts+21893) return SQLITE_ERROR __5: ; @@ -173280,7 +174451,7 @@ __4: // time to parse and run the PRAGMA to turn journalling off than it does // to write the journal header file. nDb = (*Sqlite3)(unsafe.Pointer(db)).FnDb - rc = execSqlF(tls, db, pzErrMsg, ts+21971, libc.VaList(bp, zOut)) + rc = execSqlF(tls, db, pzErrMsg, ts+21911, libc.VaList(bp, zOut)) (*Sqlite3)(unsafe.Pointer(db)).FopenFlags = saved_openFlags if !(rc != SQLITE_OK) { goto __6 @@ -173301,7 +174472,7 @@ __6: goto __8 } rc = SQLITE_ERROR - Xsqlite3SetString(tls, pzErrMsg, db, ts+21994) + Xsqlite3SetString(tls, pzErrMsg, db, ts+21934) goto end_of_vacuum __8: ; @@ -173317,7 +174488,7 @@ __7: // Begin a transaction and take an exclusive lock on the main database // file. This is done before the sqlite3BtreeGetPageSize(pMain) call below, // to ensure that we do not try to change the page-size on a WAL database. - rc = execSql(tls, db, pzErrMsg, ts+15797) + rc = execSql(tls, db, pzErrMsg, ts+15836) if !(rc != SQLITE_OK) { goto __9 } @@ -173369,7 +174540,7 @@ __12: (*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = U8(nDb) // force new CREATE statements into vacuum_db rc = execSqlF(tls, db, pzErrMsg, - ts+22021, + ts+21961, libc.VaList(bp+8, zDbMain)) if !(rc != SQLITE_OK) { goto __13 @@ -173379,7 +174550,7 @@ __13: ; rc = execSqlF(tls, db, pzErrMsg, - ts+22129, + ts+22069, libc.VaList(bp+16, zDbMain)) if !(rc != SQLITE_OK) { goto __14 @@ -173394,7 +174565,7 @@ __14: // the contents to the temporary database. rc = execSqlF(tls, db, pzErrMsg, - ts+22183, + ts+22123, libc.VaList(bp+24, zDbMain)) *(*U32)(unsafe.Pointer(db + 44)) &= libc.Uint32FromInt32(libc.CplInt32(DBFLAG_Vacuum)) @@ -173411,7 +174582,7 @@ __15: // from the schema table. rc = execSqlF(tls, db, pzErrMsg, - ts+22334, + ts+22274, libc.VaList(bp+32, zDbMain)) if !(rc != 0) { goto __16 @@ -173480,6 +174651,7 @@ __24: if !(pOut == uintptr(0)) { goto __25 } + nRes = Xsqlite3BtreeGetRequestedReserve(tls, pTemp) rc = Xsqlite3BtreeSetPageSize(tls, pMain, Xsqlite3BtreeGetPageSize(tls, pTemp), nRes, 1) __25: ; @@ -173524,7 +174696,7 @@ var aCopy = [10]uint8{ uint8(BTREE_TEXT_ENCODING), uint8(0), // Preserve the text encoding uint8(BTREE_USER_VERSION), uint8(0), // Preserve the user version uint8(BTREE_APPLICATION_ID), uint8(0), // Preserve the application id -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145449:32 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147084:32 */ // Construct and install a Module object for a virtual table. When this // routine is called, it is guaranteed that all appropriate locks are held @@ -173532,7 +174704,7 @@ var aCopy = [10]uint8{ // // If there already exists a module with zName, replace it with the new one. // If pModule==0, then delete the module zName if it exists. -func Xsqlite3VtabCreateModule(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr, xDestroy uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145561:23: */ +func Xsqlite3VtabCreateModule(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr, xDestroy uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147197:23: */ var pMod uintptr var pDel uintptr var zCopy uintptr @@ -173572,7 +174744,7 @@ func Xsqlite3VtabCreateModule(tls *libc.TLS, db uintptr, zName uintptr, pModule // The actual function that does the work of creating a new module. // This function implements the sqlite3_create_module() and // sqlite3_create_module_v2() interfaces. -func createModule(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145609:12: */ +func createModule(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147245:12: */ var rc int32 = SQLITE_OK Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -173586,18 +174758,18 @@ func createModule(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAu } // External API function used to create a new virtual-table module. -func Xsqlite3_create_module(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145630:16: */ +func Xsqlite3_create_module(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147266:16: */ return createModule(tls, db, zName, pModule, pAux, uintptr(0)) } // External API function used to create a new virtual-table module. -func Xsqlite3_create_module_v2(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145645:16: */ +func Xsqlite3_create_module_v2(tls *libc.TLS, db uintptr, zName uintptr, pModule uintptr, pAux uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147281:16: */ return createModule(tls, db, zName, pModule, pAux, xDestroy) } // External API to drop all virtual-table modules, except those named // on the azNames list. -func Xsqlite3_drop_modules(tls *libc.TLS, db uintptr, azNames uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145662:16: */ +func Xsqlite3_drop_modules(tls *libc.TLS, db uintptr, azNames uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147298:16: */ var pThis uintptr var pNext uintptr for pThis = (*Hash)(unsafe.Pointer(db + 568)).Ffirst; pThis != 0; pThis = pNext { @@ -173618,7 +174790,7 @@ func Xsqlite3_drop_modules(tls *libc.TLS, db uintptr, azNames uintptr) int32 { / // Decrement the reference count on a Module object. Destroy the // module when the reference count reaches zero. -func Xsqlite3VtabModuleUnref(tls *libc.TLS, db uintptr, pMod uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145684:21: */ +func Xsqlite3VtabModuleUnref(tls *libc.TLS, db uintptr, pMod uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147320:21: */ (*Module)(unsafe.Pointer(pMod)).FnRefModule-- if (*Module)(unsafe.Pointer(pMod)).FnRefModule == 0 { @@ -173636,14 +174808,14 @@ func Xsqlite3VtabModuleUnref(tls *libc.TLS, db uintptr, pMod uintptr) { /* testd // // If a disconnect is attempted while a virtual table is locked, // the disconnect is deferred until all locks have been removed. -func Xsqlite3VtabLock(tls *libc.TLS, pVTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145704:21: */ +func Xsqlite3VtabLock(tls *libc.TLS, pVTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147340:21: */ (*VTable)(unsafe.Pointer(pVTab)).FnRef++ } // pTab is a pointer to a Table structure representing a virtual-table. // Return a pointer to the VTable object used by connection db to access // this virtual-table, if one has been created, or NULL otherwise. -func Xsqlite3GetVTable(tls *libc.TLS, db uintptr, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145714:23: */ +func Xsqlite3GetVTable(tls *libc.TLS, db uintptr, pTab uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147350:23: */ var pVtab uintptr for pVtab = *(*uintptr)(unsafe.Pointer(pTab + 64 + 16 /* &.p */)); pVtab != 0 && (*VTable)(unsafe.Pointer(pVtab)).Fdb != db; pVtab = (*VTable)(unsafe.Pointer(pVtab)).FpNext { @@ -173653,7 +174825,7 @@ func Xsqlite3GetVTable(tls *libc.TLS, db uintptr, pTab uintptr) uintptr { /* tes // Decrement the ref-count on a virtual table object. When the ref-count // reaches zero, call the xDisconnect() method to delete the object. -func Xsqlite3VtabUnlock(tls *libc.TLS, pVTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145725:21: */ +func Xsqlite3VtabUnlock(tls *libc.TLS, pVTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147361:21: */ var db uintptr = (*VTable)(unsafe.Pointer(pVTab)).Fdb (*VTable)(unsafe.Pointer(pVTab)).FnRef-- @@ -173674,7 +174846,7 @@ func Xsqlite3VtabUnlock(tls *libc.TLS, pVTab uintptr) { /* testdata/sqlite-amalg // database connections to be disconnected at the next opportunity. // Except, if argument db is not NULL, then the entry associated with // connection db is left in the p->u.vtab.p list. -func vtabDisconnectAll(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145751:15: */ +func vtabDisconnectAll(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147387:15: */ var pRet uintptr = uintptr(0) var pVTable uintptr @@ -173711,7 +174883,7 @@ func vtabDisconnectAll(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testda // used when closing database connection db to free all of its VTable // objects without disturbing the rest of the Schema object (which may // be being used by other shared-cache connections). -func Xsqlite3VtabDisconnect(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145794:21: */ +func Xsqlite3VtabDisconnect(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147430:21: */ var ppVTab uintptr for ppVTab = p + 64 + 16; *(*uintptr)(unsafe.Pointer(ppVTab)) != 0; ppVTab = *(*uintptr)(unsafe.Pointer(ppVTab)) + 40 { @@ -173731,18 +174903,18 @@ func Xsqlite3VtabDisconnect(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/ // caller. This is done to protect the sqlite3.pDisconnect list. The // sqlite3.pDisconnect list is accessed only as follows: // -// 1) By this function. In this case, all BtShared mutexes and the mutex -// associated with the database handle itself must be held. +// 1. By this function. In this case, all BtShared mutexes and the mutex +// associated with the database handle itself must be held. // -// 2) By function vtabDisconnectAll(), when it adds a VTable entry to -// the sqlite3.pDisconnect list. In this case either the BtShared mutex -// associated with the database the virtual table is stored in is held -// or, if the virtual table is stored in a non-sharable database, then -// the database handle mutex is held. +// 2. By function vtabDisconnectAll(), when it adds a VTable entry to +// the sqlite3.pDisconnect list. In this case either the BtShared mutex +// associated with the database the virtual table is stored in is held +// or, if the virtual table is stored in a non-sharable database, then +// the database handle mutex is held. // // As a result, a sqlite3.pDisconnect cannot be accessed simultaneously // by multiple threads. It is thread-safe. -func Xsqlite3VtabUnlockList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145832:21: */ +func Xsqlite3VtabUnlockList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147468:21: */ var p uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpDisconnect if p != 0 { @@ -173768,7 +174940,7 @@ func Xsqlite3VtabUnlockList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amal // structure being xDisconnected and free). Any other VTable structures // in the list are moved to the sqlite3.pDisconnect list of the associated // database connection. -func Xsqlite3VtabClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145863:21: */ +func Xsqlite3VtabClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147499:21: */ if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FpnBytesFreed == uintptr(0) { vtabDisconnectAll(tls, uintptr(0), p) @@ -173788,7 +174960,7 @@ func Xsqlite3VtabClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlit // The string is not copied - the pointer is stored. The // string will be freed automatically when the table is // deleted. -func addModuleArgument(tls *libc.TLS, pParse uintptr, pTable uintptr, zArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145881:13: */ +func addModuleArgument(tls *libc.TLS, pParse uintptr, pTable uintptr, zArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147517:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -173798,7 +174970,7 @@ func addModuleArgument(tls *libc.TLS, pParse uintptr, pTable uintptr, zArg uintp nBytes = Sqlite3_int64(uint64(unsafe.Sizeof(uintptr(0))) * uint64(2+*(*int32)(unsafe.Pointer(pTable + 64)))) if *(*int32)(unsafe.Pointer(pTable + 64))+3 >= *(*int32)(unsafe.Pointer(db + 136 + 2*4)) { - Xsqlite3ErrorMsg(tls, pParse, ts+13666, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+13705, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName)) } azModuleArg = Xsqlite3DbRealloc(tls, db, *(*uintptr)(unsafe.Pointer(pTable + 64 + 8 /* &.azArg */)), uint64(nBytes)) if azModuleArg == uintptr(0) { @@ -173814,7 +174986,7 @@ func addModuleArgument(tls *libc.TLS, pParse uintptr, pTable uintptr, zArg uintp // The parser calls this routine when it first sees a CREATE VIRTUAL TABLE // statement. The module name has been parsed, but the optional list // of parameters that follow the module name are still pending. -func Xsqlite3VtabBeginParse(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, pModuleName uintptr, ifNotExists int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145907:21: */ +func Xsqlite3VtabBeginParse(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintptr, pModuleName uintptr, ifNotExists int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147543:21: */ var pTable uintptr // The new virtual table var db uintptr // Database connection @@ -173849,7 +175021,7 @@ func Xsqlite3VtabBeginParse(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName // This routine takes the module argument that has been accumulating // in pParse->zArg[] and appends it to the list of arguments on the // virtual table currently under construction in pParse->pTable. -func addArgumentToVtab(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145956:13: */ +func addArgumentToVtab(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147592:13: */ if (*Parse)(unsafe.Pointer(pParse)).FsArg.Fz != 0 && (*Parse)(unsafe.Pointer(pParse)).FpNewTable != 0 { var z uintptr = (*Parse)(unsafe.Pointer(pParse)).FsArg.Fz var n int32 = int32((*Parse)(unsafe.Pointer(pParse)).FsArg.Fn) @@ -173860,7 +175032,7 @@ func addArgumentToVtab(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalg // The parser calls this routine after the CREATE VIRTUAL TABLE statement // has been completely parsed. -func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:145969:21: */ +func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147605:21: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -173895,7 +175067,7 @@ func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* t if pEnd != 0 { (*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fn = uint32(int32((int64((*Token)(unsafe.Pointer(pEnd)).Fz)-int64((*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fz))/1)) + (*Token)(unsafe.Pointer(pEnd)).Fn } - zStmt = Xsqlite3MPrintf(tls, db, ts+22464, libc.VaList(bp, pParse+256)) + zStmt = Xsqlite3MPrintf(tls, db, ts+22404, libc.VaList(bp, pParse+256)) // A slot for the record has already been allocated in the // schema table. We just need to update that slot with all @@ -173907,7 +175079,7 @@ func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* t iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema) Xsqlite3NestedParse(tls, pParse, - ts+22488, + ts+22428, libc.VaList(bp+8, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, (*Table)(unsafe.Pointer(pTab)).FzName, (*Table)(unsafe.Pointer(pTab)).FzName, @@ -173917,7 +175089,7 @@ func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* t Xsqlite3ChangeCookie(tls, pParse, iDb) Xsqlite3VdbeAddOp0(tls, v, OP_Expire) - zWhere = Xsqlite3MPrintf(tls, db, ts+22587, libc.VaList(bp+48, (*Table)(unsafe.Pointer(pTab)).FzName, zStmt)) + zWhere = Xsqlite3MPrintf(tls, db, ts+22527, libc.VaList(bp+48, (*Table)(unsafe.Pointer(pTab)).FzName, zStmt)) Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb, zWhere, uint16(0)) Xsqlite3DbFree(tls, db, zStmt) @@ -173944,7 +175116,7 @@ func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* t // The parser calls this routine when it sees the first token // of an argument to the module name in a CREATE VIRTUAL TABLE statement. -func Xsqlite3VtabArgInit(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146052:21: */ +func Xsqlite3VtabArgInit(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147688:21: */ addArgumentToVtab(tls, pParse) (*Parse)(unsafe.Pointer(pParse)).FsArg.Fz = uintptr(0) (*Parse)(unsafe.Pointer(pParse)).FsArg.Fn = uint32(0) @@ -173952,7 +175124,7 @@ func Xsqlite3VtabArgInit(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-ama // The parser calls this routine for each token after the first token // in an argument to the module name in a CREATE VIRTUAL TABLE statement. -func Xsqlite3VtabArgExtend(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146062:21: */ +func Xsqlite3VtabArgExtend(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147698:21: */ var pArg uintptr = pParse + 368 if (*Token)(unsafe.Pointer(pArg)).Fz == uintptr(0) { (*Token)(unsafe.Pointer(pArg)).Fz = (*Token)(unsafe.Pointer(p)).Fz @@ -173966,7 +175138,7 @@ func Xsqlite3VtabArgExtend(tls *libc.TLS, pParse uintptr, p uintptr) { /* testda // Invoke a virtual table constructor (either xCreate or xConnect). The // pointer to the function to invoke is passed as the fourth parameter // to this procedure. -func vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr, xConstruct uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146078:12: */ +func vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr, xConstruct uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147714:12: */ bp := tls.Alloc(72) defer tls.Free(72) @@ -173987,7 +175159,7 @@ func vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr, for pCtx = (*Sqlite3)(unsafe.Pointer(db)).FpVtabCtx; pCtx != 0; pCtx = (*VtabCtx)(unsafe.Pointer(pCtx)).FpPrior { if (*VtabCtx)(unsafe.Pointer(pCtx)).FpTab == pTab { *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, - ts+22606, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + ts+22546, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) return SQLITE_LOCKED } } @@ -174027,9 +175199,9 @@ func vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr, if SQLITE_OK != rc { if *(*uintptr)(unsafe.Pointer(bp + 64)) == uintptr(0) { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+22648, libc.VaList(bp+8, zModuleName)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+22588, libc.VaList(bp+8, zModuleName)) } else { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+4444, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */)))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+4479, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */)))) Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */))) } Xsqlite3DbFree(tls, db, pVTable) @@ -174041,7 +175213,7 @@ func vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr, (*Module)(unsafe.Pointer(pMod)).FnRefModule++ (*VTable)(unsafe.Pointer(pVTable)).FnRef = 1 if (*VtabCtx)(unsafe.Pointer(bp+32)).FbDeclared == 0 { - var zFormat uintptr = ts + 22678 /* "vtable construct..." */ + var zFormat uintptr = ts + 22618 /* "vtable construct..." */ *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, zFormat, libc.VaList(bp+24, (*Table)(unsafe.Pointer(pTab)).FzName)) Xsqlite3VtabUnlock(tls, pVTable) rc = SQLITE_ERROR @@ -174062,7 +175234,7 @@ func vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr, var i int32 = 0 nType = Xsqlite3Strlen30(tls, zType) for i = 0; i < nType; i++ { - if 0 == Xsqlite3_strnicmp(tls, ts+17423, zType+uintptr(i), 6) && + if 0 == Xsqlite3_strnicmp(tls, ts+17453, zType+uintptr(i), 6) && (i == 0 || int32(*(*int8)(unsafe.Pointer(zType + uintptr(i-1)))) == ' ') && (int32(*(*int8)(unsafe.Pointer(zType + uintptr(i+6)))) == 0 || int32(*(*int8)(unsafe.Pointer(zType + uintptr(i+6)))) == ' ') { break @@ -174102,7 +175274,7 @@ func vtabCallConstructor(tls *libc.TLS, db uintptr, pTab uintptr, pMod uintptr, // and an error left in pParse. // // This call is a no-op if table pTab is not a virtual table. -func Xsqlite3VtabCallConnect(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146214:20: */ +func Xsqlite3VtabCallConnect(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147850:20: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -174121,13 +175293,13 @@ func Xsqlite3VtabCallConnect(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 if !(pMod != 0) { var zModule uintptr = *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pTab + 64 + 8 /* &.azArg */)))) - Xsqlite3ErrorMsg(tls, pParse, ts+22724, libc.VaList(bp, zModule)) + Xsqlite3ErrorMsg(tls, pParse, ts+22664, libc.VaList(bp, zModule)) rc = SQLITE_ERROR } else { *(*uintptr)(unsafe.Pointer(bp + 16 /* zErr */)) = uintptr(0) rc = vtabCallConstructor(tls, db, pTab, pMod, (*Sqlite3_module)(unsafe.Pointer((*Module)(unsafe.Pointer(pMod)).FpModule)).FxConnect, bp+16) if rc != SQLITE_OK { - Xsqlite3ErrorMsg(tls, pParse, ts+4444, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 16 /* zErr */)))) + Xsqlite3ErrorMsg(tls, pParse, ts+4479, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 16 /* zErr */)))) (*Parse)(unsafe.Pointer(pParse)).Frc = rc } Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 16 /* zErr */))) @@ -174138,7 +175310,7 @@ func Xsqlite3VtabCallConnect(tls *libc.TLS, pParse uintptr, pTab uintptr) int32 // Grow the db->aVTrans[] array so that there is room for at least one // more v-table. Return SQLITE_NOMEM if a malloc fails, or SQLITE_OK otherwise. -func growVTrans(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146250:12: */ +func growVTrans(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147886:12: */ var ARRAY_INCR int32 = 5 // Grow the sqlite3.aVTrans array if required @@ -174158,7 +175330,7 @@ func growVTrans(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamati // Add the virtual table pVTab to the array sqlite3.aVTrans[]. Space should // have already been reserved using growVTrans(). -func addToVTrans(tls *libc.TLS, db uintptr, pVTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146273:13: */ +func addToVTrans(tls *libc.TLS, db uintptr, pVTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147909:13: */ // Add pVtab to the end of sqlite3.aVTrans *(*uintptr)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaVTrans + uintptr(libc.PostIncInt32(&(*Sqlite3)(unsafe.Pointer(db)).FnVTrans, 1))*8)) = pVTab Xsqlite3VtabLock(tls, pVTab) @@ -174170,7 +175342,7 @@ func addToVTrans(tls *libc.TLS, db uintptr, pVTab uintptr) { /* testdata/sqlite- // If an error occurs, *pzErr is set to point to an English language // description of the error and an SQLITE_XXX error code is returned. // In this case the caller must call sqlite3DbFree(db, ) on *pzErr. -func Xsqlite3VtabCallCreate(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146287:20: */ +func Xsqlite3VtabCallCreate(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147923:20: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -174189,7 +175361,7 @@ func Xsqlite3VtabCallCreate(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr, // invoke it now. If the module has not been registered, return an // error. Otherwise, do nothing. if pMod == uintptr(0) || (*Sqlite3_module)(unsafe.Pointer((*Module)(unsafe.Pointer(pMod)).FpModule)).FxCreate == uintptr(0) || (*Sqlite3_module)(unsafe.Pointer((*Module)(unsafe.Pointer(pMod)).FpModule)).FxDestroy == uintptr(0) { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+22724, libc.VaList(bp, zMod)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+22664, libc.VaList(bp, zMod)) rc = SQLITE_ERROR } else { rc = vtabCallConstructor(tls, db, pTab, pMod, (*Sqlite3_module)(unsafe.Pointer((*Module)(unsafe.Pointer(pMod)).FpModule)).FxCreate, pzErr) @@ -174210,7 +175382,7 @@ func Xsqlite3VtabCallCreate(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr, // This function is used to set the schema of a virtual table. It is only // valid to call this function from within the xCreate() or xConnect() of a // virtual table module. -func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146328:16: */ +func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:147964:16: */ bp := tls.Alloc(416) defer tls.Free(416) @@ -174226,7 +175398,7 @@ func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int3 if !(pCtx != 0) || (*VtabCtx)(unsafe.Pointer(pCtx)).FbDeclared != 0 { Xsqlite3Error(tls, db, SQLITE_MISUSE) Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) - return Xsqlite3MisuseError(tls, 146345) + return Xsqlite3MisuseError(tls, 147981) } pTab = (*VtabCtx)(unsafe.Pointer(pCtx)).FpTab @@ -174275,7 +175447,7 @@ func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int3 Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, func() uintptr { if (*Parse)(unsafe.Pointer(bp+8)).FzErrMsg != 0 { - return ts + 4444 /* "%s" */ + return ts + 4479 /* "%s" */ } return uintptr(0) }(), libc.VaList(bp, (*Parse)(unsafe.Pointer(bp+8 /* &sParse */)).FzErrMsg)) @@ -174301,7 +175473,7 @@ func Xsqlite3_declare_vtab(tls *libc.TLS, db uintptr, zCreateTable uintptr) int3 // when a DROP TABLE is mentioned. // // This call is a no-op if zTab is not a virtual table. -func Xsqlite3VtabCallDestroy(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146422:20: */ +func Xsqlite3VtabCallDestroy(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148058:20: */ var rc int32 = SQLITE_OK var pTab uintptr @@ -174346,7 +175518,7 @@ func Xsqlite3VtabCallDestroy(tls *libc.TLS, db uintptr, iDb int32, zTab uintptr) // the offset of the method to call in the sqlite3_module structure. // // The array is cleared after invoking the callbacks. -func callFinaliser(tls *libc.TLS, db uintptr, offset int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146466:13: */ +func callFinaliser(tls *libc.TLS, db uintptr, offset int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148102:13: */ var i int32 if (*Sqlite3)(unsafe.Pointer(db)).FaVTrans != 0 { var aVTrans uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaVTrans @@ -174376,7 +175548,7 @@ func callFinaliser(tls *libc.TLS, db uintptr, offset int32) { /* testdata/sqlite // SQLITE_OK if all xSync operations are successful. // // If an error message is available, leave it in p->zErrMsg. -func Xsqlite3VtabSync(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146494:20: */ +func Xsqlite3VtabSync(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148130:20: */ var i int32 var rc int32 = SQLITE_OK var aVTrans uintptr = (*Sqlite3)(unsafe.Pointer(db)).FaVTrans @@ -174398,14 +175570,14 @@ func Xsqlite3VtabSync(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/ // Invoke the xRollback method of all virtual tables in the // sqlite3.aVTrans array. Then clear the array itself. -func Xsqlite3VtabRollback(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146516:20: */ +func Xsqlite3VtabRollback(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148152:20: */ callFinaliser(tls, db, int32(uintptr(0)+136)) return SQLITE_OK } // Invoke the xCommit method of all virtual tables in the // sqlite3.aVTrans array. Then clear the array itself. -func Xsqlite3VtabCommit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146525:20: */ +func Xsqlite3VtabCommit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148161:20: */ callFinaliser(tls, db, int32(uintptr(0)+128)) return SQLITE_OK } @@ -174416,7 +175588,7 @@ func Xsqlite3VtabCommit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-am // // If the xBegin call is successful, place the sqlite3_vtab pointer // in the sqlite3.aVTrans array. -func Xsqlite3VtabBegin(tls *libc.TLS, db uintptr, pVTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146538:20: */ +func Xsqlite3VtabBegin(tls *libc.TLS, db uintptr, pVTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148174:20: */ var rc int32 = SQLITE_OK var pModule uintptr @@ -174477,7 +175649,7 @@ func Xsqlite3VtabBegin(tls *libc.TLS, db uintptr, pVTab uintptr) int32 { /* test // processing is abandoned and the error returned to the caller of this // function immediately. If all calls to virtual table methods are successful, // SQLITE_OK is returned. -func Xsqlite3VtabSavepoint(tls *libc.TLS, db uintptr, op int32, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146598:20: */ +func Xsqlite3VtabSavepoint(tls *libc.TLS, db uintptr, op int32, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148234:20: */ var rc int32 = SQLITE_OK if (*Sqlite3)(unsafe.Pointer(db)).FaVTrans != 0 { @@ -174525,7 +175697,7 @@ func Xsqlite3VtabSavepoint(tls *libc.TLS, db uintptr, op int32, iSavepoint int32 // Return either the pDef argument (indicating no change) or a // new FuncDef structure that is marked as ephemeral using the // SQLITE_FUNC_EPHEM flag. -func Xsqlite3VtabOverloadFunction(tls *libc.TLS, db uintptr, pDef uintptr, nArg int32, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146646:24: */ +func Xsqlite3VtabOverloadFunction(tls *libc.TLS, db uintptr, pDef uintptr, nArg int32, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148282:24: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -174592,7 +175764,7 @@ func Xsqlite3VtabOverloadFunction(tls *libc.TLS, db uintptr, pDef uintptr, nArg // array so that an OP_VBegin will get generated for it. Add pTab to the // array if it is missing. If pTab is already in the array, this routine // is a no-op. -func Xsqlite3VtabMakeWritable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146716:21: */ +func Xsqlite3VtabMakeWritable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148352:21: */ var pToplevel uintptr = func() uintptr { if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 { return (*Parse)(unsafe.Pointer(pParse)).FpToplevel @@ -174631,7 +175803,7 @@ func Xsqlite3VtabMakeWritable(tls *libc.TLS, pParse uintptr, pTab uintptr) { /* // // Any virtual table module for which xConnect and xCreate are the same // method can have an eponymous virtual table instance. -func Xsqlite3VtabEponymousTableInit(tls *libc.TLS, pParse uintptr, pMod uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146750:20: */ +func Xsqlite3VtabEponymousTableInit(tls *libc.TLS, pParse uintptr, pMod uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148386:20: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -174667,7 +175839,7 @@ func Xsqlite3VtabEponymousTableInit(tls *libc.TLS, pParse uintptr, pMod uintptr) addModuleArgument(tls, pParse, pTab, Xsqlite3DbStrDup(tls, db, (*Table)(unsafe.Pointer(pTab)).FzName)) rc = vtabCallConstructor(tls, db, pTab, pMod, (*Sqlite3_module)(unsafe.Pointer(pModule)).FxConnect, bp+8) if rc != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+4444, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */)))) + Xsqlite3ErrorMsg(tls, pParse, ts+4479, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */)))) Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */))) Xsqlite3VtabEponymousTableClear(tls, db, pMod) } @@ -174676,7 +175848,7 @@ func Xsqlite3VtabEponymousTableInit(tls *libc.TLS, pParse uintptr, pMod uintptr) // Erase the eponymous virtual table instance associated with // virtual table module pMod, if it exists. -func Xsqlite3VtabEponymousTableClear(tls *libc.TLS, db uintptr, pMod uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146788:21: */ +func Xsqlite3VtabEponymousTableClear(tls *libc.TLS, db uintptr, pMod uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148424:21: */ var pTab uintptr = (*Module)(unsafe.Pointer(pMod)).FpEpoTab if pTab != uintptr(0) { // Mark the table as Ephemeral prior to deleting it, so that the @@ -174693,19 +175865,19 @@ func Xsqlite3VtabEponymousTableClear(tls *libc.TLS, db uintptr, pMod uintptr) { // // The results of this routine are undefined unless it is called from // within an xUpdate method. -func Xsqlite3_vtab_on_conflict(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146807:16: */ +func Xsqlite3_vtab_on_conflict(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148443:16: */ return int32(aMap[int32((*Sqlite3)(unsafe.Pointer(db)).FvtabOnConflict)-1]) } var aMap = [5]uint8{ uint8(SQLITE_ROLLBACK), uint8(SQLITE_ABORT), uint8(SQLITE_FAIL), uint8(SQLITE_IGNORE), uint8(SQLITE_REPLACE), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146808:30 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148444:30 */ // Call from within the xCreate() or xConnect() methods to provide // the SQLite core with additional information about the behavior // of the virtual table being implemented. -func Xsqlite3_vtab_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146825:16: */ +func Xsqlite3_vtab_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148461:16: */ var ap Va_list _ = ap var rc int32 = SQLITE_OK @@ -174714,7 +175886,7 @@ func Xsqlite3_vtab_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) p = (*Sqlite3)(unsafe.Pointer(db)).FpVtabCtx if !(p != 0) { - rc = Xsqlite3MisuseError(tls, 146836) + rc = Xsqlite3MisuseError(tls, 148472) } else { ap = va @@ -174742,7 +175914,7 @@ func Xsqlite3_vtab_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 fallthrough default: { - rc = Xsqlite3MisuseError(tls, 146854) + rc = Xsqlite3MisuseError(tls, 148490) break } @@ -174806,7 +175978,7 @@ type WhereClause1 = struct { FnBase int32 Fa uintptr FaStatic [8]WhereTerm -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14669:9 */ //************* End of vtab.c *********************************************** //************* Begin file wherecode.c ************************************** @@ -174846,23 +176018,23 @@ type WhereClause1 = struct { // a separate source file for easier editing. // Forward references -type WhereClause = WhereClause1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146914:28 */ +type WhereClause = WhereClause1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148550:28 */ type WhereMaskSet1 = struct { FbVarSelect int32 Fn int32 Fix [64]int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14669:9 */ -type WhereMaskSet = WhereMaskSet1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146915:29 */ +type WhereMaskSet = WhereMaskSet1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148551:29 */ type WhereOrInfo1 = struct { Fwc WhereClause Findexable Bitmask -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146916:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148552:9 */ -type WhereOrInfo = WhereOrInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146916:28 */ -type WhereAndInfo1 = struct{ Fwc WhereClause } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146917:9 */ +type WhereOrInfo = WhereOrInfo1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148552:28 */ +type WhereAndInfo1 = struct{ Fwc WhereClause } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148553:9 */ -type WhereAndInfo = WhereAndInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146917:29 */ +type WhereAndInfo = WhereAndInfo1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148553:29 */ type WhereLevel1 = struct { FiLeftJoin int32 FiTabCur int32 @@ -174876,6 +176048,7 @@ type WhereLevel1 = struct { FregBignull int32 FaddrBignull int32 FregFilter int32 + FpRJ uintptr FiFrom U8 Fop U8 Fp3 U8 @@ -174892,9 +176065,9 @@ type WhereLevel1 = struct { } FpWLoop uintptr FnotReady Bitmask -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14669:9 */ -type WhereLevel = WhereLevel1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146918:27 */ +type WhereLevel = WhereLevel1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148554:27 */ type WhereLoop1 = struct { Fprereq Bitmask FmaskSelf Bitmask @@ -174921,9 +176094,9 @@ type WhereLoop1 = struct { FaLTerm uintptr FpNextLoop uintptr FaLTermSpace [3]uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14669:9 */ -type WhereLoop = WhereLoop1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146919:26 */ +type WhereLoop = WhereLoop1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148555:26 */ type WherePath1 = struct { FmaskLoop Bitmask FrevLoop Bitmask @@ -174933,9 +176106,9 @@ type WherePath1 = struct { FisOrdered I8 F__ccgo_pad1 [1]byte FaLoop uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146920:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148556:9 */ -type WherePath = WherePath1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146920:26 */ +type WherePath = WherePath1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148556:26 */ type WhereTerm1 = struct { FpExpr uintptr FpWC uintptr @@ -174955,9 +176128,9 @@ type WhereTerm1 = struct { } FprereqRight Bitmask FprereqAll Bitmask -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14669:9 */ -type WhereTerm = WhereTerm1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146921:26 */ +type WhereTerm = WhereTerm1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148557:26 */ type WhereLoopBuilder1 = struct { FpWInfo uintptr FpWC uintptr @@ -174970,9 +176143,9 @@ type WhereLoopBuilder1 = struct { F__ccgo_pad1 [2]byte FiPlanLimit uint32 F__ccgo_pad2 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146922:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148558:9 */ -type WhereLoopBuilder = WhereLoopBuilder1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146922:33 */ +type WhereLoopBuilder = WhereLoopBuilder1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148558:33 */ type WhereScan1 = struct { FpOrigWC uintptr FpWC uintptr @@ -174987,24 +176160,39 @@ type WhereScan1 = struct { FaiCur [11]int32 FaiColumn [11]I16 F__ccgo_pad2 [2]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146923:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148559:9 */ -type WhereScan = WhereScan1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146923:26 */ +type WhereScan = WhereScan1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148559:26 */ type WhereOrCost1 = struct { Fprereq Bitmask FrRun LogEst FnOut LogEst F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146922:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148558:9 */ -type WhereOrCost = WhereOrCost1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146924:28 */ +type WhereOrCost = WhereOrCost1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148560:28 */ type WhereOrSet1 = struct { Fn U16 F__ccgo_pad1 [6]byte Fa [3]WhereOrCost -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146922:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148558:9 */ + +type WhereOrSet = WhereOrSet1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148561:27 */ +type WhereMemBlock1 = struct { + FpNext uintptr + Fsz U64 +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14669:9 */ + +type WhereMemBlock = WhereMemBlock1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148562:30 */ +type WhereRightJoin1 = struct { + FiMatch int32 + FregBloom int32 + FregReturn int32 + FaddrSubrtn int32 + FendSubrtn int32 +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14669:9 */ -type WhereOrSet = WhereOrSet1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146925:27 */ +type WhereRightJoin = WhereRightJoin1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148563:31 */ // This object contains information needed to implement a single nested // loop in WHERE clause. @@ -175026,7 +176214,7 @@ type InLoop = struct { FnPrefix int32 FeEndLoopOp U8 F__ccgo_pad1 [3]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:146965:7 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148624:7 */ // Allowed values for WhereLoopBuider.bldFlags @@ -175052,7 +176240,7 @@ type WhereExprMod1 = struct { FpNext uintptr FpExpr uintptr Forig Expr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14626:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14669:9 */ // Allowed values for WhereLoopBuider.bldFlags @@ -175074,7 +176262,7 @@ type WhereExprMod1 = struct { // of an index rather than an expression or a virtual column. All // such transformations need to be undone at the end of WHERE clause // processing. -type WhereExprMod = WhereExprMod1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147327:29 */ +type WhereExprMod = WhereExprMod1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148986:29 */ // Bitmasks for the operators on WhereTerm objects. These are all // operators that are of interest to the query planner. An @@ -175096,13 +176284,13 @@ type WhereExprMod = WhereExprMod1 /* testdata/sqlite-amalgamation-3380500/sqlite //************* Continuing where we left off in wherecode.c ***************** // Return the name of the i-th column of the pIdx index. -func explainIndexColumnName(tls *libc.TLS, pIdx uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147521:19: */ +func explainIndexColumnName(tls *libc.TLS, pIdx uintptr, i int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:149189:19: */ i = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(i)*2))) if i == -2 { - return ts + 22743 /* "<expr>" */ + return ts + 22683 /* "<expr>" */ } if i == -1 { - return ts + 17532 /* "rowid" */ + return ts + 17562 /* "rowid" */ } return (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol + uintptr(i)*24)).FzCnName } @@ -175113,39 +176301,39 @@ func explainIndexColumnName(tls *libc.TLS, pIdx uintptr, i int32) uintptr { /* t // at a time. This routine adds a new term to the end of the expression. // Terms are separated by AND so add the "AND" text for second and subsequent // terms only. -func explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32, iTerm int32, bAnd int32, zOp uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147536:13: */ +func explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32, iTerm int32, bAnd int32, zOp uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:149204:13: */ var i int32 if bAnd != 0 { - Xsqlite3_str_append(tls, pStr, ts+22750, 5) + Xsqlite3_str_append(tls, pStr, ts+22690, 5) } if nTerm > 1 { - Xsqlite3_str_append(tls, pStr, ts+22756, 1) + Xsqlite3_str_append(tls, pStr, ts+22696, 1) } for i = 0; i < nTerm; i++ { if i != 0 { - Xsqlite3_str_append(tls, pStr, ts+14056, 1) + Xsqlite3_str_append(tls, pStr, ts+14095, 1) } Xsqlite3_str_appendall(tls, pStr, explainIndexColumnName(tls, pIdx, iTerm+i)) } if nTerm > 1 { - Xsqlite3_str_append(tls, pStr, ts+6260, 1) + Xsqlite3_str_append(tls, pStr, ts+6295, 1) } Xsqlite3_str_append(tls, pStr, zOp, 1) if nTerm > 1 { - Xsqlite3_str_append(tls, pStr, ts+22756, 1) + Xsqlite3_str_append(tls, pStr, ts+22696, 1) } for i = 0; i < nTerm; i++ { if i != 0 { - Xsqlite3_str_append(tls, pStr, ts+14056, 1) + Xsqlite3_str_append(tls, pStr, ts+14095, 1) } - Xsqlite3_str_append(tls, pStr, ts+6311, 1) + Xsqlite3_str_append(tls, pStr, ts+6346, 1) } if nTerm > 1 { - Xsqlite3_str_append(tls, pStr, ts+6260, 1) + Xsqlite3_str_append(tls, pStr, ts+6295, 1) } } @@ -175155,13 +176343,13 @@ func explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32, i // // For example, if the query: // -// SELECT * FROM t1 WHERE a=1 AND b>2; +// SELECT * FROM t1 WHERE a=1 AND b>2; // // is run and there is an index on (a, b), then this function returns a // string similar to: // -// "a=? AND b>?" -func explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147580:13: */ +// "a=? AND b>?" +func explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:149248:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -175174,29 +176362,29 @@ func explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) { /* testdata if int32(nEq) == 0 && (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_BTM_LIMIT|WHERE_TOP_LIMIT) == U32(0) { return } - Xsqlite3_str_append(tls, pStr, ts+22758, 2) + Xsqlite3_str_append(tls, pStr, ts+22698, 2) for i = 0; i < int32(nEq); i++ { var z uintptr = explainIndexColumnName(tls, pIndex, i) if i != 0 { - Xsqlite3_str_append(tls, pStr, ts+22750, 5) + Xsqlite3_str_append(tls, pStr, ts+22690, 5) } Xsqlite3_str_appendf(tls, pStr, func() uintptr { if i >= int32(nSkip) { - return ts + 22761 /* "%s=?" */ + return ts + 22701 /* "%s=?" */ } - return ts + 22766 /* "ANY(%s)" */ + return ts + 22706 /* "ANY(%s)" */ }(), libc.VaList(bp, z)) } j = i if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_BTM_LIMIT) != 0 { - explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 2 /* &.nBtm */))), j, i, ts+22774) + explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 2 /* &.nBtm */))), j, i, ts+22714) i = 1 } if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_TOP_LIMIT) != 0 { - explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 4 /* &.nTop */))), j, i, ts+22776) + explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 4 /* &.nTop */))), j, i, ts+22716) } - Xsqlite3_str_append(tls, pStr, ts+6260, 1) + Xsqlite3_str_append(tls, pStr, ts+6295, 1) } // This function is a no-op unless currently processing an EXPLAIN QUERY PLAN @@ -175206,7 +176394,7 @@ func explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) { /* testdata // // If an OP_Explain opcode is added to the VM, its address is returned. // Otherwise, if no OP_Explain is coded, zero is returned. -func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr, pLevel uintptr, wctrlFlags U16) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147614:20: */ +func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr, pLevel uintptr, wctrlFlags U16) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:149282:20: */ bp := tls.Alloc(196) defer tls.Free(196) @@ -175217,7 +176405,7 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr } return pParse }())).Fexplain) == 2 { - var pItem uintptr = pTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112 + var pItem uintptr = pTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104 var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe // VM being constructed var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb // Database handle var isSearch int32 // True for a SEARCH. False for SCAN. @@ -175241,11 +176429,11 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr Xsqlite3StrAccumInit(tls, bp+64, db, bp+96, int32(unsafe.Sizeof([100]int8{})), SQLITE_MAX_LENGTH) (*StrAccum)(unsafe.Pointer(bp + 64 /* &str */)).FprintfFlags = U8(SQLITE_PRINTF_INTERNAL) - Xsqlite3_str_appendf(tls, bp+64, ts+22778, libc.VaList(bp, func() uintptr { + Xsqlite3_str_appendf(tls, bp+64, ts+22718, libc.VaList(bp, func() uintptr { if isSearch != 0 { - return ts + 22784 /* "SEARCH" */ + return ts + 22724 /* "SEARCH" */ } - return ts + 22791 /* "SCAN" */ + return ts + 22731 /* "SCAN" */ }(), pItem)) if flags&U32(WHERE_IPK|WHERE_VIRTUALTABLE) == U32(0) { var zFmt uintptr = uintptr(0) @@ -175255,30 +176443,30 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr if !((*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) && int32(*(*uint16)(unsafe.Pointer(pIdx + 100))&0x3>>0) == SQLITE_IDXTYPE_PRIMARYKEY { if isSearch != 0 { - zFmt = ts + 12213 /* "PRIMARY KEY" */ + zFmt = ts + 12252 /* "PRIMARY KEY" */ } } else if flags&U32(WHERE_PARTIALIDX) != 0 { - zFmt = ts + 22796 /* "AUTOMATIC PARTIA..." */ + zFmt = ts + 22736 /* "AUTOMATIC PARTIA..." */ } else if flags&U32(WHERE_AUTO_INDEX) != 0 { - zFmt = ts + 22829 /* "AUTOMATIC COVERI..." */ + zFmt = ts + 22769 /* "AUTOMATIC COVERI..." */ } else if flags&U32(WHERE_IDX_ONLY) != 0 { - zFmt = ts + 22854 /* "COVERING INDEX %..." */ + zFmt = ts + 22794 /* "COVERING INDEX %..." */ } else { - zFmt = ts + 22872 /* "INDEX %s" */ + zFmt = ts + 22812 /* "INDEX %s" */ } if zFmt != 0 { - Xsqlite3_str_append(tls, bp+64, ts+22881, 7) + Xsqlite3_str_append(tls, bp+64, ts+22821, 7) Xsqlite3_str_appendf(tls, bp+64, zFmt, libc.VaList(bp+16, (*Index)(unsafe.Pointer(pIdx)).FzName)) explainIndexRange(tls, bp+64, pLoop) } } else if flags&U32(WHERE_IPK) != U32(0) && flags&U32(WHERE_CONSTRAINT) != U32(0) { var cRangeOp int8 - var zRowid uintptr = ts + 17532 /* "rowid" */ - Xsqlite3_str_appendf(tls, bp+64, ts+22889, libc.VaList(bp+24, zRowid)) + var zRowid uintptr = ts + 17562 /* "rowid" */ + Xsqlite3_str_appendf(tls, bp+64, ts+22829, libc.VaList(bp+24, zRowid)) if flags&U32(WHERE_COLUMN_EQ|WHERE_COLUMN_IN) != 0 { cRangeOp = int8('=') } else if flags&U32(WHERE_BOTH_LIMIT) == U32(WHERE_BOTH_LIMIT) { - Xsqlite3_str_appendf(tls, bp+64, ts+22920, libc.VaList(bp+32, zRowid)) + Xsqlite3_str_appendf(tls, bp+64, ts+22860, libc.VaList(bp+32, zRowid)) cRangeOp = int8('<') } else if flags&U32(WHERE_BTM_LIMIT) != 0 { cRangeOp = int8('>') @@ -175286,15 +176474,18 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr cRangeOp = int8('<') } - Xsqlite3_str_appendf(tls, bp+64, ts+22930, libc.VaList(bp+40, int32(cRangeOp))) + Xsqlite3_str_appendf(tls, bp+64, ts+22870, libc.VaList(bp+40, int32(cRangeOp))) } else if flags&U32(WHERE_VIRTUALTABLE) != U32(0) { - Xsqlite3_str_appendf(tls, bp+64, ts+22935, + Xsqlite3_str_appendf(tls, bp+64, ts+22875, libc.VaList(bp+48, *(*int32)(unsafe.Pointer(pLoop + 24)), *(*uintptr)(unsafe.Pointer(pLoop + 24 + 16 /* &.idxStr */)))) } + if int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_LEFT != 0 { + Xsqlite3_str_appendf(tls, bp+64, ts+22902, 0) + } zMsg = Xsqlite3StrAccumFinish(tls, bp+64) ret = Xsqlite3VdbeAddOp4(tls, v, OP_Explain, Xsqlite3VdbeCurrentAddr(tls, v), - (*Parse)(unsafe.Pointer(pParse)).FaddrExplain, 0, zMsg, -7) + (*Parse)(unsafe.Pointer(pParse)).FaddrExplain, 0, zMsg, -6) } return ret } @@ -175307,12 +176498,12 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr // // If an OP_Explain opcode is added to the VM, its address is returned. // Otherwise, if no OP_Explain is coded, zero is returned. -func Xsqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintptr, pLevel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147726:20: */ +func Xsqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintptr, pLevel uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:149397:20: */ bp := tls.Alloc(156) defer tls.Free(156) var ret int32 = 0 - var pItem uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112 + var pItem uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104 var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe // VM being constructed var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb // Database handle var zMsg uintptr // Text to add to EQP output @@ -175325,28 +176516,28 @@ func Xsqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintp Xsqlite3StrAccumInit(tls, bp+24, db, bp+56, int32(unsafe.Sizeof([100]int8{})), SQLITE_MAX_LENGTH) (*StrAccum)(unsafe.Pointer(bp + 24 /* &str */)).FprintfFlags = U8(SQLITE_PRINTF_INTERNAL) - Xsqlite3_str_appendf(tls, bp+24, ts+22962, libc.VaList(bp, pItem)) + Xsqlite3_str_appendf(tls, bp+24, ts+22913, libc.VaList(bp, pItem)) pLoop = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IPK) != 0 { var pTab uintptr = (*SrcItem)(unsafe.Pointer(pItem)).FpTab if int32((*Table)(unsafe.Pointer(pTab)).FiPKey) >= 0 { - Xsqlite3_str_appendf(tls, bp+24, ts+22761, libc.VaList(bp+8, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr((*Table)(unsafe.Pointer(pTab)).FiPKey)*24)).FzCnName)) + Xsqlite3_str_appendf(tls, bp+24, ts+22701, libc.VaList(bp+8, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr((*Table)(unsafe.Pointer(pTab)).FiPKey)*24)).FzCnName)) } else { - Xsqlite3_str_appendf(tls, bp+24, ts+22983, 0) + Xsqlite3_str_appendf(tls, bp+24, ts+22934, 0) } } else { for i = int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnSkip); i < int32(*(*U16)(unsafe.Pointer(pLoop + 24 /* &.u */ /* &.btree */ /* &.nEq */))); i++ { var z uintptr = explainIndexColumnName(tls, *(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.pIndex */)), i) if i > int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnSkip) { - Xsqlite3_str_append(tls, bp+24, ts+22750, 5) + Xsqlite3_str_append(tls, bp+24, ts+22690, 5) } - Xsqlite3_str_appendf(tls, bp+24, ts+22761, libc.VaList(bp+16, z)) + Xsqlite3_str_appendf(tls, bp+24, ts+22701, libc.VaList(bp+16, z)) } } - Xsqlite3_str_append(tls, bp+24, ts+6260, 1) + Xsqlite3_str_append(tls, bp+24, ts+6295, 1) zMsg = Xsqlite3StrAccumFinish(tls, bp+24) ret = Xsqlite3VdbeAddOp4(tls, v, OP_Explain, Xsqlite3VdbeCurrentAddr(tls, v), - (*Parse)(unsafe.Pointer(pParse)).FaddrExplain, 0, zMsg, -7) + (*Parse)(unsafe.Pointer(pParse)).FaddrExplain, 0, zMsg, -6) return ret } @@ -175356,9 +176547,9 @@ func Xsqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintp // // Consider the term t2.z='ok' in the following queries: // -// (1) SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.x WHERE t2.z='ok' -// (2) SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.x AND t2.z='ok' -// (3) SELECT * FROM t1, t2 WHERE t1.a=t2.x AND t2.z='ok' +// (1) SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.x WHERE t2.z='ok' +// (2) SELECT * FROM t1 LEFT JOIN t2 ON t1.a=t2.x AND t2.z='ok' +// (3) SELECT * FROM t1, t2 WHERE t1.a=t2.x AND t2.z='ok' // // The t2.z='ok' is disabled in the in (2) because it originates // in the ON clause. The term is disabled in (3) because it is not part @@ -175376,9 +176567,9 @@ func Xsqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintp // automatically disabled. In this way, terms get disabled if derived // virtual terms are tested first. For example: // -// x GLOB 'abc*' AND x>='abc' AND x<'acd' -// \___________/ \______/ \_____/ -// parent child1 child2 +// x GLOB 'abc*' AND x>='abc' AND x<'acd' +// \___________/ \______/ \_____/ +// parent child1 child2 // // Only the parent term was in the original WHERE clause. The child1 // and child2 terms were added by the LIKE optimization. If both of @@ -175390,11 +176581,11 @@ func Xsqlite3WhereExplainBloomFilter(tls *libc.TLS, pParse uintptr, pWInfo uintp // The TERM_LIKECOND marking indicates that the term should be coded inside // a conditional such that is only evaluated on the second pass of a // LIKE-optimization loop, when scanning BLOBs instead of strings. -func disableTerm(tls *libc.TLS, pLevel uintptr, pTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147839:13: */ +func disableTerm(tls *libc.TLS, pLevel uintptr, pTerm uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:149510:13: */ var nLoop int32 = 0 for int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_CODED == 0 && - ((*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin == 0 || (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_FromJoin) != U32(0)) && + ((*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin == 0 || (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_OuterON) != U32(0)) && (*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady&(*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll == uint64(0) { if nLoop != 0 && int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_LIKE != 0 { *(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_LIKECOND) @@ -175423,7 +176614,7 @@ func disableTerm(tls *libc.TLS, pLevel uintptr, pTerm uintptr) { /* testdata/sql // // This routine makes its own copy of zAff so that the caller is free // to modify zAff after this routine returns. -func codeApplyAffinity(tls *libc.TLS, pParse uintptr, base int32, n int32, zAff uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147877:13: */ +func codeApplyAffinity(tls *libc.TLS, pParse uintptr, base int32, n int32, zAff uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:149548:13: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe if zAff == uintptr(0) { @@ -175454,9 +176645,9 @@ func codeApplyAffinity(tls *libc.TLS, pParse uintptr, base int32, n int32, zAff // to the pRight values. This function modifies characters within the // affinity string to SQLITE_AFF_BLOB if either: // -// * the comparison will be performed with no affinity, or -// * the affinity change in zAff is guaranteed not to change the value. -func updateRangeAffinityStr(tls *libc.TLS, pRight uintptr, n int32, zAff uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147914:13: */ +// - the comparison will be performed with no affinity, or +// - the affinity change in zAff is guaranteed not to change the value. +func updateRangeAffinityStr(tls *libc.TLS, pRight uintptr, n int32, zAff uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:149585:13: */ var i int32 for i = 0; i < n; i++ { var p uintptr = Xsqlite3VectorFieldSubexpr(tls, pRight, i) @@ -175480,21 +176671,21 @@ func updateRangeAffinityStr(tls *libc.TLS, pRight uintptr, n int32, zAff uintptr // // Example: // -// CREATE TABLE t1(a,b,c,d,e,f); -// CREATE INDEX t1x1 ON t1(e,c); -// SELECT * FROM t1 WHERE (a,b,c,d,e) IN (SELECT v,w,x,y,z FROM t2) -// \_______________________________________/ -// The pX expression +// CREATE TABLE t1(a,b,c,d,e,f); +// CREATE INDEX t1x1 ON t1(e,c); +// SELECT * FROM t1 WHERE (a,b,c,d,e) IN (SELECT v,w,x,y,z FROM t2) +// \_______________________________________/ +// The pX expression // // Since only columns e and c can be used with the index, in that order, // the modified IN expression that is returned will be: // -// (e,c) IN (SELECT z,x FROM t2) +// (e,c) IN (SELECT z,x FROM t2) // // The reduced pX is different from the original (obviously) and thus is // only used for indexing, to improve performance. The original unaltered // IN expression must also be run on each output row for correctness. -func removeUnindexableInClauseTerms(tls *libc.TLS, pParse uintptr, iEq int32, pLoop uintptr, pX uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147960:13: */ +func removeUnindexableInClauseTerms(tls *libc.TLS, pParse uintptr, iEq int32, pLoop uintptr, pX uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:149631:13: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var pNew uintptr pNew = Xsqlite3ExprDup(tls, db, pX, 0) @@ -175569,7 +176760,7 @@ func removeUnindexableInClauseTerms(tls *libc.TLS, pParse uintptr, iEq int32, pL // For a constraint of the form X=expr, the expression is evaluated in // straight-line code. For constraints of the form X IN (...) // this routine sets up a loop that will iterate over all values of X. -func codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintptr, iEq int32, bRev int32, iTarget int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148049:12: */ +func codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintptr, iEq int32, bRev int32, iTarget int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:149720:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -175618,16 +176809,21 @@ func codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintp if !((*Expr)(unsafe.Pointer(pX)).Fflags&U32(EP_xIsSelect) != U32(0)) || (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pX + 32)))).FpEList)).FnExpr == 1 { eType = Xsqlite3FindInIndex(tls, pParse, pX, uint32(IN_INDEX_LOOP), uintptr(0), uintptr(0), bp) } else { - var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb - pX = removeUnindexableInClauseTerms(tls, pParse, iEq, pLoop, pX) - - if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) { + var pExpr uintptr = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr + if (*Expr)(unsafe.Pointer(pExpr)).FiTable == 0 || !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Subrtn) != U32(0)) { + var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb + pX = removeUnindexableInClauseTerms(tls, pParse, iEq, pLoop, pX) + if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) { + aiMap = Xsqlite3DbMallocZero(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, uint64(unsafe.Sizeof(int32(0)))*uint64(nEq)) + eType = Xsqlite3FindInIndex(tls, pParse, pX, uint32(IN_INDEX_LOOP), uintptr(0), aiMap, bp) + (*Expr)(unsafe.Pointer(pExpr)).FiTable = *(*int32)(unsafe.Pointer(bp /* iTab */)) + } + Xsqlite3ExprDelete(tls, db, pX) + } else { aiMap = Xsqlite3DbMallocZero(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, uint64(unsafe.Sizeof(int32(0)))*uint64(nEq)) eType = Xsqlite3FindInIndex(tls, pParse, pX, uint32(IN_INDEX_LOOP), uintptr(0), aiMap, bp) - (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FiTable = *(*int32)(unsafe.Pointer(bp /* iTab */)) } - Xsqlite3ExprDelete(tls, db, pX) - pX = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr + pX = pExpr } if eType == IN_INDEX_INDEX_DESC { @@ -175642,18 +176838,19 @@ func codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintp }(), *(*int32)(unsafe.Pointer(bp /* iTab */)), 0) *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_IN_ABLE) - if *(*int32)(unsafe.Pointer(pLevel + 64)) == 0 { + if *(*int32)(unsafe.Pointer(pLevel + 72)) == 0 { (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrNxt = Xsqlite3VdbeMakeLabel(tls, pParse) } if iEq > 0 && (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_SEEKSCAN) == U32(0) { *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_IN_EARLYOUT) } - i = *(*int32)(unsafe.Pointer(pLevel + 64)) - *(*int32)(unsafe.Pointer(pLevel + 64)) += nEq - *(*uintptr)(unsafe.Pointer(pLevel + 64 + 8 /* &.aInLoop */)) = Xsqlite3DbReallocOrFree(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(pLevel + 64 + 8 /* &.aInLoop */)), - uint64(unsafe.Sizeof(InLoop{}))*uint64(*(*int32)(unsafe.Pointer(pLevel + 64)))) - pIn = *(*uintptr)(unsafe.Pointer(pLevel + 64 + 8 /* &.aInLoop */)) + i = *(*int32)(unsafe.Pointer(pLevel + 72)) + *(*int32)(unsafe.Pointer(pLevel + 72)) += nEq + *(*uintptr)(unsafe.Pointer(pLevel + 72 + 8 /* &.aInLoop */)) = Xsqlite3WhereRealloc(tls, (*WhereClause)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpWC)).FpWInfo, + *(*uintptr)(unsafe.Pointer(pLevel + 72 + 8 /* &.aInLoop */)), + uint64(unsafe.Sizeof(InLoop{}))*uint64(*(*int32)(unsafe.Pointer(pLevel + 72)))) + pIn = *(*uintptr)(unsafe.Pointer(pLevel + 72 + 8 /* &.aInLoop */)) if pIn != 0 { var iMap int32 = 0 // Index in aiMap[] pIn += 20 * uintptr(i) @@ -175698,7 +176895,7 @@ func codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintp Xsqlite3VdbeAddOp3(tls, v, OP_SeekHit, (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur, 0, iEq) } } else { - *(*int32)(unsafe.Pointer(pLevel + 64)) = 0 + *(*int32)(unsafe.Pointer(pLevel + 72)) = 0 } Xsqlite3DbFree(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, aiMap) } @@ -175754,15 +176951,15 @@ func codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintp // with equality constraints that use BLOB or NONE affinity are set to // SQLITE_AFF_BLOB. This is to deal with SQL such as the following: // -// CREATE TABLE t1(a TEXT PRIMARY KEY, b); -// SELECT ... FROM t1 AS t2, t1 WHERE t1.a = t2.b; +// CREATE TABLE t1(a TEXT PRIMARY KEY, b); +// SELECT ... FROM t1 AS t2, t1 WHERE t1.a = t2.b; // // In the example above, the index on t1(a) has TEXT affinity. But since // the right hand side of the equality constraint (t2.b) has BLOB/NONE affinity, // no conversion should be attempted before using a t2.b value as part of // a key to search the index. Hence the first byte in the returned affinity // string in this example would be set to SQLITE_AFF_BLOB. -func codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev int32, nExtraReg int32, pzAff uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148245:12: */ +func codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev int32, nExtraReg int32, pzAff uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:149922:12: */ var nEq U16 // The number of == or IN constraints to code var nSkip U16 // Number of left-most columns to skip var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe // The vm under construction @@ -175874,22 +177071,30 @@ func codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev in // // Normally, this is just: // -// OP_DeferredSeek $iCur $iRowid +// OP_DeferredSeek $iCur $iRowid +// +// Which causes a seek on $iCur to the row with rowid $iRowid. // // However, if the scan currently being coded is a branch of an OR-loop and -// the statement currently being coded is a SELECT, then P3 of OP_DeferredSeek -// is set to iIdxCur and P4 is set to point to an array of integers -// containing one entry for each column of the table cursor iCur is open -// on. For each table column, if the column is the i'th column of the -// index, then the corresponding array entry is set to (i+1). If the column -// does not appear in the index at all, the array entry is set to 0. -func codeDeferredSeek(tls *libc.TLS, pWInfo uintptr, pIdx uintptr, iCur int32, iIdxCur int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148623:13: */ +// the statement currently being coded is a SELECT, then additional information +// is added that might allow OP_Column to omit the seek and instead do its +// lookup on the index, thus avoiding an expensive seek operation. To +// enable this optimization, the P3 of OP_DeferredSeek is set to iIdxCur +// and P4 is set to an array of integers containing one entry for each column +// in the table. For each table column, if the column is the i'th +// column of the index, then the corresponding array entry is set to (i+1). +// If the column does not appear in the index at all, the array entry is set +// to 0. The OP_Column opcode can check this array to see if the column it +// wants is in the index and if it is, it will substitute the index cursor +// and column number and continue with those new values, rather than seeking +// the table cursor. +func codeDeferredSeek(tls *libc.TLS, pWInfo uintptr, pIdx uintptr, iCur int32, iIdxCur int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:150308:13: */ var pParse uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse // Parse context var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe // Vdbe to generate code within libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(1), 0, 0x1) Xsqlite3VdbeAddOp3(tls, v, OP_DeferredSeek, iIdxCur, 0, iCur) - if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_OR_SUBCLAUSE != 0 && + if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&(WHERE_OR_SUBCLAUSE|WHERE_RIGHT_JOIN) != 0 && (*Parse)(unsafe.Pointer(func() uintptr { if (*Parse)(unsafe.Pointer(pParse)).FpToplevel != 0 { return (*Parse)(unsafe.Pointer(pParse)).FpToplevel @@ -175912,7 +177117,7 @@ func codeDeferredSeek(tls *libc.TLS, pWInfo uintptr, pIdx uintptr, iCur int32, i *(*U32)(unsafe.Pointer(ai + uintptr(x2+1)*4)) = U32(i + 1) } } - Xsqlite3VdbeChangeP4(tls, v, -1, ai, -15) + Xsqlite3VdbeChangeP4(tls, v, -1, ai, -14) } } } @@ -175924,7 +177129,7 @@ func codeDeferredSeek(tls *libc.TLS, pWInfo uintptr, pIdx uintptr, iCur int32, i // If the expression is not a vector, then nReg must be passed 1. In // this case, generate code to evaluate the expression and leave the // result in register iReg. -func codeExprOrVector(tls *libc.TLS, pParse uintptr, p uintptr, iReg int32, nReg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148667:13: */ +func codeExprOrVector(tls *libc.TLS, pParse uintptr, p uintptr, iReg int32, nReg int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:150352:13: */ if p != 0 && Xsqlite3ExprIsVector(tls, p) != 0 { if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_xIsSelect) != U32(0) { @@ -175952,10 +177157,10 @@ func codeExprOrVector(tls *libc.TLS, pParse uintptr, p uintptr, iReg int32, nReg // An instance of the IdxExprTrans object carries information about a // mapping from an expression on table columns into a column in an index // down through the Walker. -type IdxExprTrans = IdxExprTrans1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148707:3 */ +type IdxExprTrans = IdxExprTrans1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:150392:3 */ // Preserve pExpr on the WhereETrans list of the WhereInfo. -func preserveExpr(tls *libc.TLS, pTrans uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148712:13: */ +func preserveExpr(tls *libc.TLS, pTrans uintptr, pExpr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:150397:13: */ var pNew uintptr pNew = Xsqlite3DbMallocRaw(tls, (*IdxExprTrans)(unsafe.Pointer(pTrans)).Fdb, uint64(unsafe.Sizeof(WhereExprMod{}))) if pNew == uintptr(0) { @@ -175972,7 +177177,7 @@ func preserveExpr(tls *libc.TLS, pTrans uintptr, pExpr uintptr) { /* testdata/sq // // If pExpr matches, then transform it into a reference to the index column // that contains the value of pExpr. -func whereIndexExprTransNode(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148728:12: */ +func whereIndexExprTransNode(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:150413:12: */ var pX uintptr = *(*uintptr)(unsafe.Pointer(p + 40)) if Xsqlite3ExprCompare(tls, uintptr(0), pExpr, (*IdxExprTrans)(unsafe.Pointer(pX)).FpIdxExpr, (*IdxExprTrans)(unsafe.Pointer(pX)).FiTabCur) == 0 { pExpr = Xsqlite3ExprSkipCollate(tls, pExpr) @@ -175993,7 +177198,7 @@ func whereIndexExprTransNode(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* // A walker node callback that translates a column reference to a table // into a corresponding column reference of an index. -func whereIndexExprTransColumn(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148751:12: */ +func whereIndexExprTransColumn(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:150435:12: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_COLUMN { var pX uintptr = *(*uintptr)(unsafe.Pointer(p + 40)) if (*Expr)(unsafe.Pointer(pExpr)).FiTable == (*IdxExprTrans)(unsafe.Pointer(pX)).FiTabCur && int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) == (*IdxExprTrans)(unsafe.Pointer(pX)).FiTabCol { @@ -176015,7 +177220,7 @@ func whereIndexExprTransColumn(tls *libc.TLS, p uintptr, pExpr uintptr) int32 { // 2019-10-24: Updated to also translate references to a VIRTUAL column in // the table into references to the corresponding (stored) column of the // index. -func whereIndexExprTrans(tls *libc.TLS, pIdx uintptr, iTabCur int32, iIdxCur int32, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148776:13: */ +func whereIndexExprTrans(tls *libc.TLS, pIdx uintptr, iTabCur int32, iIdxCur int32, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:150460:13: */ bp := tls.Alloc(88) defer tls.Free(88) @@ -176080,7 +177285,7 @@ func whereIndexExprTrans(tls *libc.TLS, pIdx uintptr, iTabCur int32, iIdxCur int // WHERE clause terms on the query, and if any of those terms must be // true because pTruth is true, then mark those WHERE clause terms as // coded. -func whereApplyPartialIndexConstraints(tls *libc.TLS, pTruth uintptr, iTabCur int32, pWC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148840:13: */ +func whereApplyPartialIndexConstraints(tls *libc.TLS, pTruth uintptr, iTabCur int32, pWC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:150524:13: */ var i int32 var pTerm uintptr for int32((*Expr)(unsafe.Pointer(pTruth)).Fop) == TK_AND { @@ -176126,12 +177331,12 @@ __3: // WhereLevel.regFilter set. If an inner-loop Bloom filter is checked, // then clear the WhereLevel.regFilter value to prevent the Bloom filter // from being checked a second time when the inner loop is evaluated. -func filterPullDown(tls *libc.TLS, pParse uintptr, pWInfo uintptr, iLevel int32, addrNxt int32, notReady Bitmask) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148876:29: */ +func filterPullDown(tls *libc.TLS, pParse uintptr, pWInfo uintptr, iLevel int32, addrNxt int32, notReady Bitmask) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:150560:29: */ bp := tls.Alloc(8) defer tls.Free(8) for libc.PreIncInt32(&iLevel, 1) < int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) { - var pLevel uintptr = pWInfo + 864 + uintptr(iLevel)*96 + var pLevel uintptr = pWInfo + 872 + uintptr(iLevel)*104 var pLoop uintptr = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop if (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter == 0 { continue @@ -176174,34 +177379,194 @@ func filterPullDown(tls *libc.TLS, pParse uintptr, pWInfo uintptr, iLevel int32, // Generate code for the start of the iLevel-th loop in the WHERE clause // implementation described by pWInfo. -func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWInfo uintptr, iLevel int32, pLevel uintptr, notReady Bitmask) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:148927:24: */ +func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWInfo uintptr, iLevel int32, pLevel uintptr, notReady Bitmask) Bitmask { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:150611:24: */ bp := tls.Alloc(96) defer tls.Free(96) var j int32 - var k int32 // Loop counters - var iCur int32 // The VDBE cursor for the table - var addrNxt int32 // Where to jump to continue with the next IN case - var bRev int32 // True if we need to scan in reverse order - var pLoop uintptr // The WhereLoop object being coded - var pWC uintptr // Decomposition of the entire WHERE clause - var pTerm uintptr // A WHERE clause term - var db uintptr // Database connection - var pTabItem uintptr // FROM clause term being coded - var addrBrk int32 // Jump here to break out of the loop - var addrHalt int32 // addrBrk for the outermost loop - var addrCont int32 // Jump here to continue with next cycle - var iRowidReg int32 = 0 // Rowid is stored in this register, if not zero - var iReleaseReg int32 = 0 // Temp register to free before returning - var pIdx uintptr = uintptr(0) // Index used by loop (if any) - var iLoop int32 // Iteration of constraint generator loop - - pWC = pWInfo + 112 + var k int32 // Loop counters + var iCur int32 // The VDBE cursor for the table + var addrNxt int32 // Where to jump to continue with the next IN case + var bRev int32 // True if we need to scan in reverse order + var pLoop uintptr // The WhereLoop object being coded + var pWC uintptr // Decomposition of the entire WHERE clause + var pTerm uintptr // A WHERE clause term + var db uintptr // Database connection + var pTabItem uintptr // FROM clause term being coded + var addrBrk int32 // Jump here to break out of the loop + var addrHalt int32 // addrBrk for the outermost loop + var addrCont int32 // Jump here to continue with next cycle + var iRowidReg int32 // Rowid is stored in this register, if not zero + var iReleaseReg int32 // Temp register to free before returning + var pIdx uintptr // Index used by loop (if any) + var iLoop int32 + var regYield int32 + var iTab int32 + var iCache int32 + var pRight uintptr + var iTarget int32 + var iFld int32 + var pLeft uintptr + var pCompare uintptr // The comparison operator + var pRight1 uintptr // RHS of the comparison + var pOp uintptr // Opcode to access the value of the IN constraint + var iIn int32 + // Case 1: The table is a virtual-table. Use the VFilter and VNext + // to access the data. + var iReg int32 // P3 Value for OP_VFilter + var addrNotFound int32 + var nConstraint int32 + var pX uintptr // The expression that defines the start bound + var r1 int32 + // var rTemp int32 at bp+12, 4 + // Registers for holding the start boundary + var op int32 // Cursor seek operation + + // The following constant maps TK_xx codes into corresponding + // seek opcodes. It depends on a particular ordering of TK_xx + // var aMoveOp [4]U8 at bp+8, 4 + + var pX1 uintptr + // Case 3: We have an inequality comparison against the ROWID field. + var testOp int32 + var start int32 + var memEndValue int32 + var pStart uintptr + var pEnd uintptr + var t uintptr + var t1 U8 + var t2 U8 + var pRight2 uintptr + var pRight3 uintptr + var pPk uintptr + var nEq U16 // Number of == or IN terms + var nBtm U16 // Length of BTM vector + var nTop U16 // Length of TOP vector + var regBase int32 // Base register holding constraint values + var pRangeStart uintptr // Inequality constraint at range start + var pRangeEnd uintptr // Inequality constraint at range end + var startEq int32 // True if range start uses ==, >= or <= + var endEq int32 // True if range end uses ==, >= or <= + var start_constraints int32 // Start of range is constrained + var nConstraint1 int32 // Number of constraint terms + var iIdxCur int32 // The VDBE cursor for the index + var nExtraReg int32 // Number of extra registers needed + var op1 int32 // Instruction opcode + // var zStartAff uintptr at bp+16, 8 + // Affinity for start of range constraint + var zEndAff uintptr // Affinity for end of range constraint + var bSeekPastNull U8 // True to seek past initial nulls + var bStopAtNull U8 // Add condition to terminate at NULLs + var omitTable int32 // True if we use the index only + var regBignull int32 // big-null flag register + var addrSeekScan int32 + var nNotReady int32 // The number of notReady tables + var origSrc uintptr + var pPk1 uintptr + var pExpr uintptr + var iTerm int32 + var iCol int32 + var pPk2 uintptr + var nPk int32 + var iPk int32 + var r int32 + var iSet int32 + var pSubLoop uintptr + var addrExplain int32 + _ = addrExplain + var pSubWInfo uintptr // Info for single OR-term scan + var pOrExpr uintptr // Current OR clause term + var pDelete uintptr // Local copy of OR clause term + var jmp1 int32 + var pOrTerm uintptr + // Case 5: Two or more separately indexed terms connected by OR + // + // Example: + // + // CREATE TABLE t1(a,b,c,d); + // CREATE INDEX i1 ON t1(a); + // CREATE INDEX i2 ON t1(b); + // CREATE INDEX i3 ON t1(c); + // + // SELECT * FROM t1 WHERE a=5 OR b=7 OR (c=11 AND d=13) + // + // In the example, there are three indexed terms connected by OR. + // The top of the loop looks like this: + // + // Null 1 # Zero the rowset in reg 1 + // + // Then, for each indexed term, the following. The arguments to + // RowSetTest are such that the rowid of the current row is inserted + // into the RowSet. If it is already present, control skips the + // Gosub opcode and jumps straight to the code generated by WhereEnd(). + // + // sqlite3WhereBegin(<term>) + // RowSetTest # Insert rowid into rowset + // Gosub 2 A + // sqlite3WhereEnd() + // + // Following the above, code to terminate the loop. Label A, the target + // of the Gosub above, jumps to the instruction right after the Goto. + // + // Null 1 # Zero the rowset in reg 1 + // Goto B # The loop is finished. + // + // A: <loop body> # Return data, whatever. + // + // Return 2 # Jump back to the Gosub + // + // B: <after the loop> + // + // Added 2014-05-26: If the table is a WITHOUT ROWID table, then + // use an ephemeral index instead of a RowSet to record the primary + // keys of the rows we have already seen. + // + var pOrWc uintptr // The OR-clause broken out into subterms + var pOrTab uintptr // Shortened table list or OR-clause generation + var pCov uintptr // Potential covering index (or NULL) + var iCovCur int32 // Cursor used for index scans (if any) + + var regReturn int32 // Register used with OP_Gosub + var regRowset int32 // Register for RowSet object + var regRowid int32 // Register holding rowid + var iLoopBody int32 // Start of loop body + var iRetInit int32 // Address of regReturn init + var untestedTerms int32 // Some terms not completely tested + var ii int32 // Loop counter + var pAndExpr uintptr // An ".. AND (...)" expression + var pTab uintptr + var m Bitmask + var pE uintptr + var skipLikeAddr int32 + var iNext int32 + var pE1 uintptr + // var sEAlt Expr at bp+24, 72 + + var pAlt uintptr + var iCol1 int32 + var iPk1 int32 + var pPk3 uintptr + var pTab1 uintptr + var nPk1 int32 + var r2 int32 + var jmp11 int32 + var pRJ uintptr + // Create a subroutine used to process all interior loops and code + // of the RIGHT JOIN. During normal operation, the subroutine will + // be in-line with the rest of the code. But at the end, a separate + // loop will run that invokes this subroutine for unmatched rows + // of pTab, with all tables to left begin set to NULL. + var pRJ1 uintptr + iRowidReg = 0 + iReleaseReg = 0 + pIdx = uintptr(0) // Iteration of constraint generator loop + + pWC = pWInfo + 120 db = (*Parse)(unsafe.Pointer(pParse)).Fdb pLoop = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop - pTabItem = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112 + pTabItem = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104 iCur = (*SrcItem)(unsafe.Pointer(pTabItem)).FiCursor - (*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady = notReady & ^Xsqlite3WhereGetMask(tls, pWInfo+600, iCur) + (*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady = notReady & ^Xsqlite3WhereGetMask(tls, pWInfo+608, iCur) bRev = int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FrevMask >> iLevel & uint64(1)) // Create labels for the "break" and "continue" instructions @@ -176220,996 +177585,1374 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI // initialize a memory cell that records if this table matches any // row of the left table of the join. - if int32((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom) > 0 && int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&JT_LEFT != 0 { - (*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) - Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, (*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin) - + if !(int32((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom) > 0 && int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&JT_LEFT != 0) { + goto __1 } + (*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) + Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, (*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin) + +__1: + ; // Compute a safe address to jump to if we discover that the table for // this loop is empty and can never contribute content. - for j = iLevel; j > 0 && (*WhereLevel)(unsafe.Pointer(pWInfo+864 /* &.a */ +uintptr(j)*96)).FiLeftJoin == 0; j-- { + j = iLevel +__2: + if !(j > 0) { + goto __4 + } + if !((*WhereLevel)(unsafe.Pointer(pWInfo+872+uintptr(j)*104)).FiLeftJoin != 0) { + goto __5 } - addrHalt = (*WhereLevel)(unsafe.Pointer(pWInfo + 864 + uintptr(j)*96)).FaddrBrk + goto __4 +__5: + ; + if !((*WhereLevel)(unsafe.Pointer(pWInfo+872+uintptr(j)*104)).FpRJ != 0) { + goto __6 + } + goto __4 +__6: + ; + goto __3 +__3: + j-- + goto __2 + goto __4 +__4: + ; + addrHalt = (*WhereLevel)(unsafe.Pointer(pWInfo + 872 + uintptr(j)*104)).FaddrBrk // Special case of a FROM clause subquery implemented as a co-routine - if uint32(int32(*(*uint16)(unsafe.Pointer(pTabItem + 60 + 4))&0x10>>4)) != 0 { - var regYield int32 = (*SrcItem)(unsafe.Pointer(pTabItem)).FregReturn - Xsqlite3VdbeAddOp3(tls, v, OP_InitCoroutine, regYield, 0, (*SrcItem)(unsafe.Pointer(pTabItem)).FaddrFillSub) - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = Xsqlite3VdbeAddOp2(tls, v, OP_Yield, regYield, addrBrk) - - (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Goto) - } else if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_VIRTUALTABLE) != U32(0) { - // Case 1: The table is a virtual-table. Use the VFilter and VNext - // to access the data. - var iReg int32 // P3 Value for OP_VFilter - var addrNotFound int32 - var nConstraint int32 = int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnLTerm) - - iReg = Xsqlite3GetTempRange(tls, pParse, nConstraint+2) - addrNotFound = (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBrk - for j = 0; j < nConstraint; j++ { - var iTarget int32 = iReg + j + 2 - pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(j)*8)) - if pTerm == uintptr(0) { - continue - } - if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IN != 0 { - if func() uint32 { - if j <= 31 { - return uint32(uint32(1)) << j - } - return uint32(0) - }()&*(*U32)(unsafe.Pointer(pLoop + 24 + 24)) != 0 { - var iTab int32 = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) - var iCache int32 = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) - Xsqlite3CodeRhsOfIN(tls, pParse, (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr, iTab) - Xsqlite3VdbeAddOp3(tls, v, OP_VInitIn, iTab, iTarget, iCache) - } else { - codeEqualityTerm(tls, pParse, pTerm, pLevel, j, bRev, iTarget) - addrNotFound = (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrNxt - } - } else { - var pRight uintptr = (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpRight - codeExprOrVector(tls, pParse, pRight, iTarget, 1) - if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeMatchOp) == SQLITE_INDEX_CONSTRAINT_OFFSET && - U32(int32(*(*uint8)(unsafe.Pointer(pLoop + 24 + 4))&0x2>>1)) != 0 { + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pTabItem + 60 + 4))&0x20>>5)) != 0) { + goto __7 + } + regYield = (*SrcItem)(unsafe.Pointer(pTabItem)).FregReturn + Xsqlite3VdbeAddOp3(tls, v, OP_InitCoroutine, regYield, 0, (*SrcItem)(unsafe.Pointer(pTabItem)).FaddrFillSub) + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = Xsqlite3VdbeAddOp2(tls, v, OP_Yield, regYield, addrBrk) - Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, (*Select)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpLimit)).FiOffset) + (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Goto) + goto __8 +__7: - } - } - } - Xsqlite3VdbeAddOp2(tls, v, OP_Integer, *(*int32)(unsafe.Pointer(pLoop + 24)), iReg) - Xsqlite3VdbeAddOp2(tls, v, OP_Integer, nConstraint, iReg+1) - Xsqlite3VdbeAddOp4(tls, v, OP_VFilter, iCur, addrNotFound, iReg, - *(*uintptr)(unsafe.Pointer(pLoop + 24 + 16 /* &.idxStr */)), - func() int32 { - if U32(int32(*(*uint8)(unsafe.Pointer(pLoop + 24 + 4))&0x1>>0)) != 0 { - return -7 - } - return -1 - }()) + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_VIRTUALTABLE) != U32(0)) { + goto __9 + } + nConstraint = int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnLTerm) - libc.SetBitFieldPtr8Uint32(pLoop+24+4, U32(0), 0, 0x1) - // An OOM inside of AddOp4(OP_VFilter) instruction above might have freed - // the u.vtab.idxStr. NULL it out to prevent a use-after-free - if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { - *(*uintptr)(unsafe.Pointer(pLoop + 24 + 16 /* &.idxStr */)) = uintptr(0) + iReg = Xsqlite3GetTempRange(tls, pParse, nConstraint+2) + addrNotFound = (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBrk + j = 0 +__11: + if !(j < nConstraint) { + goto __13 + } + iTarget = iReg + j + 2 + pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(j)*8)) + if !(pTerm == uintptr(0)) { + goto __14 + } + goto __12 +__14: + ; + if !(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IN != 0) { + goto __15 + } + if !(func() uint32 { + if j <= 31 { + return uint32(uint32(1)) << j } - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp1 = iCur - (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = func() uint8 { - if (*WhereInfo)(unsafe.Pointer(pWInfo)).FeOnePass != 0 { - return uint8(OP_Noop) + return uint32(0) + }()&*(*U32)(unsafe.Pointer(pLoop + 24 + 24)) != 0) { + goto __17 + } + iTab = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) + iCache = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) + Xsqlite3CodeRhsOfIN(tls, pParse, (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr, iTab) + Xsqlite3VdbeAddOp3(tls, v, OP_VInitIn, iTab, iTarget, iCache) + goto __18 +__17: + codeEqualityTerm(tls, pParse, pTerm, pLevel, j, bRev, iTarget) + addrNotFound = (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrNxt +__18: + ; + goto __16 +__15: + pRight = (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpRight + codeExprOrVector(tls, pParse, pRight, iTarget, 1) + if !(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeMatchOp) == SQLITE_INDEX_CONSTRAINT_OFFSET && + U32(int32(*(*uint8)(unsafe.Pointer(pLoop + 24 + 4))&0x2>>1)) != 0) { + goto __19 + } + + Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, (*Select)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpLimit)).FiOffset) + +__19: + ; +__16: + ; + goto __12 +__12: + j++ + goto __11 + goto __13 +__13: + ; + Xsqlite3VdbeAddOp2(tls, v, OP_Integer, *(*int32)(unsafe.Pointer(pLoop + 24)), iReg) + Xsqlite3VdbeAddOp2(tls, v, OP_Integer, nConstraint, iReg+1) + Xsqlite3VdbeAddOp4(tls, v, OP_VFilter, iCur, addrNotFound, iReg, + *(*uintptr)(unsafe.Pointer(pLoop + 24 + 16 /* &.idxStr */)), + func() int32 { + if U32(int32(*(*uint8)(unsafe.Pointer(pLoop + 24 + 4))&0x1>>0)) != 0 { + return -6 } - return uint8(OP_VNext) - }() - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = Xsqlite3VdbeCurrentAddr(tls, v) + return -1 + }()) - for j = 0; j < nConstraint; j++ { - pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(j)*8)) - if j < 16 && int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 8)))>>j&1 != 0 { - disableTerm(tls, pLevel, pTerm) - continue + libc.SetBitFieldPtr8Uint32(pLoop+24+4, U32(0), 0, 0x1) + // An OOM inside of AddOp4(OP_VFilter) instruction above might have freed + // the u.vtab.idxStr. NULL it out to prevent a use-after-free + if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { + goto __20 + } + *(*uintptr)(unsafe.Pointer(pLoop + 24 + 16 /* &.idxStr */)) = uintptr(0) +__20: + ; + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp1 = iCur + (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = func() uint8 { + if (*WhereInfo)(unsafe.Pointer(pWInfo)).FeOnePass != 0 { + return uint8(OP_Noop) + } + return uint8(OP_VNext) + }() + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = Xsqlite3VdbeCurrentAddr(tls, v) + + j = 0 +__21: + if !(j < nConstraint) { + goto __23 + } + pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(j)*8)) + if !(j < 16 && int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 8)))>>j&1 != 0) { + goto __24 + } + disableTerm(tls, pLevel, pTerm) + goto __22 +__24: + ; + if !(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IN != 0 && + func() uint32 { + if j <= 31 { + return uint32(uint32(1)) << j } - if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IN != 0 && - func() uint32 { - if j <= 31 { - return uint32(uint32(1)) << j - } - return uint32(0) - }()&*(*U32)(unsafe.Pointer(pLoop + 24 + 24)) == uint32(0) && - !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) { - var pCompare uintptr // The comparison operator - var pRight uintptr // RHS of the comparison - var pOp uintptr // Opcode to access the value of the IN constraint - var iIn int32 // IN loop corresponding to the j-th constraint - - // Reload the constraint value into reg[iReg+j+2]. The same value - // was loaded into the same register prior to the OP_VFilter, but - // the xFilter implementation might have changed the datatype or - // encoding of the value in the register, so it *must* be reloaded. - for iIn = 0; iIn < *(*int32)(unsafe.Pointer(pLevel + 64 /* &.u */ /* &.in */ /* &.nIn */)); iIn++ { - pOp = Xsqlite3VdbeGetOp(tls, v, *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pLevel + 64 + 8)) + uintptr(iIn)*20 + 4 /* &.addrInTop */))) - if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Column && (*VdbeOp)(unsafe.Pointer(pOp)).Fp3 == iReg+j+2 || - int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Rowid && (*VdbeOp)(unsafe.Pointer(pOp)).Fp2 == iReg+j+2 { - - Xsqlite3VdbeAddOp3(tls, v, int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode), (*VdbeOp)(unsafe.Pointer(pOp)).Fp1, (*VdbeOp)(unsafe.Pointer(pOp)).Fp2, (*VdbeOp)(unsafe.Pointer(pOp)).Fp3) - break - } - } + return uint32(0) + }()&*(*U32)(unsafe.Pointer(pLoop + 24 + 24)) == uint32(0) && + !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0)) { + goto __25 + } // IN loop corresponding to the j-th constraint - // Generate code that will continue to the next row if - // the IN constraint is not satisfied - pCompare = Xsqlite3PExpr(tls, pParse, TK_EQ, uintptr(0), uintptr(0)) - if !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) { - var iFld int32 = *(*int32)(unsafe.Pointer(pTerm + 32 + 4 /* &.iField */)) - var pLeft uintptr = (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft + // Reload the constraint value into reg[iReg+j+2]. The same value + // was loaded into the same register prior to the OP_VFilter, but + // the xFilter implementation might have changed the datatype or + // encoding of the value in the register, so it *must* be reloaded. + iIn = 0 +__26: + if !(iIn < *(*int32)(unsafe.Pointer(pLevel + 72))) { + goto __28 + } + pOp = Xsqlite3VdbeGetOp(tls, v, *(*int32)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pLevel + 72 + 8)) + uintptr(iIn)*20 + 4 /* &.addrInTop */))) + if !(int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Column && (*VdbeOp)(unsafe.Pointer(pOp)).Fp3 == iReg+j+2 || + int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Rowid && (*VdbeOp)(unsafe.Pointer(pOp)).Fp2 == iReg+j+2) { + goto __29 + } - if iFld > 0 { + Xsqlite3VdbeAddOp3(tls, v, int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode), (*VdbeOp)(unsafe.Pointer(pOp)).Fp1, (*VdbeOp)(unsafe.Pointer(pOp)).Fp2, (*VdbeOp)(unsafe.Pointer(pOp)).Fp3) + goto __28 +__29: + ; + goto __27 +__27: + iIn++ + goto __26 + goto __28 +__28: + ; - (*Expr)(unsafe.Pointer(pCompare)).FpLeft = (*ExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pLeft + 32)) + 8 + uintptr(iFld-1)*32)).FpExpr - } else { - (*Expr)(unsafe.Pointer(pCompare)).FpLeft = pLeft - } - (*Expr)(unsafe.Pointer(pCompare)).FpRight = libc.AssignUintptr(&pRight, Xsqlite3Expr(tls, db, TK_REGISTER, uintptr(0))) - if pRight != 0 { - (*Expr)(unsafe.Pointer(pRight)).FiTable = iReg + j + 2 - Xsqlite3ExprIfFalse(tls, - pParse, pCompare, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont, SQLITE_JUMPIFNULL) - } - (*Expr)(unsafe.Pointer(pCompare)).FpLeft = uintptr(0) - } - Xsqlite3ExprDelete(tls, db, pCompare) - } - } + // Generate code that will continue to the next row if + // the IN constraint is not satisfied + pCompare = Xsqlite3PExpr(tls, pParse, TK_EQ, uintptr(0), uintptr(0)) + if !!(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) { + goto __30 + } + iFld = *(*int32)(unsafe.Pointer(pTerm + 32 + 4 /* &.iField */)) + pLeft = (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft - // These registers need to be preserved in case there is an IN operator - // loop. So we could deallocate the registers here (and potentially - // reuse them later) if (pLoop->wsFlags & WHERE_IN_ABLE)==0. But it seems - // simpler and safer to simply not reuse the registers. - // - // sqlite3ReleaseTempRange(pParse, iReg, nConstraint+2); - } else if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IPK) != U32(0) && - (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_COLUMN_IN|WHERE_COLUMN_EQ) != U32(0) { - // Case 2: We can directly reference a single row using an - // equality comparison against the ROWID field. Or - // we reference multiple rows using a "rowid IN (...)" - // construct. - - pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm)) - - iReleaseReg = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) - iRowidReg = codeEqualityTerm(tls, pParse, pTerm, pLevel, 0, bRev, iReleaseReg) - if iRowidReg != iReleaseReg { - Xsqlite3ReleaseTempReg(tls, pParse, iReleaseReg) - } - addrNxt = (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrNxt - if (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter != 0 { - Xsqlite3VdbeAddOp4Int(tls, v, OP_Filter, (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter, addrNxt, - iRowidReg, 1) - - filterPullDown(tls, pParse, pWInfo, iLevel, addrNxt, notReady) - } - Xsqlite3VdbeAddOp3(tls, v, OP_SeekRowid, iCur, addrNxt, iRowidReg) - - (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Noop) - } else if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IPK) != U32(0) && - (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_COLUMN_RANGE) != U32(0) { - // Case 3: We have an inequality comparison against the ROWID field. - var testOp int32 = OP_Noop - var start int32 - var memEndValue int32 = 0 - var pStart uintptr - var pEnd uintptr + if !(iFld > 0) { + goto __31 + } - j = 0 - pStart = libc.AssignUintptr(&pEnd, uintptr(0)) - if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_BTM_LIMIT) != 0 { - pStart = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(libc.PostIncInt32(&j, 1))*8)) - } - if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_TOP_LIMIT) != 0 { - pEnd = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(libc.PostIncInt32(&j, 1))*8)) - } + (*Expr)(unsafe.Pointer(pCompare)).FpLeft = (*ExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pLeft + 32)) + 8 + uintptr(iFld-1)*32)).FpExpr + goto __32 +__31: + (*Expr)(unsafe.Pointer(pCompare)).FpLeft = pLeft +__32: + ; + (*Expr)(unsafe.Pointer(pCompare)).FpRight = libc.AssignUintptr(&pRight1, Xsqlite3Expr(tls, db, TK_REGISTER, uintptr(0))) + if !(pRight1 != 0) { + goto __33 + } + (*Expr)(unsafe.Pointer(pRight1)).FiTable = iReg + j + 2 + Xsqlite3ExprIfFalse(tls, + pParse, pCompare, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont, SQLITE_JUMPIFNULL) +__33: + ; + (*Expr)(unsafe.Pointer(pCompare)).FpLeft = uintptr(0) +__30: + ; + Xsqlite3ExprDelete(tls, db, pCompare) +__25: + ; + goto __22 +__22: + j++ + goto __21 + goto __23 +__23: + ; - if bRev != 0 { - pTerm = pStart - pStart = pEnd - pEnd = pTerm - } + // These registers need to be preserved in case there is an IN operator + // loop. So we could deallocate the registers here (and potentially + // reuse them later) if (pLoop->wsFlags & WHERE_IN_ABLE)==0. But it seems + // simpler and safer to simply not reuse the registers. + // + // sqlite3ReleaseTempRange(pParse, iReg, nConstraint+2); + goto __10 +__9: - if pStart != 0 { - var pX uintptr // The expression that defines the start bound - var r1 int32 - // var rTemp int32 at bp+12, 4 - // Registers for holding the start boundary - var op int32 // Cursor seek operation + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IPK) != U32(0) && + (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_COLUMN_IN|WHERE_COLUMN_EQ) != U32(0)) { + goto __34 + } + // Case 2: We can directly reference a single row using an + // equality comparison against the ROWID field. Or + // we reference multiple rows using a "rowid IN (...)" + // construct. - // The following constant maps TK_xx codes into corresponding - // seek opcodes. It depends on a particular ordering of TK_xx - *(*[4]U8)(unsafe.Pointer(bp + 8 /* aMoveOp */)) = [4]U8{ - /* TK_GT */ U8(OP_SeekGT), - /* TK_LE */ U8(OP_SeekLE), - /* TK_LT */ U8(OP_SeekLT), - /* TK_GE */ U8(OP_SeekGE), - } - // Make sure the ordering.. - // ... of the TK_xx values... - // ... is correcct. + pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm)) - pX = (*WhereTerm)(unsafe.Pointer(pStart)).FpExpr + iReleaseReg = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) + iRowidReg = codeEqualityTerm(tls, pParse, pTerm, pLevel, 0, bRev, iReleaseReg) + if !(iRowidReg != iReleaseReg) { + goto __36 + } + Xsqlite3ReleaseTempReg(tls, pParse, iReleaseReg) +__36: + ; + addrNxt = (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrNxt + if !((*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter != 0) { + goto __37 + } + Xsqlite3VdbeAddOp4Int(tls, v, OP_Filter, (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter, addrNxt, + iRowidReg, 1) - // transitive constraints - if Xsqlite3ExprIsVector(tls, (*Expr)(unsafe.Pointer(pX)).FpRight) != 0 { - r1 = libc.AssignPtrInt32(bp+12 /* rTemp */, Xsqlite3GetTempReg(tls, pParse)) - codeExprOrVector(tls, pParse, (*Expr)(unsafe.Pointer(pX)).FpRight, r1, 1) + filterPullDown(tls, pParse, pWInfo, iLevel, addrNxt, notReady) +__37: + ; + Xsqlite3VdbeAddOp3(tls, v, OP_SeekRowid, iCur, addrNxt, iRowidReg) - op = int32(*(*U8)(unsafe.Pointer(bp + 8 + uintptr((int32((*Expr)(unsafe.Pointer(pX)).Fop)-TK_GT-1)&0x3|0x1)))) + (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Noop) + goto __35 +__34: + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IPK) != U32(0) && + (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_COLUMN_RANGE) != U32(0)) { + goto __38 + } + // Case 3: We have an inequality comparison against the ROWID field. + testOp = OP_Noop + memEndValue = 0 - } else { - r1 = Xsqlite3ExprCodeTemp(tls, pParse, (*Expr)(unsafe.Pointer(pX)).FpRight, bp+12) - disableTerm(tls, pLevel, pStart) - op = int32(*(*U8)(unsafe.Pointer(bp + 8 + uintptr(int32((*Expr)(unsafe.Pointer(pX)).Fop)-TK_GT)))) - } - Xsqlite3VdbeAddOp3(tls, v, op, iCur, addrBrk, r1) + j = 0 + pStart = libc.AssignUintptr(&pEnd, uintptr(0)) + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_BTM_LIMIT) != 0) { + goto __40 + } + pStart = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(libc.PostIncInt32(&j, 1))*8)) +__40: + ; + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_TOP_LIMIT) != 0) { + goto __41 + } + pEnd = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(libc.PostIncInt32(&j, 1))*8)) +__41: + ; - Xsqlite3ReleaseTempReg(tls, pParse, *(*int32)(unsafe.Pointer(bp + 12 /* rTemp */))) - } else { - Xsqlite3VdbeAddOp2(tls, v, func() int32 { - if bRev != 0 { - return OP_Last - } - return OP_Rewind - }(), iCur, addrHalt) + if !(bRev != 0) { + goto __42 + } + pTerm = pStart + pStart = pEnd + pEnd = pTerm +__42: + ; - } - if pEnd != 0 { - var pX uintptr - pX = (*WhereTerm)(unsafe.Pointer(pEnd)).FpExpr + if !(pStart != 0) { + goto __43 + } // Cursor seek operation - // Transitive constraints + // The following constant maps TK_xx codes into corresponding + // seek opcodes. It depends on a particular ordering of TK_xx + *(*[4]U8)(unsafe.Pointer(bp + 8 /* aMoveOp */)) = [4]U8{ + /* TK_GT */ U8(OP_SeekGT), + /* TK_LE */ U8(OP_SeekLE), + /* TK_LT */ U8(OP_SeekLT), + /* TK_GE */ U8(OP_SeekGE), + } + // Make sure the ordering.. + // ... of the TK_xx values... + // ... is correcct. - memEndValue = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) - codeExprOrVector(tls, pParse, (*Expr)(unsafe.Pointer(pX)).FpRight, memEndValue, 1) - if 0 == Xsqlite3ExprIsVector(tls, (*Expr)(unsafe.Pointer(pX)).FpRight) && - (int32((*Expr)(unsafe.Pointer(pX)).Fop) == TK_LT || int32((*Expr)(unsafe.Pointer(pX)).Fop) == TK_GT) { - if bRev != 0 { - testOp = OP_Le - } else { - testOp = OP_Ge - } - } else { - if bRev != 0 { - testOp = OP_Lt - } else { - testOp = OP_Gt - } - } - if 0 == Xsqlite3ExprIsVector(tls, (*Expr)(unsafe.Pointer(pX)).FpRight) { - disableTerm(tls, pLevel, pEnd) - } - } - start = Xsqlite3VdbeCurrentAddr(tls, v) - (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = func() uint8 { - if bRev != 0 { - return uint8(OP_Prev) - } - return uint8(OP_Next) - }() - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp1 = iCur - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = start - - if testOp != OP_Noop { - iRowidReg = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) - Xsqlite3VdbeAddOp2(tls, v, OP_Rowid, iCur, iRowidReg) - Xsqlite3VdbeAddOp3(tls, v, testOp, memEndValue, addrBrk, iRowidReg) - - Xsqlite3VdbeChangeP5(tls, v, uint16(SQLITE_AFF_NUMERIC|SQLITE_JUMPIFNULL)) - } - } else if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_INDEXED) != 0 { - var nEq U16 = *(*U16)(unsafe.Pointer(pLoop + 24)) // Number of == or IN terms - var nBtm U16 = *(*U16)(unsafe.Pointer(pLoop + 24 + 2 /* &.nBtm */)) // Length of BTM vector - var nTop U16 = *(*U16)(unsafe.Pointer(pLoop + 24 + 4 /* &.nTop */)) // Length of TOP vector - var regBase int32 // Base register holding constraint values - var pRangeStart uintptr = uintptr(0) // Inequality constraint at range start - var pRangeEnd uintptr = uintptr(0) // Inequality constraint at range end - var startEq int32 // True if range start uses ==, >= or <= - var endEq int32 // True if range end uses ==, >= or <= - var start_constraints int32 // Start of range is constrained - var nConstraint int32 // Number of constraint terms - var iIdxCur int32 // The VDBE cursor for the index - var nExtraReg int32 = 0 // Number of extra registers needed - var op int32 // Instruction opcode - // var zStartAff uintptr at bp+16, 8 - // Affinity for start of range constraint - var zEndAff uintptr = uintptr(0) // Affinity for end of range constraint - var bSeekPastNull U8 = U8(0) // True to seek past initial nulls - var bStopAtNull U8 = U8(0) // Add condition to terminate at NULLs - var omitTable int32 // True if we use the index only - var regBignull int32 = 0 // big-null flag register - var addrSeekScan int32 = 0 // Opcode of the OP_SeekScan, if any - - pIdx = *(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.pIndex */)) - iIdxCur = (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur - - // Find any inequality constraint terms for the start and end - // of the range. - j = int32(nEq) - if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_BTM_LIMIT) != 0 { - pRangeStart = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(libc.PostIncInt32(&j, 1))*8)) - nExtraReg = func() int32 { - if nExtraReg > int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 2))) { - return nExtraReg - } - return int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 2))) - }() - // Like optimization range constraints always occur in pairs + pX = (*WhereTerm)(unsafe.Pointer(pStart)).FpExpr + // transitive constraints + if !(Xsqlite3ExprIsVector(tls, (*Expr)(unsafe.Pointer(pX)).FpRight) != 0) { + goto __45 + } + r1 = libc.AssignPtrInt32(bp+12 /* rTemp */, Xsqlite3GetTempReg(tls, pParse)) + codeExprOrVector(tls, pParse, (*Expr)(unsafe.Pointer(pX)).FpRight, r1, 1) + + op = int32(*(*U8)(unsafe.Pointer(bp + 8 + uintptr((int32((*Expr)(unsafe.Pointer(pX)).Fop)-TK_GT-1)&0x3|0x1)))) + + goto __46 +__45: + r1 = Xsqlite3ExprCodeTemp(tls, pParse, (*Expr)(unsafe.Pointer(pX)).FpRight, bp+12) + disableTerm(tls, pLevel, pStart) + op = int32(*(*U8)(unsafe.Pointer(bp + 8 + uintptr(int32((*Expr)(unsafe.Pointer(pX)).Fop)-TK_GT)))) +__46: + ; + Xsqlite3VdbeAddOp3(tls, v, op, iCur, addrBrk, r1) + + Xsqlite3ReleaseTempReg(tls, pParse, *(*int32)(unsafe.Pointer(bp + 12 /* rTemp */))) + goto __44 +__43: + Xsqlite3VdbeAddOp2(tls, v, func() int32 { + if bRev != 0 { + return OP_Last } - if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_TOP_LIMIT) != 0 { - pRangeEnd = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(libc.PostIncInt32(&j, 1))*8)) - nExtraReg = func() int32 { - if nExtraReg > int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 4))) { - return nExtraReg - } - return int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 4))) - }() - if pRangeStart == uintptr(0) { - j = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(nEq)*2))) - if j >= 0 && int32(*(*uint8)(unsafe.Pointer((*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol + uintptr(j)*24 + 8))&0xf>>0) == 0 || j == -2 { - bSeekPastNull = U8(1) - } - } - } + return OP_Rewind + }(), iCur, addrHalt) - // If the WHERE_BIGNULL_SORT flag is set, then index column nEq uses - // a non-default "big-null" sort (either ASC NULLS LAST or DESC NULLS - // FIRST). In both cases separate ordered scans are made of those - // index entries for which the column is null and for those for which - // it is not. For an ASC sort, the non-NULL entries are scanned first. - // For DESC, NULL entries are scanned first. - if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_TOP_LIMIT|WHERE_BTM_LIMIT) == U32(0) && - (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_BIGNULL_SORT) != U32(0) { +__44: + ; + if !(pEnd != 0) { + goto __47 + } + pX1 = (*WhereTerm)(unsafe.Pointer(pEnd)).FpExpr - nExtraReg = 1 - bSeekPastNull = U8(1) - (*WhereLevel)(unsafe.Pointer(pLevel)).FregBignull = libc.AssignInt32(®Bignull, libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)) - if (*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin != 0 { - Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, regBignull) - } - (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBignull = Xsqlite3VdbeMakeLabel(tls, pParse) + // Transitive constraints + + memEndValue = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) + codeExprOrVector(tls, pParse, (*Expr)(unsafe.Pointer(pX1)).FpRight, memEndValue, 1) + if !(0 == Xsqlite3ExprIsVector(tls, (*Expr)(unsafe.Pointer(pX1)).FpRight) && + (int32((*Expr)(unsafe.Pointer(pX1)).Fop) == TK_LT || int32((*Expr)(unsafe.Pointer(pX1)).Fop) == TK_GT)) { + goto __48 + } + if bRev != 0 { + testOp = OP_Le + } else { + testOp = OP_Ge + } + goto __49 +__48: + if bRev != 0 { + testOp = OP_Lt + } else { + testOp = OP_Gt + } +__49: + ; + if !(0 == Xsqlite3ExprIsVector(tls, (*Expr)(unsafe.Pointer(pX1)).FpRight)) { + goto __50 + } + disableTerm(tls, pLevel, pEnd) +__50: + ; +__47: + ; + start = Xsqlite3VdbeCurrentAddr(tls, v) + (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = func() uint8 { + if bRev != 0 { + return uint8(OP_Prev) } + return uint8(OP_Next) + }() + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp1 = iCur + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = start - // If we are doing a reverse order scan on an ascending index, or - // a forward order scan on a descending index, interchange the - // start and end terms (pRangeStart and pRangeEnd). - if int32(nEq) < int32((*Index)(unsafe.Pointer(pIdx)).FnColumn) && bRev == libc.Bool32(int32(*(*U8)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaSortOrder + uintptr(nEq)))) == SQLITE_SO_ASC) { - { - var t uintptr = pRangeEnd - pRangeEnd = pRangeStart - pRangeStart = t - } + if !(testOp != OP_Noop) { + goto __51 + } + iRowidReg = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) + Xsqlite3VdbeAddOp2(tls, v, OP_Rowid, iCur, iRowidReg) + Xsqlite3VdbeAddOp3(tls, v, testOp, memEndValue, addrBrk, iRowidReg) - { - var t U8 = bSeekPastNull - bSeekPastNull = bStopAtNull - bStopAtNull = t - } + Xsqlite3VdbeChangeP5(tls, v, uint16(SQLITE_AFF_NUMERIC|SQLITE_JUMPIFNULL)) +__51: + ; + goto __39 +__38: + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_INDEXED) != 0) { + goto __52 + } + nEq = *(*U16)(unsafe.Pointer(pLoop + 24)) // Number of == or IN terms + nBtm = *(*U16)(unsafe.Pointer(pLoop + 24 + 2 /* &.nBtm */)) // Length of BTM vector + nTop = *(*U16)(unsafe.Pointer(pLoop + 24 + 4 /* &.nTop */)) // Base register holding constraint values + pRangeStart = uintptr(0) // Inequality constraint at range start + pRangeEnd = uintptr(0) // The VDBE cursor for the index + nExtraReg = 0 // Affinity for start of range constraint + zEndAff = uintptr(0) // Affinity for end of range constraint + bSeekPastNull = U8(0) // True to seek past initial nulls + bStopAtNull = U8(0) // True if we use the index only + regBignull = 0 // big-null flag register + addrSeekScan = 0 // Opcode of the OP_SeekScan, if any - { - var t U8 = U8(nBtm) - nBtm = nTop - nTop = U16(t) - } + pIdx = *(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.pIndex */)) + iIdxCur = (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur + // Find any inequality constraint terms for the start and end + // of the range. + j = int32(nEq) + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_BTM_LIMIT) != 0) { + goto __54 + } + pRangeStart = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(libc.PostIncInt32(&j, 1))*8)) + nExtraReg = func() int32 { + if nExtraReg > int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 2))) { + return nExtraReg } + return int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 2))) + }() + // Like optimization range constraints always occur in pairs - if iLevel > 0 && (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_SEEKSCAN) != U32(0) { - // In case OP_SeekScan is used, ensure that the index cursor does not - // point to a valid row for the first iteration of this loop. - Xsqlite3VdbeAddOp1(tls, v, OP_NullRow, iIdxCur) +__54: + ; + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_TOP_LIMIT) != 0) { + goto __55 + } + pRangeEnd = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm + uintptr(libc.PostIncInt32(&j, 1))*8)) + nExtraReg = func() int32 { + if nExtraReg > int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 4))) { + return nExtraReg } + return int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 4))) + }() + if !(pRangeStart == uintptr(0)) { + goto __56 + } + j = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(nEq)*2))) + if !(j >= 0 && int32(*(*uint8)(unsafe.Pointer((*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol + uintptr(j)*24 + 8))&0xf>>0) == 0 || j == -2) { + goto __57 + } + bSeekPastNull = U8(1) +__57: + ; +__56: + ; +__55: + ; - // Generate code to evaluate all constraint terms using == or IN - // and store the values of those terms in an array of registers - // starting at regBase. + // If the WHERE_BIGNULL_SORT flag is set, then index column nEq uses + // a non-default "big-null" sort (either ASC NULLS LAST or DESC NULLS + // FIRST). In both cases separate ordered scans are made of those + // index entries for which the column is null and for those for which + // it is not. For an ASC sort, the non-NULL entries are scanned first. + // For DESC, NULL entries are scanned first. + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_TOP_LIMIT|WHERE_BTM_LIMIT) == U32(0) && + (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_BIGNULL_SORT) != U32(0)) { + goto __58 + } - regBase = codeAllEqualityTerms(tls, pParse, pLevel, bRev, nExtraReg, bp+16) + nExtraReg = 1 + bSeekPastNull = U8(1) + (*WhereLevel)(unsafe.Pointer(pLevel)).FregBignull = libc.AssignInt32(®Bignull, libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1)) + if !((*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin != 0) { + goto __59 + } + Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, regBignull) +__59: + ; + (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBignull = Xsqlite3VdbeMakeLabel(tls, pParse) +__58: + ; - if *(*uintptr)(unsafe.Pointer(bp + 16)) != 0 && nTop != 0 { - zEndAff = Xsqlite3DbStrDup(tls, db, *(*uintptr)(unsafe.Pointer(bp + 16))+uintptr(nEq)) - } - addrNxt = func() int32 { - if regBignull != 0 { - return (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBignull - } - return (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrNxt - }() + // If we are doing a reverse order scan on an ascending index, or + // a forward order scan on a descending index, interchange the + // start and end terms (pRangeStart and pRangeEnd). + if !(int32(nEq) < int32((*Index)(unsafe.Pointer(pIdx)).FnColumn) && bRev == libc.Bool32(int32(*(*U8)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaSortOrder + uintptr(nEq)))) == SQLITE_SO_ASC)) { + goto __60 + } - startEq = libc.Bool32(!(pRangeStart != 0) || int32((*WhereTerm)(unsafe.Pointer(pRangeStart)).FeOperator)&(int32(WO_EQ)<<(TK_LE-TK_EQ)|int32(WO_EQ)<<(TK_GE-TK_EQ)) != 0) - endEq = libc.Bool32(!(pRangeEnd != 0) || int32((*WhereTerm)(unsafe.Pointer(pRangeEnd)).FeOperator)&(int32(WO_EQ)<<(TK_LE-TK_EQ)|int32(WO_EQ)<<(TK_GE-TK_EQ)) != 0) - start_constraints = libc.Bool32(pRangeStart != 0 || int32(nEq) > 0) + t = pRangeEnd + pRangeEnd = pRangeStart + pRangeStart = t - // Seek the index cursor to the start of the range. - nConstraint = int32(nEq) - if pRangeStart != 0 { - var pRight uintptr = (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pRangeStart)).FpExpr)).FpRight - codeExprOrVector(tls, pParse, pRight, regBase+int32(nEq), int32(nBtm)) + t1 = bSeekPastNull + bSeekPastNull = bStopAtNull + bStopAtNull = t1 - if int32((*WhereTerm)(unsafe.Pointer(pRangeStart)).FwtFlags)&TERM_VNULL == 0 && - Xsqlite3ExprCanBeNull(tls, pRight) != 0 { - Xsqlite3VdbeAddOp2(tls, v, OP_IsNull, regBase+int32(nEq), addrNxt) + t2 = U8(nBtm) + nBtm = nTop + nTop = U16(t2) - } - if *(*uintptr)(unsafe.Pointer(bp + 16)) != 0 { - updateRangeAffinityStr(tls, pRight, int32(nBtm), *(*uintptr)(unsafe.Pointer(bp + 16))+uintptr(nEq)) - } - nConstraint = nConstraint + int32(nBtm) +__60: + ; - if Xsqlite3ExprIsVector(tls, pRight) == 0 { - disableTerm(tls, pLevel, pRangeStart) - } else { - startEq = 1 - } - bSeekPastNull = U8(0) - } else if bSeekPastNull != 0 { - startEq = 0 - Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regBase+int32(nEq)) - start_constraints = 1 - nConstraint++ - } else if regBignull != 0 { - Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regBase+int32(nEq)) - start_constraints = 1 - nConstraint++ + if !(iLevel > 0 && (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_SEEKSCAN) != U32(0)) { + goto __61 + } + // In case OP_SeekScan is used, ensure that the index cursor does not + // point to a valid row for the first iteration of this loop. + Xsqlite3VdbeAddOp1(tls, v, OP_NullRow, iIdxCur) +__61: + ; + + // Generate code to evaluate all constraint terms using == or IN + // and store the values of those terms in an array of registers + // starting at regBase. + + regBase = codeAllEqualityTerms(tls, pParse, pLevel, bRev, nExtraReg, bp+16) + + if !(*(*uintptr)(unsafe.Pointer(bp + 16)) != 0 && nTop != 0) { + goto __62 + } + zEndAff = Xsqlite3DbStrDup(tls, db, *(*uintptr)(unsafe.Pointer(bp + 16))+uintptr(nEq)) +__62: + ; + addrNxt = func() int32 { + if regBignull != 0 { + return (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBignull } - codeApplyAffinity(tls, pParse, regBase, nConstraint-int32(bSeekPastNull), *(*uintptr)(unsafe.Pointer(bp + 16 /* zStartAff */))) - if int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnSkip) > 0 && nConstraint == int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnSkip) { - // The skip-scan logic inside the call to codeAllEqualityConstraints() - // above has already left the cursor sitting on the correct row, - // so no further seeking is needed - } else { - if regBignull != 0 { - Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 1, regBignull) + return (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrNxt + }() - } - if (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter != 0 { - Xsqlite3VdbeAddOp4Int(tls, v, OP_Filter, (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter, addrNxt, - regBase, int32(nEq)) + startEq = libc.Bool32(!(pRangeStart != 0) || int32((*WhereTerm)(unsafe.Pointer(pRangeStart)).FeOperator)&(int32(WO_EQ)<<(TK_LE-TK_EQ)|int32(WO_EQ)<<(TK_GE-TK_EQ)) != 0) + endEq = libc.Bool32(!(pRangeEnd != 0) || int32((*WhereTerm)(unsafe.Pointer(pRangeEnd)).FeOperator)&(int32(WO_EQ)<<(TK_LE-TK_EQ)|int32(WO_EQ)<<(TK_GE-TK_EQ)) != 0) + start_constraints = libc.Bool32(pRangeStart != 0 || int32(nEq) > 0) - filterPullDown(tls, pParse, pWInfo, iLevel, addrNxt, notReady) - } + // Seek the index cursor to the start of the range. + nConstraint1 = int32(nEq) + if !(pRangeStart != 0) { + goto __63 + } + pRight2 = (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pRangeStart)).FpExpr)).FpRight + codeExprOrVector(tls, pParse, pRight2, regBase+int32(nEq), int32(nBtm)) - op = int32(aStartOp[start_constraints<<2+startEq<<1+bRev]) + if !(int32((*WhereTerm)(unsafe.Pointer(pRangeStart)).FwtFlags)&TERM_VNULL == 0 && + Xsqlite3ExprCanBeNull(tls, pRight2) != 0) { + goto __65 + } + Xsqlite3VdbeAddOp2(tls, v, OP_IsNull, regBase+int32(nEq), addrNxt) - if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_SEEKSCAN) != U32(0) && op == OP_SeekGE { +__65: + ; + if !(*(*uintptr)(unsafe.Pointer(bp + 16)) != 0) { + goto __66 + } + updateRangeAffinityStr(tls, pRight2, int32(nBtm), *(*uintptr)(unsafe.Pointer(bp + 16))+uintptr(nEq)) +__66: + ; + nConstraint1 = nConstraint1 + int32(nBtm) - // TUNING: The OP_SeekScan opcode seeks to reduce the number - // of expensive seek operations by replacing a single seek with - // 1 or more step operations. The question is, how many steps - // should we try before giving up and going with a seek. The cost - // of a seek is proportional to the logarithm of the of the number - // of entries in the tree, so basing the number of steps to try - // on the estimated number of rows in the btree seems like a good - // guess. - addrSeekScan = Xsqlite3VdbeAddOp1(tls, v, OP_SeekScan, - (int32(*(*LogEst)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiRowLogEst)))+9)/10) + if !(Xsqlite3ExprIsVector(tls, pRight2) == 0) { + goto __67 + } + disableTerm(tls, pLevel, pRangeStart) + goto __68 +__67: + startEq = 1 +__68: + ; + bSeekPastNull = U8(0) + goto __64 +__63: + if !(bSeekPastNull != 0) { + goto __69 + } + startEq = 0 + Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regBase+int32(nEq)) + start_constraints = 1 + nConstraint1++ + goto __70 +__69: + if !(regBignull != 0) { + goto __71 + } + Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regBase+int32(nEq)) + start_constraints = 1 + nConstraint1++ +__71: + ; +__70: + ; +__64: + ; + codeApplyAffinity(tls, pParse, regBase, nConstraint1-int32(bSeekPastNull), *(*uintptr)(unsafe.Pointer(bp + 16 /* zStartAff */))) + if !(int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnSkip) > 0 && nConstraint1 == int32((*WhereLoop)(unsafe.Pointer(pLoop)).FnSkip)) { + goto __72 + } + // The skip-scan logic inside the call to codeAllEqualityConstraints() + // above has already left the cursor sitting on the correct row, + // so no further seeking is needed + goto __73 +__72: + if !(regBignull != 0) { + goto __74 + } + Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 1, regBignull) - } - Xsqlite3VdbeAddOp4Int(tls, v, op, iIdxCur, addrNxt, regBase, nConstraint) +__74: + ; + if !((*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter != 0) { + goto __75 + } + Xsqlite3VdbeAddOp4Int(tls, v, OP_Filter, (*WhereLevel)(unsafe.Pointer(pLevel)).FregFilter, addrNxt, + regBase, int32(nEq)) - if regBignull != 0 { + filterPullDown(tls, pParse, pWInfo, iLevel, addrNxt, notReady) +__75: + ; - Xsqlite3VdbeAddOp2(tls, v, OP_Goto, 0, Xsqlite3VdbeCurrentAddr(tls, v)+2) - op = int32(aStartOp[libc.Bool32(nConstraint > 1)*4+2+bRev]) - Xsqlite3VdbeAddOp4Int(tls, v, op, iIdxCur, addrNxt, regBase, - nConstraint-startEq) + op1 = int32(aStartOp[start_constraints<<2+startEq<<1+bRev]) - } - } + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_SEEKSCAN) != U32(0) && op1 == OP_SeekGE) { + goto __76 + } - // Load the value for the inequality constraint at the end of the - // range (if any). - nConstraint = int32(nEq) + // TUNING: The OP_SeekScan opcode seeks to reduce the number + // of expensive seek operations by replacing a single seek with + // 1 or more step operations. The question is, how many steps + // should we try before giving up and going with a seek. The cost + // of a seek is proportional to the logarithm of the of the number + // of entries in the tree, so basing the number of steps to try + // on the estimated number of rows in the btree seems like a good + // guess. + addrSeekScan = Xsqlite3VdbeAddOp1(tls, v, OP_SeekScan, + (int32(*(*LogEst)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiRowLogEst)))+9)/10) - if pRangeEnd != 0 { - var pRight uintptr = (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pRangeEnd)).FpExpr)).FpRight - if addrSeekScan != 0 { - // For a seek-scan that has a range on the lowest term of the index, - // we have to make the top of the loop be code that sets the end - // condition of the range. Otherwise, the OP_SeekScan might jump - // over that initialization, leaving the range-end value set to the - // range-start value, resulting in a wrong answer. - // See ticket 5981a8c041a3c2f3 (2021-11-02). - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = Xsqlite3VdbeCurrentAddr(tls, v) - } - codeExprOrVector(tls, pParse, pRight, regBase+int32(nEq), int32(nTop)) +__76: + ; + Xsqlite3VdbeAddOp4Int(tls, v, op1, iIdxCur, addrNxt, regBase, nConstraint1) - if int32((*WhereTerm)(unsafe.Pointer(pRangeEnd)).FwtFlags)&TERM_VNULL == 0 && - Xsqlite3ExprCanBeNull(tls, pRight) != 0 { - Xsqlite3VdbeAddOp2(tls, v, OP_IsNull, regBase+int32(nEq), addrNxt) + if !(regBignull != 0) { + goto __77 + } - } - if zEndAff != 0 { - updateRangeAffinityStr(tls, pRight, int32(nTop), zEndAff) - codeApplyAffinity(tls, pParse, regBase+int32(nEq), int32(nTop), zEndAff) - } else { + Xsqlite3VdbeAddOp2(tls, v, OP_Goto, 0, Xsqlite3VdbeCurrentAddr(tls, v)+2) + op1 = int32(aStartOp[libc.Bool32(nConstraint1 > 1)*4+2+bRev]) + Xsqlite3VdbeAddOp4Int(tls, v, op1, iIdxCur, addrNxt, regBase, + nConstraint1-startEq) - } - nConstraint = nConstraint + int32(nTop) +__77: + ; +__73: + ; - if Xsqlite3ExprIsVector(tls, pRight) == 0 { - disableTerm(tls, pLevel, pRangeEnd) - } else { - endEq = 1 - } - } else if bStopAtNull != 0 { - if regBignull == 0 { - Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regBase+int32(nEq)) - endEq = 0 - } - nConstraint++ - } - Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 16 /* zStartAff */))) - Xsqlite3DbFree(tls, db, zEndAff) + // Load the value for the inequality constraint at the end of the + // range (if any). + nConstraint1 = int32(nEq) - // Top of the loop body - if (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 == 0 { - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = Xsqlite3VdbeCurrentAddr(tls, v) - } + if !(pRangeEnd != 0) { + goto __78 + } + pRight3 = (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pRangeEnd)).FpExpr)).FpRight + if !(addrSeekScan != 0) { + goto __80 + } + // For a seek-scan that has a range on the lowest term of the index, + // we have to make the top of the loop be code that sets the end + // condition of the range. Otherwise, the OP_SeekScan might jump + // over that initialization, leaving the range-end value set to the + // range-start value, resulting in a wrong answer. + // See ticket 5981a8c041a3c2f3 (2021-11-02). + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = Xsqlite3VdbeCurrentAddr(tls, v) +__80: + ; + codeExprOrVector(tls, pParse, pRight3, regBase+int32(nEq), int32(nTop)) - // Check if the index cursor is past the end of the range. - if nConstraint != 0 { - if regBignull != 0 { - // Except, skip the end-of-range check while doing the NULL-scan - Xsqlite3VdbeAddOp2(tls, v, OP_IfNot, regBignull, Xsqlite3VdbeCurrentAddr(tls, v)+3) + if !(int32((*WhereTerm)(unsafe.Pointer(pRangeEnd)).FwtFlags)&TERM_VNULL == 0 && + Xsqlite3ExprCanBeNull(tls, pRight3) != 0) { + goto __81 + } + Xsqlite3VdbeAddOp2(tls, v, OP_IsNull, regBase+int32(nEq), addrNxt) - } - op = int32(aEndOp[bRev*2+endEq]) - Xsqlite3VdbeAddOp4Int(tls, v, op, iIdxCur, addrNxt, regBase, nConstraint) +__81: + ; + if !(zEndAff != 0) { + goto __82 + } + updateRangeAffinityStr(tls, pRight3, int32(nTop), zEndAff) + codeApplyAffinity(tls, pParse, regBase+int32(nEq), int32(nTop), zEndAff) + goto __83 +__82: + ; +__83: + ; + nConstraint1 = nConstraint1 + int32(nTop) - if addrSeekScan != 0 { - Xsqlite3VdbeJumpHere(tls, v, addrSeekScan) - } - } - if regBignull != 0 { - // During a NULL-scan, check to see if we have reached the end of - // the NULLs + if !(Xsqlite3ExprIsVector(tls, pRight3) == 0) { + goto __84 + } + disableTerm(tls, pLevel, pRangeEnd) + goto __85 +__84: + endEq = 1 +__85: + ; + goto __79 +__78: + if !(bStopAtNull != 0) { + goto __86 + } + if !(regBignull == 0) { + goto __87 + } + Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regBase+int32(nEq)) + endEq = 0 +__87: + ; + nConstraint1++ +__86: + ; +__79: + ; + Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 16 /* zStartAff */))) + Xsqlite3DbFree(tls, db, zEndAff) - Xsqlite3VdbeAddOp2(tls, v, OP_If, regBignull, Xsqlite3VdbeCurrentAddr(tls, v)+2) + // Top of the loop body + if !((*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 == 0) { + goto __88 + } + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = Xsqlite3VdbeCurrentAddr(tls, v) +__88: + ; - op = int32(aEndOp[bRev*2+int32(bSeekPastNull)]) - Xsqlite3VdbeAddOp4Int(tls, v, op, iIdxCur, addrNxt, regBase, - nConstraint+int32(bSeekPastNull)) + // Check if the index cursor is past the end of the range. + if !(nConstraint1 != 0) { + goto __89 + } + if !(regBignull != 0) { + goto __90 + } + // Except, skip the end-of-range check while doing the NULL-scan + Xsqlite3VdbeAddOp2(tls, v, OP_IfNot, regBignull, Xsqlite3VdbeCurrentAddr(tls, v)+3) - } +__90: + ; + op1 = int32(aEndOp[bRev*2+endEq]) + Xsqlite3VdbeAddOp4Int(tls, v, op1, iIdxCur, addrNxt, regBase, nConstraint1) - if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_EARLYOUT) != U32(0) { - Xsqlite3VdbeAddOp3(tls, v, OP_SeekHit, iIdxCur, int32(nEq), int32(nEq)) - } + if !(addrSeekScan != 0) { + goto __91 + } + Xsqlite3VdbeJumpHere(tls, v, addrSeekScan) +__91: + ; +__89: + ; + if !(regBignull != 0) { + goto __92 + } + // During a NULL-scan, check to see if we have reached the end of + // the NULLs - // Seek the table cursor, if required - omitTable = libc.Bool32((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IDX_ONLY) != U32(0) && - int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_OR_SUBCLAUSE == 0) - if omitTable != 0 { - // pIdx is a covering index. No need to access the main table. - } else if (*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FtabFlags&U32(TF_WithoutRowid) == U32(0) { - codeDeferredSeek(tls, pWInfo, pIdx, iCur, iIdxCur) - } else if iCur != iIdxCur { - var pPk uintptr = Xsqlite3PrimaryKeyIndex(tls, (*Index)(unsafe.Pointer(pIdx)).FpTable) - iRowidReg = Xsqlite3GetTempRange(tls, pParse, int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol)) - for j = 0; j < int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol); j++ { - k = int32(Xsqlite3TableColumnToIndex(tls, pIdx, *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pPk)).FaiColumn + uintptr(j)*2)))) - Xsqlite3VdbeAddOp3(tls, v, OP_Column, iIdxCur, k, iRowidReg+j) - } - Xsqlite3VdbeAddOp4Int(tls, v, OP_NotFound, iCur, addrCont, - iRowidReg, int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol)) - } + Xsqlite3VdbeAddOp2(tls, v, OP_If, regBignull, Xsqlite3VdbeCurrentAddr(tls, v)+2) - if (*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin == 0 { - // If pIdx is an index on one or more expressions, then look through - // all the expressions in pWInfo and try to transform matching expressions - // into reference to index columns. Also attempt to translate references - // to virtual columns in the table into references to (stored) columns - // of the index. - // - // Do not do this for the RHS of a LEFT JOIN. This is because the - // expression may be evaluated after OP_NullRow has been executed on - // the cursor. In this case it is important to do the full evaluation, - // as the result of the expression may not be NULL, even if all table - // column values are. https://www.sqlite.org/src/info/7fa8049685b50b5a - // - // Also, do not do this when processing one index an a multi-index - // OR clause, since the transformation will become invalid once we - // move forward to the next index. - // https://sqlite.org/src/info/4e8e4857d32d401f - if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_OR_SUBCLAUSE == 0 { - whereIndexExprTrans(tls, pIdx, iCur, iIdxCur, pWInfo) - } + op1 = int32(aEndOp[bRev*2+int32(bSeekPastNull)]) + Xsqlite3VdbeAddOp4Int(tls, v, op1, iIdxCur, addrNxt, regBase, + nConstraint1+int32(bSeekPastNull)) - // If a partial index is driving the loop, try to eliminate WHERE clause - // terms from the query that must be true due to the WHERE clause of - // the partial index. - // - // 2019-11-02 ticket 623eff57e76d45f6: This optimization does not work - // for a LEFT JOIN. - if (*Index)(unsafe.Pointer(pIdx)).FpPartIdxWhere != 0 { - whereApplyPartialIndexConstraints(tls, (*Index)(unsafe.Pointer(pIdx)).FpPartIdxWhere, iCur, pWC) - } - } else { +__92: + ; - // The following assert() is not a requirement, merely an observation: - // The OR-optimization doesn't work for the right hand table of - // a LEFT JOIN: + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_EARLYOUT) != U32(0)) { + goto __93 + } + Xsqlite3VdbeAddOp3(tls, v, OP_SeekHit, iIdxCur, int32(nEq), int32(nEq)) +__93: + ; - } + // Seek the table cursor, if required + omitTable = libc.Bool32((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IDX_ONLY) != U32(0) && + int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&(WHERE_OR_SUBCLAUSE|WHERE_RIGHT_JOIN) == 0) + if !(omitTable != 0) { + goto __94 + } + // pIdx is a covering index. No need to access the main table. + goto __95 +__94: + if !((*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) { + goto __96 + } + codeDeferredSeek(tls, pWInfo, pIdx, iCur, iIdxCur) + goto __97 +__96: + if !(iCur != iIdxCur) { + goto __98 + } + pPk = Xsqlite3PrimaryKeyIndex(tls, (*Index)(unsafe.Pointer(pIdx)).FpTable) + iRowidReg = Xsqlite3GetTempRange(tls, pParse, int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol)) + j = 0 +__99: + if !(j < int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol)) { + goto __101 + } + k = int32(Xsqlite3TableColumnToIndex(tls, pIdx, *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pPk)).FaiColumn + uintptr(j)*2)))) + Xsqlite3VdbeAddOp3(tls, v, OP_Column, iIdxCur, k, iRowidReg+j) + goto __100 +__100: + j++ + goto __99 + goto __101 +__101: + ; + Xsqlite3VdbeAddOp4Int(tls, v, OP_NotFound, iCur, addrCont, + iRowidReg, int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol)) +__98: + ; +__97: + ; +__95: + ; - // Record the instruction used to terminate the loop. - if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_ONEROW) != 0 { - (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Noop) - } else if bRev != 0 { - (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Prev) - } else { - (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Next) - } - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp1 = iIdxCur - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp3 = func() uint8 { - if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_UNQ_WANTED) != U32(0) { - return uint8(1) - } - return uint8(0) - }() - if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_CONSTRAINT) == U32(0) { - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp5 = U8(SQLITE_STMTSTATUS_FULLSCAN_STEP) - } else { + if !((*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin == 0) { + goto __102 + } + // If pIdx is an index on one or more expressions, then look through + // all the expressions in pWInfo and try to transform matching expressions + // into reference to index columns. Also attempt to translate references + // to virtual columns in the table into references to (stored) columns + // of the index. + // + // Do not do this for the RHS of a LEFT JOIN. This is because the + // expression may be evaluated after OP_NullRow has been executed on + // the cursor. In this case it is important to do the full evaluation, + // as the result of the expression may not be NULL, even if all table + // column values are. https://www.sqlite.org/src/info/7fa8049685b50b5a + // + // Also, do not do this when processing one index an a multi-index + // OR clause, since the transformation will become invalid once we + // move forward to the next index. + // https://sqlite.org/src/info/4e8e4857d32d401f + if !(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&(WHERE_OR_SUBCLAUSE|WHERE_RIGHT_JOIN) == 0) { + goto __104 + } + whereIndexExprTrans(tls, pIdx, iCur, iIdxCur, pWInfo) +__104: + ; + // If a partial index is driving the loop, try to eliminate WHERE clause + // terms from the query that must be true due to the WHERE clause of + // the partial index. + // + // 2019-11-02 ticket 623eff57e76d45f6: This optimization does not work + // for a LEFT JOIN. + if !((*Index)(unsafe.Pointer(pIdx)).FpPartIdxWhere != 0) { + goto __105 + } + whereApplyPartialIndexConstraints(tls, (*Index)(unsafe.Pointer(pIdx)).FpPartIdxWhere, iCur, pWC) +__105: + ; + goto __103 +__102: + ; + // The following assert() is not a requirement, merely an observation: + // The OR-optimization doesn't work for the right hand table of + // a LEFT JOIN: + +__103: + ; + + // Record the instruction used to terminate the loop. + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_ONEROW) != 0) { + goto __106 + } + (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Noop) + goto __107 +__106: + if !(bRev != 0) { + goto __108 + } + (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Prev) + goto __109 +__108: + (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Next) +__109: + ; +__107: + ; + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp1 = iIdxCur + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp3 = func() uint8 { + if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_UNQ_WANTED) != U32(0) { + return uint8(1) } - if omitTable != 0 { - pIdx = uintptr(0) - } - } else if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_MULTI_OR) != 0 { - // Case 5: Two or more separately indexed terms connected by OR - // - // Example: - // - // CREATE TABLE t1(a,b,c,d); - // CREATE INDEX i1 ON t1(a); - // CREATE INDEX i2 ON t1(b); - // CREATE INDEX i3 ON t1(c); - // - // SELECT * FROM t1 WHERE a=5 OR b=7 OR (c=11 AND d=13) - // - // In the example, there are three indexed terms connected by OR. - // The top of the loop looks like this: - // - // Null 1 # Zero the rowset in reg 1 - // - // Then, for each indexed term, the following. The arguments to - // RowSetTest are such that the rowid of the current row is inserted - // into the RowSet. If it is already present, control skips the - // Gosub opcode and jumps straight to the code generated by WhereEnd(). - // - // sqlite3WhereBegin(<term>) - // RowSetTest # Insert rowid into rowset - // Gosub 2 A - // sqlite3WhereEnd() - // - // Following the above, code to terminate the loop. Label A, the target - // of the Gosub above, jumps to the instruction right after the Goto. - // - // Null 1 # Zero the rowset in reg 1 - // Goto B # The loop is finished. - // - // A: <loop body> # Return data, whatever. - // - // Return 2 # Jump back to the Gosub - // - // B: <after the loop> - // - // Added 2014-05-26: If the table is a WITHOUT ROWID table, then - // use an ephemeral index instead of a RowSet to record the primary - // keys of the rows we have already seen. - // - var pOrWc uintptr // The OR-clause broken out into subterms - var pOrTab uintptr // Shortened table list or OR-clause generation - var pCov uintptr = uintptr(0) // Potential covering index (or NULL) - var iCovCur int32 = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) // Cursor used for index scans (if any) - - var regReturn int32 = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) // Register used with OP_Gosub - var regRowset int32 = 0 // Register for RowSet object - var regRowid int32 = 0 // Register holding rowid - var iLoopBody int32 = Xsqlite3VdbeMakeLabel(tls, pParse) // Start of loop body - var iRetInit int32 // Address of regReturn init - var untestedTerms int32 = 0 // Some terms not completely tested - var ii int32 // Loop counter - var pAndExpr uintptr = uintptr(0) // An ".. AND (...)" expression - var pTab uintptr = (*SrcItem)(unsafe.Pointer(pTabItem)).FpTab + return uint8(0) + }() + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_CONSTRAINT) == U32(0)) { + goto __110 + } + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp5 = U8(SQLITE_STMTSTATUS_FULLSCAN_STEP) + goto __111 +__110: + ; +__111: + ; + if !(omitTable != 0) { + goto __112 + } + pIdx = uintptr(0) +__112: + ; + goto __53 +__52: - pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm)) + if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_MULTI_OR) != 0) { + goto __113 + } // Shortened table list or OR-clause generation + pCov = uintptr(0) // Potential covering index (or NULL) + iCovCur = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) // Cursor used for index scans (if any) + + regReturn = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) // Register used with OP_Gosub + regRowset = 0 // Register for RowSet object + regRowid = 0 // Register holding rowid + iLoopBody = Xsqlite3VdbeMakeLabel(tls, pParse) // Address of regReturn init + untestedTerms = 0 // Loop counter + pAndExpr = uintptr(0) // An ".. AND (...)" expression + pTab = (*SrcItem)(unsafe.Pointer(pTabItem)).FpTab - pOrWc = *(*uintptr)(unsafe.Pointer(pTerm + 32)) - (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Return) - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp1 = regReturn + pTerm = *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pLoop)).FaLTerm)) - // Set up a new SrcList in pOrTab containing the table being scanned - // by this loop in the a[0] slot and all notReady tables in a[1..] slots. - // This becomes the SrcList in the recursive call to sqlite3WhereBegin(). - if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) > 1 { - var nNotReady int32 // The number of notReady tables - var origSrc uintptr // Original list of tables - nNotReady = int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) - iLevel - 1 - pOrTab = Xsqlite3DbMallocRaw(tls, db, uint64(unsafe.Sizeof(SrcList{}))+uint64(nNotReady)*uint64(unsafe.Sizeof(SrcItem{}))) - if pOrTab == uintptr(0) { - return notReady - } - (*SrcList)(unsafe.Pointer(pOrTab)).FnAlloc = U32(U8(nNotReady + 1)) - (*SrcList)(unsafe.Pointer(pOrTab)).FnSrc = int32((*SrcList)(unsafe.Pointer(pOrTab)).FnAlloc) - libc.Xmemcpy(tls, pOrTab+8, pTabItem, uint64(unsafe.Sizeof(SrcItem{}))) - origSrc = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 /* &.a */ - for k = 1; k <= nNotReady; k++ { - libc.Xmemcpy(tls, pOrTab+8+uintptr(k)*112, origSrc+uintptr((*WhereLevel)(unsafe.Pointer(pLevel+uintptr(k)*96)).FiFrom)*112, uint64(unsafe.Sizeof(SrcItem{}))) - } - } else { - pOrTab = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList - } + pOrWc = *(*uintptr)(unsafe.Pointer(pTerm + 32)) + (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Return) + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp1 = regReturn - // Initialize the rowset register to contain NULL. An SQL NULL is - // equivalent to an empty rowset. Or, create an ephemeral index - // capable of holding primary keys in the case of a WITHOUT ROWID. - // - // Also initialize regReturn to contain the address of the instruction - // immediately following the OP_Return at the bottom of the loop. This - // is required in a few obscure LEFT JOIN cases where control jumps - // over the top of the loop into the body of it. In this case the - // correct response for the end-of-loop code (the OP_Return) is to - // fall through to the next instruction, just as an OP_Next does if - // called on an uninitialized cursor. - if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_DUPLICATES_OK == 0 { - if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0) { - regRowset = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) - Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regRowset) - } else { - var pPk uintptr = Xsqlite3PrimaryKeyIndex(tls, pTab) - regRowset = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) - Xsqlite3VdbeAddOp2(tls, v, OP_OpenEphemeral, regRowset, int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol)) - Xsqlite3VdbeSetP4KeyInfo(tls, pParse, pPk) - } - regRowid = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) + // Set up a new SrcList in pOrTab containing the table being scanned + // by this loop in the a[0] slot and all notReady tables in a[1..] slots. + // This becomes the SrcList in the recursive call to sqlite3WhereBegin(). + if !(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) > 1) { + goto __115 + } // Original list of tables + nNotReady = int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) - iLevel - 1 + pOrTab = Xsqlite3DbMallocRaw(tls, db, uint64(unsafe.Sizeof(SrcList{}))+uint64(nNotReady)*uint64(unsafe.Sizeof(SrcItem{}))) + if !(pOrTab == uintptr(0)) { + goto __117 + } + return notReady +__117: + ; + (*SrcList)(unsafe.Pointer(pOrTab)).FnAlloc = U32(U8(nNotReady + 1)) + (*SrcList)(unsafe.Pointer(pOrTab)).FnSrc = int32((*SrcList)(unsafe.Pointer(pOrTab)).FnAlloc) + libc.Xmemcpy(tls, pOrTab+8, pTabItem, uint64(unsafe.Sizeof(SrcItem{}))) + origSrc = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 /* &.a */ + k = 1 +__118: + if !(k <= nNotReady) { + goto __120 + } + libc.Xmemcpy(tls, pOrTab+8+uintptr(k)*104, origSrc+uintptr((*WhereLevel)(unsafe.Pointer(pLevel+uintptr(k)*104)).FiFrom)*104, uint64(unsafe.Sizeof(SrcItem{}))) + goto __119 +__119: + k++ + goto __118 + goto __120 +__120: + ; + goto __116 +__115: + pOrTab = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList +__116: + ; + + // Initialize the rowset register to contain NULL. An SQL NULL is + // equivalent to an empty rowset. Or, create an ephemeral index + // capable of holding primary keys in the case of a WITHOUT ROWID. + // + // Also initialize regReturn to contain the address of the instruction + // immediately following the OP_Return at the bottom of the loop. This + // is required in a few obscure LEFT JOIN cases where control jumps + // over the top of the loop into the body of it. In this case the + // correct response for the end-of-loop code (the OP_Return) is to + // fall through to the next instruction, just as an OP_Next does if + // called on an uninitialized cursor. + if !(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_DUPLICATES_OK == 0) { + goto __121 + } + if !((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) { + goto __122 + } + regRowset = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) + Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regRowset) + goto __123 +__122: + pPk1 = Xsqlite3PrimaryKeyIndex(tls, pTab) + regRowset = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) + Xsqlite3VdbeAddOp2(tls, v, OP_OpenEphemeral, regRowset, int32((*Index)(unsafe.Pointer(pPk1)).FnKeyCol)) + Xsqlite3VdbeSetP4KeyInfo(tls, pParse, pPk1) +__123: + ; + regRowid = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) +__121: + ; + iRetInit = Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, regReturn) + + // If the original WHERE clause is z of the form: (x1 OR x2 OR ...) AND y + // Then for every term xN, evaluate as the subexpression: xN AND y + // That way, terms in y that are factored into the disjunction will + // be picked up by the recursive calls to sqlite3WhereBegin() below. + // + // Actually, each subexpression is converted to "xN AND w" where w is + // the "interesting" terms of z - terms that did not originate in the + // ON or USING clause of a LEFT JOIN, and terms that are usable as + // indices. + // + // This optimization also only applies if the (x1 OR x2 OR ...) term + // is not contained in the ON clause of a LEFT JOIN. + // See ticket http://www.sqlite.org/src/info/f2369304e4 + // + // 2022-02-04: Do not push down slices of a row-value comparison. + // In other words, "w" or "y" may not be a slice of a vector. Otherwise, + // the initialization of the right-hand operand of the vector comparison + // might not occur, or might occur only in an OR branch that is not + // taken. dbsqlfuzz 80a9fade844b4fb43564efc972bcb2c68270f5d1. + // + // 2022-03-03: Do not push down expressions that involve subqueries. + // The subquery might get coded as a subroutine. Any table-references + // in the subquery might be resolved to index-references for the index on + // the OR branch in which the subroutine is coded. But if the subroutine + // is invoked from a different OR branch that uses a different index, such + // index-references will not work. tag-20220303a + // https://sqlite.org/forum/forumpost/36937b197273d403 + if !((*WhereClause)(unsafe.Pointer(pWC)).FnTerm > 1) { + goto __124 + } + iTerm = 0 +__125: + if !(iTerm < (*WhereClause)(unsafe.Pointer(pWC)).FnTerm) { + goto __127 + } + pExpr = (*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(iTerm)*56)).FpExpr + if !((*WhereClause)(unsafe.Pointer(pWC)).Fa+uintptr(iTerm)*56 == pTerm) { + goto __128 + } + goto __126 +__128: + ; + + if !(int32((*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa+uintptr(iTerm)*56)).FwtFlags)&(TERM_VIRTUAL|TERM_CODED|TERM_SLICE) != 0) { + goto __129 + } + goto __126 +__129: + ; + if !(int32((*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa+uintptr(iTerm)*56)).FeOperator)&WO_ALL == 0) { + goto __130 + } + goto __126 +__130: + ; + if !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Subquery) != U32(0)) { + goto __131 + } + goto __126 +__131: + ; // tag-20220303a + pExpr = Xsqlite3ExprDup(tls, db, pExpr, 0) + pAndExpr = Xsqlite3ExprAnd(tls, pParse, pAndExpr, pExpr) + goto __126 +__126: + iTerm++ + goto __125 + goto __127 +__127: + ; + if !(pAndExpr != 0) { + goto __132 + } + // The extra 0x10000 bit on the opcode is masked off and does not + // become part of the new Expr.op. However, it does make the + // op==TK_AND comparison inside of sqlite3PExpr() false, and this + // prevents sqlite3PExpr() from applying the AND short-circuit + // optimization, which we do not want here. + pAndExpr = Xsqlite3PExpr(tls, pParse, TK_AND|0x10000, uintptr(0), pAndExpr) +__132: + ; +__124: + ; + + // Run a separate WHERE clause for each term of the OR clause. After + // eliminating duplicates from other WHERE clauses, the action for each + // sub-WHERE clause is to to invoke the main loop body as a subroutine. + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+22942, 0) + ii = 0 +__133: + if !(ii < (*WhereClause)(unsafe.Pointer(pOrWc)).FnTerm) { + goto __135 + } + pOrTerm = (*WhereClause)(unsafe.Pointer(pOrWc)).Fa + uintptr(ii)*56 + if !((*WhereTerm)(unsafe.Pointer(pOrTerm)).FleftCursor == iCur || int32((*WhereTerm)(unsafe.Pointer(pOrTerm)).FeOperator)&WO_AND != 0) { + goto __136 + } // Info for single OR-term scan + pOrExpr = (*WhereTerm)(unsafe.Pointer(pOrTerm)).FpExpr // Local copy of OR clause term + jmp1 = 0 // Address of jump operation + // See TH3 vtab25.400 and ticket 614b25314c766238 + pDelete = libc.AssignUintptr(&pOrExpr, Xsqlite3ExprDup(tls, db, pOrExpr, 0)) + if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { + goto __137 + } + Xsqlite3ExprDelete(tls, db, pDelete) + goto __134 +__137: + ; + if !(pAndExpr != 0) { + goto __138 + } + (*Expr)(unsafe.Pointer(pAndExpr)).FpLeft = pOrExpr + pOrExpr = pAndExpr +__138: + ; + // Loop through table entries that match term pOrTerm. + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+22957, libc.VaList(bp, ii+1)) + + pSubWInfo = Xsqlite3WhereBegin(tls, pParse, pOrTab, pOrExpr, uintptr(0), uintptr(0), uintptr(0), + uint16(WHERE_OR_SUBCLAUSE), iCovCur) + + if !(pSubWInfo != 0) { + goto __139 + } + addrExplain = Xsqlite3WhereExplainOneScan(tls, + pParse, pOrTab, pSubWInfo+872, uint16(0)) + _ = addrExplain + + // This is the sub-WHERE clause body. First skip over + // duplicate rows from prior sub-WHERE clauses, and record the + // rowid (or PRIMARY KEY) for the current row so that the same + // row will be skipped in subsequent sub-WHERE clauses. + if !(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_DUPLICATES_OK == 0) { + goto __140 + } + iSet = func() int32 { + if ii == (*WhereClause)(unsafe.Pointer(pOrWc)).FnTerm-1 { + return -1 } - iRetInit = Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, regReturn) + return ii + }() + if !((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) { + goto __141 + } + Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iCur, -1, regRowid) + jmp1 = Xsqlite3VdbeAddOp4Int(tls, v, OP_RowSetTest, regRowset, 0, + regRowid, iSet) - // If the original WHERE clause is z of the form: (x1 OR x2 OR ...) AND y - // Then for every term xN, evaluate as the subexpression: xN AND y - // That way, terms in y that are factored into the disjunction will - // be picked up by the recursive calls to sqlite3WhereBegin() below. - // - // Actually, each subexpression is converted to "xN AND w" where w is - // the "interesting" terms of z - terms that did not originate in the - // ON or USING clause of a LEFT JOIN, and terms that are usable as - // indices. - // - // This optimization also only applies if the (x1 OR x2 OR ...) term - // is not contained in the ON clause of a LEFT JOIN. - // See ticket http://www.sqlite.org/src/info/f2369304e4 - // - // 2022-02-04: Do not push down slices of a row-value comparison. - // In other words, "w" or "y" may not be a slice of a vector. Otherwise, - // the initialization of the right-hand operand of the vector comparison - // might not occur, or might occur only in an OR branch that is not - // taken. dbsqlfuzz 80a9fade844b4fb43564efc972bcb2c68270f5d1. - // - // 2022-03-03: Do not push down expressions that involve subqueries. - // The subquery might get coded as a subroutine. Any table-references - // in the subquery might be resolved to index-references for the index on - // the OR branch in which the subroutine is coded. But if the subroutine - // is invoked from a different OR branch that uses a different index, such - // index-references will not work. tag-20220303a - // https://sqlite.org/forum/forumpost/36937b197273d403 - if (*WhereClause)(unsafe.Pointer(pWC)).FnTerm > 1 { - var iTerm int32 - for iTerm = 0; iTerm < (*WhereClause)(unsafe.Pointer(pWC)).FnTerm; iTerm++ { - var pExpr uintptr = (*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(iTerm)*56)).FpExpr - if (*WhereClause)(unsafe.Pointer(pWC)).Fa+uintptr(iTerm)*56 == pTerm { - continue - } + goto __142 +__141: + pPk2 = Xsqlite3PrimaryKeyIndex(tls, pTab) + nPk = int32((*Index)(unsafe.Pointer(pPk2)).FnKeyCol) - if int32((*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa+uintptr(iTerm)*56)).FwtFlags)&(TERM_VIRTUAL|TERM_CODED|TERM_SLICE) != 0 { - continue - } - if int32((*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa+uintptr(iTerm)*56)).FeOperator)&WO_ALL == 0 { - continue - } - if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_Subquery) != U32(0) { - continue - } // tag-20220303a - pExpr = Xsqlite3ExprDup(tls, db, pExpr, 0) - pAndExpr = Xsqlite3ExprAnd(tls, pParse, pAndExpr, pExpr) - } - if pAndExpr != 0 { - // The extra 0x10000 bit on the opcode is masked off and does not - // become part of the new Expr.op. However, it does make the - // op==TK_AND comparison inside of sqlite3PExpr() false, and this - // prevents sqlite3PExpr() from applying the AND short-circuit - // optimization, which we do not want here. - pAndExpr = Xsqlite3PExpr(tls, pParse, TK_AND|0x10000, uintptr(0), pAndExpr) - } - } - - // Run a separate WHERE clause for each term of the OR clause. After - // eliminating duplicates from other WHERE clauses, the action for each - // sub-WHERE clause is to to invoke the main loop body as a subroutine. - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+22991, 0) - for ii = 0; ii < (*WhereClause)(unsafe.Pointer(pOrWc)).FnTerm; ii++ { - var pOrTerm uintptr = (*WhereClause)(unsafe.Pointer(pOrWc)).Fa + uintptr(ii)*56 - if (*WhereTerm)(unsafe.Pointer(pOrTerm)).FleftCursor == iCur || int32((*WhereTerm)(unsafe.Pointer(pOrTerm)).FeOperator)&WO_AND != 0 { - var pSubWInfo uintptr // Info for single OR-term scan - var pOrExpr uintptr = (*WhereTerm)(unsafe.Pointer(pOrTerm)).FpExpr // Current OR clause term - var pDelete uintptr // Local copy of OR clause term - var jmp1 int32 = 0 // Address of jump operation - // See TH3 vtab25.400 and ticket 614b25314c766238 - pDelete = libc.AssignUintptr(&pOrExpr, Xsqlite3ExprDup(tls, db, pOrExpr, 0)) - if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { - Xsqlite3ExprDelete(tls, db, pDelete) - continue - } - if pAndExpr != 0 { - (*Expr)(unsafe.Pointer(pAndExpr)).FpLeft = pOrExpr - pOrExpr = pAndExpr - } - // Loop through table entries that match term pOrTerm. - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+23006, libc.VaList(bp, ii+1)) - - pSubWInfo = Xsqlite3WhereBegin(tls, pParse, pOrTab, pOrExpr, uintptr(0), uintptr(0), uintptr(0), - uint16(WHERE_OR_SUBCLAUSE), iCovCur) - - if pSubWInfo != 0 { - var pSubLoop uintptr - var addrExplain int32 = Xsqlite3WhereExplainOneScan(tls, - pParse, pOrTab, pSubWInfo+864, uint16(0)) - _ = addrExplain - _ = addrExplain - - // This is the sub-WHERE clause body. First skip over - // duplicate rows from prior sub-WHERE clauses, and record the - // rowid (or PRIMARY KEY) for the current row so that the same - // row will be skipped in subsequent sub-WHERE clauses. - if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_DUPLICATES_OK == 0 { - var iSet int32 = func() int32 { - if ii == (*WhereClause)(unsafe.Pointer(pOrWc)).FnTerm-1 { - return -1 - } - return ii - }() - if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0) { - Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iCur, -1, regRowid) - jmp1 = Xsqlite3VdbeAddOp4Int(tls, v, OP_RowSetTest, regRowset, 0, - regRowid, iSet) + // Read the PK into an array of temp registers. + r = Xsqlite3GetTempRange(tls, pParse, nPk) + iPk = 0 +__143: + if !(iPk < nPk) { + goto __145 + } + iCol = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pPk2)).FaiColumn + uintptr(iPk)*2))) + Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iCur, iCol, r+iPk) + goto __144 +__144: + iPk++ + goto __143 + goto __145 +__145: + ; - } else { - var pPk uintptr = Xsqlite3PrimaryKeyIndex(tls, pTab) - var nPk int32 = int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol) - var iPk int32 - var r int32 - - // Read the PK into an array of temp registers. - r = Xsqlite3GetTempRange(tls, pParse, nPk) - for iPk = 0; iPk < nPk; iPk++ { - var iCol int32 = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pPk)).FaiColumn + uintptr(iPk)*2))) - Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iCur, iCol, r+iPk) - } + // Check if the temp table already contains this key. If so, + // the row has already been included in the result set and + // can be ignored (by jumping past the Gosub below). Otherwise, + // insert the key into the temp table and proceed with processing + // the row. + // + // Use some of the same optimizations as OP_RowSetTest: If iSet + // is zero, assume that the key cannot already be present in + // the temp table. And if iSet is -1, assume that there is no + // need to insert the key into the temp table, as it will never + // be tested for. + if !(iSet != 0) { + goto __146 + } + jmp1 = Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, regRowset, 0, r, nPk) - // Check if the temp table already contains this key. If so, - // the row has already been included in the result set and - // can be ignored (by jumping past the Gosub below). Otherwise, - // insert the key into the temp table and proceed with processing - // the row. - // - // Use some of the same optimizations as OP_RowSetTest: If iSet - // is zero, assume that the key cannot already be present in - // the temp table. And if iSet is -1, assume that there is no - // need to insert the key into the temp table, as it will never - // be tested for. - if iSet != 0 { - jmp1 = Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, regRowset, 0, r, nPk) +__146: + ; + if !(iSet >= 0) { + goto __147 + } + Xsqlite3VdbeAddOp3(tls, v, OP_MakeRecord, r, nPk, regRowid) + Xsqlite3VdbeAddOp4Int(tls, v, OP_IdxInsert, regRowset, regRowid, + r, nPk) + if !(iSet != 0) { + goto __148 + } + Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_USESEEKRESULT)) +__148: + ; +__147: + ; - } - if iSet >= 0 { - Xsqlite3VdbeAddOp3(tls, v, OP_MakeRecord, r, nPk, regRowid) - Xsqlite3VdbeAddOp4Int(tls, v, OP_IdxInsert, regRowset, regRowid, - r, nPk) - if iSet != 0 { - Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_USESEEKRESULT)) - } - } + // Release the array of temp registers + Xsqlite3ReleaseTempRange(tls, pParse, r, nPk) +__142: + ; +__140: + ; - // Release the array of temp registers - Xsqlite3ReleaseTempRange(tls, pParse, r, nPk) - } - } + // Invoke the main loop body as a subroutine + Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, regReturn, iLoopBody) - // Invoke the main loop body as a subroutine - Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, regReturn, iLoopBody) + // Jump here (skipping the main loop body subroutine) if the + // current sub-WHERE row is a duplicate from prior sub-WHEREs. + if !(jmp1 != 0) { + goto __149 + } + Xsqlite3VdbeJumpHere(tls, v, jmp1) +__149: + ; - // Jump here (skipping the main loop body subroutine) if the - // current sub-WHERE row is a duplicate from prior sub-WHEREs. - if jmp1 != 0 { - Xsqlite3VdbeJumpHere(tls, v, jmp1) - } + // The pSubWInfo->untestedTerms flag means that this OR term + // contained one or more AND term from a notReady table. The + // terms from the notReady table could not be tested and will + // need to be tested later. + if !(uint32(int32(*(*uint8)(unsafe.Pointer(pSubWInfo + 76))&0x2>>1)) != 0) { + goto __150 + } + untestedTerms = 1 +__150: + ; - // The pSubWInfo->untestedTerms flag means that this OR term - // contained one or more AND term from a notReady table. The - // terms from the notReady table could not be tested and will - // need to be tested later. - if uint32(int32(*(*uint8)(unsafe.Pointer(pSubWInfo + 76))&0x2>>1)) != 0 { - untestedTerms = 1 - } + // If all of the OR-connected terms are optimized using the same + // index, and the index is opened using the same cursor number + // by each call to sqlite3WhereBegin() made by this loop, it may + // be possible to use that index as a covering index. + // + // If the call to sqlite3WhereBegin() above resulted in a scan that + // uses an index, and this is either the first OR-connected term + // processed or the index is the same as that used by all previous + // terms, set pCov to the candidate covering index. Otherwise, set + // pCov to NULL to indicate that no candidate covering index will + // be available. + pSubLoop = (*WhereLevel)(unsafe.Pointer(pSubWInfo + 872)).FpWLoop - // If all of the OR-connected terms are optimized using the same - // index, and the index is opened using the same cursor number - // by each call to sqlite3WhereBegin() made by this loop, it may - // be possible to use that index as a covering index. - // - // If the call to sqlite3WhereBegin() above resulted in a scan that - // uses an index, and this is either the first OR-connected term - // processed or the index is the same as that used by all previous - // terms, set pCov to the candidate covering index. Otherwise, set - // pCov to NULL to indicate that no candidate covering index will - // be available. - pSubLoop = (*WhereLevel)(unsafe.Pointer(pSubWInfo + 864)).FpWLoop - - if (*WhereLoop)(unsafe.Pointer(pSubLoop)).FwsFlags&U32(WHERE_INDEXED) != U32(0) && - (ii == 0 || *(*uintptr)(unsafe.Pointer(pSubLoop + 24 + 8)) == pCov) && - ((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0) || !(int32(*(*uint16)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pSubLoop + 24 + 8)) + 100))&0x3>>0) == SQLITE_IDXTYPE_PRIMARYKEY)) { - - pCov = *(*uintptr)(unsafe.Pointer(pSubLoop + 24 + 8 /* &.pIndex */)) - } else { - pCov = uintptr(0) - } - if Xsqlite3WhereUsesDeferredSeek(tls, pSubWInfo) != 0 { - libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(1), 0, 0x1) - } + if !((*WhereLoop)(unsafe.Pointer(pSubLoop)).FwsFlags&U32(WHERE_INDEXED) != U32(0) && + (ii == 0 || *(*uintptr)(unsafe.Pointer(pSubLoop + 24 + 8)) == pCov) && + ((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0) || !(int32(*(*uint16)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pSubLoop + 24 + 8)) + 100))&0x3>>0) == SQLITE_IDXTYPE_PRIMARYKEY))) { + goto __151 + } - // Finish the loop through table entries that match term pOrTerm. - Xsqlite3WhereEnd(tls, pSubWInfo) - Xsqlite3VdbeExplainPop(tls, pParse) - } - Xsqlite3ExprDelete(tls, db, pDelete) - } - } - Xsqlite3VdbeExplainPop(tls, pParse) + pCov = *(*uintptr)(unsafe.Pointer(pSubLoop + 24 + 8 /* &.pIndex */)) + goto __152 +__151: + pCov = uintptr(0) +__152: + ; + if !(Xsqlite3WhereUsesDeferredSeek(tls, pSubWInfo) != 0) { + goto __153 + } + libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(1), 0, 0x1) +__153: + ; - *(*uintptr)(unsafe.Pointer(pLevel + 64)) = pCov - if pCov != 0 { - (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur = iCovCur - } - if pAndExpr != 0 { - (*Expr)(unsafe.Pointer(pAndExpr)).FpLeft = uintptr(0) - Xsqlite3ExprDelete(tls, db, pAndExpr) - } - Xsqlite3VdbeChangeP1(tls, v, iRetInit, Xsqlite3VdbeCurrentAddr(tls, v)) - Xsqlite3VdbeGoto(tls, v, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBrk) - Xsqlite3VdbeResolveLabel(tls, v, iLoopBody) + // Finish the loop through table entries that match term pOrTerm. + Xsqlite3WhereEnd(tls, pSubWInfo) + Xsqlite3VdbeExplainPop(tls, pParse) +__139: + ; + Xsqlite3ExprDelete(tls, db, pDelete) +__136: + ; + goto __134 +__134: + ii++ + goto __133 + goto __135 +__135: + ; + Xsqlite3VdbeExplainPop(tls, pParse) - if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) > 1 { - Xsqlite3DbFree(tls, db, pOrTab) - } - if !(untestedTerms != 0) { - disableTerm(tls, pLevel, pTerm) - } - } else { + *(*uintptr)(unsafe.Pointer(pLevel + 72)) = pCov + if !(pCov != 0) { + goto __154 + } + (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur = iCovCur +__154: + ; + if !(pAndExpr != 0) { + goto __155 + } + (*Expr)(unsafe.Pointer(pAndExpr)).FpLeft = uintptr(0) + Xsqlite3ExprDelete(tls, db, pAndExpr) +__155: + ; + Xsqlite3VdbeChangeP1(tls, v, iRetInit, Xsqlite3VdbeCurrentAddr(tls, v)) + Xsqlite3VdbeGoto(tls, v, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBrk) + Xsqlite3VdbeResolveLabel(tls, v, iLoopBody) - if uint32(int32(*(*uint16)(unsafe.Pointer(pTabItem + 60 + 4))&0x20>>5)) != 0 { - // Tables marked isRecursive have only a single row that is stored in - // a pseudo-cursor. No need to Rewind or Next such cursors. - (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Noop) - } else { + // Set the P2 operand of the OP_Return opcode that will end the current + // loop to point to this spot, which is the top of the next containing + // loop. The byte-code formatter will use that P2 value as a hint to + // indent everything in between the this point and the final OP_Return. + // See tag-20220407a in vdbe.c and shell.c - (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = aStep[bRev] - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp1 = iCur - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = 1 + Xsqlite3VdbeAddOp2(tls, v, int32(aStart[bRev]), iCur, addrHalt) + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = Xsqlite3VdbeCurrentAddr(tls, v) - (*WhereLevel)(unsafe.Pointer(pLevel)).Fp5 = U8(SQLITE_STMTSTATUS_FULLSCAN_STEP) - } + if !(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) > 1) { + goto __156 + } + Xsqlite3DbFree(tls, db, pOrTab) +__156: + ; + if !!(untestedTerms != 0) { + goto __157 + } + disableTerm(tls, pLevel, pTerm) +__157: + ; + goto __114 +__113: + ; + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pTabItem + 60 + 4))&0x40>>6)) != 0) { + goto __158 } + // Tables marked isRecursive have only a single row that is stored in + // a pseudo-cursor. No need to Rewind or Next such cursors. + (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = U8(OP_Noop) + goto __159 +__158: + ; + (*WhereLevel)(unsafe.Pointer(pLevel)).Fop = aStep[bRev] + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp1 = iCur + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2 = 1 + Xsqlite3VdbeAddOp2(tls, v, int32(aStart[bRev]), iCur, addrHalt) + + (*WhereLevel)(unsafe.Pointer(pLevel)).Fp5 = U8(SQLITE_STMTSTATUS_FULLSCAN_STEP) +__159: + ; +__114: + ; +__53: + ; +__39: + ; +__35: + ; +__10: + ; +__8: + ; // Insert code to test every subexpression that can be completely // computed using the current set of tables. @@ -177230,68 +178973,120 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI } return 2 }() - for __ccgo := true; __ccgo; __ccgo = iLoop > 0 { - var iNext int32 = 0 // Next value for iLoop - pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa - j = (*WhereClause)(unsafe.Pointer(pWC)).FnTerm - __1: - if !(j > 0) { - goto __3 - } - { - var pE uintptr - var skipLikeAddr int32 = 0 - - if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&(TERM_VIRTUAL|TERM_CODED) != 0 { - goto __2 - } - if (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll&(*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady != uint64(0) { - - libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(1), 1, 0x2) - goto __2 - } - pE = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr +__160: + iNext = 0 // Next value for iLoop + pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa + j = (*WhereClause)(unsafe.Pointer(pWC)).FnTerm +__163: + if !(j > 0) { + goto __165 + } + skipLikeAddr = 0 - if int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&JT_LEFT != 0 && !((*Expr)(unsafe.Pointer(pE)).Fflags&U32(EP_FromJoin) != U32(0)) { - goto __2 - } + if !(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&(TERM_VIRTUAL|TERM_CODED) != 0) { + goto __166 + } + goto __164 +__166: + ; + if !((*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll&(*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady != uint64(0)) { + goto __167 + } - if iLoop == 1 && !(Xsqlite3ExprCoveredByIndex(tls, pE, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur, pIdx) != 0) { - iNext = 2 - goto __2 - } - if iLoop < 3 && int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_VARSELECT != 0 { - if iNext == 0 { - iNext = 3 - } - goto __2 - } + libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(1), 1, 0x2) + goto __164 +__167: + ; + pE = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr - if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_LIKECOND != 0 { - // If the TERM_LIKECOND flag is set, that means that the range search - // is sufficient to guarantee that the LIKE operator is true, so we - // can skip the call to the like(A,B) function. But this only works - // for strings. So do not skip the call to the function on the pass - // that compares BLOBs. - goto __2 - } - Xsqlite3ExprIfFalse(tls, pParse, pE, addrCont, SQLITE_JUMPIFNULL) - if skipLikeAddr != 0 { - Xsqlite3VdbeJumpHere(tls, v, skipLikeAddr) - } - *(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_CODED) + if !(int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&(JT_LEFT|JT_LTORJ|JT_RIGHT) != 0) { + goto __168 + } + if !!((*Expr)(unsafe.Pointer(pE)).Fflags&U32(EP_OuterON|EP_InnerON) != U32(0)) { + goto __169 + } + // Defer processing WHERE clause constraints until after outer + // join processing. tag-20220513a + goto __164 + goto __170 +__169: + if !(int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&JT_LEFT == JT_LEFT && + !((*Expr)(unsafe.Pointer(pE)).Fflags&U32(EP_OuterON) != U32(0))) { + goto __171 + } + goto __164 + goto __172 +__171: + m = Xsqlite3WhereGetMask(tls, pWInfo+608, *(*int32)(unsafe.Pointer(pE + 52))) + if !(m&(*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady != 0) { + goto __173 + } + // An ON clause that is not ripe + goto __164 +__173: + ; +__172: + ; +__170: + ; +__168: + ; + if !(iLoop == 1 && !(Xsqlite3ExprCoveredByIndex(tls, pE, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur, pIdx) != 0)) { + goto __174 + } + iNext = 2 + goto __164 +__174: + ; + if !(iLoop < 3 && int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_VARSELECT != 0) { + goto __175 + } + if !(iNext == 0) { + goto __176 + } + iNext = 3 +__176: + ; + goto __164 +__175: + ; - } - goto __2 - __2: - j-- - pTerm += 56 - goto __1 - goto __3 - __3: - ; - iLoop = iNext + if !(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_LIKECOND != 0) { + goto __177 + } + // If the TERM_LIKECOND flag is set, that means that the range search + // is sufficient to guarantee that the LIKE operator is true, so we + // can skip the call to the like(A,B) function. But this only works + // for strings. So do not skip the call to the function on the pass + // that compares BLOBs. + goto __164 +__177: + ; + Xsqlite3ExprIfFalse(tls, pParse, pE, addrCont, SQLITE_JUMPIFNULL) + if !(skipLikeAddr != 0) { + goto __178 + } + Xsqlite3VdbeJumpHere(tls, v, skipLikeAddr) +__178: + ; + *(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_CODED) + goto __164 +__164: + j-- + pTerm += 56 + goto __163 + goto __165 +__165: + ; + iLoop = iNext + goto __161 +__161: + if iLoop > 0 { + goto __160 } + goto __162 +__162: + ; // Insert code to test for implied constraints based on transitivity // of the "==" operator. @@ -177302,96 +179097,200 @@ func Xsqlite3WhereCodeOneLoopStart(tls *libc.TLS, pParse uintptr, v uintptr, pWI // the implied "t1.a=123" constraint. pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa j = (*WhereClause)(unsafe.Pointer(pWC)).FnBase -__4: +__179: if !(j > 0) { - goto __6 + goto __181 } - { - var pE uintptr - // var sEAlt Expr at bp+24, 72 + if !(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&(TERM_VIRTUAL|TERM_CODED) != 0) { + goto __182 + } + goto __180 +__182: + ; + if !(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&(WO_EQ|WO_IS) == 0) { + goto __183 + } + goto __180 +__183: + ; + if !(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_EQUIV == 0) { + goto __184 + } + goto __180 +__184: + ; + if !((*WhereTerm)(unsafe.Pointer(pTerm)).FleftCursor != iCur) { + goto __185 + } + goto __180 +__185: + ; + if !(int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&(JT_LEFT|JT_LTORJ|JT_RIGHT) != 0) { + goto __186 + } + goto __180 +__186: + ; + pE1 = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr - var pAlt uintptr - if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&(TERM_VIRTUAL|TERM_CODED) != 0 { - goto __5 - } - if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&(WO_EQ|WO_IS) == 0 { - goto __5 - } - if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_EQUIV == 0 { - goto __5 - } - if (*WhereTerm)(unsafe.Pointer(pTerm)).FleftCursor != iCur { - goto __5 - } - if int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&JT_LEFT != 0 { - goto __5 - } - pE = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr + pAlt = Xsqlite3WhereFindTerm(tls, pWC, iCur, *(*int32)(unsafe.Pointer(pTerm + 32)), notReady, + uint32(WO_EQ|WO_IN|WO_IS), uintptr(0)) + if !(pAlt == uintptr(0)) { + goto __187 + } + goto __180 +__187: + ; + if !(int32((*WhereTerm)(unsafe.Pointer(pAlt)).FwtFlags)&TERM_CODED != 0) { + goto __188 + } + goto __180 +__188: + ; + if !(int32((*WhereTerm)(unsafe.Pointer(pAlt)).FeOperator)&WO_IN != 0 && + (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pAlt)).FpExpr)).Fflags&U32(EP_xIsSelect) != U32(0) && + (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pAlt)).FpExpr + 32)))).FpEList)).FnExpr > 1) { + goto __189 + } + goto __180 +__189: + ; - pAlt = Xsqlite3WhereFindTerm(tls, pWC, iCur, *(*int32)(unsafe.Pointer(pTerm + 32)), notReady, - uint32(WO_EQ|WO_IN|WO_IS), uintptr(0)) - if pAlt == uintptr(0) { - goto __5 - } - if int32((*WhereTerm)(unsafe.Pointer(pAlt)).FwtFlags)&TERM_CODED != 0 { - goto __5 - } - if int32((*WhereTerm)(unsafe.Pointer(pAlt)).FeOperator)&WO_IN != 0 && - (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pAlt)).FpExpr)).Fflags&U32(EP_xIsSelect) != U32(0) && - (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pAlt)).FpExpr + 32)))).FpEList)).FnExpr > 1 { - goto __5 - } + *(*Expr)(unsafe.Pointer(bp + 24 /* sEAlt */)) = *(*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pAlt)).FpExpr)) + (*Expr)(unsafe.Pointer(bp + 24 /* &sEAlt */)).FpLeft = (*Expr)(unsafe.Pointer(pE1)).FpLeft + Xsqlite3ExprIfFalse(tls, pParse, bp+24, addrCont, SQLITE_JUMPIFNULL) + *(*U16)(unsafe.Pointer(pAlt + 18)) |= U16(TERM_CODED) + goto __180 +__180: + j-- + pTerm += 56 + goto __179 + goto __181 +__181: + ; - *(*Expr)(unsafe.Pointer(bp + 24 /* sEAlt */)) = *(*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pAlt)).FpExpr)) - (*Expr)(unsafe.Pointer(bp + 24 /* &sEAlt */)).FpLeft = (*Expr)(unsafe.Pointer(pE)).FpLeft - Xsqlite3ExprIfFalse(tls, pParse, bp+24, addrCont, SQLITE_JUMPIFNULL) - *(*U16)(unsafe.Pointer(pAlt + 18)) |= U16(TERM_CODED) + // For a RIGHT OUTER JOIN, record the fact that the current row has + // been matched at least once. + if !((*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ != 0) { + goto __190 + } + jmp11 = 0 + pRJ = (*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ + // pTab is the right-hand table of the RIGHT JOIN. Generate code that + // will record that the current row of that table has been matched at + // least once. This is accomplished by storing the PK for the row in + // both the iMatch index and the regBloom Bloom filter. + pTab1 = (*SrcItem)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104)).FpTab + if !((*Table)(unsafe.Pointer(pTab1)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) { + goto __191 } - goto __5 -__5: - j-- - pTerm += 56 - goto __4 - goto __6 -__6: + r2 = Xsqlite3GetTempRange(tls, pParse, 2) + Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab1, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur, -1, r2+1) + nPk1 = 1 + goto __192 +__191: + pPk3 = Xsqlite3PrimaryKeyIndex(tls, pTab1) + nPk1 = int32((*Index)(unsafe.Pointer(pPk3)).FnKeyCol) + r2 = Xsqlite3GetTempRange(tls, pParse, nPk1+1) + iPk1 = 0 +__193: + if !(iPk1 < nPk1) { + goto __195 + } + iCol1 = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pPk3)).FaiColumn + uintptr(iPk1)*2))) + Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab1, iCur, iCol1, r2+1+iPk1) + goto __194 +__194: + iPk1++ + goto __193 + goto __195 +__195: + ; +__192: + ; + jmp11 = Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FiMatch, 0, r2+1, nPk1) + + Xsqlite3VdbeAddOp3(tls, v, OP_MakeRecord, r2+1, nPk1, r2) + Xsqlite3VdbeAddOp4Int(tls, v, OP_IdxInsert, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FiMatch, r2, r2+1, nPk1) + Xsqlite3VdbeAddOp4Int(tls, v, OP_FilterAdd, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FregBloom, 0, r2+1, nPk1) + Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_USESEEKRESULT)) + Xsqlite3VdbeJumpHere(tls, v, jmp11) + Xsqlite3ReleaseTempRange(tls, pParse, r2, nPk1+1) +__190: ; // For a LEFT OUTER JOIN, generate code that will record the fact that // at least one row of the right table has matched the left table. - if (*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin != 0 { - (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrFirst = Xsqlite3VdbeCurrentAddr(tls, v) - Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 1, (*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin) + if !((*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin != 0) { + goto __196 + } + (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrFirst = Xsqlite3VdbeCurrentAddr(tls, v) + Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 1, (*WhereLevel)(unsafe.Pointer(pLevel)).FiLeftJoin) - pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa - j = 0 - __7: - if !(j < (*WhereClause)(unsafe.Pointer(pWC)).FnBase) { - goto __9 - } - { + if !((*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ == uintptr(0)) { + goto __197 + } + goto code_outer_join_constraints // WHERE clause constraints +__197: + ; +__196: + ; - if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&(TERM_VIRTUAL|TERM_CODED) != 0 { - goto __8 - } - if (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll&(*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady != uint64(0) { + if !((*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ != 0) { + goto __198 + } + pRJ1 = (*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ + Xsqlite3VdbeAddOp2(tls, v, OP_BeginSubrtn, 0, (*WhereRightJoin)(unsafe.Pointer(pRJ1)).FregReturn) + (*WhereRightJoin)(unsafe.Pointer(pRJ1)).FaddrSubrtn = Xsqlite3VdbeCurrentAddr(tls, v) - goto __8 - } + (*Parse)(unsafe.Pointer(pParse)).FwithinRJSubrtn++ - Xsqlite3ExprIfFalse(tls, pParse, (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr, addrCont, SQLITE_JUMPIFNULL) - *(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_CODED) + // WHERE clause constraints must be deferred until after outer join + // row elimination has completed, since WHERE clause constraints apply + // to the results of the OUTER JOIN. The following loop generates the + // appropriate WHERE clause constraint checks. tag-20220513a. +code_outer_join_constraints: + pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa + j = 0 +__199: + if !(j < (*WhereClause)(unsafe.Pointer(pWC)).FnBase) { + goto __201 + } - } - goto __8 - __8: - j++ - pTerm += 56 - goto __7 - goto __9 - __9: + if !(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&(TERM_VIRTUAL|TERM_CODED) != 0) { + goto __202 + } + goto __200 +__202: + ; + if !((*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll&(*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady != uint64(0)) { + goto __203 } + goto __200 +__203: + ; + if !(int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&JT_LTORJ != 0) { + goto __204 + } + goto __200 +__204: + ; + + Xsqlite3ExprIfFalse(tls, pParse, (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr, addrCont, SQLITE_JUMPIFNULL) + *(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_CODED) + goto __200 +__200: + j++ + pTerm += 56 + goto __199 + goto __201 +__201: + ; +__198: + ; + return (*WhereLevel)(unsafe.Pointer(pLevel)).FnotReady } @@ -177404,24 +179303,114 @@ var aStartOp = [8]U8{ U8(OP_SeekLT), // 5: (start_constraints && !startEq && bRev) U8(OP_SeekGE), // 6: (start_constraints && startEq && !bRev) U8(OP_SeekLE), // 7: (start_constraints && startEq && bRev) -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:149307:21 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:150994:21 */ var aEndOp = [4]U8{ U8(OP_IdxGE), // 0: (end_constraints && !bRev && !endEq) U8(OP_IdxGT), // 1: (end_constraints && !bRev && endEq) U8(OP_IdxLE), // 2: (end_constraints && bRev && !endEq) U8(OP_IdxLT), // 3: (end_constraints && bRev && endEq) -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:149317:21 */ -var aStep = [2]U8{U8(OP_Next), U8(OP_Prev)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150035:21 */ -var aStart = [2]U8{U8(OP_Rewind), U8(OP_Last)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150036:21 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:151004:21 */ +var aStep = [2]U8{U8(OP_Next), U8(OP_Prev)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:151730:21 */ +var aStart = [2]U8{U8(OP_Rewind), U8(OP_Last)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:151731:21 */ + +// Generate the code for the loop that finds all non-matched terms +// for a RIGHT JOIN. +func Xsqlite3WhereRightJoinLoop(tls *libc.TLS, pWInfo uintptr, iLevel int32, pLevel uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:151993:37: */ + bp := tls.Alloc(120) + defer tls.Free(120) + + var pParse uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse + var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe + var pRJ uintptr = (*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ + var pSubWhere uintptr = uintptr(0) + var pWC uintptr = pWInfo + 120 + var pSubWInfo uintptr + var pLoop uintptr = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop + var pTabItem uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104 + // var sFrom SrcList at bp+8, 112 + + var mAll Bitmask = uint64(0) + var k int32 + + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+22966, libc.VaList(bp, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pTabItem)).FpTab)).FzName)) + + for k = 0; k < iLevel; k++ { + var iIdxCur int32 + mAll = mAll | (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo+872+uintptr(k)*104)).FpWLoop)).FmaskSelf + Xsqlite3VdbeAddOp1(tls, v, OP_NullRow, (*WhereLevel)(unsafe.Pointer(pWInfo+872+uintptr(k)*104)).FiTabCur) + iIdxCur = (*WhereLevel)(unsafe.Pointer(pWInfo + 872 + uintptr(k)*104)).FiIdxCur + if iIdxCur != 0 { + Xsqlite3VdbeAddOp1(tls, v, OP_NullRow, iIdxCur) + } + } + if int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&JT_LTORJ == 0 { + mAll = mAll | (*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf + for k = 0; k < (*WhereClause)(unsafe.Pointer(pWC)).FnTerm; k++ { + var pTerm uintptr = (*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(k)*56 + if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&(TERM_VIRTUAL|TERM_SLICE) != 0 && + int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator) != WO_ROWVAL { + break + } + if (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll & ^mAll != 0 { + continue + } + if (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_OuterON|EP_InnerON) != U32(0) { + continue + } + pSubWhere = Xsqlite3ExprAnd(tls, pParse, pSubWhere, + Xsqlite3ExprDup(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr, 0)) + } + } + (*SrcList)(unsafe.Pointer(bp + 8 /* &sFrom */)).FnSrc = 1 + (*SrcList)(unsafe.Pointer(bp + 8 /* &sFrom */)).FnAlloc = U32(1) + libc.Xmemcpy(tls, bp+8+8, pTabItem, uint64(unsafe.Sizeof(SrcItem{}))) + (*SrcItem)(unsafe.Pointer(bp + 8 + 8)).Ffg.Fjointype = U8(0) + + (*Parse)(unsafe.Pointer(pParse)).FwithinRJSubrtn++ + pSubWInfo = Xsqlite3WhereBegin(tls, pParse, bp+8, pSubWhere, uintptr(0), uintptr(0), uintptr(0), + uint16(WHERE_RIGHT_JOIN), 0) + if pSubWInfo != 0 { + var iCur int32 = (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur + var r int32 = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) + var nPk int32 + var jmp int32 + var addrCont int32 = Xsqlite3WhereContinueLabel(tls, pSubWInfo) + var pTab uintptr = (*SrcItem)(unsafe.Pointer(pTabItem)).FpTab + if (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0) { + Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iCur, -1, r) + nPk = 1 + } else { + var iPk int32 + var pPk uintptr = Xsqlite3PrimaryKeyIndex(tls, pTab) + nPk = int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol) + *(*int32)(unsafe.Pointer(pParse + 56)) += nPk - 1 + for iPk = 0; iPk < nPk; iPk++ { + var iCol int32 = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pPk)).FaiColumn + uintptr(iPk)*2))) + Xsqlite3ExprCodeGetColumnOfTable(tls, v, pTab, iCur, iCol, r+iPk) + } + } + jmp = Xsqlite3VdbeAddOp4Int(tls, v, OP_Filter, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FregBloom, 0, r, nPk) + + Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FiMatch, addrCont, r, nPk) + + Xsqlite3VdbeJumpHere(tls, v, jmp) + Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FregReturn, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FaddrSubrtn) + Xsqlite3WhereEnd(tls, pSubWInfo) + } + Xsqlite3ExprDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pSubWhere) + Xsqlite3VdbeExplainPop(tls, pParse) + + (*Parse)(unsafe.Pointer(pParse)).FwithinRJSubrtn-- +} // Deallocate all memory associated with a WhereOrInfo object. -func whereOrInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150245:13: */ +func whereOrInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152108:13: */ Xsqlite3WhereClauseClear(tls, p) Xsqlite3DbFree(tls, db, p) } // Deallocate all memory associated with a WhereAndInfo object. -func whereAndInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150253:13: */ +func whereAndInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152116:13: */ Xsqlite3WhereClauseClear(tls, p) Xsqlite3DbFree(tls, db, p) } @@ -177443,14 +179432,14 @@ func whereAndInfoDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqli // WhereTerms. All pointers to WhereTerms should be invalidated after // calling this routine. Such pointers may be reinitialized by referencing // the pWC->a[] array. -func whereClauseInsert(tls *libc.TLS, pWC uintptr, p uintptr, wtFlags U16) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150277:12: */ +func whereClauseInsert(tls *libc.TLS, pWC uintptr, p uintptr, wtFlags U16) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152140:12: */ var pTerm uintptr var idx int32 if (*WhereClause)(unsafe.Pointer(pWC)).FnTerm >= (*WhereClause)(unsafe.Pointer(pWC)).FnSlot { var pOld uintptr = (*WhereClause)(unsafe.Pointer(pWC)).Fa var db uintptr = (*Parse)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpParse)).Fdb - (*WhereClause)(unsafe.Pointer(pWC)).Fa = Xsqlite3DbMallocRawNN(tls, db, uint64(unsafe.Sizeof(WhereTerm{}))*uint64((*WhereClause)(unsafe.Pointer(pWC)).FnSlot)*uint64(2)) + (*WhereClause)(unsafe.Pointer(pWC)).Fa = Xsqlite3WhereMalloc(tls, (*WhereClause)(unsafe.Pointer(pWC)).FpWInfo, uint64(unsafe.Sizeof(WhereTerm{}))*uint64((*WhereClause)(unsafe.Pointer(pWC)).FnSlot)*uint64(2)) if (*WhereClause)(unsafe.Pointer(pWC)).Fa == uintptr(0) { if int32(wtFlags)&TERM_DYNAMIC != 0 { Xsqlite3ExprDelete(tls, db, p) @@ -177459,10 +179448,7 @@ func whereClauseInsert(tls *libc.TLS, pWC uintptr, p uintptr, wtFlags U16) int32 return 0 } libc.Xmemcpy(tls, (*WhereClause)(unsafe.Pointer(pWC)).Fa, pOld, uint64(unsafe.Sizeof(WhereTerm{}))*uint64((*WhereClause)(unsafe.Pointer(pWC)).FnTerm)) - if pOld != pWC+40 { - Xsqlite3DbFree(tls, db, pOld) - } - (*WhereClause)(unsafe.Pointer(pWC)).FnSlot = int32(uint64(Xsqlite3DbMallocSize(tls, db, (*WhereClause)(unsafe.Pointer(pWC)).Fa)) / uint64(unsafe.Sizeof(WhereTerm{}))) + (*WhereClause)(unsafe.Pointer(pWC)).FnSlot = (*WhereClause)(unsafe.Pointer(pWC)).FnSlot * 2 } pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(libc.AssignInt32(&idx, libc.PostIncInt32(&(*WhereClause)(unsafe.Pointer(pWC)).FnTerm, 1)))*56 if int32(wtFlags)&TERM_VIRTUAL == 0 { @@ -177485,14 +179471,14 @@ func whereClauseInsert(tls *libc.TLS, pWC uintptr, p uintptr, wtFlags U16) int32 // Return TRUE if the given operator is one of the operators that is // allowed for an indexable WHERE clause term. The allowed operators are // "=", "<", ">", "<=", ">=", "IN", "IS", and "IS NULL" -func allowedOp(tls *libc.TLS, op int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150319:12: */ +func allowedOp(tls *libc.TLS, op int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152179:12: */ return libc.Bool32(op == TK_IN || op >= TK_EQ && op <= TK_GE || op == TK_ISNULL || op == TK_IS) } // Commute a comparison operator. Expressions of the form "X op Y" // are converted into "Y op X". -func exprCommute(tls *libc.TLS, pParse uintptr, pExpr uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150331:12: */ +func exprCommute(tls *libc.TLS, pParse uintptr, pExpr uintptr) U16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152191:12: */ if int32((*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(pExpr)).FpLeft)).Fop) == TK_VECTOR || int32((*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(pExpr)).FpRight)).Fop) == TK_VECTOR || Xsqlite3BinaryCompareCollSeq(tls, pParse, (*Expr)(unsafe.Pointer(pExpr)).FpLeft, (*Expr)(unsafe.Pointer(pExpr)).FpRight) != Xsqlite3BinaryCompareCollSeq(tls, pParse, (*Expr)(unsafe.Pointer(pExpr)).FpRight, (*Expr)(unsafe.Pointer(pExpr)).FpLeft) { @@ -177512,7 +179498,7 @@ func exprCommute(tls *libc.TLS, pParse uintptr, pExpr uintptr) U16 { /* testdata } // Translate from TK_xx operator to WO_xx bitmask. -func operatorMask(tls *libc.TLS, op int32) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150354:12: */ +func operatorMask(tls *libc.TLS, op int32) U16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152214:12: */ var c U16 if op == TK_IN { @@ -177539,7 +179525,7 @@ func operatorMask(tls *libc.TLS, op int32) U16 { /* testdata/sqlite-amalgamation // that virtual tables cannot participate in the LIKE optimization.) The // collating sequence for the column on the LHS must be appropriate for // the operator. -func isLikeOrGlob(tls *libc.TLS, pParse uintptr, pExpr uintptr, ppPrefix uintptr, pisComplete uintptr, pnoCase uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150392:12: */ +func isLikeOrGlob(tls *libc.TLS, pParse uintptr, pExpr uintptr, ppPrefix uintptr, pisComplete uintptr, pnoCase uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152252:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -177690,17 +179676,17 @@ func isLikeOrGlob(tls *libc.TLS, pParse uintptr, pExpr uintptr, ppPrefix uintptr // Check to see if the pExpr expression is a form that needs to be passed // to the xBestIndex method of virtual tables. Forms of interest include: // -// Expression Virtual Table Operator -// ----------------------- --------------------------------- -// 1. column MATCH expr SQLITE_INDEX_CONSTRAINT_MATCH -// 2. column GLOB expr SQLITE_INDEX_CONSTRAINT_GLOB -// 3. column LIKE expr SQLITE_INDEX_CONSTRAINT_LIKE -// 4. column REGEXP expr SQLITE_INDEX_CONSTRAINT_REGEXP -// 5. column != expr SQLITE_INDEX_CONSTRAINT_NE -// 6. expr != column SQLITE_INDEX_CONSTRAINT_NE -// 7. column IS NOT expr SQLITE_INDEX_CONSTRAINT_ISNOT -// 8. expr IS NOT column SQLITE_INDEX_CONSTRAINT_ISNOT -// 9. column IS NOT NULL SQLITE_INDEX_CONSTRAINT_ISNOTNULL +// Expression Virtual Table Operator +// ----------------------- --------------------------------- +// 1. column MATCH expr SQLITE_INDEX_CONSTRAINT_MATCH +// 2. column GLOB expr SQLITE_INDEX_CONSTRAINT_GLOB +// 3. column LIKE expr SQLITE_INDEX_CONSTRAINT_LIKE +// 4. column REGEXP expr SQLITE_INDEX_CONSTRAINT_REGEXP +// 5. column != expr SQLITE_INDEX_CONSTRAINT_NE +// 6. expr != column SQLITE_INDEX_CONSTRAINT_NE +// 7. column IS NOT expr SQLITE_INDEX_CONSTRAINT_ISNOT +// 8. expr IS NOT column SQLITE_INDEX_CONSTRAINT_ISNOT +// 9. column IS NOT NULL SQLITE_INDEX_CONSTRAINT_ISNOTNULL // // In every case, "column" must be a column of a virtual table. If there // is a match, set *ppLeft to the "column" expression, set *ppRight to the @@ -177711,7 +179697,7 @@ func isLikeOrGlob(tls *libc.TLS, pParse uintptr, pExpr uintptr, ppPrefix uintptr // of virtual table in forms (5) or (7) then return 2. // // If the expression matches none of the patterns above, return 0. -func isAuxiliaryVtabOperator(tls *libc.TLS, db uintptr, pExpr uintptr, peOp2 uintptr, ppLeft uintptr, ppRight uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150571:12: */ +func isAuxiliaryVtabOperator(tls *libc.TLS, db uintptr, pExpr uintptr, peOp2 uintptr, ppLeft uintptr, ppRight uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152431:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -177816,26 +179802,26 @@ type Op2 = struct { FzOp uintptr FeOp2 uint8 F__ccgo_pad1 [7]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150579:18 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152439:18 */ var aOp = [4]Op2{ - {FzOp: ts + 17381, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH)}, - {FzOp: ts + 16702, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB)}, - {FzOp: ts + 16228, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE)}, - {FzOp: ts + 23015, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_REGEXP)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150582:7 */ + {FzOp: ts + 17411, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH)}, + {FzOp: ts + 16741, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB)}, + {FzOp: ts + 16267, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE)}, + {FzOp: ts + 22980, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_REGEXP)}, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152442:7 */ // If the pBase expression originated in the ON or USING clause of // a join, then transfer the appropriate markings over to derived. -func transferJoinMarkings(tls *libc.TLS, pDerived uintptr, pBase uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150683:13: */ - if pDerived != 0 { - *(*U32)(unsafe.Pointer(pDerived + 4)) |= (*Expr)(unsafe.Pointer(pBase)).Fflags & U32(EP_FromJoin) +func transferJoinMarkings(tls *libc.TLS, pDerived uintptr, pBase uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152543:13: */ + if pDerived != 0 && (*Expr)(unsafe.Pointer(pBase)).Fflags&U32(EP_OuterON|EP_InnerON) != U32(0) { + *(*U32)(unsafe.Pointer(pDerived + 4)) |= (*Expr)(unsafe.Pointer(pBase)).Fflags & U32(EP_OuterON|EP_InnerON) *(*int32)(unsafe.Pointer(pDerived + 52)) = *(*int32)(unsafe.Pointer(pBase + 52)) } } // Mark term iChild as being a child of term iParent -func markTermAsChild(tls *libc.TLS, pWC uintptr, iChild int32, iParent int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150693:13: */ +func markTermAsChild(tls *libc.TLS, pWC uintptr, iChild int32, iParent int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152553:13: */ (*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(iChild)*56)).FiParent = iParent (*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(iChild)*56)).FtruthProb = (*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(iParent)*56)).FtruthProb (*WhereTerm)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).Fa+uintptr(iParent)*56)).FnChild++ @@ -177844,7 +179830,7 @@ func markTermAsChild(tls *libc.TLS, pWC uintptr, iChild int32, iParent int32) { // Return the N-th AND-connected subterm of pTerm. Or if pTerm is not // a conjunction, then return just pTerm when N==0. If N is exceeds // the number of available subterms, return NULL. -func whereNthSubterm(tls *libc.TLS, pTerm uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150704:18: */ +func whereNthSubterm(tls *libc.TLS, pTerm uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152564:18: */ if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator) != WO_AND { if N == 0 { return pTerm @@ -177868,14 +179854,14 @@ func whereNthSubterm(tls *libc.TLS, pTerm uintptr, N int32) uintptr { /* testdat // // Some examples: // -// x<y OR x=y --> x<=y -// x=y OR x=y --> x=y -// x<=y OR x<y --> x<=y +// x<y OR x=y --> x<=y +// x=y OR x=y --> x=y +// x<=y OR x<y --> x<=y // // The following is NOT generated: // -// x<y OR x>y --> x!=y -func whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintptr, pTwo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150734:13: */ +// x<y OR x>y --> x!=y +func whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintptr, pTwo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152594:13: */ var eOp U16 = U16(int32((*WhereTerm)(unsafe.Pointer(pOne)).FeOperator) | int32((*WhereTerm)(unsafe.Pointer(pTwo)).FeOperator)) var db uintptr // Database connection (for malloc) var pNew uintptr // New virtual expression @@ -177926,26 +179912,26 @@ func whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintpt // Analyze a term that consists of two or more OR-connected // subterms. So in: // -// ... WHERE (a=5) AND (b=7 OR c=9 OR d=13) AND (d=13) -// ^^^^^^^^^^^^^^^^^^^^ +// ... WHERE (a=5) AND (b=7 OR c=9 OR d=13) AND (d=13) +// ^^^^^^^^^^^^^^^^^^^^ // // This routine analyzes terms such as the middle term in the above example. // A WhereOrTerm object is computed and attached to the term under // analysis, regardless of the outcome of the analysis. Hence: // -// WhereTerm.wtFlags |= TERM_ORINFO -// WhereTerm.u.pOrInfo = a dynamically allocated WhereOrTerm object +// WhereTerm.wtFlags |= TERM_ORINFO +// WhereTerm.u.pOrInfo = a dynamically allocated WhereOrTerm object // // The term being analyzed must have two or more of OR-connected subterms. // A single subterm might be a set of AND-connected sub-subterms. // Examples of terms under analysis: // -// (A) t1.x=t2.y OR t1.x=t2.z OR t1.y=15 OR t1.z=t3.a+5 -// (B) x=expr1 OR expr2=x OR x=expr3 -// (C) t1.x=t2.y OR (t1.x=t2.z AND t1.y=15) -// (D) x=expr1 OR (y>11 AND y<22 AND z LIKE '*hello*') -// (E) (p.a=1 AND q.b=2 AND r.c=3) OR (p.x=4 AND q.y=5 AND r.z=6) -// (F) x>A OR (x=A AND y>=B) +// (A) t1.x=t2.y OR t1.x=t2.z OR t1.y=15 OR t1.z=t3.a+5 +// (B) x=expr1 OR expr2=x OR x=expr3 +// (C) t1.x=t2.y OR (t1.x=t2.z AND t1.y=15) +// (D) x=expr1 OR (y>11 AND y<22 AND z LIKE '*hello*') +// (E) (p.a=1 AND q.b=2 AND r.c=3) OR (p.x=4 AND q.y=5 AND r.z=6) +// (F) x>A OR (x=A AND y>=B) // // CASE 1: // @@ -177954,11 +179940,11 @@ func whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintpt // term that is an equivalent IN expression. In other words, if the term // being analyzed is: // -// x = expr1 OR expr2 = x OR x = expr3 +// x = expr1 OR expr2 = x OR x = expr3 // // then create a new virtual term like this: // -// x IN (expr1,expr2,expr3) +// x IN (expr1,expr2,expr3) // // CASE 2: // @@ -177966,7 +179952,7 @@ func whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintpt // has x=A (for the same x and A) then add a new virtual conjunct term to the // WHERE clause of the form "x>=A". Example: // -// x>A OR (x=A AND y>B) adds: x>=A +// x>A OR (x=A AND y>B) adds: x>=A // // The added conjunct can sometimes be helpful in query planning. // @@ -177974,8 +179960,8 @@ func whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintpt // // If all subterms are indexable by a single table T, then set // -// WhereTerm.eOperator = WO_OR -// WhereTerm.u.pOrInfo->indexable |= the cursor number for table T +// WhereTerm.eOperator = WO_OR +// WhereTerm.u.pOrInfo->indexable |= the cursor number for table T // // A subterm is "indexable" if it is of the form // "T.C <op> <expr>" where C is any column of table T and @@ -178008,7 +179994,7 @@ func whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintpt // // If none of cases 1, 2, or 3 apply, then leave the eOperator set to // zero. This term is not useful for search. -func exprAnalyzeOrTerm(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150861:13: */ +func exprAnalyzeOrTerm(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152721:13: */ var pWInfo uintptr = (*WhereClause)(unsafe.Pointer(pWC)).FpWInfo // WHERE clause processing context var pParse uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse // Parser context var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb // Database connection @@ -178080,7 +180066,7 @@ __1: if allowedOp(tls, int32((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pAndTerm)).FpExpr)).Fop)) != 0 || int32((*WhereTerm)(unsafe.Pointer(pAndTerm)).FeOperator) == WO_AUX { - b = b | Xsqlite3WhereGetMask(tls, pWInfo+600, (*WhereTerm)(unsafe.Pointer(pAndTerm)).FleftCursor) + b = b | Xsqlite3WhereGetMask(tls, pWInfo+608, (*WhereTerm)(unsafe.Pointer(pAndTerm)).FleftCursor) } } @@ -178099,10 +180085,10 @@ __1: // corresponding TERM_VIRTUAL term } else { var b Bitmask - b = Xsqlite3WhereGetMask(tls, pWInfo+600, (*WhereTerm)(unsafe.Pointer(pOrTerm)).FleftCursor) + b = Xsqlite3WhereGetMask(tls, pWInfo+608, (*WhereTerm)(unsafe.Pointer(pOrTerm)).FleftCursor) if int32((*WhereTerm)(unsafe.Pointer(pOrTerm)).FwtFlags)&TERM_VIRTUAL != 0 { var pOther uintptr = (*WhereClause)(unsafe.Pointer(pOrWc)).Fa + uintptr((*WhereTerm)(unsafe.Pointer(pOrTerm)).FiParent)*56 - b = b | Xsqlite3WhereGetMask(tls, pWInfo+600, (*WhereTerm)(unsafe.Pointer(pOther)).FleftCursor) + b = b | Xsqlite3WhereGetMask(tls, pWInfo+608, (*WhereTerm)(unsafe.Pointer(pOther)).FleftCursor) } indexable = indexable & b if int32((*WhereTerm)(unsafe.Pointer(pOrTerm)).FeOperator)&WO_EQ == 0 { @@ -178191,7 +180177,7 @@ __3: goto __8 } - if chngToIN&Xsqlite3WhereGetMask(tls, pWInfo+600, + if chngToIN&Xsqlite3WhereGetMask(tls, pWInfo+608, (*WhereTerm)(unsafe.Pointer(pOrTerm)).FleftCursor) == uint64(0) { // This term must be of the form t1.a==t2.b where t2 is in the // chngToIN set but t1 is not. This term will be either preceded @@ -178317,17 +180303,18 @@ __3: // We already know that pExpr is a binary operator where both operands are // column references. This routine checks to see if pExpr is an equivalence // relation: -// 1. The SQLITE_Transitive optimization must be enabled -// 2. Must be either an == or an IS operator -// 3. Not originating in the ON clause of an OUTER JOIN -// 4. The affinities of A and B must be compatible -// 5a. Both operands use the same collating sequence OR -// 5b. The overall collating sequence is BINARY +// 1. The SQLITE_Transitive optimization must be enabled +// 2. Must be either an == or an IS operator +// 3. Not originating in the ON clause of an OUTER JOIN +// 4. The affinities of A and B must be compatible +// 5a. Both operands use the same collating sequence OR +// 5b. The overall collating sequence is BINARY +// // If this routine returns TRUE, that means that the RHS can be substituted // for the LHS anyplace else in the WHERE clause where the LHS column occurs. // This is an optimization. No harm comes from returning 0. But if 1 is // returned when it should not be, then incorrect answers might result. -func termIsEquivalence(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151135:12: */ +func termIsEquivalence(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:152995:12: */ var aff1 int8 var aff2 int8 var pColl uintptr @@ -178337,7 +180324,7 @@ func termIsEquivalence(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_EQ && int32((*Expr)(unsafe.Pointer(pExpr)).Fop) != TK_IS { return 0 } - if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) { + if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0) { return 0 } aff1 = Xsqlite3ExprAffinity(tls, (*Expr)(unsafe.Pointer(pExpr)).FpLeft) @@ -178356,7 +180343,7 @@ func termIsEquivalence(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* // Recursively walk the expressions of a SELECT statement and generate // a bitmask indicating which tables are used in that expression // tree. -func exprSelectUsage(tls *libc.TLS, pMaskSet uintptr, pS uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151158:16: */ +func exprSelectUsage(tls *libc.TLS, pMaskSet uintptr, pS uintptr) Bitmask { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153018:16: */ var mask Bitmask = uint64(0) for pS != 0 { var pSrc uintptr = (*Select)(unsafe.Pointer(pS)).FpSrc @@ -178368,10 +180355,12 @@ func exprSelectUsage(tls *libc.TLS, pMaskSet uintptr, pS uintptr) Bitmask { /* t if pSrc != uintptr(0) { var i int32 for i = 0; i < (*SrcList)(unsafe.Pointer(pSrc)).FnSrc; i++ { - mask = mask | exprSelectUsage(tls, pMaskSet, (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*112)).FpSelect) - mask = mask | Xsqlite3WhereExprUsage(tls, pMaskSet, (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*112)).FpOn) - if uint32(int32(*(*uint16)(unsafe.Pointer(pSrc + 8 + uintptr(i)*112 + 60 + 4))&0x4>>2)) != 0 { - mask = mask | Xsqlite3WhereExprListUsage(tls, pMaskSet, *(*uintptr)(unsafe.Pointer(pSrc + 8 + uintptr(i)*112 + 96))) + mask = mask | exprSelectUsage(tls, pMaskSet, (*SrcItem)(unsafe.Pointer(pSrc+8+uintptr(i)*104)).FpSelect) + if int32(*(*uint16)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104 + 60 + 4))&0x400>>10) == 0 { + mask = mask | Xsqlite3WhereExprUsage(tls, pMaskSet, *(*uintptr)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104 + 72))) + } + if uint32(int32(*(*uint16)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104 + 60 + 4))&0x4>>2)) != 0 { + mask = mask | Xsqlite3WhereExprListUsage(tls, pMaskSet, *(*uintptr)(unsafe.Pointer(pSrc + 8 + uintptr(i)*104 + 88))) } } } @@ -178391,7 +180380,7 @@ func exprSelectUsage(tls *libc.TLS, pMaskSet uintptr, pS uintptr) Bitmask { /* t // If pExpr is a TK_COLUMN column reference, then this routine always returns // true even if that particular column is not indexed, because the column // might be added to an automatic index later. -func exprMightBeIndexed2(tls *libc.TLS, pFrom uintptr, mPrereq Bitmask, aiCurCol uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151195:28: */ +func exprMightBeIndexed2(tls *libc.TLS, pFrom uintptr, mPrereq Bitmask, aiCurCol uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153057:28: */ var pIdx uintptr var i int32 var iCur int32 @@ -178410,8 +180399,8 @@ __2: goto __3 __3: ; - iCur = (*SrcItem)(unsafe.Pointer(pFrom + 8 + uintptr(i)*112)).FiCursor - for pIdx = (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pFrom + 8 + uintptr(i)*112)).FpTab)).FpIndex; pIdx != 0; pIdx = (*Index)(unsafe.Pointer(pIdx)).FpNext { + iCur = (*SrcItem)(unsafe.Pointer(pFrom + 8 + uintptr(i)*104)).FiCursor + for pIdx = (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pFrom + 8 + uintptr(i)*104)).FpTab)).FpIndex; pIdx != 0; pIdx = (*Index)(unsafe.Pointer(pIdx)).FpNext { if (*Index)(unsafe.Pointer(pIdx)).FaColExpr == uintptr(0) { continue } @@ -178429,7 +180418,7 @@ __3: return 0 } -func exprMightBeIndexed(tls *libc.TLS, pFrom uintptr, mPrereq Bitmask, aiCurCol uintptr, pExpr uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151219:12: */ +func exprMightBeIndexed(tls *libc.TLS, pFrom uintptr, mPrereq Bitmask, aiCurCol uintptr, pExpr uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153081:12: */ // If this expression is a vector to the left or right of a // inequality constraint (>, <, >= or <=), perform the processing // on the first element of the vector. @@ -178470,7 +180459,7 @@ func exprMightBeIndexed(tls *libc.TLS, pFrom uintptr, mPrereq Bitmask, aiCurCol // needs to be freed with the WhereClause) and TERM_VIRTUAL (because it // is a commuted copy of a prior term.) The original term has nChild=1 // and the copy has idxParent set to the index of the original term. -func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151267:13: */ +func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153129:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -178495,7 +180484,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* t } pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(idxTerm)*56 - pMaskSet = pWInfo + 600 + pMaskSet = pWInfo + 608 pExpr = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr // Because malloc() has not failed @@ -178527,14 +180516,28 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* t *(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_VARSELECT) } - if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) { + if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON|EP_InnerON) != U32(0) { var x Bitmask = Xsqlite3WhereGetMask(tls, pMaskSet, *(*int32)(unsafe.Pointer(pExpr + 52))) - prereqAll = prereqAll | x - extraRight = x - uint64(1) // ON clause terms may not be used with an index - // on left table of a LEFT JOIN. Ticket #3015 - if prereqAll>>1 >= x { - Xsqlite3ErrorMsg(tls, pParse, ts+23022, 0) - return + if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0) { + prereqAll = prereqAll | x + extraRight = x - uint64(1) // ON clause terms may not be used with an index + // on left table of a LEFT JOIN. Ticket #3015 + if prereqAll>>1 >= x { + Xsqlite3ErrorMsg(tls, pParse, ts+22987, 0) + return + } + } else if prereqAll>>1 >= x { + // The ON clause of an INNER JOIN references a table to its right. + // Most other SQL database engines raise an error. But SQLite versions + // 3.0 through 3.38 just put the ON clause constraint into the WHERE + // clause and carried on. Beginning with 3.39, raise an error only + // if there is a RIGHT or FULL JOIN in the query. This makes SQLite + // more like other systems, and also preserves legacy. + if (*SrcList)(unsafe.Pointer(pSrc)).FnSrc > 0 && int32((*SrcItem)(unsafe.Pointer(pSrc+8)).Ffg.Fjointype)&JT_LTORJ != 0 { + Xsqlite3ErrorMsg(tls, pParse, ts+22987, 0) + return + } + *(*U32)(unsafe.Pointer(pExpr + 4)) &= libc.Uint32FromInt32(libc.CplInt32(EP_InnerON)) } } (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll = prereqAll @@ -178610,11 +180613,11 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* t (*WhereTerm)(unsafe.Pointer(pNew)).FprereqAll = prereqAll (*WhereTerm)(unsafe.Pointer(pNew)).FeOperator = U16((int32(operatorMask(tls, int32((*Expr)(unsafe.Pointer(pDup)).Fop))) + int32(eExtraOp)) & int32(opMask)) } else if op == TK_ISNULL && - !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0)) && + !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0)) && 0 == Xsqlite3ExprCanBeNull(tls, pLeft) { (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_TRUEFALSE) - *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 8003 /* "false" */ + *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 8047 /* "false" */ *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsFalse) (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll = uint64(0) (*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator = U16(0) @@ -178645,7 +180648,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* t } else if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_NOTNULL { if int32((*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(pExpr)).FpLeft)).Fop) == TK_COLUMN && int32((*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(pExpr)).FpLeft)).FiColumn) >= 0 && - !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0)) { + !((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0)) { var pNewExpr uintptr var pLeft uintptr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft var idxNew int32 @@ -178717,7 +180720,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* t } zCollSeqName = func() uintptr { if *(*int32)(unsafe.Pointer(bp + 20)) != 0 { - return ts + 23063 /* "NOCASE" */ + return ts + 23028 /* "NOCASE" */ } return uintptr(unsafe.Pointer(&Xsqlite3StrBINARY)) }() @@ -178773,7 +180776,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* t } pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr(idxTerm)*56 *(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_CODED | TERM_VIRTUAL) // Disable the original - (*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator = U16(0) + (*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator = U16(WO_ROWVAL) } else if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_IN && *(*int32)(unsafe.Pointer(pTerm + 32 + 4)) == 0 && int32((*Expr)(unsafe.Pointer((*Expr)(unsafe.Pointer(pExpr)).FpLeft)).Fop) == TK_VECTOR && @@ -178805,8 +180808,8 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* t var pNewExpr uintptr pNewExpr = Xsqlite3PExpr(tls, pParse, TK_MATCH, uintptr(0), Xsqlite3ExprDup(tls, db, *(*uintptr)(unsafe.Pointer(bp + 40 /* pRight */)), 0)) - if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0) && pNewExpr != 0 { - *(*U32)(unsafe.Pointer(pNewExpr + 4)) |= U32(EP_FromJoin) + if (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0) && pNewExpr != 0 { + *(*U32)(unsafe.Pointer(pNewExpr + 4)) |= U32(EP_OuterON) *(*int32)(unsafe.Pointer(pNewExpr + 52)) = *(*int32)(unsafe.Pointer(pExpr + 52)) } idxNew = whereClauseInsert(tls, pWC, pNewExpr, uint16(TERM_VIRTUAL|TERM_DYNAMIC)) @@ -178838,7 +180841,7 @@ func exprAnalyze(tls *libc.TLS, pSrc uintptr, pWC uintptr, idxTerm int32) { /* t *(*Bitmask)(unsafe.Pointer(pTerm + 40)) |= extraRight } -var ops = [2]U8{U8(TK_GE), U8(TK_LE)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151436:21 */ +var ops = [2]U8{U8(TK_GE), U8(TK_LE)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153312:21 */ // ************************************************************************** // @@ -178851,9 +180854,9 @@ var ops = [2]U8{U8(TK_GE), U8(TK_LE)} /* testdata/sqlite-amalgamation-3380500/sq // operator specified in the op parameter. The WhereClause structure // is filled with pointers to subexpressions. For example: // -// WHERE a=='hello' AND coalesce(b,11)<10 AND (c+12!=d OR c==22) -// \________/ \_______________/ \________________/ -// slot[0] slot[1] slot[2] +// WHERE a=='hello' AND coalesce(b,11)<10 AND (c+12!=d OR c==22) +// \________/ \_______________/ \________________/ +// slot[0] slot[1] slot[2] // // The original WHERE clause in pExpr is unaltered. All this routine // does is make slot[] entries point to substructure within pExpr. @@ -178861,7 +180864,7 @@ var ops = [2]U8{U8(TK_GE), U8(TK_LE)} /* testdata/sqlite-amalgamation-3380500/sq // In the previous sentence and in the diagram, "slot[]" refers to // the WhereClause.a[] array. The slot[] array grows as needed to contain // all terms of the WHERE clause. -func Xsqlite3WhereSplit(tls *libc.TLS, pWC uintptr, pExpr uintptr, op U8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151732:21: */ +func Xsqlite3WhereSplit(tls *libc.TLS, pWC uintptr, pExpr uintptr, op U8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153608:21: */ var pE2 uintptr = Xsqlite3ExprSkipCollateAndLikely(tls, pExpr) (*WhereClause)(unsafe.Pointer(pWC)).Fop = op @@ -178885,7 +180888,7 @@ func Xsqlite3WhereSplit(tls *libc.TLS, pWC uintptr, pExpr uintptr, op U8) { /* t // (example: "LIMIT 5 OFFSET 10") then the expression codes as a // TK_INTEGER so that it will be available to sqlite3_vtab_rhs_value(). // If not, then it codes as a TK_REGISTER expression. -func whereAddLimitExpr(tls *libc.TLS, pWC uintptr, iReg int32, pExpr uintptr, iCsr int32, eMatchOp int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151756:13: */ +func whereAddLimitExpr(tls *libc.TLS, pWC uintptr, iReg int32, pExpr uintptr, iCsr int32, eMatchOp int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153632:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -178925,19 +180928,19 @@ func whereAddLimitExpr(tls *libc.TLS, pWC uintptr, iReg int32, pExpr uintptr, iC // SELECT statement passed as the second argument. These terms are only // added if: // -// 1. The SELECT statement has a LIMIT clause, and -// 2. The SELECT statement is not an aggregate or DISTINCT query, and -// 3. The SELECT statement has exactly one object in its from clause, and -// that object is a virtual table, and -// 4. There are no terms in the WHERE clause that will not be passed -// to the virtual table xBestIndex method. -// 5. The ORDER BY clause, if any, will be made available to the xBestIndex -// method. +// 1. The SELECT statement has a LIMIT clause, and +// 2. The SELECT statement is not an aggregate or DISTINCT query, and +// 3. The SELECT statement has exactly one object in its from clause, and +// that object is a virtual table, and +// 4. There are no terms in the WHERE clause that will not be passed +// to the virtual table xBestIndex method. +// 5. The ORDER BY clause, if any, will be made available to the xBestIndex +// method. // // LIMIT and OFFSET terms are ignored by most of the planner code. They // exist only so that they may be passed to the xBestIndex method of the // single virtual table in the FROM clause of the SELECT. -func Xsqlite3WhereAddLimit(tls *libc.TLS, pWC uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151809:21: */ +func Xsqlite3WhereAddLimit(tls *libc.TLS, pWC uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153685:21: */ if p != 0 && (*Select)(unsafe.Pointer(p)).FpLimit != 0 && (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Distinct|SF_Aggregate) == U32(0) && @@ -178969,7 +180972,7 @@ func Xsqlite3WhereAddLimit(tls *libc.TLS, pWC uintptr, p uintptr) { /* testdata/ if (*Expr)(unsafe.Pointer(pExpr)).FiTable != iCsr { return } - if int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(ii)*32)).FsortFlags)&KEYINFO_ORDER_BIGNULL != 0 { + if int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(ii)*32)).Ffg.FsortFlags)&KEYINFO_ORDER_BIGNULL != 0 { return } } @@ -178987,7 +180990,7 @@ func Xsqlite3WhereAddLimit(tls *libc.TLS, pWC uintptr, p uintptr) { /* testdata/ } // Initialize a preallocated WhereClause structure. -func Xsqlite3WhereClauseInit(tls *libc.TLS, pWC uintptr, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151855:21: */ +func Xsqlite3WhereClauseInit(tls *libc.TLS, pWC uintptr, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153731:21: */ (*WhereClause)(unsafe.Pointer(pWC)).FpWInfo = pWInfo (*WhereClause)(unsafe.Pointer(pWC)).FhasOr = U8(0) (*WhereClause)(unsafe.Pointer(pWC)).FpOuter = uintptr(0) @@ -179000,7 +181003,7 @@ func Xsqlite3WhereClauseInit(tls *libc.TLS, pWC uintptr, pWInfo uintptr) { /* te // Deallocate a WhereClause structure. The WhereClause structure // itself is not freed. This routine is the inverse of // sqlite3WhereClauseInit(). -func Xsqlite3WhereClauseClear(tls *libc.TLS, pWC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151873:21: */ +func Xsqlite3WhereClauseClear(tls *libc.TLS, pWC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153749:21: */ var db uintptr = (*Parse)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpParse)).Fdb if (*WhereClause)(unsafe.Pointer(pWC)).FnTerm > 0 { @@ -179026,9 +181029,6 @@ func Xsqlite3WhereClauseClear(tls *libc.TLS, pWC uintptr) { /* testdata/sqlite-a a += 56 } } - if (*WhereClause)(unsafe.Pointer(pWC)).Fa != pWC+40 { - Xsqlite3DbFree(tls, db, (*WhereClause)(unsafe.Pointer(pWC)).Fa) - } } // These routines walk (recursively) an expression tree and generate @@ -179037,30 +181037,30 @@ func Xsqlite3WhereClauseClear(tls *libc.TLS, pWC uintptr) { /* testdata/sqlite-a // // sqlite3WhereExprUsage(MaskSet, Expr) -> // -// Return a Bitmask of all tables referenced by Expr. Expr can be -// be NULL, in which case 0 is returned. +// Return a Bitmask of all tables referenced by Expr. Expr can be +// be NULL, in which case 0 is returned. // // sqlite3WhereExprUsageNN(MaskSet, Expr) -> // -// Same as sqlite3WhereExprUsage() except that Expr must not be -// NULL. The "NN" suffix on the name stands for "Not Null". +// Same as sqlite3WhereExprUsage() except that Expr must not be +// NULL. The "NN" suffix on the name stands for "Not Null". // // sqlite3WhereExprListUsage(MaskSet, ExprList) -> // -// Return a Bitmask of all tables referenced by every expression -// in the expression list ExprList. ExprList can be NULL, in which -// case 0 is returned. +// Return a Bitmask of all tables referenced by every expression +// in the expression list ExprList. ExprList can be NULL, in which +// case 0 is returned. // // sqlite3WhereExprUsageFull(MaskSet, ExprList) -> // -// Internal use only. Called only by sqlite3WhereExprUsageNN() for -// complex expressions that require pushing register values onto -// the stack. Many calls to sqlite3WhereExprUsageNN() do not need -// the more complex analysis done by this routine. Hence, the -// computations done by this routine are broken out into a separate -// "no-inline" function to avoid the stack push overhead in the -// common case where it is not needed. -func sqlite3WhereExprUsageFull(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151941:32: */ +// Internal use only. Called only by sqlite3WhereExprUsageNN() for +// complex expressions that require pushing register values onto +// the stack. Many calls to sqlite3WhereExprUsageNN() do not need +// the more complex analysis done by this routine. Hence, the +// computations done by this routine are broken out into a separate +// "no-inline" function to avoid the stack push overhead in the +// common case where it is not needed. +func sqlite3WhereExprUsageFull(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153814:32: */ var mask Bitmask if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_IF_NULL_ROW { mask = Xsqlite3WhereGetMask(tls, pMaskSet, (*Expr)(unsafe.Pointer(p)).FiTable) @@ -179090,7 +181090,7 @@ func sqlite3WhereExprUsageFull(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitma return mask } -func Xsqlite3WhereExprUsageNN(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151967:24: */ +func Xsqlite3WhereExprUsageNN(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153840:24: */ if int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_COLUMN && !((*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_FixedCol) != U32(0)) { return Xsqlite3WhereGetMask(tls, pMaskSet, (*Expr)(unsafe.Pointer(p)).FiTable) } else if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_TokenOnly|EP_Leaf) != U32(0) { @@ -179100,14 +181100,14 @@ func Xsqlite3WhereExprUsageNN(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmas return sqlite3WhereExprUsageFull(tls, pMaskSet, p) } -func Xsqlite3WhereExprUsage(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151976:24: */ +func Xsqlite3WhereExprUsage(tls *libc.TLS, pMaskSet uintptr, p uintptr) Bitmask { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153849:24: */ if p != 0 { return Xsqlite3WhereExprUsageNN(tls, pMaskSet, p) } return uint64(0) } -func Xsqlite3WhereExprListUsage(tls *libc.TLS, pMaskSet uintptr, pList uintptr) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151979:24: */ +func Xsqlite3WhereExprListUsage(tls *libc.TLS, pMaskSet uintptr, pList uintptr) Bitmask { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153852:24: */ var i int32 var mask Bitmask = uint64(0) if pList != 0 { @@ -179124,7 +181124,7 @@ func Xsqlite3WhereExprListUsage(tls *libc.TLS, pMaskSet uintptr, pList uintptr) // end of the WHERE clause. We do not want to analyze these new // virtual terms, so start analyzing at the end and work forward // so that the added virtual terms are never processed. -func Xsqlite3WhereExprAnalyze(tls *libc.TLS, pTabList uintptr, pWC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:151999:21: */ +func Xsqlite3WhereExprAnalyze(tls *libc.TLS, pTabList uintptr, pWC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153872:21: */ var i int32 for i = (*WhereClause)(unsafe.Pointer(pWC)).FnTerm - 1; i >= 0; i-- { exprAnalyze(tls, pTabList, pWC, i) @@ -179136,7 +181136,7 @@ func Xsqlite3WhereExprAnalyze(tls *libc.TLS, pTabList uintptr, pWC uintptr) { /* // // Each function argument translates into an equality constraint against // a HIDDEN column in the table. -func Xsqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152016:21: */ +func Xsqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153889:21: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -179151,17 +181151,18 @@ func Xsqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC } pTab = (*SrcItem)(unsafe.Pointer(pItem)).FpTab - pArgs = *(*uintptr)(unsafe.Pointer(pItem + 96)) + pArgs = *(*uintptr)(unsafe.Pointer(pItem + 88)) if pArgs == uintptr(0) { return } for j = libc.AssignInt32(&k, 0); j < (*ExprList)(unsafe.Pointer(pArgs)).FnExpr; j++ { var pRhs uintptr + var joinType U32 for k < int32((*Table)(unsafe.Pointer(pTab)).FnCol) && int32((*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(k)*24)).FcolFlags)&COLFLAG_HIDDEN == 0 { k++ } if k >= int32((*Table)(unsafe.Pointer(pTab)).FnCol) { - Xsqlite3ErrorMsg(tls, pParse, ts+23070, + Xsqlite3ErrorMsg(tls, pParse, ts+23035, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, j)) return } @@ -179173,13 +181174,16 @@ func Xsqlite3WhereTabFuncArgs(tls *libc.TLS, pParse uintptr, pItem uintptr, pWC (*Expr)(unsafe.Pointer(pColRef)).FiColumn = YnVar(libc.PostIncInt32(&k, 1)) *(*uintptr)(unsafe.Pointer(pColRef + 64)) = pTab - *(*Bitmask)(unsafe.Pointer(pItem + 88)) |= Xsqlite3ExprColUsed(tls, pColRef) + *(*Bitmask)(unsafe.Pointer(pItem + 80)) |= Xsqlite3ExprColUsed(tls, pColRef) pRhs = Xsqlite3PExpr(tls, pParse, TK_UPLUS, Xsqlite3ExprDup(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, (*ExprList_item)(unsafe.Pointer(pArgs+8+uintptr(j)*32)).FpExpr, 0), uintptr(0)) pTerm = Xsqlite3PExpr(tls, pParse, TK_EQ, pColRef, pRhs) - if int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_LEFT != 0 { - Xsqlite3SetJoinExpr(tls, pTerm, (*SrcItem)(unsafe.Pointer(pItem)).FiCursor) + if int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&(JT_LEFT|JT_LTORJ) != 0 { + joinType = U32(EP_OuterON) + } else { + joinType = U32(EP_InnerON) } + Xsqlite3SetJoinExpr(tls, pTerm, (*SrcItem)(unsafe.Pointer(pItem)).FiCursor, joinType) whereClauseInsert(tls, pWC, pTerm, uint16(TERM_DYNAMIC)) } } @@ -179220,7 +181224,7 @@ type HiddenIndexInfo1 = struct { FmHandleIn U32 F__ccgo_pad1 [4]byte FaRhs [1]uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152088:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153965:9 */ //************* End of whereexpr.c ****************************************** //************* Begin file where.c ****************************************** @@ -179250,16 +181254,16 @@ type HiddenIndexInfo1 = struct { // This object is not an API and can be changed from one release to the // next. As long as allocateIndexInfo() and sqlite3_vtab_collation() // agree on the structure, all will be well. -type HiddenIndexInfo = HiddenIndexInfo1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152088:32 */ +type HiddenIndexInfo = HiddenIndexInfo1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153965:32 */ // Return the estimated number of output rows from a WHERE clause -func Xsqlite3WhereOutputRowCount(tls *libc.TLS, pWInfo uintptr) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152106:23: */ +func Xsqlite3WhereOutputRowCount(tls *libc.TLS, pWInfo uintptr) LogEst { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153983:23: */ return (*WhereInfo)(unsafe.Pointer(pWInfo)).FnRowOut } // Return one of the WHERE_DISTINCT_xxxxx values to indicate how this // WHERE clause returns outputs for DISTINCT processing. -func Xsqlite3WhereIsDistinct(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152114:20: */ +func Xsqlite3WhereIsDistinct(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:153991:20: */ return int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct) } @@ -179269,7 +181273,7 @@ func Xsqlite3WhereIsDistinct(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/ // terms means that no sorting is needed at all. A return that // is positive but less than the number of ORDER BY terms means that // block sorting is required. -func Xsqlite3WhereIsOrdered(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152126:20: */ +func Xsqlite3WhereIsOrdered(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154003:20: */ return int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat) } @@ -179294,15 +181298,18 @@ func Xsqlite3WhereIsOrdered(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/s // Returning the continuation the second inner loop is an optimization // that might make the code run a little faster, but should not change // the final answer. -func Xsqlite3WhereOrderByLimitOptLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152153:20: */ +func Xsqlite3WhereOrderByLimitOptLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154030:20: */ var pInner uintptr if !(int32(*(*uint8)(unsafe.Pointer(pWInfo + 76))&0x4>>2) != 0) { // The ORDER BY LIMIT optimization does not apply. Jump to the // continuation of the inner-most loop. return (*WhereInfo)(unsafe.Pointer(pWInfo)).FiContinue } - pInner = pWInfo + 864 + uintptr(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)-1)*96 + pInner = pWInfo + 872 + uintptr(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)-1)*104 + if (*WhereLevel)(unsafe.Pointer(pInner)).FpRJ != 0 { + return (*WhereInfo)(unsafe.Pointer(pWInfo)).FiContinue + } return (*WhereLevel)(unsafe.Pointer(pInner)).FaddrNxt } @@ -179315,7 +181322,7 @@ func Xsqlite3WhereOrderByLimitOptLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* // Any extra OP_Goto that is coded here is an optimization. The // correct answer should be obtained regardless. This OP_Goto just // makes the answer appear faster. -func Xsqlite3WhereMinMaxOptEarlyOut(tls *libc.TLS, v uintptr, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152176:21: */ +func Xsqlite3WhereMinMaxOptEarlyOut(tls *libc.TLS, v uintptr, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154053:21: */ var pInner uintptr var i int32 if !(int32(*(*uint8)(unsafe.Pointer(pWInfo + 76))&0x4>>2) != 0) { @@ -179325,7 +181332,7 @@ func Xsqlite3WhereMinMaxOptEarlyOut(tls *libc.TLS, v uintptr, pWInfo uintptr) { return } for i = int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) - 1; i >= 0; i-- { - pInner = pWInfo + 864 + uintptr(i)*96 + pInner = pWInfo + 872 + uintptr(i)*104 if (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pInner)).FpWLoop)).FwsFlags&U32(WHERE_COLUMN_IN) != U32(0) { Xsqlite3VdbeGoto(tls, v, (*WhereLevel)(unsafe.Pointer(pInner)).FaddrNxt) return @@ -179336,14 +181343,14 @@ func Xsqlite3WhereMinMaxOptEarlyOut(tls *libc.TLS, v uintptr, pWInfo uintptr) { // Return the VDBE address or label to jump to in order to continue // immediately with the next row of a WHERE clause. -func Xsqlite3WhereContinueLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152195:20: */ +func Xsqlite3WhereContinueLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154072:20: */ return (*WhereInfo)(unsafe.Pointer(pWInfo)).FiContinue } // Return the VDBE address or label to jump to in order to break // out of a WHERE loop. -func Xsqlite3WhereBreakLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152204:20: */ +func Xsqlite3WhereBreakLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154081:20: */ return (*WhereInfo)(unsafe.Pointer(pWInfo)).FiBreak } @@ -179362,19 +181369,19 @@ func Xsqlite3WhereBreakLabel(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/ // // aiCur[0] and aiCur[1] both get -1 if the where-clause logic is // unable to use the ONEPASS optimization. -func Xsqlite3WhereOkOnePass(tls *libc.TLS, pWInfo uintptr, aiCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152225:20: */ +func Xsqlite3WhereOkOnePass(tls *libc.TLS, pWInfo uintptr, aiCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154102:20: */ libc.Xmemcpy(tls, aiCur, pWInfo+48, uint64(unsafe.Sizeof(int32(0)))*uint64(2)) return int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FeOnePass) } // Return TRUE if the WHERE loop uses the OP_DeferredSeek opcode to move // the data cursor to the row selected by the index cursor. -func Xsqlite3WhereUsesDeferredSeek(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152241:20: */ +func Xsqlite3WhereUsesDeferredSeek(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154118:20: */ return int32(*(*uint8)(unsafe.Pointer(pWInfo + 76)) & 0x1 >> 0) } // Move the content of pSrc into pDest -func whereOrMove(tls *libc.TLS, pDest uintptr, pSrc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152248:13: */ +func whereOrMove(tls *libc.TLS, pDest uintptr, pSrc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154125:13: */ (*WhereOrSet)(unsafe.Pointer(pDest)).Fn = (*WhereOrSet)(unsafe.Pointer(pSrc)).Fn libc.Xmemcpy(tls, pDest+8, pSrc+8, uint64((*WhereOrSet)(unsafe.Pointer(pDest)).Fn)*uint64(unsafe.Sizeof(WhereOrCost{}))) } @@ -179384,7 +181391,7 @@ func whereOrMove(tls *libc.TLS, pDest uintptr, pSrc uintptr) { /* testdata/sqlit // The new entry might overwrite an existing entry, or it might be // appended, or it might be discarded. Do whatever is the right thing // so that pSet keeps the N_OR_COST best entries seen so far. -func whereOrInsert(tls *libc.TLS, pSet uintptr, prereq Bitmask, rRun LogEst, nOut LogEst) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152260:12: */ +func whereOrInsert(tls *libc.TLS, pSet uintptr, prereq Bitmask, rRun LogEst, nOut LogEst) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154137:12: */ var i U16 var p uintptr i = (*WhereOrSet)(unsafe.Pointer(pSet)).Fn @@ -179461,7 +181468,7 @@ __13: // Return the bitmask for the given cursor number. Return 0 if // iCursor is not in the set. -func Xsqlite3WhereGetMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152297:24: */ +func Xsqlite3WhereGetMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) Bitmask { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154174:24: */ var i int32 if *(*int32)(unsafe.Pointer(pMaskSet + 8)) == iCursor { @@ -179475,20 +181482,44 @@ func Xsqlite3WhereGetMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) Bitmas return uint64(0) } +// Allocate memory that is automatically freed when pWInfo is freed. +func Xsqlite3WhereMalloc(tls *libc.TLS, pWInfo uintptr, nByte U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154192:21: */ + var pBlock uintptr + pBlock = Xsqlite3DbMallocRawNN(tls, (*Parse)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse)).Fdb, nByte+U64(unsafe.Sizeof(WhereMemBlock{}))) + if pBlock != 0 { + (*WhereMemBlock)(unsafe.Pointer(pBlock)).FpNext = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpMemToFree + (*WhereMemBlock)(unsafe.Pointer(pBlock)).Fsz = nByte + (*WhereInfo)(unsafe.Pointer(pWInfo)).FpMemToFree = pBlock + pBlock += 16 + } + return pBlock +} + +func Xsqlite3WhereRealloc(tls *libc.TLS, pWInfo uintptr, pOld uintptr, nByte U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154203:21: */ + var pNew uintptr = Xsqlite3WhereMalloc(tls, pWInfo, nByte) + if pNew != 0 && pOld != 0 { + var pOldBlk uintptr = pOld + pOldBlk -= 16 + + libc.Xmemcpy(tls, pNew, pOld, (*WhereMemBlock)(unsafe.Pointer(pOldBlk)).Fsz) + } + return pNew +} + // Create a new mask for cursor iCursor. // // There is one cursor per table in the FROM clause. The number of // tables in the FROM clause is limited by a test early in the // sqlite3WhereBegin() routine. So we know that the pMaskSet->ix[] // array will never overflow. -func createMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152321:13: */ +func createMask(tls *libc.TLS, pMaskSet uintptr, iCursor int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154222:13: */ *(*int32)(unsafe.Pointer(pMaskSet + 8 + uintptr(libc.PostIncInt32(&(*WhereMaskSet)(unsafe.Pointer(pMaskSet)).Fn, 1))*4)) = iCursor } // If the right-hand branch of the expression is a TK_COLUMN, then return // a pointer to the right-hand branch. Otherwise, return NULL. -func whereRightSubexprIsColumn(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152330:13: */ +func whereRightSubexprIsColumn(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154231:13: */ p = Xsqlite3ExprSkipCollateAndLikely(tls, (*Expr)(unsafe.Pointer(p)).FpRight) if p != uintptr(0) && int32((*Expr)(unsafe.Pointer(p)).Fop) == TK_COLUMN && !((*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_FixedCol) != U32(0)) { return p @@ -179499,7 +181530,7 @@ func whereRightSubexprIsColumn(tls *libc.TLS, p uintptr) uintptr { /* testdata/s // Advance to the next WhereTerm that matches according to the criteria // established when the pScan object was initialized by whereScanInit(). // Return NULL if there are no more matching WhereTerms. -func whereScanNext(tls *libc.TLS, pScan uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152343:18: */ +func whereScanNext(tls *libc.TLS, pScan uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154244:18: */ var iCur int32 // The cursor on the LHS of the term var iColumn I16 // The column on the LHS of the term. -1 for IPK var pX uintptr // An expression being tested @@ -179525,7 +181556,7 @@ func whereScanNext(tls *libc.TLS, pScan uintptr) uintptr { /* testdata/sqlite-am (int32(iColumn) != -2 || Xsqlite3ExprCompareSkip(tls, (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft, (*WhereScan)(unsafe.Pointer(pScan)).FpIdxExpr, iCur) == 0) && - (int32((*WhereScan)(unsafe.Pointer(pScan)).FiEquiv) <= 1 || !((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_FromJoin) != U32(0))) { + (int32((*WhereScan)(unsafe.Pointer(pScan)).FiEquiv) <= 1 || !((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_OuterON) != U32(0))) { if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_EQUIV != 0 && int32((*WhereScan)(unsafe.Pointer(pScan)).FnEquiv) < int32(uint64(unsafe.Sizeof([11]int32{}))/uint64(unsafe.Sizeof(int32(0)))) && libc.AssignUintptr(&pX, whereRightSubexprIsColumn(tls, (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)) != uintptr(0) { @@ -179603,7 +181634,7 @@ func whereScanNext(tls *libc.TLS, pScan uintptr) uintptr { /* testdata/sqlite-am // It is factored out into a separate tail-recursion subroutine so that // the normal whereScanInit() routine, which is a high-runner, does not // need to push registers onto the stack as part of its prologue. -func whereScanInitIndexExpr(tls *libc.TLS, pScan uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152445:34: */ +func whereScanInitIndexExpr(tls *libc.TLS, pScan uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154346:34: */ (*WhereScan)(unsafe.Pointer(pScan)).Fidxaff = Xsqlite3ExprAffinity(tls, (*WhereScan)(unsafe.Pointer(pScan)).FpIdxExpr) return whereScanNext(tls, pScan) } @@ -179625,7 +181656,7 @@ func whereScanInitIndexExpr(tls *libc.TLS, pScan uintptr) uintptr { /* testdata/ // // If X is not the INTEGER PRIMARY KEY then X must be compatible with // index pIdx. -func whereScanInit(tls *libc.TLS, pScan uintptr, pWC uintptr, iCur int32, iColumn int32, opMask U32, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152469:18: */ +func whereScanInit(tls *libc.TLS, pScan uintptr, pWC uintptr, iCur int32, iColumn int32, opMask U32, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154370:18: */ (*WhereScan)(unsafe.Pointer(pScan)).FpOrigWC = pWC (*WhereScan)(unsafe.Pointer(pScan)).FpWC = pWC (*WhereScan)(unsafe.Pointer(pScan)).FpIdxExpr = uintptr(0) @@ -179680,7 +181711,7 @@ func whereScanInit(tls *libc.TLS, pScan uintptr, pWC uintptr, iCur int32, iColum // the form "X <op> Y" where Y is a column in another table if no terms of // the form "X <op> <const-expr>" exist. If no terms with a constant RHS // exist, try to return a term that does not use WO_EQUIV. -func Xsqlite3WhereFindTerm(tls *libc.TLS, pWC uintptr, iCur int32, iColumn int32, notReady Bitmask, op U32, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152533:26: */ +func Xsqlite3WhereFindTerm(tls *libc.TLS, pWC uintptr, iCur int32, iColumn int32, notReady Bitmask, op U32, pIdx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154434:26: */ bp := tls.Alloc(112) defer tls.Free(112) @@ -179710,7 +181741,7 @@ func Xsqlite3WhereFindTerm(tls *libc.TLS, pWC uintptr, iCur int32, iColumn int32 // // If such an expression is found, its index in pList->a[] is returned. If // no expression is found, -1 is returned. -func findIndexCol(tls *libc.TLS, pParse uintptr, pList uintptr, iBase int32, pIdx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152567:12: */ +func findIndexCol(tls *libc.TLS, pParse uintptr, pList uintptr, iBase int32, pIdx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154468:12: */ var i int32 var zColl uintptr = *(*uintptr)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FazColl + uintptr(iCol)*8)) @@ -179731,7 +181762,7 @@ func findIndexCol(tls *libc.TLS, pParse uintptr, pList uintptr, iBase int32, pId } // Return TRUE if the iCol-th column of index pIdx is NOT NULL -func indexColumnNotNull(tls *libc.TLS, pIdx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152597:12: */ +func indexColumnNotNull(tls *libc.TLS, pIdx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154498:12: */ var j int32 j = int32(*(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(iCol)*2))) @@ -179752,7 +181783,7 @@ func indexColumnNotNull(tls *libc.TLS, pIdx uintptr, iCol int32) int32 { /* test // // A DISTINCT list is redundant if any subset of the columns in the // DISTINCT list are collectively unique and individually non-null. -func isDistinctRedundant(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWC uintptr, pDistinct uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152620:12: */ +func isDistinctRedundant(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWC uintptr, pDistinct uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154521:12: */ var pTab uintptr var pIdx uintptr var i int32 @@ -179822,7 +181853,7 @@ func isDistinctRedundant(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWC ui } // Estimate the logarithm of the input value to base 2. -func estLog(tls *libc.TLS, N LogEst) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152684:15: */ +func estLog(tls *libc.TLS, N LogEst) LogEst { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154585:15: */ if int32(N) <= 10 { return int16(0) } @@ -179839,7 +181870,7 @@ func estLog(tls *libc.TLS, N LogEst) LogEst { /* testdata/sqlite-amalgamation-33 // cursor iTabCur are transformed into OP_Sequence opcode for the // iAutoidxCur cursor, in order to generate unique rowids for the // automatic index being generated. -func translateColumnToCopy(tls *libc.TLS, pParse uintptr, iStart int32, iTabCur int32, iRegister int32, iAutoidxCur int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152700:13: */ +func translateColumnToCopy(tls *libc.TLS, pParse uintptr, iStart int32, iTabCur int32, iRegister int32, iAutoidxCur int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154601:13: */ var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var pOp uintptr = Xsqlite3VdbeGetOp(tls, v, iStart) var iEnd int32 = Xsqlite3VdbeCurrentAddr(tls, v) @@ -179859,6 +181890,7 @@ __1: (*VdbeOp)(unsafe.Pointer(pOp)).Fp1 = (*VdbeOp)(unsafe.Pointer(pOp)).Fp2 + iRegister (*VdbeOp)(unsafe.Pointer(pOp)).Fp2 = (*VdbeOp)(unsafe.Pointer(pOp)).Fp3 (*VdbeOp)(unsafe.Pointer(pOp)).Fp3 = 0 + (*VdbeOp)(unsafe.Pointer(pOp)).Fp5 = U16(2) // Cause the MEM_Subtype flag to be cleared } else if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fopcode) == OP_Rowid { (*VdbeOp)(unsafe.Pointer(pOp)).Fopcode = U8(OP_Sequence) (*VdbeOp)(unsafe.Pointer(pOp)).Fp1 = iAutoidxCur @@ -179882,7 +181914,7 @@ __3: // Return TRUE if the WHERE clause term pTerm is of a form where it // could be used with an index to access pSrc, assuming an appropriate // index existed. -func termCanDriveIndex(tls *libc.TLS, pTerm uintptr, pSrc uintptr, notReady Bitmask) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152784:12: */ +func termCanDriveIndex(tls *libc.TLS, pTerm uintptr, pSrc uintptr, notReady Bitmask) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154686:12: */ var aff int8 if (*WhereTerm)(unsafe.Pointer(pTerm)).FleftCursor != (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor { return 0 @@ -179890,13 +181922,13 @@ func termCanDriveIndex(tls *libc.TLS, pTerm uintptr, pSrc uintptr, notReady Bitm if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&(WO_EQ|WO_IS) == 0 { return 0 } - if int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&JT_LEFT != 0 && - !((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_FromJoin) != U32(0)) && - int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_IS != 0 { - // Cannot use an IS term from the WHERE clause as an index driver for - // the RHS of a LEFT JOIN. Such a term can only be used if it is from - // the ON clause. - return 0 + + if int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&(JT_LEFT|JT_LTORJ|JT_RIGHT) != 0 { + + if !((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_OuterON|EP_InnerON) != U32(0)) || + *(*int32)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr + 52)) != (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor { + return 0 // See tag-20191211-001 + } } if (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqRight¬Ready != uint64(0) { return 0 @@ -179916,7 +181948,7 @@ func termCanDriveIndex(tls *libc.TLS, pTerm uintptr, pSrc uintptr, notReady Bitm // Generate code to construct the Index object for an automatic index // and to set up the WhereLevel object pLevel so that the code generator // makes use of the automatic index. -func constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, pSrc uintptr, notReady Bitmask, pLevel uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:152818:29: */ +func constructAutomaticIndex(tls *libc.TLS, pParse uintptr, pWC uintptr, pSrc uintptr, notReady Bitmask, pLevel uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154723:29: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -180001,7 +182033,7 @@ __4: goto __6 } Xsqlite3_log(tls, SQLITE_WARNING|int32(1)<<8, - ts+23106, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName, + ts+23071, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTable)).FaCol+uintptr(iCol)*24)).FzCnName)) sentWarning = U8(1) __6: @@ -180082,7 +182114,7 @@ __13: __14: ; *(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.pIndex */)) = pIdx - (*Index)(unsafe.Pointer(pIdx)).FzName = ts + 23132 /* "auto-index" */ + (*Index)(unsafe.Pointer(pIdx)).FzName = ts + 23097 /* "auto-index" */ (*Index)(unsafe.Pointer(pIdx)).FpTable = pTable n = 0 idxCols = uint64(0) @@ -180190,8 +182222,8 @@ __28: ; // Fill the automatic index with content - pTabItem = (*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112 - if !(uint32(int32(*(*uint16)(unsafe.Pointer(pTabItem + 60 + 4))&0x10>>4)) != 0) { + pTabItem = (*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104 + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pTabItem + 60 + 4))&0x20>>5)) != 0) { goto __29 } regYield = (*SrcItem)(unsafe.Pointer(pTabItem)).FregReturn @@ -180230,7 +182262,7 @@ __32: Xsqlite3VdbeResolveLabel(tls, v, iContinue) __33: ; - if !(uint32(int32(*(*uint16)(unsafe.Pointer(pTabItem + 60 + 4))&0x10>>4)) != 0) { + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pTabItem + 60 + 4))&0x20>>5)) != 0) { goto __34 } Xsqlite3VdbeChangeP2(tls, v, addrCounter, regBase+n) @@ -180238,7 +182270,7 @@ __33: translateColumnToCopy(tls, pParse, addrTop, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur, (*SrcItem)(unsafe.Pointer(pTabItem)).FregResult, (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur) Xsqlite3VdbeGoto(tls, v, addrTop) - libc.SetBitFieldPtr16Uint32(pTabItem+60+4, uint32(0), 4, 0x10) + libc.SetBitFieldPtr16Uint32(pTabItem+60+4, uint32(0), 5, 0x20) goto __35 __34: Xsqlite3VdbeAddOp2(tls, v, OP_Next, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur, addrTop+1) @@ -180273,7 +182305,7 @@ end_auto_index_create: // This routine may only be called if it has previously been determined that // the loop would benefit from a Bloom filter, and the WHERE_BLOOMFILTER bit // is set. -func sqlite3ConstructBloomFilter(tls *libc.TLS, pWInfo uintptr, iLevel int32, pLevel uintptr, notReady Bitmask) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153052:29: */ +func sqlite3ConstructBloomFilter(tls *libc.TLS, pWInfo uintptr, iLevel int32, pLevel uintptr, notReady Bitmask) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:154957:29: */ var addrOnce int32 // Address of opening OP_Once var addrTop int32 // Address of OP_Rewind var addrCont int32 // Jump here to skip a row @@ -180301,7 +182333,7 @@ func sqlite3ConstructBloomFilter(tls *libc.TLS, pWInfo uintptr, iLevel int32, pL // P3==1 and use that value to initialize the blob. But that makes // testing complicated. By basing the blob size on the value in the // sqlite_stat1 table, testing is much easier. - pItem = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112 + pItem = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104 pTab = (*SrcItem)(unsafe.Pointer(pItem)).FpTab @@ -180350,9 +182382,9 @@ func sqlite3ConstructBloomFilter(tls *libc.TLS, pWInfo uintptr, iLevel int32, pL } for libc.PreIncInt32(&iLevel, 1) < int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) { var pTabItem uintptr - pLevel = pWInfo + 864 + uintptr(iLevel)*96 - pTabItem = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112 - if int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&JT_LEFT != 0 { + pLevel = pWInfo + 872 + uintptr(iLevel)*104 + pTabItem = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104 + if int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&(JT_LEFT|JT_LTORJ) != 0 { continue } pLoop = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop @@ -180378,7 +182410,7 @@ func sqlite3ConstructBloomFilter(tls *libc.TLS, pWInfo uintptr, iLevel int32, pL // Allocate and populate an sqlite3_index_info structure. It is the // responsibility of the caller to eventually release the structure // by passing the pointer returned by this function to freeIndexInfo(). -func allocateIndexInfo(tls *libc.TLS, pWInfo uintptr, pWC uintptr, mUnusable Bitmask, pSrc uintptr, pmNoOmit uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153165:27: */ +func allocateIndexInfo(tls *libc.TLS, pWInfo uintptr, pWC uintptr, mUnusable Bitmask, pSrc uintptr, pmNoOmit uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:155070:27: */ var i int32 var j int32 var nTerm int32 @@ -180423,11 +182455,15 @@ __1: } // tag-20191211-002: WHERE-clause constraints are not useful to the - // right-hand table of a LEFT JOIN. See tag-20191211-001 for the + // right-hand table of a LEFT JOIN nor to the either table of a + // RIGHT JOIN. See tag-20191211-001 for the // equivalent restriction for ordinary tables. - if int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&JT_LEFT != 0 && - !((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_FromJoin) != U32(0)) { - goto __2 + if int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&(JT_LEFT|JT_LTORJ|JT_RIGHT) != 0 { + + if !((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_OuterON|EP_InnerON) != U32(0)) || + *(*int32)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr + 52)) != (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor { + goto __2 + } } nTerm++ *(*U16)(unsafe.Pointer(pTerm + 18)) |= U16(TERM_OK) @@ -180458,7 +182494,7 @@ __3: } // Virtual tables are unable to deal with NULLS FIRST - if int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).FsortFlags)&KEYINFO_ORDER_BIGNULL != 0 { + if int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).Ffg.FsortFlags)&KEYINFO_ORDER_BIGNULL != 0 { break } @@ -180493,8 +182529,10 @@ __3: } if i == n { nOrderBy = n - if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&(WHERE_GROUPBY|WHERE_DISTINCTBY) != 0 { - eDistinct = 1 + libc.Bool32(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_DISTINCTBY != 0) + if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_DISTINCTBY != 0 { + eDistinct = 2 + libc.Bool32(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_SORTBYGROUP != 0) + } else if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_GROUPBY != 0 { + eDistinct = 1 } } } @@ -180593,7 +182631,7 @@ __6: } (*sqlite3_index_orderby)(unsafe.Pointer(pIdxOrderBy + uintptr(j)*8)).FiColumn = int32((*Expr)(unsafe.Pointer(pExpr)).FiColumn) - (*sqlite3_index_orderby)(unsafe.Pointer(pIdxOrderBy + uintptr(j)*8)).Fdesc = uint8(int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).FsortFlags) & KEYINFO_ORDER_DESC) + (*sqlite3_index_orderby)(unsafe.Pointer(pIdxOrderBy + uintptr(j)*8)).Fdesc = uint8(int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).Ffg.FsortFlags) & KEYINFO_ORDER_DESC) j++ } (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnOrderBy = j @@ -180604,7 +182642,7 @@ __6: // Free an sqlite3_index_info structure allocated by allocateIndexInfo() // and possibly modified by xBestIndex methods. -func freeIndexInfo(tls *libc.TLS, db uintptr, pIdxInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153364:13: */ +func freeIndexInfo(tls *libc.TLS, db uintptr, pIdxInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:155279:13: */ var pHidden uintptr var i int32 @@ -180631,7 +182669,7 @@ func freeIndexInfo(tls *libc.TLS, db uintptr, pIdxInfo uintptr) { /* testdata/sq // Whether or not an error is returned, it is the responsibility of the // caller to eventually free p->idxStr if p->needToFreeIdxStr indicates // that this is required. -func vtabBestIndex(tls *libc.TLS, pParse uintptr, pTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153394:12: */ +func vtabBestIndex(tls *libc.TLS, pParse uintptr, pTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:155309:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -180648,9 +182686,9 @@ func vtabBestIndex(tls *libc.TLS, pParse uintptr, pTab uintptr, p uintptr) int32 if rc == SQLITE_NOMEM { Xsqlite3OomFault(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb) } else if !(int32((*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg) != 0) { - Xsqlite3ErrorMsg(tls, pParse, ts+4444, libc.VaList(bp, Xsqlite3ErrStr(tls, rc))) + Xsqlite3ErrorMsg(tls, pParse, ts+4479, libc.VaList(bp, Xsqlite3ErrStr(tls, rc))) } else { - Xsqlite3ErrorMsg(tls, pParse, ts+4444, libc.VaList(bp+8, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg)) + Xsqlite3ErrorMsg(tls, pParse, ts+4479, libc.VaList(bp+8, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg)) } } Xsqlite3_free(tls, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg) @@ -180661,15 +182699,15 @@ func vtabBestIndex(tls *libc.TLS, pParse uintptr, pTab uintptr, p uintptr) int32 // Estimate the location of a particular key among all keys in an // index. Store the results in aStat as follows: // -// aStat[0] Est. number of rows less than pRec -// aStat[1] Est. number of rows equal to pRec +// aStat[0] Est. number of rows less than pRec +// aStat[1] Est. number of rows equal to pRec // // Return the index of the sample that is the smallest sample that // is greater than or equal to pRec. Note that this index is not an index // into the aSample[] array - it is an index into a virtual set of samples // based on the contents of aSample[] and the number of fields in record // pRec. -func whereKeyStats(tls *libc.TLS, pParse uintptr, pIdx uintptr, pRec uintptr, roundUp int32, aStat uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153433:12: */ +func whereKeyStats(tls *libc.TLS, pParse uintptr, pIdx uintptr, pRec uintptr, roundUp int32, aStat uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:155348:12: */ var aSample uintptr = (*Index)(unsafe.Pointer(pIdx)).FaSample var iCol int32 // Index of required stats in anEq[] etc. var i int32 // Index of first sample >= pRec @@ -180725,7 +182763,12 @@ func whereKeyStats(tls *libc.TLS, pParse uintptr, pIdx uintptr, pRec uintptr, ro // smaller than sample 1, so the binary search would not work. As a result, // it is extended to two fields. The duplicates that this creates do not // cause any problems. - nField = int32((*UnpackedRecord)(unsafe.Pointer(pRec)).FnField) + nField = func() int32 { + if int32((*UnpackedRecord)(unsafe.Pointer(pRec)).FnField) < (*Index)(unsafe.Pointer(pIdx)).FnSample { + return int32((*UnpackedRecord)(unsafe.Pointer(pRec)).FnField) + } + return (*Index)(unsafe.Pointer(pIdx)).FnSample + }() iCol = 0 iSample = (*Index)(unsafe.Pointer(pIdx)).FnSample * nField for __ccgo := true; __ccgo; __ccgo = res != 0 && iMin < iSample { @@ -180808,7 +182851,7 @@ func whereKeyStats(tls *libc.TLS, pParse uintptr, pIdx uintptr, pRec uintptr, ro // then the return value is the likelihood multiplied by the number of // input rows. Otherwise, this function assumes that an "IS NOT NULL" term // has a likelihood of 0.50, and any other term a likelihood of 0.25. -func whereRangeAdjust(tls *libc.TLS, pTerm uintptr, nNew LogEst) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153625:15: */ +func whereRangeAdjust(tls *libc.TLS, pTerm uintptr, nNew LogEst) LogEst { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:155540:15: */ var nRet LogEst = nNew if pTerm != 0 { if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FtruthProb) <= 0 { @@ -180821,7 +182864,7 @@ func whereRangeAdjust(tls *libc.TLS, pTerm uintptr, nNew LogEst) LogEst { /* tes } // Return the affinity for a single column of an index. -func Xsqlite3IndexColumnAffinity(tls *libc.TLS, db uintptr, pIdx uintptr, iCol int32) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153642:21: */ +func Xsqlite3IndexColumnAffinity(tls *libc.TLS, db uintptr, pIdx uintptr, iCol int32) int8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:155557:21: */ if !(int32((*Index)(unsafe.Pointer(pIdx)).FzColAff) != 0) { if Xsqlite3IndexAffinityStr(tls, db, pIdx) == uintptr(0) { @@ -180835,8 +182878,8 @@ func Xsqlite3IndexColumnAffinity(tls *libc.TLS, db uintptr, pIdx uintptr, iCol i // This function is called to estimate the number of rows visited by a // range-scan on a skip-scan index. For example: // -// CREATE INDEX i1 ON t1(a, b, c); -// SELECT * FROM t1 WHERE a=? AND c BETWEEN ? AND ?; +// CREATE INDEX i1 ON t1(a, b, c); +// SELECT * FROM t1 WHERE a=? AND c BETWEEN ? AND ?; // // Value pLoop->nOut is currently set to the estimated number of rows // visited for scanning (a=? AND b=?). This function reduces that estimate @@ -180852,7 +182895,7 @@ func Xsqlite3IndexColumnAffinity(tls *libc.TLS, db uintptr, pIdx uintptr, iCol i // N is the total number of samples, the pLoop->nOut value is adjusted // as follows: // -// nOut = nOut * ( min(U - L, 1) / N ) +// nOut = nOut * ( min(U - L, 1) / N ) // // If pLower is NULL, or a value cannot be extracted from the term, L is // set to zero. If pUpper is NULL, or a value cannot be extracted from it, @@ -180865,7 +182908,7 @@ func Xsqlite3IndexColumnAffinity(tls *libc.TLS, db uintptr, pIdx uintptr, iCol i // // If an error occurs, an SQLite error code is returned. Otherwise, // SQLITE_OK. -func whereRangeSkipScanEst(tls *libc.TLS, pParse uintptr, pLower uintptr, pUpper uintptr, pLoop uintptr, pbDone uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153689:12: */ +func whereRangeSkipScanEst(tls *libc.TLS, pParse uintptr, pLower uintptr, pUpper uintptr, pLoop uintptr, pbDone uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:155604:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -180948,10 +182991,10 @@ func whereRangeSkipScanEst(tls *libc.TLS, pParse uintptr, pLower uintptr, pUpper // and lower bounds are represented by pLower and pUpper respectively. For // example, assuming that index p is on t1(a): // -// ... FROM t1 WHERE a > ? AND a < ? ... -// |_____| |_____| -// | | -// pLower pUpper +// ... FROM t1 WHERE a > ? AND a < ? ... +// |_____| |_____| +// | | +// pLower pUpper // // If either of the upper or lower bound is not present, then NULL is passed in // place of the corresponding WhereTerm. @@ -180961,12 +183004,12 @@ func whereRangeSkipScanEst(tls *libc.TLS, pParse uintptr, pLower uintptr, pUpper // equality constraints optimized by the proposed index scan. For example, // assuming index p is on t1(a, b), and the SQL query is: // -// ... FROM t1 WHERE a = ? AND b > ? AND b < ? ... +// ... FROM t1 WHERE a = ? AND b > ? AND b < ? ... // // then nEq is set to 1 (as the range restricted column, b, is the second // left-most column of the index). Or, if the query is: // -// ... FROM t1 WHERE a > ? AND a < ? ... +// ... FROM t1 WHERE a > ? AND a < ? ... // // then nEq is set to 0. // @@ -180980,7 +183023,7 @@ func whereRangeSkipScanEst(tls *libc.TLS, pParse uintptr, pLower uintptr, pUpper // used, a single range inequality reduces the search space by a factor of 4. // and a pair of constraints (x>? AND x<?) reduces the expected number of // rows visited by a factor of 64. -func whereRangeScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pLower uintptr, pUpper uintptr, pLoop uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153801:12: */ +func whereRangeScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pLower uintptr, pUpper uintptr, pLoop uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:155716:12: */ bp := tls.Alloc(28) defer tls.Free(28) @@ -181176,7 +183219,7 @@ func whereRangeScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pLower u // required for string comparison, or if unable to allocate memory // for a UTF conversion required for comparison. The error is stored // in the pParse structure. -func whereEqualScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pExpr uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:153982:12: */ +func whereEqualScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pExpr uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:155897:12: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -181222,7 +183265,7 @@ func whereEqualScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pExpr ui // an IN constraint where the right-hand side of the IN operator // is a list of values. Example: // -// WHERE x IN (1,2,3,4) +// WHERE x IN (1,2,3,4) // // Write the estimated row count into *pnRow and return SQLITE_OK. // If unable to make an estimate, leave *pnRow unchanged and return @@ -181232,7 +183275,7 @@ func whereEqualScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pExpr ui // required for string comparison, or if unable to allocate memory // for a UTF conversion required for comparison. The error is stored // in the pParse structure. -func whereInScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pList uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154046:12: */ +func whereInScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pList uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:155961:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -181265,7 +183308,7 @@ func whereInScanEst(tls *libc.TLS, pParse uintptr, pBuilder uintptr, pList uintp // Convert bulk memory into a valid WhereLoop that can be passed // to whereLoopClear harmlessly. -func whereLoopInit(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154193:13: */ +func whereLoopInit(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156108:13: */ (*WhereLoop)(unsafe.Pointer(p)).FaLTerm = p + 88 /* &.aLTermSpace */ (*WhereLoop)(unsafe.Pointer(p)).FnLTerm = U16(0) (*WhereLoop)(unsafe.Pointer(p)).FnLSlot = U16(int32(uint64(unsafe.Sizeof([3]uintptr{})) / uint64(unsafe.Sizeof(uintptr(0))))) @@ -181273,7 +183316,7 @@ func whereLoopInit(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3 } // Clear the WhereLoop.u union. Leave WhereLoop.pLTerm intact. -func whereLoopClearUnion(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154203:13: */ +func whereLoopClearUnion(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156118:13: */ if (*WhereLoop)(unsafe.Pointer(p)).FwsFlags&U32(WHERE_VIRTUALTABLE|WHERE_AUTO_INDEX) != 0 { if (*WhereLoop)(unsafe.Pointer(p)).FwsFlags&U32(WHERE_VIRTUALTABLE) != U32(0) && U32(int32(*(*uint8)(unsafe.Pointer(p + 24 + 4))&0x1>>0)) != 0 { Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(p + 24 + 16 /* &.idxStr */))) @@ -181288,7 +183331,7 @@ func whereLoopClearUnion(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sql } // Deallocate internal memory used by a WhereLoop object -func whereLoopClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154220:13: */ +func whereLoopClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156135:13: */ if (*WhereLoop)(unsafe.Pointer(p)).FaLTerm != p+88 { Xsqlite3DbFreeNN(tls, db, (*WhereLoop)(unsafe.Pointer(p)).FaLTerm) } @@ -181297,7 +183340,7 @@ func whereLoopClear(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-a } // Increase the memory allocation for pLoop->aLTerm[] to be at least n. -func whereLoopResize(tls *libc.TLS, db uintptr, p uintptr, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154229:12: */ +func whereLoopResize(tls *libc.TLS, db uintptr, p uintptr, n int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156144:12: */ var paNew uintptr if int32((*WhereLoop)(unsafe.Pointer(p)).FnLSlot) >= n { return SQLITE_OK @@ -181317,7 +183360,7 @@ func whereLoopResize(tls *libc.TLS, db uintptr, p uintptr, n int32) int32 { /* t } // Transfer content from the second pLoop into the first. -func whereLoopXfer(tls *libc.TLS, db uintptr, pTo uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154245:12: */ +func whereLoopXfer(tls *libc.TLS, db uintptr, pTo uintptr, pFrom uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156160:12: */ whereLoopClearUnion(tls, db, pTo) if whereLoopResize(tls, db, pTo, int32((*WhereLoop)(unsafe.Pointer(pFrom)).FnLTerm)) != 0 { libc.Xmemset(tls, pTo, 0, uint64(uintptr(0)+64)) @@ -181334,34 +183377,31 @@ func whereLoopXfer(tls *libc.TLS, db uintptr, pTo uintptr, pFrom uintptr) int32 } // Delete a WhereLoop object -func whereLoopDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154264:13: */ +func whereLoopDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156179:13: */ whereLoopClear(tls, db, p) Xsqlite3DbFreeNN(tls, db, p) } // Free a WhereInfo structure -func whereInfoFree(tls *libc.TLS, db uintptr, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154272:13: */ - var i int32 - - for i = 0; i < int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel); i++ { - var pLevel uintptr = pWInfo + 864 + uintptr(i)*96 - if (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop != 0 && (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop)).FwsFlags&U32(WHERE_IN_ABLE) != U32(0) { +func whereInfoFree(tls *libc.TLS, db uintptr, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156187:13: */ - Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(pLevel + 64 + 8 /* &.aInLoop */))) - } - } - Xsqlite3WhereClauseClear(tls, pWInfo+112) + Xsqlite3WhereClauseClear(tls, pWInfo+120) for (*WhereInfo)(unsafe.Pointer(pWInfo)).FpLoops != 0 { var p uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpLoops (*WhereInfo)(unsafe.Pointer(pWInfo)).FpLoops = (*WhereLoop)(unsafe.Pointer(p)).FpNextLoop whereLoopDelete(tls, db, p) } + for (*WhereInfo)(unsafe.Pointer(pWInfo)).FpMemToFree != 0 { + var pNext uintptr = (*WhereMemBlock)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpMemToFree)).FpNext + Xsqlite3DbFreeNN(tls, db, (*WhereInfo)(unsafe.Pointer(pWInfo)).FpMemToFree) + (*WhereInfo)(unsafe.Pointer(pWInfo)).FpMemToFree = pNext + } Xsqlite3DbFreeNN(tls, db, pWInfo) } // Undo all Expr node modifications -func whereUndoExprMods(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154294:13: */ +func whereUndoExprMods(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156206:13: */ for (*WhereInfo)(unsafe.Pointer(pWInfo)).FpExprMods != 0 { var p uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpExprMods (*WhereInfo)(unsafe.Pointer(pWInfo)).FpExprMods = (*WhereExprMod)(unsafe.Pointer(p)).FpNext @@ -181372,12 +183412,12 @@ func whereUndoExprMods(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalg // Return TRUE if all of the following are true: // -// (1) X has the same or lower cost, or returns the same or fewer rows, -// than Y. -// (2) X uses fewer WHERE clause terms than Y -// (3) Every WHERE clause term used by X is also used by Y -// (4) X skips at least as many columns as Y -// (5) If X is a covering index, than Y is too +// (1) X has the same or lower cost, or returns the same or fewer rows, +// than Y. +// (2) X uses fewer WHERE clause terms than Y +// (3) Every WHERE clause term used by X is also used by Y +// (4) X skips at least as many columns as Y +// (5) If X is a covering index, than Y is too // // Conditions (2) and (3) mean that X is a "proper subset" of Y. // If X is a proper subset of Y then Y is a better choice and ought @@ -181387,7 +183427,7 @@ func whereUndoExprMods(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalg // deserve a lower cost even if it is a proper subset of Y. Constraint (5) // was added because a covering index probably deserves to have a lower cost // than a non-covering index even if it is a proper subset. -func whereLoopCheaperProperSubset(tls *libc.TLS, pX uintptr, pY uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154322:12: */ +func whereLoopCheaperProperSubset(tls *libc.TLS, pX uintptr, pY uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156234:12: */ var i int32 var j int32 if int32((*WhereLoop)(unsafe.Pointer(pX)).FnLTerm)-int32((*WhereLoop)(unsafe.Pointer(pX)).FnSkip) >= int32((*WhereLoop)(unsafe.Pointer(pY)).FnLTerm)-int32((*WhereLoop)(unsafe.Pointer(pY)).FnSkip) { @@ -181422,16 +183462,16 @@ func whereLoopCheaperProperSubset(tls *libc.TLS, pX uintptr, pY uintptr) int32 { // Try to adjust the cost and number of output rows of WhereLoop pTemplate // upwards or downwards so that: // -// (1) pTemplate costs less than any other WhereLoops that are a proper -// subset of pTemplate +// (1) pTemplate costs less than any other WhereLoops that are a proper +// subset of pTemplate // -// (2) pTemplate costs more than any other WhereLoops for which pTemplate -// is a proper subset. +// (2) pTemplate costs more than any other WhereLoops for which pTemplate +// is a proper subset. // // To say "WhereLoop X is a proper subset of Y" means that X uses fewer // WHERE clause terms than Y and that every WHERE clause term used by X is // also used by Y. -func whereLoopAdjustCost(tls *libc.TLS, p uintptr, pTemplate uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154360:13: */ +func whereLoopAdjustCost(tls *libc.TLS, p uintptr, pTemplate uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156272:13: */ if (*WhereLoop)(unsafe.Pointer(pTemplate)).FwsFlags&U32(WHERE_INDEXED) == U32(0) { return } @@ -181490,7 +183530,7 @@ func whereLoopAdjustCost(tls *libc.TLS, p uintptr, pTemplate uintptr) { /* testd // If pTemplate cannot replace any existing element of the list but needs // to be added to the list as a new entry, then return a pointer to the // tail of the list. -func whereLoopFindLesser(tls *libc.TLS, ppPrev uintptr, pTemplate uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154401:18: */ +func whereLoopFindLesser(tls *libc.TLS, ppPrev uintptr, pTemplate uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156313:18: */ var p uintptr p = *(*uintptr)(unsafe.Pointer(ppPrev)) __1: @@ -181575,11 +183615,11 @@ __3: // new template is better. Loops may be overwritten if the following // conditions are met: // -// (1) They have the same iTab. -// (2) They have the same iSortIdx. -// (3) The template has same or fewer dependencies than the current loop -// (4) The template has the same or lower cost than the current loop -func whereLoopInsert(tls *libc.TLS, pBuilder uintptr, pTemplate uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154489:12: */ +// (1) They have the same iTab. +// (2) They have the same iSortIdx. +// (3) The template has same or fewer dependencies than the current loop +// (4) The template has the same or lower cost than the current loop +func whereLoopInsert(tls *libc.TLS, pBuilder uintptr, pTemplate uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156401:12: */ var ppPrev uintptr var p uintptr var pWInfo uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo @@ -181686,7 +183726,7 @@ func whereLoopInsert(tls *libc.TLS, pBuilder uintptr, pTemplate uintptr) int32 { // "x" column is boolean or else -1 or 0 or 1 is a common default value // on the "x" column and so in that case only cap the output row estimate // at 1/2 instead of 1/4. -func whereLoopOutputAdjust(tls *libc.TLS, pWC uintptr, pLoop uintptr, nRow LogEst) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154626:13: */ +func whereLoopOutputAdjust(tls *libc.TLS, pWC uintptr, pLoop uintptr, nRow LogEst) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156538:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -181735,9 +183775,10 @@ __1: // // 2022-03-24: Self-culling only applies if either the extra terms // are straight comparison operators that are non-true with NULL - // operand, or if the loop is not a LEFT JOIN. + // operand, or if the loop is not an OUTER JOIN. if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&0x3f != 0 || - int32((*SrcItem)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpTabList+8+uintptr((*WhereLoop)(unsafe.Pointer(pLoop)).FiTab)*112)).Ffg.Fjointype)&JT_LEFT == 0 { + int32((*SrcItem)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpTabList+8+uintptr((*WhereLoop)(unsafe.Pointer(pLoop)).FiTab)*104)).Ffg.Fjointype)& + (JT_LEFT|JT_LTORJ) == 0 { *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_SELFCULL) } } @@ -181788,15 +183829,15 @@ __3: // // For example, if the query is: // -// WHERE a = ? AND (b, c, d) > (?, ?, ?) +// WHERE a = ? AND (b, c, d) > (?, ?, ?) // // and the index: // -// CREATE INDEX ... ON (a, b, c, d, e) +// CREATE INDEX ... ON (a, b, c, d, e) // // then this function would be invoked with nEq=1. The value returned in // this case is 3. -func whereRangeVectorLen(tls *libc.TLS, pParse uintptr, iCur int32, pIdx uintptr, nEq int32, pTerm uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154714:12: */ +func whereRangeVectorLen(tls *libc.TLS, pParse uintptr, iCur int32, pIdx uintptr, nEq int32, pTerm uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156627:12: */ var nCmp int32 = Xsqlite3ExprVectorSize(tls, (*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).FpLeft) var i int32 @@ -181864,7 +183905,7 @@ func whereRangeVectorLen(tls *libc.TLS, pParse uintptr, iCur int32, pIdx uintptr // // If pProbe->idxType==SQLITE_IDXTYPE_IPK, that means pIndex is // a fake index used for the INTEGER PRIMARY KEY. -func whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pProbe uintptr, nInMul LogEst) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:154788:12: */ +func whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pProbe uintptr, nInMul LogEst) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:156701:12: */ bp := tls.Alloc(116) defer tls.Free(116) @@ -181939,11 +183980,23 @@ func whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pProb } // tag-20191211-001: Do not allow constraints from the WHERE clause to - // be used by the right table of a LEFT JOIN. Only constraints in the - // ON clause are allowed. See tag-20191211-002 for the vtab equivalent. - if int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&JT_LEFT != 0 && - !((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_FromJoin) != U32(0)) { - continue + // be used by the right table of a LEFT JOIN nor by the left table of a + // RIGHT JOIN. Only constraints in the ON clause are allowed. + // See tag-20191211-002 for the vtab equivalent. + // + // 2022-06-06: See https://sqlite.org/forum/forumpost/206d99a16dd9212f + // for an example of a WHERE clause constraints that may not be used on + // the right table of a RIGHT JOIN because the constraint implies a + // not-NULL condition on the left table of the RIGHT JOIN. + // + // 2022-06-10: The same condition applies to termCanDriveIndex() above. + // https://sqlite.org/forum/forumpost/51e6959f61 + if int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&(JT_LEFT|JT_LTORJ|JT_RIGHT) != 0 { + + if !((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_OuterON|EP_InnerON) != U32(0)) || + *(*int32)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr + 52)) != (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor { + continue + } } if int32((*Index)(unsafe.Pointer(pProbe)).FonError) != OE_None && int32(saved_nEq) == int32((*Index)(unsafe.Pointer(pProbe)).FnKeyCol)-1 { @@ -182224,7 +184277,7 @@ func whereLoopAddBtreeIndex(tls *libc.TLS, pBuilder uintptr, pSrc uintptr, pProb // Return False if pBuilder does not contain an ORDER BY clause or // if there is no way for pIndex to be useful in implementing that // ORDER BY clause. -func indexMightHelpWithOrderBy(tls *libc.TLS, pBuilder uintptr, pIndex uintptr, iCursor int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155188:12: */ +func indexMightHelpWithOrderBy(tls *libc.TLS, pBuilder uintptr, pIndex uintptr, iCursor int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:157118:12: */ var pOB uintptr var aColExpr uintptr var ii int32 @@ -182266,12 +184319,17 @@ func indexMightHelpWithOrderBy(tls *libc.TLS, pBuilder uintptr, pIndex uintptr, // Check to see if a partial index with pPartIndexWhere can be used // in the current query. Return true if it can be and false if not. -func whereUsablePartialIndex(tls *libc.TLS, iTab int32, isLeft int32, pWC uintptr, pWhere uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155222:12: */ +func whereUsablePartialIndex(tls *libc.TLS, iTab int32, jointype U8, pWC uintptr, pWhere uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:157152:12: */ var i int32 var pTerm uintptr - var pParse uintptr = (*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpParse + var pParse uintptr + + if int32(jointype)&JT_LTORJ != 0 { + return 0 + } + pParse = (*WhereInfo)(unsafe.Pointer((*WhereClause)(unsafe.Pointer(pWC)).FpWInfo)).FpParse for int32((*Expr)(unsafe.Pointer(pWhere)).Fop) == TK_AND { - if !(whereUsablePartialIndex(tls, iTab, isLeft, pWC, (*Expr)(unsafe.Pointer(pWhere)).FpLeft) != 0) { + if !(whereUsablePartialIndex(tls, iTab, jointype, pWC, (*Expr)(unsafe.Pointer(pWhere)).FpLeft) != 0) { return 0 } pWhere = (*Expr)(unsafe.Pointer(pWhere)).FpRight @@ -182288,8 +184346,8 @@ __1: { var pExpr uintptr pExpr = (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr - if (!((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0)) || *(*int32)(unsafe.Pointer(pExpr + 52)) == iTab) && - (isLeft == 0 || (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_FromJoin) != U32(0)) && + if (!((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0)) || *(*int32)(unsafe.Pointer(pExpr + 52)) == iTab) && + (int32(jointype)&JT_OUTER == 0 || (*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_OuterON) != U32(0)) && Xsqlite3ExprImpliesExpr(tls, pParse, pExpr, pWhere, iTab) != 0 && int32((*WhereTerm)(unsafe.Pointer(pTerm)).FwtFlags)&TERM_VNULL == 0 { return 1 @@ -182316,9 +184374,9 @@ __3: // // For a full scan, assuming the table (or index) contains nRow rows: // -// cost = nRow * 3.0 // full-table scan -// cost = nRow * K // scan of covering index -// cost = nRow * (K+3.0) // scan of non-covering index +// cost = nRow * 3.0 // full-table scan +// cost = nRow * K // scan of covering index +// cost = nRow * (K+3.0) // scan of non-covering index // // where K is a value between 1.1 and 3.0 set based on the relative // estimated average size of the index and table records. @@ -182327,8 +184385,8 @@ __3: // by the scan, and nSeek is the number of seek operations required on // the index b-tree: // -// cost = nSeek * (log(nRow) + K * nVisit) // covering index -// cost = nSeek * (log(nRow) + (K+3.0) * nVisit) // non-covering index +// cost = nSeek * (log(nRow) + K * nVisit) // covering index +// cost = nSeek * (log(nRow) + (K+3.0) * nVisit) // non-covering index // // Normally, nSeek is 1. nSeek values greater than 1 come about if the // WHERE clause includes "x IN (....)" terms used in place of "x=?". Or when @@ -182341,7 +184399,7 @@ __3: // bias the scoring in favor of using an index, since the worst-case // performance of using an index is far better than the worst-case performance // of a full table scan. -func whereLoopAddBtree(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155286:12: */ +func whereLoopAddBtree(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:157219:12: */ bp := tls.Alloc(158) defer tls.Free(158) @@ -182365,14 +184423,14 @@ func whereLoopAddBtree(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask) int32 { pNew = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpNew pWInfo = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo pTabList = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList - pSrc = pTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pNew)).FiTab)*112 + pSrc = pTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pNew)).FiTab)*104 pTab = (*SrcItem)(unsafe.Pointer(pSrc)).FpTab pWC = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWC if uint32(int32(*(*uint16)(unsafe.Pointer(pSrc + 60 + 4))&0x2>>1)) != 0 { // An INDEXED BY clause specifies a particular index to use - pProbe = *(*uintptr)(unsafe.Pointer(pSrc + 104)) + pProbe = *(*uintptr)(unsafe.Pointer(pSrc + 96)) } else if !((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) { pProbe = (*Table)(unsafe.Pointer(pTab)).FpIndex } else { @@ -182404,13 +184462,14 @@ func whereLoopAddBtree(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask) int32 { // Automatic indexes if !(int32((*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpOrSet) != 0) && - int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_OR_SUBCLAUSE == 0 && + int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&(WHERE_RIGHT_JOIN|WHERE_OR_SUBCLAUSE) == 0 && (*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse)).Fdb)).Fflags&uint64(SQLITE_AutoIndex) != uint64(0) && !(int32(*(*uint16)(unsafe.Pointer(pSrc + 60 + 4))&0x2>>1) != 0) && !(int32(*(*uint16)(unsafe.Pointer(pSrc + 60 + 4))&0x1>>0) != 0) && (*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0) && !(int32(*(*uint16)(unsafe.Pointer(pSrc + 60 + 4))&0x8>>3) != 0) && - !(int32(*(*uint16)(unsafe.Pointer(pSrc + 60 + 4))&0x20>>5) != 0) { + !(int32(*(*uint16)(unsafe.Pointer(pSrc + 60 + 4))&0x40>>6) != 0) && + int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&JT_RIGHT == 0 { // Generate auto-index WhereLoops var rLogSize LogEst // Logarithm of the number of rows in the table var pTerm uintptr @@ -182464,9 +184523,8 @@ __1: goto __3 } { - var isLeft int32 = libc.Bool32(int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&JT_OUTER != 0) if (*Index)(unsafe.Pointer(pProbe)).FpPartIdxWhere != uintptr(0) && - !(whereUsablePartialIndex(tls, (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor, isLeft, pWC, + !(whereUsablePartialIndex(tls, (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor, (*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype, pWC, (*Index)(unsafe.Pointer(pProbe)).FpPartIdxWhere) != 0) { // See ticket [98d973b8f5] goto __2 // Partial index inappropriate for this query @@ -182565,7 +184623,7 @@ __1: var nLookup LogEst = LogEst(int32(rSize) + 16) // Base cost: N*3 var ii int32 var iCur int32 = (*SrcItem)(unsafe.Pointer(pSrc)).FiCursor - var pWC2 uintptr = pWInfo + 112 + var pWC2 uintptr = pWInfo + 120 for ii = 0; ii < (*WhereClause)(unsafe.Pointer(pWC2)).FnTerm; ii++ { var pTerm uintptr = (*WhereClause)(unsafe.Pointer(pWC2)).Fa + uintptr(ii)*56 if !(Xsqlite3ExprCoveredByIndex(tls, (*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr, iCur, pProbe) != 0) { @@ -182587,7 +184645,14 @@ __1: } whereLoopOutputAdjust(tls, pWC, pNew, rSize) - rc = whereLoopInsert(tls, pBuilder, pNew) + if int32((*SrcItem)(unsafe.Pointer(pSrc)).Ffg.Fjointype)&JT_RIGHT != 0 && (*Index)(unsafe.Pointer(pProbe)).FaColExpr != 0 { + // Do not do an SCAN of a index-on-expression in a RIGHT JOIN + // because the cursor used to access the index might not be + // positioned to the correct row during the right-join no-match + // loop. + } else { + rc = whereLoopInsert(tls, pBuilder, pNew) + } (*WhereLoop)(unsafe.Pointer(pNew)).FnOut = rSize if rc != 0 { goto __3 @@ -182626,7 +184691,7 @@ __3: } // Return true if pTerm is a virtual table LIMIT or OFFSET term. -func isLimitTerm(tls *libc.TLS, pTerm uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155544:12: */ +func isLimitTerm(tls *libc.TLS, pTerm uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:157484:12: */ return libc.Bool32(int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeMatchOp) >= SQLITE_INDEX_CONSTRAINT_LIMIT && int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeMatchOp) <= SQLITE_INDEX_CONSTRAINT_OFFSET) @@ -182639,9 +184704,9 @@ func isLimitTerm(tls *libc.TLS, pTerm uintptr) int32 { /* testdata/sqlite-amalga // // A constraint is marked usable if: // -// * Argument mUsable indicates that its prerequisites are available, and +// - Argument mUsable indicates that its prerequisites are available, and // -// * It is not one of the operators specified in the mExclude mask passed +// - It is not one of the operators specified in the mExclude mask passed // as the fourth argument (which in practice is either WO_IN or 0). // // Argument mPrereq is a mask of tables that must be scanned before the @@ -182650,7 +184715,7 @@ func isLimitTerm(tls *libc.TLS, pTerm uintptr) int32 { /* testdata/sqlite-amalga // // Output parameter *pbIn is set to true if the plan added to pBuilder // uses one or more WO_IN terms, or false otherwise. -func whereLoopAddVirtualOne(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUsable Bitmask, mExclude U16, pIdxInfo uintptr, mNoOmit U16, pbIn uintptr, pbRetryLimit uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155570:12: */ +func whereLoopAddVirtualOne(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUsable Bitmask, mExclude U16, pIdxInfo uintptr, mNoOmit U16, pbIn uintptr, pbRetryLimit uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:157510:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -182663,7 +184728,7 @@ func whereLoopAddVirtualOne(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mU var rc int32 = SQLITE_OK var pNew uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpNew var pParse uintptr = (*WhereInfo)(unsafe.Pointer((*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo)).FpParse - var pSrc uintptr = (*WhereInfo)(unsafe.Pointer((*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pNew)).FiTab)*112 + var pSrc uintptr = (*WhereInfo)(unsafe.Pointer((*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pNew)).FiTab)*104 var nConstraint int32 = (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint *(*int32)(unsafe.Pointer(pbIn)) = 0 @@ -182752,7 +184817,7 @@ __4: j >= (*WhereClause)(unsafe.Pointer(pWC)).FnTerm || *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pNew)).FaLTerm + uintptr(iTerm)*8)) != uintptr(0) || int32((*sqlite3_index_constraint)(unsafe.Pointer(pIdxCons)).Fusable) == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+23143, libc.VaList(bp, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+23108, libc.VaList(bp, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName)) return SQLITE_ERROR } @@ -182825,7 +184890,7 @@ __6: if *(*uintptr)(unsafe.Pointer((*WhereLoop)(unsafe.Pointer(pNew)).FaLTerm + uintptr(i)*8)) == uintptr(0) { // The non-zero argvIdx values must be contiguous. Raise an // error if they are not - Xsqlite3ErrorMsg(tls, pParse, ts+23143, libc.VaList(bp+8, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+23108, libc.VaList(bp+8, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName)) return SQLITE_ERROR } @@ -182869,12 +184934,12 @@ __6: // // Return a pointer to the collation name: // -// 1. If there is an explicit COLLATE operator on the constaint, return it. +// 1. If there is an explicit COLLATE operator on the constaint, return it. // -// 2. Else, if the column has an alternative collation, return that. +// 2. Else, if the column has an alternative collation, return that. // -// 3. Otherwise, return "BINARY". -func Xsqlite3_vtab_collation(tls *libc.TLS, pIdxInfo uintptr, iCons int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155762:23: */ +// 3. Otherwise, return "BINARY". +func Xsqlite3_vtab_collation(tls *libc.TLS, pIdxInfo uintptr, iCons int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:157703:23: */ var pHidden uintptr = pIdxInfo + 1*96 var zRet uintptr = uintptr(0) if iCons >= 0 && iCons < (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint { @@ -182897,7 +184962,7 @@ func Xsqlite3_vtab_collation(tls *libc.TLS, pIdxInfo uintptr, iCons int32) uintp // Return true if constraint iCons is really an IN(...) constraint, or // false otherwise. If iCons is an IN(...) constraint, set (if bHandle!=0) // or clear (if bHandle==0) the flag to handle it using an iterator. -func Xsqlite3_vtab_in(tls *libc.TLS, pIdxInfo uintptr, iCons int32, bHandle int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155782:16: */ +func Xsqlite3_vtab_in(tls *libc.TLS, pIdxInfo uintptr, iCons int32, bHandle int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:157723:16: */ var pHidden uintptr = pIdxInfo + 1*96 var m U32 = func() uint32 { if iCons <= 31 { @@ -182920,7 +184985,7 @@ func Xsqlite3_vtab_in(tls *libc.TLS, pIdxInfo uintptr, iCons int32, bHandle int3 // // If possible, set (*ppVal) to point to an object containing the value // on the right-hand-side of constraint iCons. -func Xsqlite3_vtab_rhs_value(tls *libc.TLS, pIdxInfo uintptr, iCons int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155802:16: */ +func Xsqlite3_vtab_rhs_value(tls *libc.TLS, pIdxInfo uintptr, iCons int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:157743:16: */ var pH uintptr = pIdxInfo + 1*96 var pVal uintptr = uintptr(0) var rc int32 = SQLITE_OK @@ -182946,7 +185011,7 @@ func Xsqlite3_vtab_rhs_value(tls *libc.TLS, pIdxInfo uintptr, iCons int32, ppVal } // Return true if ORDER BY clause may be handled as DISTINCT. -func Xsqlite3_vtab_distinct(tls *libc.TLS, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155835:16: */ +func Xsqlite3_vtab_distinct(tls *libc.TLS, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:157776:16: */ var pHidden uintptr = pIdxInfo + 1*96 return (*HiddenIndexInfo)(unsafe.Pointer(pHidden)).FeDistinct @@ -182965,7 +185030,7 @@ func Xsqlite3_vtab_distinct(tls *libc.TLS, pIdxInfo uintptr) int32 { /* testdata // // For example, if the query were: // -// ... FROM t1, t2 LEFT JOIN t3, t4, vt CROSS JOIN t5, t6; +// ... FROM t1, t2 LEFT JOIN t3, t4, vt CROSS JOIN t5, t6; // // then mPrereq corresponds to (t1, t2) and mUnusable to (t5, t6). // @@ -182975,7 +185040,7 @@ func Xsqlite3_vtab_distinct(tls *libc.TLS, pIdxInfo uintptr) int32 { /* testdata // Conversely, all tables in mUnusable must be scanned after the current // virtual table, so any terms for which the prerequisites overlap with // mUnusable should always be configured as "not-usable" for xBestIndex. -func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable Bitmask) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:155884:12: */ +func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable Bitmask) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:157834:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -182998,7 +185063,7 @@ func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnus pParse = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse pWC = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWC pNew = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpNew - pSrc = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pNew)).FiTab)*112 + pSrc = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pNew)).FiTab)*104 p = allocateIndexInfo(tls, pWInfo, pWC, mUnusable, pSrc, bp) if p == uintptr(0) { @@ -183111,7 +185176,7 @@ func whereLoopAddVirtual(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnus // Add WhereLoop entries to handle OR terms. This works for either // btrees or virtual tables. -func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable Bitmask) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:156015:12: */ +func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable Bitmask) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:157965:12: */ bp := tls.Alloc(712) defer tls.Free(712) @@ -183136,9 +185201,14 @@ func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable pWCEnd = (*WhereClause)(unsafe.Pointer(pWC)).Fa + uintptr((*WhereClause)(unsafe.Pointer(pWC)).FnTerm)*56 pNew = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpNew libc.Xmemset(tls, bp, 0, uint64(unsafe.Sizeof(WhereOrSet{}))) - pItem = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pNew)).FiTab)*112 + pItem = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pNew)).FiTab)*104 iCur = (*SrcItem)(unsafe.Pointer(pItem)).FiCursor + // The multi-index OR optimization does not work for RIGHT and FULL JOIN + if int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_RIGHT != 0 { + return SQLITE_OK + } + for pTerm = (*WhereClause)(unsafe.Pointer(pWC)).Fa; pTerm < pWCEnd && rc == SQLITE_OK; pTerm += 56 { if int32((*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator)&WO_OR != 0 && (*WhereOrInfo)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pTerm + 32)))).Findexable&(*WhereLoop)(unsafe.Pointer(pNew)).FmaskSelf != uint64(0) { @@ -183236,16 +185306,18 @@ func whereLoopAddOr(tls *libc.TLS, pBuilder uintptr, mPrereq Bitmask, mUnusable } // Add all WhereLoop objects for all tables -func whereLoopAddAll(tls *libc.TLS, pBuilder uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:156141:12: */ +func whereLoopAddAll(tls *libc.TLS, pBuilder uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:158094:12: */ var pWInfo uintptr = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpWInfo var mPrereq Bitmask = uint64(0) var mPrior Bitmask = uint64(0) var iTab int32 var pTabList uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList var pItem uintptr - var pEnd uintptr = pTabList + 8 + uintptr((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)*112 + var pEnd uintptr = pTabList + 8 + uintptr((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)*104 var db uintptr = (*Parse)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse)).Fdb var rc int32 = SQLITE_OK + var bFirstPastRJ int32 = 0 + var hasRightJoin int32 = 0 var pNew uintptr // Loop over the tables in the join, from left to right @@ -183262,19 +185334,31 @@ __1: var mUnusable Bitmask = uint64(0) (*WhereLoop)(unsafe.Pointer(pNew)).FiTab = U8(iTab) *(*uint32)(unsafe.Pointer(pBuilder + 48)) += uint32(SQLITE_QUERY_PLANNER_LIMIT_INCR) - (*WhereLoop)(unsafe.Pointer(pNew)).FmaskSelf = Xsqlite3WhereGetMask(tls, pWInfo+600, (*SrcItem)(unsafe.Pointer(pItem)).FiCursor) - if int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&(JT_LEFT|JT_CROSS) != 0 { - // This condition is true when pItem is the FROM clause term on the - // right-hand-side of a LEFT or CROSS JOIN. - mPrereq = mPrior - } else { + (*WhereLoop)(unsafe.Pointer(pNew)).FmaskSelf = Xsqlite3WhereGetMask(tls, pWInfo+608, (*SrcItem)(unsafe.Pointer(pItem)).FiCursor) + if bFirstPastRJ != 0 || + int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&(JT_OUTER|JT_CROSS|JT_LTORJ) != 0 { + // Add prerequisites to prevent reordering of FROM clause terms + // across CROSS joins and outer joins. The bFirstPastRJ boolean + // prevents the right operand of a RIGHT JOIN from being swapped with + // other elements even further to the right. + // + // The JT_LTORJ case and the hasRightJoin flag work together to + // prevent FROM-clause terms from moving from the right side of + // a LEFT JOIN over to the left side of that join if the LEFT JOIN + // is itself on the left side of a RIGHT JOIN. + if int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_LTORJ != 0 { + hasRightJoin = 1 + } + mPrereq = mPrereq | mPrior + bFirstPastRJ = libc.Bool32(int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_RIGHT != 0) + } else if !(hasRightJoin != 0) { mPrereq = uint64(0) } if int32((*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpTab)).FeTabType) == TABTYP_VTAB { var p uintptr - for p = pItem + 1*112; p < pEnd; p += 112 { - if mUnusable != 0 || int32((*SrcItem)(unsafe.Pointer(p)).Ffg.Fjointype)&(JT_LEFT|JT_CROSS) != 0 { - mUnusable = mUnusable | Xsqlite3WhereGetMask(tls, pWInfo+600, (*SrcItem)(unsafe.Pointer(p)).FiCursor) + for p = pItem + 1*104; p < pEnd; p += 104 { + if mUnusable != 0 || int32((*SrcItem)(unsafe.Pointer(p)).Ffg.Fjointype)&(JT_OUTER|JT_CROSS) != 0 { + mUnusable = mUnusable | Xsqlite3WhereGetMask(tls, pWInfo+608, (*SrcItem)(unsafe.Pointer(p)).FiCursor) } } rc = whereLoopAddVirtual(tls, pBuilder, mPrereq, mUnusable) @@ -183288,7 +185372,7 @@ __1: if rc != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { if rc == SQLITE_DONE { // We hit the query planner search limit set by iPlanLimit - Xsqlite3_log(tls, SQLITE_WARNING, ts+23169, 0) + Xsqlite3_log(tls, SQLITE_WARNING, ts+23134, 0) rc = SQLITE_OK } else { goto __3 @@ -183299,7 +185383,7 @@ __1: goto __2 __2: iTab++ - pItem += 112 + pItem += 104 goto __1 goto __3 __3: @@ -183313,9 +185397,9 @@ __3: // parameters) to see if it outputs rows in the requested ORDER BY // (or GROUP BY) without requiring a separate sort operation. Return N: // -// N>0: N terms of the ORDER BY clause are satisfied -// N==0: No terms of the ORDER BY clause are satisfied -// N<0: Unknown yet how many terms of ORDER BY might be satisfied. +// N>0: N terms of the ORDER BY clause are satisfied +// N==0: No terms of the ORDER BY clause are satisfied +// N<0: Unknown yet how many terms of ORDER BY might be satisfied. // // Note that processing for WHERE_GROUPBY and WHERE_DISTINCTBY is not as // strict. With GROUP BY and DISTINCT the only requirement is that @@ -183324,7 +185408,7 @@ __3: // as equivalent rows are grouped together. Thus for GROUP BY and DISTINCT // the pOrderBy terms can be matched in any order. With ORDER BY, the // pOrderBy terms must be matched in strict left-to-right order. -func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr, pPath uintptr, wctrlFlags U16, nLoop U16, pLast uintptr, pRevMask uintptr) I8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:156219:11: */ +func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr, pPath uintptr, wctrlFlags U16, nLoop U16, pLast uintptr, pRevMask uintptr) I8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:158187:11: */ var revSet U8 // True if rev is known var rev U8 // Composite sort order var revIdx U8 // Index sort order @@ -183401,14 +185485,15 @@ func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr, pLoop = pLast } if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_VIRTUALTABLE) != 0 { - if *(*I8)(unsafe.Pointer(pLoop + 24 + 6)) != 0 && int32(wctrlFlags)&WHERE_DISTINCTBY == 0 { + if *(*I8)(unsafe.Pointer(pLoop + 24 + 6)) != 0 && + int32(wctrlFlags)&(WHERE_DISTINCTBY|WHERE_SORTBYGROUP) != WHERE_DISTINCTBY { obSat = obDone } break } else if int32(wctrlFlags)&WHERE_DISTINCTBY != 0 { *(*U16)(unsafe.Pointer(pLoop + 24 + 6 /* &.nDistinctCol */)) = U16(0) } - iCur = (*SrcItem)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pLoop)).FiTab)*112)).FiCursor + iCur = (*SrcItem)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pLoop)).FiTab)*104)).FiCursor // Mark off any ORDER BY term X that is a column in the table of // the current loop for which there is term in the WHERE @@ -183428,7 +185513,7 @@ func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr, if (*Expr)(unsafe.Pointer(pOBExpr)).FiTable != iCur { continue } - pTerm = Xsqlite3WhereFindTerm(tls, pWInfo+112, iCur, int32((*Expr)(unsafe.Pointer(pOBExpr)).FiColumn), + pTerm = Xsqlite3WhereFindTerm(tls, pWInfo+120, iCur, int32((*Expr)(unsafe.Pointer(pOBExpr)).FiColumn), ^ready, uint32(eqOpMask), uintptr(0)) if pTerm == uintptr(0) { continue @@ -183592,18 +185677,19 @@ func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr, // Make sure the sort order is compatible in an ORDER BY clause. // Sort order is irrelevant for a GROUP BY clause. if revSet != 0 { - if int32(rev)^int32(revIdx) != int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).FsortFlags)&KEYINFO_ORDER_DESC { + if int32(rev)^int32(revIdx) != + int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).Ffg.FsortFlags)&KEYINFO_ORDER_DESC { isMatch = U8(0) } } else { - rev = U8(int32(revIdx) ^ int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).FsortFlags)&KEYINFO_ORDER_DESC) + rev = U8(int32(revIdx) ^ int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).Ffg.FsortFlags)&KEYINFO_ORDER_DESC) if rev != 0 { *(*Bitmask)(unsafe.Pointer(pRevMask)) |= Bitmask(uint64(1)) << iLoop } revSet = U8(1) } } - if isMatch != 0 && int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).FsortFlags)&KEYINFO_ORDER_BIGNULL != 0 { + if isMatch != 0 && int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8+uintptr(i)*32)).Ffg.FsortFlags)&KEYINFO_ORDER_BIGNULL != 0 { if j == int32(*(*U16)(unsafe.Pointer(pLoop + 24))) { *(*U32)(unsafe.Pointer(pLoop + 56)) |= U32(WHERE_BIGNULL_SORT) } else { @@ -183641,7 +185727,7 @@ func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr, continue } p = (*ExprList_item)(unsafe.Pointer(pOrderBy + 8 + uintptr(i)*32)).FpExpr - mTerm = Xsqlite3WhereExprUsage(tls, pWInfo+600, p) + mTerm = Xsqlite3WhereExprUsage(tls, pWInfo+608, p) if mTerm == uint64(0) && !(Xsqlite3ExprIsConstant(tls, p) != 0) { continue } @@ -183686,13 +185772,13 @@ func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr, // // For example, assuming: // -// CREATE INDEX i1 ON t1(x, Y); +// CREATE INDEX i1 ON t1(x, Y); // // then // -// SELECT * FROM t1 GROUP BY x,y ORDER BY x,y; -- IsSorted()==1 -// SELECT * FROM t1 GROUP BY y,x ORDER BY y,x; -- IsSorted()==0 -func Xsqlite3WhereIsSorted(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:156564:20: */ +// SELECT * FROM t1 GROUP BY x,y ORDER BY x,y; -- IsSorted()==1 +// SELECT * FROM t1 GROUP BY y,x ORDER BY y,x; -- IsSorted()==0 +func Xsqlite3WhereIsSorted(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:158536:20: */ return int32(*(*uint8)(unsafe.Pointer(pWInfo + 76)) & 0x8 >> 3) } @@ -183700,7 +185786,7 @@ func Xsqlite3WhereIsSorted(tls *libc.TLS, pWInfo uintptr) int32 { /* testdata/sq // Return the cost of sorting nRow rows, assuming that the keys have // nOrderby columns and that the first nSorted columns are already in // order. -func whereSortingCost(tls *libc.TLS, pWInfo uintptr, nRow LogEst, nOrderBy int32, nSorted int32) LogEst { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:156587:15: */ +func whereSortingCost(tls *libc.TLS, pWInfo uintptr, nRow LogEst, nOrderBy int32, nSorted int32) LogEst { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:158559:15: */ // TUNING: Estimated cost of a full external sort, where N is // the number of rows to sort is: // @@ -183747,7 +185833,7 @@ func whereSortingCost(tls *libc.TLS, pWInfo uintptr, nRow LogEst, nOrderBy int32 // // Return SQLITE_OK on success or SQLITE_NOMEM of a memory allocation // error occurs. -func wherePathSolver(tls *libc.TLS, pWInfo uintptr, nRowEst LogEst) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:156640:12: */ +func wherePathSolver(tls *libc.TLS, pWInfo uintptr, nRowEst LogEst) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:158612:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -184062,7 +186148,7 @@ __3: } if nFrom == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+23204, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+23169, 0) Xsqlite3DbFreeNN(tls, db, pSpace) return SQLITE_ERROR } @@ -184077,10 +186163,10 @@ __3: // Load the lowest cost path into pWInfo for iLoop = 0; iLoop < nLoop; iLoop++ { - var pLevel uintptr = pWInfo + 864 + uintptr(iLoop)*96 + var pLevel uintptr = pWInfo + 872 + uintptr(iLoop)*104 (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop = libc.AssignUintptr(&pWLoop, *(*uintptr)(unsafe.Pointer((*WherePath)(unsafe.Pointer(pFrom)).FaLoop + uintptr(iLoop)*8))) (*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom = (*WhereLoop)(unsafe.Pointer(pWLoop)).FiTab - (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur = (*SrcItem)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112)).FiCursor + (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur = (*SrcItem)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104)).FiCursor } if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_WANT_DISTINCT != 0 && int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_DISTINCTBY == 0 && @@ -184096,12 +186182,12 @@ __3: } libc.SetBitFieldPtr8Uint32(pWInfo+76, uint32(0), 2, 0x4) if (*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy != 0 { + (*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat = (*WherePath)(unsafe.Pointer(pFrom)).FisOrdered if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_DISTINCTBY != 0 { if int32((*WherePath)(unsafe.Pointer(pFrom)).FisOrdered) == (*ExprList)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy)).FnExpr { (*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct = U8(WHERE_DISTINCT_ORDERED) } } else { - (*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat = (*WherePath)(unsafe.Pointer(pFrom)).FisOrdered (*WhereInfo)(unsafe.Pointer(pWInfo)).FrevMask = (*WherePath)(unsafe.Pointer(pFrom)).FrevLoop if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat) <= 0 { (*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat = int8(0) @@ -184154,7 +186240,7 @@ __3: // Return non-zero on success, if this query can be handled by this // no-frills query planner. Return zero if this query needs the // general-purpose query planner. -func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157032:12: */ +func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:159004:12: */ bp := tls.Alloc(112) defer tls.Free(112) @@ -184179,11 +186265,12 @@ func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* testdata/sqlite-a if int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB { return 0 } - if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x2>>1)) != 0 { + if uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x2>>1)) != 0 || uint32(int32(*(*uint16)(unsafe.Pointer(pItem + 60 + 4))&0x1>>0)) != 0 { + return 0 } iCur = (*SrcItem)(unsafe.Pointer(pItem)).FiCursor - pWC = pWInfo + 112 + pWC = pWInfo + 120 pLoop = (*WhereLoopBuilder)(unsafe.Pointer(pBuilder)).FpNew (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags = U32(0) (*WhereLoop)(unsafe.Pointer(pLoop)).FnSkip = U16(0) @@ -184241,10 +186328,10 @@ func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* testdata/sqlite-a } if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags != 0 { (*WhereLoop)(unsafe.Pointer(pLoop)).FnOut = int16(1) - (*WhereLevel)(unsafe.Pointer(pWInfo + 864)).FpWLoop = pLoop + (*WhereLevel)(unsafe.Pointer(pWInfo + 872)).FpWLoop = pLoop (*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf = uint64(1) // sqlite3WhereGetMask(&pWInfo->sMaskSet, iCur); - (*WhereLevel)(unsafe.Pointer(pWInfo + 864)).FiTabCur = iCur + (*WhereLevel)(unsafe.Pointer(pWInfo + 872)).FiTabCur = iCur (*WhereInfo)(unsafe.Pointer(pWInfo)).FnRowOut = int16(1) if (*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy != 0 { (*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat = I8((*ExprList)(unsafe.Pointer((*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy)).FnExpr) @@ -184261,7 +186348,7 @@ func whereShortCut(tls *libc.TLS, pBuilder uintptr) int32 { /* testdata/sqlite-a } // Helper function for exprIsDeterministic(). -func exprNodeIsDeterministic(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157123:12: */ +func exprNodeIsDeterministic(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:159099:12: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_FUNCTION && libc.Bool32((*Expr)(unsafe.Pointer(pExpr)).Fflags&U32(EP_ConstFunc) != U32(0)) == 0 { (*Walker)(unsafe.Pointer(pWalker)).FeCode = U16(0) return WRC_Abort @@ -184272,7 +186359,7 @@ func exprNodeIsDeterministic(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int3 // Return true if the expression contains no non-deterministic SQL // functions. Do not consider non-deterministic SQL functions that are // part of sub-select statements. -func exprIsDeterministic(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157136:12: */ +func exprIsDeterministic(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:159112:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -184293,32 +186380,32 @@ func exprIsDeterministic(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-am // Attempt to omit tables from a join that do not affect the result. // For a table to not affect the result, the following must be true: // -// 1) The query must not be an aggregate. -// 2) The table must be the RHS of a LEFT JOIN. -// 3) Either the query must be DISTINCT, or else the ON or USING clause -// must contain a constraint that limits the scan of the table to -// at most a single row. -// 4) The table must not be referenced by any part of the query apart -// from its own USING or ON clause. +// 1. The query must not be an aggregate. +// 2. The table must be the RHS of a LEFT JOIN. +// 3. Either the query must be DISTINCT, or else the ON or USING clause +// must contain a constraint that limits the scan of the table to +// at most a single row. +// 4. The table must not be referenced by any part of the query apart +// from its own USING or ON clause. // // For example, given: // -// CREATE TABLE t1(ipk INTEGER PRIMARY KEY, v1); -// CREATE TABLE t2(ipk INTEGER PRIMARY KEY, v2); -// CREATE TABLE t3(ipk INTEGER PRIMARY KEY, v3); +// CREATE TABLE t1(ipk INTEGER PRIMARY KEY, v1); +// CREATE TABLE t2(ipk INTEGER PRIMARY KEY, v2); +// CREATE TABLE t3(ipk INTEGER PRIMARY KEY, v3); // // then table t2 can be omitted from the following: // -// SELECT v1, v3 FROM t1 -// LEFT JOIN t2 ON (t1.ipk=t2.ipk) -// LEFT JOIN t3 ON (t1.ipk=t3.ipk) +// SELECT v1, v3 FROM t1 +// LEFT JOIN t2 ON (t1.ipk=t2.ipk) +// LEFT JOIN t3 ON (t1.ipk=t3.ipk) // // or from: // -// SELECT DISTINCT v1, v3 FROM t1 -// LEFT JOIN t2 -// LEFT JOIN t3 ON (t1.ipk=t3.ipk) -func whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady Bitmask) Bitmask { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157197:32: */ +// SELECT DISTINCT v1, v3 FROM t1 +// LEFT JOIN t2 +// LEFT JOIN t3 ON (t1.ipk=t3.ipk) +func whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady Bitmask) Bitmask { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:159173:32: */ var i int32 var tabUsed Bitmask @@ -184327,18 +186414,18 @@ func whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady Bitmask) Bitmask // These two preconditions checked by the caller combine to guarantee // condition (1) of the header comment - tabUsed = Xsqlite3WhereExprListUsage(tls, pWInfo+600, (*WhereInfo)(unsafe.Pointer(pWInfo)).FpResultSet) + tabUsed = Xsqlite3WhereExprListUsage(tls, pWInfo+608, (*WhereInfo)(unsafe.Pointer(pWInfo)).FpResultSet) if (*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy != 0 { - tabUsed = tabUsed | Xsqlite3WhereExprListUsage(tls, pWInfo+600, (*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy) + tabUsed = tabUsed | Xsqlite3WhereExprListUsage(tls, pWInfo+608, (*WhereInfo)(unsafe.Pointer(pWInfo)).FpOrderBy) } for i = int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) - 1; i >= 1; i-- { var pTerm uintptr var pEnd uintptr var pItem uintptr var pLoop uintptr - pLoop = (*WhereLevel)(unsafe.Pointer(pWInfo + 864 + uintptr(i)*96)).FpWLoop - pItem = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pLoop)).FiTab)*112 - if int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&JT_LEFT == 0 { + pLoop = (*WhereLevel)(unsafe.Pointer(pWInfo + 872 + uintptr(i)*104)).FpWLoop + pItem = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pLoop)).FiTab)*104 + if int32((*SrcItem)(unsafe.Pointer(pItem)).Ffg.Fjointype)&(JT_LEFT|JT_RIGHT) != JT_LEFT { continue } if int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FwctrlFlags)&WHERE_WANT_DISTINCT == 0 && @@ -184351,7 +186438,7 @@ func whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady Bitmask) Bitmask pEnd = (*WhereInfo)(unsafe.Pointer(pWInfo)).FsWC.Fa + uintptr((*WhereInfo)(unsafe.Pointer(pWInfo)).FsWC.FnTerm)*56 for pTerm = (*WhereInfo)(unsafe.Pointer(pWInfo)).FsWC.Fa; pTerm < pEnd; pTerm += 56 { if (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll&(*WhereLoop)(unsafe.Pointer(pLoop)).FmaskSelf != uint64(0) { - if !((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_FromJoin) != U32(0)) || + if !((*Expr)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr)).Fflags&U32(EP_OuterON) != U32(0)) || *(*int32)(unsafe.Pointer((*WhereTerm)(unsafe.Pointer(pTerm)).FpExpr + 52)) != (*SrcItem)(unsafe.Pointer(pItem)).FiCursor { break } @@ -184369,7 +186456,7 @@ func whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady Bitmask) Bitmask } if i != int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)-1 { var nByte int32 = int32(uint64(int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)-1-i) * uint64(unsafe.Sizeof(WhereLevel{}))) - libc.Xmemmove(tls, pWInfo+864+uintptr(i)*96, pWInfo+864+uintptr(i+1)*96, uint64(nByte)) + libc.Xmemmove(tls, pWInfo+872+uintptr(i)*104, pWInfo+872+uintptr(i+1)*104, uint64(nByte)) } (*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel-- @@ -184380,31 +186467,31 @@ func whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady Bitmask) Bitmask // Check to see if there are any SEARCH loops that might benefit from // using a Bloom filter. Consider a Bloom filter if: // -// (1) The SEARCH happens more than N times where N is the number -// of rows in the table that is being considered for the Bloom -// filter. -// (2) Some searches are expected to find zero rows. (This is determined -// by the WHERE_SELFCULL flag on the term.) -// (3) Bloom-filter processing is not disabled. (Checked by the -// caller.) -// (4) The size of the table being searched is known by ANALYZE. +// (1) The SEARCH happens more than N times where N is the number +// of rows in the table that is being considered for the Bloom +// filter. +// (2) Some searches are expected to find zero rows. (This is determined +// by the WHERE_SELFCULL flag on the term.) +// (3) Bloom-filter processing is not disabled. (Checked by the +// caller.) +// (4) The size of the table being searched is known by ANALYZE. // // This block of code merely checks to see if a Bloom filter would be // appropriate, and if so sets the WHERE_BLOOMFILTER flag on the // WhereLoop. The implementation of the Bloom filter comes further // down where the code for each WhereLoop is generated. -func whereCheckIfBloomFilterIsUseful(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157276:29: */ +func whereCheckIfBloomFilterIsUseful(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:159252:29: */ var i int32 var nSearch LogEst - nSearch = (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo + 864)).FpWLoop)).FnOut + nSearch = (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo + 872)).FpWLoop)).FnOut for i = 1; i < int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel); i++ { - var pLoop uintptr = (*WhereLevel)(unsafe.Pointer(pWInfo + 864 + uintptr(i)*96)).FpWLoop + var pLoop uintptr = (*WhereLevel)(unsafe.Pointer(pWInfo + 872 + uintptr(i)*104)).FpWLoop var reqFlags uint32 = uint32(WHERE_SELFCULL | WHERE_COLUMN_EQ) if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&reqFlags == reqFlags && (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IPK|WHERE_INDEXED) != U32(0) { - var pItem uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pLoop)).FiTab)*112 + var pItem uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList + 8 + uintptr((*WhereLoop)(unsafe.Pointer(pLoop)).FiTab)*104 var pTab uintptr = (*SrcItem)(unsafe.Pointer(pItem)).FpTab *(*U32)(unsafe.Pointer(pTab + 48)) |= U32(TF_StatsUsed) if int32(nSearch) > int32((*Table)(unsafe.Pointer(pTab)).FnRowLogEst) && @@ -184432,17 +186519,17 @@ func whereCheckIfBloomFilterIsUseful(tls *libc.TLS, pWInfo uintptr) { /* testdat // same as a SELECT with only a single table in the FROM clause.) For // example, if the SQL is this: // -// SELECT * FROM t1, t2, t3 WHERE ...; +// SELECT * FROM t1, t2, t3 WHERE ...; // // Then the code generated is conceptually like the following: // -// foreach row1 in t1 do \ Code generated -// foreach row2 in t2 do |-- by sqlite3WhereBegin() -// foreach row3 in t3 do / -// ... -// end \ Code generated -// end |-- by sqlite3WhereEnd() -// end / +// foreach row1 in t1 do \ Code generated +// foreach row2 in t2 do |-- by sqlite3WhereBegin() +// foreach row3 in t3 do / +// ... +// end \ Code generated +// end |-- by sqlite3WhereEnd() +// end / // // Note that the loops might not be nested in the order in which they // appear in the FROM clause if a different order is better able to make @@ -184474,24 +186561,24 @@ func whereCheckIfBloomFilterIsUseful(tls *libc.TLS, pWInfo uintptr) { /* testdat // inner loops (or around the "..." if the test occurs within the inner- // most loop) // -// OUTER JOINS +// # OUTER JOINS // // An outer join of tables t1 and t2 is conceptally coded as follows: // -// foreach row1 in t1 do -// flag = 0 -// foreach row2 in t2 do -// start: -// ... -// flag = 1 -// end -// if flag==0 then -// move the row2 cursor to a null row -// goto start -// fi -// end -// -// ORDER BY CLAUSE PROCESSING +// foreach row1 in t1 do +// flag = 0 +// foreach row2 in t2 do +// start: +// ... +// flag = 1 +// end +// if flag==0 then +// move the row2 cursor to a null row +// goto start +// fi +// end +// +// # ORDER BY CLAUSE PROCESSING // // pOrderBy is a pointer to the ORDER BY clause (or the GROUP BY clause // if the WHERE_GROUPBY flag is set in wctrlFlags) of a SELECT statement @@ -184505,7 +186592,7 @@ func whereCheckIfBloomFilterIsUseful(tls *libc.TLS, pWInfo uintptr) { /* testdat // the first cursor in an array of cursors for all indices. iIdxCur should // be used to compute the appropriate cursor depending on which index is // used. -func Xsqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pResultSet uintptr, pLimit uintptr, wctrlFlags U16, iAuxArg int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157400:26: */ +func Xsqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere uintptr, pOrderBy uintptr, pResultSet uintptr, pLimit uintptr, wctrlFlags U16, iAuxArg int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:159376:26: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -184539,12 +186626,17 @@ func Xsqlite3WhereBegin(tls *libc.TLS, pParse uintptr, pTabList uintptr, pWhere var pIx uintptr var iIndexCur int32 var op1 int32 + var pInfo uintptr + var pPk uintptr + var pRJ uintptr var pTab uintptr // Table to open var iDb int32 // Index of database containing table/index var pTabItem uintptr + var iOnce int32 var addrExplain int32 _ = addrExplain var wsFlags1 int32 + var pSrc uintptr v = (*Parse)(unsafe.Pointer(pParse)).FpVdbe bFordelete = U8(0) // OPFLAG_FORDELETE or zero, as appropriate @@ -184569,7 +186661,7 @@ __1: if !((*SrcList)(unsafe.Pointer(pTabList)).FnSrc > int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8))) { goto __2 } - Xsqlite3ErrorMsg(tls, pParse, ts+23222, libc.VaList(bp, int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8)))) + Xsqlite3ErrorMsg(tls, pParse, ts+23187, libc.VaList(bp, int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8)))) return uintptr(0) __2: ; @@ -184590,7 +186682,7 @@ __2: // and the WhereMaskSet structure. Since WhereClause contains an 8-byte // field (type Bitmask) it must be aligned on an 8-byte boundary on // some architectures. Hence the ROUND8() below. - nByteWInfo = int32((uint64(unsafe.Sizeof(WhereInfo{})) + uint64(nTabList-1)*uint64(unsafe.Sizeof(WhereLevel{})) + uint64(7)) & libc.Uint64FromInt32(libc.CplInt32(7))) + nByteWInfo = int32(uint64(unsafe.Sizeof(WhereInfo{})) + uint64(nTabList-1)*uint64(unsafe.Sizeof(WhereLevel{}))) pWInfo = Xsqlite3DbMallocRawNN(tls, db, uint64(nByteWInfo)+uint64(unsafe.Sizeof(WhereLoop{}))) if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { goto __3 @@ -184613,24 +186705,24 @@ __3: (*WhereInfo)(unsafe.Pointer(pWInfo)).FsavedNQueryLoop = int32((*Parse)(unsafe.Pointer(pParse)).FnQueryLoop) (*WhereInfo)(unsafe.Pointer(pWInfo)).FpLimit = pLimit libc.Xmemset(tls, pWInfo+73, 0, - uint64(uintptr(0)+112)-uint64(uintptr(0)+73)) - libc.Xmemset(tls, pWInfo+864, 0, uint64(unsafe.Sizeof(WhereLoop{}))+uint64(nTabList)*uint64(unsafe.Sizeof(WhereLevel{}))) + uint64(uintptr(0)+120)-uint64(uintptr(0)+73)) + libc.Xmemset(tls, pWInfo+872, 0, uint64(unsafe.Sizeof(WhereLoop{}))+uint64(nTabList)*uint64(unsafe.Sizeof(WhereLevel{}))) // ONEPASS defaults to OFF - pMaskSet = pWInfo + 600 + pMaskSet = pWInfo + 608 (*WhereMaskSet)(unsafe.Pointer(pMaskSet)).Fn = 0 *(*int32)(unsafe.Pointer(pMaskSet + 8)) = -99 // Initialize ix[0] to a value that can never be // a valid cursor number, to avoid an initial // test for pMaskSet->n==0 in sqlite3WhereGetMask() (*WhereLoopBuilder)(unsafe.Pointer(bp + 8 /* &sWLB */)).FpWInfo = pWInfo - (*WhereLoopBuilder)(unsafe.Pointer(bp + 8 /* &sWLB */)).FpWC = pWInfo + 112 + (*WhereLoopBuilder)(unsafe.Pointer(bp + 8 /* &sWLB */)).FpWC = pWInfo + 120 (*WhereLoopBuilder)(unsafe.Pointer(bp + 8 /* &sWLB */)).FpNew = pWInfo + uintptr(nByteWInfo) whereLoopInit(tls, (*WhereLoopBuilder)(unsafe.Pointer(bp+8 /* &sWLB */)).FpNew) // Split the WHERE clause into separate subexpressions where each // subexpression is separated by an AND operator. - Xsqlite3WhereClauseInit(tls, pWInfo+112, pWInfo) - Xsqlite3WhereSplit(tls, pWInfo+112, pWhere, uint8(TK_AND)) + Xsqlite3WhereClauseInit(tls, pWInfo+120, pWInfo) + Xsqlite3WhereSplit(tls, pWInfo+120, pWhere, uint8(TK_AND)) // Special case: No FROM clause if !(nTabList == 0) { @@ -184649,7 +186741,7 @@ __6: (*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct = U8(WHERE_DISTINCT_UNIQUE) __7: ; - Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+23250, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+23215, 0) goto __5 __4: // Assign a bit from the bitmask to every term in the FROM clause. @@ -184667,8 +186759,8 @@ __4: // WHERE_OR_SUBCLAUSE flag is set. ii = 0 __8: - createMask(tls, pMaskSet, (*SrcItem)(unsafe.Pointer(pTabList+8+uintptr(ii)*112)).FiCursor) - Xsqlite3WhereTabFuncArgs(tls, pParse, pTabList+8+uintptr(ii)*112, pWInfo+112) + createMask(tls, pMaskSet, (*SrcItem)(unsafe.Pointer(pTabList+8+uintptr(ii)*104)).FiCursor) + Xsqlite3WhereTabFuncArgs(tls, pParse, pTabList+8+uintptr(ii)*104, pWInfo+120) goto __9 __9: if libc.PreIncInt32(&ii, 1) < (*SrcList)(unsafe.Pointer(pTabList)).FnSrc { @@ -184681,9 +186773,9 @@ __5: ; // Analyze all of the subexpressions. - Xsqlite3WhereExprAnalyze(tls, pTabList, pWInfo+112) - Xsqlite3WhereAddLimit(tls, pWInfo+112, pLimit) - if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { + Xsqlite3WhereExprAnalyze(tls, pTabList, pWInfo+120) + Xsqlite3WhereAddLimit(tls, pWInfo+120, pLimit) + if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) { goto __11 } goto whereBeginError @@ -184739,7 +186831,7 @@ __14: *(*U16)(unsafe.Pointer(pWInfo + 68)) &= libc.Uint16FromInt32(libc.CplInt32(WHERE_WANT_DISTINCT)) goto __19 __18: - if !(isDistinctRedundant(tls, pParse, pTabList, pWInfo+112, pResultSet) != 0) { + if !(isDistinctRedundant(tls, pParse, pTabList, pWInfo+120, pResultSet) != 0) { goto __20 } // The DISTINCT marking is pointless. Ignore it. @@ -184893,7 +186985,7 @@ __35: if !(int32(wctrlFlags)&WHERE_ONEPASS_DESIRED != 0) { goto __36 } - wsFlags = int32((*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo + 864)).FpWLoop)).FwsFlags) + wsFlags = int32((*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo + 872)).FpWLoop)).FwsFlags) bOnerow = libc.Bool32(wsFlags&WHERE_ONEROW != 0) if !(bOnerow != 0 || 0 != int32(wctrlFlags)&WHERE_ONEPASS_MULTIROW && @@ -184916,7 +187008,7 @@ __35: bFordelete = U8(OPFLAG_FORDELETE) __39: ; - (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo + 864)).FpWLoop)).FwsFlags = U32(wsFlags & libc.CplInt32(WHERE_IDX_ONLY)) + (*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pWInfo + 872)).FpWLoop)).FwsFlags = U32(wsFlags & libc.CplInt32(WHERE_IDX_ONLY)) __38: ; __37: @@ -184927,13 +187019,13 @@ __36: // Open all tables in the pTabList and any indices selected for // searching those tables. ii = 0 - pLevel = pWInfo + 864 /* &.a */ + pLevel = pWInfo + 872 /* &.a */ __40: if !(ii < nTabList) { goto __42 } - pTabItem = pTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112 + pTabItem = pTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104 pTab = (*SrcItem)(unsafe.Pointer(pTabItem)).FpTab iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema) pLoop = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop @@ -184948,7 +187040,7 @@ __43: } pVTab = Xsqlite3GetVTable(tls, db, pTab) iCur = (*SrcItem)(unsafe.Pointer(pTabItem)).FiCursor - Xsqlite3VdbeAddOp4(tls, v, OP_VOpen, iCur, 0, 0, pVTab, -12) + Xsqlite3VdbeAddOp4(tls, v, OP_VOpen, iCur, 0, 0, pVTab, -11) goto __46 __45: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { @@ -184958,7 +187050,8 @@ __45: goto __48 __47: if !((*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IDX_ONLY) == U32(0) && - int32(wctrlFlags)&WHERE_OR_SUBCLAUSE == 0) { + int32(wctrlFlags)&WHERE_OR_SUBCLAUSE == 0 || + int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&(JT_LTORJ|JT_RIGHT) != 0) { goto __49 } op = OP_OpenRead @@ -185092,58 +187185,114 @@ __56: Xsqlite3CodeVerifySchema(tls, pParse, iDb) __67: ; + if !(int32((*SrcItem)(unsafe.Pointer(pTabItem)).Ffg.Fjointype)&JT_RIGHT != 0 && + libc.AssignPtrUintptr(pLevel+48, Xsqlite3WhereMalloc(tls, pWInfo, uint64(unsafe.Sizeof(WhereRightJoin{})))) != uintptr(0)) { + goto __68 + } + pRJ = (*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ + (*WhereRightJoin)(unsafe.Pointer(pRJ)).FiMatch = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) + (*WhereRightJoin)(unsafe.Pointer(pRJ)).FregBloom = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) + Xsqlite3VdbeAddOp2(tls, v, OP_Blob, 65536, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FregBloom) + (*WhereRightJoin)(unsafe.Pointer(pRJ)).FregReturn = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) + Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FregReturn) + + if !((*Table)(unsafe.Pointer(pTab)).FtabFlags&U32(TF_WithoutRowid) == U32(0)) { + goto __69 + } + Xsqlite3VdbeAddOp2(tls, v, OP_OpenEphemeral, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FiMatch, 1) + pInfo = Xsqlite3KeyInfoAlloc(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, 1, 0) + if !(pInfo != 0) { + goto __71 + } + *(*uintptr)(unsafe.Pointer(pInfo + 32)) = uintptr(0) + *(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pInfo)).FaSortFlags)) = U8(0) + Xsqlite3VdbeAppendP4(tls, v, pInfo, -8) +__71: + ; + goto __70 +__69: + pPk = Xsqlite3PrimaryKeyIndex(tls, pTab) + Xsqlite3VdbeAddOp2(tls, v, OP_OpenEphemeral, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FiMatch, int32((*Index)(unsafe.Pointer(pPk)).FnKeyCol)) + Xsqlite3VdbeSetP4KeyInfo(tls, pParse, pPk) +__70: + ; + *(*U32)(unsafe.Pointer(pLoop + 56)) &= libc.Uint32FromInt32(libc.CplInt32(WHERE_IDX_ONLY)) + // The nature of RIGHT JOIN processing is such that it messes up + // the output order. So omit any ORDER BY/GROUP BY elimination + // optimizations. We need to do an actual sort for RIGHT JOIN. + (*WhereInfo)(unsafe.Pointer(pWInfo)).FnOBSat = int8(0) + (*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct = U8(WHERE_DISTINCT_UNORDERED) +__68: + ; goto __41 __41: ii++ - pLevel += 96 + pLevel += 104 goto __40 goto __42 __42: ; (*WhereInfo)(unsafe.Pointer(pWInfo)).FiTop = Xsqlite3VdbeCurrentAddr(tls, v) if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { - goto __68 + goto __72 } goto whereBeginError -__68: +__72: ; // Generate the code to do the search. Each iteration of the for // loop below generates code for a single nested loop of the VM // program. ii = 0 -__69: +__73: if !(ii < nTabList) { - goto __71 + goto __75 } if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) { - goto __72 + goto __76 } goto whereBeginError -__72: +__76: ; - pLevel = pWInfo + 864 + uintptr(ii)*96 + pLevel = pWInfo + 872 + uintptr(ii)*104 wsFlags1 = int32((*WhereLoop1)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop)).FwsFlags) + pSrc = pTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104 + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pSrc + 60 + 4))&0x10>>4)) != 0) { + goto __77 + } + if !(uint32(int32(*(*uint16)(unsafe.Pointer(pSrc + 60 + 4))&0x8>>3)) != 0) { + goto __78 + } + Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, (*SrcItem)(unsafe.Pointer(pSrc)).FregReturn, (*SrcItem)(unsafe.Pointer(pSrc)).FaddrFillSub) + goto __79 +__78: + iOnce = Xsqlite3VdbeAddOp0(tls, v, OP_Once) + Xsqlite3VdbeAddOp2(tls, v, OP_Gosub, (*SrcItem)(unsafe.Pointer(pSrc)).FregReturn, (*SrcItem)(unsafe.Pointer(pSrc)).FaddrFillSub) + Xsqlite3VdbeJumpHere(tls, v, iOnce) +__79: + ; +__77: + ; if !(wsFlags1&(WHERE_AUTO_INDEX|WHERE_BLOOMFILTER) != 0) { - goto __73 + goto __80 } if !(wsFlags1&WHERE_AUTO_INDEX != 0) { - goto __74 + goto __81 } - constructAutomaticIndex(tls, pParse, pWInfo+112, - pTabList+8+uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112, notReady, pLevel) - goto __75 -__74: + constructAutomaticIndex(tls, pParse, pWInfo+120, + pTabList+8+uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104, notReady, pLevel) + goto __82 +__81: sqlite3ConstructBloomFilter(tls, pWInfo, ii, pLevel, notReady) -__75: +__82: ; if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { - goto __76 + goto __83 } goto whereBeginError -__76: +__83: ; -__73: +__80: ; addrExplain = Xsqlite3WhereExplainOneScan(tls, pParse, pTabList, pLevel, wctrlFlags) @@ -185151,17 +187300,17 @@ __73: notReady = Xsqlite3WhereCodeOneLoopStart(tls, pParse, v, pWInfo, ii, pLevel, notReady) (*WhereInfo)(unsafe.Pointer(pWInfo)).FiContinue = (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont if !(wsFlags1&WHERE_MULTI_OR == 0 && int32(wctrlFlags)&WHERE_OR_SUBCLAUSE == 0) { - goto __77 + goto __84 } _ = addrExplain -__77: +__84: ; - goto __70 -__70: + goto __74 +__74: ii++ - goto __69 - goto __71 -__71: + goto __73 + goto __75 +__75: ; // Done. @@ -185172,13 +187321,13 @@ __71: // Jump here if malloc fails whereBeginError: if !(pWInfo != 0) { - goto __78 + goto __85 } whereUndoExprMods(tls, pWInfo) (*Parse)(unsafe.Pointer(pParse)).FnQueryLoop = U32((*WhereInfo)(unsafe.Pointer(pWInfo)).FsavedNQueryLoop) whereInfoFree(tls, db, pWInfo) -__78: +__85: ; return uintptr(0) } @@ -185190,7 +187339,7 @@ __78: // Generate the end of the WHERE loop. See comments on // sqlite3WhereBegin() for additional information. -func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:157986:21: */ +func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160007:21: */ var pParse uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpParse var v uintptr = (*Parse)(unsafe.Pointer(pParse)).FpVdbe var i int32 @@ -185199,12 +187348,24 @@ func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalga var pTabList uintptr = (*WhereInfo)(unsafe.Pointer(pWInfo)).FpTabList var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb var iEnd int32 = Xsqlite3VdbeCurrentAddr(tls, v) + var nRJ int32 = 0 // Generate loop termination code. for i = int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel) - 1; i >= 0; i-- { var addr int32 - pLevel = pWInfo + 864 + uintptr(i)*96 + pLevel = pWInfo + 872 + uintptr(i)*104 + if (*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ != 0 { + // Terminate the subroutine that forms the interior of the loop of + // the RIGHT JOIN table + var pRJ uintptr = (*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ + Xsqlite3VdbeResolveLabel(tls, v, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont) + (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont = 0 + (*WhereRightJoin)(unsafe.Pointer(pRJ)).FendSubrtn = Xsqlite3VdbeCurrentAddr(tls, v) + Xsqlite3VdbeAddOp3(tls, v, OP_Return, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FregReturn, (*WhereRightJoin)(unsafe.Pointer(pRJ)).FaddrSubrtn, 1) + + nRJ++ + } pLoop = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop if int32((*WhereLevel)(unsafe.Pointer(pLevel)).Fop) != OP_Noop { var addrSeek int32 = 0 @@ -185233,7 +187394,9 @@ func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalga Xsqlite3VdbeAddOp2(tls, v, OP_Goto, 1, (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2) } // The common case: Advance to the next row - Xsqlite3VdbeResolveLabel(tls, v, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont) + if (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont != 0 { + Xsqlite3VdbeResolveLabel(tls, v, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont) + } Xsqlite3VdbeAddOp3(tls, v, int32((*WhereLevel)(unsafe.Pointer(pLevel)).Fop), (*WhereLevel)(unsafe.Pointer(pLevel)).Fp1, (*WhereLevel)(unsafe.Pointer(pLevel)).Fp2, int32((*WhereLevel)(unsafe.Pointer(pLevel)).Fp3)) Xsqlite3VdbeChangeP5(tls, v, uint16((*WhereLevel)(unsafe.Pointer(pLevel)).Fp5)) @@ -185245,15 +187408,15 @@ func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalga if addrSeek != 0 { Xsqlite3VdbeJumpHere(tls, v, addrSeek) } - } else { + } else if (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont != 0 { Xsqlite3VdbeResolveLabel(tls, v, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrCont) } - if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_ABLE) != U32(0) && *(*int32)(unsafe.Pointer(pLevel + 64)) > 0 { + if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_IN_ABLE) != U32(0) && *(*int32)(unsafe.Pointer(pLevel + 72)) > 0 { var pIn uintptr var j int32 Xsqlite3VdbeResolveLabel(tls, v, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrNxt) - j = *(*int32)(unsafe.Pointer(pLevel + 64)) - pIn = *(*uintptr)(unsafe.Pointer(pLevel + 64 + 8)) + uintptr(j-1)*20 + j = *(*int32)(unsafe.Pointer(pLevel + 72)) + pIn = *(*uintptr)(unsafe.Pointer(pLevel + 72 + 8)) + uintptr(j-1)*20 __1: if !(j > 0) { goto __3 @@ -185305,6 +187468,10 @@ func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalga __3: } Xsqlite3VdbeResolveLabel(tls, v, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBrk) + if (*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ != 0 { + Xsqlite3VdbeAddOp3(tls, v, OP_Return, (*WhereRightJoin)(unsafe.Pointer((*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ)).FregReturn, 0, 1) + + } if (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrSkip != 0 { Xsqlite3VdbeGoto(tls, v, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrSkip) @@ -185320,9 +187487,9 @@ func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalga Xsqlite3VdbeAddOp1(tls, v, OP_NullRow, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur) } if ws&WHERE_INDEXED != 0 || - ws&WHERE_MULTI_OR != 0 && *(*uintptr)(unsafe.Pointer(pLevel + 64)) != 0 { + ws&WHERE_MULTI_OR != 0 && *(*uintptr)(unsafe.Pointer(pLevel + 72)) != 0 { if ws&WHERE_MULTI_OR != 0 { - var pIx uintptr = *(*uintptr)(unsafe.Pointer(pLevel + 64)) + var pIx uintptr = *(*uintptr)(unsafe.Pointer(pLevel + 72)) var iDb int32 = Xsqlite3SchemaToIndex(tls, db, (*Index)(unsafe.Pointer(pIx)).FpSchema) Xsqlite3VdbeAddOp3(tls, v, OP_ReopenIdx, (*WhereLevel)(unsafe.Pointer(pLevel)).FiIdxCur, int32((*Index)(unsafe.Pointer(pIx)).Ftnum), iDb) Xsqlite3VdbeSetP4KeyInfo(tls, pParse, pIx) @@ -185339,12 +187506,11 @@ func Xsqlite3WhereEnd(tls *libc.TLS, pWInfo uintptr) { /* testdata/sqlite-amalga } - // The "break" point is here, just past the end of the outer loop. - // Set it. - Xsqlite3VdbeResolveLabel(tls, v, (*WhereInfo)(unsafe.Pointer(pWInfo)).FiBreak) - + if (*WhereInfo)(unsafe.Pointer(pWInfo)).FpExprMods != 0 { + whereUndoExprMods(tls, pWInfo) + } i = 0 - pLevel = pWInfo + 864 /* &.a */ + pLevel = pWInfo + 872 /* &.a */ __4: if !(i < int32((*WhereInfo)(unsafe.Pointer(pWInfo)).FnLevel)) { goto __6 @@ -185355,15 +187521,23 @@ __4: var pOp uintptr var pLastOp uintptr var pIdx uintptr = uintptr(0) - var pTabItem uintptr = pTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*112 + var pTabItem uintptr = pTabList + 8 + uintptr((*WhereLevel)(unsafe.Pointer(pLevel)).FiFrom)*104 var pTab uintptr = (*SrcItem)(unsafe.Pointer(pTabItem)).FpTab pLoop = (*WhereLevel)(unsafe.Pointer(pLevel)).FpWLoop + // Do RIGHT JOIN processing. Generate code that will output the + // unmatched rows of the right operand of the RIGHT JOIN with + // all of the columns of the left operand set to NULL. + if (*WhereLevel)(unsafe.Pointer(pLevel)).FpRJ != 0 { + Xsqlite3WhereRightJoinLoop(tls, pWInfo, i, pLevel) + goto __5 + } + // For a co-routine, change all OP_Column references to the table of // the co-routine into OP_Copy of result contained in a register. // OP_Rowid becomes OP_Null. - if uint32(int32(*(*uint16)(unsafe.Pointer(pTabItem + 60 + 4))&0x10>>4)) != 0 { + if uint32(int32(*(*uint16)(unsafe.Pointer(pTabItem + 60 + 4))&0x20>>5)) != 0 { translateColumnToCopy(tls, pParse, (*WhereLevel)(unsafe.Pointer(pLevel)).FaddrBody, (*WhereLevel)(unsafe.Pointer(pLevel)).FiTabCur, (*SrcItem)(unsafe.Pointer(pTabItem)).FregResult, 0) @@ -185383,7 +187557,7 @@ __4: if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_INDEXED|WHERE_IDX_ONLY) != 0 { pIdx = *(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.pIndex */)) } else if (*WhereLoop)(unsafe.Pointer(pLoop)).FwsFlags&U32(WHERE_MULTI_OR) != 0 { - pIdx = *(*uintptr)(unsafe.Pointer(pLevel + 64)) + pIdx = *(*uintptr)(unsafe.Pointer(pLevel + 72)) } if pIdx != 0 && !(int32((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed) != 0) { @@ -185439,18 +187613,20 @@ __4: goto __5 __5: i++ - pLevel += 96 + pLevel += 104 goto __4 goto __6 __6: ; + // The "break" point is here, just past the end of the outer loop. + // Set it. + Xsqlite3VdbeResolveLabel(tls, v, (*WhereInfo)(unsafe.Pointer(pWInfo)).FiBreak) + // Final cleanup - if (*WhereInfo)(unsafe.Pointer(pWInfo)).FpExprMods != 0 { - whereUndoExprMods(tls, pWInfo) - } (*Parse)(unsafe.Pointer(pParse)).FnQueryLoop = U32((*WhereInfo)(unsafe.Pointer(pWInfo)).FsavedNQueryLoop) whereInfoFree(tls, db, pWInfo) + *(*U8)(unsafe.Pointer(pParse + 38)) -= U8(nRJ) return } @@ -185593,8 +187769,8 @@ __6: // Implementation of built-in window function row_number(). Assumes that the // window frame has been coerced to: // -// ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW -func row_numberStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158442:13: */ +// ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW +func row_numberStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160466:13: */ var p uintptr = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(I64(0)))) if p != 0 { *(*I64)(unsafe.Pointer(p))++ @@ -185603,7 +187779,7 @@ func row_numberStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) _ = apArg } -func row_numberValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158452:13: */ +func row_numberValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160476:13: */ var p uintptr = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(I64(0)))) Xsqlite3_result_int64(tls, pCtx, func() int64 { if p != 0 { @@ -185619,13 +187795,13 @@ type CallCount = struct { FnValue I64 FnStep I64 FnTotal I64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158461:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160485:1 */ // Implementation of built-in window function dense_rank(). Assumes that // the window frame has been set to: // -// RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW -func dense_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158473:13: */ +// RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW +func dense_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160497:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{}))) if p != 0 { @@ -185635,7 +187811,7 @@ func dense_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) _ = apArg } -func dense_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158484:13: */ +func dense_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160508:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{}))) if p != 0 { @@ -185653,9 +187829,9 @@ func dense_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalg type NthValueCtx = struct { FnStep I64 FpValue uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158501:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160525:1 */ -func nth_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158505:13: */ +func nth_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160529:13: */ var p uintptr var fVal float64 var iVal I64 @@ -185718,10 +187894,10 @@ __1: error_out: Xsqlite3_result_error(tls, - pCtx, ts+23268, -1) + pCtx, ts+23233, -1) } -func nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158546:13: */ +func nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160570:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, 0) if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue != 0 { @@ -185731,7 +187907,7 @@ func nth_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-ama } } -func first_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158558:13: */ +func first_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160582:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NthValueCtx{}))) if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue == uintptr(0) { @@ -185744,7 +187920,7 @@ func first_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) _ = apArg } -func first_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158574:13: */ +func first_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160598:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NthValueCtx{}))) if p != 0 && (*NthValueCtx)(unsafe.Pointer(p)).FpValue != 0 { @@ -185757,8 +187933,8 @@ func first_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-a // Implementation of built-in window function rank(). Assumes that // the window frame has been set to: // -// RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW -func rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158592:13: */ +// RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW +func rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160616:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{}))) if p != 0 { @@ -185771,7 +187947,7 @@ func rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* t _ = apArg } -func rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158608:13: */ +func rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160632:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{}))) if p != 0 { @@ -185783,8 +187959,8 @@ func rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamatio // Implementation of built-in window function percent_rank(). Assumes that // the window frame has been set to: // -// GROUPS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING -func percent_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158623:13: */ +// GROUPS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING +func percent_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160647:13: */ var p uintptr _ = nArg _ = apArg @@ -185794,7 +187970,7 @@ func percent_rankStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr } } -func percent_rankInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158636:13: */ +func percent_rankInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160660:13: */ var p uintptr _ = nArg _ = apArg @@ -185802,7 +187978,7 @@ func percent_rankInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) (*CallCount)(unsafe.Pointer(p)).FnStep++ } -func percent_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158647:13: */ +func percent_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160671:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(CallCount{}))) if p != 0 { @@ -185819,8 +187995,8 @@ func percent_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-ama // Implementation of built-in window function cume_dist(). Assumes that // the window frame has been set to: // -// GROUPS BETWEEN 1 FOLLOWING AND UNBOUNDED FOLLOWING -func cume_distStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158668:13: */ +// GROUPS BETWEEN 1 FOLLOWING AND UNBOUNDED FOLLOWING +func cume_distStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160692:13: */ var p uintptr _ = nArg _ = apArg @@ -185830,7 +188006,7 @@ func cume_distStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { } } -func cume_distInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158681:13: */ +func cume_distInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160705:13: */ var p uintptr _ = nArg _ = apArg @@ -185838,7 +188014,7 @@ func cume_distInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { (*CallCount)(unsafe.Pointer(p)).FnStep++ } -func cume_distValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158692:13: */ +func cume_distValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160716:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, 0) if p != 0 { @@ -185852,13 +188028,13 @@ type NtileCtx = struct { FnTotal I64 FnParam I64 FiRow I64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158705:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160729:1 */ // Implementation of ntile(). This assumes that the window frame has // been coerced to: // -// ROWS CURRENT ROW AND UNBOUNDED FOLLOWING -func ntileStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158717:13: */ +// ROWS CURRENT ROW AND UNBOUNDED FOLLOWING +func ntileStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160741:13: */ var p uintptr _ = nArg p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NtileCtx{}))) @@ -185867,14 +188043,14 @@ func ntileStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* (*NtileCtx)(unsafe.Pointer(p)).FnParam = Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(apArg))) if (*NtileCtx)(unsafe.Pointer(p)).FnParam <= int64(0) { Xsqlite3_result_error(tls, - pCtx, ts+23324, -1) + pCtx, ts+23289, -1) } } (*NtileCtx)(unsafe.Pointer(p)).FnTotal++ } } -func ntileInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158737:13: */ +func ntileInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160761:13: */ var p uintptr _ = nArg _ = apArg @@ -185882,7 +188058,7 @@ func ntileInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* t (*NtileCtx)(unsafe.Pointer(p)).FiRow++ } -func ntileValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158748:13: */ +func ntileValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160772:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(NtileCtx{}))) if p != 0 && (*NtileCtx)(unsafe.Pointer(p)).FnParam > int64(0) { @@ -185908,10 +188084,10 @@ type LastValueCtx = struct { FpVal uintptr FnVal int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158775:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160799:1 */ // Implementation of last_value(). -func last_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158783:13: */ +func last_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160807:13: */ var p uintptr _ = nArg p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(LastValueCtx{}))) @@ -185926,7 +188102,7 @@ func last_valueStepFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) } } -func last_valueInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158801:13: */ +func last_valueInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160825:13: */ var p uintptr _ = nArg _ = apArg @@ -185940,7 +188116,7 @@ func last_valueInvFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { } } -func last_valueValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158818:13: */ +func last_valueValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160842:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, 0) if p != 0 && (*LastValueCtx)(unsafe.Pointer(p)).FpVal != 0 { @@ -185948,7 +188124,7 @@ func last_valueValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalg } } -func last_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158825:13: */ +func last_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160849:13: */ var p uintptr p = Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(LastValueCtx{}))) if p != 0 && (*LastValueCtx)(unsafe.Pointer(p)).FpVal != 0 { @@ -185963,18 +188139,18 @@ func last_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-am // can be associated with a particular window function by direct // comparison of the zName pointer. Example: // -// if( pFuncDef->zName==row_valueName ){ ... } -var row_numberName = *(*[11]int8)(unsafe.Pointer(ts + 23369)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158843:19 */ -var dense_rankName = *(*[11]int8)(unsafe.Pointer(ts + 23380)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158844:19 */ -var rankName = *(*[5]int8)(unsafe.Pointer(ts + 23391)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158845:19 */ -var percent_rankName = *(*[13]int8)(unsafe.Pointer(ts + 23396)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158846:19 */ -var cume_distName = *(*[10]int8)(unsafe.Pointer(ts + 23409)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158847:19 */ -var ntileName = *(*[6]int8)(unsafe.Pointer(ts + 23419)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158848:19 */ -var last_valueName = *(*[11]int8)(unsafe.Pointer(ts + 23425)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158849:19 */ -var nth_valueName = *(*[10]int8)(unsafe.Pointer(ts + 23436)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158850:19 */ -var first_valueName = *(*[12]int8)(unsafe.Pointer(ts + 23446)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158851:19 */ -var leadName = *(*[5]int8)(unsafe.Pointer(ts + 23458)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158852:19 */ -var lagName = *(*[4]int8)(unsafe.Pointer(ts + 23463 /* "lag" */)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158853:19 */ +// if( pFuncDef->zName==row_valueName ){ ... } +var row_numberName = *(*[11]int8)(unsafe.Pointer(ts + 23334)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160867:19 */ +var dense_rankName = *(*[11]int8)(unsafe.Pointer(ts + 23345)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160868:19 */ +var rankName = *(*[5]int8)(unsafe.Pointer(ts + 23356)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160869:19 */ +var percent_rankName = *(*[13]int8)(unsafe.Pointer(ts + 23361)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160870:19 */ +var cume_distName = *(*[10]int8)(unsafe.Pointer(ts + 23374)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160871:19 */ +var ntileName = *(*[6]int8)(unsafe.Pointer(ts + 23384)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160872:19 */ +var last_valueName = *(*[11]int8)(unsafe.Pointer(ts + 23390)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160873:19 */ +var nth_valueName = *(*[10]int8)(unsafe.Pointer(ts + 23401)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160874:19 */ +var first_valueName = *(*[12]int8)(unsafe.Pointer(ts + 23411)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160875:19 */ +var leadName = *(*[5]int8)(unsafe.Pointer(ts + 23423)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160876:19 */ +var lagName = *(*[4]int8)(unsafe.Pointer(ts + 23428 /* "lag" */)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160877:19 */ // No-op implementations of xStep() and xFinalize(). Used as place-holders // for built-in window functions that never call those interfaces. @@ -185983,15 +188159,15 @@ var lagName = *(*[4]int8)(unsafe.Pointer(ts + 23463 /* "lag" */)) /* testdata/sq // noopStepFunc() is never called, and so it is marked with NO_TEST to // let the test coverage routine know not to expect this function to be // invoked. -func noopStepFunc(tls *libc.TLS, p uintptr, n int32, a uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158864:13: */ //NO_TEST +func noopStepFunc(tls *libc.TLS, p uintptr, n int32, a uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160888:13: */ //NO_TEST _ = p //NO_TEST _ = n //NO_TEST _ = a //NO_TEST //NO_TEST } -//NO_TEST -func noopValueFunc(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158874:13: */ +// NO_TEST +func noopValueFunc(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160898:13: */ _ = p /*no-op*/ } @@ -186006,7 +188182,7 @@ func noopValueFunc(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3 // xInverse. // Register those built-in window functions that are not also aggregates. -func Xsqlite3WindowFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158905:21: */ +func Xsqlite3WindowFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160929:21: */ Xsqlite3InsertBuiltinFuncs(tls, uintptr(unsafe.Pointer(&aWindowFuncs)), int32(uint64(unsafe.Sizeof(aWindowFuncs))/uint64(unsafe.Sizeof(FuncDef{})))) } @@ -186025,9 +188201,9 @@ var aWindowFuncs = [15]FuncDef{ {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_WINDOW | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: 0}, {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_WINDOW | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: 0}, {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_WINDOW | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: 0}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_WINDOW | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: 0}} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158906:18 */ + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_WINDOW | 0), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: 0}} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160930:18 */ -func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158926:15: */ +func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160950:15: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -186038,7 +188214,7 @@ func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uin } } if p == uintptr(0) { - Xsqlite3ErrorMsg(tls, pParse, ts+23467, libc.VaList(bp, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+23432, libc.VaList(bp, zName)) } return p } @@ -186050,15 +188226,15 @@ func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uin // is the Window object representing the associated OVER clause. This // function updates the contents of pWin as follows: // -// * If the OVER clause refered to a named window (as in "max(x) OVER win"), +// - If the OVER clause refered to a named window (as in "max(x) OVER win"), // search list pList for a matching WINDOW definition, and update pWin // accordingly. If no such WINDOW clause can be found, leave an error // in pParse. // -// * If the function is a built-in window function that requires the +// - If the function is a built-in window function that requires the // window to be coerced (see "BUILT-IN WINDOW FUNCTIONS" at the top // of this file), pWin is updated here. -func Xsqlite3WindowUpdate(tls *libc.TLS, pParse uintptr, pList uintptr, pWin uintptr, pFunc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158954:21: */ +func Xsqlite3WindowUpdate(tls *libc.TLS, pParse uintptr, pList uintptr, pWin uintptr, pFunc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160978:21: */ bp := tls.Alloc(192) defer tls.Free(192) @@ -186082,12 +188258,12 @@ func Xsqlite3WindowUpdate(tls *libc.TLS, pParse uintptr, pList uintptr, pWin uin ((*Window)(unsafe.Pointer(pWin)).FpStart != 0 || (*Window)(unsafe.Pointer(pWin)).FpEnd != 0) && ((*Window)(unsafe.Pointer(pWin)).FpOrderBy == uintptr(0) || (*ExprList)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpOrderBy)).FnExpr != 1) { Xsqlite3ErrorMsg(tls, pParse, - ts+23486, 0) + ts+23451, 0) } else if (*FuncDef)(unsafe.Pointer(pFunc)).FfuncFlags&U32(SQLITE_FUNC_WINDOW) != 0 { var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb if (*Window)(unsafe.Pointer(pWin)).FpFilter != 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+23557, 0) + ts+23522, 0) } else { *(*[8]WindowUpdate)(unsafe.Pointer(bp /* aUp */)) = [8]WindowUpdate{ {FzFunc: uintptr(unsafe.Pointer(&row_numberName)), FeFrmType: TK_ROWS, FeStart: TK_UNBOUNDED, FeEnd: TK_CURRENT}, @@ -186110,14 +188286,14 @@ func Xsqlite3WindowUpdate(tls *libc.TLS, pParse uintptr, pList uintptr, pWin uin (*Window)(unsafe.Pointer(pWin)).FeEnd = U8((*WindowUpdate)(unsafe.Pointer(bp + uintptr(i)*24)).FeEnd) (*Window)(unsafe.Pointer(pWin)).FeExclude = U8(0) if int32((*Window)(unsafe.Pointer(pWin)).FeStart) == TK_FOLLOWING { - (*Window)(unsafe.Pointer(pWin)).FpStart = Xsqlite3Expr(tls, db, TK_INTEGER, ts+9177) + (*Window)(unsafe.Pointer(pWin)).FpStart = Xsqlite3Expr(tls, db, TK_INTEGER, ts+9216) } break } } } } - (*Window)(unsafe.Pointer(pWin)).FpFunc = pFunc + (*Window)(unsafe.Pointer(pWin)).FpWFunc = pFunc } type WindowUpdate = struct { @@ -186126,16 +188302,16 @@ type WindowUpdate = struct { FeStart int32 FeEnd int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158989:7 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161013:7 */ // Context object passed through sqlite3WalkExprList() to // selectWindowRewriteExprCb() by selectWindowRewriteEList(). -type WindowRewrite = WindowRewrite1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159029:30 */ +type WindowRewrite = WindowRewrite1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161053:30 */ // Callback function used by selectWindowRewriteEList(). If necessary, // this function appends to the output expression-list and updates // expression (*ppExpr) in place. -func selectWindowRewriteExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159043:12: */ +func selectWindowRewriteExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161067:12: */ var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) var pParse uintptr = (*Walker)(unsafe.Pointer(pWalker)).FpParse @@ -186151,7 +188327,7 @@ func selectWindowRewriteExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) in var nSrc int32 = (*SrcList)(unsafe.Pointer((*WindowRewrite1)(unsafe.Pointer(p)).FpSrc)).FnSrc var i int32 for i = 0; i < nSrc; i++ { - if (*Expr)(unsafe.Pointer(pExpr)).FiTable == (*SrcItem)(unsafe.Pointer((*WindowRewrite1)(unsafe.Pointer(p)).FpSrc+8+uintptr(i)*112)).FiCursor { + if (*Expr)(unsafe.Pointer(pExpr)).FiTable == (*SrcItem)(unsafe.Pointer((*WindowRewrite1)(unsafe.Pointer(p)).FpSrc+8+uintptr(i)*104)).FiCursor { break } } @@ -186234,7 +188410,7 @@ func selectWindowRewriteExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) in return WRC_Continue } -func selectWindowRewriteSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159125:12: */ +func selectWindowRewriteSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161149:12: */ var p uintptr = *(*uintptr)(unsafe.Pointer(pWalker + 40)) var pSave uintptr = (*WindowRewrite1)(unsafe.Pointer(p)).FpSubSelect if pSave == pSelect { @@ -186249,16 +188425,16 @@ func selectWindowRewriteSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr // Iterate through each expression in expression-list pEList. For each: // -// * TK_COLUMN, -// * aggregate function, or -// * window function with a Window object that is not a member of the +// - TK_COLUMN, +// - aggregate function, or +// - window function with a Window object that is not a member of the // Window list passed as the second argument (pWin). // // Append the node to output expression-list (*ppSub). And replace it // with a TK_COLUMN that reads the (N-1)th element of table // pWin->iEphCsr, where N is the number of elements in (*ppSub) after // appending the new one. -func selectWindowRewriteEList(tls *libc.TLS, pParse uintptr, pWin uintptr, pSrc uintptr, pEList uintptr, pTab uintptr, ppSub uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159152:13: */ +func selectWindowRewriteEList(tls *libc.TLS, pParse uintptr, pWin uintptr, pSrc uintptr, pEList uintptr, pTab uintptr, ppSub uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161176:13: */ bp := tls.Alloc(88) defer tls.Free(88) @@ -186290,7 +188466,7 @@ func selectWindowRewriteEList(tls *libc.TLS, pParse uintptr, pWin uintptr, pSrc // Append a copy of each expression in expression-list pAppend to // expression list pList. Return a pointer to the result list. -func exprListAppendList(tls *libc.TLS, pParse uintptr, pList uintptr, pAppend uintptr, bIntToNull int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159186:17: */ +func exprListAppendList(tls *libc.TLS, pParse uintptr, pList uintptr, pAppend uintptr, bIntToNull int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161210:17: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -186323,7 +188499,7 @@ func exprListAppendList(tls *libc.TLS, pParse uintptr, pList uintptr, pAppend ui } pList = Xsqlite3ExprListAppend(tls, pParse, pList, pDup) if pList != 0 { - (*ExprList_item)(unsafe.Pointer(pList + 8 + uintptr(nInit+i)*32)).FsortFlags = (*ExprList_item)(unsafe.Pointer(pAppend + 8 + uintptr(i)*32)).FsortFlags + (*ExprList_item)(unsafe.Pointer(pList + 8 + uintptr(nInit+i)*32)).Ffg.FsortFlags = (*ExprList_item)(unsafe.Pointer(pAppend + 8 + uintptr(i)*32)).Ffg.FsortFlags } } } @@ -186336,7 +188512,7 @@ func exprListAppendList(tls *libc.TLS, pParse uintptr, pList uintptr, pAppend ui // due to the extra subquery layer that was added. // // See also the incrAggDepth() routine in resolve.c -func sqlite3WindowExtraAggFuncDepth(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159228:12: */ +func sqlite3WindowExtraAggFuncDepth(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161252:12: */ if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_AGG_FUNCTION && int32((*Expr)(unsafe.Pointer(pExpr)).Fop2) >= (*Walker)(unsafe.Pointer(pWalker)).FwalkerDepth { (*Expr)(unsafe.Pointer(pExpr)).Fop2++ @@ -186344,14 +188520,14 @@ func sqlite3WindowExtraAggFuncDepth(tls *libc.TLS, pWalker uintptr, pExpr uintpt return WRC_Continue } -func disallowAggregatesInOrderByCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159237:12: */ +func disallowAggregatesInOrderByCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161261:12: */ bp := tls.Alloc(8) defer tls.Free(8) if int32((*Expr)(unsafe.Pointer(pExpr)).Fop) == TK_AGG_FUNCTION && (*Expr)(unsafe.Pointer(pExpr)).FpAggInfo == uintptr(0) { Xsqlite3ErrorMsg(tls, (*Walker)(unsafe.Pointer(pWalker)).FpParse, - ts+23620, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pExpr + 8)))) + ts+23585, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pExpr + 8)))) } return WRC_Continue } @@ -186361,7 +188537,7 @@ func disallowAggregatesInOrderByCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr // rewrites the SELECT statement so that window function xStep functions // are invoked in the correct order as described under "SELECT REWRITING" // at the top of this file. -func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159253:20: */ +func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161277:20: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -186452,7 +188628,7 @@ func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* var pArgs uintptr pArgs = *(*uintptr)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpOwner + 32)) - if (*FuncDef)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpFunc)).FfuncFlags&U32(SQLITE_FUNC_SUBTYPE) != 0 { + if (*FuncDef)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpWFunc)).FfuncFlags&U32(SQLITE_FUNC_SUBTYPE) != 0 { selectWindowRewriteEList(tls, pParse, pMWin, pSrc, pArgs, pTab, bp+48) (*Window)(unsafe.Pointer(pWin)).FiArgCol = func() int32 { if *(*uintptr)(unsafe.Pointer(bp + 48)) != 0 { @@ -186486,7 +188662,7 @@ func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* // keep everything legal in this case. if *(*uintptr)(unsafe.Pointer(bp + 48)) == uintptr(0) { *(*uintptr)(unsafe.Pointer(bp + 48 /* pSublist */)) = Xsqlite3ExprListAppend(tls, pParse, uintptr(0), - Xsqlite3Expr(tls, db, TK_INTEGER, ts+8769)) + Xsqlite3Expr(tls, db, TK_INTEGER, ts+8808)) } pSub = Xsqlite3SelectNew(tls, @@ -186545,7 +188721,7 @@ func Xsqlite3WindowRewrite(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* // Unlink the Window object from the Select to which it is attached, // if it is attached. -func Xsqlite3WindowUnlinkFromSelect(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159417:21: */ +func Xsqlite3WindowUnlinkFromSelect(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161441:21: */ if (*Window)(unsafe.Pointer(p)).FppThis != 0 { *(*uintptr)(unsafe.Pointer((*Window)(unsafe.Pointer(p)).FppThis)) = (*Window)(unsafe.Pointer(p)).FpNextWin if (*Window)(unsafe.Pointer(p)).FpNextWin != 0 { @@ -186556,7 +188732,7 @@ func Xsqlite3WindowUnlinkFromSelect(tls *libc.TLS, p uintptr) { /* testdata/sqli } // Free the Window object passed as the second argument. -func Xsqlite3WindowDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159428:21: */ +func Xsqlite3WindowDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161452:21: */ if p != 0 { Xsqlite3WindowUnlinkFromSelect(tls, p) Xsqlite3ExprDelete(tls, db, (*Window)(unsafe.Pointer(p)).FpFilter) @@ -186571,7 +188747,7 @@ func Xsqlite3WindowDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sq } // Free the linked list of Window objects starting at the second argument. -func Xsqlite3WindowListDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159445:21: */ +func Xsqlite3WindowListDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161469:21: */ for p != 0 { var pNext uintptr = (*Window)(unsafe.Pointer(p)).FpNextWin Xsqlite3WindowDelete(tls, db, p) @@ -186584,7 +188760,7 @@ func Xsqlite3WindowListDelete(tls *libc.TLS, db uintptr, p uintptr) { /* testdat // constant, change it to NULL. The fact that it is then a non-negative // integer will be caught later. But it is important not to leave // variable values in the expression tree. -func sqlite3WindowOffsetExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159460:13: */ +func sqlite3WindowOffsetExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161484:13: */ if 0 == Xsqlite3ExprIsConstant(tls, pExpr) { if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME { Xsqlite3RenameExprUnmap(tls, pParse, pExpr) @@ -186596,7 +188772,7 @@ func sqlite3WindowOffsetExpr(tls *libc.TLS, pParse uintptr, pExpr uintptr) uintp } // Allocate and return a new Window object describing a Window Definition. -func Xsqlite3WindowAlloc(tls *libc.TLS, pParse uintptr, eType int32, eStart int32, pStart uintptr, eEnd int32, pEnd uintptr, eExclude U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159472:23: */ +func Xsqlite3WindowAlloc(tls *libc.TLS, pParse uintptr, eType int32, eStart int32, pStart uintptr, eEnd int32, pEnd uintptr, eExclude U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161496:23: */ var pWin uintptr var bImplicitFrame int32 pWin = uintptr(0) @@ -186629,7 +188805,7 @@ __1: eStart == TK_FOLLOWING && (eEnd == TK_PRECEDING || eEnd == TK_CURRENT)) { goto __2 } - Xsqlite3ErrorMsg(tls, pParse, ts+23646, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+23611, 0) goto windowAllocErr __2: ; @@ -186665,7 +188841,7 @@ windowAllocErr: // Attach PARTITION and ORDER BY clauses pPartition and pOrderBy to window // pWin. Also, if parameter pBase is not NULL, set pWin->zBase to the // equivalent nul-terminated string. -func Xsqlite3WindowAssemble(tls *libc.TLS, pParse uintptr, pWin uintptr, pPartition uintptr, pOrderBy uintptr, pBase uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159544:23: */ +func Xsqlite3WindowAssemble(tls *libc.TLS, pParse uintptr, pWin uintptr, pPartition uintptr, pOrderBy uintptr, pBase uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161568:23: */ if pWin != 0 { (*Window)(unsafe.Pointer(pWin)).FpPartition = pPartition (*Window)(unsafe.Pointer(pWin)).FpOrderBy = pOrderBy @@ -186684,7 +188860,7 @@ func Xsqlite3WindowAssemble(tls *libc.TLS, pParse uintptr, pWin uintptr, pPartit // stored in the linked list starting at pWin->pNextWin. This function // either updates *pWin according to the base specification, or else // leaves an error in pParse. -func Xsqlite3WindowChain(tls *libc.TLS, pParse uintptr, pWin uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159571:21: */ +func Xsqlite3WindowChain(tls *libc.TLS, pParse uintptr, pWin uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161595:21: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -186695,15 +188871,15 @@ func Xsqlite3WindowChain(tls *libc.TLS, pParse uintptr, pWin uintptr, pList uint var zErr uintptr = uintptr(0) // Check for errors if (*Window)(unsafe.Pointer(pWin)).FpPartition != 0 { - zErr = ts + 23678 /* "PARTITION clause" */ + zErr = ts + 23643 /* "PARTITION clause" */ } else if (*Window)(unsafe.Pointer(pExist)).FpOrderBy != 0 && (*Window)(unsafe.Pointer(pWin)).FpOrderBy != 0 { - zErr = ts + 23695 /* "ORDER BY clause" */ + zErr = ts + 23660 /* "ORDER BY clause" */ } else if int32((*Window)(unsafe.Pointer(pExist)).FbImplicitFrame) == 0 { - zErr = ts + 23711 /* "frame specificat..." */ + zErr = ts + 23676 /* "frame specificat..." */ } if zErr != 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+23731, libc.VaList(bp, zErr, (*Window)(unsafe.Pointer(pWin)).FzBase)) + ts+23696, libc.VaList(bp, zErr, (*Window)(unsafe.Pointer(pWin)).FzBase)) } else { (*Window)(unsafe.Pointer(pWin)).FpPartition = Xsqlite3ExprListDup(tls, db, (*Window)(unsafe.Pointer(pExist)).FpPartition, 0) if (*Window)(unsafe.Pointer(pExist)).FpOrderBy != 0 { @@ -186718,7 +188894,7 @@ func Xsqlite3WindowChain(tls *libc.TLS, pParse uintptr, pWin uintptr, pList uint } // Attach window object pWin to expression p. -func Xsqlite3WindowAttach(tls *libc.TLS, pParse uintptr, p uintptr, pWin uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159605:21: */ +func Xsqlite3WindowAttach(tls *libc.TLS, pParse uintptr, p uintptr, pWin uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161629:21: */ if p != 0 { *(*uintptr)(unsafe.Pointer(p + 64)) = pWin @@ -186726,7 +188902,7 @@ func Xsqlite3WindowAttach(tls *libc.TLS, pParse uintptr, p uintptr, pWin uintptr (*Window)(unsafe.Pointer(pWin)).FpOwner = p if (*Expr)(unsafe.Pointer(p)).Fflags&U32(EP_Distinct) != 0 && int32((*Window)(unsafe.Pointer(pWin)).FeFrmType) != TK_FILTER { Xsqlite3ErrorMsg(tls, pParse, - ts+23764, 0) + ts+23729, 0) } } else { Xsqlite3WindowDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pWin) @@ -186737,7 +188913,7 @@ func Xsqlite3WindowAttach(tls *libc.TLS, pParse uintptr, p uintptr, pWin uintptr // to be processed as part of SELECT statement pSel). The window is linked // in if either (a) there are no other windows already linked to this // SELECT, or (b) the windows already linked use a compatible window frame. -func Xsqlite3WindowLink(tls *libc.TLS, pSel uintptr, pWin uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159628:21: */ +func Xsqlite3WindowLink(tls *libc.TLS, pSel uintptr, pWin uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161652:21: */ if pSel != 0 { if uintptr(0) == (*Select)(unsafe.Pointer(pSel)).FpWin || 0 == Xsqlite3WindowCompare(tls, uintptr(0), (*Select)(unsafe.Pointer(pSel)).FpWin, pWin, 0) { (*Window)(unsafe.Pointer(pWin)).FpNextWin = (*Select)(unsafe.Pointer(pSel)).FpWin @@ -186757,7 +188933,7 @@ func Xsqlite3WindowLink(tls *libc.TLS, pSel uintptr, pWin uintptr) { /* testdata // Return 0 if the two window objects are identical, 1 if they are // different, or 2 if it cannot be determined if the objects are identical // or not. Identical window objects can be processed in a single scan. -func Xsqlite3WindowCompare(tls *libc.TLS, pParse uintptr, p1 uintptr, p2 uintptr, bFilter int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159650:20: */ +func Xsqlite3WindowCompare(tls *libc.TLS, pParse uintptr, p1 uintptr, p2 uintptr, bFilter int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161674:20: */ var res int32 if p1 == uintptr(0) || p2 == uintptr(0) { return 1 @@ -186797,7 +188973,7 @@ func Xsqlite3WindowCompare(tls *libc.TLS, pParse uintptr, p1 uintptr, p2 uintptr // This is called by code in select.c before it calls sqlite3WhereBegin() // to begin iterating through the sub-query results. It is used to allocate // and initialize registers and cursors used by sqlite3WindowCodeStep(). -func Xsqlite3WindowCodeInit(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159684:21: */ +func Xsqlite3WindowCodeInit(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161708:21: */ var nEphExpr int32 = (*ExprList)(unsafe.Pointer((*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer((*Select)(unsafe.Pointer(pSelect)).FpSrc + 8)).FpSelect)).FpEList)).FnExpr var pMWin uintptr = (*Select)(unsafe.Pointer(pSelect)).FpWin var pWin uintptr @@ -186831,7 +189007,7 @@ func Xsqlite3WindowCodeInit(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* } for pWin = pMWin; pWin != 0; pWin = (*Window)(unsafe.Pointer(pWin)).FpNextWin { - var p uintptr = (*Window)(unsafe.Pointer(pWin)).FpFunc + var p uintptr = (*Window)(unsafe.Pointer(pWin)).FpWFunc if (*FuncDef)(unsafe.Pointer(p)).FfuncFlags&U32(SQLITE_FUNC_MINMAX) != 0 && int32((*Window)(unsafe.Pointer(pWin)).FeStart) != TK_UNBOUNDED { // The inline versions of min() and max() require a single ephemeral // table and 3 registers. The registers are used as follows: @@ -186847,12 +189023,12 @@ func Xsqlite3WindowCodeInit(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* (*Window)(unsafe.Pointer(pWin)).FcsrApp = libc.PostIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnTab, 1) (*Window)(unsafe.Pointer(pWin)).FregApp = (*Parse)(unsafe.Pointer(pParse)).FnMem + 1 *(*int32)(unsafe.Pointer(pParse + 56)) += 3 - if pKeyInfo != 0 && int32(*(*int8)(unsafe.Pointer((*FuncDef)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpFunc)).FzName + 1))) == 'i' { + if pKeyInfo != 0 && int32(*(*int8)(unsafe.Pointer((*FuncDef)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpWFunc)).FzName + 1))) == 'i' { *(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags)) = U8(KEYINFO_ORDER_DESC) } Xsqlite3VdbeAddOp2(tls, v, OP_OpenEphemeral, (*Window)(unsafe.Pointer(pWin)).FcsrApp, 2) - Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -9) + Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -8) Xsqlite3VdbeAddOp2(tls, v, OP_Integer, 0, (*Window)(unsafe.Pointer(pWin)).FregApp+1) } else if (*FuncDef)(unsafe.Pointer(p)).FzName == uintptr(unsafe.Pointer(&nth_valueName)) || (*FuncDef)(unsafe.Pointer(p)).FzName == uintptr(unsafe.Pointer(&first_valueName)) { // Allocate two registers at pWin->regApp. These will be used to @@ -186873,7 +189049,7 @@ func Xsqlite3WindowCodeInit(tls *libc.TLS, pParse uintptr, pSelect uintptr) { /* // evaluated and the result left in register reg. This function generates VM // code to check that the value is a non-negative integer and throws an // exception if it is not. -func windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159771:13: */ +func windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161795:13: */ var v uintptr = Xsqlite3GetVdbe(tls, pParse) var regZero int32 = Xsqlite3GetTempReg(tls, pParse) @@ -186902,17 +189078,17 @@ func windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) { / } var azErr = [5]uintptr{ - ts + 23811, - ts + 23864, - ts + 23268, - ts + 23915, - ts + 23967, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159772:21 */ -var aOp1 = [5]int32{OP_Ge, OP_Ge, OP_Gt, OP_Ge, OP_Ge} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159779:14 */ + ts + 23776, + ts + 23829, + ts + 23233, + ts + 23880, + ts + 23932, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161796:21 */ +var aOp1 = [5]int32{OP_Ge, OP_Ge, OP_Gt, OP_Ge, OP_Ge} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161803:14 */ // Return the number of arguments passed to the window-function associated // with the object passed as the only argument to this function. -func windowArgCount(tls *libc.TLS, pWin uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159818:12: */ +func windowArgCount(tls *libc.TLS, pWin uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161842:12: */ var pList uintptr pList = *(*uintptr)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpOwner + 32)) @@ -186937,19 +189113,19 @@ type WindowCodeArg1 = struct { Fcurrent WindowCsrAndReg Fend WindowCsrAndReg F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159825:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161849:9 */ -type WindowCodeArg = WindowCodeArg1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159825:30 */ +type WindowCodeArg = WindowCodeArg1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161849:30 */ type WindowCsrAndReg1 = struct { Fcsr int32 Freg int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159825:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161849:9 */ -type WindowCsrAndReg = WindowCsrAndReg1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159826:32 */ +type WindowCsrAndReg = WindowCsrAndReg1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161850:32 */ // Generate VM code to read the window frames peer values from cursor csr into // an array of registers starting at reg. -func windowReadPeerValues(tls *libc.TLS, p uintptr, csr int32, reg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159910:13: */ +func windowReadPeerValues(tls *libc.TLS, p uintptr, csr int32, reg int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161934:13: */ var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin var pOrderBy uintptr = (*Window)(unsafe.Pointer(pMWin)).FpOrderBy if pOrderBy != 0 { @@ -186985,12 +189161,12 @@ func windowReadPeerValues(tls *libc.TLS, p uintptr, csr int32, reg int32) { /* t // // If argument regPartSize is non-zero, then it is a register containing the // number of rows in the current partition. -func windowAggStep(tls *libc.TLS, p uintptr, pMWin uintptr, csr int32, bInverse int32, reg int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:159947:13: */ +func windowAggStep(tls *libc.TLS, p uintptr, pMWin uintptr, csr int32, bInverse int32, reg int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:161971:13: */ var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse var v uintptr = Xsqlite3GetVdbe(tls, pParse) var pWin uintptr for pWin = pMWin; pWin != 0; pWin = (*Window)(unsafe.Pointer(pWin)).FpNextWin { - var pFunc uintptr = (*Window)(unsafe.Pointer(pWin)).FpFunc + var pFunc uintptr = (*Window)(unsafe.Pointer(pWin)).FpWFunc var regArg int32 var nArg int32 if (*Window)(unsafe.Pointer(pWin)).FbExprArgs != 0 { @@ -187074,7 +189250,7 @@ func windowAggStep(tls *libc.TLS, p uintptr, pMWin uintptr, csr int32, bInverse return OP_AggStep }(), bInverse, regArg, (*Window)(unsafe.Pointer(pWin)).FregAccum) - Xsqlite3VdbeAppendP4(tls, v, pFunc, -8) + Xsqlite3VdbeAppendP4(tls, v, pFunc, -7) Xsqlite3VdbeChangeP5(tls, v, uint16(U8(nArg))) if (*Window)(unsafe.Pointer(pWin)).FbExprArgs != 0 { Xsqlite3ReleaseTempRange(tls, pParse, regArg, nArg) @@ -187092,7 +189268,7 @@ func windowAggStep(tls *libc.TLS, p uintptr, pMWin uintptr, csr int32, bInverse // (bFin==1) for each window function in the linked list starting at // pMWin. Or, for built-in window-functions that do not use the standard // API, generate the equivalent VM code. -func windowAggFinal(tls *libc.TLS, p uintptr, bFin int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160064:13: */ +func windowAggFinal(tls *libc.TLS, p uintptr, bFin int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:162088:13: */ var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin var v uintptr = Xsqlite3GetVdbe(tls, pParse) @@ -187100,7 +189276,7 @@ func windowAggFinal(tls *libc.TLS, p uintptr, bFin int32) { /* testdata/sqlite-a for pWin = pMWin; pWin != 0; pWin = (*Window)(unsafe.Pointer(pWin)).FpNextWin { if (*Window)(unsafe.Pointer(pMWin)).FregStartRowid == 0 && - (*FuncDef)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpFunc)).FfuncFlags&U32(SQLITE_FUNC_MINMAX) != 0 && + (*FuncDef)(unsafe.Pointer((*Window)(unsafe.Pointer(pWin)).FpWFunc)).FfuncFlags&U32(SQLITE_FUNC_MINMAX) != 0 && int32((*Window)(unsafe.Pointer(pWin)).FeStart) != TK_UNBOUNDED { Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, (*Window)(unsafe.Pointer(pWin)).FregResult) Xsqlite3VdbeAddOp1(tls, v, OP_Last, (*Window)(unsafe.Pointer(pWin)).FcsrApp) @@ -187113,12 +189289,12 @@ func windowAggFinal(tls *libc.TLS, p uintptr, bFin int32) { /* testdata/sqlite-a var nArg int32 = windowArgCount(tls, pWin) if bFin != 0 { Xsqlite3VdbeAddOp2(tls, v, OP_AggFinal, (*Window)(unsafe.Pointer(pWin)).FregAccum, nArg) - Xsqlite3VdbeAppendP4(tls, v, (*Window)(unsafe.Pointer(pWin)).FpFunc, -8) + Xsqlite3VdbeAppendP4(tls, v, (*Window)(unsafe.Pointer(pWin)).FpWFunc, -7) Xsqlite3VdbeAddOp2(tls, v, OP_Copy, (*Window)(unsafe.Pointer(pWin)).FregAccum, (*Window)(unsafe.Pointer(pWin)).FregResult) Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, (*Window)(unsafe.Pointer(pWin)).FregAccum) } else { Xsqlite3VdbeAddOp3(tls, v, OP_AggValue, (*Window)(unsafe.Pointer(pWin)).FregAccum, nArg, (*Window)(unsafe.Pointer(pWin)).FregResult) - Xsqlite3VdbeAppendP4(tls, v, (*Window)(unsafe.Pointer(pWin)).FpFunc, -8) + Xsqlite3VdbeAppendP4(tls, v, (*Window)(unsafe.Pointer(pWin)).FpWFunc, -7) } } } @@ -187128,7 +189304,7 @@ func windowAggFinal(tls *libc.TLS, p uintptr, bFin int32) { /* testdata/sqlite-a // p->pMWin list by doing a full scan of the current window frame. Store the // results in the Window.regResult registers, ready to return the upper // layer. -func windowFullScan(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160103:13: */ +func windowFullScan(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:162127:13: */ var pWin uintptr var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin @@ -187194,7 +189370,7 @@ func windowFullScan(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation- if pKeyInfo != 0 { windowReadPeerValues(tls, p, csr, regPeer) Xsqlite3VdbeAddOp3(tls, v, OP_Compare, regPeer, regCPeer, nPeer) - Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -9) + Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -8) addr = Xsqlite3VdbeCurrentAddr(tls, v) + 1 Xsqlite3VdbeAddOp3(tls, v, OP_Jump, addr, lblNext, addr) @@ -187231,11 +189407,11 @@ func windowFullScan(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation- // for per-row processing is only generated for the following built-in window // functions: // -// nth_value() -// first_value() -// lag() -// lead() -func windowReturnOneRow(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160209:13: */ +// nth_value() +// first_value() +// lag() +// lead() +func windowReturnOneRow(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:162233:13: */ var pMWin uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpMWin var v uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpVdbe @@ -187246,7 +189422,7 @@ func windowReturnOneRow(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamat var pWin uintptr for pWin = pMWin; pWin != 0; pWin = (*Window)(unsafe.Pointer(pWin)).FpNextWin { - var pFunc uintptr = (*Window)(unsafe.Pointer(pWin)).FpFunc + var pFunc uintptr = (*Window)(unsafe.Pointer(pWin)).FpWFunc if (*FuncDef)(unsafe.Pointer(pFunc)).FzName == uintptr(unsafe.Pointer(&nth_valueName)) || (*FuncDef)(unsafe.Pointer(pFunc)).FzName == uintptr(unsafe.Pointer(&first_valueName)) { @@ -187318,13 +189494,13 @@ func windowReturnOneRow(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamat // in the linked list passed as the second argument to NULL. And perform // any equivalent initialization required by any built-in window functions // in the list. -func windowInitAccum(tls *libc.TLS, pParse uintptr, pMWin uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160286:12: */ +func windowInitAccum(tls *libc.TLS, pParse uintptr, pMWin uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:162310:12: */ var v uintptr = Xsqlite3GetVdbe(tls, pParse) var regArg int32 var nArg int32 = 0 var pWin uintptr for pWin = pMWin; pWin != 0; pWin = (*Window)(unsafe.Pointer(pWin)).FpNextWin { - var pFunc uintptr = (*Window)(unsafe.Pointer(pWin)).FpFunc + var pFunc uintptr = (*Window)(unsafe.Pointer(pWin)).FpWFunc Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, (*Window)(unsafe.Pointer(pWin)).FregAccum) nArg = func() int32 { @@ -187353,13 +189529,13 @@ func windowInitAccum(tls *libc.TLS, pParse uintptr, pMWin uintptr) int32 { /* te // Return true if the current frame should be cached in the ephemeral table, // even if there are no xInverse() calls required. -func windowCacheFrame(tls *libc.TLS, pMWin uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160318:12: */ +func windowCacheFrame(tls *libc.TLS, pMWin uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:162342:12: */ var pWin uintptr if (*Window)(unsafe.Pointer(pMWin)).FregStartRowid != 0 { return 1 } for pWin = pMWin; pWin != 0; pWin = (*Window)(unsafe.Pointer(pWin)).FpNextWin { - var pFunc uintptr = (*Window)(unsafe.Pointer(pWin)).FpFunc + var pFunc uintptr = (*Window)(unsafe.Pointer(pWin)).FpWFunc if (*FuncDef)(unsafe.Pointer(pFunc)).FzName == uintptr(unsafe.Pointer(&nth_valueName)) || (*FuncDef)(unsafe.Pointer(pFunc)).FzName == uintptr(unsafe.Pointer(&first_valueName)) || (*FuncDef)(unsafe.Pointer(pFunc)).FzName == uintptr(unsafe.Pointer(&leadName)) || @@ -187378,13 +189554,13 @@ func windowCacheFrame(tls *libc.TLS, pMWin uintptr) int32 { /* testdata/sqlite-a // If the two arrays are not equal, the contents of regNew is copied to // regOld and control falls through. Otherwise, if the contents of the arrays // are equal, an OP_Goto is executed. The address of the OP_Goto is returned. -func windowIfNewPeer(tls *libc.TLS, pParse uintptr, pOrderBy uintptr, regNew int32, regOld int32, addr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160344:13: */ +func windowIfNewPeer(tls *libc.TLS, pParse uintptr, pOrderBy uintptr, regNew int32, regOld int32, addr int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:162368:13: */ var v uintptr = Xsqlite3GetVdbe(tls, pParse) if pOrderBy != 0 { var nVal int32 = (*ExprList)(unsafe.Pointer(pOrderBy)).FnExpr var pKeyInfo uintptr = Xsqlite3KeyInfoFromExprList(tls, pParse, pOrderBy, 0, 0) Xsqlite3VdbeAddOp3(tls, v, OP_Compare, regOld, regNew, nVal) - Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -9) + Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -8) Xsqlite3VdbeAddOp3(tls, v, OP_Jump, Xsqlite3VdbeCurrentAddr(tls, v)+1, addr, Xsqlite3VdbeCurrentAddr(tls, v)+1) @@ -187399,7 +189575,7 @@ func windowIfNewPeer(tls *libc.TLS, pParse uintptr, pOrderBy uintptr, regNew int // the ORDER BY term in the window, and that argument op is OP_Ge, it generates // code equivalent to: // -// if( csr1.peerVal + regVal >= csr2.peerVal ) goto lbl; +// if( csr1.peerVal + regVal >= csr2.peerVal ) goto lbl; // // The value of parameter op may also be OP_Gt or OP_Le. In these cases the // operator in the above pseudo-code is replaced with ">" or "<=", respectively. @@ -187410,12 +189586,12 @@ func windowIfNewPeer(tls *libc.TLS, pParse uintptr, pOrderBy uintptr, regNew int // ">" becomes "<", and so on. So, with DESC sort order, if the argument op // is OP_Ge, the generated code is equivalent to: // -// if( csr1.peerVal - regVal <= csr2.peerVal ) goto lbl; +// if( csr1.peerVal - regVal <= csr2.peerVal ) goto lbl; // // A special type of arithmetic is used such that if csr1.peerVal is not // a numeric type (real or integer), then the result of the addition // or subtraction is a a copy of csr1.peerVal. -func windowCodeRangeTest(tls *libc.TLS, p uintptr, op int32, csr1 int32, regVal int32, csr2 int32, lbl int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160390:13: */ +func windowCodeRangeTest(tls *libc.TLS, p uintptr, op int32, csr1 int32, regVal int32, csr2 int32, lbl int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:162414:13: */ var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse var v uintptr = Xsqlite3GetVdbe(tls, pParse) var pOrderBy uintptr = (*Window)(unsafe.Pointer((*WindowCodeArg)(unsafe.Pointer(p)).FpMWin)).FpOrderBy // ORDER BY clause for window @@ -187431,7 +189607,7 @@ func windowCodeRangeTest(tls *libc.TLS, p uintptr, op int32, csr1 int32, regVal windowReadPeerValues(tls, p, csr1, reg1) windowReadPeerValues(tls, p, csr2, reg2) - if int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8)).FsortFlags)&KEYINFO_ORDER_DESC != 0 { + if int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8)).Ffg.FsortFlags)&KEYINFO_ORDER_DESC != 0 { switch op { case OP_Ge: op = OP_Le @@ -187467,7 +189643,7 @@ func windowCodeRangeTest(tls *libc.TLS, p uintptr, op int32, csr1 int32, regVal // Additionally, if either reg1 or reg2 are NULL but the jump to lbl is // not taken, control jumps over the comparison operator coded below this // block. - if int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8)).FsortFlags)&KEYINFO_ORDER_BIGNULL != 0 { + if int32((*ExprList_item)(unsafe.Pointer(pOrderBy+8)).Ffg.FsortFlags)&KEYINFO_ORDER_BIGNULL != 0 { // This block runs if reg1 contains a NULL. var addr int32 = Xsqlite3VdbeAddOp1(tls, v, OP_NotNull, reg1) switch op { @@ -187538,7 +189714,7 @@ func windowCodeRangeTest(tls *libc.TLS, p uintptr, op int32, csr1 int32, regVal // generates VM code for a single RETURN_ROW, AGGSTEP or AGGINVERSE // operation. Refer to the header comment for sqlite3WindowCodeStep() for // details. -func windowCodeOp(tls *libc.TLS, p uintptr, op int32, regCountdown int32, jumpOnEof int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160523:12: */ +func windowCodeOp(tls *libc.TLS, p uintptr, op int32, regCountdown int32, jumpOnEof int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:162547:12: */ var csr int32 var reg int32 var pParse uintptr = (*WindowCodeArg)(unsafe.Pointer(p)).FpParse @@ -187686,7 +189862,7 @@ func windowCodeOp(tls *libc.TLS, p uintptr, op int32, regCountdown int32, jumpOn // Allocate and return a duplicate of the Window object indicated by the // third argument. Set the Window.pOwner field of the new object to // pOwner. -func Xsqlite3WindowDup(tls *libc.TLS, db uintptr, pOwner uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160672:23: */ +func Xsqlite3WindowDup(tls *libc.TLS, db uintptr, pOwner uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:162696:23: */ var pNew uintptr = uintptr(0) if p != 0 { pNew = Xsqlite3DbMallocZero(tls, db, uint64(unsafe.Sizeof(Window{}))) @@ -187694,7 +189870,7 @@ func Xsqlite3WindowDup(tls *libc.TLS, db uintptr, pOwner uintptr, p uintptr) uin (*Window)(unsafe.Pointer(pNew)).FzName = Xsqlite3DbStrDup(tls, db, (*Window)(unsafe.Pointer(p)).FzName) (*Window)(unsafe.Pointer(pNew)).FzBase = Xsqlite3DbStrDup(tls, db, (*Window)(unsafe.Pointer(p)).FzBase) (*Window)(unsafe.Pointer(pNew)).FpFilter = Xsqlite3ExprDup(tls, db, (*Window)(unsafe.Pointer(p)).FpFilter, 0) - (*Window)(unsafe.Pointer(pNew)).FpFunc = (*Window)(unsafe.Pointer(p)).FpFunc + (*Window)(unsafe.Pointer(pNew)).FpWFunc = (*Window)(unsafe.Pointer(p)).FpWFunc (*Window)(unsafe.Pointer(pNew)).FpPartition = Xsqlite3ExprListDup(tls, db, (*Window)(unsafe.Pointer(p)).FpPartition, 0) (*Window)(unsafe.Pointer(pNew)).FpOrderBy = Xsqlite3ExprListDup(tls, db, (*Window)(unsafe.Pointer(p)).FpOrderBy, 0) (*Window)(unsafe.Pointer(pNew)).FeFrmType = (*Window)(unsafe.Pointer(p)).FeFrmType @@ -187717,7 +189893,7 @@ func Xsqlite3WindowDup(tls *libc.TLS, db uintptr, pOwner uintptr, p uintptr) uin // Return a copy of the linked list of Window objects passed as the // second argument. -func Xsqlite3WindowListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160705:23: */ +func Xsqlite3WindowListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:162729:23: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -187742,7 +189918,7 @@ func Xsqlite3WindowListDup(tls *libc.TLS, db uintptr, p uintptr) uintptr { /* te // // If an OOM error occurs, this function sets the Parse.db.mallocFailed // flag and returns zero. -func windowExprGtZero(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160727:12: */ +func windowExprGtZero(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:162751:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -187767,61 +189943,61 @@ func windowExprGtZero(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* t // require slightly different processing. The following pseudo code is // used to implement window frames of the form: // -// ROWS BETWEEN <expr1> PRECEDING AND <expr2> FOLLOWING +// ROWS BETWEEN <expr1> PRECEDING AND <expr2> FOLLOWING // // Other window frame types use variants of the following: // -// ... loop started by sqlite3WhereBegin() ... -// if( new partition ){ -// Gosub flush -// } -// Insert new row into eph table. -// -// if( first row of partition ){ -// // Rewind three cursors, all open on the eph table. -// Rewind(csrEnd); -// Rewind(csrStart); -// Rewind(csrCurrent); -// -// regEnd = <expr2> // FOLLOWING expression -// regStart = <expr1> // PRECEDING expression -// }else{ -// // First time this branch is taken, the eph table contains two -// // rows. The first row in the partition, which all three cursors -// // currently point to, and the following row. -// AGGSTEP -// if( (regEnd--)<=0 ){ -// RETURN_ROW -// if( (regStart--)<=0 ){ -// AGGINVERSE -// } -// } -// } -// } -// flush: -// AGGSTEP -// while( 1 ){ -// RETURN ROW -// if( csrCurrent is EOF ) break; -// if( (regStart--)<=0 ){ -// AggInverse(csrStart) -// Next(csrStart) -// } -// } +// ... loop started by sqlite3WhereBegin() ... +// if( new partition ){ +// Gosub flush +// } +// Insert new row into eph table. +// +// if( first row of partition ){ +// // Rewind three cursors, all open on the eph table. +// Rewind(csrEnd); +// Rewind(csrStart); +// Rewind(csrCurrent); +// +// regEnd = <expr2> // FOLLOWING expression +// regStart = <expr1> // PRECEDING expression +// }else{ +// // First time this branch is taken, the eph table contains two +// // rows. The first row in the partition, which all three cursors +// // currently point to, and the following row. +// AGGSTEP +// if( (regEnd--)<=0 ){ +// RETURN_ROW +// if( (regStart--)<=0 ){ +// AGGINVERSE +// } +// } +// } +// } +// flush: +// AGGSTEP +// while( 1 ){ +// RETURN ROW +// if( csrCurrent is EOF ) break; +// if( (regStart--)<=0 ){ +// AggInverse(csrStart) +// Next(csrStart) +// } +// } // // The pseudo-code above uses the following shorthand: // -// AGGSTEP: invoke the aggregate xStep() function for each window function -// with arguments read from the current row of cursor csrEnd, then -// step cursor csrEnd forward one row (i.e. sqlite3BtreeNext()). +// AGGSTEP: invoke the aggregate xStep() function for each window function +// with arguments read from the current row of cursor csrEnd, then +// step cursor csrEnd forward one row (i.e. sqlite3BtreeNext()). // -// RETURN_ROW: return a row to the caller based on the contents of the -// current row of csrCurrent and the current state of all -// aggregates. Then step cursor csrCurrent forward one row. +// RETURN_ROW: return a row to the caller based on the contents of the +// current row of csrCurrent and the current state of all +// aggregates. Then step cursor csrCurrent forward one row. // -// AGGINVERSE: invoke the aggregate xInverse() function for each window -// functions with arguments read from the current row of cursor -// csrStart. Then step csrStart forward one row. +// AGGINVERSE: invoke the aggregate xInverse() function for each window +// functions with arguments read from the current row of cursor +// csrStart. Then step csrStart forward one row. // // There are two other ROWS window frames that are handled significantly // differently from the above - "BETWEEN <expr> PRECEDING AND <expr> PRECEDING" @@ -187831,70 +190007,70 @@ func windowExprGtZero(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* t // use UNBOUNDED or CURRENT ROW are much simpler variations on one of these // three. // -// ROWS BETWEEN <expr1> PRECEDING AND <expr2> PRECEDING -// -// ... loop started by sqlite3WhereBegin() ... -// if( new partition ){ -// Gosub flush -// } -// Insert new row into eph table. -// if( first row of partition ){ -// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) -// regEnd = <expr2> -// regStart = <expr1> -// }else{ -// if( (regEnd--)<=0 ){ -// AGGSTEP -// } -// RETURN_ROW -// if( (regStart--)<=0 ){ -// AGGINVERSE -// } -// } -// } -// flush: -// if( (regEnd--)<=0 ){ -// AGGSTEP -// } -// RETURN_ROW -// -// -// ROWS BETWEEN <expr1> FOLLOWING AND <expr2> FOLLOWING -// -// ... loop started by sqlite3WhereBegin() ... -// if( new partition ){ -// Gosub flush -// } -// Insert new row into eph table. -// if( first row of partition ){ -// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) -// regEnd = <expr2> -// regStart = regEnd - <expr1> -// }else{ -// AGGSTEP -// if( (regEnd--)<=0 ){ -// RETURN_ROW -// } -// if( (regStart--)<=0 ){ -// AGGINVERSE -// } -// } -// } -// flush: -// AGGSTEP -// while( 1 ){ -// if( (regEnd--)<=0 ){ -// RETURN_ROW -// if( eof ) break; -// } -// if( (regStart--)<=0 ){ -// AGGINVERSE -// if( eof ) break -// } -// } -// while( !eof csrCurrent ){ -// RETURN_ROW -// } +// ROWS BETWEEN <expr1> PRECEDING AND <expr2> PRECEDING +// +// ... loop started by sqlite3WhereBegin() ... +// if( new partition ){ +// Gosub flush +// } +// Insert new row into eph table. +// if( first row of partition ){ +// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) +// regEnd = <expr2> +// regStart = <expr1> +// }else{ +// if( (regEnd--)<=0 ){ +// AGGSTEP +// } +// RETURN_ROW +// if( (regStart--)<=0 ){ +// AGGINVERSE +// } +// } +// } +// flush: +// if( (regEnd--)<=0 ){ +// AGGSTEP +// } +// RETURN_ROW +// +// +// ROWS BETWEEN <expr1> FOLLOWING AND <expr2> FOLLOWING +// +// ... loop started by sqlite3WhereBegin() ... +// if( new partition ){ +// Gosub flush +// } +// Insert new row into eph table. +// if( first row of partition ){ +// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) +// regEnd = <expr2> +// regStart = regEnd - <expr1> +// }else{ +// AGGSTEP +// if( (regEnd--)<=0 ){ +// RETURN_ROW +// } +// if( (regStart--)<=0 ){ +// AGGINVERSE +// } +// } +// } +// flush: +// AGGSTEP +// while( 1 ){ +// if( (regEnd--)<=0 ){ +// RETURN_ROW +// if( eof ) break; +// } +// if( (regStart--)<=0 ){ +// AGGINVERSE +// if( eof ) break +// } +// } +// while( !eof csrCurrent ){ +// RETURN_ROW +// } // // For the most part, the patterns above are adapted to support UNBOUNDED by // assuming that it is equivalent to "infinity PRECEDING/FOLLOWING" and @@ -187903,57 +190079,57 @@ func windowExprGtZero(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* t // conditions that are always true are omitted from the VM code. The only // exceptional case is: // -// ROWS BETWEEN <expr1> FOLLOWING AND UNBOUNDED FOLLOWING -// -// ... loop started by sqlite3WhereBegin() ... -// if( new partition ){ -// Gosub flush -// } -// Insert new row into eph table. -// if( first row of partition ){ -// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) -// regStart = <expr1> -// }else{ -// AGGSTEP -// } -// } -// flush: -// AGGSTEP -// while( 1 ){ -// if( (regStart--)<=0 ){ -// AGGINVERSE -// if( eof ) break -// } -// RETURN_ROW -// } -// while( !eof csrCurrent ){ -// RETURN_ROW -// } +// ROWS BETWEEN <expr1> FOLLOWING AND UNBOUNDED FOLLOWING +// +// ... loop started by sqlite3WhereBegin() ... +// if( new partition ){ +// Gosub flush +// } +// Insert new row into eph table. +// if( first row of partition ){ +// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) +// regStart = <expr1> +// }else{ +// AGGSTEP +// } +// } +// flush: +// AGGSTEP +// while( 1 ){ +// if( (regStart--)<=0 ){ +// AGGINVERSE +// if( eof ) break +// } +// RETURN_ROW +// } +// while( !eof csrCurrent ){ +// RETURN_ROW +// } // // Also requiring special handling are the cases: // -// ROWS BETWEEN <expr1> PRECEDING AND <expr2> PRECEDING -// ROWS BETWEEN <expr1> FOLLOWING AND <expr2> FOLLOWING +// ROWS BETWEEN <expr1> PRECEDING AND <expr2> PRECEDING +// ROWS BETWEEN <expr1> FOLLOWING AND <expr2> FOLLOWING // // when (expr1 < expr2). This is detected at runtime, not by this function. // To handle this case, the pseudo-code programs depicted above are modified // slightly to be: // -// ... loop started by sqlite3WhereBegin() ... -// if( new partition ){ -// Gosub flush -// } -// Insert new row into eph table. -// if( first row of partition ){ -// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) -// regEnd = <expr2> -// regStart = <expr1> -// if( regEnd < regStart ){ -// RETURN_ROW -// delete eph table contents -// continue -// } -// ... +// ... loop started by sqlite3WhereBegin() ... +// if( new partition ){ +// Gosub flush +// } +// Insert new row into eph table. +// if( first row of partition ){ +// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) +// regEnd = <expr2> +// regStart = <expr1> +// if( regEnd < regStart ){ +// RETURN_ROW +// delete eph table contents +// continue +// } +// ... // // The new "continue" statement in the above jumps to the next iteration // of the outer loop - the one started by sqlite3WhereBegin(). @@ -187961,136 +190137,136 @@ func windowExprGtZero(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* t // The various GROUPS cases are implemented using the same patterns as // ROWS. The VM code is modified slightly so that: // -// 1. The else branch in the main loop is only taken if the row just -// added to the ephemeral table is the start of a new group. In -// other words, it becomes: +// 1. The else branch in the main loop is only taken if the row just +// added to the ephemeral table is the start of a new group. In +// other words, it becomes: // -// ... loop started by sqlite3WhereBegin() ... -// if( new partition ){ -// Gosub flush -// } -// Insert new row into eph table. -// if( first row of partition ){ -// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) -// regEnd = <expr2> -// regStart = <expr1> -// }else if( new group ){ -// ... -// } -// } +// ... loop started by sqlite3WhereBegin() ... +// if( new partition ){ +// Gosub flush +// } +// Insert new row into eph table. +// if( first row of partition ){ +// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) +// regEnd = <expr2> +// regStart = <expr1> +// }else if( new group ){ +// ... +// } +// } // -// 2. Instead of processing a single row, each RETURN_ROW, AGGSTEP or -// AGGINVERSE step processes the current row of the relevant cursor and -// all subsequent rows belonging to the same group. +// 2. Instead of processing a single row, each RETURN_ROW, AGGSTEP or +// AGGINVERSE step processes the current row of the relevant cursor and +// all subsequent rows belonging to the same group. // // RANGE window frames are a little different again. As for GROUPS, the // main loop runs once per group only. And RETURN_ROW, AGGSTEP and AGGINVERSE // deal in groups instead of rows. As for ROWS and GROUPS, there are three // basic cases: // -// RANGE BETWEEN <expr1> PRECEDING AND <expr2> FOLLOWING -// -// ... loop started by sqlite3WhereBegin() ... -// if( new partition ){ -// Gosub flush -// } -// Insert new row into eph table. -// if( first row of partition ){ -// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) -// regEnd = <expr2> -// regStart = <expr1> -// }else{ -// AGGSTEP -// while( (csrCurrent.key + regEnd) < csrEnd.key ){ -// RETURN_ROW -// while( csrStart.key + regStart) < csrCurrent.key ){ -// AGGINVERSE -// } -// } -// } -// } -// flush: -// AGGSTEP -// while( 1 ){ -// RETURN ROW -// if( csrCurrent is EOF ) break; -// while( csrStart.key + regStart) < csrCurrent.key ){ -// AGGINVERSE -// } -// } -// } +// RANGE BETWEEN <expr1> PRECEDING AND <expr2> FOLLOWING +// +// ... loop started by sqlite3WhereBegin() ... +// if( new partition ){ +// Gosub flush +// } +// Insert new row into eph table. +// if( first row of partition ){ +// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) +// regEnd = <expr2> +// regStart = <expr1> +// }else{ +// AGGSTEP +// while( (csrCurrent.key + regEnd) < csrEnd.key ){ +// RETURN_ROW +// while( csrStart.key + regStart) < csrCurrent.key ){ +// AGGINVERSE +// } +// } +// } +// } +// flush: +// AGGSTEP +// while( 1 ){ +// RETURN ROW +// if( csrCurrent is EOF ) break; +// while( csrStart.key + regStart) < csrCurrent.key ){ +// AGGINVERSE +// } +// } +// } // // In the above notation, "csr.key" means the current value of the ORDER BY // expression (there is only ever 1 for a RANGE that uses an <expr> FOLLOWING // or <expr PRECEDING) read from cursor csr. // -// RANGE BETWEEN <expr1> PRECEDING AND <expr2> PRECEDING -// -// ... loop started by sqlite3WhereBegin() ... -// if( new partition ){ -// Gosub flush -// } -// Insert new row into eph table. -// if( first row of partition ){ -// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) -// regEnd = <expr2> -// regStart = <expr1> -// }else{ -// while( (csrEnd.key + regEnd) <= csrCurrent.key ){ -// AGGSTEP -// } -// while( (csrStart.key + regStart) < csrCurrent.key ){ -// AGGINVERSE -// } -// RETURN_ROW -// } -// } -// flush: -// while( (csrEnd.key + regEnd) <= csrCurrent.key ){ -// AGGSTEP -// } -// while( (csrStart.key + regStart) < csrCurrent.key ){ -// AGGINVERSE -// } -// RETURN_ROW -// -// RANGE BETWEEN <expr1> FOLLOWING AND <expr2> FOLLOWING -// -// ... loop started by sqlite3WhereBegin() ... -// if( new partition ){ -// Gosub flush -// } -// Insert new row into eph table. -// if( first row of partition ){ -// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) -// regEnd = <expr2> -// regStart = <expr1> -// }else{ -// AGGSTEP -// while( (csrCurrent.key + regEnd) < csrEnd.key ){ -// while( (csrCurrent.key + regStart) > csrStart.key ){ -// AGGINVERSE -// } -// RETURN_ROW -// } -// } -// } -// flush: -// AGGSTEP -// while( 1 ){ -// while( (csrCurrent.key + regStart) > csrStart.key ){ -// AGGINVERSE -// if( eof ) break "while( 1 )" loop. -// } -// RETURN_ROW -// } -// while( !eof csrCurrent ){ -// RETURN_ROW -// } +// RANGE BETWEEN <expr1> PRECEDING AND <expr2> PRECEDING +// +// ... loop started by sqlite3WhereBegin() ... +// if( new partition ){ +// Gosub flush +// } +// Insert new row into eph table. +// if( first row of partition ){ +// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) +// regEnd = <expr2> +// regStart = <expr1> +// }else{ +// while( (csrEnd.key + regEnd) <= csrCurrent.key ){ +// AGGSTEP +// } +// while( (csrStart.key + regStart) < csrCurrent.key ){ +// AGGINVERSE +// } +// RETURN_ROW +// } +// } +// flush: +// while( (csrEnd.key + regEnd) <= csrCurrent.key ){ +// AGGSTEP +// } +// while( (csrStart.key + regStart) < csrCurrent.key ){ +// AGGINVERSE +// } +// RETURN_ROW +// +// RANGE BETWEEN <expr1> FOLLOWING AND <expr2> FOLLOWING +// +// ... loop started by sqlite3WhereBegin() ... +// if( new partition ){ +// Gosub flush +// } +// Insert new row into eph table. +// if( first row of partition ){ +// Rewind(csrEnd) ; Rewind(csrStart) ; Rewind(csrCurrent) +// regEnd = <expr2> +// regStart = <expr1> +// }else{ +// AGGSTEP +// while( (csrCurrent.key + regEnd) < csrEnd.key ){ +// while( (csrCurrent.key + regStart) > csrStart.key ){ +// AGGINVERSE +// } +// RETURN_ROW +// } +// } +// } +// flush: +// AGGSTEP +// while( 1 ){ +// while( (csrCurrent.key + regStart) > csrStart.key ){ +// AGGINVERSE +// if( eof ) break "while( 1 )" loop. +// } +// RETURN_ROW +// } +// while( !eof csrCurrent ){ +// RETURN_ROW +// } // // The text above leaves out many details. Refer to the code and comments // below for a more complete picture. -func Xsqlite3WindowCodeStep(tls *libc.TLS, pParse uintptr, p uintptr, pWInfo uintptr, regGosub int32, addrGosub int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161074:21: */ +func Xsqlite3WindowCodeStep(tls *libc.TLS, pParse uintptr, p uintptr, pWInfo uintptr, regGosub int32, addrGosub int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:163098:21: */ bp := tls.Alloc(72) defer tls.Free(72) @@ -188224,7 +190400,7 @@ func Xsqlite3WindowCodeStep(tls *libc.TLS, pParse uintptr, p uintptr, pWInfo uin regFlushPart = libc.PreIncInt32(&(*Parse)(unsafe.Pointer(pParse)).FnMem, 1) addr = Xsqlite3VdbeAddOp3(tls, v, OP_Compare, regNewPart, (*Window)(unsafe.Pointer(pMWin)).FregPart, nPart) - Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -9) + Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -8) Xsqlite3VdbeAddOp3(tls, v, OP_Jump, addr+2, addr+4, addr+2) addrGosubFlush = Xsqlite3VdbeAddOp1(tls, v, OP_Gosub, regFlushPart) @@ -188480,24 +190656,24 @@ func Xsqlite3WindowCodeStep(tls *libc.TLS, pParse uintptr, p uintptr, pWInfo uin // TRIGGER. "a" is the event type, one of TK_UPDATE, TK_INSERT, // TK_DELETE, or TK_INSTEAD. If the event is of the form // -// UPDATE ON (a,b,c) +// UPDATE ON (a,b,c) // // Then the "b" IdList records the list "a,b,c". type TrigEvent = struct { Fa int32 F__ccgo_pad1 [4]byte Fb uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161474:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:163498:1 */ type FrameBound = struct { FeType int32 F__ccgo_pad1 [4]byte FpExpr uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161476:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:163500:1 */ // Disable lookaside memory allocation for objects that might be // shared across database connections. -func disableLookaside(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161482:13: */ +func disableLookaside(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:163506:13: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb (*Parse)(unsafe.Pointer(pParse)).FdisableLookaside++ (*Sqlite3)(unsafe.Pointer(db)).Flookaside.FbDisable++ @@ -188507,7 +190683,7 @@ func disableLookaside(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalga // For a compound SELECT statement, make sure p->pPrior->pNext==p for // all elements in the list. And make sure list length does not exceed // SQLITE_LIMIT_COMPOUND_SELECT. -func parserDoubleLinkSelect(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161515:15: */ +func parserDoubleLinkSelect(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:163539:15: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -188526,19 +190702,19 @@ func parserDoubleLinkSelect(tls *libc.TLS, pParse uintptr, p uintptr) { /* testd } cnt++ if (*Select)(unsafe.Pointer(pLoop)).FpOrderBy != 0 || (*Select)(unsafe.Pointer(pLoop)).FpLimit != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+24017, + Xsqlite3ErrorMsg(tls, pParse, ts+23982, libc.VaList(bp, func() uintptr { if (*Select)(unsafe.Pointer(pLoop)).FpOrderBy != uintptr(0) { - return ts + 21084 /* "ORDER BY" */ + return ts + 21024 /* "ORDER BY" */ } - return ts + 24059 /* "LIMIT" */ + return ts + 24024 /* "LIMIT" */ }(), Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(pNext)).Fop)))) break } } if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_MultiValue) == U32(0) && libc.AssignInt32(&mxSelect, *(*int32)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb + 136 + 4*4))) > 0 && cnt > mxSelect { - Xsqlite3ErrorMsg(tls, pParse, ts+24065, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+24030, 0) } } @@ -188546,7 +190722,7 @@ func parserDoubleLinkSelect(tls *libc.TLS, pParse uintptr, p uintptr) { /* testd // Attach a With object describing the WITH clause to a Select // object describing the query for which the WITH clause is a prefix. -func attachWithToSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, pWith uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161546:17: */ +func attachWithToSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, pWith uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:163570:17: */ if pSelect != 0 { (*Select)(unsafe.Pointer(pSelect)).FpWith = pWith parserDoubleLinkSelect(tls, pParse, pSelect) @@ -188558,7 +190734,7 @@ func attachWithToSelect(tls *libc.TLS, pParse uintptr, pSelect uintptr, pWith ui } // Construct a new Expr object from a single token -func tokenExpr(tls *libc.TLS, pParse uintptr, op int32, t Token) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161558:15: */ +func tokenExpr(tls *libc.TLS, pParse uintptr, op int32, t Token) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:163582:15: */ bp := tls.Alloc(16) defer tls.Free(16) *(*Token)(unsafe.Pointer(bp)) = t @@ -188570,7 +190746,7 @@ func tokenExpr(tls *libc.TLS, pParse uintptr, op int32, t Token) uintptr { /* te (*Expr)(unsafe.Pointer(p)).FaffExpr = int8(0) (*Expr)(unsafe.Pointer(p)).Fflags = U32(EP_Leaf) - (*Expr)(unsafe.Pointer(p)).FiAgg = int16(-1) + // p->iAgg = -1; // Not required (*Expr)(unsafe.Pointer(p)).FpLeft = libc.AssignPtrUintptr(p+24, uintptr(0)) (*Expr)(unsafe.Pointer(p)).FpAggInfo = uintptr(0) libc.Xmemset(tls, p+32, 0, uint64(unsafe.Sizeof(struct{ FpList uintptr }{}))) @@ -188596,7 +190772,7 @@ func tokenExpr(tls *libc.TLS, pParse uintptr, op int32, t Token) uintptr { /* te // A routine to convert a binary TK_IS or TK_ISNOT expression into a // unary TK_ISNULL or TK_NOTNULL expression. -func binaryToUnaryIfNull(tls *libc.TLS, pParse uintptr, pY uintptr, pA uintptr, op int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161594:15: */ +func binaryToUnaryIfNull(tls *libc.TLS, pParse uintptr, pY uintptr, pA uintptr, op int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:163618:15: */ var db uintptr = (*Parse)(unsafe.Pointer(pParse)).Fdb if pA != 0 && pY != 0 && int32((*Expr)(unsafe.Pointer(pY)).Fop) == TK_NULL && !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) { (*Expr)(unsafe.Pointer(pA)).Fop = U8(op) @@ -188610,14 +190786,14 @@ func binaryToUnaryIfNull(tls *libc.TLS, pParse uintptr, pY uintptr, pA uintptr, // list of identifiers. Report an error if the ID list contains // a COLLATE clause or an ASC or DESC keyword, except ignore the // error while parsing a legacy schema. -func parserAddExprIdListTerm(tls *libc.TLS, pParse uintptr, pPrior uintptr, pIdToken uintptr, hasCollate int32, sortOrder int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161608:19: */ +func parserAddExprIdListTerm(tls *libc.TLS, pParse uintptr, pPrior uintptr, pIdToken uintptr, hasCollate int32, sortOrder int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:163632:19: */ bp := tls.Alloc(16) defer tls.Free(16) var p uintptr = Xsqlite3ExprListAppend(tls, pParse, pPrior, uintptr(0)) if (hasCollate != 0 || sortOrder != -1) && int32((*Sqlite3)(unsafe.Pointer((*Parse)(unsafe.Pointer(pParse)).Fdb)).Finit.Fbusy) == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+24099, + Xsqlite3ErrorMsg(tls, pParse, ts+24064, libc.VaList(bp, (*Token)(unsafe.Pointer(pIdToken)).Fn, (*Token)(unsafe.Pointer(pIdToken)).Fz)) } Xsqlite3ExprListSetName(tls, pParse, p, pIdToken, 1) @@ -188632,60 +190808,62 @@ func parserAddExprIdListTerm(tls *libc.TLS, pParse uintptr, pPrior uintptr, pIdT // The next sections is a series of control #defines. // various aspects of the generated parser. -// YYCODETYPE is the data type used to store the integer codes -// that represent terminal and non-terminal symbols. -// "unsigned char" is used if there are fewer than -// 256 symbols. Larger types otherwise. -// YYNOCODE is a number of type YYCODETYPE that is not used for -// any terminal or nonterminal symbol. -// YYFALLBACK If defined, this indicates that one or more tokens -// (also known as: "terminal symbols") have fall-back -// values which should be used if the original symbol -// would not parse. This permits keywords to sometimes -// be used as identifiers, for example. -// YYACTIONTYPE is the data type used for "action codes" - numbers -// that indicate what to do in response to the next -// token. -// sqlite3ParserTOKENTYPE is the data type used for minor type for terminal -// symbols. Background: A "minor type" is a semantic -// value associated with a terminal or non-terminal -// symbols. For example, for an "ID" terminal symbol, -// the minor type might be the name of the identifier. -// Each non-terminal can have a different minor type. -// Terminal symbols all have the same minor type, though. -// This macros defines the minor type for terminal -// symbols. -// YYMINORTYPE is the data type used for all minor types. -// This is typically a union of many types, one of -// which is sqlite3ParserTOKENTYPE. The entry in the union -// for terminal symbols is called "yy0". -// YYSTACKDEPTH is the maximum depth of the parser's stack. If -// zero the stack is dynamically sized using realloc() -// sqlite3ParserARG_SDECL A static variable declaration for the %extra_argument -// sqlite3ParserARG_PDECL A parameter declaration for the %extra_argument -// sqlite3ParserARG_PARAM Code to pass %extra_argument as a subroutine parameter -// sqlite3ParserARG_STORE Code to store %extra_argument into yypParser -// sqlite3ParserARG_FETCH Code to extract %extra_argument from yypParser -// sqlite3ParserCTX_* As sqlite3ParserARG_ except for %extra_context -// YYERRORSYMBOL is the code number of the error symbol. If not -// defined, then do no error processing. -// YYNSTATE the combined number of states. -// YYNRULE the number of rules in the grammar -// YYNTOKEN Number of terminal symbols -// YY_MAX_SHIFT Maximum value for shift actions -// YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions -// YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions -// YY_ERROR_ACTION The yy_action[] code for syntax error -// YY_ACCEPT_ACTION The yy_action[] code for accept -// YY_NO_ACTION The yy_action[] code for no-op -// YY_MIN_REDUCE Minimum value for reduce actions -// YY_MAX_REDUCE Maximum value for reduce actions -//************ Begin control #defines **************************************** +// +// YYCODETYPE is the data type used to store the integer codes +// that represent terminal and non-terminal symbols. +// "unsigned char" is used if there are fewer than +// 256 symbols. Larger types otherwise. +// YYNOCODE is a number of type YYCODETYPE that is not used for +// any terminal or nonterminal symbol. +// YYFALLBACK If defined, this indicates that one or more tokens +// (also known as: "terminal symbols") have fall-back +// values which should be used if the original symbol +// would not parse. This permits keywords to sometimes +// be used as identifiers, for example. +// YYACTIONTYPE is the data type used for "action codes" - numbers +// that indicate what to do in response to the next +// token. +// sqlite3ParserTOKENTYPE is the data type used for minor type for terminal +// symbols. Background: A "minor type" is a semantic +// value associated with a terminal or non-terminal +// symbols. For example, for an "ID" terminal symbol, +// the minor type might be the name of the identifier. +// Each non-terminal can have a different minor type. +// Terminal symbols all have the same minor type, though. +// This macros defines the minor type for terminal +// symbols. +// YYMINORTYPE is the data type used for all minor types. +// This is typically a union of many types, one of +// which is sqlite3ParserTOKENTYPE. The entry in the union +// for terminal symbols is called "yy0". +// YYSTACKDEPTH is the maximum depth of the parser's stack. If +// zero the stack is dynamically sized using realloc() +// sqlite3ParserARG_SDECL A static variable declaration for the %extra_argument +// sqlite3ParserARG_PDECL A parameter declaration for the %extra_argument +// sqlite3ParserARG_PARAM Code to pass %extra_argument as a subroutine parameter +// sqlite3ParserARG_STORE Code to store %extra_argument into yypParser +// sqlite3ParserARG_FETCH Code to extract %extra_argument from yypParser +// sqlite3ParserCTX_* As sqlite3ParserARG_ except for %extra_context +// YYERRORSYMBOL is the code number of the error symbol. If not +// defined, then do no error processing. +// YYNSTATE the combined number of states. +// YYNRULE the number of rules in the grammar +// YYNTOKEN Number of terminal symbols +// YY_MAX_SHIFT Maximum value for shift actions +// YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions +// YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions +// YY_ERROR_ACTION The yy_action[] code for syntax error +// YY_ACCEPT_ACTION The yy_action[] code for accept +// YY_NO_ACTION The yy_action[] code for no-op +// YY_MIN_REDUCE Minimum value for reduce actions +// YY_MAX_REDUCE Maximum value for reduce actions +// +// ************ Begin control #defines **************************************** type YYMINORTYPE = struct { F__ccgo_pad1 [0]uint64 Fyyinit int32 F__ccgo_pad2 [12]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161900:3 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:163925:3 */ //************ End control #defines ****************************************** // Define the yytestcase() macro to be a no-op if is not already defined @@ -188704,27 +190882,27 @@ type YYMINORTYPE = struct { // Suppose the action integer is N. Then the action is determined as // follows // -// 0 <= N <= YY_MAX_SHIFT Shift N. That is, push the lookahead -// token onto the stack and goto state N. +// 0 <= N <= YY_MAX_SHIFT Shift N. That is, push the lookahead +// token onto the stack and goto state N. // -// N between YY_MIN_SHIFTREDUCE Shift to an arbitrary state then -// and YY_MAX_SHIFTREDUCE reduce by rule N-YY_MIN_SHIFTREDUCE. +// N between YY_MIN_SHIFTREDUCE Shift to an arbitrary state then +// and YY_MAX_SHIFTREDUCE reduce by rule N-YY_MIN_SHIFTREDUCE. // -// N == YY_ERROR_ACTION A syntax error has occurred. +// N == YY_ERROR_ACTION A syntax error has occurred. // -// N == YY_ACCEPT_ACTION The parser accepts its input. +// N == YY_ACCEPT_ACTION The parser accepts its input. // -// N == YY_NO_ACTION No such action. Denotes unused -// slots in the yy_action[] table. +// N == YY_NO_ACTION No such action. Denotes unused +// slots in the yy_action[] table. // -// N between YY_MIN_REDUCE Reduce by rule N-YY_MIN_REDUCE -// and YY_MAX_REDUCE +// N between YY_MIN_REDUCE Reduce by rule N-YY_MIN_REDUCE +// and YY_MAX_REDUCE // // The action table is constructed as a single large table named yy_action[]. // Given state S and lookahead X, the action is computed as either: // -// (A) N = yy_action[ yy_shift_ofst[S] + X ] -// (B) N = yy_default[S] +// (A) N = yy_action[ yy_shift_ofst[S] + X ] +// (B) N = yy_default[S] // // The (A) formula is preferred. The B formula is used instead if // yy_lookahead[yy_shift_ofst[S]+X] is not equal to X. @@ -188736,436 +190914,439 @@ type YYMINORTYPE = struct { // // The following are the tables generated in this section: // -// yy_action[] A single table containing all actions. -// yy_lookahead[] A table containing the lookahead for each entry in -// yy_action. Used to detect hash collisions. -// yy_shift_ofst[] For each state, the offset into yy_action for -// shifting terminals. -// yy_reduce_ofst[] For each state, the offset into yy_action for -// shifting non-terminals after a reduce. -// yy_default[] Default action for each state. +// yy_action[] A single table containing all actions. +// yy_lookahead[] A table containing the lookahead for each entry in +// yy_action. Used to detect hash collisions. +// yy_shift_ofst[] For each state, the offset into yy_action for +// shifting terminals. +// yy_reduce_ofst[] For each state, the offset into yy_action for +// shifting non-terminals after a reduce. +// yy_default[] Default action for each state. // // Begin parsing tables ********************************************* -var yy_action = [2070]uint16{ - /* 0 */ uint16(566), uint16(1307), uint16(566), uint16(1286), uint16(201), uint16(201), uint16(566), uint16(116), uint16(112), uint16(222), - /* 10 */ uint16(566), uint16(1307), uint16(377), uint16(566), uint16(116), uint16(112), uint16(222), uint16(397), uint16(408), uint16(409), - /* 20 */ uint16(1260), uint16(378), uint16(1269), uint16(41), uint16(41), uint16(41), uint16(41), uint16(1412), uint16(1517), uint16(71), - /* 30 */ uint16(71), uint16(967), uint16(1258), uint16(41), uint16(41), uint16(491), uint16(71), uint16(71), uint16(272), uint16(968), - /* 40 */ uint16(298), uint16(476), uint16(298), uint16(123), uint16(124), uint16(114), uint16(1210), uint16(1210), uint16(1044), uint16(1047), - /* 50 */ uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), uint16(122), uint16(543), uint16(409), - /* 60 */ uint16(1234), uint16(1), uint16(1), uint16(573), uint16(2), uint16(1238), uint16(548), uint16(116), uint16(112), uint16(222), - /* 70 */ uint16(309), uint16(480), uint16(142), uint16(548), uint16(1272), uint16(524), uint16(116), uint16(112), uint16(222), uint16(1320), - /* 80 */ uint16(417), uint16(523), uint16(547), uint16(123), uint16(124), uint16(114), uint16(1210), uint16(1210), uint16(1044), uint16(1047), - /* 90 */ uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), uint16(122), uint16(424), uint16(116), - /* 100 */ uint16(112), uint16(222), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), uint16(118), uint16(118), - /* 110 */ uint16(118), uint16(117), uint16(113), uint16(444), uint16(277), uint16(277), uint16(277), uint16(277), uint16(560), uint16(560), - /* 120 */ uint16(560), uint16(1558), uint16(376), uint16(1560), uint16(1186), uint16(375), uint16(1157), uint16(563), uint16(1157), uint16(563), - /* 130 */ uint16(409), uint16(1558), uint16(537), uint16(252), uint16(219), uint16(1553), uint16(99), uint16(141), uint16(449), uint16(6), - /* 140 */ uint16(365), uint16(233), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), uint16(118), uint16(118), - /* 150 */ uint16(118), uint16(117), uint16(113), uint16(444), uint16(123), uint16(124), uint16(114), uint16(1210), uint16(1210), uint16(1044), - /* 160 */ uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), uint16(122), uint16(138), - /* 170 */ uint16(289), uint16(1186), uint16(1546), uint16(448), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), - /* 180 */ uint16(125), uint16(1186), uint16(1187), uint16(1188), uint16(144), uint16(465), uint16(334), uint16(566), uint16(150), uint16(127), - /* 190 */ uint16(444), uint16(122), uint16(122), uint16(122), uint16(122), uint16(115), uint16(120), uint16(120), uint16(120), uint16(120), - /* 200 */ uint16(119), uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(454), uint16(419), - /* 210 */ uint16(13), uint16(13), uint16(215), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), uint16(118), - /* 220 */ uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(422), uint16(308), uint16(557), uint16(1186), uint16(1187), - /* 230 */ uint16(1188), uint16(441), uint16(440), uint16(409), uint16(1271), uint16(122), uint16(122), uint16(122), uint16(122), uint16(120), - /* 240 */ uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), - /* 250 */ uint16(444), uint16(1543), uint16(98), uint16(1033), uint16(1033), uint16(1045), uint16(1048), uint16(123), uint16(124), uint16(114), - /* 260 */ uint16(1210), uint16(1210), uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), - /* 270 */ uint16(122), uint16(122), uint16(566), uint16(406), uint16(405), uint16(1186), uint16(566), uint16(409), uint16(1217), uint16(319), - /* 280 */ uint16(1217), uint16(80), uint16(81), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), uint16(118), - /* 290 */ uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(70), uint16(70), uint16(1186), uint16(1604), uint16(71), - /* 300 */ uint16(71), uint16(123), uint16(124), uint16(114), uint16(1210), uint16(1210), uint16(1044), uint16(1047), uint16(1036), uint16(1036), - /* 310 */ uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), uint16(122), uint16(120), uint16(120), uint16(120), uint16(120), - /* 320 */ uint16(119), uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(1037), uint16(210), - /* 330 */ uint16(1186), uint16(365), uint16(1186), uint16(1187), uint16(1188), uint16(245), uint16(548), uint16(399), uint16(504), uint16(501), - /* 340 */ uint16(500), uint16(108), uint16(558), uint16(138), uint16(4), uint16(516), uint16(933), uint16(433), uint16(499), uint16(217), - /* 350 */ uint16(514), uint16(522), uint16(352), uint16(879), uint16(1186), uint16(1187), uint16(1188), uint16(383), uint16(561), uint16(566), - /* 360 */ uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), - /* 370 */ uint16(113), uint16(444), uint16(277), uint16(277), uint16(16), uint16(16), uint16(1598), uint16(441), uint16(440), uint16(153), - /* 380 */ uint16(409), uint16(445), uint16(13), uint16(13), uint16(1279), uint16(563), uint16(1214), uint16(1186), uint16(1187), uint16(1188), - /* 390 */ uint16(1003), uint16(1216), uint16(264), uint16(555), uint16(1574), uint16(186), uint16(566), uint16(427), uint16(138), uint16(1215), - /* 400 */ uint16(308), uint16(557), uint16(472), uint16(138), uint16(123), uint16(124), uint16(114), uint16(1210), uint16(1210), uint16(1044), - /* 410 */ uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), uint16(122), uint16(55), - /* 420 */ uint16(55), uint16(413), uint16(1023), uint16(507), uint16(1217), uint16(1186), uint16(1217), uint16(474), uint16(106), uint16(106), - /* 430 */ uint16(1312), uint16(1312), uint16(1186), uint16(171), uint16(566), uint16(384), uint16(107), uint16(380), uint16(445), uint16(568), - /* 440 */ uint16(567), uint16(430), uint16(1543), uint16(1013), uint16(332), uint16(549), uint16(565), uint16(263), uint16(280), uint16(360), - /* 450 */ uint16(510), uint16(355), uint16(509), uint16(250), uint16(491), uint16(308), uint16(557), uint16(71), uint16(71), uint16(351), - /* 460 */ uint16(308), uint16(557), uint16(374), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), uint16(118), - /* 470 */ uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(1013), uint16(1013), uint16(1015), uint16(1016), uint16(27), - /* 480 */ uint16(277), uint16(277), uint16(1186), uint16(1187), uint16(1188), uint16(1152), uint16(566), uint16(528), uint16(409), uint16(1186), - /* 490 */ uint16(1187), uint16(1188), uint16(348), uint16(563), uint16(548), uint16(1260), uint16(533), uint16(517), uint16(1152), uint16(1516), - /* 500 */ uint16(317), uint16(1152), uint16(285), uint16(550), uint16(485), uint16(569), uint16(566), uint16(569), uint16(482), uint16(51), - /* 510 */ uint16(51), uint16(207), uint16(123), uint16(124), uint16(114), uint16(1210), uint16(1210), uint16(1044), uint16(1047), uint16(1036), - /* 520 */ uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), uint16(122), uint16(171), uint16(1412), uint16(13), - /* 530 */ uint16(13), uint16(409), uint16(277), uint16(277), uint16(1186), uint16(505), uint16(119), uint16(119), uint16(118), uint16(118), - /* 540 */ uint16(118), uint16(117), uint16(113), uint16(444), uint16(429), uint16(563), uint16(518), uint16(220), uint16(515), uint16(1552), - /* 550 */ uint16(365), uint16(546), uint16(1186), uint16(6), uint16(532), uint16(123), uint16(124), uint16(114), uint16(1210), uint16(1210), - /* 560 */ uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), uint16(122), - /* 570 */ uint16(145), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), uint16(118), uint16(118), uint16(118), - /* 580 */ uint16(117), uint16(113), uint16(444), uint16(245), uint16(566), uint16(474), uint16(504), uint16(501), uint16(500), uint16(566), - /* 590 */ uint16(1481), uint16(1186), uint16(1187), uint16(1188), uint16(1310), uint16(1310), uint16(499), uint16(1186), uint16(149), uint16(425), - /* 600 */ uint16(1186), uint16(480), uint16(409), uint16(274), uint16(365), uint16(952), uint16(872), uint16(56), uint16(56), uint16(1186), - /* 610 */ uint16(1187), uint16(1188), uint16(71), uint16(71), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), - /* 620 */ uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(123), uint16(124), uint16(114), uint16(1210), - /* 630 */ uint16(1210), uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), - /* 640 */ uint16(122), uint16(409), uint16(541), uint16(1552), uint16(83), uint16(865), uint16(98), uint16(6), uint16(928), uint16(529), - /* 650 */ uint16(848), uint16(543), uint16(151), uint16(927), uint16(1186), uint16(1187), uint16(1188), uint16(1186), uint16(1187), uint16(1188), - /* 660 */ uint16(290), uint16(1543), uint16(187), uint16(1633), uint16(395), uint16(123), uint16(124), uint16(114), uint16(1210), uint16(1210), - /* 670 */ uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), uint16(122), - /* 680 */ uint16(566), uint16(954), uint16(566), uint16(453), uint16(953), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), - /* 690 */ uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(1152), uint16(221), uint16(1186), - /* 700 */ uint16(331), uint16(453), uint16(452), uint16(13), uint16(13), uint16(13), uint16(13), uint16(1003), uint16(365), uint16(463), - /* 710 */ uint16(1152), uint16(193), uint16(409), uint16(1152), uint16(382), uint16(1543), uint16(1170), uint16(32), uint16(297), uint16(474), - /* 720 */ uint16(195), uint16(1527), uint16(5), uint16(952), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), - /* 730 */ uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(123), uint16(124), uint16(114), uint16(1210), - /* 740 */ uint16(1210), uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), - /* 750 */ uint16(122), uint16(409), uint16(1067), uint16(419), uint16(1186), uint16(1024), uint16(1186), uint16(1187), uint16(1188), uint16(1186), - /* 760 */ uint16(419), uint16(332), uint16(460), uint16(320), uint16(544), uint16(1545), uint16(442), uint16(442), uint16(442), uint16(566), - /* 770 */ uint16(3), uint16(117), uint16(113), uint16(444), uint16(453), uint16(123), uint16(124), uint16(114), uint16(1210), uint16(1210), - /* 780 */ uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), uint16(122), - /* 790 */ uint16(1473), uint16(566), uint16(15), uint16(15), uint16(293), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), - /* 800 */ uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(1186), uint16(566), uint16(1486), - /* 810 */ uint16(1412), uint16(1186), uint16(1187), uint16(1188), uint16(13), uint16(13), uint16(1186), uint16(1187), uint16(1188), uint16(1544), - /* 820 */ uint16(271), uint16(271), uint16(409), uint16(286), uint16(308), uint16(557), uint16(1008), uint16(1486), uint16(1488), uint16(196), - /* 830 */ uint16(288), uint16(71), uint16(71), uint16(563), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), - /* 840 */ uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(123), uint16(124), uint16(114), uint16(1210), - /* 850 */ uint16(1210), uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), - /* 860 */ uint16(122), uint16(409), uint16(201), uint16(1087), uint16(1186), uint16(1187), uint16(1188), uint16(1324), uint16(304), uint16(1529), - /* 870 */ uint16(388), uint16(278), uint16(278), uint16(450), uint16(564), uint16(402), uint16(922), uint16(922), uint16(566), uint16(563), - /* 880 */ uint16(566), uint16(426), uint16(491), uint16(480), uint16(563), uint16(123), uint16(124), uint16(114), uint16(1210), uint16(1210), - /* 890 */ uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), uint16(122), - /* 900 */ uint16(1486), uint16(71), uint16(71), uint16(13), uint16(13), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), - /* 910 */ uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(566), uint16(545), uint16(566), - /* 920 */ uint16(1577), uint16(573), uint16(2), uint16(1238), uint16(1092), uint16(1092), uint16(488), uint16(1480), uint16(309), uint16(1525), - /* 930 */ uint16(142), uint16(324), uint16(409), uint16(836), uint16(837), uint16(838), uint16(312), uint16(1320), uint16(305), uint16(363), - /* 940 */ uint16(43), uint16(43), uint16(57), uint16(57), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), - /* 950 */ uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(123), uint16(124), uint16(114), uint16(1210), - /* 960 */ uint16(1210), uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), - /* 970 */ uint16(122), uint16(12), uint16(277), uint16(277), uint16(566), uint16(1152), uint16(409), uint16(572), uint16(428), uint16(1238), - /* 980 */ uint16(465), uint16(334), uint16(296), uint16(474), uint16(309), uint16(563), uint16(142), uint16(249), uint16(1152), uint16(308), - /* 990 */ uint16(557), uint16(1152), uint16(321), uint16(1320), uint16(323), uint16(491), uint16(455), uint16(71), uint16(71), uint16(233), - /* 1000 */ uint16(283), uint16(101), uint16(114), uint16(1210), uint16(1210), uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), - /* 1010 */ uint16(121), uint16(122), uint16(122), uint16(122), uint16(122), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), - /* 1020 */ uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(1108), uint16(277), uint16(277), - /* 1030 */ uint16(1412), uint16(448), uint16(394), uint16(1230), uint16(439), uint16(277), uint16(277), uint16(248), uint16(247), uint16(246), - /* 1040 */ uint16(1319), uint16(563), uint16(1109), uint16(313), uint16(198), uint16(294), uint16(491), uint16(1318), uint16(563), uint16(464), - /* 1050 */ uint16(566), uint16(1427), uint16(394), uint16(1130), uint16(1023), uint16(233), uint16(414), uint16(1110), uint16(295), uint16(120), - /* 1060 */ uint16(120), uint16(120), uint16(120), uint16(119), uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), - /* 1070 */ uint16(444), uint16(1014), uint16(104), uint16(71), uint16(71), uint16(1013), uint16(322), uint16(496), uint16(908), uint16(566), - /* 1080 */ uint16(277), uint16(277), uint16(277), uint16(277), uint16(1108), uint16(1261), uint16(415), uint16(448), uint16(909), uint16(361), - /* 1090 */ uint16(1571), uint16(1315), uint16(409), uint16(563), uint16(952), uint16(563), uint16(9), uint16(202), uint16(255), uint16(1109), - /* 1100 */ uint16(316), uint16(487), uint16(44), uint16(44), uint16(249), uint16(559), uint16(415), uint16(1013), uint16(1013), uint16(1015), - /* 1110 */ uint16(443), uint16(1231), uint16(409), uint16(1603), uint16(1110), uint16(897), uint16(123), uint16(124), uint16(114), uint16(1210), - /* 1120 */ uint16(1210), uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), - /* 1130 */ uint16(122), uint16(1231), uint16(409), uint16(1207), uint16(215), uint16(554), uint16(123), uint16(124), uint16(114), uint16(1210), - /* 1140 */ uint16(1210), uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), - /* 1150 */ uint16(122), uint16(1131), uint16(1631), uint16(470), uint16(1631), uint16(255), uint16(123), uint16(111), uint16(114), uint16(1210), - /* 1160 */ uint16(1210), uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), uint16(122), uint16(122), uint16(122), - /* 1170 */ uint16(122), uint16(1131), uint16(1632), uint16(414), uint16(1632), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), - /* 1180 */ uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(221), uint16(209), uint16(351), - /* 1190 */ uint16(1207), uint16(1207), uint16(147), uint16(1426), uint16(491), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), - /* 1200 */ uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(1256), uint16(539), uint16(519), - /* 1210 */ uint16(888), uint16(551), uint16(952), uint16(12), uint16(566), uint16(120), uint16(120), uint16(120), uint16(120), uint16(119), - /* 1220 */ uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), uint16(538), uint16(566), uint16(860), - /* 1230 */ uint16(1129), uint16(361), uint16(1571), uint16(346), uint16(1356), uint16(409), uint16(1163), uint16(58), uint16(58), uint16(339), - /* 1240 */ uint16(1355), uint16(508), uint16(277), uint16(277), uint16(277), uint16(277), uint16(277), uint16(277), uint16(1207), uint16(889), - /* 1250 */ uint16(1129), uint16(59), uint16(59), uint16(459), uint16(363), uint16(563), uint16(566), uint16(563), uint16(96), uint16(563), - /* 1260 */ uint16(124), uint16(114), uint16(1210), uint16(1210), uint16(1044), uint16(1047), uint16(1036), uint16(1036), uint16(121), uint16(121), - /* 1270 */ uint16(122), uint16(122), uint16(122), uint16(122), uint16(566), uint16(1412), uint16(566), uint16(281), uint16(1186), uint16(60), - /* 1280 */ uint16(60), uint16(110), uint16(392), uint16(392), uint16(391), uint16(266), uint16(389), uint16(860), uint16(1163), uint16(845), - /* 1290 */ uint16(566), uint16(481), uint16(566), uint16(436), uint16(341), uint16(1152), uint16(344), uint16(61), uint16(61), uint16(62), - /* 1300 */ uint16(62), uint16(967), uint16(227), uint16(1550), uint16(315), uint16(431), uint16(540), uint16(6), uint16(1152), uint16(968), - /* 1310 */ uint16(566), uint16(1152), uint16(314), uint16(45), uint16(45), uint16(46), uint16(46), uint16(512), uint16(120), uint16(120), - /* 1320 */ uint16(120), uint16(120), uint16(119), uint16(119), uint16(118), uint16(118), uint16(118), uint16(117), uint16(113), uint16(444), - /* 1330 */ uint16(416), uint16(173), uint16(1532), uint16(47), uint16(47), uint16(1186), uint16(1187), uint16(1188), uint16(108), uint16(558), - /* 1340 */ uint16(325), uint16(4), uint16(229), uint16(1551), uint16(928), uint16(566), uint16(437), uint16(6), uint16(566), uint16(927), - /* 1350 */ uint16(164), uint16(566), uint16(1290), uint16(137), uint16(1190), uint16(561), uint16(566), uint16(1549), uint16(566), uint16(1089), - /* 1360 */ uint16(566), uint16(6), uint16(566), uint16(1089), uint16(531), uint16(566), uint16(868), uint16(8), uint16(49), uint16(49), - /* 1370 */ uint16(228), uint16(50), uint16(50), uint16(566), uint16(63), uint16(63), uint16(566), uint16(457), uint16(445), uint16(64), - /* 1380 */ uint16(64), uint16(65), uint16(65), uint16(14), uint16(14), uint16(66), uint16(66), uint16(407), uint16(129), uint16(129), - /* 1390 */ uint16(555), uint16(566), uint16(458), uint16(566), uint16(1505), uint16(486), uint16(67), uint16(67), uint16(566), uint16(52), - /* 1400 */ uint16(52), uint16(546), uint16(407), uint16(467), uint16(535), uint16(410), uint16(226), uint16(1023), uint16(566), uint16(534), - /* 1410 */ uint16(308), uint16(557), uint16(1190), uint16(407), uint16(68), uint16(68), uint16(69), uint16(69), uint16(566), uint16(1023), - /* 1420 */ uint16(566), uint16(53), uint16(53), uint16(868), uint16(1014), uint16(106), uint16(106), uint16(525), uint16(1013), uint16(566), - /* 1430 */ uint16(1504), uint16(159), uint16(159), uint16(107), uint16(451), uint16(445), uint16(568), uint16(567), uint16(471), uint16(307), - /* 1440 */ uint16(1013), uint16(160), uint16(160), uint16(76), uint16(76), uint16(566), uint16(1548), uint16(466), uint16(407), uint16(407), - /* 1450 */ uint16(6), uint16(1225), uint16(54), uint16(54), uint16(478), uint16(276), uint16(219), uint16(566), uint16(887), uint16(886), - /* 1460 */ uint16(1013), uint16(1013), uint16(1015), uint16(84), uint16(206), uint16(1206), uint16(230), uint16(282), uint16(72), uint16(72), - /* 1470 */ uint16(329), uint16(483), uint16(1013), uint16(1013), uint16(1015), uint16(1016), uint16(27), uint16(1576), uint16(1174), uint16(447), - /* 1480 */ uint16(130), uint16(130), uint16(281), uint16(148), uint16(105), uint16(38), uint16(103), uint16(392), uint16(392), uint16(391), - /* 1490 */ uint16(266), uint16(389), uint16(566), uint16(1126), uint16(845), uint16(396), uint16(566), uint16(108), uint16(558), uint16(566), - /* 1500 */ uint16(4), uint16(311), uint16(566), uint16(30), uint16(17), uint16(566), uint16(279), uint16(227), uint16(566), uint16(315), - /* 1510 */ uint16(108), uint16(558), uint16(468), uint16(4), uint16(561), uint16(73), uint16(73), uint16(314), uint16(566), uint16(157), - /* 1520 */ uint16(157), uint16(566), uint16(131), uint16(131), uint16(526), uint16(132), uint16(132), uint16(561), uint16(128), uint16(128), - /* 1530 */ uint16(566), uint16(158), uint16(158), uint16(566), uint16(31), uint16(291), uint16(566), uint16(445), uint16(330), uint16(521), - /* 1540 */ uint16(98), uint16(152), uint16(152), uint16(420), uint16(136), uint16(136), uint16(1005), uint16(229), uint16(254), uint16(555), - /* 1550 */ uint16(445), uint16(479), uint16(336), uint16(135), uint16(135), uint16(164), uint16(133), uint16(133), uint16(137), uint16(134), - /* 1560 */ uint16(134), uint16(875), uint16(555), uint16(535), uint16(566), uint16(473), uint16(566), uint16(254), uint16(536), uint16(475), - /* 1570 */ uint16(335), uint16(254), uint16(98), uint16(894), uint16(895), uint16(228), uint16(535), uint16(566), uint16(1023), uint16(566), - /* 1580 */ uint16(1074), uint16(534), uint16(210), uint16(232), uint16(106), uint16(106), uint16(1352), uint16(75), uint16(75), uint16(77), - /* 1590 */ uint16(77), uint16(1023), uint16(107), uint16(340), uint16(445), uint16(568), uint16(567), uint16(106), uint16(106), uint16(1013), - /* 1600 */ uint16(74), uint16(74), uint16(42), uint16(42), uint16(566), uint16(107), uint16(343), uint16(445), uint16(568), uint16(567), - /* 1610 */ uint16(410), uint16(497), uint16(1013), uint16(251), uint16(359), uint16(308), uint16(557), uint16(1135), uint16(349), uint16(875), - /* 1620 */ uint16(98), uint16(1070), uint16(345), uint16(251), uint16(358), uint16(1591), uint16(347), uint16(48), uint16(48), uint16(1017), - /* 1630 */ uint16(1303), uint16(1013), uint16(1013), uint16(1015), uint16(1016), uint16(27), uint16(1289), uint16(1287), uint16(1074), uint16(451), - /* 1640 */ uint16(961), uint16(925), uint16(254), uint16(110), uint16(1013), uint16(1013), uint16(1015), uint16(1016), uint16(27), uint16(1174), - /* 1650 */ uint16(447), uint16(970), uint16(971), uint16(281), uint16(108), uint16(558), uint16(1288), uint16(4), uint16(392), uint16(392), - /* 1660 */ uint16(391), uint16(266), uint16(389), uint16(1343), uint16(1086), uint16(845), uint16(1086), uint16(1085), uint16(858), uint16(1085), - /* 1670 */ uint16(146), uint16(561), uint16(926), uint16(354), uint16(110), uint16(303), uint16(364), uint16(553), uint16(227), uint16(1364), - /* 1680 */ uint16(315), uint16(108), uint16(558), uint16(1411), uint16(4), uint16(1339), uint16(492), uint16(1017), uint16(314), uint16(1350), - /* 1690 */ uint16(1565), uint16(552), uint16(1417), uint16(1268), uint16(445), uint16(204), uint16(1259), uint16(1247), uint16(561), uint16(1246), - /* 1700 */ uint16(1248), uint16(1584), uint16(269), uint16(1336), uint16(367), uint16(369), uint16(555), uint16(371), uint16(11), uint16(212), - /* 1710 */ uint16(393), uint16(225), uint16(1393), uint16(284), uint16(1398), uint16(456), uint16(287), uint16(327), uint16(229), uint16(328), - /* 1720 */ uint16(292), uint16(445), uint16(1386), uint16(216), uint16(333), uint16(1403), uint16(164), uint16(477), uint16(373), uint16(137), - /* 1730 */ uint16(1402), uint16(400), uint16(502), uint16(555), uint16(1286), uint16(1023), uint16(357), uint16(1477), uint16(199), uint16(1587), - /* 1740 */ uint16(211), uint16(106), uint16(106), uint16(932), uint16(1476), uint16(1225), uint16(228), uint16(556), uint16(175), uint16(107), - /* 1750 */ uint16(200), uint16(445), uint16(568), uint16(567), uint16(258), uint16(387), uint16(1013), uint16(1524), uint16(1522), uint16(223), - /* 1760 */ uint16(1222), uint16(418), uint16(1023), uint16(83), uint16(208), uint16(79), uint16(82), uint16(184), uint16(106), uint16(106), - /* 1770 */ uint16(1482), uint16(169), uint16(177), uint16(461), uint16(179), uint16(462), uint16(107), uint16(1399), uint16(445), uint16(568), - /* 1780 */ uint16(567), uint16(410), uint16(180), uint16(1013), uint16(495), uint16(181), uint16(308), uint16(557), uint16(1013), uint16(1013), - /* 1790 */ uint16(1015), uint16(1016), uint16(27), uint16(182), uint16(35), uint16(235), uint16(100), uint16(558), uint16(398), uint16(4), - /* 1800 */ uint16(96), uint16(1405), uint16(1404), uint16(36), uint16(484), uint16(469), uint16(1407), uint16(188), uint16(401), uint16(1471), - /* 1810 */ uint16(451), uint16(89), uint16(1493), uint16(561), uint16(239), uint16(1013), uint16(1013), uint16(1015), uint16(1016), uint16(27), - /* 1820 */ uint16(490), uint16(338), uint16(270), uint16(241), uint16(192), uint16(342), uint16(493), uint16(242), uint16(403), uint16(1249), - /* 1830 */ uint16(243), uint16(511), uint16(432), uint16(1297), uint16(1306), uint16(91), uint16(445), uint16(1305), uint16(1304), uint16(879), - /* 1840 */ uint16(217), uint16(434), uint16(435), uint16(1570), uint16(1276), uint16(1602), uint16(520), uint16(1601), uint16(555), uint16(301), - /* 1850 */ uint16(527), uint16(404), uint16(1275), uint16(302), uint16(356), uint16(1274), uint16(1600), uint16(95), uint16(1347), uint16(366), - /* 1860 */ uint16(1296), uint16(362), uint16(1348), uint16(368), uint16(256), uint16(257), uint16(1556), uint16(1555), uint16(438), uint16(1346), - /* 1870 */ uint16(370), uint16(126), uint16(1345), uint16(10), uint16(1371), uint16(546), uint16(381), uint16(1023), uint16(102), uint16(1457), - /* 1880 */ uint16(97), uint16(530), uint16(34), uint16(106), uint16(106), uint16(570), uint16(1180), uint16(372), uint16(265), uint16(1329), - /* 1890 */ uint16(379), uint16(107), uint16(203), uint16(445), uint16(568), uint16(567), uint16(1328), uint16(385), uint16(1013), uint16(1370), - /* 1900 */ uint16(386), uint16(267), uint16(268), uint16(571), uint16(1244), uint16(161), uint16(1239), uint16(162), uint16(1509), uint16(1510), - /* 1910 */ uint16(1508), uint16(143), uint16(1507), uint16(299), uint16(832), uint16(213), uint16(214), uint16(78), uint16(446), uint16(205), - /* 1920 */ uint16(310), uint16(306), uint16(163), uint16(224), uint16(1084), uint16(140), uint16(1082), uint16(318), uint16(165), uint16(176), - /* 1930 */ uint16(1013), uint16(1013), uint16(1015), uint16(1016), uint16(27), uint16(178), uint16(1206), uint16(231), uint16(911), uint16(234), - /* 1940 */ uint16(326), uint16(1098), uint16(183), uint16(421), uint16(166), uint16(167), uint16(411), uint16(185), uint16(85), uint16(423), - /* 1950 */ uint16(412), uint16(86), uint16(174), uint16(87), uint16(168), uint16(88), uint16(1101), uint16(236), uint16(1097), uint16(237), - /* 1960 */ uint16(154), uint16(18), uint16(238), uint16(254), uint16(337), uint16(1219), uint16(489), uint16(1090), uint16(240), uint16(190), - /* 1970 */ uint16(37), uint16(847), uint16(189), uint16(494), uint16(358), uint16(244), uint16(350), uint16(506), uint16(191), uint16(877), - /* 1980 */ uint16(90), uint16(498), uint16(19), uint16(20), uint16(503), uint16(92), uint16(353), uint16(890), uint16(300), uint16(170), - /* 1990 */ uint16(155), uint16(93), uint16(513), uint16(94), uint16(1168), uint16(156), uint16(1050), uint16(1137), uint16(39), uint16(218), - /* 2000 */ uint16(273), uint16(275), uint16(1136), uint16(960), uint16(194), uint16(955), uint16(110), uint16(1154), uint16(1158), uint16(253), - /* 2010 */ uint16(7), uint16(1162), uint16(1156), uint16(21), uint16(22), uint16(1161), uint16(1142), uint16(23), uint16(24), uint16(25), - /* 2020 */ uint16(33), uint16(542), uint16(26), uint16(260), uint16(197), uint16(98), uint16(1065), uint16(1051), uint16(1049), uint16(1053), - /* 2030 */ uint16(1107), uint16(1054), uint16(1106), uint16(259), uint16(28), uint16(40), uint16(562), uint16(1018), uint16(859), uint16(109), - /* 2040 */ uint16(29), uint16(921), uint16(390), uint16(1176), uint16(172), uint16(139), uint16(1175), uint16(1235), uint16(261), uint16(1235), - /* 2050 */ uint16(1235), uint16(1235), uint16(1235), uint16(1235), uint16(1235), uint16(1235), uint16(1235), uint16(262), uint16(1235), uint16(1235), - /* 2060 */ uint16(1235), uint16(1235), uint16(1235), uint16(1235), uint16(1235), uint16(1235), uint16(1235), uint16(1235), uint16(1593), uint16(1592), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:161994:27 */ -var yy_lookahead = [2255]uint16{ - /* 0 */ uint16(193), uint16(223), uint16(193), uint16(225), uint16(193), uint16(193), uint16(193), uint16(274), uint16(275), uint16(276), - /* 10 */ uint16(193), uint16(233), uint16(219), uint16(193), uint16(274), uint16(275), uint16(276), uint16(206), uint16(206), uint16(19), - /* 20 */ uint16(193), uint16(219), uint16(216), uint16(216), uint16(217), uint16(216), uint16(217), uint16(193), uint16(295), uint16(216), - /* 30 */ uint16(217), uint16(31), uint16(205), uint16(216), uint16(217), uint16(193), uint16(216), uint16(217), uint16(213), uint16(39), - /* 40 */ uint16(228), uint16(193), uint16(230), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), +var yy_action = [2098]uint16{ + /* 0 */ uint16(568), uint16(208), uint16(568), uint16(118), uint16(115), uint16(229), uint16(568), uint16(118), uint16(115), uint16(229), + /* 10 */ uint16(568), uint16(1314), uint16(377), uint16(1293), uint16(408), uint16(562), uint16(562), uint16(562), uint16(568), uint16(409), + /* 20 */ uint16(378), uint16(1314), uint16(1276), uint16(41), uint16(41), uint16(41), uint16(41), uint16(208), uint16(1526), uint16(71), + /* 30 */ uint16(71), uint16(971), uint16(419), uint16(41), uint16(41), uint16(491), uint16(303), uint16(279), uint16(303), uint16(972), + /* 40 */ uint16(397), uint16(71), uint16(71), uint16(125), uint16(126), uint16(80), uint16(1217), uint16(1217), uint16(1050), uint16(1053), + /* 50 */ uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), uint16(124), uint16(476), uint16(409), + /* 60 */ uint16(1241), uint16(1), uint16(1), uint16(575), uint16(2), uint16(1245), uint16(550), uint16(118), uint16(115), uint16(229), + /* 70 */ uint16(317), uint16(480), uint16(146), uint16(480), uint16(524), uint16(118), uint16(115), uint16(229), uint16(529), uint16(1327), + /* 80 */ uint16(417), uint16(523), uint16(142), uint16(125), uint16(126), uint16(80), uint16(1217), uint16(1217), uint16(1050), uint16(1053), + /* 90 */ uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), uint16(124), uint16(118), uint16(115), + /* 100 */ uint16(229), uint16(327), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), uint16(120), uint16(120), + /* 110 */ uint16(120), uint16(119), uint16(116), uint16(444), uint16(284), uint16(284), uint16(284), uint16(284), uint16(442), uint16(442), + /* 120 */ uint16(442), uint16(1567), uint16(376), uint16(1569), uint16(1192), uint16(375), uint16(1163), uint16(565), uint16(1163), uint16(565), + /* 130 */ uint16(409), uint16(1567), uint16(537), uint16(259), uint16(226), uint16(444), uint16(101), uint16(145), uint16(449), uint16(316), + /* 140 */ uint16(559), uint16(240), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), uint16(120), uint16(120), + /* 150 */ uint16(120), uint16(119), uint16(116), uint16(444), uint16(125), uint16(126), uint16(80), uint16(1217), uint16(1217), uint16(1050), + /* 160 */ uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), uint16(124), uint16(142), + /* 170 */ uint16(294), uint16(1192), uint16(339), uint16(448), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), + /* 180 */ uint16(127), uint16(1192), uint16(1193), uint16(1194), uint16(148), uint16(441), uint16(440), uint16(568), uint16(119), uint16(116), + /* 190 */ uint16(444), uint16(124), uint16(124), uint16(124), uint16(124), uint16(117), uint16(122), uint16(122), uint16(122), uint16(122), + /* 200 */ uint16(121), uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(454), uint16(113), + /* 210 */ uint16(13), uint16(13), uint16(546), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), uint16(120), + /* 220 */ uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(422), uint16(316), uint16(559), uint16(1192), uint16(1193), + /* 230 */ uint16(1194), uint16(149), uint16(1224), uint16(409), uint16(1224), uint16(124), uint16(124), uint16(124), uint16(124), uint16(122), + /* 240 */ uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), + /* 250 */ uint16(444), uint16(465), uint16(342), uint16(1037), uint16(1037), uint16(1051), uint16(1054), uint16(125), uint16(126), uint16(80), + /* 260 */ uint16(1217), uint16(1217), uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), + /* 270 */ uint16(124), uint16(124), uint16(1279), uint16(522), uint16(222), uint16(1192), uint16(568), uint16(409), uint16(224), uint16(514), + /* 280 */ uint16(175), uint16(82), uint16(83), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), uint16(120), + /* 290 */ uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(1007), uint16(16), uint16(16), uint16(1192), uint16(133), + /* 300 */ uint16(133), uint16(125), uint16(126), uint16(80), uint16(1217), uint16(1217), uint16(1050), uint16(1053), uint16(1040), uint16(1040), + /* 310 */ uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), uint16(124), uint16(122), uint16(122), uint16(122), uint16(122), + /* 320 */ uint16(121), uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(1041), uint16(546), + /* 330 */ uint16(1192), uint16(373), uint16(1192), uint16(1193), uint16(1194), uint16(252), uint16(1434), uint16(399), uint16(504), uint16(501), + /* 340 */ uint16(500), uint16(111), uint16(560), uint16(566), uint16(4), uint16(926), uint16(926), uint16(433), uint16(499), uint16(340), + /* 350 */ uint16(460), uint16(328), uint16(360), uint16(394), uint16(1237), uint16(1192), uint16(1193), uint16(1194), uint16(563), uint16(568), + /* 360 */ uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), + /* 370 */ uint16(116), uint16(444), uint16(284), uint16(284), uint16(369), uint16(1580), uint16(1607), uint16(441), uint16(440), uint16(154), + /* 380 */ uint16(409), uint16(445), uint16(71), uint16(71), uint16(1286), uint16(565), uint16(1221), uint16(1192), uint16(1193), uint16(1194), + /* 390 */ uint16(85), uint16(1223), uint16(271), uint16(557), uint16(543), uint16(515), uint16(1561), uint16(568), uint16(98), uint16(1222), + /* 400 */ uint16(6), uint16(1278), uint16(472), uint16(142), uint16(125), uint16(126), uint16(80), uint16(1217), uint16(1217), uint16(1050), + /* 410 */ uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), uint16(124), uint16(550), + /* 420 */ uint16(13), uint16(13), uint16(1027), uint16(507), uint16(1224), uint16(1192), uint16(1224), uint16(549), uint16(109), uint16(109), + /* 430 */ uint16(222), uint16(568), uint16(1238), uint16(175), uint16(568), uint16(427), uint16(110), uint16(197), uint16(445), uint16(570), + /* 440 */ uint16(569), uint16(430), uint16(1552), uint16(1017), uint16(325), uint16(551), uint16(1192), uint16(270), uint16(287), uint16(368), + /* 450 */ uint16(510), uint16(363), uint16(509), uint16(257), uint16(71), uint16(71), uint16(543), uint16(71), uint16(71), uint16(359), + /* 460 */ uint16(316), uint16(559), uint16(1613), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), uint16(120), + /* 470 */ uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(1017), uint16(1017), uint16(1019), uint16(1020), uint16(27), + /* 480 */ uint16(284), uint16(284), uint16(1192), uint16(1193), uint16(1194), uint16(1158), uint16(568), uint16(1612), uint16(409), uint16(901), + /* 490 */ uint16(190), uint16(550), uint16(356), uint16(565), uint16(550), uint16(937), uint16(533), uint16(517), uint16(1158), uint16(516), + /* 500 */ uint16(413), uint16(1158), uint16(552), uint16(1192), uint16(1193), uint16(1194), uint16(568), uint16(544), uint16(1554), uint16(51), + /* 510 */ uint16(51), uint16(214), uint16(125), uint16(126), uint16(80), uint16(1217), uint16(1217), uint16(1050), uint16(1053), uint16(1040), + /* 520 */ uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), uint16(124), uint16(1192), uint16(474), uint16(135), + /* 530 */ uint16(135), uint16(409), uint16(284), uint16(284), uint16(1490), uint16(505), uint16(121), uint16(121), uint16(120), uint16(120), + /* 540 */ uint16(120), uint16(119), uint16(116), uint16(444), uint16(1007), uint16(565), uint16(518), uint16(217), uint16(541), uint16(1561), + /* 550 */ uint16(316), uint16(559), uint16(142), uint16(6), uint16(532), uint16(125), uint16(126), uint16(80), uint16(1217), uint16(1217), + /* 560 */ uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), uint16(124), + /* 570 */ uint16(1555), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), uint16(120), uint16(120), uint16(120), + /* 580 */ uint16(119), uint16(116), uint16(444), uint16(485), uint16(1192), uint16(1193), uint16(1194), uint16(482), uint16(281), uint16(1267), + /* 590 */ uint16(957), uint16(252), uint16(1192), uint16(373), uint16(504), uint16(501), uint16(500), uint16(1192), uint16(340), uint16(571), + /* 600 */ uint16(1192), uint16(571), uint16(409), uint16(292), uint16(499), uint16(957), uint16(876), uint16(191), uint16(480), uint16(316), + /* 610 */ uint16(559), uint16(384), uint16(290), uint16(380), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), + /* 620 */ uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(125), uint16(126), uint16(80), uint16(1217), + /* 630 */ uint16(1217), uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), + /* 640 */ uint16(124), uint16(409), uint16(394), uint16(1136), uint16(1192), uint16(869), uint16(100), uint16(284), uint16(284), uint16(1192), + /* 650 */ uint16(1193), uint16(1194), uint16(373), uint16(1093), uint16(1192), uint16(1193), uint16(1194), uint16(1192), uint16(1193), uint16(1194), + /* 660 */ uint16(565), uint16(455), uint16(32), uint16(373), uint16(233), uint16(125), uint16(126), uint16(80), uint16(1217), uint16(1217), + /* 670 */ uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), uint16(124), + /* 680 */ uint16(1433), uint16(959), uint16(568), uint16(228), uint16(958), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), + /* 690 */ uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(1158), uint16(228), uint16(1192), + /* 700 */ uint16(157), uint16(1192), uint16(1193), uint16(1194), uint16(1553), uint16(13), uint16(13), uint16(301), uint16(957), uint16(1232), + /* 710 */ uint16(1158), uint16(153), uint16(409), uint16(1158), uint16(373), uint16(1583), uint16(1176), uint16(5), uint16(369), uint16(1580), + /* 720 */ uint16(429), uint16(1238), uint16(3), uint16(957), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), + /* 730 */ uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(125), uint16(126), uint16(80), uint16(1217), + /* 740 */ uint16(1217), uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), + /* 750 */ uint16(124), uint16(409), uint16(208), uint16(567), uint16(1192), uint16(1028), uint16(1192), uint16(1193), uint16(1194), uint16(1192), + /* 760 */ uint16(388), uint16(852), uint16(155), uint16(1552), uint16(286), uint16(402), uint16(1098), uint16(1098), uint16(488), uint16(568), + /* 770 */ uint16(465), uint16(342), uint16(1319), uint16(1319), uint16(1552), uint16(125), uint16(126), uint16(80), uint16(1217), uint16(1217), + /* 780 */ uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), uint16(124), + /* 790 */ uint16(129), uint16(568), uint16(13), uint16(13), uint16(374), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), + /* 800 */ uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(302), uint16(568), uint16(453), + /* 810 */ uint16(528), uint16(1192), uint16(1193), uint16(1194), uint16(13), uint16(13), uint16(1192), uint16(1193), uint16(1194), uint16(1297), + /* 820 */ uint16(463), uint16(1267), uint16(409), uint16(1317), uint16(1317), uint16(1552), uint16(1012), uint16(453), uint16(452), uint16(200), + /* 830 */ uint16(299), uint16(71), uint16(71), uint16(1265), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), + /* 840 */ uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(125), uint16(126), uint16(80), uint16(1217), + /* 850 */ uint16(1217), uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), + /* 860 */ uint16(124), uint16(409), uint16(227), uint16(1073), uint16(1158), uint16(284), uint16(284), uint16(419), uint16(312), uint16(278), + /* 870 */ uint16(278), uint16(285), uint16(285), uint16(1419), uint16(406), uint16(405), uint16(382), uint16(1158), uint16(565), uint16(568), + /* 880 */ uint16(1158), uint16(1196), uint16(565), uint16(1600), uint16(565), uint16(125), uint16(126), uint16(80), uint16(1217), uint16(1217), + /* 890 */ uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), uint16(124), + /* 900 */ uint16(453), uint16(1482), uint16(13), uint16(13), uint16(1536), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), + /* 910 */ uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(201), uint16(568), uint16(354), + /* 920 */ uint16(1586), uint16(575), uint16(2), uint16(1245), uint16(840), uint16(841), uint16(842), uint16(1562), uint16(317), uint16(1212), + /* 930 */ uint16(146), uint16(6), uint16(409), uint16(255), uint16(254), uint16(253), uint16(206), uint16(1327), uint16(9), uint16(1196), + /* 940 */ uint16(262), uint16(71), uint16(71), uint16(424), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), + /* 950 */ uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(125), uint16(126), uint16(80), uint16(1217), + /* 960 */ uint16(1217), uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), + /* 970 */ uint16(124), uint16(568), uint16(284), uint16(284), uint16(568), uint16(1213), uint16(409), uint16(574), uint16(313), uint16(1245), + /* 980 */ uint16(349), uint16(1296), uint16(352), uint16(419), uint16(317), uint16(565), uint16(146), uint16(491), uint16(525), uint16(1643), + /* 990 */ uint16(395), uint16(371), uint16(491), uint16(1327), uint16(70), uint16(70), uint16(1295), uint16(71), uint16(71), uint16(240), + /* 1000 */ uint16(1325), uint16(104), uint16(80), uint16(1217), uint16(1217), uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), + /* 1010 */ uint16(123), uint16(124), uint16(124), uint16(124), uint16(124), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), + /* 1020 */ uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(1114), uint16(284), uint16(284), + /* 1030 */ uint16(428), uint16(448), uint16(1525), uint16(1213), uint16(439), uint16(284), uint16(284), uint16(1489), uint16(1352), uint16(311), + /* 1040 */ uint16(474), uint16(565), uint16(1115), uint16(971), uint16(491), uint16(491), uint16(217), uint16(1263), uint16(565), uint16(1538), + /* 1050 */ uint16(568), uint16(972), uint16(207), uint16(568), uint16(1027), uint16(240), uint16(383), uint16(1116), uint16(519), uint16(122), + /* 1060 */ uint16(122), uint16(122), uint16(122), uint16(121), uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), + /* 1070 */ uint16(444), uint16(1018), uint16(107), uint16(71), uint16(71), uint16(1017), uint16(13), uint16(13), uint16(912), uint16(568), + /* 1080 */ uint16(1495), uint16(568), uint16(284), uint16(284), uint16(97), uint16(526), uint16(491), uint16(448), uint16(913), uint16(1326), + /* 1090 */ uint16(1322), uint16(545), uint16(409), uint16(284), uint16(284), uint16(565), uint16(151), uint16(209), uint16(1495), uint16(1497), + /* 1100 */ uint16(262), uint16(450), uint16(55), uint16(55), uint16(56), uint16(56), uint16(565), uint16(1017), uint16(1017), uint16(1019), + /* 1110 */ uint16(443), uint16(332), uint16(409), uint16(527), uint16(12), uint16(295), uint16(125), uint16(126), uint16(80), uint16(1217), + /* 1120 */ uint16(1217), uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), + /* 1130 */ uint16(124), uint16(347), uint16(409), uint16(864), uint16(1534), uint16(1213), uint16(125), uint16(126), uint16(80), uint16(1217), + /* 1140 */ uint16(1217), uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), + /* 1150 */ uint16(124), uint16(1137), uint16(1641), uint16(474), uint16(1641), uint16(371), uint16(125), uint16(114), uint16(80), uint16(1217), + /* 1160 */ uint16(1217), uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), uint16(124), uint16(124), uint16(124), + /* 1170 */ uint16(124), uint16(1495), uint16(329), uint16(474), uint16(331), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), + /* 1180 */ uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(203), uint16(1419), uint16(568), + /* 1190 */ uint16(1294), uint16(864), uint16(464), uint16(1213), uint16(436), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), + /* 1200 */ uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(553), uint16(1137), uint16(1642), + /* 1210 */ uint16(539), uint16(1642), uint16(15), uint16(15), uint16(892), uint16(122), uint16(122), uint16(122), uint16(122), uint16(121), + /* 1220 */ uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), uint16(568), uint16(298), uint16(538), + /* 1230 */ uint16(1135), uint16(1419), uint16(1559), uint16(1560), uint16(1331), uint16(409), uint16(6), uint16(6), uint16(1169), uint16(1268), + /* 1240 */ uint16(415), uint16(320), uint16(284), uint16(284), uint16(1419), uint16(508), uint16(565), uint16(525), uint16(300), uint16(457), + /* 1250 */ uint16(43), uint16(43), uint16(568), uint16(893), uint16(12), uint16(565), uint16(330), uint16(478), uint16(425), uint16(407), + /* 1260 */ uint16(126), uint16(80), uint16(1217), uint16(1217), uint16(1050), uint16(1053), uint16(1040), uint16(1040), uint16(123), uint16(123), + /* 1270 */ uint16(124), uint16(124), uint16(124), uint16(124), uint16(568), uint16(57), uint16(57), uint16(288), uint16(1192), uint16(1419), + /* 1280 */ uint16(496), uint16(458), uint16(392), uint16(392), uint16(391), uint16(273), uint16(389), uint16(1135), uint16(1558), uint16(849), + /* 1290 */ uint16(1169), uint16(407), uint16(6), uint16(568), uint16(321), uint16(1158), uint16(470), uint16(44), uint16(44), uint16(1557), + /* 1300 */ uint16(1114), uint16(426), uint16(234), uint16(6), uint16(323), uint16(256), uint16(540), uint16(256), uint16(1158), uint16(431), + /* 1310 */ uint16(568), uint16(1158), uint16(322), uint16(17), uint16(487), uint16(1115), uint16(58), uint16(58), uint16(122), uint16(122), + /* 1320 */ uint16(122), uint16(122), uint16(121), uint16(121), uint16(120), uint16(120), uint16(120), uint16(119), uint16(116), uint16(444), + /* 1330 */ uint16(1116), uint16(216), uint16(481), uint16(59), uint16(59), uint16(1192), uint16(1193), uint16(1194), uint16(111), uint16(560), + /* 1340 */ uint16(324), uint16(4), uint16(236), uint16(456), uint16(526), uint16(568), uint16(237), uint16(456), uint16(568), uint16(437), + /* 1350 */ uint16(168), uint16(556), uint16(420), uint16(141), uint16(479), uint16(563), uint16(568), uint16(293), uint16(568), uint16(1095), + /* 1360 */ uint16(568), uint16(293), uint16(568), uint16(1095), uint16(531), uint16(568), uint16(872), uint16(8), uint16(60), uint16(60), + /* 1370 */ uint16(235), uint16(61), uint16(61), uint16(568), uint16(414), uint16(568), uint16(414), uint16(568), uint16(445), uint16(62), + /* 1380 */ uint16(62), uint16(45), uint16(45), uint16(46), uint16(46), uint16(47), uint16(47), uint16(199), uint16(49), uint16(49), + /* 1390 */ uint16(557), uint16(568), uint16(359), uint16(568), uint16(100), uint16(486), uint16(50), uint16(50), uint16(63), uint16(63), + /* 1400 */ uint16(64), uint16(64), uint16(561), uint16(415), uint16(535), uint16(410), uint16(568), uint16(1027), uint16(568), uint16(534), + /* 1410 */ uint16(316), uint16(559), uint16(316), uint16(559), uint16(65), uint16(65), uint16(14), uint16(14), uint16(568), uint16(1027), + /* 1420 */ uint16(568), uint16(512), uint16(932), uint16(872), uint16(1018), uint16(109), uint16(109), uint16(931), uint16(1017), uint16(66), + /* 1430 */ uint16(66), uint16(131), uint16(131), uint16(110), uint16(451), uint16(445), uint16(570), uint16(569), uint16(416), uint16(177), + /* 1440 */ uint16(1017), uint16(132), uint16(132), uint16(67), uint16(67), uint16(568), uint16(467), uint16(568), uint16(932), uint16(471), + /* 1450 */ uint16(1364), uint16(283), uint16(226), uint16(931), uint16(315), uint16(1363), uint16(407), uint16(568), uint16(459), uint16(407), + /* 1460 */ uint16(1017), uint16(1017), uint16(1019), uint16(239), uint16(407), uint16(86), uint16(213), uint16(1350), uint16(52), uint16(52), + /* 1470 */ uint16(68), uint16(68), uint16(1017), uint16(1017), uint16(1019), uint16(1020), uint16(27), uint16(1585), uint16(1180), uint16(447), + /* 1480 */ uint16(69), uint16(69), uint16(288), uint16(97), uint16(108), uint16(1541), uint16(106), uint16(392), uint16(392), uint16(391), + /* 1490 */ uint16(273), uint16(389), uint16(568), uint16(879), uint16(849), uint16(883), uint16(568), uint16(111), uint16(560), uint16(466), + /* 1500 */ uint16(4), uint16(568), uint16(152), uint16(30), uint16(38), uint16(568), uint16(1132), uint16(234), uint16(396), uint16(323), + /* 1510 */ uint16(111), uint16(560), uint16(527), uint16(4), uint16(563), uint16(53), uint16(53), uint16(322), uint16(568), uint16(163), + /* 1520 */ uint16(163), uint16(568), uint16(337), uint16(468), uint16(164), uint16(164), uint16(333), uint16(563), uint16(76), uint16(76), + /* 1530 */ uint16(568), uint16(289), uint16(1514), uint16(568), uint16(31), uint16(1513), uint16(568), uint16(445), uint16(338), uint16(483), + /* 1540 */ uint16(100), uint16(54), uint16(54), uint16(344), uint16(72), uint16(72), uint16(296), uint16(236), uint16(1080), uint16(557), + /* 1550 */ uint16(445), uint16(879), uint16(1360), uint16(134), uint16(134), uint16(168), uint16(73), uint16(73), uint16(141), uint16(161), + /* 1560 */ uint16(161), uint16(1574), uint16(557), uint16(535), uint16(568), uint16(319), uint16(568), uint16(348), uint16(536), uint16(1009), + /* 1570 */ uint16(473), uint16(261), uint16(261), uint16(891), uint16(890), uint16(235), uint16(535), uint16(568), uint16(1027), uint16(568), + /* 1580 */ uint16(475), uint16(534), uint16(261), uint16(367), uint16(109), uint16(109), uint16(521), uint16(136), uint16(136), uint16(130), + /* 1590 */ uint16(130), uint16(1027), uint16(110), uint16(366), uint16(445), uint16(570), uint16(569), uint16(109), uint16(109), uint16(1017), + /* 1600 */ uint16(162), uint16(162), uint16(156), uint16(156), uint16(568), uint16(110), uint16(1080), uint16(445), uint16(570), uint16(569), + /* 1610 */ uint16(410), uint16(351), uint16(1017), uint16(568), uint16(353), uint16(316), uint16(559), uint16(568), uint16(343), uint16(568), + /* 1620 */ uint16(100), uint16(497), uint16(357), uint16(258), uint16(100), uint16(898), uint16(899), uint16(140), uint16(140), uint16(355), + /* 1630 */ uint16(1310), uint16(1017), uint16(1017), uint16(1019), uint16(1020), uint16(27), uint16(139), uint16(139), uint16(362), uint16(451), + /* 1640 */ uint16(137), uint16(137), uint16(138), uint16(138), uint16(1017), uint16(1017), uint16(1019), uint16(1020), uint16(27), uint16(1180), + /* 1650 */ uint16(447), uint16(568), uint16(372), uint16(288), uint16(111), uint16(560), uint16(1021), uint16(4), uint16(392), uint16(392), + /* 1660 */ uint16(391), uint16(273), uint16(389), uint16(568), uint16(1141), uint16(849), uint16(568), uint16(1076), uint16(568), uint16(258), + /* 1670 */ uint16(492), uint16(563), uint16(568), uint16(211), uint16(75), uint16(75), uint16(555), uint16(962), uint16(234), uint16(261), + /* 1680 */ uint16(323), uint16(111), uint16(560), uint16(929), uint16(4), uint16(113), uint16(77), uint16(77), uint16(322), uint16(74), + /* 1690 */ uint16(74), uint16(42), uint16(42), uint16(1373), uint16(445), uint16(48), uint16(48), uint16(1418), uint16(563), uint16(974), + /* 1700 */ uint16(975), uint16(1092), uint16(1091), uint16(1092), uint16(1091), uint16(862), uint16(557), uint16(150), uint16(930), uint16(1346), + /* 1710 */ uint16(113), uint16(1358), uint16(554), uint16(1424), uint16(1021), uint16(1275), uint16(1266), uint16(1254), uint16(236), uint16(1253), + /* 1720 */ uint16(1255), uint16(445), uint16(1593), uint16(1343), uint16(308), uint16(276), uint16(168), uint16(309), uint16(11), uint16(141), + /* 1730 */ uint16(393), uint16(310), uint16(232), uint16(557), uint16(1405), uint16(1027), uint16(335), uint16(291), uint16(1400), uint16(219), + /* 1740 */ uint16(336), uint16(109), uint16(109), uint16(936), uint16(297), uint16(1410), uint16(235), uint16(341), uint16(477), uint16(110), + /* 1750 */ uint16(502), uint16(445), uint16(570), uint16(569), uint16(1393), uint16(1409), uint16(1017), uint16(400), uint16(1293), uint16(365), + /* 1760 */ uint16(223), uint16(1486), uint16(1027), uint16(1485), uint16(1355), uint16(1356), uint16(1354), uint16(1353), uint16(109), uint16(109), + /* 1770 */ uint16(204), uint16(1596), uint16(1232), uint16(558), uint16(265), uint16(218), uint16(110), uint16(205), uint16(445), uint16(570), + /* 1780 */ uint16(569), uint16(410), uint16(387), uint16(1017), uint16(1533), uint16(179), uint16(316), uint16(559), uint16(1017), uint16(1017), + /* 1790 */ uint16(1019), uint16(1020), uint16(27), uint16(230), uint16(1531), uint16(1229), uint16(79), uint16(560), uint16(85), uint16(4), + /* 1800 */ uint16(418), uint16(215), uint16(548), uint16(81), uint16(84), uint16(188), uint16(1406), uint16(173), uint16(181), uint16(461), + /* 1810 */ uint16(451), uint16(35), uint16(462), uint16(563), uint16(183), uint16(1017), uint16(1017), uint16(1019), uint16(1020), uint16(27), + /* 1820 */ uint16(184), uint16(1491), uint16(185), uint16(186), uint16(495), uint16(242), uint16(98), uint16(398), uint16(1412), uint16(36), + /* 1830 */ uint16(1411), uint16(484), uint16(91), uint16(469), uint16(401), uint16(1414), uint16(445), uint16(192), uint16(1480), uint16(246), + /* 1840 */ uint16(1502), uint16(490), uint16(346), uint16(277), uint16(248), uint16(196), uint16(493), uint16(511), uint16(557), uint16(350), + /* 1850 */ uint16(1256), uint16(249), uint16(250), uint16(403), uint16(1313), uint16(1312), uint16(111), uint16(560), uint16(432), uint16(4), + /* 1860 */ uint16(1311), uint16(1304), uint16(93), uint16(1611), uint16(883), uint16(1610), uint16(224), uint16(404), uint16(434), uint16(520), + /* 1870 */ uint16(263), uint16(435), uint16(1579), uint16(563), uint16(1283), uint16(1282), uint16(364), uint16(1027), uint16(306), uint16(1281), + /* 1880 */ uint16(264), uint16(1609), uint16(1565), uint16(109), uint16(109), uint16(370), uint16(1303), uint16(307), uint16(1564), uint16(438), + /* 1890 */ uint16(128), uint16(110), uint16(1378), uint16(445), uint16(570), uint16(569), uint16(445), uint16(546), uint16(1017), uint16(10), + /* 1900 */ uint16(1466), uint16(105), uint16(381), uint16(1377), uint16(34), uint16(572), uint16(99), uint16(1336), uint16(557), uint16(314), + /* 1910 */ uint16(1186), uint16(530), uint16(272), uint16(274), uint16(379), uint16(210), uint16(1335), uint16(547), uint16(385), uint16(386), + /* 1920 */ uint16(275), uint16(573), uint16(1251), uint16(1246), uint16(411), uint16(412), uint16(1518), uint16(165), uint16(178), uint16(1519), + /* 1930 */ uint16(1017), uint16(1017), uint16(1019), uint16(1020), uint16(27), uint16(1517), uint16(1516), uint16(1027), uint16(78), uint16(147), + /* 1940 */ uint16(166), uint16(220), uint16(221), uint16(109), uint16(109), uint16(836), uint16(304), uint16(167), uint16(446), uint16(212), + /* 1950 */ uint16(318), uint16(110), uint16(231), uint16(445), uint16(570), uint16(569), uint16(144), uint16(1090), uint16(1017), uint16(1088), + /* 1960 */ uint16(326), uint16(180), uint16(169), uint16(1212), uint16(182), uint16(334), uint16(238), uint16(915), uint16(241), uint16(1104), + /* 1970 */ uint16(187), uint16(170), uint16(171), uint16(421), uint16(87), uint16(88), uint16(423), uint16(189), uint16(89), uint16(90), + /* 1980 */ uint16(172), uint16(1107), uint16(243), uint16(1103), uint16(244), uint16(158), uint16(18), uint16(245), uint16(345), uint16(247), + /* 1990 */ uint16(1017), uint16(1017), uint16(1019), uint16(1020), uint16(27), uint16(261), uint16(1096), uint16(193), uint16(1226), uint16(489), + /* 2000 */ uint16(194), uint16(37), uint16(366), uint16(851), uint16(494), uint16(251), uint16(195), uint16(506), uint16(92), uint16(19), + /* 2010 */ uint16(498), uint16(358), uint16(20), uint16(503), uint16(881), uint16(361), uint16(94), uint16(894), uint16(305), uint16(159), + /* 2020 */ uint16(513), uint16(39), uint16(95), uint16(1174), uint16(160), uint16(1056), uint16(966), uint16(1143), uint16(96), uint16(174), + /* 2030 */ uint16(1142), uint16(225), uint16(280), uint16(282), uint16(198), uint16(960), uint16(113), uint16(1164), uint16(1160), uint16(260), + /* 2040 */ uint16(21), uint16(22), uint16(23), uint16(1162), uint16(1168), uint16(1167), uint16(1148), uint16(24), uint16(33), uint16(25), + /* 2050 */ uint16(202), uint16(542), uint16(26), uint16(100), uint16(1071), uint16(102), uint16(1057), uint16(103), uint16(7), uint16(1055), + /* 2060 */ uint16(1059), uint16(1113), uint16(1060), uint16(1112), uint16(266), uint16(267), uint16(28), uint16(40), uint16(390), uint16(1022), + /* 2070 */ uint16(863), uint16(112), uint16(29), uint16(564), uint16(1182), uint16(1181), uint16(268), uint16(176), uint16(143), uint16(925), + /* 2080 */ uint16(1242), uint16(1242), uint16(1242), uint16(1242), uint16(1242), uint16(1242), uint16(1242), uint16(1242), uint16(1242), uint16(1242), + /* 2090 */ uint16(1242), uint16(1242), uint16(1242), uint16(1242), uint16(269), uint16(1602), uint16(1242), uint16(1601), +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:164019:27 */ +var yy_lookahead = [2283]uint16{ + /* 0 */ uint16(193), uint16(193), uint16(193), uint16(274), uint16(275), uint16(276), uint16(193), uint16(274), uint16(275), uint16(276), + /* 10 */ uint16(193), uint16(223), uint16(219), uint16(225), uint16(206), uint16(210), uint16(211), uint16(212), uint16(193), uint16(19), + /* 20 */ uint16(219), uint16(233), uint16(216), uint16(216), uint16(217), uint16(216), uint16(217), uint16(193), uint16(295), uint16(216), + /* 30 */ uint16(217), uint16(31), uint16(193), uint16(216), uint16(217), uint16(193), uint16(228), uint16(213), uint16(230), uint16(39), + /* 40 */ uint16(206), uint16(216), uint16(217), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), /* 50 */ uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(193), uint16(19), /* 60 */ uint16(185), uint16(186), uint16(187), uint16(188), uint16(189), uint16(190), uint16(253), uint16(274), uint16(275), uint16(276), - /* 70 */ uint16(195), uint16(193), uint16(197), uint16(253), uint16(216), uint16(262), uint16(274), uint16(275), uint16(276), uint16(204), - /* 80 */ uint16(238), uint16(204), uint16(262), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), - /* 90 */ uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(264), uint16(274), - /* 100 */ uint16(275), uint16(276), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), + /* 70 */ uint16(195), uint16(193), uint16(197), uint16(193), uint16(261), uint16(274), uint16(275), uint16(276), uint16(253), uint16(204), + /* 80 */ uint16(238), uint16(204), uint16(81), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), + /* 90 */ uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(274), uint16(275), + /* 100 */ uint16(276), uint16(262), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), /* 110 */ uint16(110), uint16(111), uint16(112), uint16(113), uint16(239), uint16(240), uint16(239), uint16(240), uint16(210), uint16(211), /* 120 */ uint16(212), uint16(314), uint16(315), uint16(314), uint16(59), uint16(316), uint16(86), uint16(252), uint16(88), uint16(252), - /* 130 */ uint16(19), uint16(314), uint16(315), uint16(256), uint16(257), uint16(309), uint16(25), uint16(72), uint16(296), uint16(313), - /* 140 */ uint16(193), uint16(266), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), + /* 130 */ uint16(19), uint16(314), uint16(315), uint16(256), uint16(257), uint16(113), uint16(25), uint16(72), uint16(296), uint16(138), + /* 140 */ uint16(139), uint16(266), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), /* 150 */ uint16(110), uint16(111), uint16(112), uint16(113), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), /* 160 */ uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(81), - /* 170 */ uint16(292), uint16(59), uint16(307), uint16(298), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), - /* 180 */ uint16(69), uint16(116), uint16(117), uint16(118), uint16(72), uint16(128), uint16(129), uint16(193), uint16(241), uint16(22), + /* 170 */ uint16(292), uint16(59), uint16(292), uint16(298), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), + /* 180 */ uint16(69), uint16(116), uint16(117), uint16(118), uint16(72), uint16(106), uint16(107), uint16(193), uint16(111), uint16(112), /* 190 */ uint16(113), uint16(54), uint16(55), uint16(56), uint16(57), uint16(58), uint16(102), uint16(103), uint16(104), uint16(105), - /* 200 */ uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(120), uint16(193), - /* 210 */ uint16(216), uint16(217), uint16(25), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), + /* 200 */ uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(120), uint16(25), + /* 210 */ uint16(216), uint16(217), uint16(145), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), /* 220 */ uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(231), uint16(138), uint16(139), uint16(116), uint16(117), - /* 230 */ uint16(118), uint16(106), uint16(107), uint16(19), uint16(216), uint16(54), uint16(55), uint16(56), uint16(57), uint16(102), + /* 230 */ uint16(118), uint16(164), uint16(153), uint16(19), uint16(155), uint16(54), uint16(55), uint16(56), uint16(57), uint16(102), /* 240 */ uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), - /* 250 */ uint16(113), uint16(304), uint16(25), uint16(46), uint16(47), uint16(48), uint16(49), uint16(43), uint16(44), uint16(45), + /* 250 */ uint16(113), uint16(128), uint16(129), uint16(46), uint16(47), uint16(48), uint16(49), uint16(43), uint16(44), uint16(45), /* 260 */ uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), - /* 270 */ uint16(56), uint16(57), uint16(193), uint16(106), uint16(107), uint16(59), uint16(193), uint16(19), uint16(153), uint16(263), - /* 280 */ uint16(155), uint16(67), uint16(24), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), - /* 290 */ uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(216), uint16(217), uint16(59), uint16(230), uint16(216), + /* 270 */ uint16(56), uint16(57), uint16(216), uint16(193), uint16(25), uint16(59), uint16(193), uint16(19), uint16(165), uint16(166), + /* 280 */ uint16(193), uint16(67), uint16(24), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), + /* 290 */ uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(73), uint16(216), uint16(217), uint16(59), uint16(216), /* 300 */ uint16(217), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), /* 310 */ uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(102), uint16(103), uint16(104), uint16(105), - /* 320 */ uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(121), uint16(142), - /* 330 */ uint16(59), uint16(193), uint16(116), uint16(117), uint16(118), uint16(119), uint16(253), uint16(204), uint16(122), uint16(123), - /* 340 */ uint16(124), uint16(19), uint16(20), uint16(81), uint16(22), uint16(262), uint16(108), uint16(19), uint16(132), uint16(165), - /* 350 */ uint16(166), uint16(193), uint16(24), uint16(126), uint16(116), uint16(117), uint16(118), uint16(278), uint16(36), uint16(193), + /* 320 */ uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(121), uint16(145), + /* 330 */ uint16(59), uint16(193), uint16(116), uint16(117), uint16(118), uint16(119), uint16(273), uint16(204), uint16(122), uint16(123), + /* 340 */ uint16(124), uint16(19), uint16(20), uint16(134), uint16(22), uint16(136), uint16(137), uint16(19), uint16(132), uint16(127), + /* 350 */ uint16(128), uint16(129), uint16(24), uint16(22), uint16(23), uint16(116), uint16(117), uint16(118), uint16(36), uint16(193), /* 360 */ uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), - /* 370 */ uint16(112), uint16(113), uint16(239), uint16(240), uint16(216), uint16(217), uint16(215), uint16(106), uint16(107), uint16(241), + /* 370 */ uint16(112), uint16(113), uint16(239), uint16(240), uint16(311), uint16(312), uint16(215), uint16(106), uint16(107), uint16(241), /* 380 */ uint16(19), uint16(59), uint16(216), uint16(217), uint16(223), uint16(252), uint16(115), uint16(116), uint16(117), uint16(118), - /* 390 */ uint16(73), uint16(120), uint16(26), uint16(71), uint16(193), uint16(22), uint16(193), uint16(231), uint16(81), uint16(128), - /* 400 */ uint16(138), uint16(139), uint16(269), uint16(81), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), - /* 410 */ uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(216), - /* 420 */ uint16(217), uint16(198), uint16(100), uint16(95), uint16(153), uint16(59), uint16(155), uint16(193), uint16(106), uint16(107), - /* 430 */ uint16(235), uint16(236), uint16(59), uint16(193), uint16(193), uint16(249), uint16(114), uint16(251), uint16(116), uint16(117), - /* 440 */ uint16(118), uint16(113), uint16(304), uint16(121), uint16(127), uint16(204), uint16(193), uint16(119), uint16(120), uint16(121), - /* 450 */ uint16(122), uint16(123), uint16(124), uint16(125), uint16(193), uint16(138), uint16(139), uint16(216), uint16(217), uint16(131), - /* 460 */ uint16(138), uint16(139), uint16(193), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), + /* 390 */ uint16(151), uint16(120), uint16(26), uint16(71), uint16(193), uint16(308), uint16(309), uint16(193), uint16(149), uint16(128), + /* 400 */ uint16(313), uint16(216), uint16(269), uint16(81), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), + /* 410 */ uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(253), + /* 420 */ uint16(216), uint16(217), uint16(100), uint16(95), uint16(153), uint16(59), uint16(155), uint16(261), uint16(106), uint16(107), + /* 430 */ uint16(25), uint16(193), uint16(101), uint16(193), uint16(193), uint16(231), uint16(114), uint16(25), uint16(116), uint16(117), + /* 440 */ uint16(118), uint16(113), uint16(304), uint16(121), uint16(193), uint16(204), uint16(59), uint16(119), uint16(120), uint16(121), + /* 450 */ uint16(122), uint16(123), uint16(124), uint16(125), uint16(216), uint16(217), uint16(193), uint16(216), uint16(217), uint16(131), + /* 460 */ uint16(138), uint16(139), uint16(230), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), /* 470 */ uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), - /* 480 */ uint16(239), uint16(240), uint16(116), uint16(117), uint16(118), uint16(76), uint16(193), uint16(193), uint16(19), uint16(116), - /* 490 */ uint16(117), uint16(118), uint16(23), uint16(252), uint16(253), uint16(193), uint16(87), uint16(204), uint16(89), uint16(238), - /* 500 */ uint16(193), uint16(92), uint16(268), uint16(262), uint16(281), uint16(203), uint16(193), uint16(205), uint16(285), uint16(216), + /* 480 */ uint16(239), uint16(240), uint16(116), uint16(117), uint16(118), uint16(76), uint16(193), uint16(23), uint16(19), uint16(25), + /* 490 */ uint16(22), uint16(253), uint16(23), uint16(252), uint16(253), uint16(108), uint16(87), uint16(204), uint16(89), uint16(261), + /* 500 */ uint16(198), uint16(92), uint16(261), uint16(116), uint16(117), uint16(118), uint16(193), uint16(306), uint16(307), uint16(216), /* 510 */ uint16(217), uint16(150), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), - /* 520 */ uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(193), uint16(193), uint16(216), - /* 530 */ uint16(217), uint16(19), uint16(239), uint16(240), uint16(59), uint16(23), uint16(106), uint16(107), uint16(108), uint16(109), - /* 540 */ uint16(110), uint16(111), uint16(112), uint16(113), uint16(231), uint16(252), uint16(253), uint16(193), uint16(308), uint16(309), - /* 550 */ uint16(193), uint16(145), uint16(59), uint16(313), uint16(145), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), + /* 520 */ uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(59), uint16(193), uint16(216), + /* 530 */ uint16(217), uint16(19), uint16(239), uint16(240), uint16(283), uint16(23), uint16(106), uint16(107), uint16(108), uint16(109), + /* 540 */ uint16(110), uint16(111), uint16(112), uint16(113), uint16(73), uint16(252), uint16(253), uint16(142), uint16(308), uint16(309), + /* 550 */ uint16(138), uint16(139), uint16(81), uint16(313), uint16(145), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), /* 560 */ uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), - /* 570 */ uint16(164), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), - /* 580 */ uint16(111), uint16(112), uint16(113), uint16(119), uint16(193), uint16(193), uint16(122), uint16(123), uint16(124), uint16(193), - /* 590 */ uint16(283), uint16(116), uint16(117), uint16(118), uint16(235), uint16(236), uint16(132), uint16(59), uint16(241), uint16(264), - /* 600 */ uint16(59), uint16(193), uint16(19), uint16(23), uint16(193), uint16(25), uint16(23), uint16(216), uint16(217), uint16(116), - /* 610 */ uint16(117), uint16(118), uint16(216), uint16(217), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), + /* 570 */ uint16(307), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), + /* 580 */ uint16(111), uint16(112), uint16(113), uint16(281), uint16(116), uint16(117), uint16(118), uint16(285), uint16(23), uint16(193), + /* 590 */ uint16(25), uint16(119), uint16(59), uint16(193), uint16(122), uint16(123), uint16(124), uint16(59), uint16(127), uint16(203), + /* 600 */ uint16(59), uint16(205), uint16(19), uint16(268), uint16(132), uint16(25), uint16(23), uint16(22), uint16(193), uint16(138), + /* 610 */ uint16(139), uint16(249), uint16(204), uint16(251), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), /* 620 */ uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(43), uint16(44), uint16(45), uint16(46), /* 630 */ uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), - /* 640 */ uint16(57), uint16(19), uint16(308), uint16(309), uint16(151), uint16(23), uint16(25), uint16(313), uint16(135), uint16(253), - /* 650 */ uint16(21), uint16(193), uint16(241), uint16(140), uint16(116), uint16(117), uint16(118), uint16(116), uint16(117), uint16(118), - /* 660 */ uint16(268), uint16(304), uint16(22), uint16(301), uint16(302), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), + /* 640 */ uint16(57), uint16(19), uint16(22), uint16(23), uint16(59), uint16(23), uint16(25), uint16(239), uint16(240), uint16(116), + /* 650 */ uint16(117), uint16(118), uint16(193), uint16(11), uint16(116), uint16(117), uint16(118), uint16(116), uint16(117), uint16(118), + /* 660 */ uint16(252), uint16(269), uint16(22), uint16(193), uint16(15), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), /* 670 */ uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), - /* 680 */ uint16(193), uint16(143), uint16(193), uint16(193), uint16(143), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), + /* 680 */ uint16(273), uint16(143), uint16(193), uint16(118), uint16(143), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), /* 690 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(76), uint16(118), uint16(59), - /* 700 */ uint16(292), uint16(211), uint16(212), uint16(216), uint16(217), uint16(216), uint16(217), uint16(73), uint16(193), uint16(80), - /* 710 */ uint16(89), uint16(25), uint16(19), uint16(92), uint16(193), uint16(304), uint16(23), uint16(22), uint16(231), uint16(193), - /* 720 */ uint16(231), uint16(193), uint16(22), uint16(143), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), + /* 700 */ uint16(241), uint16(116), uint16(117), uint16(118), uint16(304), uint16(216), uint16(217), uint16(292), uint16(143), uint16(60), + /* 710 */ uint16(89), uint16(241), uint16(19), uint16(92), uint16(193), uint16(193), uint16(23), uint16(22), uint16(311), uint16(312), + /* 720 */ uint16(231), uint16(101), uint16(22), uint16(143), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), /* 730 */ uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(43), uint16(44), uint16(45), uint16(46), /* 740 */ uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), - /* 750 */ uint16(57), uint16(19), uint16(123), uint16(193), uint16(59), uint16(23), uint16(116), uint16(117), uint16(118), uint16(59), - /* 760 */ uint16(193), uint16(127), uint16(128), uint16(129), uint16(306), uint16(307), uint16(210), uint16(211), uint16(212), uint16(193), - /* 770 */ uint16(22), uint16(111), uint16(112), uint16(113), uint16(284), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), + /* 750 */ uint16(57), uint16(19), uint16(193), uint16(193), uint16(59), uint16(23), uint16(116), uint16(117), uint16(118), uint16(59), + /* 760 */ uint16(201), uint16(21), uint16(241), uint16(304), uint16(22), uint16(206), uint16(127), uint16(128), uint16(129), uint16(193), + /* 770 */ uint16(128), uint16(129), uint16(235), uint16(236), uint16(304), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), /* 780 */ uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), - /* 790 */ uint16(161), uint16(193), uint16(216), uint16(217), uint16(268), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), - /* 800 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(59), uint16(193), uint16(193), - /* 810 */ uint16(193), uint16(116), uint16(117), uint16(118), uint16(216), uint16(217), uint16(116), uint16(117), uint16(118), uint16(304), - /* 820 */ uint16(239), uint16(240), uint16(19), uint16(263), uint16(138), uint16(139), uint16(23), uint16(211), uint16(212), uint16(231), - /* 830 */ uint16(263), uint16(216), uint16(217), uint16(252), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), + /* 790 */ uint16(22), uint16(193), uint16(216), uint16(217), uint16(193), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), + /* 800 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(231), uint16(193), uint16(193), + /* 810 */ uint16(193), uint16(116), uint16(117), uint16(118), uint16(216), uint16(217), uint16(116), uint16(117), uint16(118), uint16(226), + /* 820 */ uint16(80), uint16(193), uint16(19), uint16(235), uint16(236), uint16(304), uint16(23), uint16(211), uint16(212), uint16(231), + /* 830 */ uint16(204), uint16(216), uint16(217), uint16(205), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), /* 840 */ uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(43), uint16(44), uint16(45), uint16(46), /* 850 */ uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), - /* 860 */ uint16(57), uint16(19), uint16(193), uint16(11), uint16(116), uint16(117), uint16(118), uint16(240), uint16(253), uint16(193), - /* 870 */ uint16(201), uint16(239), uint16(240), uint16(193), uint16(134), uint16(206), uint16(136), uint16(137), uint16(193), uint16(252), - /* 880 */ uint16(193), uint16(264), uint16(193), uint16(193), uint16(252), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), + /* 860 */ uint16(57), uint16(19), uint16(193), uint16(123), uint16(76), uint16(239), uint16(240), uint16(193), uint16(253), uint16(239), + /* 870 */ uint16(240), uint16(239), uint16(240), uint16(193), uint16(106), uint16(107), uint16(193), uint16(89), uint16(252), uint16(193), + /* 880 */ uint16(92), uint16(59), uint16(252), uint16(141), uint16(252), uint16(43), uint16(44), uint16(45), uint16(46), uint16(47), /* 890 */ uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), - /* 900 */ uint16(284), uint16(216), uint16(217), uint16(216), uint16(217), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), - /* 910 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(193), uint16(231), uint16(193), - /* 920 */ uint16(187), uint16(188), uint16(189), uint16(190), uint16(127), uint16(128), uint16(129), uint16(238), uint16(195), uint16(193), - /* 930 */ uint16(197), uint16(16), uint16(19), uint16(7), uint16(8), uint16(9), uint16(193), uint16(204), uint16(253), uint16(193), - /* 940 */ uint16(216), uint16(217), uint16(216), uint16(217), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), + /* 900 */ uint16(284), uint16(161), uint16(216), uint16(217), uint16(193), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), + /* 910 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(231), uint16(193), uint16(16), + /* 920 */ uint16(187), uint16(188), uint16(189), uint16(190), uint16(7), uint16(8), uint16(9), uint16(309), uint16(195), uint16(25), + /* 930 */ uint16(197), uint16(313), uint16(19), uint16(127), uint16(128), uint16(129), uint16(262), uint16(204), uint16(22), uint16(117), + /* 940 */ uint16(24), uint16(216), uint16(217), uint16(263), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), /* 950 */ uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(43), uint16(44), uint16(45), uint16(46), /* 960 */ uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), - /* 970 */ uint16(57), uint16(213), uint16(239), uint16(240), uint16(193), uint16(76), uint16(19), uint16(188), uint16(232), uint16(190), - /* 980 */ uint16(128), uint16(129), uint16(292), uint16(193), uint16(195), uint16(252), uint16(197), uint16(46), uint16(89), uint16(138), - /* 990 */ uint16(139), uint16(92), uint16(77), uint16(204), uint16(79), uint16(193), uint16(269), uint16(216), uint16(217), uint16(266), + /* 970 */ uint16(57), uint16(193), uint16(239), uint16(240), uint16(193), uint16(59), uint16(19), uint16(188), uint16(253), uint16(190), + /* 980 */ uint16(77), uint16(226), uint16(79), uint16(193), uint16(195), uint16(252), uint16(197), uint16(193), uint16(19), uint16(301), + /* 990 */ uint16(302), uint16(193), uint16(193), uint16(204), uint16(216), uint16(217), uint16(226), uint16(216), uint16(217), uint16(266), /* 1000 */ uint16(204), uint16(159), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), /* 1010 */ uint16(53), uint16(54), uint16(55), uint16(56), uint16(57), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), /* 1020 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(12), uint16(239), uint16(240), - /* 1030 */ uint16(193), uint16(298), uint16(22), uint16(23), uint16(253), uint16(239), uint16(240), uint16(127), uint16(128), uint16(129), - /* 1040 */ uint16(238), uint16(252), uint16(27), uint16(193), uint16(286), uint16(204), uint16(193), uint16(204), uint16(252), uint16(291), - /* 1050 */ uint16(193), uint16(273), uint16(22), uint16(23), uint16(100), uint16(266), uint16(115), uint16(42), uint16(268), uint16(102), + /* 1030 */ uint16(232), uint16(298), uint16(238), uint16(117), uint16(253), uint16(239), uint16(240), uint16(238), uint16(259), uint16(260), + /* 1040 */ uint16(193), uint16(252), uint16(27), uint16(31), uint16(193), uint16(193), uint16(142), uint16(204), uint16(252), uint16(193), + /* 1050 */ uint16(193), uint16(39), uint16(262), uint16(193), uint16(100), uint16(266), uint16(278), uint16(42), uint16(204), uint16(102), /* 1060 */ uint16(103), uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), - /* 1070 */ uint16(113), uint16(117), uint16(159), uint16(216), uint16(217), uint16(121), uint16(161), uint16(19), uint16(63), uint16(193), - /* 1080 */ uint16(239), uint16(240), uint16(239), uint16(240), uint16(12), uint16(208), uint16(209), uint16(298), uint16(73), uint16(311), - /* 1090 */ uint16(312), uint16(238), uint16(19), uint16(252), uint16(25), uint16(252), uint16(22), uint16(24), uint16(24), uint16(27), - /* 1100 */ uint16(193), uint16(264), uint16(216), uint16(217), uint16(46), uint16(208), uint16(209), uint16(153), uint16(154), uint16(155), - /* 1110 */ uint16(253), uint16(101), uint16(19), uint16(23), uint16(42), uint16(25), uint16(43), uint16(44), uint16(45), uint16(46), + /* 1070 */ uint16(113), uint16(117), uint16(159), uint16(216), uint16(217), uint16(121), uint16(216), uint16(217), uint16(63), uint16(193), + /* 1080 */ uint16(193), uint16(193), uint16(239), uint16(240), uint16(115), uint16(116), uint16(193), uint16(298), uint16(73), uint16(238), + /* 1090 */ uint16(238), uint16(231), uint16(19), uint16(239), uint16(240), uint16(252), uint16(22), uint16(24), uint16(211), uint16(212), + /* 1100 */ uint16(24), uint16(193), uint16(216), uint16(217), uint16(216), uint16(217), uint16(252), uint16(153), uint16(154), uint16(155), + /* 1110 */ uint16(253), uint16(16), uint16(19), uint16(144), uint16(213), uint16(268), uint16(43), uint16(44), uint16(45), uint16(46), /* 1120 */ uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), - /* 1130 */ uint16(57), uint16(101), uint16(19), uint16(59), uint16(25), uint16(63), uint16(43), uint16(44), uint16(45), uint16(46), + /* 1130 */ uint16(57), uint16(238), uint16(19), uint16(59), uint16(193), uint16(59), uint16(43), uint16(44), uint16(45), uint16(46), /* 1140 */ uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), - /* 1150 */ uint16(57), uint16(22), uint16(23), uint16(115), uint16(25), uint16(24), uint16(43), uint16(44), uint16(45), uint16(46), + /* 1150 */ uint16(57), uint16(22), uint16(23), uint16(193), uint16(25), uint16(193), uint16(43), uint16(44), uint16(45), uint16(46), /* 1160 */ uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), uint16(54), uint16(55), uint16(56), - /* 1170 */ uint16(57), uint16(22), uint16(23), uint16(115), uint16(25), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), - /* 1180 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(118), uint16(150), uint16(131), - /* 1190 */ uint16(59), uint16(117), uint16(22), uint16(273), uint16(193), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), - /* 1200 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(204), uint16(66), uint16(204), - /* 1210 */ uint16(35), uint16(204), uint16(143), uint16(213), uint16(193), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), - /* 1220 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(85), uint16(193), uint16(59), - /* 1230 */ uint16(101), uint16(311), uint16(312), uint16(16), uint16(193), uint16(19), uint16(94), uint16(216), uint16(217), uint16(238), - /* 1240 */ uint16(193), uint16(66), uint16(239), uint16(240), uint16(239), uint16(240), uint16(239), uint16(240), uint16(117), uint16(74), - /* 1250 */ uint16(101), uint16(216), uint16(217), uint16(193), uint16(193), uint16(252), uint16(193), uint16(252), uint16(149), uint16(252), + /* 1170 */ uint16(57), uint16(284), uint16(77), uint16(193), uint16(79), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), + /* 1180 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(286), uint16(193), uint16(193), + /* 1190 */ uint16(193), uint16(117), uint16(291), uint16(117), uint16(232), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), + /* 1200 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(204), uint16(22), uint16(23), + /* 1210 */ uint16(66), uint16(25), uint16(216), uint16(217), uint16(35), uint16(102), uint16(103), uint16(104), uint16(105), uint16(106), + /* 1220 */ uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), uint16(193), uint16(268), uint16(85), + /* 1230 */ uint16(101), uint16(193), uint16(309), uint16(309), uint16(240), uint16(19), uint16(313), uint16(313), uint16(94), uint16(208), + /* 1240 */ uint16(209), uint16(193), uint16(239), uint16(240), uint16(193), uint16(66), uint16(252), uint16(19), uint16(268), uint16(244), + /* 1250 */ uint16(216), uint16(217), uint16(193), uint16(74), uint16(213), uint16(252), uint16(161), uint16(19), uint16(263), uint16(254), /* 1260 */ uint16(44), uint16(45), uint16(46), uint16(47), uint16(48), uint16(49), uint16(50), uint16(51), uint16(52), uint16(53), - /* 1270 */ uint16(54), uint16(55), uint16(56), uint16(57), uint16(193), uint16(193), uint16(193), uint16(5), uint16(59), uint16(216), - /* 1280 */ uint16(217), uint16(25), uint16(10), uint16(11), uint16(12), uint16(13), uint16(14), uint16(117), uint16(146), uint16(17), - /* 1290 */ uint16(193), uint16(291), uint16(193), uint16(232), uint16(77), uint16(76), uint16(79), uint16(216), uint16(217), uint16(216), - /* 1300 */ uint16(217), uint16(31), uint16(30), uint16(309), uint16(32), uint16(130), uint16(87), uint16(313), uint16(89), uint16(39), - /* 1310 */ uint16(193), uint16(92), uint16(40), uint16(216), uint16(217), uint16(216), uint16(217), uint16(108), uint16(102), uint16(103), + /* 1270 */ uint16(54), uint16(55), uint16(56), uint16(57), uint16(193), uint16(216), uint16(217), uint16(5), uint16(59), uint16(193), + /* 1280 */ uint16(19), uint16(244), uint16(10), uint16(11), uint16(12), uint16(13), uint16(14), uint16(101), uint16(309), uint16(17), + /* 1290 */ uint16(146), uint16(254), uint16(313), uint16(193), uint16(193), uint16(76), uint16(115), uint16(216), uint16(217), uint16(309), + /* 1300 */ uint16(12), uint16(263), uint16(30), uint16(313), uint16(32), uint16(46), uint16(87), uint16(46), uint16(89), uint16(130), + /* 1310 */ uint16(193), uint16(92), uint16(40), uint16(22), uint16(263), uint16(27), uint16(216), uint16(217), uint16(102), uint16(103), /* 1320 */ uint16(104), uint16(105), uint16(106), uint16(107), uint16(108), uint16(109), uint16(110), uint16(111), uint16(112), uint16(113), - /* 1330 */ uint16(299), uint16(300), uint16(193), uint16(216), uint16(217), uint16(116), uint16(117), uint16(118), uint16(19), uint16(20), - /* 1340 */ uint16(193), uint16(22), uint16(70), uint16(309), uint16(135), uint16(193), uint16(264), uint16(313), uint16(193), uint16(140), - /* 1350 */ uint16(78), uint16(193), uint16(226), uint16(81), uint16(59), uint16(36), uint16(193), uint16(309), uint16(193), uint16(29), - /* 1360 */ uint16(193), uint16(313), uint16(193), uint16(33), uint16(145), uint16(193), uint16(59), uint16(48), uint16(216), uint16(217), - /* 1370 */ uint16(98), uint16(216), uint16(217), uint16(193), uint16(216), uint16(217), uint16(193), uint16(244), uint16(59), uint16(216), - /* 1380 */ uint16(217), uint16(216), uint16(217), uint16(216), uint16(217), uint16(216), uint16(217), uint16(254), uint16(216), uint16(217), - /* 1390 */ uint16(71), uint16(193), uint16(244), uint16(193), uint16(193), uint16(65), uint16(216), uint16(217), uint16(193), uint16(216), - /* 1400 */ uint16(217), uint16(145), uint16(254), uint16(244), uint16(85), uint16(133), uint16(15), uint16(100), uint16(193), uint16(90), - /* 1410 */ uint16(138), uint16(139), uint16(117), uint16(254), uint16(216), uint16(217), uint16(216), uint16(217), uint16(193), uint16(100), - /* 1420 */ uint16(193), uint16(216), uint16(217), uint16(116), uint16(117), uint16(106), uint16(107), uint16(19), uint16(121), uint16(193), - /* 1430 */ uint16(193), uint16(216), uint16(217), uint16(114), uint16(162), uint16(116), uint16(117), uint16(118), uint16(244), uint16(244), - /* 1440 */ uint16(121), uint16(216), uint16(217), uint16(216), uint16(217), uint16(193), uint16(309), uint16(129), uint16(254), uint16(254), - /* 1450 */ uint16(313), uint16(60), uint16(216), uint16(217), uint16(19), uint16(256), uint16(257), uint16(193), uint16(120), uint16(121), - /* 1460 */ uint16(153), uint16(154), uint16(155), uint16(149), uint16(150), uint16(25), uint16(24), uint16(99), uint16(216), uint16(217), - /* 1470 */ uint16(152), uint16(193), uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), uint16(0), uint16(1), uint16(2), - /* 1480 */ uint16(216), uint16(217), uint16(5), uint16(22), uint16(158), uint16(24), uint16(160), uint16(10), uint16(11), uint16(12), - /* 1490 */ uint16(13), uint16(14), uint16(193), uint16(23), uint16(17), uint16(25), uint16(193), uint16(19), uint16(20), uint16(193), - /* 1500 */ uint16(22), uint16(133), uint16(193), uint16(22), uint16(22), uint16(193), uint16(22), uint16(30), uint16(193), uint16(32), - /* 1510 */ uint16(19), uint16(20), uint16(129), uint16(22), uint16(36), uint16(216), uint16(217), uint16(40), uint16(193), uint16(216), - /* 1520 */ uint16(217), uint16(193), uint16(216), uint16(217), uint16(116), uint16(216), uint16(217), uint16(36), uint16(216), uint16(217), - /* 1530 */ uint16(193), uint16(216), uint16(217), uint16(193), uint16(53), uint16(152), uint16(193), uint16(59), uint16(23), uint16(19), - /* 1540 */ uint16(25), uint16(216), uint16(217), uint16(61), uint16(216), uint16(217), uint16(23), uint16(70), uint16(25), uint16(71), - /* 1550 */ uint16(59), uint16(116), uint16(193), uint16(216), uint16(217), uint16(78), uint16(216), uint16(217), uint16(81), uint16(216), - /* 1560 */ uint16(217), uint16(59), uint16(71), uint16(85), uint16(193), uint16(23), uint16(193), uint16(25), uint16(90), uint16(23), - /* 1570 */ uint16(23), uint16(25), uint16(25), uint16(7), uint16(8), uint16(98), uint16(85), uint16(193), uint16(100), uint16(193), - /* 1580 */ uint16(59), uint16(90), uint16(142), uint16(141), uint16(106), uint16(107), uint16(193), uint16(216), uint16(217), uint16(216), - /* 1590 */ uint16(217), uint16(100), uint16(114), uint16(193), uint16(116), uint16(117), uint16(118), uint16(106), uint16(107), uint16(121), - /* 1600 */ uint16(216), uint16(217), uint16(216), uint16(217), uint16(193), uint16(114), uint16(193), uint16(116), uint16(117), uint16(118), - /* 1610 */ uint16(133), uint16(23), uint16(121), uint16(25), uint16(121), uint16(138), uint16(139), uint16(97), uint16(23), uint16(117), - /* 1620 */ uint16(25), uint16(23), uint16(193), uint16(25), uint16(131), uint16(141), uint16(193), uint16(216), uint16(217), uint16(59), - /* 1630 */ uint16(193), uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), uint16(226), uint16(193), uint16(117), uint16(162), - /* 1640 */ uint16(23), uint16(23), uint16(25), uint16(25), uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), uint16(1), - /* 1650 */ uint16(2), uint16(83), uint16(84), uint16(5), uint16(19), uint16(20), uint16(226), uint16(22), uint16(10), uint16(11), - /* 1660 */ uint16(12), uint16(13), uint16(14), uint16(258), uint16(153), uint16(17), uint16(155), uint16(153), uint16(23), uint16(155), - /* 1670 */ uint16(25), uint16(36), uint16(23), uint16(193), uint16(25), uint16(255), uint16(193), uint16(236), uint16(30), uint16(193), - /* 1680 */ uint16(32), uint16(19), uint16(20), uint16(193), uint16(22), uint16(193), uint16(288), uint16(117), uint16(40), uint16(193), - /* 1690 */ uint16(318), uint16(193), uint16(193), uint16(193), uint16(59), uint16(242), uint16(193), uint16(193), uint16(36), uint16(193), - /* 1700 */ uint16(193), uint16(193), uint16(287), uint16(255), uint16(255), uint16(255), uint16(71), uint16(255), uint16(243), uint16(214), - /* 1710 */ uint16(191), uint16(297), uint16(267), uint16(245), uint16(271), uint16(259), uint16(259), uint16(293), uint16(70), uint16(246), - /* 1720 */ uint16(246), uint16(59), uint16(267), uint16(229), uint16(245), uint16(271), uint16(78), uint16(293), uint16(259), uint16(81), - /* 1730 */ uint16(271), uint16(271), uint16(220), uint16(71), uint16(225), uint16(100), uint16(219), uint16(219), uint16(249), uint16(196), - /* 1740 */ uint16(243), uint16(106), uint16(107), uint16(108), uint16(219), uint16(60), uint16(98), uint16(280), uint16(297), uint16(114), - /* 1750 */ uint16(249), uint16(116), uint16(117), uint16(118), uint16(141), uint16(245), uint16(121), uint16(200), uint16(200), uint16(297), - /* 1760 */ uint16(38), uint16(200), uint16(100), uint16(151), uint16(150), uint16(294), uint16(294), uint16(22), uint16(106), uint16(107), - /* 1770 */ uint16(283), uint16(43), uint16(234), uint16(18), uint16(237), uint16(200), uint16(114), uint16(272), uint16(116), uint16(117), - /* 1780 */ uint16(118), uint16(133), uint16(237), uint16(121), uint16(18), uint16(237), uint16(138), uint16(139), uint16(153), uint16(154), - /* 1790 */ uint16(155), uint16(156), uint16(157), uint16(237), uint16(270), uint16(199), uint16(19), uint16(20), uint16(246), uint16(22), - /* 1800 */ uint16(149), uint16(272), uint16(272), uint16(270), uint16(200), uint16(246), uint16(234), uint16(234), uint16(246), uint16(246), - /* 1810 */ uint16(162), uint16(158), uint16(290), uint16(36), uint16(199), uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), - /* 1820 */ uint16(62), uint16(289), uint16(200), uint16(199), uint16(22), uint16(200), uint16(221), uint16(199), uint16(221), uint16(200), - /* 1830 */ uint16(199), uint16(115), uint16(64), uint16(227), uint16(218), uint16(22), uint16(59), uint16(218), uint16(218), uint16(126), - /* 1840 */ uint16(165), uint16(24), uint16(113), uint16(312), uint16(218), uint16(224), uint16(305), uint16(224), uint16(71), uint16(282), - /* 1850 */ uint16(144), uint16(221), uint16(220), uint16(282), uint16(218), uint16(218), uint16(218), uint16(115), uint16(261), uint16(260), - /* 1860 */ uint16(227), uint16(221), uint16(261), uint16(260), uint16(200), uint16(91), uint16(317), uint16(317), uint16(82), uint16(261), - /* 1870 */ uint16(260), uint16(148), uint16(261), uint16(22), uint16(265), uint16(145), uint16(200), uint16(100), uint16(158), uint16(277), - /* 1880 */ uint16(147), uint16(146), uint16(25), uint16(106), uint16(107), uint16(202), uint16(13), uint16(260), uint16(194), uint16(250), - /* 1890 */ uint16(249), uint16(114), uint16(248), uint16(116), uint16(117), uint16(118), uint16(250), uint16(247), uint16(121), uint16(265), - /* 1900 */ uint16(246), uint16(194), uint16(6), uint16(192), uint16(192), uint16(207), uint16(192), uint16(207), uint16(213), uint16(213), - /* 1910 */ uint16(213), uint16(222), uint16(213), uint16(222), uint16(4), uint16(214), uint16(214), uint16(213), uint16(3), uint16(22), - /* 1920 */ uint16(163), uint16(279), uint16(207), uint16(15), uint16(23), uint16(16), uint16(23), uint16(139), uint16(130), uint16(151), - /* 1930 */ uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), uint16(142), uint16(25), uint16(24), uint16(20), uint16(144), - /* 1940 */ uint16(16), uint16(1), uint16(142), uint16(61), uint16(130), uint16(130), uint16(303), uint16(151), uint16(53), uint16(37), - /* 1950 */ uint16(303), uint16(53), uint16(300), uint16(53), uint16(130), uint16(53), uint16(116), uint16(34), uint16(1), uint16(141), - /* 1960 */ uint16(5), uint16(22), uint16(115), uint16(25), uint16(161), uint16(75), uint16(41), uint16(68), uint16(141), uint16(115), - /* 1970 */ uint16(24), uint16(20), uint16(68), uint16(19), uint16(131), uint16(125), uint16(23), uint16(96), uint16(22), uint16(59), - /* 1980 */ uint16(22), uint16(67), uint16(22), uint16(22), uint16(67), uint16(22), uint16(24), uint16(28), uint16(67), uint16(37), - /* 1990 */ uint16(23), uint16(149), uint16(22), uint16(25), uint16(23), uint16(23), uint16(23), uint16(23), uint16(22), uint16(141), - /* 2000 */ uint16(23), uint16(23), uint16(97), uint16(116), uint16(22), uint16(143), uint16(25), uint16(88), uint16(75), uint16(34), - /* 2010 */ uint16(44), uint16(75), uint16(86), uint16(34), uint16(34), uint16(93), uint16(23), uint16(34), uint16(34), uint16(34), - /* 2020 */ uint16(22), uint16(24), uint16(34), uint16(22), uint16(25), uint16(25), uint16(23), uint16(23), uint16(23), uint16(23), - /* 2030 */ uint16(23), uint16(11), uint16(23), uint16(25), uint16(22), uint16(22), uint16(25), uint16(23), uint16(23), uint16(22), - /* 2040 */ uint16(22), uint16(135), uint16(15), uint16(1), uint16(25), uint16(23), uint16(1), uint16(319), uint16(141), uint16(319), - /* 2050 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(141), uint16(319), uint16(319), - /* 2060 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(141), uint16(141), - /* 2070 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), + /* 1330 */ uint16(42), uint16(150), uint16(291), uint16(216), uint16(217), uint16(116), uint16(117), uint16(118), uint16(19), uint16(20), + /* 1340 */ uint16(193), uint16(22), uint16(70), uint16(260), uint16(116), uint16(193), uint16(24), uint16(264), uint16(193), uint16(263), + /* 1350 */ uint16(78), uint16(63), uint16(61), uint16(81), uint16(116), uint16(36), uint16(193), uint16(260), uint16(193), uint16(29), + /* 1360 */ uint16(193), uint16(264), uint16(193), uint16(33), uint16(145), uint16(193), uint16(59), uint16(48), uint16(216), uint16(217), + /* 1370 */ uint16(98), uint16(216), uint16(217), uint16(193), uint16(115), uint16(193), uint16(115), uint16(193), uint16(59), uint16(216), + /* 1380 */ uint16(217), uint16(216), uint16(217), uint16(216), uint16(217), uint16(216), uint16(217), uint16(255), uint16(216), uint16(217), + /* 1390 */ uint16(71), uint16(193), uint16(131), uint16(193), uint16(25), uint16(65), uint16(216), uint16(217), uint16(216), uint16(217), + /* 1400 */ uint16(216), uint16(217), uint16(208), uint16(209), uint16(85), uint16(133), uint16(193), uint16(100), uint16(193), uint16(90), + /* 1410 */ uint16(138), uint16(139), uint16(138), uint16(139), uint16(216), uint16(217), uint16(216), uint16(217), uint16(193), uint16(100), + /* 1420 */ uint16(193), uint16(108), uint16(135), uint16(116), uint16(117), uint16(106), uint16(107), uint16(140), uint16(121), uint16(216), + /* 1430 */ uint16(217), uint16(216), uint16(217), uint16(114), uint16(162), uint16(116), uint16(117), uint16(118), uint16(299), uint16(300), + /* 1440 */ uint16(121), uint16(216), uint16(217), uint16(216), uint16(217), uint16(193), uint16(244), uint16(193), uint16(135), uint16(244), + /* 1450 */ uint16(193), uint16(256), uint16(257), uint16(140), uint16(244), uint16(193), uint16(254), uint16(193), uint16(193), uint16(254), + /* 1460 */ uint16(153), uint16(154), uint16(155), uint16(141), uint16(254), uint16(149), uint16(150), uint16(258), uint16(216), uint16(217), + /* 1470 */ uint16(216), uint16(217), uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), uint16(0), uint16(1), uint16(2), + /* 1480 */ uint16(216), uint16(217), uint16(5), uint16(115), uint16(158), uint16(193), uint16(160), uint16(10), uint16(11), uint16(12), + /* 1490 */ uint16(13), uint16(14), uint16(193), uint16(59), uint16(17), uint16(126), uint16(193), uint16(19), uint16(20), uint16(129), + /* 1500 */ uint16(22), uint16(193), uint16(22), uint16(22), uint16(24), uint16(193), uint16(23), uint16(30), uint16(25), uint16(32), + /* 1510 */ uint16(19), uint16(20), uint16(144), uint16(22), uint16(36), uint16(216), uint16(217), uint16(40), uint16(193), uint16(216), + /* 1520 */ uint16(217), uint16(193), uint16(152), uint16(129), uint16(216), uint16(217), uint16(193), uint16(36), uint16(216), uint16(217), + /* 1530 */ uint16(193), uint16(99), uint16(193), uint16(193), uint16(53), uint16(193), uint16(193), uint16(59), uint16(23), uint16(193), + /* 1540 */ uint16(25), uint16(216), uint16(217), uint16(193), uint16(216), uint16(217), uint16(152), uint16(70), uint16(59), uint16(71), + /* 1550 */ uint16(59), uint16(117), uint16(193), uint16(216), uint16(217), uint16(78), uint16(216), uint16(217), uint16(81), uint16(216), + /* 1560 */ uint16(217), uint16(318), uint16(71), uint16(85), uint16(193), uint16(133), uint16(193), uint16(193), uint16(90), uint16(23), + /* 1570 */ uint16(23), uint16(25), uint16(25), uint16(120), uint16(121), uint16(98), uint16(85), uint16(193), uint16(100), uint16(193), + /* 1580 */ uint16(23), uint16(90), uint16(25), uint16(121), uint16(106), uint16(107), uint16(19), uint16(216), uint16(217), uint16(216), + /* 1590 */ uint16(217), uint16(100), uint16(114), uint16(131), uint16(116), uint16(117), uint16(118), uint16(106), uint16(107), uint16(121), + /* 1600 */ uint16(216), uint16(217), uint16(216), uint16(217), uint16(193), uint16(114), uint16(117), uint16(116), uint16(117), uint16(118), + /* 1610 */ uint16(133), uint16(193), uint16(121), uint16(193), uint16(193), uint16(138), uint16(139), uint16(193), uint16(23), uint16(193), + /* 1620 */ uint16(25), uint16(23), uint16(23), uint16(25), uint16(25), uint16(7), uint16(8), uint16(216), uint16(217), uint16(193), + /* 1630 */ uint16(193), uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), uint16(216), uint16(217), uint16(193), uint16(162), + /* 1640 */ uint16(216), uint16(217), uint16(216), uint16(217), uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), uint16(1), + /* 1650 */ uint16(2), uint16(193), uint16(193), uint16(5), uint16(19), uint16(20), uint16(59), uint16(22), uint16(10), uint16(11), + /* 1660 */ uint16(12), uint16(13), uint16(14), uint16(193), uint16(97), uint16(17), uint16(193), uint16(23), uint16(193), uint16(25), + /* 1670 */ uint16(288), uint16(36), uint16(193), uint16(242), uint16(216), uint16(217), uint16(236), uint16(23), uint16(30), uint16(25), + /* 1680 */ uint16(32), uint16(19), uint16(20), uint16(23), uint16(22), uint16(25), uint16(216), uint16(217), uint16(40), uint16(216), + /* 1690 */ uint16(217), uint16(216), uint16(217), uint16(193), uint16(59), uint16(216), uint16(217), uint16(193), uint16(36), uint16(83), + /* 1700 */ uint16(84), uint16(153), uint16(153), uint16(155), uint16(155), uint16(23), uint16(71), uint16(25), uint16(23), uint16(193), + /* 1710 */ uint16(25), uint16(193), uint16(193), uint16(193), uint16(117), uint16(193), uint16(193), uint16(193), uint16(70), uint16(193), + /* 1720 */ uint16(193), uint16(59), uint16(193), uint16(255), uint16(255), uint16(287), uint16(78), uint16(255), uint16(243), uint16(81), + /* 1730 */ uint16(191), uint16(255), uint16(297), uint16(71), uint16(271), uint16(100), uint16(293), uint16(245), uint16(267), uint16(214), + /* 1740 */ uint16(246), uint16(106), uint16(107), uint16(108), uint16(246), uint16(271), uint16(98), uint16(245), uint16(293), uint16(114), + /* 1750 */ uint16(220), uint16(116), uint16(117), uint16(118), uint16(267), uint16(271), uint16(121), uint16(271), uint16(225), uint16(219), + /* 1760 */ uint16(229), uint16(219), uint16(100), uint16(219), uint16(259), uint16(259), uint16(259), uint16(259), uint16(106), uint16(107), + /* 1770 */ uint16(249), uint16(196), uint16(60), uint16(280), uint16(141), uint16(243), uint16(114), uint16(249), uint16(116), uint16(117), + /* 1780 */ uint16(118), uint16(133), uint16(245), uint16(121), uint16(200), uint16(297), uint16(138), uint16(139), uint16(153), uint16(154), + /* 1790 */ uint16(155), uint16(156), uint16(157), uint16(297), uint16(200), uint16(38), uint16(19), uint16(20), uint16(151), uint16(22), + /* 1800 */ uint16(200), uint16(150), uint16(140), uint16(294), uint16(294), uint16(22), uint16(272), uint16(43), uint16(234), uint16(18), + /* 1810 */ uint16(162), uint16(270), uint16(200), uint16(36), uint16(237), uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), + /* 1820 */ uint16(237), uint16(283), uint16(237), uint16(237), uint16(18), uint16(199), uint16(149), uint16(246), uint16(272), uint16(270), + /* 1830 */ uint16(272), uint16(200), uint16(158), uint16(246), uint16(246), uint16(234), uint16(59), uint16(234), uint16(246), uint16(199), + /* 1840 */ uint16(290), uint16(62), uint16(289), uint16(200), uint16(199), uint16(22), uint16(221), uint16(115), uint16(71), uint16(200), + /* 1850 */ uint16(200), uint16(199), uint16(199), uint16(221), uint16(218), uint16(218), uint16(19), uint16(20), uint16(64), uint16(22), + /* 1860 */ uint16(218), uint16(227), uint16(22), uint16(224), uint16(126), uint16(224), uint16(165), uint16(221), uint16(24), uint16(305), + /* 1870 */ uint16(200), uint16(113), uint16(312), uint16(36), uint16(218), uint16(220), uint16(218), uint16(100), uint16(282), uint16(218), + /* 1880 */ uint16(91), uint16(218), uint16(317), uint16(106), uint16(107), uint16(221), uint16(227), uint16(282), uint16(317), uint16(82), + /* 1890 */ uint16(148), uint16(114), uint16(265), uint16(116), uint16(117), uint16(118), uint16(59), uint16(145), uint16(121), uint16(22), + /* 1900 */ uint16(277), uint16(158), uint16(200), uint16(265), uint16(25), uint16(202), uint16(147), uint16(250), uint16(71), uint16(279), + /* 1910 */ uint16(13), uint16(146), uint16(194), uint16(194), uint16(249), uint16(248), uint16(250), uint16(140), uint16(247), uint16(246), + /* 1920 */ uint16(6), uint16(192), uint16(192), uint16(192), uint16(303), uint16(303), uint16(213), uint16(207), uint16(300), uint16(213), + /* 1930 */ uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), uint16(213), uint16(213), uint16(100), uint16(213), uint16(222), + /* 1940 */ uint16(207), uint16(214), uint16(214), uint16(106), uint16(107), uint16(4), uint16(222), uint16(207), uint16(3), uint16(22), + /* 1950 */ uint16(163), uint16(114), uint16(15), uint16(116), uint16(117), uint16(118), uint16(16), uint16(23), uint16(121), uint16(23), + /* 1960 */ uint16(139), uint16(151), uint16(130), uint16(25), uint16(142), uint16(16), uint16(24), uint16(20), uint16(144), uint16(1), + /* 1970 */ uint16(142), uint16(130), uint16(130), uint16(61), uint16(53), uint16(53), uint16(37), uint16(151), uint16(53), uint16(53), + /* 1980 */ uint16(130), uint16(116), uint16(34), uint16(1), uint16(141), uint16(5), uint16(22), uint16(115), uint16(161), uint16(141), + /* 1990 */ uint16(153), uint16(154), uint16(155), uint16(156), uint16(157), uint16(25), uint16(68), uint16(68), uint16(75), uint16(41), + /* 2000 */ uint16(115), uint16(24), uint16(131), uint16(20), uint16(19), uint16(125), uint16(22), uint16(96), uint16(22), uint16(22), + /* 2010 */ uint16(67), uint16(23), uint16(22), uint16(67), uint16(59), uint16(24), uint16(22), uint16(28), uint16(67), uint16(23), + /* 2020 */ uint16(22), uint16(22), uint16(149), uint16(23), uint16(23), uint16(23), uint16(116), uint16(23), uint16(25), uint16(37), + /* 2030 */ uint16(97), uint16(141), uint16(23), uint16(23), uint16(22), uint16(143), uint16(25), uint16(75), uint16(88), uint16(34), + /* 2040 */ uint16(34), uint16(34), uint16(34), uint16(86), uint16(75), uint16(93), uint16(23), uint16(34), uint16(22), uint16(34), + /* 2050 */ uint16(25), uint16(24), uint16(34), uint16(25), uint16(23), uint16(142), uint16(23), uint16(142), uint16(44), uint16(23), + /* 2060 */ uint16(23), uint16(23), uint16(11), uint16(23), uint16(25), uint16(22), uint16(22), uint16(22), uint16(15), uint16(23), + /* 2070 */ uint16(23), uint16(22), uint16(22), uint16(25), uint16(1), uint16(1), uint16(141), uint16(25), uint16(23), uint16(135), /* 2080 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), - /* 2090 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), + /* 2090 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(141), uint16(141), uint16(319), uint16(141), uint16(319), uint16(319), /* 2100 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), /* 2110 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), /* 2120 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), @@ -189181,177 +191362,180 @@ var yy_lookahead = [2255]uint16{ /* 2220 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), /* 2230 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), /* 2240 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), - /* 2250 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162203:25 */ -var yy_shift_ofst = [574]uint16{ - /* 0 */ uint16(1648), uint16(1477), uint16(1272), uint16(322), uint16(322), uint16(262), uint16(1319), uint16(1478), uint16(1491), uint16(1662), - /* 10 */ uint16(1662), uint16(1662), uint16(317), uint16(0), uint16(0), uint16(214), uint16(1093), uint16(1662), uint16(1662), uint16(1662), - /* 20 */ uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), - /* 30 */ uint16(271), uint16(271), uint16(1219), uint16(1219), uint16(216), uint16(88), uint16(262), uint16(262), uint16(262), uint16(262), - /* 40 */ uint16(262), uint16(40), uint16(111), uint16(258), uint16(361), uint16(469), uint16(512), uint16(583), uint16(622), uint16(693), + /* 2250 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), + /* 2260 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), + /* 2270 */ uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), uint16(319), + /* 2280 */ uint16(319), uint16(319), uint16(319), +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:164231:25 */ +var yy_shift_ofst = [576]uint16{ + /* 0 */ uint16(1648), uint16(1477), uint16(1272), uint16(322), uint16(322), uint16(1), uint16(1319), uint16(1478), uint16(1491), uint16(1837), + /* 10 */ uint16(1837), uint16(1837), uint16(471), uint16(0), uint16(0), uint16(214), uint16(1093), uint16(1837), uint16(1837), uint16(1837), + /* 20 */ uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), + /* 30 */ uint16(271), uint16(271), uint16(1219), uint16(1219), uint16(216), uint16(88), uint16(1), uint16(1), uint16(1), uint16(1), + /* 40 */ uint16(1), uint16(40), uint16(111), uint16(258), uint16(361), uint16(469), uint16(512), uint16(583), uint16(622), uint16(693), /* 50 */ uint16(732), uint16(803), uint16(842), uint16(913), uint16(1073), uint16(1093), uint16(1093), uint16(1093), uint16(1093), uint16(1093), /* 60 */ uint16(1093), uint16(1093), uint16(1093), uint16(1093), uint16(1093), uint16(1093), uint16(1093), uint16(1093), uint16(1093), uint16(1093), /* 70 */ uint16(1093), uint16(1093), uint16(1093), uint16(1113), uint16(1093), uint16(1216), uint16(957), uint16(957), uint16(1635), uint16(1662), - /* 80 */ uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), - /* 90 */ uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), - /* 100 */ uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), - /* 110 */ uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1777), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), - /* 120 */ uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(1662), uint16(137), uint16(181), - /* 130 */ uint16(181), uint16(181), uint16(181), uint16(181), uint16(94), uint16(430), uint16(66), uint16(65), uint16(112), uint16(366), - /* 140 */ uint16(475), uint16(475), uint16(629), uint16(1058), uint16(475), uint16(475), uint16(125), uint16(125), uint16(475), uint16(686), - /* 150 */ uint16(686), uint16(686), uint16(660), uint16(686), uint16(57), uint16(184), uint16(184), uint16(77), uint16(77), uint16(2070), - /* 160 */ uint16(2070), uint16(328), uint16(328), uint16(328), uint16(493), uint16(373), uint16(373), uint16(373), uint16(373), uint16(1015), - /* 170 */ uint16(1015), uint16(409), uint16(366), uint16(1129), uint16(1149), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), - /* 180 */ uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), - /* 190 */ uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(621), uint16(621), uint16(475), uint16(852), uint16(899), - /* 200 */ uint16(899), uint16(1295), uint16(1295), uint16(406), uint16(851), uint16(2070), uint16(2070), uint16(2070), uint16(2070), uint16(2070), - /* 210 */ uint16(2070), uint16(2070), uint16(1307), uint16(954), uint16(954), uint16(640), uint16(464), uint16(695), uint16(238), uint16(700), - /* 220 */ uint16(538), uint16(541), uint16(748), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), - /* 230 */ uint16(475), uint16(475), uint16(475), uint16(634), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), - /* 240 */ uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(1175), uint16(1175), uint16(1175), uint16(475), - /* 250 */ uint16(475), uint16(475), uint16(580), uint16(475), uint16(475), uint16(475), uint16(1074), uint16(1142), uint16(475), uint16(475), - /* 260 */ uint16(1072), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(475), uint16(797), - /* 270 */ uint16(1330), uint16(740), uint16(1131), uint16(1131), uint16(1131), uint16(1131), uint16(1069), uint16(740), uint16(740), uint16(1209), - /* 280 */ uint16(167), uint16(926), uint16(1391), uint16(1038), uint16(1314), uint16(187), uint16(1408), uint16(1314), uint16(1408), uint16(1435), - /* 290 */ uint16(1109), uint16(1038), uint16(1038), uint16(1109), uint16(1038), uint16(187), uint16(1435), uint16(227), uint16(1090), uint16(941), - /* 300 */ uint16(1270), uint16(1270), uint16(1270), uint16(1408), uint16(1256), uint16(1256), uint16(1326), uint16(1440), uint16(513), uint16(1461), - /* 310 */ uint16(1685), uint16(1685), uint16(1613), uint16(1613), uint16(1722), uint16(1722), uint16(1613), uint16(1612), uint16(1614), uint16(1745), - /* 320 */ uint16(1728), uint16(1755), uint16(1755), uint16(1755), uint16(1755), uint16(1613), uint16(1766), uint16(1651), uint16(1614), uint16(1614), - /* 330 */ uint16(1651), uint16(1745), uint16(1728), uint16(1651), uint16(1728), uint16(1651), uint16(1613), uint16(1766), uint16(1653), uint16(1758), - /* 340 */ uint16(1613), uint16(1766), uint16(1802), uint16(1613), uint16(1766), uint16(1613), uint16(1766), uint16(1802), uint16(1716), uint16(1716), - /* 350 */ uint16(1716), uint16(1768), uint16(1813), uint16(1813), uint16(1802), uint16(1716), uint16(1713), uint16(1716), uint16(1768), uint16(1716), - /* 360 */ uint16(1716), uint16(1675), uint16(1817), uint16(1729), uint16(1729), uint16(1802), uint16(1706), uint16(1742), uint16(1706), uint16(1742), - /* 370 */ uint16(1706), uint16(1742), uint16(1706), uint16(1742), uint16(1613), uint16(1774), uint16(1774), uint16(1786), uint16(1786), uint16(1723), - /* 380 */ uint16(1730), uint16(1851), uint16(1613), uint16(1720), uint16(1723), uint16(1733), uint16(1735), uint16(1651), uint16(1857), uint16(1873), - /* 390 */ uint16(1873), uint16(1896), uint16(1896), uint16(1896), uint16(2070), uint16(2070), uint16(2070), uint16(2070), uint16(2070), uint16(2070), - /* 400 */ uint16(2070), uint16(2070), uint16(2070), uint16(2070), uint16(2070), uint16(2070), uint16(2070), uint16(2070), uint16(2070), uint16(207), - /* 410 */ uint16(915), uint16(1010), uint16(1030), uint16(1217), uint16(910), uint16(1170), uint16(1470), uint16(1368), uint16(1481), uint16(1442), - /* 420 */ uint16(1318), uint16(1383), uint16(1515), uint16(1482), uint16(1523), uint16(1542), uint16(1546), uint16(1547), uint16(1588), uint16(1595), - /* 430 */ uint16(1502), uint16(1338), uint16(1566), uint16(1493), uint16(1520), uint16(1521), uint16(1598), uint16(1617), uint16(1568), uint16(1618), - /* 440 */ uint16(1511), uint16(1514), uint16(1645), uint16(1649), uint16(1570), uint16(1484), uint16(1910), uint16(1915), uint16(1897), uint16(1757), - /* 450 */ uint16(1908), uint16(1909), uint16(1901), uint16(1903), uint16(1788), uint16(1778), uint16(1798), uint16(1911), uint16(1911), uint16(1913), - /* 460 */ uint16(1793), uint16(1918), uint16(1795), uint16(1924), uint16(1940), uint16(1800), uint16(1814), uint16(1911), uint16(1815), uint16(1882), - /* 470 */ uint16(1912), uint16(1911), uint16(1796), uint16(1895), uint16(1898), uint16(1900), uint16(1902), uint16(1824), uint16(1840), uint16(1923), - /* 480 */ uint16(1818), uint16(1957), uint16(1955), uint16(1939), uint16(1847), uint16(1803), uint16(1899), uint16(1938), uint16(1904), uint16(1890), - /* 490 */ uint16(1925), uint16(1827), uint16(1854), uint16(1946), uint16(1951), uint16(1954), uint16(1843), uint16(1850), uint16(1956), uint16(1914), - /* 500 */ uint16(1958), uint16(1960), uint16(1953), uint16(1961), uint16(1917), uint16(1920), uint16(1962), uint16(1881), uint16(1959), uint16(1963), - /* 510 */ uint16(1921), uint16(1952), uint16(1967), uint16(1842), uint16(1970), uint16(1971), uint16(1972), uint16(1973), uint16(1968), uint16(1974), - /* 520 */ uint16(1976), uint16(1905), uint16(1858), uint16(1977), uint16(1978), uint16(1887), uint16(1975), uint16(1982), uint16(1862), uint16(1981), - /* 530 */ uint16(1979), uint16(1980), uint16(1983), uint16(1984), uint16(1919), uint16(1933), uint16(1926), uint16(1966), uint16(1936), uint16(1922), - /* 540 */ uint16(1985), uint16(1993), uint16(1998), uint16(1997), uint16(1999), uint16(2000), uint16(1988), uint16(2003), uint16(1981), uint16(2004), - /* 550 */ uint16(2005), uint16(2006), uint16(2007), uint16(2008), uint16(2009), uint16(2001), uint16(2020), uint16(2012), uint16(2013), uint16(2014), - /* 560 */ uint16(2015), uint16(2017), uint16(2018), uint16(2011), uint16(1906), uint16(1907), uint16(1916), uint16(1927), uint16(1928), uint16(2019), - /* 570 */ uint16(2022), uint16(2027), uint16(2042), uint16(2045), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162434:33 */ + /* 80 */ uint16(1777), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), + /* 90 */ uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), + /* 100 */ uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), + /* 110 */ uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), + /* 120 */ uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), uint16(1837), + /* 130 */ uint16(137), uint16(181), uint16(181), uint16(181), uint16(181), uint16(181), uint16(181), uint16(181), uint16(94), uint16(430), + /* 140 */ uint16(66), uint16(65), uint16(112), uint16(366), uint16(533), uint16(533), uint16(740), uint16(1261), uint16(533), uint16(533), + /* 150 */ uint16(79), uint16(79), uint16(533), uint16(412), uint16(412), uint16(412), uint16(77), uint16(412), uint16(123), uint16(113), + /* 160 */ uint16(113), uint16(22), uint16(22), uint16(2098), uint16(2098), uint16(328), uint16(328), uint16(328), uint16(239), uint16(468), + /* 170 */ uint16(468), uint16(468), uint16(468), uint16(1015), uint16(1015), uint16(409), uint16(366), uint16(1129), uint16(1186), uint16(533), + /* 180 */ uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), + /* 190 */ uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(969), + /* 200 */ uint16(621), uint16(621), uint16(533), uint16(642), uint16(788), uint16(788), uint16(1228), uint16(1228), uint16(822), uint16(822), + /* 210 */ uint16(67), uint16(1274), uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(1307), + /* 220 */ uint16(954), uint16(954), uint16(585), uint16(472), uint16(640), uint16(387), uint16(695), uint16(538), uint16(541), uint16(700), + /* 230 */ uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), + /* 240 */ uint16(222), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), + /* 250 */ uint16(533), uint16(533), uint16(533), uint16(1179), uint16(1179), uint16(1179), uint16(533), uint16(533), uint16(533), uint16(565), + /* 260 */ uint16(533), uint16(533), uint16(533), uint16(916), uint16(1144), uint16(533), uint16(533), uint16(1288), uint16(533), uint16(533), + /* 270 */ uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(533), uint16(639), uint16(1330), uint16(209), uint16(1076), + /* 280 */ uint16(1076), uint16(1076), uint16(1076), uint16(580), uint16(209), uint16(209), uint16(1313), uint16(768), uint16(917), uint16(649), + /* 290 */ uint16(1181), uint16(1316), uint16(405), uint16(1316), uint16(1238), uint16(249), uint16(1181), uint16(1181), uint16(249), uint16(1181), + /* 300 */ uint16(405), uint16(1238), uint16(1369), uint16(464), uint16(1259), uint16(1012), uint16(1012), uint16(1012), uint16(1368), uint16(1368), + /* 310 */ uint16(1368), uint16(1368), uint16(184), uint16(184), uint16(1326), uint16(904), uint16(1287), uint16(1480), uint16(1712), uint16(1712), + /* 320 */ uint16(1633), uint16(1633), uint16(1757), uint16(1757), uint16(1633), uint16(1647), uint16(1651), uint16(1783), uint16(1764), uint16(1791), + /* 330 */ uint16(1791), uint16(1791), uint16(1791), uint16(1633), uint16(1806), uint16(1677), uint16(1651), uint16(1651), uint16(1677), uint16(1783), + /* 340 */ uint16(1764), uint16(1677), uint16(1764), uint16(1677), uint16(1633), uint16(1806), uint16(1674), uint16(1779), uint16(1633), uint16(1806), + /* 350 */ uint16(1823), uint16(1633), uint16(1806), uint16(1633), uint16(1806), uint16(1823), uint16(1732), uint16(1732), uint16(1732), uint16(1794), + /* 360 */ uint16(1840), uint16(1840), uint16(1823), uint16(1732), uint16(1738), uint16(1732), uint16(1794), uint16(1732), uint16(1732), uint16(1701), + /* 370 */ uint16(1844), uint16(1758), uint16(1758), uint16(1823), uint16(1633), uint16(1789), uint16(1789), uint16(1807), uint16(1807), uint16(1742), + /* 380 */ uint16(1752), uint16(1877), uint16(1633), uint16(1743), uint16(1742), uint16(1759), uint16(1765), uint16(1677), uint16(1879), uint16(1897), + /* 390 */ uint16(1897), uint16(1914), uint16(1914), uint16(1914), uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(2098), + /* 400 */ uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(2098), uint16(207), + /* 410 */ uint16(1095), uint16(331), uint16(620), uint16(903), uint16(806), uint16(1074), uint16(1483), uint16(1432), uint16(1481), uint16(1322), + /* 420 */ uint16(1370), uint16(1394), uint16(1515), uint16(1291), uint16(1546), uint16(1547), uint16(1557), uint16(1595), uint16(1598), uint16(1599), + /* 430 */ uint16(1434), uint16(1453), uint16(1618), uint16(1462), uint16(1567), uint16(1489), uint16(1644), uint16(1654), uint16(1616), uint16(1660), + /* 440 */ uint16(1548), uint16(1549), uint16(1682), uint16(1685), uint16(1597), uint16(742), uint16(1941), uint16(1945), uint16(1927), uint16(1787), + /* 450 */ uint16(1937), uint16(1940), uint16(1934), uint16(1936), uint16(1821), uint16(1810), uint16(1832), uint16(1938), uint16(1938), uint16(1942), + /* 460 */ uint16(1822), uint16(1947), uint16(1824), uint16(1949), uint16(1968), uint16(1828), uint16(1841), uint16(1938), uint16(1842), uint16(1912), + /* 470 */ uint16(1939), uint16(1938), uint16(1826), uint16(1921), uint16(1922), uint16(1925), uint16(1926), uint16(1850), uint16(1865), uint16(1948), + /* 480 */ uint16(1843), uint16(1982), uint16(1980), uint16(1964), uint16(1872), uint16(1827), uint16(1928), uint16(1970), uint16(1929), uint16(1923), + /* 490 */ uint16(1958), uint16(1848), uint16(1885), uint16(1977), uint16(1983), uint16(1985), uint16(1871), uint16(1880), uint16(1984), uint16(1943), + /* 500 */ uint16(1986), uint16(1987), uint16(1988), uint16(1990), uint16(1946), uint16(1955), uint16(1991), uint16(1911), uint16(1989), uint16(1994), + /* 510 */ uint16(1951), uint16(1992), uint16(1996), uint16(1873), uint16(1998), uint16(2000), uint16(2001), uint16(2002), uint16(2003), uint16(2004), + /* 520 */ uint16(1999), uint16(1933), uint16(1890), uint16(2009), uint16(2010), uint16(1910), uint16(2005), uint16(2012), uint16(1892), uint16(2011), + /* 530 */ uint16(2006), uint16(2007), uint16(2008), uint16(2013), uint16(1950), uint16(1962), uint16(1957), uint16(2014), uint16(1969), uint16(1952), + /* 540 */ uint16(2015), uint16(2023), uint16(2026), uint16(2027), uint16(2025), uint16(2028), uint16(2018), uint16(1913), uint16(1915), uint16(2031), + /* 550 */ uint16(2011), uint16(2033), uint16(2036), uint16(2037), uint16(2038), uint16(2039), uint16(2040), uint16(2043), uint16(2051), uint16(2044), + /* 560 */ uint16(2045), uint16(2046), uint16(2047), uint16(2049), uint16(2050), uint16(2048), uint16(1944), uint16(1935), uint16(1953), uint16(1954), + /* 570 */ uint16(1956), uint16(2052), uint16(2055), uint16(2053), uint16(2073), uint16(2074), +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:164465:33 */ var yy_reduce_ofst = [409]int16{ /* 0 */ int16(-125), int16(733), int16(789), int16(241), int16(293), int16(-123), int16(-193), int16(-191), int16(-183), int16(-187), - /* 10 */ int16(-180), int16(83), int16(133), int16(-207), int16(-198), int16(-267), int16(-175), int16(-6), int16(166), int16(313), - /* 20 */ int16(487), int16(396), int16(489), int16(598), int16(615), int16(685), int16(687), int16(79), int16(781), int16(857), - /* 30 */ int16(490), int16(616), int16(240), int16(334), int16(-188), int16(796), int16(841), int16(843), int16(1003), int16(1005), - /* 40 */ int16(1007), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), - /* 50 */ int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), - /* 60 */ int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), - /* 70 */ int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(158), int16(203), - /* 80 */ int16(391), int16(576), int16(724), int16(726), int16(886), int16(1021), int16(1035), int16(1063), int16(1081), int16(1083), - /* 90 */ int16(1097), int16(1099), int16(1117), int16(1152), int16(1155), int16(1158), int16(1163), int16(1165), int16(1167), int16(1169), - /* 100 */ int16(1172), int16(1180), int16(1183), int16(1198), int16(1200), int16(1205), int16(1215), int16(1225), int16(1227), int16(1236), - /* 110 */ int16(1252), int16(1264), int16(1299), int16(1303), int16(1306), int16(1309), int16(1312), int16(1315), int16(1325), int16(1328), - /* 120 */ int16(1337), int16(1340), int16(1343), int16(1371), int16(1373), int16(1384), int16(1386), int16(1411), int16(-260), int16(-260), - /* 130 */ int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-260), int16(-53), int16(138), int16(302), - /* 140 */ int16(-158), int16(357), int16(223), int16(-222), int16(411), int16(458), int16(-92), int16(556), int16(669), int16(581), - /* 150 */ int16(632), int16(581), int16(-260), int16(632), int16(758), int16(778), int16(920), int16(-260), int16(-260), int16(-260), - /* 160 */ int16(-260), int16(161), int16(161), int16(161), int16(307), int16(234), int16(392), int16(526), int16(790), int16(195), - /* 170 */ int16(359), int16(-174), int16(-173), int16(362), int16(362), int16(-189), int16(16), int16(560), int16(567), int16(261), - /* 180 */ int16(689), int16(802), int16(853), int16(-122), int16(-166), int16(408), int16(335), int16(617), int16(690), int16(837), - /* 190 */ int16(1001), int16(746), int16(1061), int16(515), int16(1082), int16(994), int16(1034), int16(-135), int16(1000), int16(1048), - /* 200 */ int16(1137), int16(877), int16(897), int16(186), int16(627), int16(1031), int16(1133), int16(1148), int16(1159), int16(1194), - /* 210 */ int16(1199), int16(1195), int16(-194), int16(-142), int16(18), int16(-152), int16(68), int16(201), int16(253), int16(269), - /* 220 */ int16(294), int16(354), int16(521), int16(528), int16(676), int16(680), int16(736), int16(743), int16(850), int16(907), - /* 230 */ int16(1041), int16(1047), int16(1060), int16(727), int16(1139), int16(1147), int16(1201), int16(1237), int16(1278), int16(1359), - /* 240 */ int16(1393), int16(1400), int16(1413), int16(1429), int16(1433), int16(1437), int16(1126), int16(1410), int16(1430), int16(1444), - /* 250 */ int16(1480), int16(1483), int16(1405), int16(1486), int16(1490), int16(1492), int16(1420), int16(1372), int16(1496), int16(1498), - /* 260 */ int16(1441), int16(1499), int16(253), int16(1500), int16(1503), int16(1504), int16(1506), int16(1507), int16(1508), int16(1398), - /* 270 */ int16(1415), int16(1453), int16(1448), int16(1449), int16(1450), int16(1452), int16(1405), int16(1453), int16(1453), int16(1465), - /* 280 */ int16(1495), int16(1519), int16(1414), int16(1443), int16(1445), int16(1468), int16(1456), int16(1455), int16(1457), int16(1424), - /* 290 */ int16(1473), int16(1454), int16(1459), int16(1474), int16(1460), int16(1479), int16(1434), int16(1512), int16(1494), int16(1509), - /* 300 */ int16(1517), int16(1518), int16(1525), int16(1469), int16(1489), int16(1501), int16(1467), int16(1510), int16(1497), int16(1543), - /* 310 */ int16(1451), int16(1462), int16(1557), int16(1558), int16(1471), int16(1472), int16(1561), int16(1487), int16(1505), int16(1524), - /* 320 */ int16(1538), int16(1537), int16(1545), int16(1548), int16(1556), int16(1575), int16(1596), int16(1552), int16(1529), int16(1530), - /* 330 */ int16(1559), int16(1533), int16(1572), int16(1562), int16(1573), int16(1563), int16(1604), int16(1615), int16(1522), int16(1532), - /* 340 */ int16(1622), int16(1624), int16(1605), int16(1625), int16(1628), int16(1629), int16(1631), int16(1607), int16(1616), int16(1619), - /* 350 */ int16(1620), int16(1606), int16(1621), int16(1623), int16(1630), int16(1626), int16(1632), int16(1636), int16(1633), int16(1637), - /* 360 */ int16(1638), int16(1531), int16(1541), int16(1567), int16(1571), int16(1640), int16(1597), int16(1599), int16(1601), int16(1603), - /* 370 */ int16(1608), int16(1610), int16(1611), int16(1627), int16(1664), int16(1549), int16(1550), int16(1609), int16(1634), int16(1639), - /* 380 */ int16(1641), int16(1602), int16(1676), int16(1642), int16(1646), int16(1644), int16(1650), int16(1654), int16(1683), int16(1694), - /* 390 */ int16(1707), int16(1711), int16(1712), int16(1714), int16(1643), int16(1647), int16(1652), int16(1698), int16(1695), int16(1696), - /* 400 */ int16(1697), int16(1699), int16(1700), int16(1689), int16(1691), int16(1701), int16(1702), int16(1704), int16(1715), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162497:20 */ -var yy_default = [574]uint16{ - /* 0 */ uint16(1637), uint16(1637), uint16(1637), uint16(1466), uint16(1233), uint16(1344), uint16(1233), uint16(1233), uint16(1233), uint16(1466), - /* 10 */ uint16(1466), uint16(1466), uint16(1233), uint16(1374), uint16(1374), uint16(1519), uint16(1266), uint16(1233), uint16(1233), uint16(1233), - /* 20 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1465), uint16(1233), uint16(1233), - /* 30 */ uint16(1233), uint16(1233), uint16(1554), uint16(1554), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 40 */ uint16(1233), uint16(1233), uint16(1383), uint16(1233), uint16(1390), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 50 */ uint16(1467), uint16(1468), uint16(1233), uint16(1233), uint16(1233), uint16(1518), uint16(1520), uint16(1483), uint16(1397), uint16(1396), - /* 60 */ uint16(1395), uint16(1394), uint16(1501), uint16(1361), uint16(1388), uint16(1381), uint16(1385), uint16(1461), uint16(1462), uint16(1460), - /* 70 */ uint16(1464), uint16(1468), uint16(1467), uint16(1233), uint16(1384), uint16(1431), uint16(1445), uint16(1430), uint16(1233), uint16(1233), - /* 80 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 90 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 100 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 110 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 120 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1439), uint16(1444), - /* 130 */ uint16(1451), uint16(1443), uint16(1440), uint16(1433), uint16(1432), uint16(1434), uint16(1435), uint16(1233), uint16(1233), uint16(1257), - /* 140 */ uint16(1233), uint16(1233), uint16(1254), uint16(1308), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1538), - /* 150 */ uint16(1537), uint16(1233), uint16(1436), uint16(1233), uint16(1266), uint16(1425), uint16(1424), uint16(1448), uint16(1437), uint16(1447), - /* 160 */ uint16(1446), uint16(1526), uint16(1590), uint16(1589), uint16(1484), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 170 */ uint16(1233), uint16(1554), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 180 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 190 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1554), uint16(1554), uint16(1233), uint16(1266), uint16(1554), - /* 200 */ uint16(1554), uint16(1262), uint16(1262), uint16(1368), uint16(1233), uint16(1533), uint16(1335), uint16(1335), uint16(1335), uint16(1335), - /* 210 */ uint16(1344), uint16(1335), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 220 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1523), uint16(1521), uint16(1233), - /* 230 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 240 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 250 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1340), uint16(1233), uint16(1233), uint16(1233), - /* 260 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1583), uint16(1233), - /* 270 */ uint16(1496), uint16(1322), uint16(1340), uint16(1340), uint16(1340), uint16(1340), uint16(1342), uint16(1323), uint16(1321), uint16(1334), - /* 280 */ uint16(1267), uint16(1240), uint16(1629), uint16(1400), uint16(1389), uint16(1341), uint16(1363), uint16(1389), uint16(1363), uint16(1626), - /* 290 */ uint16(1387), uint16(1400), uint16(1400), uint16(1387), uint16(1400), uint16(1341), uint16(1626), uint16(1283), uint16(1606), uint16(1278), - /* 300 */ uint16(1374), uint16(1374), uint16(1374), uint16(1363), uint16(1368), uint16(1368), uint16(1463), uint16(1341), uint16(1334), uint16(1233), - /* 310 */ uint16(1629), uint16(1629), uint16(1349), uint16(1349), uint16(1628), uint16(1628), uint16(1349), uint16(1484), uint16(1613), uint16(1409), - /* 320 */ uint16(1311), uint16(1317), uint16(1317), uint16(1317), uint16(1317), uint16(1349), uint16(1251), uint16(1387), uint16(1613), uint16(1613), - /* 330 */ uint16(1387), uint16(1409), uint16(1311), uint16(1387), uint16(1311), uint16(1387), uint16(1349), uint16(1251), uint16(1500), uint16(1623), - /* 340 */ uint16(1349), uint16(1251), uint16(1474), uint16(1349), uint16(1251), uint16(1349), uint16(1251), uint16(1474), uint16(1309), uint16(1309), - /* 350 */ uint16(1309), uint16(1298), uint16(1233), uint16(1233), uint16(1474), uint16(1309), uint16(1283), uint16(1309), uint16(1298), uint16(1309), - /* 360 */ uint16(1309), uint16(1572), uint16(1233), uint16(1478), uint16(1478), uint16(1474), uint16(1367), uint16(1362), uint16(1367), uint16(1362), - /* 370 */ uint16(1367), uint16(1362), uint16(1367), uint16(1362), uint16(1349), uint16(1564), uint16(1564), uint16(1377), uint16(1377), uint16(1382), - /* 380 */ uint16(1368), uint16(1469), uint16(1349), uint16(1233), uint16(1382), uint16(1380), uint16(1378), uint16(1387), uint16(1301), uint16(1586), - /* 390 */ uint16(1586), uint16(1582), uint16(1582), uint16(1582), uint16(1634), uint16(1634), uint16(1533), uint16(1599), uint16(1266), uint16(1266), - /* 400 */ uint16(1266), uint16(1266), uint16(1599), uint16(1285), uint16(1285), uint16(1267), uint16(1267), uint16(1266), uint16(1599), uint16(1233), - /* 410 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1594), uint16(1233), uint16(1528), uint16(1485), uint16(1353), - /* 420 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 430 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1539), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 440 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1414), uint16(1233), uint16(1236), uint16(1530), uint16(1233), - /* 450 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1391), uint16(1392), uint16(1354), - /* 460 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1406), uint16(1233), uint16(1233), - /* 470 */ uint16(1233), uint16(1401), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 480 */ uint16(1625), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1499), uint16(1498), uint16(1233), - /* 490 */ uint16(1233), uint16(1351), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 500 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1281), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 510 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 520 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1379), - /* 530 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 540 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1569), uint16(1369), uint16(1233), uint16(1233), uint16(1616), uint16(1233), - /* 550 */ uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), uint16(1233), - /* 560 */ uint16(1233), uint16(1233), uint16(1233), uint16(1610), uint16(1325), uint16(1416), uint16(1233), uint16(1415), uint16(1419), uint16(1255), - /* 570 */ uint16(1233), uint16(1245), uint16(1233), uint16(1233), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162540:27 */ + /* 10 */ int16(166), int16(238), int16(133), int16(-207), int16(-199), int16(-267), int16(-176), int16(-6), int16(204), int16(489), + /* 20 */ int16(576), int16(-175), int16(598), int16(686), int16(615), int16(725), int16(860), int16(778), int16(781), int16(857), + /* 30 */ int16(616), int16(887), int16(87), int16(240), int16(-192), int16(408), int16(626), int16(796), int16(843), int16(854), + /* 40 */ int16(1003), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), + /* 50 */ int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), + /* 60 */ int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), + /* 70 */ int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(80), int16(83), + /* 80 */ int16(313), int16(886), int16(888), int16(996), int16(1034), int16(1059), int16(1081), int16(1100), int16(1117), int16(1152), + /* 90 */ int16(1155), int16(1163), int16(1165), int16(1167), int16(1169), int16(1172), int16(1180), int16(1182), int16(1184), int16(1198), + /* 100 */ int16(1200), int16(1213), int16(1215), int16(1225), int16(1227), int16(1252), int16(1254), int16(1264), int16(1299), int16(1303), + /* 110 */ int16(1308), int16(1312), int16(1325), int16(1328), int16(1337), int16(1340), int16(1343), int16(1371), int16(1373), int16(1384), + /* 120 */ int16(1386), int16(1411), int16(1420), int16(1424), int16(1426), int16(1458), int16(1470), int16(1473), int16(1475), int16(1479), + /* 130 */ int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), int16(-271), + /* 140 */ int16(-271), int16(138), int16(459), int16(396), int16(-158), int16(470), int16(302), int16(-212), int16(521), int16(201), + /* 150 */ int16(-195), int16(-92), int16(559), int16(630), int16(632), int16(630), int16(-271), int16(632), int16(901), int16(63), + /* 160 */ int16(407), int16(-271), int16(-271), int16(-271), int16(-271), int16(161), int16(161), int16(161), int16(251), int16(335), + /* 170 */ int16(847), int16(960), int16(980), int16(537), int16(588), int16(618), int16(628), int16(688), int16(688), int16(-166), + /* 180 */ int16(-161), int16(674), int16(790), int16(794), int16(799), int16(851), int16(852), int16(-122), int16(680), int16(-120), + /* 190 */ int16(995), int16(1038), int16(415), int16(1051), int16(893), int16(798), int16(962), int16(400), int16(1086), int16(779), + /* 200 */ int16(923), int16(924), int16(263), int16(1041), int16(979), int16(990), int16(1083), int16(1097), int16(1031), int16(1194), + /* 210 */ int16(362), int16(994), int16(1139), int16(1005), int16(1037), int16(1202), int16(1205), int16(1195), int16(1210), int16(-194), + /* 220 */ int16(56), int16(185), int16(-135), int16(232), int16(522), int16(560), int16(601), int16(617), int16(669), int16(683), + /* 230 */ int16(711), int16(856), int16(908), int16(941), int16(1048), int16(1101), int16(1147), int16(1257), int16(1262), int16(1265), + /* 240 */ int16(392), int16(1292), int16(1333), int16(1339), int16(1342), int16(1346), int16(1350), int16(1359), int16(1374), int16(1418), + /* 250 */ int16(1421), int16(1436), int16(1437), int16(593), int16(755), int16(770), int16(997), int16(1445), int16(1459), int16(1209), + /* 260 */ int16(1500), int16(1504), int16(1516), int16(1132), int16(1243), int16(1518), int16(1519), int16(1440), int16(1520), int16(560), + /* 270 */ int16(1522), int16(1523), int16(1524), int16(1526), int16(1527), int16(1529), int16(1382), int16(1438), int16(1431), int16(1468), + /* 280 */ int16(1469), int16(1472), int16(1476), int16(1209), int16(1431), int16(1431), int16(1485), int16(1525), int16(1539), int16(1435), + /* 290 */ int16(1463), int16(1471), int16(1492), int16(1487), int16(1443), int16(1494), int16(1474), int16(1484), int16(1498), int16(1486), + /* 300 */ int16(1502), int16(1455), int16(1530), int16(1531), int16(1533), int16(1540), int16(1542), int16(1544), int16(1505), int16(1506), + /* 310 */ int16(1507), int16(1508), int16(1521), int16(1528), int16(1493), int16(1537), int16(1532), int16(1575), int16(1488), int16(1496), + /* 320 */ int16(1584), int16(1594), int16(1509), int16(1510), int16(1600), int16(1538), int16(1534), int16(1541), int16(1574), int16(1577), + /* 330 */ int16(1583), int16(1585), int16(1586), int16(1612), int16(1626), int16(1581), int16(1556), int16(1558), int16(1587), int16(1559), + /* 340 */ int16(1601), int16(1588), int16(1603), int16(1592), int16(1631), int16(1640), int16(1550), int16(1553), int16(1643), int16(1645), + /* 350 */ int16(1625), int16(1649), int16(1652), int16(1650), int16(1653), int16(1632), int16(1636), int16(1637), int16(1642), int16(1634), + /* 360 */ int16(1639), int16(1641), int16(1646), int16(1656), int16(1655), int16(1658), int16(1659), int16(1661), int16(1663), int16(1560), + /* 370 */ int16(1564), int16(1596), int16(1605), int16(1664), int16(1670), int16(1565), int16(1571), int16(1627), int16(1638), int16(1657), + /* 380 */ int16(1665), int16(1623), int16(1702), int16(1630), int16(1666), int16(1667), int16(1671), int16(1673), int16(1703), int16(1718), + /* 390 */ int16(1719), int16(1729), int16(1730), int16(1731), int16(1621), int16(1622), int16(1628), int16(1720), int16(1713), int16(1716), + /* 400 */ int16(1722), int16(1723), int16(1733), int16(1717), int16(1724), int16(1727), int16(1728), int16(1725), int16(1740), +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:164528:20 */ +var yy_default = [576]uint16{ + /* 0 */ uint16(1647), uint16(1647), uint16(1647), uint16(1475), uint16(1240), uint16(1351), uint16(1240), uint16(1240), uint16(1240), uint16(1475), + /* 10 */ uint16(1475), uint16(1475), uint16(1240), uint16(1381), uint16(1381), uint16(1528), uint16(1273), uint16(1240), uint16(1240), uint16(1240), + /* 20 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1474), uint16(1240), uint16(1240), + /* 30 */ uint16(1240), uint16(1240), uint16(1563), uint16(1563), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 40 */ uint16(1240), uint16(1240), uint16(1390), uint16(1240), uint16(1397), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 50 */ uint16(1476), uint16(1477), uint16(1240), uint16(1240), uint16(1240), uint16(1527), uint16(1529), uint16(1492), uint16(1404), uint16(1403), + /* 60 */ uint16(1402), uint16(1401), uint16(1510), uint16(1369), uint16(1395), uint16(1388), uint16(1392), uint16(1470), uint16(1471), uint16(1469), + /* 70 */ uint16(1473), uint16(1477), uint16(1476), uint16(1240), uint16(1391), uint16(1438), uint16(1454), uint16(1437), uint16(1240), uint16(1240), + /* 80 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 90 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 100 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 110 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 120 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 130 */ uint16(1446), uint16(1453), uint16(1452), uint16(1451), uint16(1460), uint16(1450), uint16(1447), uint16(1440), uint16(1439), uint16(1441), + /* 140 */ uint16(1442), uint16(1240), uint16(1240), uint16(1264), uint16(1240), uint16(1240), uint16(1261), uint16(1315), uint16(1240), uint16(1240), + /* 150 */ uint16(1240), uint16(1240), uint16(1240), uint16(1547), uint16(1546), uint16(1240), uint16(1443), uint16(1240), uint16(1273), uint16(1432), + /* 160 */ uint16(1431), uint16(1457), uint16(1444), uint16(1456), uint16(1455), uint16(1535), uint16(1599), uint16(1598), uint16(1493), uint16(1240), + /* 170 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1563), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 180 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 190 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1371), + /* 200 */ uint16(1563), uint16(1563), uint16(1240), uint16(1273), uint16(1563), uint16(1563), uint16(1372), uint16(1372), uint16(1269), uint16(1269), + /* 210 */ uint16(1375), uint16(1240), uint16(1542), uint16(1342), uint16(1342), uint16(1342), uint16(1342), uint16(1351), uint16(1342), uint16(1240), + /* 220 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 230 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1532), uint16(1530), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 240 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 250 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 260 */ uint16(1240), uint16(1240), uint16(1240), uint16(1347), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 270 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1592), uint16(1240), uint16(1505), uint16(1329), uint16(1347), + /* 280 */ uint16(1347), uint16(1347), uint16(1347), uint16(1349), uint16(1330), uint16(1328), uint16(1341), uint16(1274), uint16(1247), uint16(1639), + /* 290 */ uint16(1407), uint16(1396), uint16(1348), uint16(1396), uint16(1636), uint16(1394), uint16(1407), uint16(1407), uint16(1394), uint16(1407), + /* 300 */ uint16(1348), uint16(1636), uint16(1290), uint16(1615), uint16(1285), uint16(1381), uint16(1381), uint16(1381), uint16(1371), uint16(1371), + /* 310 */ uint16(1371), uint16(1371), uint16(1375), uint16(1375), uint16(1472), uint16(1348), uint16(1341), uint16(1240), uint16(1639), uint16(1639), + /* 320 */ uint16(1357), uint16(1357), uint16(1638), uint16(1638), uint16(1357), uint16(1493), uint16(1623), uint16(1416), uint16(1318), uint16(1324), + /* 330 */ uint16(1324), uint16(1324), uint16(1324), uint16(1357), uint16(1258), uint16(1394), uint16(1623), uint16(1623), uint16(1394), uint16(1416), + /* 340 */ uint16(1318), uint16(1394), uint16(1318), uint16(1394), uint16(1357), uint16(1258), uint16(1509), uint16(1633), uint16(1357), uint16(1258), + /* 350 */ uint16(1483), uint16(1357), uint16(1258), uint16(1357), uint16(1258), uint16(1483), uint16(1316), uint16(1316), uint16(1316), uint16(1305), + /* 360 */ uint16(1240), uint16(1240), uint16(1483), uint16(1316), uint16(1290), uint16(1316), uint16(1305), uint16(1316), uint16(1316), uint16(1581), + /* 370 */ uint16(1240), uint16(1487), uint16(1487), uint16(1483), uint16(1357), uint16(1573), uint16(1573), uint16(1384), uint16(1384), uint16(1389), + /* 380 */ uint16(1375), uint16(1478), uint16(1357), uint16(1240), uint16(1389), uint16(1387), uint16(1385), uint16(1394), uint16(1308), uint16(1595), + /* 390 */ uint16(1595), uint16(1591), uint16(1591), uint16(1591), uint16(1644), uint16(1644), uint16(1542), uint16(1608), uint16(1273), uint16(1273), + /* 400 */ uint16(1273), uint16(1273), uint16(1608), uint16(1292), uint16(1292), uint16(1274), uint16(1274), uint16(1273), uint16(1608), uint16(1240), + /* 410 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1603), uint16(1240), uint16(1537), uint16(1494), uint16(1361), + /* 420 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 430 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1548), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 440 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1421), uint16(1240), uint16(1243), uint16(1539), uint16(1240), + /* 450 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1398), uint16(1399), uint16(1362), + /* 460 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1413), uint16(1240), uint16(1240), + /* 470 */ uint16(1240), uint16(1408), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 480 */ uint16(1635), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1508), uint16(1507), uint16(1240), + /* 490 */ uint16(1240), uint16(1359), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 500 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1288), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 510 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 520 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1386), + /* 530 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 540 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1578), uint16(1376), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 550 */ uint16(1626), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), + /* 560 */ uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1240), uint16(1619), uint16(1332), uint16(1423), uint16(1240), uint16(1422), + /* 570 */ uint16(1426), uint16(1262), uint16(1240), uint16(1252), uint16(1240), uint16(1240), +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:164571:27 */ //********* End of lemon-generated parsing tables **************************** // The next table maps tokens (terminal symbols) into fallback tokens. // If a construct like the following: // -// %fallback ID X Y Z. +// %fallback ID X Y Z. // // appears in the grammar, then ID becomes a fallback token for X, Y, // and Z. Whenever one of the tokens X, Y, or Z is input to the parser @@ -189547,19 +191731,19 @@ var yyFallback = [185]uint16{ uint16(0), // ERROR => nothing uint16(0), // SPACE => nothing uint16(0), // ILLEGAL => nothing -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162617:25 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:164648:25 */ // The following structure represents a single element of the // parser's stack. Information stored includes: // -// + The state number for the parser at this level of the stack. +// - The state number for the parser at this level of the stack. // -// + The value of the token stored at this level of the stack. -// (In other words, the "major" token.) +// - The value of the token stored at this level of the stack. +// (In other words, the "major" token.) // -// + The semantic value stored at this level of the stack. This is -// the information used by the action routines in the grammar. -// It is sometimes called the "minor" token. +// - The semantic value stored at this level of the stack. This is +// the information used by the action routines in the grammar. +// It is sometimes called the "minor" token. // // After the "shift" half of a SHIFTREDUCE action, the stateno field // actually contains the reduce action for the second half of the @@ -189569,9 +191753,9 @@ type yyStackEntry = struct { Fmajor uint16 F__ccgo_pad1 [4]byte Fminor YYMINORTYPE -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162822:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:164853:1 */ -type YyStackEntry = yyStackEntry /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162829:29 */ +type YyStackEntry = yyStackEntry /* testdata/sqlite-amalgamation-3390200/sqlite3.c:164860:29 */ // The state of the parser is completely contained in an instance of // the following structure @@ -189580,9 +191764,9 @@ type yyParser = struct { FpParse uintptr Fyystack [100]YyStackEntry FyystackEnd uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162833:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:164864:1 */ -type YyParser = yyParser /* testdata/sqlite-amalgamation-3380500/sqlite3.c:162852:25 */ +type YyParser = yyParser /* testdata/sqlite-amalgamation-3390200/sqlite3.c:164883:25 */ // #include <assert.h> @@ -189592,7 +191776,7 @@ type YyParser = yyParser /* testdata/sqlite-amalgamation-3380500/sqlite3.c:16285 // grammar. // Initialize a new parser that has already been allocated. -func Xsqlite3ParserInit(tls *libc.TLS, yypRawParser uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:163667:21: */ +func Xsqlite3ParserInit(tls *libc.TLS, yypRawParser uintptr, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:165701:21: */ var yypParser uintptr = yypRawParser (*YyParser)(unsafe.Pointer(yypParser)).FpParse = pParse (*YyParser)(unsafe.Pointer(yypParser)).Fyytos = yypParser + 16 /* &.yystack */ @@ -189607,7 +191791,7 @@ func Xsqlite3ParserInit(tls *libc.TLS, yypRawParser uintptr, pParse uintptr) { / // a pointer to the value to be deleted. The code used to do the // deletions is derived from the %destructor and/or %token_destructor // directives of the input grammar. -func yy_destructor(tls *libc.TLS, yypParser uintptr, yymajor uint16, yypminor uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:163725:13: */ +func yy_destructor(tls *libc.TLS, yypParser uintptr, yymajor uint16, yypminor uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:165759:13: */ var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse switch int32(yymajor) { @@ -189640,8 +191824,6 @@ func yy_destructor(tls *libc.TLS, yypParser uintptr, yymajor uint16, yypminor ui fallthrough // where_opt case 248: fallthrough // having_opt - case 260: - fallthrough // on_opt case 267: fallthrough // where_opt_ret case 278: @@ -189675,7 +191857,7 @@ func yy_destructor(tls *libc.TLS, yypParser uintptr, yymajor uint16, yypminor ui fallthrough // nexprlist case 254: fallthrough // sclp - case 262: + case 261: fallthrough // exprlist case 268: fallthrough // setlist @@ -189696,7 +191878,7 @@ func yy_destructor(tls *libc.TLS, yypParser uintptr, yymajor uint16, yypminor ui fallthrough // seltablist case 257: fallthrough // stl_prefix - case 263: /* xfullname */ + case 262: /* xfullname */ { Xsqlite3SrcListDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor))) } @@ -189713,9 +191895,7 @@ func yy_destructor(tls *libc.TLS, yypParser uintptr, yymajor uint16, yypminor ui Xsqlite3WindowListDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yypminor))) } break - case 261: - fallthrough // using_opt - case 264: + case 263: fallthrough // idlist case 270: /* idlist_opt */ { @@ -189766,7 +191946,7 @@ func yy_destructor(tls *libc.TLS, yypParser uintptr, yymajor uint16, yypminor ui // // If there is a destructor routine associated with the token which // is popped from the stack, then call it. -func yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:163850:13: */ +func yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:165882:13: */ var yytos uintptr yytos = libc.PostDecUintptr(&(*YyParser)(unsafe.Pointer(pParser)).Fyytos, 24) @@ -189774,7 +191954,7 @@ func yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* testdata/sqlite-am } // Clear all secondary memory allocations from the parser -func Xsqlite3ParserFinalize(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:163868:21: */ +func Xsqlite3ParserFinalize(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:165900:21: */ var pParser uintptr = p for (*YyParser)(unsafe.Pointer(pParser)).Fyytos > pParser+16 { yy_pop_parser_stack(tls, pParser) @@ -189797,7 +191977,7 @@ func Xsqlite3ParserFinalize(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalg // Find the appropriate action for a parser given the terminal // look-ahead token iLookAhead. -func yy_find_shift_action(tls *libc.TLS, iLookAhead uint16, stateno uint16) uint16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:163948:21: */ +func yy_find_shift_action(tls *libc.TLS, iLookAhead uint16, stateno uint16) uint16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:165980:21: */ var i int32 if int32(stateno) > YY_MAX_SHIFT { @@ -189837,7 +192017,7 @@ func yy_find_shift_action(tls *libc.TLS, iLookAhead uint16, stateno uint16) uint // Find the appropriate action for a parser given the non-terminal // look-ahead token iLookAhead. -func yy_find_reduce_action(tls *libc.TLS, stateno uint16, iLookAhead uint16) uint16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:164013:21: */ +func yy_find_reduce_action(tls *libc.TLS, stateno uint16, iLookAhead uint16) uint16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:166045:21: */ var i int32 i = int32(yy_reduce_ofst[stateno]) @@ -189848,7 +192028,7 @@ func yy_find_reduce_action(tls *libc.TLS, stateno uint16, iLookAhead uint16) uin } // The following routine is called if the stack overflows. -func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:164042:13: */ +func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:166074:13: */ var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse for (*YyParser)(unsafe.Pointer(yypParser)).Fyytos > yypParser+16 { @@ -189858,7 +192038,7 @@ func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* testdata/sqlite-amal // stack every overflows //******* Begin %stack_overflow code ***************************************** - Xsqlite3ErrorMsg(tls, pParse, ts+24137, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+24102, 0) //******* End %stack_overflow code ******************************************* (*YyParser)(unsafe.Pointer(yypParser)).FpParse = pParse @@ -189867,7 +192047,7 @@ func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* testdata/sqlite-amal // Print tracing information for a SHIFT action // Perform a shift action. -func yy_shift(tls *libc.TLS, yypParser uintptr, yyNewState uint16, yyMajor uint16, yyMinor Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:164085:13: */ +func yy_shift(tls *libc.TLS, yypParser uintptr, yyNewState uint16, yyMajor uint16, yyMinor Token) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:166117:13: */ var yytos uintptr (*YyParser)(unsafe.Pointer(yypParser)).Fyytos += 24 if (*YyParser)(unsafe.Pointer(yypParser)).Fyytos > (*YyParser)(unsafe.Pointer(yypParser)).FyystackEnd { @@ -189887,7 +192067,7 @@ func yy_shift(tls *libc.TLS, yypParser uintptr, yyNewState uint16, yyMajor uint1 // For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side // of that rule -var yyRuleInfoLhs = [402]uint16{ +var yyRuleInfoLhs = [405]uint16{ uint16(189), // (0) explain ::= EXPLAIN uint16(189), // (1) explain ::= EXPLAIN QUERY PLAN uint16(188), // (2) cmdx ::= cmd @@ -189997,29 +192177,29 @@ var yyRuleInfoLhs = [402]uint16{ uint16(245), // (106) from ::= FROM seltablist uint16(257), // (107) stl_prefix ::= seltablist joinop uint16(257), // (108) stl_prefix ::= - uint16(256), // (109) seltablist ::= stl_prefix nm dbnm as indexed_opt on_opt using_opt - uint16(256), // (110) seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_opt using_opt - uint16(256), // (111) seltablist ::= stl_prefix LP select RP as on_opt using_opt - uint16(256), // (112) seltablist ::= stl_prefix LP seltablist RP as on_opt using_opt - uint16(200), // (113) dbnm ::= - uint16(200), // (114) dbnm ::= DOT nm - uint16(238), // (115) fullname ::= nm - uint16(238), // (116) fullname ::= nm DOT nm - uint16(263), // (117) xfullname ::= nm - uint16(263), // (118) xfullname ::= nm DOT nm - uint16(263), // (119) xfullname ::= nm DOT nm AS nm - uint16(263), // (120) xfullname ::= nm AS nm - uint16(258), // (121) joinop ::= COMMA|JOIN - uint16(258), // (122) joinop ::= JOIN_KW JOIN - uint16(258), // (123) joinop ::= JOIN_KW nm JOIN - uint16(258), // (124) joinop ::= JOIN_KW nm nm JOIN - uint16(260), // (125) on_opt ::= ON expr - uint16(260), // (126) on_opt ::= - uint16(259), // (127) indexed_opt ::= - uint16(259), // (128) indexed_opt ::= INDEXED BY nm - uint16(259), // (129) indexed_opt ::= NOT INDEXED - uint16(261), // (130) using_opt ::= USING LP idlist RP - uint16(261), // (131) using_opt ::= + uint16(256), // (109) seltablist ::= stl_prefix nm dbnm as on_using + uint16(256), // (110) seltablist ::= stl_prefix nm dbnm as indexed_by on_using + uint16(256), // (111) seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using + uint16(256), // (112) seltablist ::= stl_prefix LP select RP as on_using + uint16(256), // (113) seltablist ::= stl_prefix LP seltablist RP as on_using + uint16(200), // (114) dbnm ::= + uint16(200), // (115) dbnm ::= DOT nm + uint16(238), // (116) fullname ::= nm + uint16(238), // (117) fullname ::= nm DOT nm + uint16(262), // (118) xfullname ::= nm + uint16(262), // (119) xfullname ::= nm DOT nm + uint16(262), // (120) xfullname ::= nm DOT nm AS nm + uint16(262), // (121) xfullname ::= nm AS nm + uint16(258), // (122) joinop ::= COMMA|JOIN + uint16(258), // (123) joinop ::= JOIN_KW JOIN + uint16(258), // (124) joinop ::= JOIN_KW nm JOIN + uint16(258), // (125) joinop ::= JOIN_KW nm nm JOIN + uint16(259), // (126) on_using ::= ON expr + uint16(259), // (127) on_using ::= USING LP idlist RP + uint16(259), // (128) on_using ::= + uint16(264), // (129) indexed_opt ::= + uint16(260), // (130) indexed_by ::= INDEXED BY nm + uint16(260), // (131) indexed_by ::= NOT INDEXED uint16(249), // (132) orderby_opt ::= uint16(249), // (133) orderby_opt ::= ORDER BY sortlist uint16(231), // (134) sortlist ::= sortlist COMMA expr sortorder nulls @@ -190063,8 +192243,8 @@ var yyRuleInfoLhs = [402]uint16{ uint16(269), // (172) insert_cmd ::= REPLACE uint16(270), // (173) idlist_opt ::= uint16(270), // (174) idlist_opt ::= LP idlist RP - uint16(264), // (175) idlist ::= idlist COMMA nm - uint16(264), // (176) idlist ::= nm + uint16(263), // (175) idlist ::= idlist COMMA nm + uint16(263), // (176) idlist ::= nm uint16(217), // (177) expr ::= LP expr RP uint16(217), // (178) expr ::= ID|INDEXED uint16(217), // (179) expr ::= JOIN_KW @@ -190097,204 +192277,207 @@ var yyRuleInfoLhs = [402]uint16{ uint16(217), // (206) expr ::= expr NOT NULL uint16(217), // (207) expr ::= expr IS expr uint16(217), // (208) expr ::= expr IS NOT expr - uint16(217), // (209) expr ::= NOT expr - uint16(217), // (210) expr ::= BITNOT expr - uint16(217), // (211) expr ::= PLUS|MINUS expr - uint16(217), // (212) expr ::= expr PTR expr - uint16(275), // (213) between_op ::= BETWEEN - uint16(275), // (214) between_op ::= NOT BETWEEN - uint16(217), // (215) expr ::= expr between_op expr AND expr - uint16(276), // (216) in_op ::= IN - uint16(276), // (217) in_op ::= NOT IN - uint16(217), // (218) expr ::= expr in_op LP exprlist RP - uint16(217), // (219) expr ::= LP select RP - uint16(217), // (220) expr ::= expr in_op LP select RP - uint16(217), // (221) expr ::= expr in_op nm dbnm paren_exprlist - uint16(217), // (222) expr ::= EXISTS LP select RP - uint16(217), // (223) expr ::= CASE case_operand case_exprlist case_else END - uint16(279), // (224) case_exprlist ::= case_exprlist WHEN expr THEN expr - uint16(279), // (225) case_exprlist ::= WHEN expr THEN expr - uint16(280), // (226) case_else ::= ELSE expr - uint16(280), // (227) case_else ::= - uint16(278), // (228) case_operand ::= expr - uint16(278), // (229) case_operand ::= - uint16(262), // (230) exprlist ::= - uint16(253), // (231) nexprlist ::= nexprlist COMMA expr - uint16(253), // (232) nexprlist ::= expr - uint16(277), // (233) paren_exprlist ::= - uint16(277), // (234) paren_exprlist ::= LP exprlist RP - uint16(190), // (235) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt - uint16(281), // (236) uniqueflag ::= UNIQUE - uint16(281), // (237) uniqueflag ::= - uint16(221), // (238) eidlist_opt ::= - uint16(221), // (239) eidlist_opt ::= LP eidlist RP - uint16(232), // (240) eidlist ::= eidlist COMMA nm collate sortorder - uint16(232), // (241) eidlist ::= nm collate sortorder - uint16(282), // (242) collate ::= - uint16(282), // (243) collate ::= COLLATE ID|STRING - uint16(190), // (244) cmd ::= DROP INDEX ifexists fullname - uint16(190), // (245) cmd ::= VACUUM vinto - uint16(190), // (246) cmd ::= VACUUM nm vinto - uint16(283), // (247) vinto ::= INTO expr - uint16(283), // (248) vinto ::= - uint16(190), // (249) cmd ::= PRAGMA nm dbnm - uint16(190), // (250) cmd ::= PRAGMA nm dbnm EQ nmnum - uint16(190), // (251) cmd ::= PRAGMA nm dbnm LP nmnum RP - uint16(190), // (252) cmd ::= PRAGMA nm dbnm EQ minus_num - uint16(190), // (253) cmd ::= PRAGMA nm dbnm LP minus_num RP - uint16(211), // (254) plus_num ::= PLUS INTEGER|FLOAT - uint16(212), // (255) minus_num ::= MINUS INTEGER|FLOAT - uint16(190), // (256) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END - uint16(285), // (257) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause - uint16(287), // (258) trigger_time ::= BEFORE|AFTER - uint16(287), // (259) trigger_time ::= INSTEAD OF - uint16(287), // (260) trigger_time ::= - uint16(288), // (261) trigger_event ::= DELETE|INSERT - uint16(288), // (262) trigger_event ::= UPDATE - uint16(288), // (263) trigger_event ::= UPDATE OF idlist - uint16(290), // (264) when_clause ::= - uint16(290), // (265) when_clause ::= WHEN expr - uint16(286), // (266) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI - uint16(286), // (267) trigger_cmd_list ::= trigger_cmd SEMI - uint16(292), // (268) trnm ::= nm DOT nm - uint16(293), // (269) tridxby ::= INDEXED BY nm - uint16(293), // (270) tridxby ::= NOT INDEXED - uint16(291), // (271) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt - uint16(291), // (272) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt - uint16(291), // (273) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt - uint16(291), // (274) trigger_cmd ::= scanpt select scanpt - uint16(217), // (275) expr ::= RAISE LP IGNORE RP - uint16(217), // (276) expr ::= RAISE LP raisetype COMMA nm RP - uint16(236), // (277) raisetype ::= ROLLBACK - uint16(236), // (278) raisetype ::= ABORT - uint16(236), // (279) raisetype ::= FAIL - uint16(190), // (280) cmd ::= DROP TRIGGER ifexists fullname - uint16(190), // (281) cmd ::= ATTACH database_kw_opt expr AS expr key_opt - uint16(190), // (282) cmd ::= DETACH database_kw_opt expr - uint16(295), // (283) key_opt ::= - uint16(295), // (284) key_opt ::= KEY expr - uint16(190), // (285) cmd ::= REINDEX - uint16(190), // (286) cmd ::= REINDEX nm dbnm - uint16(190), // (287) cmd ::= ANALYZE - uint16(190), // (288) cmd ::= ANALYZE nm dbnm - uint16(190), // (289) cmd ::= ALTER TABLE fullname RENAME TO nm - uint16(190), // (290) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist - uint16(190), // (291) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm - uint16(296), // (292) add_column_fullname ::= fullname - uint16(190), // (293) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm - uint16(190), // (294) cmd ::= create_vtab - uint16(190), // (295) cmd ::= create_vtab LP vtabarglist RP - uint16(298), // (296) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm - uint16(300), // (297) vtabarg ::= - uint16(301), // (298) vtabargtoken ::= ANY - uint16(301), // (299) vtabargtoken ::= lp anylist RP - uint16(302), // (300) lp ::= LP - uint16(266), // (301) with ::= WITH wqlist - uint16(266), // (302) with ::= WITH RECURSIVE wqlist - uint16(305), // (303) wqas ::= AS - uint16(305), // (304) wqas ::= AS MATERIALIZED - uint16(305), // (305) wqas ::= AS NOT MATERIALIZED - uint16(304), // (306) wqitem ::= nm eidlist_opt wqas LP select RP - uint16(241), // (307) wqlist ::= wqitem - uint16(241), // (308) wqlist ::= wqlist COMMA wqitem - uint16(306), // (309) windowdefn_list ::= windowdefn - uint16(306), // (310) windowdefn_list ::= windowdefn_list COMMA windowdefn - uint16(307), // (311) windowdefn ::= nm AS LP window RP - uint16(308), // (312) window ::= PARTITION BY nexprlist orderby_opt frame_opt - uint16(308), // (313) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt - uint16(308), // (314) window ::= ORDER BY sortlist frame_opt - uint16(308), // (315) window ::= nm ORDER BY sortlist frame_opt - uint16(308), // (316) window ::= frame_opt - uint16(308), // (317) window ::= nm frame_opt - uint16(309), // (318) frame_opt ::= - uint16(309), // (319) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt - uint16(309), // (320) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt - uint16(313), // (321) range_or_rows ::= RANGE|ROWS|GROUPS - uint16(315), // (322) frame_bound_s ::= frame_bound - uint16(315), // (323) frame_bound_s ::= UNBOUNDED PRECEDING - uint16(316), // (324) frame_bound_e ::= frame_bound - uint16(316), // (325) frame_bound_e ::= UNBOUNDED FOLLOWING - uint16(314), // (326) frame_bound ::= expr PRECEDING|FOLLOWING - uint16(314), // (327) frame_bound ::= CURRENT ROW - uint16(317), // (328) frame_exclude_opt ::= - uint16(317), // (329) frame_exclude_opt ::= EXCLUDE frame_exclude - uint16(318), // (330) frame_exclude ::= NO OTHERS - uint16(318), // (331) frame_exclude ::= CURRENT ROW - uint16(318), // (332) frame_exclude ::= GROUP|TIES - uint16(251), // (333) window_clause ::= WINDOW windowdefn_list - uint16(273), // (334) filter_over ::= filter_clause over_clause - uint16(273), // (335) filter_over ::= over_clause - uint16(273), // (336) filter_over ::= filter_clause - uint16(312), // (337) over_clause ::= OVER LP window RP - uint16(312), // (338) over_clause ::= OVER nm - uint16(311), // (339) filter_clause ::= FILTER LP WHERE expr RP - uint16(185), // (340) input ::= cmdlist - uint16(186), // (341) cmdlist ::= cmdlist ecmd - uint16(186), // (342) cmdlist ::= ecmd - uint16(187), // (343) ecmd ::= SEMI - uint16(187), // (344) ecmd ::= cmdx SEMI - uint16(187), // (345) ecmd ::= explain cmdx SEMI - uint16(192), // (346) trans_opt ::= - uint16(192), // (347) trans_opt ::= TRANSACTION - uint16(192), // (348) trans_opt ::= TRANSACTION nm - uint16(194), // (349) savepoint_opt ::= SAVEPOINT - uint16(194), // (350) savepoint_opt ::= - uint16(190), // (351) cmd ::= create_table create_table_args - uint16(203), // (352) table_option_set ::= table_option - uint16(201), // (353) columnlist ::= columnlist COMMA columnname carglist - uint16(201), // (354) columnlist ::= columnname carglist - uint16(193), // (355) nm ::= ID|INDEXED - uint16(193), // (356) nm ::= STRING - uint16(193), // (357) nm ::= JOIN_KW - uint16(208), // (358) typetoken ::= typename - uint16(209), // (359) typename ::= ID|STRING - uint16(210), // (360) signed ::= plus_num - uint16(210), // (361) signed ::= minus_num - uint16(207), // (362) carglist ::= carglist ccons - uint16(207), // (363) carglist ::= - uint16(215), // (364) ccons ::= NULL onconf - uint16(215), // (365) ccons ::= GENERATED ALWAYS AS generated - uint16(215), // (366) ccons ::= AS generated - uint16(202), // (367) conslist_opt ::= COMMA conslist - uint16(228), // (368) conslist ::= conslist tconscomma tcons - uint16(228), // (369) conslist ::= tcons - uint16(229), // (370) tconscomma ::= - uint16(233), // (371) defer_subclause_opt ::= defer_subclause - uint16(235), // (372) resolvetype ::= raisetype - uint16(239), // (373) selectnowith ::= oneselect - uint16(240), // (374) oneselect ::= values - uint16(254), // (375) sclp ::= selcollist COMMA - uint16(255), // (376) as ::= ID|STRING - uint16(272), // (377) returning ::= - uint16(217), // (378) expr ::= term - uint16(274), // (379) likeop ::= LIKE_KW|MATCH - uint16(262), // (380) exprlist ::= nexprlist - uint16(284), // (381) nmnum ::= plus_num - uint16(284), // (382) nmnum ::= nm - uint16(284), // (383) nmnum ::= ON - uint16(284), // (384) nmnum ::= DELETE - uint16(284), // (385) nmnum ::= DEFAULT - uint16(211), // (386) plus_num ::= INTEGER|FLOAT - uint16(289), // (387) foreach_clause ::= - uint16(289), // (388) foreach_clause ::= FOR EACH ROW - uint16(292), // (389) trnm ::= nm - uint16(293), // (390) tridxby ::= - uint16(294), // (391) database_kw_opt ::= DATABASE - uint16(294), // (392) database_kw_opt ::= - uint16(297), // (393) kwcolumn_opt ::= - uint16(297), // (394) kwcolumn_opt ::= COLUMNKW - uint16(299), // (395) vtabarglist ::= vtabarg - uint16(299), // (396) vtabarglist ::= vtabarglist COMMA vtabarg - uint16(300), // (397) vtabarg ::= vtabarg vtabargtoken - uint16(303), // (398) anylist ::= - uint16(303), // (399) anylist ::= anylist LP anylist RP - uint16(303), // (400) anylist ::= anylist ANY - uint16(266), // (401) with ::= -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:164126:25 */ + uint16(217), // (209) expr ::= expr IS NOT DISTINCT FROM expr + uint16(217), // (210) expr ::= expr IS DISTINCT FROM expr + uint16(217), // (211) expr ::= NOT expr + uint16(217), // (212) expr ::= BITNOT expr + uint16(217), // (213) expr ::= PLUS|MINUS expr + uint16(217), // (214) expr ::= expr PTR expr + uint16(275), // (215) between_op ::= BETWEEN + uint16(275), // (216) between_op ::= NOT BETWEEN + uint16(217), // (217) expr ::= expr between_op expr AND expr + uint16(276), // (218) in_op ::= IN + uint16(276), // (219) in_op ::= NOT IN + uint16(217), // (220) expr ::= expr in_op LP exprlist RP + uint16(217), // (221) expr ::= LP select RP + uint16(217), // (222) expr ::= expr in_op LP select RP + uint16(217), // (223) expr ::= expr in_op nm dbnm paren_exprlist + uint16(217), // (224) expr ::= EXISTS LP select RP + uint16(217), // (225) expr ::= CASE case_operand case_exprlist case_else END + uint16(279), // (226) case_exprlist ::= case_exprlist WHEN expr THEN expr + uint16(279), // (227) case_exprlist ::= WHEN expr THEN expr + uint16(280), // (228) case_else ::= ELSE expr + uint16(280), // (229) case_else ::= + uint16(278), // (230) case_operand ::= expr + uint16(278), // (231) case_operand ::= + uint16(261), // (232) exprlist ::= + uint16(253), // (233) nexprlist ::= nexprlist COMMA expr + uint16(253), // (234) nexprlist ::= expr + uint16(277), // (235) paren_exprlist ::= + uint16(277), // (236) paren_exprlist ::= LP exprlist RP + uint16(190), // (237) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt + uint16(281), // (238) uniqueflag ::= UNIQUE + uint16(281), // (239) uniqueflag ::= + uint16(221), // (240) eidlist_opt ::= + uint16(221), // (241) eidlist_opt ::= LP eidlist RP + uint16(232), // (242) eidlist ::= eidlist COMMA nm collate sortorder + uint16(232), // (243) eidlist ::= nm collate sortorder + uint16(282), // (244) collate ::= + uint16(282), // (245) collate ::= COLLATE ID|STRING + uint16(190), // (246) cmd ::= DROP INDEX ifexists fullname + uint16(190), // (247) cmd ::= VACUUM vinto + uint16(190), // (248) cmd ::= VACUUM nm vinto + uint16(283), // (249) vinto ::= INTO expr + uint16(283), // (250) vinto ::= + uint16(190), // (251) cmd ::= PRAGMA nm dbnm + uint16(190), // (252) cmd ::= PRAGMA nm dbnm EQ nmnum + uint16(190), // (253) cmd ::= PRAGMA nm dbnm LP nmnum RP + uint16(190), // (254) cmd ::= PRAGMA nm dbnm EQ minus_num + uint16(190), // (255) cmd ::= PRAGMA nm dbnm LP minus_num RP + uint16(211), // (256) plus_num ::= PLUS INTEGER|FLOAT + uint16(212), // (257) minus_num ::= MINUS INTEGER|FLOAT + uint16(190), // (258) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END + uint16(285), // (259) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause + uint16(287), // (260) trigger_time ::= BEFORE|AFTER + uint16(287), // (261) trigger_time ::= INSTEAD OF + uint16(287), // (262) trigger_time ::= + uint16(288), // (263) trigger_event ::= DELETE|INSERT + uint16(288), // (264) trigger_event ::= UPDATE + uint16(288), // (265) trigger_event ::= UPDATE OF idlist + uint16(290), // (266) when_clause ::= + uint16(290), // (267) when_clause ::= WHEN expr + uint16(286), // (268) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI + uint16(286), // (269) trigger_cmd_list ::= trigger_cmd SEMI + uint16(292), // (270) trnm ::= nm DOT nm + uint16(293), // (271) tridxby ::= INDEXED BY nm + uint16(293), // (272) tridxby ::= NOT INDEXED + uint16(291), // (273) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt + uint16(291), // (274) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt + uint16(291), // (275) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt + uint16(291), // (276) trigger_cmd ::= scanpt select scanpt + uint16(217), // (277) expr ::= RAISE LP IGNORE RP + uint16(217), // (278) expr ::= RAISE LP raisetype COMMA nm RP + uint16(236), // (279) raisetype ::= ROLLBACK + uint16(236), // (280) raisetype ::= ABORT + uint16(236), // (281) raisetype ::= FAIL + uint16(190), // (282) cmd ::= DROP TRIGGER ifexists fullname + uint16(190), // (283) cmd ::= ATTACH database_kw_opt expr AS expr key_opt + uint16(190), // (284) cmd ::= DETACH database_kw_opt expr + uint16(295), // (285) key_opt ::= + uint16(295), // (286) key_opt ::= KEY expr + uint16(190), // (287) cmd ::= REINDEX + uint16(190), // (288) cmd ::= REINDEX nm dbnm + uint16(190), // (289) cmd ::= ANALYZE + uint16(190), // (290) cmd ::= ANALYZE nm dbnm + uint16(190), // (291) cmd ::= ALTER TABLE fullname RENAME TO nm + uint16(190), // (292) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist + uint16(190), // (293) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm + uint16(296), // (294) add_column_fullname ::= fullname + uint16(190), // (295) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm + uint16(190), // (296) cmd ::= create_vtab + uint16(190), // (297) cmd ::= create_vtab LP vtabarglist RP + uint16(298), // (298) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm + uint16(300), // (299) vtabarg ::= + uint16(301), // (300) vtabargtoken ::= ANY + uint16(301), // (301) vtabargtoken ::= lp anylist RP + uint16(302), // (302) lp ::= LP + uint16(266), // (303) with ::= WITH wqlist + uint16(266), // (304) with ::= WITH RECURSIVE wqlist + uint16(305), // (305) wqas ::= AS + uint16(305), // (306) wqas ::= AS MATERIALIZED + uint16(305), // (307) wqas ::= AS NOT MATERIALIZED + uint16(304), // (308) wqitem ::= nm eidlist_opt wqas LP select RP + uint16(241), // (309) wqlist ::= wqitem + uint16(241), // (310) wqlist ::= wqlist COMMA wqitem + uint16(306), // (311) windowdefn_list ::= windowdefn + uint16(306), // (312) windowdefn_list ::= windowdefn_list COMMA windowdefn + uint16(307), // (313) windowdefn ::= nm AS LP window RP + uint16(308), // (314) window ::= PARTITION BY nexprlist orderby_opt frame_opt + uint16(308), // (315) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt + uint16(308), // (316) window ::= ORDER BY sortlist frame_opt + uint16(308), // (317) window ::= nm ORDER BY sortlist frame_opt + uint16(308), // (318) window ::= frame_opt + uint16(308), // (319) window ::= nm frame_opt + uint16(309), // (320) frame_opt ::= + uint16(309), // (321) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt + uint16(309), // (322) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt + uint16(313), // (323) range_or_rows ::= RANGE|ROWS|GROUPS + uint16(315), // (324) frame_bound_s ::= frame_bound + uint16(315), // (325) frame_bound_s ::= UNBOUNDED PRECEDING + uint16(316), // (326) frame_bound_e ::= frame_bound + uint16(316), // (327) frame_bound_e ::= UNBOUNDED FOLLOWING + uint16(314), // (328) frame_bound ::= expr PRECEDING|FOLLOWING + uint16(314), // (329) frame_bound ::= CURRENT ROW + uint16(317), // (330) frame_exclude_opt ::= + uint16(317), // (331) frame_exclude_opt ::= EXCLUDE frame_exclude + uint16(318), // (332) frame_exclude ::= NO OTHERS + uint16(318), // (333) frame_exclude ::= CURRENT ROW + uint16(318), // (334) frame_exclude ::= GROUP|TIES + uint16(251), // (335) window_clause ::= WINDOW windowdefn_list + uint16(273), // (336) filter_over ::= filter_clause over_clause + uint16(273), // (337) filter_over ::= over_clause + uint16(273), // (338) filter_over ::= filter_clause + uint16(312), // (339) over_clause ::= OVER LP window RP + uint16(312), // (340) over_clause ::= OVER nm + uint16(311), // (341) filter_clause ::= FILTER LP WHERE expr RP + uint16(185), // (342) input ::= cmdlist + uint16(186), // (343) cmdlist ::= cmdlist ecmd + uint16(186), // (344) cmdlist ::= ecmd + uint16(187), // (345) ecmd ::= SEMI + uint16(187), // (346) ecmd ::= cmdx SEMI + uint16(187), // (347) ecmd ::= explain cmdx SEMI + uint16(192), // (348) trans_opt ::= + uint16(192), // (349) trans_opt ::= TRANSACTION + uint16(192), // (350) trans_opt ::= TRANSACTION nm + uint16(194), // (351) savepoint_opt ::= SAVEPOINT + uint16(194), // (352) savepoint_opt ::= + uint16(190), // (353) cmd ::= create_table create_table_args + uint16(203), // (354) table_option_set ::= table_option + uint16(201), // (355) columnlist ::= columnlist COMMA columnname carglist + uint16(201), // (356) columnlist ::= columnname carglist + uint16(193), // (357) nm ::= ID|INDEXED + uint16(193), // (358) nm ::= STRING + uint16(193), // (359) nm ::= JOIN_KW + uint16(208), // (360) typetoken ::= typename + uint16(209), // (361) typename ::= ID|STRING + uint16(210), // (362) signed ::= plus_num + uint16(210), // (363) signed ::= minus_num + uint16(207), // (364) carglist ::= carglist ccons + uint16(207), // (365) carglist ::= + uint16(215), // (366) ccons ::= NULL onconf + uint16(215), // (367) ccons ::= GENERATED ALWAYS AS generated + uint16(215), // (368) ccons ::= AS generated + uint16(202), // (369) conslist_opt ::= COMMA conslist + uint16(228), // (370) conslist ::= conslist tconscomma tcons + uint16(228), // (371) conslist ::= tcons + uint16(229), // (372) tconscomma ::= + uint16(233), // (373) defer_subclause_opt ::= defer_subclause + uint16(235), // (374) resolvetype ::= raisetype + uint16(239), // (375) selectnowith ::= oneselect + uint16(240), // (376) oneselect ::= values + uint16(254), // (377) sclp ::= selcollist COMMA + uint16(255), // (378) as ::= ID|STRING + uint16(264), // (379) indexed_opt ::= indexed_by + uint16(272), // (380) returning ::= + uint16(217), // (381) expr ::= term + uint16(274), // (382) likeop ::= LIKE_KW|MATCH + uint16(261), // (383) exprlist ::= nexprlist + uint16(284), // (384) nmnum ::= plus_num + uint16(284), // (385) nmnum ::= nm + uint16(284), // (386) nmnum ::= ON + uint16(284), // (387) nmnum ::= DELETE + uint16(284), // (388) nmnum ::= DEFAULT + uint16(211), // (389) plus_num ::= INTEGER|FLOAT + uint16(289), // (390) foreach_clause ::= + uint16(289), // (391) foreach_clause ::= FOR EACH ROW + uint16(292), // (392) trnm ::= nm + uint16(293), // (393) tridxby ::= + uint16(294), // (394) database_kw_opt ::= DATABASE + uint16(294), // (395) database_kw_opt ::= + uint16(297), // (396) kwcolumn_opt ::= + uint16(297), // (397) kwcolumn_opt ::= COLUMNKW + uint16(299), // (398) vtabarglist ::= vtabarg + uint16(299), // (399) vtabarglist ::= vtabarglist COMMA vtabarg + uint16(300), // (400) vtabarg ::= vtabarg vtabargtoken + uint16(303), // (401) anylist ::= + uint16(303), // (402) anylist ::= anylist LP anylist RP + uint16(303), // (403) anylist ::= anylist ANY + uint16(266), // (404) with ::= +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:166158:25 */ // For rule J, yyRuleInfoNRhs[J] contains the negative of the number // of symbols on the right-hand side of that rule. -var yyRuleInfoNRhs = [402]int8{ +var yyRuleInfoNRhs = [405]int8{ int8(-1), // (0) explain ::= EXPLAIN int8(-3), // (1) explain ::= EXPLAIN QUERY PLAN int8(-1), // (2) cmdx ::= cmd @@ -190404,29 +192587,29 @@ var yyRuleInfoNRhs = [402]int8{ int8(-2), // (106) from ::= FROM seltablist int8(-2), // (107) stl_prefix ::= seltablist joinop int8(0), // (108) stl_prefix ::= - int8(-7), // (109) seltablist ::= stl_prefix nm dbnm as indexed_opt on_opt using_opt - int8(-9), // (110) seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_opt using_opt - int8(-7), // (111) seltablist ::= stl_prefix LP select RP as on_opt using_opt - int8(-7), // (112) seltablist ::= stl_prefix LP seltablist RP as on_opt using_opt - int8(0), // (113) dbnm ::= - int8(-2), // (114) dbnm ::= DOT nm - int8(-1), // (115) fullname ::= nm - int8(-3), // (116) fullname ::= nm DOT nm - int8(-1), // (117) xfullname ::= nm - int8(-3), // (118) xfullname ::= nm DOT nm - int8(-5), // (119) xfullname ::= nm DOT nm AS nm - int8(-3), // (120) xfullname ::= nm AS nm - int8(-1), // (121) joinop ::= COMMA|JOIN - int8(-2), // (122) joinop ::= JOIN_KW JOIN - int8(-3), // (123) joinop ::= JOIN_KW nm JOIN - int8(-4), // (124) joinop ::= JOIN_KW nm nm JOIN - int8(-2), // (125) on_opt ::= ON expr - int8(0), // (126) on_opt ::= - int8(0), // (127) indexed_opt ::= - int8(-3), // (128) indexed_opt ::= INDEXED BY nm - int8(-2), // (129) indexed_opt ::= NOT INDEXED - int8(-4), // (130) using_opt ::= USING LP idlist RP - int8(0), // (131) using_opt ::= + int8(-5), // (109) seltablist ::= stl_prefix nm dbnm as on_using + int8(-6), // (110) seltablist ::= stl_prefix nm dbnm as indexed_by on_using + int8(-8), // (111) seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using + int8(-6), // (112) seltablist ::= stl_prefix LP select RP as on_using + int8(-6), // (113) seltablist ::= stl_prefix LP seltablist RP as on_using + int8(0), // (114) dbnm ::= + int8(-2), // (115) dbnm ::= DOT nm + int8(-1), // (116) fullname ::= nm + int8(-3), // (117) fullname ::= nm DOT nm + int8(-1), // (118) xfullname ::= nm + int8(-3), // (119) xfullname ::= nm DOT nm + int8(-5), // (120) xfullname ::= nm DOT nm AS nm + int8(-3), // (121) xfullname ::= nm AS nm + int8(-1), // (122) joinop ::= COMMA|JOIN + int8(-2), // (123) joinop ::= JOIN_KW JOIN + int8(-3), // (124) joinop ::= JOIN_KW nm JOIN + int8(-4), // (125) joinop ::= JOIN_KW nm nm JOIN + int8(-2), // (126) on_using ::= ON expr + int8(-4), // (127) on_using ::= USING LP idlist RP + int8(0), // (128) on_using ::= + int8(0), // (129) indexed_opt ::= + int8(-3), // (130) indexed_by ::= INDEXED BY nm + int8(-2), // (131) indexed_by ::= NOT INDEXED int8(0), // (132) orderby_opt ::= int8(-3), // (133) orderby_opt ::= ORDER BY sortlist int8(-5), // (134) sortlist ::= sortlist COMMA expr sortorder nulls @@ -190504,200 +192687,203 @@ var yyRuleInfoNRhs = [402]int8{ int8(-3), // (206) expr ::= expr NOT NULL int8(-3), // (207) expr ::= expr IS expr int8(-4), // (208) expr ::= expr IS NOT expr - int8(-2), // (209) expr ::= NOT expr - int8(-2), // (210) expr ::= BITNOT expr - int8(-2), // (211) expr ::= PLUS|MINUS expr - int8(-3), // (212) expr ::= expr PTR expr - int8(-1), // (213) between_op ::= BETWEEN - int8(-2), // (214) between_op ::= NOT BETWEEN - int8(-5), // (215) expr ::= expr between_op expr AND expr - int8(-1), // (216) in_op ::= IN - int8(-2), // (217) in_op ::= NOT IN - int8(-5), // (218) expr ::= expr in_op LP exprlist RP - int8(-3), // (219) expr ::= LP select RP - int8(-5), // (220) expr ::= expr in_op LP select RP - int8(-5), // (221) expr ::= expr in_op nm dbnm paren_exprlist - int8(-4), // (222) expr ::= EXISTS LP select RP - int8(-5), // (223) expr ::= CASE case_operand case_exprlist case_else END - int8(-5), // (224) case_exprlist ::= case_exprlist WHEN expr THEN expr - int8(-4), // (225) case_exprlist ::= WHEN expr THEN expr - int8(-2), // (226) case_else ::= ELSE expr - int8(0), // (227) case_else ::= - int8(-1), // (228) case_operand ::= expr - int8(0), // (229) case_operand ::= - int8(0), // (230) exprlist ::= - int8(-3), // (231) nexprlist ::= nexprlist COMMA expr - int8(-1), // (232) nexprlist ::= expr - int8(0), // (233) paren_exprlist ::= - int8(-3), // (234) paren_exprlist ::= LP exprlist RP - int8(-12), // (235) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt - int8(-1), // (236) uniqueflag ::= UNIQUE - int8(0), // (237) uniqueflag ::= - int8(0), // (238) eidlist_opt ::= - int8(-3), // (239) eidlist_opt ::= LP eidlist RP - int8(-5), // (240) eidlist ::= eidlist COMMA nm collate sortorder - int8(-3), // (241) eidlist ::= nm collate sortorder - int8(0), // (242) collate ::= - int8(-2), // (243) collate ::= COLLATE ID|STRING - int8(-4), // (244) cmd ::= DROP INDEX ifexists fullname - int8(-2), // (245) cmd ::= VACUUM vinto - int8(-3), // (246) cmd ::= VACUUM nm vinto - int8(-2), // (247) vinto ::= INTO expr - int8(0), // (248) vinto ::= - int8(-3), // (249) cmd ::= PRAGMA nm dbnm - int8(-5), // (250) cmd ::= PRAGMA nm dbnm EQ nmnum - int8(-6), // (251) cmd ::= PRAGMA nm dbnm LP nmnum RP - int8(-5), // (252) cmd ::= PRAGMA nm dbnm EQ minus_num - int8(-6), // (253) cmd ::= PRAGMA nm dbnm LP minus_num RP - int8(-2), // (254) plus_num ::= PLUS INTEGER|FLOAT - int8(-2), // (255) minus_num ::= MINUS INTEGER|FLOAT - int8(-5), // (256) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END - int8(-11), // (257) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause - int8(-1), // (258) trigger_time ::= BEFORE|AFTER - int8(-2), // (259) trigger_time ::= INSTEAD OF - int8(0), // (260) trigger_time ::= - int8(-1), // (261) trigger_event ::= DELETE|INSERT - int8(-1), // (262) trigger_event ::= UPDATE - int8(-3), // (263) trigger_event ::= UPDATE OF idlist - int8(0), // (264) when_clause ::= - int8(-2), // (265) when_clause ::= WHEN expr - int8(-3), // (266) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI - int8(-2), // (267) trigger_cmd_list ::= trigger_cmd SEMI - int8(-3), // (268) trnm ::= nm DOT nm - int8(-3), // (269) tridxby ::= INDEXED BY nm - int8(-2), // (270) tridxby ::= NOT INDEXED - int8(-9), // (271) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt - int8(-8), // (272) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt - int8(-6), // (273) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt - int8(-3), // (274) trigger_cmd ::= scanpt select scanpt - int8(-4), // (275) expr ::= RAISE LP IGNORE RP - int8(-6), // (276) expr ::= RAISE LP raisetype COMMA nm RP - int8(-1), // (277) raisetype ::= ROLLBACK - int8(-1), // (278) raisetype ::= ABORT - int8(-1), // (279) raisetype ::= FAIL - int8(-4), // (280) cmd ::= DROP TRIGGER ifexists fullname - int8(-6), // (281) cmd ::= ATTACH database_kw_opt expr AS expr key_opt - int8(-3), // (282) cmd ::= DETACH database_kw_opt expr - int8(0), // (283) key_opt ::= - int8(-2), // (284) key_opt ::= KEY expr - int8(-1), // (285) cmd ::= REINDEX - int8(-3), // (286) cmd ::= REINDEX nm dbnm - int8(-1), // (287) cmd ::= ANALYZE - int8(-3), // (288) cmd ::= ANALYZE nm dbnm - int8(-6), // (289) cmd ::= ALTER TABLE fullname RENAME TO nm - int8(-7), // (290) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist - int8(-6), // (291) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm - int8(-1), // (292) add_column_fullname ::= fullname - int8(-8), // (293) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm - int8(-1), // (294) cmd ::= create_vtab - int8(-4), // (295) cmd ::= create_vtab LP vtabarglist RP - int8(-8), // (296) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm - int8(0), // (297) vtabarg ::= - int8(-1), // (298) vtabargtoken ::= ANY - int8(-3), // (299) vtabargtoken ::= lp anylist RP - int8(-1), // (300) lp ::= LP - int8(-2), // (301) with ::= WITH wqlist - int8(-3), // (302) with ::= WITH RECURSIVE wqlist - int8(-1), // (303) wqas ::= AS - int8(-2), // (304) wqas ::= AS MATERIALIZED - int8(-3), // (305) wqas ::= AS NOT MATERIALIZED - int8(-6), // (306) wqitem ::= nm eidlist_opt wqas LP select RP - int8(-1), // (307) wqlist ::= wqitem - int8(-3), // (308) wqlist ::= wqlist COMMA wqitem - int8(-1), // (309) windowdefn_list ::= windowdefn - int8(-3), // (310) windowdefn_list ::= windowdefn_list COMMA windowdefn - int8(-5), // (311) windowdefn ::= nm AS LP window RP - int8(-5), // (312) window ::= PARTITION BY nexprlist orderby_opt frame_opt - int8(-6), // (313) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt - int8(-4), // (314) window ::= ORDER BY sortlist frame_opt - int8(-5), // (315) window ::= nm ORDER BY sortlist frame_opt - int8(-1), // (316) window ::= frame_opt - int8(-2), // (317) window ::= nm frame_opt - int8(0), // (318) frame_opt ::= - int8(-3), // (319) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt - int8(-6), // (320) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt - int8(-1), // (321) range_or_rows ::= RANGE|ROWS|GROUPS - int8(-1), // (322) frame_bound_s ::= frame_bound - int8(-2), // (323) frame_bound_s ::= UNBOUNDED PRECEDING - int8(-1), // (324) frame_bound_e ::= frame_bound - int8(-2), // (325) frame_bound_e ::= UNBOUNDED FOLLOWING - int8(-2), // (326) frame_bound ::= expr PRECEDING|FOLLOWING - int8(-2), // (327) frame_bound ::= CURRENT ROW - int8(0), // (328) frame_exclude_opt ::= - int8(-2), // (329) frame_exclude_opt ::= EXCLUDE frame_exclude - int8(-2), // (330) frame_exclude ::= NO OTHERS - int8(-2), // (331) frame_exclude ::= CURRENT ROW - int8(-1), // (332) frame_exclude ::= GROUP|TIES - int8(-2), // (333) window_clause ::= WINDOW windowdefn_list - int8(-2), // (334) filter_over ::= filter_clause over_clause - int8(-1), // (335) filter_over ::= over_clause - int8(-1), // (336) filter_over ::= filter_clause - int8(-4), // (337) over_clause ::= OVER LP window RP - int8(-2), // (338) over_clause ::= OVER nm - int8(-5), // (339) filter_clause ::= FILTER LP WHERE expr RP - int8(-1), // (340) input ::= cmdlist - int8(-2), // (341) cmdlist ::= cmdlist ecmd - int8(-1), // (342) cmdlist ::= ecmd - int8(-1), // (343) ecmd ::= SEMI - int8(-2), // (344) ecmd ::= cmdx SEMI - int8(-3), // (345) ecmd ::= explain cmdx SEMI - int8(0), // (346) trans_opt ::= - int8(-1), // (347) trans_opt ::= TRANSACTION - int8(-2), // (348) trans_opt ::= TRANSACTION nm - int8(-1), // (349) savepoint_opt ::= SAVEPOINT - int8(0), // (350) savepoint_opt ::= - int8(-2), // (351) cmd ::= create_table create_table_args - int8(-1), // (352) table_option_set ::= table_option - int8(-4), // (353) columnlist ::= columnlist COMMA columnname carglist - int8(-2), // (354) columnlist ::= columnname carglist - int8(-1), // (355) nm ::= ID|INDEXED - int8(-1), // (356) nm ::= STRING - int8(-1), // (357) nm ::= JOIN_KW - int8(-1), // (358) typetoken ::= typename - int8(-1), // (359) typename ::= ID|STRING - int8(-1), // (360) signed ::= plus_num - int8(-1), // (361) signed ::= minus_num - int8(-2), // (362) carglist ::= carglist ccons - int8(0), // (363) carglist ::= - int8(-2), // (364) ccons ::= NULL onconf - int8(-4), // (365) ccons ::= GENERATED ALWAYS AS generated - int8(-2), // (366) ccons ::= AS generated - int8(-2), // (367) conslist_opt ::= COMMA conslist - int8(-3), // (368) conslist ::= conslist tconscomma tcons - int8(-1), // (369) conslist ::= tcons - int8(0), // (370) tconscomma ::= - int8(-1), // (371) defer_subclause_opt ::= defer_subclause - int8(-1), // (372) resolvetype ::= raisetype - int8(-1), // (373) selectnowith ::= oneselect - int8(-1), // (374) oneselect ::= values - int8(-2), // (375) sclp ::= selcollist COMMA - int8(-1), // (376) as ::= ID|STRING - int8(0), // (377) returning ::= - int8(-1), // (378) expr ::= term - int8(-1), // (379) likeop ::= LIKE_KW|MATCH - int8(-1), // (380) exprlist ::= nexprlist - int8(-1), // (381) nmnum ::= plus_num - int8(-1), // (382) nmnum ::= nm - int8(-1), // (383) nmnum ::= ON - int8(-1), // (384) nmnum ::= DELETE - int8(-1), // (385) nmnum ::= DEFAULT - int8(-1), // (386) plus_num ::= INTEGER|FLOAT - int8(0), // (387) foreach_clause ::= - int8(-3), // (388) foreach_clause ::= FOR EACH ROW - int8(-1), // (389) trnm ::= nm - int8(0), // (390) tridxby ::= - int8(-1), // (391) database_kw_opt ::= DATABASE - int8(0), // (392) database_kw_opt ::= - int8(0), // (393) kwcolumn_opt ::= - int8(-1), // (394) kwcolumn_opt ::= COLUMNKW - int8(-1), // (395) vtabarglist ::= vtabarg - int8(-3), // (396) vtabarglist ::= vtabarglist COMMA vtabarg - int8(-2), // (397) vtabarg ::= vtabarg vtabargtoken - int8(0), // (398) anylist ::= - int8(-4), // (399) anylist ::= anylist LP anylist RP - int8(-2), // (400) anylist ::= anylist ANY - int8(0), // (401) with ::= -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:164533:26 */ + int8(-6), // (209) expr ::= expr IS NOT DISTINCT FROM expr + int8(-5), // (210) expr ::= expr IS DISTINCT FROM expr + int8(-2), // (211) expr ::= NOT expr + int8(-2), // (212) expr ::= BITNOT expr + int8(-2), // (213) expr ::= PLUS|MINUS expr + int8(-3), // (214) expr ::= expr PTR expr + int8(-1), // (215) between_op ::= BETWEEN + int8(-2), // (216) between_op ::= NOT BETWEEN + int8(-5), // (217) expr ::= expr between_op expr AND expr + int8(-1), // (218) in_op ::= IN + int8(-2), // (219) in_op ::= NOT IN + int8(-5), // (220) expr ::= expr in_op LP exprlist RP + int8(-3), // (221) expr ::= LP select RP + int8(-5), // (222) expr ::= expr in_op LP select RP + int8(-5), // (223) expr ::= expr in_op nm dbnm paren_exprlist + int8(-4), // (224) expr ::= EXISTS LP select RP + int8(-5), // (225) expr ::= CASE case_operand case_exprlist case_else END + int8(-5), // (226) case_exprlist ::= case_exprlist WHEN expr THEN expr + int8(-4), // (227) case_exprlist ::= WHEN expr THEN expr + int8(-2), // (228) case_else ::= ELSE expr + int8(0), // (229) case_else ::= + int8(-1), // (230) case_operand ::= expr + int8(0), // (231) case_operand ::= + int8(0), // (232) exprlist ::= + int8(-3), // (233) nexprlist ::= nexprlist COMMA expr + int8(-1), // (234) nexprlist ::= expr + int8(0), // (235) paren_exprlist ::= + int8(-3), // (236) paren_exprlist ::= LP exprlist RP + int8(-12), // (237) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt + int8(-1), // (238) uniqueflag ::= UNIQUE + int8(0), // (239) uniqueflag ::= + int8(0), // (240) eidlist_opt ::= + int8(-3), // (241) eidlist_opt ::= LP eidlist RP + int8(-5), // (242) eidlist ::= eidlist COMMA nm collate sortorder + int8(-3), // (243) eidlist ::= nm collate sortorder + int8(0), // (244) collate ::= + int8(-2), // (245) collate ::= COLLATE ID|STRING + int8(-4), // (246) cmd ::= DROP INDEX ifexists fullname + int8(-2), // (247) cmd ::= VACUUM vinto + int8(-3), // (248) cmd ::= VACUUM nm vinto + int8(-2), // (249) vinto ::= INTO expr + int8(0), // (250) vinto ::= + int8(-3), // (251) cmd ::= PRAGMA nm dbnm + int8(-5), // (252) cmd ::= PRAGMA nm dbnm EQ nmnum + int8(-6), // (253) cmd ::= PRAGMA nm dbnm LP nmnum RP + int8(-5), // (254) cmd ::= PRAGMA nm dbnm EQ minus_num + int8(-6), // (255) cmd ::= PRAGMA nm dbnm LP minus_num RP + int8(-2), // (256) plus_num ::= PLUS INTEGER|FLOAT + int8(-2), // (257) minus_num ::= MINUS INTEGER|FLOAT + int8(-5), // (258) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END + int8(-11), // (259) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause + int8(-1), // (260) trigger_time ::= BEFORE|AFTER + int8(-2), // (261) trigger_time ::= INSTEAD OF + int8(0), // (262) trigger_time ::= + int8(-1), // (263) trigger_event ::= DELETE|INSERT + int8(-1), // (264) trigger_event ::= UPDATE + int8(-3), // (265) trigger_event ::= UPDATE OF idlist + int8(0), // (266) when_clause ::= + int8(-2), // (267) when_clause ::= WHEN expr + int8(-3), // (268) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI + int8(-2), // (269) trigger_cmd_list ::= trigger_cmd SEMI + int8(-3), // (270) trnm ::= nm DOT nm + int8(-3), // (271) tridxby ::= INDEXED BY nm + int8(-2), // (272) tridxby ::= NOT INDEXED + int8(-9), // (273) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt + int8(-8), // (274) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt + int8(-6), // (275) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt + int8(-3), // (276) trigger_cmd ::= scanpt select scanpt + int8(-4), // (277) expr ::= RAISE LP IGNORE RP + int8(-6), // (278) expr ::= RAISE LP raisetype COMMA nm RP + int8(-1), // (279) raisetype ::= ROLLBACK + int8(-1), // (280) raisetype ::= ABORT + int8(-1), // (281) raisetype ::= FAIL + int8(-4), // (282) cmd ::= DROP TRIGGER ifexists fullname + int8(-6), // (283) cmd ::= ATTACH database_kw_opt expr AS expr key_opt + int8(-3), // (284) cmd ::= DETACH database_kw_opt expr + int8(0), // (285) key_opt ::= + int8(-2), // (286) key_opt ::= KEY expr + int8(-1), // (287) cmd ::= REINDEX + int8(-3), // (288) cmd ::= REINDEX nm dbnm + int8(-1), // (289) cmd ::= ANALYZE + int8(-3), // (290) cmd ::= ANALYZE nm dbnm + int8(-6), // (291) cmd ::= ALTER TABLE fullname RENAME TO nm + int8(-7), // (292) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist + int8(-6), // (293) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm + int8(-1), // (294) add_column_fullname ::= fullname + int8(-8), // (295) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm + int8(-1), // (296) cmd ::= create_vtab + int8(-4), // (297) cmd ::= create_vtab LP vtabarglist RP + int8(-8), // (298) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm + int8(0), // (299) vtabarg ::= + int8(-1), // (300) vtabargtoken ::= ANY + int8(-3), // (301) vtabargtoken ::= lp anylist RP + int8(-1), // (302) lp ::= LP + int8(-2), // (303) with ::= WITH wqlist + int8(-3), // (304) with ::= WITH RECURSIVE wqlist + int8(-1), // (305) wqas ::= AS + int8(-2), // (306) wqas ::= AS MATERIALIZED + int8(-3), // (307) wqas ::= AS NOT MATERIALIZED + int8(-6), // (308) wqitem ::= nm eidlist_opt wqas LP select RP + int8(-1), // (309) wqlist ::= wqitem + int8(-3), // (310) wqlist ::= wqlist COMMA wqitem + int8(-1), // (311) windowdefn_list ::= windowdefn + int8(-3), // (312) windowdefn_list ::= windowdefn_list COMMA windowdefn + int8(-5), // (313) windowdefn ::= nm AS LP window RP + int8(-5), // (314) window ::= PARTITION BY nexprlist orderby_opt frame_opt + int8(-6), // (315) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt + int8(-4), // (316) window ::= ORDER BY sortlist frame_opt + int8(-5), // (317) window ::= nm ORDER BY sortlist frame_opt + int8(-1), // (318) window ::= frame_opt + int8(-2), // (319) window ::= nm frame_opt + int8(0), // (320) frame_opt ::= + int8(-3), // (321) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt + int8(-6), // (322) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt + int8(-1), // (323) range_or_rows ::= RANGE|ROWS|GROUPS + int8(-1), // (324) frame_bound_s ::= frame_bound + int8(-2), // (325) frame_bound_s ::= UNBOUNDED PRECEDING + int8(-1), // (326) frame_bound_e ::= frame_bound + int8(-2), // (327) frame_bound_e ::= UNBOUNDED FOLLOWING + int8(-2), // (328) frame_bound ::= expr PRECEDING|FOLLOWING + int8(-2), // (329) frame_bound ::= CURRENT ROW + int8(0), // (330) frame_exclude_opt ::= + int8(-2), // (331) frame_exclude_opt ::= EXCLUDE frame_exclude + int8(-2), // (332) frame_exclude ::= NO OTHERS + int8(-2), // (333) frame_exclude ::= CURRENT ROW + int8(-1), // (334) frame_exclude ::= GROUP|TIES + int8(-2), // (335) window_clause ::= WINDOW windowdefn_list + int8(-2), // (336) filter_over ::= filter_clause over_clause + int8(-1), // (337) filter_over ::= over_clause + int8(-1), // (338) filter_over ::= filter_clause + int8(-4), // (339) over_clause ::= OVER LP window RP + int8(-2), // (340) over_clause ::= OVER nm + int8(-5), // (341) filter_clause ::= FILTER LP WHERE expr RP + int8(-1), // (342) input ::= cmdlist + int8(-2), // (343) cmdlist ::= cmdlist ecmd + int8(-1), // (344) cmdlist ::= ecmd + int8(-1), // (345) ecmd ::= SEMI + int8(-2), // (346) ecmd ::= cmdx SEMI + int8(-3), // (347) ecmd ::= explain cmdx SEMI + int8(0), // (348) trans_opt ::= + int8(-1), // (349) trans_opt ::= TRANSACTION + int8(-2), // (350) trans_opt ::= TRANSACTION nm + int8(-1), // (351) savepoint_opt ::= SAVEPOINT + int8(0), // (352) savepoint_opt ::= + int8(-2), // (353) cmd ::= create_table create_table_args + int8(-1), // (354) table_option_set ::= table_option + int8(-4), // (355) columnlist ::= columnlist COMMA columnname carglist + int8(-2), // (356) columnlist ::= columnname carglist + int8(-1), // (357) nm ::= ID|INDEXED + int8(-1), // (358) nm ::= STRING + int8(-1), // (359) nm ::= JOIN_KW + int8(-1), // (360) typetoken ::= typename + int8(-1), // (361) typename ::= ID|STRING + int8(-1), // (362) signed ::= plus_num + int8(-1), // (363) signed ::= minus_num + int8(-2), // (364) carglist ::= carglist ccons + int8(0), // (365) carglist ::= + int8(-2), // (366) ccons ::= NULL onconf + int8(-4), // (367) ccons ::= GENERATED ALWAYS AS generated + int8(-2), // (368) ccons ::= AS generated + int8(-2), // (369) conslist_opt ::= COMMA conslist + int8(-3), // (370) conslist ::= conslist tconscomma tcons + int8(-1), // (371) conslist ::= tcons + int8(0), // (372) tconscomma ::= + int8(-1), // (373) defer_subclause_opt ::= defer_subclause + int8(-1), // (374) resolvetype ::= raisetype + int8(-1), // (375) selectnowith ::= oneselect + int8(-1), // (376) oneselect ::= values + int8(-2), // (377) sclp ::= selcollist COMMA + int8(-1), // (378) as ::= ID|STRING + int8(-1), // (379) indexed_opt ::= indexed_by + int8(0), // (380) returning ::= + int8(-1), // (381) expr ::= term + int8(-1), // (382) likeop ::= LIKE_KW|MATCH + int8(-1), // (383) exprlist ::= nexprlist + int8(-1), // (384) nmnum ::= plus_num + int8(-1), // (385) nmnum ::= nm + int8(-1), // (386) nmnum ::= ON + int8(-1), // (387) nmnum ::= DELETE + int8(-1), // (388) nmnum ::= DEFAULT + int8(-1), // (389) plus_num ::= INTEGER|FLOAT + int8(0), // (390) foreach_clause ::= + int8(-3), // (391) foreach_clause ::= FOR EACH ROW + int8(-1), // (392) trnm ::= nm + int8(0), // (393) tridxby ::= + int8(-1), // (394) database_kw_opt ::= DATABASE + int8(0), // (395) database_kw_opt ::= + int8(0), // (396) kwcolumn_opt ::= + int8(-1), // (397) kwcolumn_opt ::= COLUMNKW + int8(-1), // (398) vtabarglist ::= vtabarg + int8(-3), // (399) vtabarglist ::= vtabarglist COMMA vtabarg + int8(-2), // (400) vtabarg ::= vtabarg vtabargtoken + int8(0), // (401) anylist ::= + int8(-4), // (402) anylist ::= anylist LP anylist RP + int8(-2), // (403) anylist ::= anylist ANY + int8(0), // (404) with ::= +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:166568:26 */ // Forward Declaration @@ -190709,9 +192895,9 @@ var yyRuleInfoNRhs = [402]int8{ // if the lookahead token has already been consumed. As this procedure is // only called from one place, optimizing compilers will in-line it, which // means that the extra parameters have no performance impact. -func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead int32, yyLookaheadToken Token, pParse uintptr) uint16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:164950:21: */ - bp := tls.Alloc(144) - defer tls.Free(144) +func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead int32, yyLookaheadToken Token, pParse uintptr) uint16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:166988:21: */ + bp := tls.Alloc(160) + defer tls.Free(160) var yygoto int32 // The next state var yyact uint16 // The next action @@ -190764,7 +192950,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in fallthrough case uint32(7): /* transtype ::= EXCLUSIVE */ fallthrough - case uint32(321): /* range_or_rows ::= RANGE|ROWS|GROUPS */ + case uint32(323): /* range_or_rows ::= RANGE|ROWS|GROUPS */ { *(*int32)(unsafe.Pointer(yymsp + 8)) = int32((*YyStackEntry)(unsafe.Pointer(yymsp)).Fmajor) /*A-overwrites-X*/ } @@ -190815,7 +193001,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in fallthrough case uint32(98): /* distinct ::= */ fallthrough - case uint32(242): /* collate ::= */ + case uint32(244): /* collate ::= */ { *(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = 0 } @@ -190854,21 +193040,21 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in break case uint32(23): /* table_option ::= WITHOUT nm */ { - if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(5) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+17532, 5) == 0 { + if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(5) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+17562, 5) == 0 { *(*U32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = U32(TF_WithoutRowid | TF_NoVisibleRowid) } else { *(*U32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = U32(0) - Xsqlite3ErrorMsg(tls, pParse, ts+24159, libc.VaList(bp, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz)) + Xsqlite3ErrorMsg(tls, pParse, ts+24124, libc.VaList(bp, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz)) } } break case uint32(24): /* table_option ::= nm */ { - if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+17445, 6) == 0 { + if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+17475, 6) == 0 { *(*U32)(unsafe.Pointer(bp + 40)) = U32(TF_Strict) } else { *(*U32)(unsafe.Pointer(bp + 40)) = U32(0) - Xsqlite3ErrorMsg(tls, pParse, ts+24159, libc.VaList(bp+16, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz)) + Xsqlite3ErrorMsg(tls, pParse, ts+24124, libc.VaList(bp+16, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz)) } } *(*U32)(unsafe.Pointer(yymsp + 8)) = *(*U32)(unsafe.Pointer(bp + 40)) @@ -191081,11 +193267,11 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in fallthrough // init_deferred_pred_opt ::= INITIALLY DEFERRED case uint32(80): /* ifexists ::= IF EXISTS */ fallthrough - case uint32(214): /* between_op ::= NOT BETWEEN */ + case uint32(216): /* between_op ::= NOT BETWEEN */ fallthrough - case uint32(217): /* in_op ::= NOT IN */ + case uint32(219): /* in_op ::= NOT IN */ fallthrough - case uint32(243): /* collate ::= COLLATE ID|STRING */ + case uint32(245): /* collate ::= COLLATE ID|STRING */ { *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = 1 } @@ -191197,7 +193383,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in (*Token)(unsafe.Pointer(bp + 96 /* &x */)).Fn = uint32(0) parserDoubleLinkSelect(tls, pParse, pRhs) - pFrom = Xsqlite3SrcListAppendFromTerm(tls, pParse, uintptr(0), uintptr(0), uintptr(0), bp+96, pRhs, uintptr(0), uintptr(0)) + pFrom = Xsqlite3SrcListAppendFromTerm(tls, pParse, uintptr(0), uintptr(0), uintptr(0), bp+96, pRhs, uintptr(0)) pRhs = Xsqlite3SelectNew(tls, pParse, uintptr(0), pFrom, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uint32(0), uintptr(0)) } if pRhs != 0 { @@ -191281,11 +193467,11 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in fallthrough case uint32(142): /* groupby_opt ::= */ fallthrough - case uint32(230): /* exprlist ::= */ + case uint32(232): /* exprlist ::= */ fallthrough - case uint32(233): /* paren_exprlist ::= */ + case uint32(235): /* paren_exprlist ::= */ fallthrough - case uint32(238): /* eidlist_opt ::= */ + case uint32(240): /* eidlist_opt ::= */ { *(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0) } @@ -191315,11 +193501,11 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in break case uint32(103): fallthrough // as ::= AS nm - case uint32(114): /* dbnm ::= DOT nm */ + case uint32(115): /* dbnm ::= DOT nm */ fallthrough - case uint32(254): /* plus_num ::= PLUS INTEGER|FLOAT */ + case uint32(256): /* plus_num ::= PLUS INTEGER|FLOAT */ fallthrough - case uint32(255): /* minus_num ::= MINUS INTEGER|FLOAT */ + case uint32(257): /* minus_num ::= MINUS INTEGER|FLOAT */ { *(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*Token)(unsafe.Pointer(yymsp + 8)) } @@ -191334,74 +193520,82 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in case uint32(106): /* from ::= FROM seltablist */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8)) - Xsqlite3SrcListShiftJoinType(tls, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8))) + Xsqlite3SrcListShiftJoinType(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8))) } break case uint32(107): /* stl_prefix ::= seltablist joinop */ { if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) != 0 && (*SrcList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)))).FnSrc > 0 { - (*SrcItem)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) + 8 + uintptr((*SrcList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)))).FnSrc-1)*112)).Ffg.Fjointype = U8(*(*int32)(unsafe.Pointer(yymsp + 8))) + (*SrcItem)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) + 8 + uintptr((*SrcList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)))).FnSrc-1)*104)).Ffg.Fjointype = U8(*(*int32)(unsafe.Pointer(yymsp + 8))) } } break - case uint32(109): /* seltablist ::= stl_prefix nm dbnm as indexed_opt on_opt using_opt */ + case uint32(109): /* seltablist ::= stl_prefix nm dbnm as on_using */ + { + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = Xsqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), yymsp+libc.UintptrFromInt32(-3)*24+8, yymsp+libc.UintptrFromInt32(-2)*24+8, yymsp+libc.UintptrFromInt32(-1)*24+8, uintptr(0), yymsp+8) + } + break + case uint32(110): /* seltablist ::= stl_prefix nm dbnm as indexed_by on_using */ { - *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)) = Xsqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)), yymsp+libc.UintptrFromInt32(-5)*24+8, yymsp+libc.UintptrFromInt32(-4)*24+8, yymsp+libc.UintptrFromInt32(-3)*24+8, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) - Xsqlite3SrcListIndexedBy(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)), yymsp+libc.UintptrFromInt32(-2)*24+8) + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = Xsqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), yymsp+libc.UintptrFromInt32(-4)*24+8, yymsp+libc.UintptrFromInt32(-3)*24+8, yymsp+libc.UintptrFromInt32(-2)*24+8, uintptr(0), yymsp+8) + Xsqlite3SrcListIndexedBy(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), yymsp+libc.UintptrFromInt32(-1)*24+8) } break - case uint32(110): /* seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_opt using_opt */ + case uint32(111): /* seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using */ { - *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-8)*24 + 8)) = Xsqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-8)*24 + 8)), yymsp+libc.UintptrFromInt32(-7)*24+8, yymsp+libc.UintptrFromInt32(-6)*24+8, yymsp+libc.UintptrFromInt32(-2)*24+8, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) - Xsqlite3SrcListFuncArgs(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-8)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8))) + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-7)*24 + 8)) = Xsqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-7)*24 + 8)), yymsp+libc.UintptrFromInt32(-6)*24+8, yymsp+libc.UintptrFromInt32(-5)*24+8, yymsp+libc.UintptrFromInt32(-1)*24+8, uintptr(0), yymsp+8) + Xsqlite3SrcListFuncArgs(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-7)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8))) } break - case uint32(111): /* seltablist ::= stl_prefix LP select RP as on_opt using_opt */ + case uint32(112): /* seltablist ::= stl_prefix LP select RP as on_using */ { - *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)) = Xsqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)), uintptr(0), uintptr(0), yymsp+libc.UintptrFromInt32(-2)*24+8, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = Xsqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), uintptr(0), uintptr(0), yymsp+libc.UintptrFromInt32(-1)*24+8, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)), yymsp+8) } break - case uint32(112): /* seltablist ::= stl_prefix LP seltablist RP as on_opt using_opt */ - { - if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)) == uintptr(0) && (*Token)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-2)*24+8)).Fn == uint32(0) && *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) == uintptr(0) && *(*uintptr)(unsafe.Pointer(yymsp + 8)) == uintptr(0) { - *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) - } else if (*SrcList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)))).FnSrc == 1 { - *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)) = Xsqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)), uintptr(0), uintptr(0), yymsp+libc.UintptrFromInt32(-2)*24+8, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) - if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)) != 0 { - var pNew uintptr = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)) + 8 + uintptr((*SrcList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)))).FnSrc-1)*112 - var pOld uintptr = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) + 8 /* &.a */ + case uint32(113): /* seltablist ::= stl_prefix LP seltablist RP as on_using */ + { + if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) == uintptr(0) && (*Token)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-1)*24+8)).Fn == uint32(0) && (*OnOrUsing)(unsafe.Pointer(yymsp+8)).FpOn == uintptr(0) && (*OnOrUsing)(unsafe.Pointer(yymsp+8)).FpUsing == uintptr(0) { + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) + } else if (*SrcList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)))).FnSrc == 1 { + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = Xsqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), uintptr(0), uintptr(0), yymsp+libc.UintptrFromInt32(-1)*24+8, uintptr(0), yymsp+8) + if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) != 0 { + var pNew uintptr = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) + 8 + uintptr((*SrcList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)))).FnSrc-1)*104 + var pOld uintptr = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) + 8 /* &.a */ (*SrcItem)(unsafe.Pointer(pNew)).FzName = (*SrcItem)(unsafe.Pointer(pOld)).FzName (*SrcItem)(unsafe.Pointer(pNew)).FzDatabase = (*SrcItem)(unsafe.Pointer(pOld)).FzDatabase (*SrcItem)(unsafe.Pointer(pNew)).FpSelect = (*SrcItem)(unsafe.Pointer(pOld)).FpSelect + if (*SrcItem)(unsafe.Pointer(pNew)).FpSelect != 0 && (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pNew)).FpSelect)).FselFlags&U32(SF_NestedFrom) != U32(0) { + libc.SetBitFieldPtr16Uint32(pNew+60+4, uint32(1), 13, 0x2000) + } if uint32(int32(*(*uint16)(unsafe.Pointer(pOld + 60 + 4))&0x4>>2)) != 0 { - *(*uintptr)(unsafe.Pointer(pNew + 96)) = *(*uintptr)(unsafe.Pointer(pOld + 96)) - *(*uintptr)(unsafe.Pointer(pOld + 96)) = uintptr(0) + *(*uintptr)(unsafe.Pointer(pNew + 88)) = *(*uintptr)(unsafe.Pointer(pOld + 88)) + *(*uintptr)(unsafe.Pointer(pOld + 88)) = uintptr(0) libc.SetBitFieldPtr16Uint32(pOld+60+4, uint32(0), 2, 0x4) libc.SetBitFieldPtr16Uint32(pNew+60+4, uint32(1), 2, 0x4) } (*SrcItem)(unsafe.Pointer(pOld)).FzName = libc.AssignPtrUintptr(pOld+8, uintptr(0)) (*SrcItem)(unsafe.Pointer(pOld)).FpSelect = uintptr(0) } - Xsqlite3SrcListDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8))) + Xsqlite3SrcListDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8))) } else { var pSubquery uintptr - Xsqlite3SrcListShiftJoinType(tls, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8))) - pSubquery = Xsqlite3SelectNew(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uint32(SF_NestedFrom), uintptr(0)) - *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)) = Xsqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)), uintptr(0), uintptr(0), yymsp+libc.UintptrFromInt32(-2)*24+8, pSubquery, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) + Xsqlite3SrcListShiftJoinType(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8))) + pSubquery = Xsqlite3SelectNew(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uint32(SF_NestedFrom), uintptr(0)) + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = Xsqlite3SrcListAppendFromTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), uintptr(0), uintptr(0), yymsp+libc.UintptrFromInt32(-1)*24+8, pSubquery, yymsp+8) } } break - case uint32(113): + case uint32(114): fallthrough // dbnm ::= - case uint32(127): /* indexed_opt ::= */ + case uint32(129): /* indexed_opt ::= */ { (*Token)(unsafe.Pointer(yymsp + 1*24 + 8)).Fz = uintptr(0) (*Token)(unsafe.Pointer(yymsp + 1*24 + 8)).Fn = uint32(0) } break - case uint32(115): /* fullname ::= nm */ + case uint32(116): /* fullname ::= nm */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+8, uintptr(0)) if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME && *(*uintptr)(unsafe.Pointer(bp + 40)) != 0 { @@ -191410,7 +193604,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } *(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(116): /* fullname ::= nm DOT nm */ + case uint32(117): /* fullname ::= nm DOT nm */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+libc.UintptrFromInt32(-2)*24+8, yymsp+8) if int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME && *(*uintptr)(unsafe.Pointer(bp + 40)) != 0 { @@ -191419,17 +193613,17 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(117): /* xfullname ::= nm */ + case uint32(118): /* xfullname ::= nm */ { *(*uintptr)(unsafe.Pointer(yymsp + 8)) = Xsqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+8, uintptr(0)) /*A-overwrites-X*/ } break - case uint32(118): /* xfullname ::= nm DOT nm */ + case uint32(119): /* xfullname ::= nm DOT nm */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = Xsqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+libc.UintptrFromInt32(-2)*24+8, yymsp+8) /*A-overwrites-X*/ } break - case uint32(119): /* xfullname ::= nm DOT nm AS nm */ + case uint32(120): /* xfullname ::= nm DOT nm AS nm */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = Xsqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+libc.UintptrFromInt32(-4)*24+8, yymsp+libc.UintptrFromInt32(-2)*24+8) //A-overwrites-X if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) != 0 { @@ -191437,7 +193631,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } } break - case uint32(120): /* xfullname ::= nm AS nm */ + case uint32(121): /* xfullname ::= nm AS nm */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = Xsqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+libc.UintptrFromInt32(-2)*24+8, uintptr(0)) //A-overwrites-X if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) != 0 { @@ -191445,81 +193639,53 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } } break - case uint32(121): /* joinop ::= COMMA|JOIN */ + case uint32(122): /* joinop ::= COMMA|JOIN */ { *(*int32)(unsafe.Pointer(yymsp + 8)) = JT_INNER } break - case uint32(122): /* joinop ::= JOIN_KW JOIN */ + case uint32(123): /* joinop ::= JOIN_KW JOIN */ { *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = Xsqlite3JoinType(tls, pParse, yymsp+libc.UintptrFromInt32(-1)*24+8, uintptr(0), uintptr(0)) /*X-overwrites-A*/ } break - case uint32(123): /* joinop ::= JOIN_KW nm JOIN */ + case uint32(124): /* joinop ::= JOIN_KW nm JOIN */ { *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = Xsqlite3JoinType(tls, pParse, yymsp+libc.UintptrFromInt32(-2)*24+8, yymsp+libc.UintptrFromInt32(-1)*24+8, uintptr(0)) /*X-overwrites-A*/ } break - case uint32(124): /* joinop ::= JOIN_KW nm nm JOIN */ + case uint32(125): /* joinop ::= JOIN_KW nm nm JOIN */ { *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) = Xsqlite3JoinType(tls, pParse, yymsp+libc.UintptrFromInt32(-3)*24+8, yymsp+libc.UintptrFromInt32(-2)*24+8, yymsp+libc.UintptrFromInt32(-1)*24+8) /*X-overwrites-A*/ } break - case uint32(125): - fallthrough // on_opt ::= ON expr - case uint32(145): /* having_opt ::= HAVING expr */ - fallthrough - case uint32(152): /* where_opt ::= WHERE expr */ - fallthrough - case uint32(154): /* where_opt_ret ::= WHERE expr */ - fallthrough - case uint32(226): /* case_else ::= ELSE expr */ - fallthrough - case uint32(247): /* vinto ::= INTO expr */ - { - *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8)) - } - break - case uint32(126): - fallthrough // on_opt ::= - case uint32(144): /* having_opt ::= */ - fallthrough - case uint32(146): /* limit_opt ::= */ - fallthrough - case uint32(151): /* where_opt ::= */ - fallthrough - case uint32(153): /* where_opt_ret ::= */ - fallthrough - case uint32(227): /* case_else ::= */ - fallthrough - case uint32(229): /* case_operand ::= */ - fallthrough - case uint32(248): /* vinto ::= */ + case uint32(126): /* on_using ::= ON expr */ { - *(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0) + (*OnOrUsing)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)).FpOn = *(*uintptr)(unsafe.Pointer(yymsp + 8)) + (*OnOrUsing)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)).FpUsing = uintptr(0) } break - case uint32(128): /* indexed_opt ::= INDEXED BY nm */ + case uint32(127): /* on_using ::= USING LP idlist RP */ { - *(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*Token)(unsafe.Pointer(yymsp + 8)) + (*OnOrUsing)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)).FpOn = uintptr(0) + (*OnOrUsing)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)).FpUsing = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) } break - case uint32(129): /* indexed_opt ::= NOT INDEXED */ + case uint32(128): /* on_using ::= */ { - (*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)).Fz = uintptr(0) - (*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)).Fn = uint32(1) + (*OnOrUsing)(unsafe.Pointer(yymsp + 1*24 + 8)).FpOn = uintptr(0) + (*OnOrUsing)(unsafe.Pointer(yymsp + 1*24 + 8)).FpUsing = uintptr(0) } break - case uint32(130): /* using_opt ::= USING LP idlist RP */ + case uint32(130): /* indexed_by ::= INDEXED BY nm */ { - *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) + *(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*Token)(unsafe.Pointer(yymsp + 8)) } break - case uint32(131): - fallthrough // using_opt ::= - case uint32(173): /* idlist_opt ::= */ + case uint32(131): /* indexed_by ::= NOT INDEXED */ { - *(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0) + (*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)).Fz = uintptr(0) + (*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)).Fn = uint32(1) } break case uint32(133): @@ -191568,6 +193734,36 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = SQLITE_SO_DESC } break + case uint32(144): + fallthrough // having_opt ::= + case uint32(146): /* limit_opt ::= */ + fallthrough + case uint32(151): /* where_opt ::= */ + fallthrough + case uint32(153): /* where_opt_ret ::= */ + fallthrough + case uint32(229): /* case_else ::= */ + fallthrough + case uint32(231): /* case_operand ::= */ + fallthrough + case uint32(250): /* vinto ::= */ + { + *(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0) + } + break + case uint32(145): + fallthrough // having_opt ::= HAVING expr + case uint32(152): /* where_opt ::= WHERE expr */ + fallthrough + case uint32(154): /* where_opt_ret ::= WHERE expr */ + fallthrough + case uint32(228): /* case_else ::= ELSE expr */ + fallthrough + case uint32(249): /* vinto ::= INTO expr */ + { + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8)) + } + break case uint32(147): /* limit_opt ::= LIMIT expr */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = Xsqlite3PExpr(tls, pParse, TK_LIMIT, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0)) @@ -191604,8 +193800,20 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in case uint32(157): /* cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret */ { Xsqlite3SrcListIndexedBy(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), yymsp+libc.UintptrFromInt32(-4)*24+8) - Xsqlite3ExprListCheckLength(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), ts+24186) - *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = Xsqlite3SrcListAppendList(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8))) + Xsqlite3ExprListCheckLength(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), ts+24151) + if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) != 0 { + var pFromClause uintptr = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) + if (*SrcList)(unsafe.Pointer(pFromClause)).FnSrc > 1 { + var pSubquery uintptr + // var as Token at bp+112, 16 + + pSubquery = Xsqlite3SelectNew(tls, pParse, uintptr(0), pFromClause, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uint32(SF_NestedFrom), uintptr(0)) + (*Token)(unsafe.Pointer(bp + 112 /* &as */)).Fn = uint32(0) + (*Token)(unsafe.Pointer(bp + 112 /* &as */)).Fz = uintptr(0) + pFromClause = Xsqlite3SrcListAppendFromTerm(tls, pParse, uintptr(0), uintptr(0), uintptr(0), bp+112, pSubquery, uintptr(0)) + } + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = Xsqlite3SrcListAppendList(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), pFromClause) + } Xsqlite3Update(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8)), uintptr(0), uintptr(0), uintptr(0)) } break @@ -191678,6 +193886,11 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in Xsqlite3AddReturning(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8))) } break + case uint32(173): /* idlist_opt ::= */ + { + *(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0) + } + break case uint32(174): /* idlist_opt ::= LP idlist RP */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) @@ -191752,15 +193965,15 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in // When doing a nested parse, one can include terms in an expression // that look like this: #1 #2 ... These terms refer to registers // in the virtual machine. #N is the N-th register. - *(*Token)(unsafe.Pointer(bp + 112 /* t */)) = *(*Token)(unsafe.Pointer(yymsp + 8)) //A-overwrites-X + *(*Token)(unsafe.Pointer(bp + 128 /* t */)) = *(*Token)(unsafe.Pointer(yymsp + 8)) //A-overwrites-X if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+24195, libc.VaList(bp+32, bp+112)) + Xsqlite3ErrorMsg(tls, pParse, ts+24160, libc.VaList(bp+32, bp+128)) *(*uintptr)(unsafe.Pointer(yymsp + 8)) = uintptr(0) } else { *(*uintptr)(unsafe.Pointer(yymsp + 8)) = Xsqlite3PExpr(tls, pParse, TK_REGISTER, uintptr(0), uintptr(0)) if *(*uintptr)(unsafe.Pointer(yymsp + 8)) != 0 { - Xsqlite3GetInt32(tls, (*Token)(unsafe.Pointer(bp+112)).Fz+1, *(*uintptr)(unsafe.Pointer(yymsp + 8))+44) + Xsqlite3GetInt32(tls, (*Token)(unsafe.Pointer(bp+128)).Fz+1, *(*uintptr)(unsafe.Pointer(yymsp + 8))+44) } } } @@ -191906,14 +194119,26 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in binaryToUnaryIfNull(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)), TK_NOTNULL) } break - case uint32(209): + case uint32(209): /* expr ::= expr IS NOT DISTINCT FROM expr */ + { + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = Xsqlite3PExpr(tls, pParse, TK_IS, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) + binaryToUnaryIfNull(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), TK_ISNULL) + } + break + case uint32(210): /* expr ::= expr IS DISTINCT FROM expr */ + { + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = Xsqlite3PExpr(tls, pParse, TK_ISNOT, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) + binaryToUnaryIfNull(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), TK_NOTNULL) + } + break + case uint32(211): fallthrough // expr ::= NOT expr - case uint32(210): /* expr ::= BITNOT expr */ + case uint32(212): /* expr ::= BITNOT expr */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = Xsqlite3PExpr(tls, pParse, int32((*YyStackEntry)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-1)*24)).Fmajor), *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0)) /*A-overwrites-B*/ } break - case uint32(211): /* expr ::= PLUS|MINUS expr */ + case uint32(213): /* expr ::= PLUS|MINUS expr */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = Xsqlite3PExpr(tls, pParse, func() int32 { if int32((*YyStackEntry)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-1)*24)).Fmajor) == TK_PLUS { @@ -191924,7 +194149,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in //A-overwrites-B } break - case uint32(212): /* expr ::= expr PTR expr */ + case uint32(214): /* expr ::= expr PTR expr */ { var pList uintptr = Xsqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8))) pList = Xsqlite3ExprListAppend(tls, pParse, pList, *(*uintptr)(unsafe.Pointer(yymsp + 8))) @@ -191932,14 +194157,14 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(213): + case uint32(215): fallthrough // between_op ::= BETWEEN - case uint32(216): /* in_op ::= IN */ + case uint32(218): /* in_op ::= IN */ { *(*int32)(unsafe.Pointer(yymsp + 8)) = 0 } break - case uint32(215): /* expr ::= expr between_op expr AND expr */ + case uint32(217): /* expr ::= expr between_op expr AND expr */ { var pList uintptr = Xsqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8))) pList = Xsqlite3ExprListAppend(tls, pParse, pList, *(*uintptr)(unsafe.Pointer(yymsp + 8))) @@ -191954,7 +194179,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } } break - case uint32(218): /* expr ::= expr in_op LP exprlist RP */ + case uint32(220): /* expr ::= expr in_op LP exprlist RP */ { if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) == uintptr(0) { // Expressions of the form @@ -191965,12 +194190,15 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in // simplify to constants 0 (false) and 1 (true), respectively, // regardless of the value of expr1. Xsqlite3ExprUnmapAndDelete(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8))) - *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = Xsqlite3Expr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_INTEGER, func() uintptr { + *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = Xsqlite3Expr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_STRING, func() uintptr { if *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) != 0 { - return ts + 9177 /* "1" */ + return ts + 8042 /* "true" */ } - return ts + 8769 /* "0" */ + return ts + 8047 /* "false" */ }()) + if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) != 0 { + Xsqlite3ExprIdToTrueFalse(tls, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8))) + } } else { var pRHS uintptr = (*ExprList_item)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) + 8)).FpExpr if (*ExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)))).FnExpr == 1 && Xsqlite3ExprIsConstant(tls, pRHS) != 0 && int32((*Expr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)))).Fop) != TK_VECTOR { @@ -192001,14 +194229,14 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } break - case uint32(219): /* expr ::= LP select RP */ + case uint32(221): /* expr ::= LP select RP */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = Xsqlite3PExpr(tls, pParse, TK_SELECT, uintptr(0), uintptr(0)) Xsqlite3PExprAddSelect(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8))) } break - case uint32(220): /* expr ::= expr in_op LP select RP */ + case uint32(222): /* expr ::= expr in_op LP select RP */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = Xsqlite3PExpr(tls, pParse, TK_IN, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), uintptr(0)) Xsqlite3PExprAddSelect(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8))) @@ -192018,7 +194246,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } break - case uint32(221): /* expr ::= expr in_op nm dbnm paren_exprlist */ + case uint32(223): /* expr ::= expr in_op nm dbnm paren_exprlist */ { var pSrc uintptr = Xsqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+libc.UintptrFromInt32(-2)*24+8, yymsp+libc.UintptrFromInt32(-1)*24+8) var pSelect uintptr = Xsqlite3SelectNew(tls, pParse, uintptr(0), pSrc, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uint32(0), uintptr(0)) @@ -192038,7 +194266,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } break - case uint32(222): /* expr ::= EXISTS LP select RP */ + case uint32(224): /* expr ::= EXISTS LP select RP */ { var p uintptr p = libc.AssignPtrUintptr(yymsp+libc.UintptrFromInt32(-3)*24+8, Xsqlite3PExpr(tls, pParse, TK_EXISTS, uintptr(0), uintptr(0))) @@ -192046,7 +194274,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } break - case uint32(223): /* expr ::= CASE case_operand case_exprlist case_else END */ + case uint32(225): /* expr ::= CASE case_operand case_exprlist case_else END */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = Xsqlite3PExpr(tls, pParse, TK_CASE, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)), uintptr(0)) if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) != 0 { @@ -192063,41 +194291,41 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } } break - case uint32(224): /* case_exprlist ::= case_exprlist WHEN expr THEN expr */ + case uint32(226): /* case_exprlist ::= case_exprlist WHEN expr THEN expr */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = Xsqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8))) *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = Xsqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) } break - case uint32(225): /* case_exprlist ::= WHEN expr THEN expr */ + case uint32(227): /* case_exprlist ::= WHEN expr THEN expr */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) = Xsqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8))) *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) = Xsqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) } break - case uint32(228): /* case_operand ::= expr */ + case uint32(230): /* case_operand ::= expr */ { *(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8)) /*A-overwrites-X*/ } break - case uint32(231): /* nexprlist ::= nexprlist COMMA expr */ + case uint32(233): /* nexprlist ::= nexprlist COMMA expr */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = Xsqlite3ExprListAppend(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) } break - case uint32(232): /* nexprlist ::= expr */ + case uint32(234): /* nexprlist ::= expr */ { *(*uintptr)(unsafe.Pointer(yymsp + 8)) = Xsqlite3ExprListAppend(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8))) /*A-overwrites-Y*/ } break - case uint32(234): + case uint32(236): fallthrough // paren_exprlist ::= LP exprlist RP - case uint32(239): /* eidlist_opt ::= LP eidlist RP */ + case uint32(241): /* eidlist_opt ::= LP eidlist RP */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) } break - case uint32(235): /* cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt */ + case uint32(237): /* cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt */ { Xsqlite3CreateIndex(tls, pParse, yymsp+libc.UintptrFromInt32(-7)*24+8, yymsp+libc.UintptrFromInt32(-6)*24+8, Xsqlite3SrcListAppend(tls, pParse, uintptr(0), yymsp+libc.UintptrFromInt32(-4)*24+8, uintptr(0)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-10)*24 + 8)), @@ -192107,78 +194335,78 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } } break - case uint32(236): + case uint32(238): fallthrough // uniqueflag ::= UNIQUE - case uint32(278): /* raisetype ::= ABORT */ + case uint32(280): /* raisetype ::= ABORT */ { *(*int32)(unsafe.Pointer(yymsp + 8)) = OE_Abort } break - case uint32(237): /* uniqueflag ::= */ + case uint32(239): /* uniqueflag ::= */ { *(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = OE_None } break - case uint32(240): /* eidlist ::= eidlist COMMA nm collate sortorder */ + case uint32(242): /* eidlist ::= eidlist COMMA nm collate sortorder */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = parserAddExprIdListTerm(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), yymsp+libc.UintptrFromInt32(-2)*24+8, *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + 8))) } break - case uint32(241): /* eidlist ::= nm collate sortorder */ + case uint32(243): /* eidlist ::= nm collate sortorder */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = parserAddExprIdListTerm(tls, pParse, uintptr(0), yymsp+libc.UintptrFromInt32(-2)*24+8, *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + 8))) //A-overwrites-Y } break - case uint32(244): /* cmd ::= DROP INDEX ifexists fullname */ + case uint32(246): /* cmd ::= DROP INDEX ifexists fullname */ { Xsqlite3DropIndex(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8))) } break - case uint32(245): /* cmd ::= VACUUM vinto */ + case uint32(247): /* cmd ::= VACUUM vinto */ { Xsqlite3Vacuum(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8))) } break - case uint32(246): /* cmd ::= VACUUM nm vinto */ + case uint32(248): /* cmd ::= VACUUM nm vinto */ { Xsqlite3Vacuum(tls, pParse, yymsp+libc.UintptrFromInt32(-1)*24+8, *(*uintptr)(unsafe.Pointer(yymsp + 8))) } break - case uint32(249): /* cmd ::= PRAGMA nm dbnm */ + case uint32(251): /* cmd ::= PRAGMA nm dbnm */ { Xsqlite3Pragma(tls, pParse, yymsp+libc.UintptrFromInt32(-1)*24+8, yymsp+8, uintptr(0), 0) } break - case uint32(250): /* cmd ::= PRAGMA nm dbnm EQ nmnum */ + case uint32(252): /* cmd ::= PRAGMA nm dbnm EQ nmnum */ { Xsqlite3Pragma(tls, pParse, yymsp+libc.UintptrFromInt32(-3)*24+8, yymsp+libc.UintptrFromInt32(-2)*24+8, yymsp+8, 0) } break - case uint32(251): /* cmd ::= PRAGMA nm dbnm LP nmnum RP */ + case uint32(253): /* cmd ::= PRAGMA nm dbnm LP nmnum RP */ { Xsqlite3Pragma(tls, pParse, yymsp+libc.UintptrFromInt32(-4)*24+8, yymsp+libc.UintptrFromInt32(-3)*24+8, yymsp+libc.UintptrFromInt32(-1)*24+8, 0) } break - case uint32(252): /* cmd ::= PRAGMA nm dbnm EQ minus_num */ + case uint32(254): /* cmd ::= PRAGMA nm dbnm EQ minus_num */ { Xsqlite3Pragma(tls, pParse, yymsp+libc.UintptrFromInt32(-3)*24+8, yymsp+libc.UintptrFromInt32(-2)*24+8, yymsp+8, 1) } break - case uint32(253): /* cmd ::= PRAGMA nm dbnm LP minus_num RP */ + case uint32(255): /* cmd ::= PRAGMA nm dbnm LP minus_num RP */ { Xsqlite3Pragma(tls, pParse, yymsp+libc.UintptrFromInt32(-4)*24+8, yymsp+libc.UintptrFromInt32(-3)*24+8, yymsp+libc.UintptrFromInt32(-1)*24+8, 1) } break - case uint32(256): /* cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */ + case uint32(258): /* cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */ { - // var all Token at bp+128, 16 + // var all Token at bp+144, 16 - (*Token)(unsafe.Pointer(bp + 128 /* &all */)).Fz = (*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)).Fz - (*Token)(unsafe.Pointer(bp + 128 /* &all */)).Fn = uint32(int32((int64((*Token)(unsafe.Pointer(yymsp+8)).Fz)-int64((*Token)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-3)*24+8)).Fz))/1)) + (*Token)(unsafe.Pointer(yymsp+8)).Fn - Xsqlite3FinishTrigger(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), bp+128) + (*Token)(unsafe.Pointer(bp + 144 /* &all */)).Fz = (*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)).Fz + (*Token)(unsafe.Pointer(bp + 144 /* &all */)).Fn = uint32(int32((int64((*Token)(unsafe.Pointer(yymsp+8)).Fz)-int64((*Token)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-3)*24+8)).Fz))/1)) + (*Token)(unsafe.Pointer(yymsp+8)).Fn + Xsqlite3FinishTrigger(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), bp+144) } break - case uint32(257): /* trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */ + case uint32(259): /* trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */ { Xsqlite3BeginTrigger(tls, pParse, yymsp+libc.UintptrFromInt32(-7)*24+8, yymsp+libc.UintptrFromInt32(-6)*24+8, *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), (*TrigEvent)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-4)*24+8)).Fa, (*TrigEvent)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-4)*24+8)).Fb, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-10)*24 + 8)), *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-8)*24 + 8))) *(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-10)*24 + 8)) = func() Token1 { @@ -192189,109 +194417,109 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in }() //A-overwrites-T } break - case uint32(258): /* trigger_time ::= BEFORE|AFTER */ + case uint32(260): /* trigger_time ::= BEFORE|AFTER */ { *(*int32)(unsafe.Pointer(yymsp + 8)) = int32((*YyStackEntry)(unsafe.Pointer(yymsp)).Fmajor) /*A-overwrites-X*/ } break - case uint32(259): /* trigger_time ::= INSTEAD OF */ + case uint32(261): /* trigger_time ::= INSTEAD OF */ { *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = TK_INSTEAD } break - case uint32(260): /* trigger_time ::= */ + case uint32(262): /* trigger_time ::= */ { *(*int32)(unsafe.Pointer(yymsp + 1*24 + 8)) = TK_BEFORE } break - case uint32(261): + case uint32(263): fallthrough // trigger_event ::= DELETE|INSERT - case uint32(262): /* trigger_event ::= UPDATE */ + case uint32(264): /* trigger_event ::= UPDATE */ { (*TrigEvent)(unsafe.Pointer(yymsp + 8)).Fa = int32((*YyStackEntry)(unsafe.Pointer(yymsp)).Fmajor) /*A-overwrites-X*/ (*TrigEvent)(unsafe.Pointer(yymsp + 8 /* &.minor */)).Fb = uintptr(0) } break - case uint32(263): /* trigger_event ::= UPDATE OF idlist */ + case uint32(265): /* trigger_event ::= UPDATE OF idlist */ { (*TrigEvent)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)).Fa = TK_UPDATE (*TrigEvent)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)).Fb = *(*uintptr)(unsafe.Pointer(yymsp + 8)) } break - case uint32(264): + case uint32(266): fallthrough // when_clause ::= - case uint32(283): /* key_opt ::= */ + case uint32(285): /* key_opt ::= */ { *(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0) } break - case uint32(265): + case uint32(267): fallthrough // when_clause ::= WHEN expr - case uint32(284): /* key_opt ::= KEY expr */ + case uint32(286): /* key_opt ::= KEY expr */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8)) } break - case uint32(266): /* trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */ + case uint32(268): /* trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */ { (*TriggerStep)(unsafe.Pointer((*TriggerStep)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)))).FpLast)).FpNext = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) (*TriggerStep)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)))).FpLast = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) } break - case uint32(267): /* trigger_cmd_list ::= trigger_cmd SEMI */ + case uint32(269): /* trigger_cmd_list ::= trigger_cmd SEMI */ { (*TriggerStep)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)))).FpLast = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) } break - case uint32(268): /* trnm ::= nm DOT nm */ + case uint32(270): /* trnm ::= nm DOT nm */ { *(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*Token)(unsafe.Pointer(yymsp + 8)) Xsqlite3ErrorMsg(tls, pParse, - ts+24219, 0) + ts+24184, 0) } break - case uint32(269): /* tridxby ::= INDEXED BY nm */ + case uint32(271): /* tridxby ::= INDEXED BY nm */ { Xsqlite3ErrorMsg(tls, pParse, - ts+24314, 0) + ts+24279, 0) } break - case uint32(270): /* tridxby ::= NOT INDEXED */ + case uint32(272): /* tridxby ::= NOT INDEXED */ { Xsqlite3ErrorMsg(tls, pParse, - ts+24398, 0) + ts+24363, 0) } break - case uint32(271): /* trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */ + case uint32(273): /* trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3TriggerUpdateStep(tls, pParse, yymsp+libc.UintptrFromInt32(-6)*24+8, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), uint8(*(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-7)*24 + 8))), (*Token)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-8)*24+8)).Fz, *(*uintptr)(unsafe.Pointer(yymsp + 8))) } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-8)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(272): /* trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt */ + case uint32(274): /* trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3TriggerInsertStep(tls, pParse, yymsp+libc.UintptrFromInt32(-4)*24+8, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), uint8(*(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-6)*24 + 8))), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-7)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) //yylhsminor.yy33-overwrites-yymsp[-6].minor.yy394 } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-7)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(273): /* trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt */ + case uint32(275): /* trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3TriggerDeleteStep(tls, pParse, yymsp+libc.UintptrFromInt32(-3)*24+8, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), (*Token)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-5)*24+8)).Fz, *(*uintptr)(unsafe.Pointer(yymsp + 8))) } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(274): /* trigger_cmd ::= scanpt select scanpt */ + case uint32(276): /* trigger_cmd ::= scanpt select scanpt */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3TriggerSelectStep(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) /*yylhsminor.yy33-overwrites-yymsp[-1].minor.yy47*/ } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(275): /* expr ::= RAISE LP IGNORE RP */ + case uint32(277): /* expr ::= RAISE LP IGNORE RP */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) = Xsqlite3PExpr(tls, pParse, TK_RAISE, uintptr(0), uintptr(0)) if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) != 0 { @@ -192299,7 +194527,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } } break - case uint32(276): /* expr ::= RAISE LP raisetype COMMA nm RP */ + case uint32(278): /* expr ::= RAISE LP raisetype COMMA nm RP */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = Xsqlite3ExprAlloc(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_RAISE, yymsp+libc.UintptrFromInt32(-1)*24+8, 1) if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) != 0 { @@ -192307,151 +194535,151 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } } break - case uint32(277): /* raisetype ::= ROLLBACK */ + case uint32(279): /* raisetype ::= ROLLBACK */ { *(*int32)(unsafe.Pointer(yymsp + 8)) = OE_Rollback } break - case uint32(279): /* raisetype ::= FAIL */ + case uint32(281): /* raisetype ::= FAIL */ { *(*int32)(unsafe.Pointer(yymsp + 8)) = OE_Fail } break - case uint32(280): /* cmd ::= DROP TRIGGER ifexists fullname */ + case uint32(282): /* cmd ::= DROP TRIGGER ifexists fullname */ { Xsqlite3DropTrigger(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8))) } break - case uint32(281): /* cmd ::= ATTACH database_kw_opt expr AS expr key_opt */ + case uint32(283): /* cmd ::= ATTACH database_kw_opt expr AS expr key_opt */ { Xsqlite3Attach(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) } break - case uint32(282): /* cmd ::= DETACH database_kw_opt expr */ + case uint32(284): /* cmd ::= DETACH database_kw_opt expr */ { Xsqlite3Detach(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8))) } break - case uint32(285): /* cmd ::= REINDEX */ + case uint32(287): /* cmd ::= REINDEX */ { Xsqlite3Reindex(tls, pParse, uintptr(0), uintptr(0)) } break - case uint32(286): /* cmd ::= REINDEX nm dbnm */ + case uint32(288): /* cmd ::= REINDEX nm dbnm */ { Xsqlite3Reindex(tls, pParse, yymsp+libc.UintptrFromInt32(-1)*24+8, yymsp+8) } break - case uint32(287): /* cmd ::= ANALYZE */ + case uint32(289): /* cmd ::= ANALYZE */ { Xsqlite3Analyze(tls, pParse, uintptr(0), uintptr(0)) } break - case uint32(288): /* cmd ::= ANALYZE nm dbnm */ + case uint32(290): /* cmd ::= ANALYZE nm dbnm */ { Xsqlite3Analyze(tls, pParse, yymsp+libc.UintptrFromInt32(-1)*24+8, yymsp+8) } break - case uint32(289): /* cmd ::= ALTER TABLE fullname RENAME TO nm */ + case uint32(291): /* cmd ::= ALTER TABLE fullname RENAME TO nm */ { Xsqlite3AlterRenameTable(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)), yymsp+8) } break - case uint32(290): /* cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist */ + case uint32(292): /* cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist */ { (*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)).Fn = uint32(int32((int64((*Parse)(unsafe.Pointer(pParse)).FsLastToken.Fz)-int64((*Token)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-1)*24+8)).Fz))/1)) + (*Parse)(unsafe.Pointer(pParse)).FsLastToken.Fn Xsqlite3AlterFinishAddColumn(tls, pParse, yymsp+libc.UintptrFromInt32(-1)*24+8) } break - case uint32(291): /* cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm */ + case uint32(293): /* cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm */ { Xsqlite3AlterDropColumn(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)), yymsp+8) } break - case uint32(292): /* add_column_fullname ::= fullname */ + case uint32(294): /* add_column_fullname ::= fullname */ { disableLookaside(tls, pParse) Xsqlite3AlterBeginAddColumn(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8))) } break - case uint32(293): /* cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm */ + case uint32(295): /* cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm */ { Xsqlite3AlterRenameColumn(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), yymsp+libc.UintptrFromInt32(-2)*24+8, yymsp+8) } break - case uint32(294): /* cmd ::= create_vtab */ + case uint32(296): /* cmd ::= create_vtab */ { Xsqlite3VtabFinishParse(tls, pParse, uintptr(0)) } break - case uint32(295): /* cmd ::= create_vtab LP vtabarglist RP */ + case uint32(297): /* cmd ::= create_vtab LP vtabarglist RP */ { Xsqlite3VtabFinishParse(tls, pParse, yymsp+8) } break - case uint32(296): /* create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm */ + case uint32(298): /* create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm */ { Xsqlite3VtabBeginParse(tls, pParse, yymsp+libc.UintptrFromInt32(-3)*24+8, yymsp+libc.UintptrFromInt32(-2)*24+8, yymsp+8, *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8))) } break - case uint32(297): /* vtabarg ::= */ + case uint32(299): /* vtabarg ::= */ { Xsqlite3VtabArgInit(tls, pParse) } break - case uint32(298): + case uint32(300): fallthrough // vtabargtoken ::= ANY - case uint32(299): /* vtabargtoken ::= lp anylist RP */ + case uint32(301): /* vtabargtoken ::= lp anylist RP */ fallthrough - case uint32(300): /* lp ::= LP */ + case uint32(302): /* lp ::= LP */ { Xsqlite3VtabArgExtend(tls, pParse, yymsp+8) } break - case uint32(301): + case uint32(303): fallthrough // with ::= WITH wqlist - case uint32(302): /* with ::= WITH RECURSIVE wqlist */ + case uint32(304): /* with ::= WITH RECURSIVE wqlist */ { Xsqlite3WithPush(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uint8(1)) } break - case uint32(303): /* wqas ::= AS */ + case uint32(305): /* wqas ::= AS */ { *(*U8)(unsafe.Pointer(yymsp + 8)) = U8(M10d_Any) } break - case uint32(304): /* wqas ::= AS MATERIALIZED */ + case uint32(306): /* wqas ::= AS MATERIALIZED */ { *(*U8)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = U8(M10d_Yes) } break - case uint32(305): /* wqas ::= AS NOT MATERIALIZED */ + case uint32(307): /* wqas ::= AS NOT MATERIALIZED */ { *(*U8)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = U8(M10d_No) } break - case uint32(306): /* wqitem ::= nm eidlist_opt wqas LP select RP */ + case uint32(308): /* wqitem ::= nm eidlist_opt wqas LP select RP */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = Xsqlite3CteNew(tls, pParse, yymsp+libc.UintptrFromInt32(-5)*24+8, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), *(*U8)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8))) //A-overwrites-X } break - case uint32(307): /* wqlist ::= wqitem */ + case uint32(309): /* wqlist ::= wqitem */ { *(*uintptr)(unsafe.Pointer(yymsp + 8)) = Xsqlite3WithAdd(tls, pParse, uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + 8))) //A-overwrites-X } break - case uint32(308): /* wqlist ::= wqlist COMMA wqitem */ + case uint32(310): /* wqlist ::= wqlist COMMA wqitem */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = Xsqlite3WithAdd(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + 8))) } break - case uint32(309): /* windowdefn_list ::= windowdefn */ + case uint32(311): /* windowdefn_list ::= windowdefn */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = *(*uintptr)(unsafe.Pointer(yymsp + 8)) } *(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(310): /* windowdefn_list ::= windowdefn_list COMMA windowdefn */ + case uint32(312): /* windowdefn_list ::= windowdefn_list COMMA windowdefn */ { Xsqlite3WindowChain(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8))) @@ -192460,7 +194688,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(311): /* windowdefn ::= nm AS LP window RP */ + case uint32(313): /* windowdefn ::= nm AS LP window RP */ { if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) != 0 { (*Window)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)))).FzName = Xsqlite3DbStrNDup(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, (*Token)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-4)*24+8)).Fz, uint64((*Token)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-4)*24+8)).Fn)) @@ -192469,113 +194697,113 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(312): /* window ::= PARTITION BY nexprlist orderby_opt frame_opt */ + case uint32(314): /* window ::= PARTITION BY nexprlist orderby_opt frame_opt */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = Xsqlite3WindowAssemble(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), uintptr(0)) } break - case uint32(313): /* window ::= nm PARTITION BY nexprlist orderby_opt frame_opt */ + case uint32(315): /* window ::= nm PARTITION BY nexprlist orderby_opt frame_opt */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3WindowAssemble(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), yymsp+libc.UintptrFromInt32(-5)*24+8) } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(314): /* window ::= ORDER BY sortlist frame_opt */ + case uint32(316): /* window ::= ORDER BY sortlist frame_opt */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) = Xsqlite3WindowAssemble(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), uintptr(0)) } break - case uint32(315): /* window ::= nm ORDER BY sortlist frame_opt */ + case uint32(317): /* window ::= nm ORDER BY sortlist frame_opt */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3WindowAssemble(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0), *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)), yymsp+libc.UintptrFromInt32(-4)*24+8) } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(316): + case uint32(318): fallthrough // window ::= frame_opt - case uint32(335): /* filter_over ::= over_clause */ + case uint32(337): /* filter_over ::= over_clause */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = *(*uintptr)(unsafe.Pointer(yymsp + 8)) } *(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(317): /* window ::= nm frame_opt */ + case uint32(319): /* window ::= nm frame_opt */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3WindowAssemble(tls, pParse, *(*uintptr)(unsafe.Pointer(yymsp + 8)), uintptr(0), uintptr(0), yymsp+libc.UintptrFromInt32(-1)*24+8) } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(318): /* frame_opt ::= */ + case uint32(320): /* frame_opt ::= */ { *(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = Xsqlite3WindowAlloc(tls, pParse, 0, TK_UNBOUNDED, uintptr(0), TK_CURRENT, uintptr(0), uint8(0)) } break - case uint32(319): /* frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt */ + case uint32(321): /* frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3WindowAlloc(tls, pParse, *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)), (*FrameBound)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-1)*24+8)).FeType, (*FrameBound)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-1)*24+8)).FpExpr, TK_CURRENT, uintptr(0), *(*U8)(unsafe.Pointer(yymsp + 8))) } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(320): /* frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt */ + case uint32(322): /* frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3WindowAlloc(tls, pParse, *(*int32)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)), (*FrameBound)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-3)*24+8)).FeType, (*FrameBound)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-3)*24+8)).FpExpr, (*FrameBound)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-1)*24+8)).FeType, (*FrameBound)(unsafe.Pointer(yymsp+libc.UintptrFromInt32(-1)*24+8)).FpExpr, *(*U8)(unsafe.Pointer(yymsp + 8))) } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-5)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(322): + case uint32(324): fallthrough // frame_bound_s ::= frame_bound - case uint32(324): /* frame_bound_e ::= frame_bound */ + case uint32(326): /* frame_bound_e ::= frame_bound */ { *(*FrameBound)(unsafe.Pointer(bp + 40)) = *(*FrameBound)(unsafe.Pointer(yymsp + 8)) } *(*FrameBound)(unsafe.Pointer(yymsp + 8)) = *(*FrameBound)(unsafe.Pointer(bp + 40)) break - case uint32(323): + case uint32(325): fallthrough // frame_bound_s ::= UNBOUNDED PRECEDING - case uint32(325): /* frame_bound_e ::= UNBOUNDED FOLLOWING */ + case uint32(327): /* frame_bound_e ::= UNBOUNDED FOLLOWING */ fallthrough - case uint32(327): /* frame_bound ::= CURRENT ROW */ + case uint32(329): /* frame_bound ::= CURRENT ROW */ { (*FrameBound)(unsafe.Pointer(bp + 40)).FeType = int32((*YyStackEntry)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24)).Fmajor) (*FrameBound)(unsafe.Pointer(bp + 40)).FpExpr = uintptr(0) } *(*FrameBound)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*FrameBound)(unsafe.Pointer(bp + 40)) break - case uint32(326): /* frame_bound ::= expr PRECEDING|FOLLOWING */ + case uint32(328): /* frame_bound ::= expr PRECEDING|FOLLOWING */ { (*FrameBound)(unsafe.Pointer(bp + 40)).FeType = int32((*YyStackEntry)(unsafe.Pointer(yymsp)).Fmajor) (*FrameBound)(unsafe.Pointer(bp + 40)).FpExpr = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) } *(*FrameBound)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*FrameBound)(unsafe.Pointer(bp + 40)) break - case uint32(328): /* frame_exclude_opt ::= */ + case uint32(330): /* frame_exclude_opt ::= */ { *(*U8)(unsafe.Pointer(yymsp + 1*24 + 8)) = U8(0) } break - case uint32(329): /* frame_exclude_opt ::= EXCLUDE frame_exclude */ + case uint32(331): /* frame_exclude_opt ::= EXCLUDE frame_exclude */ { *(*U8)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*U8)(unsafe.Pointer(yymsp + 8)) } break - case uint32(330): + case uint32(332): fallthrough // frame_exclude ::= NO OTHERS - case uint32(331): /* frame_exclude ::= CURRENT ROW */ + case uint32(333): /* frame_exclude ::= CURRENT ROW */ { *(*U8)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = U8((*YyStackEntry)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24)).Fmajor) /*A-overwrites-X*/ } break - case uint32(332): /* frame_exclude ::= GROUP|TIES */ + case uint32(334): /* frame_exclude ::= GROUP|TIES */ { *(*U8)(unsafe.Pointer(yymsp + 8)) = U8((*YyStackEntry)(unsafe.Pointer(yymsp)).Fmajor) /*A-overwrites-X*/ } break - case uint32(333): /* window_clause ::= WINDOW windowdefn_list */ + case uint32(335): /* window_clause ::= WINDOW windowdefn_list */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8)) } break - case uint32(334): /* filter_over ::= filter_clause over_clause */ + case uint32(336): /* filter_over ::= filter_clause over_clause */ { if *(*uintptr)(unsafe.Pointer(yymsp + 8)) != 0 { (*Window)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(yymsp + 8)))).FpFilter = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) @@ -192586,7 +194814,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(336): /* filter_over ::= filter_clause */ + case uint32(338): /* filter_over ::= filter_clause */ { *(*uintptr)(unsafe.Pointer(bp + 40)) = Xsqlite3DbMallocZero(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, uint64(unsafe.Sizeof(Window{}))) if *(*uintptr)(unsafe.Pointer(bp + 40)) != 0 { @@ -192598,13 +194826,13 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } *(*uintptr)(unsafe.Pointer(yymsp + 8)) = *(*uintptr)(unsafe.Pointer(bp + 40)) break - case uint32(337): /* over_clause ::= OVER LP window RP */ + case uint32(339): /* over_clause ::= OVER LP window RP */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-3)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) } break - case uint32(338): /* over_clause ::= OVER nm */ + case uint32(340): /* over_clause ::= OVER nm */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = Xsqlite3DbMallocZero(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, uint64(unsafe.Sizeof(Window{}))) if *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) != 0 { @@ -192612,74 +194840,75 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in } } break - case uint32(339): /* filter_clause ::= FILTER LP WHERE expr RP */ + case uint32(341): /* filter_clause ::= FILTER LP WHERE expr RP */ { *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-4)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) } break default: - /* (340) input ::= cmdlist */ - /* (341) cmdlist ::= cmdlist ecmd */ - /* (342) cmdlist ::= ecmd (OPTIMIZED OUT) */ - /* (343) ecmd ::= SEMI */ - /* (344) ecmd ::= cmdx SEMI */ - /* (345) ecmd ::= explain cmdx SEMI (NEVER REDUCES) */ - /* (346) trans_opt ::= */ - /* (347) trans_opt ::= TRANSACTION */ - /* (348) trans_opt ::= TRANSACTION nm */ - /* (349) savepoint_opt ::= SAVEPOINT */ - /* (350) savepoint_opt ::= */ - /* (351) cmd ::= create_table create_table_args */ - /* (352) table_option_set ::= table_option (OPTIMIZED OUT) */ - /* (353) columnlist ::= columnlist COMMA columnname carglist */ - /* (354) columnlist ::= columnname carglist */ - /* (355) nm ::= ID|INDEXED */ - /* (356) nm ::= STRING */ - /* (357) nm ::= JOIN_KW */ - /* (358) typetoken ::= typename */ - /* (359) typename ::= ID|STRING */ - /* (360) signed ::= plus_num (OPTIMIZED OUT) */ - /* (361) signed ::= minus_num (OPTIMIZED OUT) */ - /* (362) carglist ::= carglist ccons */ - /* (363) carglist ::= */ - /* (364) ccons ::= NULL onconf */ - /* (365) ccons ::= GENERATED ALWAYS AS generated */ - /* (366) ccons ::= AS generated */ - /* (367) conslist_opt ::= COMMA conslist */ - /* (368) conslist ::= conslist tconscomma tcons */ - /* (369) conslist ::= tcons (OPTIMIZED OUT) */ - /* (370) tconscomma ::= */ - /* (371) defer_subclause_opt ::= defer_subclause (OPTIMIZED OUT) */ - /* (372) resolvetype ::= raisetype (OPTIMIZED OUT) */ - /* (373) selectnowith ::= oneselect (OPTIMIZED OUT) */ - /* (374) oneselect ::= values */ - /* (375) sclp ::= selcollist COMMA */ - /* (376) as ::= ID|STRING */ - /* (377) returning ::= */ - /* (378) expr ::= term (OPTIMIZED OUT) */ - /* (379) likeop ::= LIKE_KW|MATCH */ - /* (380) exprlist ::= nexprlist */ - /* (381) nmnum ::= plus_num (OPTIMIZED OUT) */ - /* (382) nmnum ::= nm (OPTIMIZED OUT) */ - /* (383) nmnum ::= ON */ - /* (384) nmnum ::= DELETE */ - /* (385) nmnum ::= DEFAULT */ - /* (386) plus_num ::= INTEGER|FLOAT */ - /* (387) foreach_clause ::= */ - /* (388) foreach_clause ::= FOR EACH ROW */ - /* (389) trnm ::= nm */ - /* (390) tridxby ::= */ - /* (391) database_kw_opt ::= DATABASE */ - /* (392) database_kw_opt ::= */ - /* (393) kwcolumn_opt ::= */ - /* (394) kwcolumn_opt ::= COLUMNKW */ - /* (395) vtabarglist ::= vtabarg */ - /* (396) vtabarglist ::= vtabarglist COMMA vtabarg */ - /* (397) vtabarg ::= vtabarg vtabargtoken */ - /* (398) anylist ::= */ - /* (399) anylist ::= anylist LP anylist RP */ - /* (400) anylist ::= anylist ANY */ - /* (401) with ::= */ + /* (342) input ::= cmdlist */ + /* (343) cmdlist ::= cmdlist ecmd */ + /* (344) cmdlist ::= ecmd (OPTIMIZED OUT) */ + /* (345) ecmd ::= SEMI */ + /* (346) ecmd ::= cmdx SEMI */ + /* (347) ecmd ::= explain cmdx SEMI (NEVER REDUCES) */ + /* (348) trans_opt ::= */ + /* (349) trans_opt ::= TRANSACTION */ + /* (350) trans_opt ::= TRANSACTION nm */ + /* (351) savepoint_opt ::= SAVEPOINT */ + /* (352) savepoint_opt ::= */ + /* (353) cmd ::= create_table create_table_args */ + /* (354) table_option_set ::= table_option (OPTIMIZED OUT) */ + /* (355) columnlist ::= columnlist COMMA columnname carglist */ + /* (356) columnlist ::= columnname carglist */ + /* (357) nm ::= ID|INDEXED */ + /* (358) nm ::= STRING */ + /* (359) nm ::= JOIN_KW */ + /* (360) typetoken ::= typename */ + /* (361) typename ::= ID|STRING */ + /* (362) signed ::= plus_num (OPTIMIZED OUT) */ + /* (363) signed ::= minus_num (OPTIMIZED OUT) */ + /* (364) carglist ::= carglist ccons */ + /* (365) carglist ::= */ + /* (366) ccons ::= NULL onconf */ + /* (367) ccons ::= GENERATED ALWAYS AS generated */ + /* (368) ccons ::= AS generated */ + /* (369) conslist_opt ::= COMMA conslist */ + /* (370) conslist ::= conslist tconscomma tcons */ + /* (371) conslist ::= tcons (OPTIMIZED OUT) */ + /* (372) tconscomma ::= */ + /* (373) defer_subclause_opt ::= defer_subclause (OPTIMIZED OUT) */ + /* (374) resolvetype ::= raisetype (OPTIMIZED OUT) */ + /* (375) selectnowith ::= oneselect (OPTIMIZED OUT) */ + /* (376) oneselect ::= values */ + /* (377) sclp ::= selcollist COMMA */ + /* (378) as ::= ID|STRING */ + /* (379) indexed_opt ::= indexed_by (OPTIMIZED OUT) */ + /* (380) returning ::= */ + /* (381) expr ::= term (OPTIMIZED OUT) */ + /* (382) likeop ::= LIKE_KW|MATCH */ + /* (383) exprlist ::= nexprlist */ + /* (384) nmnum ::= plus_num (OPTIMIZED OUT) */ + /* (385) nmnum ::= nm (OPTIMIZED OUT) */ + /* (386) nmnum ::= ON */ + /* (387) nmnum ::= DELETE */ + /* (388) nmnum ::= DEFAULT */ + /* (389) plus_num ::= INTEGER|FLOAT */ + /* (390) foreach_clause ::= */ + /* (391) foreach_clause ::= FOR EACH ROW */ + /* (392) trnm ::= nm */ + /* (393) tridxby ::= */ + /* (394) database_kw_opt ::= DATABASE */ + /* (395) database_kw_opt ::= */ + /* (396) kwcolumn_opt ::= */ + /* (397) kwcolumn_opt ::= COLUMNKW */ + /* (398) vtabarglist ::= vtabarg */ + /* (399) vtabarglist ::= vtabarglist COMMA vtabarg */ + /* (400) vtabarg ::= vtabarg vtabargtoken */ + /* (401) anylist ::= */ + /* (402) anylist ::= anylist LP anylist RP */ + /* (403) anylist ::= anylist ANY */ + /* (404) with ::= */ break //********* End reduce actions *********************************************** } @@ -192704,7 +194933,7 @@ func yy_reduce(tls *libc.TLS, yypParser uintptr, yyruleno uint32, yyLookahead in // The following code executes when the parse fails // The following code executes when a syntax error first occurs. -func yy_syntax_error(tls *libc.TLS, yypParser uintptr, yymajor int32, yyminor Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166506:13: */ +func yy_syntax_error(tls *libc.TLS, yypParser uintptr, yymajor int32, yyminor Token) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:168580:13: */ bp := tls.Alloc(24) defer tls.Free(24) *(*Token)(unsafe.Pointer(bp + 8)) = yyminor @@ -192714,9 +194943,9 @@ func yy_syntax_error(tls *libc.TLS, yypParser uintptr, yymajor int32, yyminor To _ = yymajor // Silence some compiler warnings if *(*int8)(unsafe.Pointer((*Token)(unsafe.Pointer(bp + 8)).Fz)) != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+24195, libc.VaList(bp, bp+8)) + Xsqlite3ErrorMsg(tls, pParse, ts+24160, libc.VaList(bp, bp+8)) } else { - Xsqlite3ErrorMsg(tls, pParse, ts+24483, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+24448, 0) } //*********** End %syntax_error code ***************************************** @@ -192724,7 +194953,7 @@ func yy_syntax_error(tls *libc.TLS, yypParser uintptr, yymajor int32, yyminor To } // The following is executed when the parser accepts -func yy_accept(tls *libc.TLS, yypParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166530:13: */ +func yy_accept(tls *libc.TLS, yypParser uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:168604:13: */ var pParse uintptr = (*YyParser)(unsafe.Pointer(yypParser)).FpParse @@ -192754,7 +194983,7 @@ func yy_accept(tls *libc.TLS, yypParser uintptr) { /* testdata/sqlite-amalgamati // // Outputs: // None. -func Xsqlite3Parser(tls *libc.TLS, yyp uintptr, yymajor int32, yyminor Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166571:21: */ +func Xsqlite3Parser(tls *libc.TLS, yyp uintptr, yymajor int32, yyminor Token) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:168645:21: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -192808,7 +195037,7 @@ func Xsqlite3Parser(tls *libc.TLS, yyp uintptr, yymajor int32, yyminor Token) { // Return the fallback token corresponding to canonical token iToken, or // 0 if iToken has no fallback. -func Xsqlite3ParserFallback(tls *libc.TLS, iToken int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166788:20: */ +func Xsqlite3ParserFallback(tls *libc.TLS, iToken int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:168862:20: */ return int32(yyFallback[iToken]) } @@ -192859,7 +195088,7 @@ var aiClass = [256]uint8{ /* Dx */ uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), /* Ex */ uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(30), /* Fx */ uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166860:28 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:168934:28 */ // The charMap() macro maps alphabetic characters (only) into their // lower-case ASCII equivalent. On ASCII machines, this is just @@ -192878,14 +195107,13 @@ var aiClass = [256]uint8{ // The output of the mkkeywordhash.c program is written into a file // named keywordhash.h and then included into this source file by // the #include below. -//************* Include keywordhash.h in the middle of tokenize.c *********** -//************* Begin file keywordhash.h ************************************ +// ************* Include keywordhash.h in the middle of tokenize.c *********** +// ************* Begin file keywordhash.h ************************************ // **** This file contains automatically generated code ****** // -// // The code in this file has been automatically generated by // -// sqlite/tool/mkkeywordhash.c +// sqlite/tool/mkkeywordhash.c // // The code in this file implements a function that determines whether // or not a given identifier is really an SQL keyword. The same thing @@ -192895,18 +195123,19 @@ var aiClass = [256]uint8{ // on platforms with limited memory. // Hash score: 231 // zKWText[] encodes 1007 bytes of keyword text in 667 bytes -// REINDEXEDESCAPEACHECKEYBEFOREIGNOREGEXPLAINSTEADDATABASELECT -// ABLEFTHENDEFERRABLELSEXCLUDELETEMPORARYISNULLSAVEPOINTERSECT -// IESNOTNULLIKEXCEPTRANSACTIONATURALTERAISEXCLUSIVEXISTS -// CONSTRAINTOFFSETRIGGERANGENERATEDETACHAVINGLOBEGINNEREFERENCES -// UNIQUERYWITHOUTERELEASEATTACHBETWEENOTHINGROUPSCASCADEFAULT -// CASECOLLATECREATECURRENT_DATEIMMEDIATEJOINSERTMATCHPLANALYZE -// PRAGMATERIALIZEDEFERREDISTINCTUPDATEVALUESVIRTUALWAYSWHENWHERE -// CURSIVEABORTAFTERENAMEANDROPARTITIONAUTOINCREMENTCASTCOLUMN -// COMMITCONFLICTCROSSCURRENT_TIMESTAMPRECEDINGFAILASTFILTER -// EPLACEFIRSTFOLLOWINGFROMFULLIMITIFORDERESTRICTOTHERSOVER -// ETURNINGRIGHTROLLBACKROWSUNBOUNDEDUNIONUSINGVACUUMVIEWINDOWBY -// INITIALLYPRIMARY +// +// REINDEXEDESCAPEACHECKEYBEFOREIGNOREGEXPLAINSTEADDATABASELECT +// ABLEFTHENDEFERRABLELSEXCLUDELETEMPORARYISNULLSAVEPOINTERSECT +// IESNOTNULLIKEXCEPTRANSACTIONATURALTERAISEXCLUSIVEXISTS +// CONSTRAINTOFFSETRIGGERANGENERATEDETACHAVINGLOBEGINNEREFERENCES +// UNIQUERYWITHOUTERELEASEATTACHBETWEENOTHINGROUPSCASCADEFAULT +// CASECOLLATECREATECURRENT_DATEIMMEDIATEJOINSERTMATCHPLANALYZE +// PRAGMATERIALIZEDEFERREDISTINCTUPDATEVALUESVIRTUALWAYSWHENWHERE +// CURSIVEABORTAFTERENAMEANDROPARTITIONAUTOINCREMENTCASTCOLUMN +// COMMITCONFLICTCROSSCURRENT_TIMESTAMPRECEDINGFAILASTFILTER +// EPLACEFIRSTFOLLOWINGFROMFULLIMITIFORDERESTRICTOTHERSOVER +// ETURNINGRIGHTROLLBACKROWSUNBOUNDEDUNIONUSINGVACUUMVIEWINDOWBY +// INITIALLYPRIMARY var zKWText = [666]int8{ int8('R'), int8('E'), int8('I'), int8('N'), int8('D'), int8('E'), int8('X'), int8('E'), int8('D'), int8('E'), int8('S'), int8('C'), int8('A'), int8('P'), int8('E'), int8('A'), int8('C'), int8('H'), int8('E'), int8('C'), int8('K'), int8('E'), int8('Y'), int8('B'), int8('E'), int8('F'), int8('O'), int8('R'), int8('E'), int8('I'), int8('G'), int8('N'), int8('O'), int8('R'), int8('E'), int8('G'), @@ -192945,7 +195174,7 @@ var zKWText = [666]int8{ int8('W'), int8('S'), int8('U'), int8('N'), int8('B'), int8('O'), int8('U'), int8('N'), int8('D'), int8('E'), int8('D'), int8('U'), int8('N'), int8('I'), int8('O'), int8('N'), int8('U'), int8('S'), int8('I'), int8('N'), int8('G'), int8('V'), int8('A'), int8('C'), int8('U'), int8('U'), int8('M'), int8('V'), int8('I'), int8('E'), int8('W'), int8('I'), int8('N'), int8('D'), int8('O'), int8('W'), int8('B'), int8('Y'), int8('I'), int8('N'), int8('I'), int8('T'), int8('I'), int8('A'), int8('L'), int8('L'), int8('Y'), int8('P'), int8('R'), int8('I'), int8('M'), int8('A'), int8('R'), int8('Y'), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:166976:19 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169050:19 */ // aKWHash[i] is the hash value for the i-th keyword var aKWHash = [127]uint8{ uint8(84), uint8(92), uint8(134), uint8(82), uint8(105), uint8(29), uint8(0), uint8(0), uint8(94), uint8(0), uint8(85), uint8(72), uint8(0), @@ -192958,7 +195187,7 @@ var aKWHash = [127]uint8{ uint8(50), uint8(124), uint8(0), uint8(100), uint8(0), uint8(18), uint8(121), uint8(144), uint8(56), uint8(130), uint8(139), uint8(88), uint8(83), uint8(37), uint8(30), uint8(126), uint8(0), uint8(0), uint8(108), uint8(51), uint8(131), uint8(128), uint8(0), uint8(34), uint8(0), uint8(0), uint8(132), uint8(0), uint8(98), uint8(38), uint8(39), uint8(0), uint8(20), uint8(45), uint8(117), uint8(93), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167016:28 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169090:28 */ // aKWNext[] forms the hash collision chain. If aKWHash[i]==0 // then the i-th keyword has no more hash collisions. Otherwise, // the next keyword with the same hash is aKWHash[i]-1. @@ -192975,7 +195204,7 @@ var aKWNext = [147]uint8{ uint8(112), uint8(21), uint8(7), uint8(67), uint8(0), uint8(79), uint8(96), uint8(118), uint8(0), uint8(0), uint8(68), uint8(0), uint8(0), uint8(99), uint8(44), uint8(0), uint8(55), uint8(0), uint8(76), uint8(0), uint8(95), uint8(32), uint8(33), uint8(57), uint8(25), uint8(0), uint8(102), uint8(0), uint8(0), uint8(87), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167031:28 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169105:28 */ // aKWLen[i] is the length (in bytes) of the i-th keyword var aKWLen = [147]uint8{ uint8(7), uint8(7), uint8(5), uint8(4), uint8(6), uint8(4), uint8(5), uint8(3), uint8(6), uint8(7), uint8(3), uint8(6), uint8(6), @@ -192990,7 +195219,7 @@ var aKWLen = [147]uint8{ uint8(4), uint8(4), uint8(6), uint8(7), uint8(5), uint8(9), uint8(4), uint8(4), uint8(5), uint8(2), uint8(5), uint8(8), uint8(6), uint8(4), uint8(9), uint8(5), uint8(8), uint8(4), uint8(3), uint8(9), uint8(5), uint8(5), uint8(6), uint8(4), uint8(6), uint8(2), uint8(2), uint8(9), uint8(3), uint8(7), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167046:28 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169120:28 */ // aKWOffset[i] is the index into zKWText[] of the start of // the text for the i-th keyword. var aKWOffset = [147]uint16{ @@ -193006,7 +195235,7 @@ var aKWOffset = [147]uint16{ uint16(520), uint16(523), uint16(527), uint16(532), uint16(539), uint16(544), uint16(553), uint16(557), uint16(560), uint16(565), uint16(567), uint16(571), uint16(579), uint16(585), uint16(588), uint16(597), uint16(602), uint16(610), uint16(610), uint16(614), uint16(623), uint16(628), uint16(633), uint16(639), uint16(642), uint16(645), uint16(648), uint16(650), uint16(655), uint16(659), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167062:33 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169136:33 */ // aKWCode[i] is the parser symbol code for the i-th keyword var aKWCode = [147]uint8{ uint8(TK_REINDEX), uint8(TK_INDEXED), uint8(TK_INDEX), uint8(TK_DESC), uint8(TK_ESCAPE), @@ -193039,109 +195268,111 @@ var aKWCode = [147]uint8{ uint8(TK_ROW), uint8(TK_UNBOUNDED), uint8(TK_UNION), uint8(TK_USING), uint8(TK_VACUUM), uint8(TK_VIEW), uint8(TK_WINDOW), uint8(TK_DO), uint8(TK_BY), uint8(TK_INITIALLY), uint8(TK_ALL), uint8(TK_PRIMARY), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167077:28 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169151:28 */ // Hash table decoded: -// 0: INSERT -// 1: IS -// 2: ROLLBACK TRIGGER -// 3: IMMEDIATE -// 4: PARTITION -// 5: TEMP -// 6: -// 7: -// 8: VALUES WITHOUT -// 9: -// 10: MATCH -// 11: NOTHING -// 12: -// 13: OF -// 14: TIES IGNORE -// 15: PLAN -// 16: INSTEAD INDEXED -// 17: -// 18: TRANSACTION RIGHT -// 19: WHEN -// 20: SET HAVING -// 21: MATERIALIZED IF -// 22: ROWS -// 23: SELECT -// 24: -// 25: -// 26: VACUUM SAVEPOINT -// 27: -// 28: LIKE UNION VIRTUAL REFERENCES -// 29: RESTRICT -// 30: -// 31: THEN REGEXP -// 32: TO -// 33: -// 34: BEFORE -// 35: -// 36: -// 37: FOLLOWING COLLATE CASCADE -// 38: CREATE -// 39: -// 40: CASE REINDEX -// 41: EACH -// 42: -// 43: QUERY -// 44: AND ADD -// 45: PRIMARY ANALYZE -// 46: -// 47: ROW ASC DETACH -// 48: CURRENT_TIME CURRENT_DATE -// 49: -// 50: -// 51: EXCLUSIVE TEMPORARY -// 52: -// 53: DEFERRED -// 54: DEFERRABLE -// 55: -// 56: DATABASE -// 57: -// 58: DELETE VIEW GENERATED -// 59: ATTACH -// 60: END -// 61: EXCLUDE -// 62: ESCAPE DESC -// 63: GLOB -// 64: WINDOW ELSE -// 65: COLUMN -// 66: FIRST -// 67: -// 68: GROUPS ALL -// 69: DISTINCT DROP KEY -// 70: BETWEEN -// 71: INITIALLY -// 72: BEGIN -// 73: FILTER CHECK ACTION -// 74: GROUP INDEX -// 75: -// 76: EXISTS DEFAULT -// 77: -// 78: FOR CURRENT_TIMESTAMP -// 79: EXCEPT -// 80: -// 81: CROSS -// 82: -// 83: -// 84: -// 85: CAST -// 86: FOREIGN AUTOINCREMENT -// 87: COMMIT -// 88: CURRENT AFTER ALTER -// 89: FULL FAIL CONFLICT -// 90: EXPLAIN -// 91: CONSTRAINT -// 92: FROM ALWAYS -// 93: -// 94: ABORT -// 95: -// 96: AS DO -// 97: REPLACE WITH RELEASE -// 98: BY RENAME -// 99: RANGE RAISE +// +// 0: INSERT +// 1: IS +// 2: ROLLBACK TRIGGER +// 3: IMMEDIATE +// 4: PARTITION +// 5: TEMP +// 6: +// 7: +// 8: VALUES WITHOUT +// 9: +// 10: MATCH +// 11: NOTHING +// 12: +// 13: OF +// 14: TIES IGNORE +// 15: PLAN +// 16: INSTEAD INDEXED +// 17: +// 18: TRANSACTION RIGHT +// 19: WHEN +// 20: SET HAVING +// 21: MATERIALIZED IF +// 22: ROWS +// 23: SELECT +// 24: +// 25: +// 26: VACUUM SAVEPOINT +// 27: +// 28: LIKE UNION VIRTUAL REFERENCES +// 29: RESTRICT +// 30: +// 31: THEN REGEXP +// 32: TO +// 33: +// 34: BEFORE +// 35: +// 36: +// 37: FOLLOWING COLLATE CASCADE +// 38: CREATE +// 39: +// 40: CASE REINDEX +// 41: EACH +// 42: +// 43: QUERY +// 44: AND ADD +// 45: PRIMARY ANALYZE +// 46: +// 47: ROW ASC DETACH +// 48: CURRENT_TIME CURRENT_DATE +// 49: +// 50: +// 51: EXCLUSIVE TEMPORARY +// 52: +// 53: DEFERRED +// 54: DEFERRABLE +// 55: +// 56: DATABASE +// 57: +// 58: DELETE VIEW GENERATED +// 59: ATTACH +// 60: END +// 61: EXCLUDE +// 62: ESCAPE DESC +// 63: GLOB +// 64: WINDOW ELSE +// 65: COLUMN +// 66: FIRST +// 67: +// 68: GROUPS ALL +// 69: DISTINCT DROP KEY +// 70: BETWEEN +// 71: INITIALLY +// 72: BEGIN +// 73: FILTER CHECK ACTION +// 74: GROUP INDEX +// 75: +// 76: EXISTS DEFAULT +// 77: +// 78: FOR CURRENT_TIMESTAMP +// 79: EXCEPT +// 80: +// 81: CROSS +// 82: +// 83: +// 84: +// 85: CAST +// 86: FOREIGN AUTOINCREMENT +// 87: COMMIT +// 88: CURRENT AFTER ALTER +// 89: FULL FAIL CONFLICT +// 90: EXPLAIN +// 91: CONSTRAINT +// 92: FROM ALWAYS +// 93: +// 94: ABORT +// 95: +// 96: AS DO +// 97: REPLACE WITH RELEASE +// 98: BY RENAME +// 99: RANGE RAISE +// // 100: OTHERS // 101: USING NULLS // 102: PRAGMA @@ -193172,7 +195403,7 @@ var aKWCode = [147]uint8{ // Check to see if z[0..n-1] is a keyword. If it is, write the // parser symbol code for that keyword into *pType. Always // return the integer n (the length of the token). -func keywordCode(tls *libc.TLS, z uintptr, n int32, pType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167241:12: */ +func keywordCode(tls *libc.TLS, z uintptr, n int32, pType uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169315:12: */ var i int32 var j int32 var zKW uintptr @@ -193350,7 +195581,7 @@ func keywordCode(tls *libc.TLS, z uintptr, n int32, pType uintptr) int32 { /* te return n } -func Xsqlite3KeywordCode(tls *libc.TLS, z uintptr, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167415:20: */ +func Xsqlite3KeywordCode(tls *libc.TLS, z uintptr, n int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169489:20: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -193359,7 +195590,7 @@ func Xsqlite3KeywordCode(tls *libc.TLS, z uintptr, n int32) int32 { /* testdata/ return *(*int32)(unsafe.Pointer(bp /* id */)) } -func Xsqlite3_keyword_name(tls *libc.TLS, i int32, pzName uintptr, pnName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167421:16: */ +func Xsqlite3_keyword_name(tls *libc.TLS, i int32, pzName uintptr, pnName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169495:16: */ if i < 0 || i >= SQLITE_N_KEYWORD { return SQLITE_ERROR } @@ -193368,11 +195599,11 @@ func Xsqlite3_keyword_name(tls *libc.TLS, i int32, pzName uintptr, pnName uintpt return SQLITE_OK } -func Xsqlite3_keyword_count(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167427:16: */ +func Xsqlite3_keyword_count(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169501:16: */ return SQLITE_N_KEYWORD } -func Xsqlite3_keyword_check(tls *libc.TLS, zName uintptr, nName int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167428:16: */ +func Xsqlite3_keyword_check(tls *libc.TLS, zName uintptr, nName int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169502:16: */ return libc.Bool32(TK_ID != Xsqlite3KeywordCode(tls, zName, nName)) } @@ -193395,13 +195626,13 @@ func Xsqlite3_keyword_check(tls *libc.TLS, zName uintptr, nName int32) int32 { / // But the feature is undocumented. // Make the IdChar function accessible from ctime.c and alter.c -func Xsqlite3IsIdChar(tls *libc.TLS, c U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167475:20: */ +func Xsqlite3IsIdChar(tls *libc.TLS, c U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169549:20: */ return libc.Bool32(int32(Xsqlite3CtypeMap[c])&0x46 != 0) } // Return the id of the next token in string (*pz). Before returning, set // (*pz) to point to the byte following the parsed token. -func getToken(tls *libc.TLS, pz uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167482:12: */ +func getToken(tls *libc.TLS, pz uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169556:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -193429,7 +195660,7 @@ func getToken(tls *libc.TLS, pz uintptr) int32 { /* testdata/sqlite-amalgamation // This cannot be handled by the usual lemon %fallback method, due to // the ambiguity in some constructions. e.g. // -// SELECT sum(x) OVER ... +// SELECT sum(x) OVER ... // // In the above, "OVER" might be a keyword, or it might be an alias for the // sum(x) expression. If a "%fallback ID OVER" directive were added to @@ -193438,20 +195669,20 @@ func getToken(tls *libc.TLS, pz uintptr) int32 { /* testdata/sqlite-amalgamation // // WINDOW is treated as a keyword if: // -// * the following token is an identifier, or a keyword that can fallback +// - the following token is an identifier, or a keyword that can fallback // to being an identifier, and -// * the token after than one is TK_AS. +// - the token after than one is TK_AS. // // OVER is a keyword if: // -// * the previous token was TK_RP, and -// * the next token is either TK_LP or an identifier. +// - the previous token was TK_RP, and +// - the next token is either TK_LP or an identifier. // // FILTER is a keyword if: // -// * the previous token was TK_RP, and -// * the next token is TK_LP. -func analyzeWindowKeyword(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167531:12: */ +// - the previous token was TK_RP, and +// - the next token is TK_LP. +func analyzeWindowKeyword(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169605:12: */ bp := tls.Alloc(8) defer tls.Free(8) *(*uintptr)(unsafe.Pointer(bp)) = z @@ -193468,7 +195699,7 @@ func analyzeWindowKeyword(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-a return TK_WINDOW } -func analyzeOverKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167539:12: */ +func analyzeOverKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169613:12: */ bp := tls.Alloc(8) defer tls.Free(8) *(*uintptr)(unsafe.Pointer(bp)) = z @@ -193482,7 +195713,7 @@ func analyzeOverKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* te return TK_ID } -func analyzeFilterKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167546:12: */ +func analyzeFilterKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169620:12: */ bp := tls.Alloc(8) defer tls.Free(8) *(*uintptr)(unsafe.Pointer(bp)) = z @@ -193495,7 +195726,7 @@ func analyzeFilterKeyword(tls *libc.TLS, z uintptr, lastToken int32) int32 { /* // Return the length (in bytes) of the token that begins at z[0]. // Store the token type in *tokenType before returning. -func Xsqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167558:20: */ +func Xsqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169632:20: */ var i int32 var c int32 switch int32(aiClass[*(*uint8)(unsafe.Pointer(z))]) { // Switch on the character-class of the first byte @@ -193857,7 +196088,7 @@ func Xsqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) int32 { /* te } // Run the parser on the given SQL string. -func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:167852:20: */ +func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:169926:20: */ bp := tls.Alloc(2480) defer tls.Free(2480) @@ -193889,6 +196120,7 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* t mxSqlLen = mxSqlLen - n if mxSqlLen < 0 { (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_TOOBIG + (*Parse)(unsafe.Pointer(pParse)).FnErr++ break } if *(*int32)(unsafe.Pointer(bp + 2456)) >= TK_WINDOW { @@ -193927,7 +196159,7 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* t (*Token)(unsafe.Pointer(bp + 2464 /* &x */)).Fz = zSql (*Token)(unsafe.Pointer(bp + 2464 /* &x */)).Fn = uint32(n) - Xsqlite3ErrorMsg(tls, pParse, ts+24500, libc.VaList(bp, bp+2464)) + Xsqlite3ErrorMsg(tls, pParse, ts+24465, libc.VaList(bp, bp+2464)) break } } @@ -193948,9 +196180,9 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* t } if (*Parse)(unsafe.Pointer(pParse)).FzErrMsg != 0 || (*Parse)(unsafe.Pointer(pParse)).Frc != SQLITE_OK && (*Parse)(unsafe.Pointer(pParse)).Frc != SQLITE_DONE { if (*Parse)(unsafe.Pointer(pParse)).FzErrMsg == uintptr(0) { - (*Parse)(unsafe.Pointer(pParse)).FzErrMsg = Xsqlite3MPrintf(tls, db, ts+4444, libc.VaList(bp+8, Xsqlite3ErrStr(tls, (*Parse)(unsafe.Pointer(pParse)).Frc))) + (*Parse)(unsafe.Pointer(pParse)).FzErrMsg = Xsqlite3MPrintf(tls, db, ts+4479, libc.VaList(bp+8, Xsqlite3ErrStr(tls, (*Parse)(unsafe.Pointer(pParse)).Frc))) } - Xsqlite3_log(tls, (*Parse)(unsafe.Pointer(pParse)).Frc, ts+24525, libc.VaList(bp+16, (*Parse)(unsafe.Pointer(pParse)).FzErrMsg, (*Parse)(unsafe.Pointer(pParse)).FzTail)) + Xsqlite3_log(tls, (*Parse)(unsafe.Pointer(pParse)).Frc, ts+24490, libc.VaList(bp+16, (*Parse)(unsafe.Pointer(pParse)).FzErrMsg, (*Parse)(unsafe.Pointer(pParse)).FzTail)) nErr++ } (*Parse)(unsafe.Pointer(pParse)).FzTail = zSql @@ -193965,7 +196197,9 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* t if (*Parse)(unsafe.Pointer(pParse)).FpNewTrigger != 0 && !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) { Xsqlite3DeleteTrigger(tls, db, (*Parse)(unsafe.Pointer(pParse)).FpNewTrigger) } - Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(pParse)).FpVList) + if (*Parse)(unsafe.Pointer(pParse)).FpVList != 0 { + Xsqlite3DbFreeNN(tls, db, (*Parse)(unsafe.Pointer(pParse)).FpVList) + } (*Sqlite3)(unsafe.Pointer(db)).FpParse = pParentParse return nErr @@ -194004,42 +196238,42 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* t // // This implementation uses a state machine with 8 states: // -// (0) INVALID We have not yet seen a non-whitespace character. +// (0) INVALID We have not yet seen a non-whitespace character. // -// (1) START At the beginning or end of an SQL statement. This routine -// returns 1 if it ends in the START state and 0 if it ends -// in any other state. +// (1) START At the beginning or end of an SQL statement. This routine +// returns 1 if it ends in the START state and 0 if it ends +// in any other state. // -// (2) NORMAL We are in the middle of statement which ends with a single -// semicolon. +// (2) NORMAL We are in the middle of statement which ends with a single +// semicolon. // -// (3) EXPLAIN The keyword EXPLAIN has been seen at the beginning of -// a statement. +// (3) EXPLAIN The keyword EXPLAIN has been seen at the beginning of +// a statement. // -// (4) CREATE The keyword CREATE has been seen at the beginning of a -// statement, possibly preceded by EXPLAIN and/or followed by -// TEMP or TEMPORARY +// (4) CREATE The keyword CREATE has been seen at the beginning of a +// statement, possibly preceded by EXPLAIN and/or followed by +// TEMP or TEMPORARY // -// (5) TRIGGER We are in the middle of a trigger definition that must be -// ended by a semicolon, the keyword END, and another semicolon. +// (5) TRIGGER We are in the middle of a trigger definition that must be +// ended by a semicolon, the keyword END, and another semicolon. // -// (6) SEMI We've seen the first semicolon in the ";END;" that occurs at -// the end of a trigger definition. +// (6) SEMI We've seen the first semicolon in the ";END;" that occurs at +// the end of a trigger definition. // -// (7) END We've seen the ";END" of the ";END;" that occurs at the end -// of a trigger definition. +// (7) END We've seen the ";END" of the ";END;" that occurs at the end +// of a trigger definition. // // Transitions between states above are determined by tokens extracted // from the input. The following tokens are significant: // -// (0) tkSEMI A semicolon. -// (1) tkWS Whitespace. -// (2) tkOTHER Any other SQL token. -// (3) tkEXPLAIN The "explain" keyword. -// (4) tkCREATE The "create" keyword. -// (5) tkTEMP The "temp" or "temporary" keyword. -// (6) tkTRIGGER The "trigger" keyword. -// (7) tkEND The "end" keyword. +// (0) tkSEMI A semicolon. +// (1) tkWS Whitespace. +// (2) tkOTHER Any other SQL token. +// (3) tkEXPLAIN The "explain" keyword. +// (4) tkCREATE The "create" keyword. +// (5) tkTEMP The "temp" or "temporary" keyword. +// (6) tkTRIGGER The "trigger" keyword. +// (7) tkEND The "end" keyword. // // Whitespace never causes a state transition and is always ignored. // This means that a SQL string of all whitespace is invalid. @@ -194047,7 +196281,7 @@ func Xsqlite3RunParser(tls *libc.TLS, pParse uintptr, zSql uintptr) int32 { /* t // If we compile with SQLITE_OMIT_TRIGGER, all of the computation needed // to recognize the end of a trigger can be omitted. All we have to do // is look for a semicolon that is not part of an string or comment. -func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168244:16: */ +func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170319:16: */ var state U8 = U8(0) // Current state, using numbers defined in header comment var token U8 @@ -194150,7 +196384,7 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-a fallthrough case 'C': { - if nId == 6 && Xsqlite3_strnicmp(tls, zSql, ts+24536, 6) == 0 { + if nId == 6 && Xsqlite3_strnicmp(tls, zSql, ts+24501, 6) == 0 { token = U8(TkCREATE) } else { token = U8(TkOTHER) @@ -194163,11 +196397,11 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-a fallthrough case 'T': { - if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+21204, 7) == 0 { + if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+21144, 7) == 0 { token = U8(TkTRIGGER) - } else if nId == 4 && Xsqlite3_strnicmp(tls, zSql, ts+24543, 4) == 0 { + } else if nId == 4 && Xsqlite3_strnicmp(tls, zSql, ts+24508, 4) == 0 { token = U8(TkTEMP) - } else if nId == 9 && Xsqlite3_strnicmp(tls, zSql, ts+24548, 9) == 0 { + } else if nId == 9 && Xsqlite3_strnicmp(tls, zSql, ts+24513, 9) == 0 { token = U8(TkTEMP) } else { token = U8(TkOTHER) @@ -194180,9 +196414,9 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-a fallthrough case 'E': { - if nId == 3 && Xsqlite3_strnicmp(tls, zSql, ts+24558, 3) == 0 { + if nId == 3 && Xsqlite3_strnicmp(tls, zSql, ts+24523, 3) == 0 { token = U8(TkEND) - } else if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+24562, 7) == 0 { + } else if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+24527, 7) == 0 { token = U8(TkEXPLAIN) } else { token = U8(TkOTHER) @@ -194224,12 +196458,12 @@ var trans = [8][8]U8{ /* 5 TRIGGER: */ {U8(6), U8(5), U8(5), U8(5), U8(5), U8(5), U8(5), U8(5)}, /* 6 SEMI: */ {U8(6), U8(6), U8(5), U8(5), U8(5), U8(5), U8(5), U8(7)}, /* 7 END: */ {U8(1), U8(7), U8(5), U8(5), U8(5), U8(5), U8(5), U8(5)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168252:19 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170327:19 */ // This routine is the same as the sqlite3_complete() routine described // above, except that the parameter is required to be UTF-16 encoded, not // UTF-8. -func Xsqlite3_complete16(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168409:16: */ +func Xsqlite3_complete16(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170484:16: */ var pVal uintptr var zSql8 uintptr var rc int32 @@ -194256,7 +196490,7 @@ func Xsqlite3_complete16(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite // This is an extension initializer that is a no-op and always // succeeds, except that it fails if the fault-simulation is set // to 500. -func sqlite3TestExtInit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168561:12: */ +func sqlite3TestExtInit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170636:12: */ _ = db return Xsqlite3FaultSim(tls, 500) } @@ -194268,11 +196502,11 @@ var sqlite3BuiltinExtensions = [4]uintptr{ 0, 0, 0, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168588:12 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170663:12 */ // IMPLEMENTATION-OF: R-53536-42575 The sqlite3_libversion() function returns // a pointer to the to the sqlite3_version[] string constant. -func Xsqlite3_libversion(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168635:23: */ +func Xsqlite3_libversion(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170710:23: */ return uintptr(unsafe.Pointer(&Xsqlite3_version)) } @@ -194285,14 +196519,14 @@ func Xsqlite3_libversion(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamatio // IMPLEMENTATION-OF: R-35210-63508 The sqlite3_libversion_number() function // returns an integer equal to SQLITE_VERSION_NUMBER. -func Xsqlite3_libversion_number(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168648:16: */ +func Xsqlite3_libversion_number(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170723:16: */ return SQLITE_VERSION_NUMBER } // IMPLEMENTATION-OF: R-20790-14025 The sqlite3_threadsafe() function returns // zero if and only if SQLite was compiled with mutexing code omitted due to // the SQLITE_THREADSAFE compile-time option being set to 0. -func Xsqlite3_threadsafe(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168654:16: */ +func Xsqlite3_threadsafe(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170729:16: */ return SQLITE_THREADSAFE } @@ -194305,14 +196539,14 @@ func Xsqlite3_threadsafe(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation- // temporary files. // // See also the "PRAGMA temp_store_directory" SQL command. -var Xsqlite3_temp_directory uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168685:17 */ +var Xsqlite3_temp_directory uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170760:17 */ // If the following global variable points to a string which is the // name of a directory, then that directory will be used to store // all database files specified with a relative pathname. // // See also the "PRAGMA data_store_directory" SQL command. -var Xsqlite3_data_directory uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168694:17 */ +var Xsqlite3_data_directory uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170769:17 */ // Initialize SQLite. // @@ -194338,12 +196572,12 @@ var Xsqlite3_data_directory uintptr = uintptr(0) /* testdata/sqlite-amalgamation // thread. Then while the initial invocation of this routine by X is // incomplete, it is required that: // -// * Calls to this routine from Y must block until the outer-most -// call by X completes. +// - Calls to this routine from Y must block until the outer-most +// call by X completes. // -// * Recursive calls to this routine from thread X return immediately -// without blocking. -func Xsqlite3_initialize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168727:16: */ +// - Recursive calls to this routine from thread X return immediately +// without blocking. +func Xsqlite3_initialize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170802:16: */ var pMainMtx uintptr // The main static mutex var rc int32 // Result code @@ -194469,7 +196703,7 @@ func Xsqlite3_initialize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation- // routine is not threadsafe. But it is safe to invoke this routine // on when SQLite is already shut down. If SQLite is already shut down // when this routine is invoked, then this routine is a harmless no-op. -func Xsqlite3_shutdown(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168902:16: */ +func Xsqlite3_shutdown(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:170977:16: */ if Xsqlite3Config.FisInit != 0 { Xsqlite3_os_end(tls) @@ -194508,7 +196742,7 @@ func Xsqlite3_shutdown(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-33 // database connections or memory allocations. This routine is not // threadsafe. Failure to heed these warnings can lead to unpredictable // behavior. -func Xsqlite3_config(tls *libc.TLS, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:168956:16: */ +func Xsqlite3_config(tls *libc.TLS, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171031:16: */ var ap Va_list _ = ap var rc int32 = SQLITE_OK @@ -194516,7 +196750,7 @@ func Xsqlite3_config(tls *libc.TLS, op int32, va uintptr) int32 { /* testdata/sq // sqlite3_config() shall return SQLITE_MISUSE if it is invoked while // the SQLite library is in use. if Xsqlite3Config.FisInit != 0 { - return Xsqlite3MisuseError(tls, 168962) + return Xsqlite3MisuseError(tls, 171037) } ap = va @@ -194786,7 +197020,7 @@ func Xsqlite3_config(tls *libc.TLS, op int32, va uintptr) int32 { /* testdata/sq // space for the lookaside memory is obtained from sqlite3_malloc(). // If pStart is not NULL then it is sz*cnt bytes of memory to use for // the lookaside memory. -func setupLookaside(tls *libc.TLS, db uintptr, pBuf uintptr, sz int32, cnt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169274:12: */ +func setupLookaside(tls *libc.TLS, db uintptr, pBuf uintptr, sz int32, cnt int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171349:12: */ var pStart uintptr var szAlloc Sqlite3_int64 = Sqlite3_int64(sz) * Sqlite3_int64(cnt) var nBig int32 // Number of full-size slots @@ -194884,13 +197118,13 @@ func setupLookaside(tls *libc.TLS, db uintptr, pBuf uintptr, sz int32, cnt int32 } // Return the mutex associated with a database connection. -func Xsqlite3_db_mutex(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169374:26: */ +func Xsqlite3_db_mutex(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171449:26: */ return (*Sqlite3)(unsafe.Pointer(db)).Fmutex } // Free up as much memory as we can from the given database // connection. -func Xsqlite3_db_release_memory(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169388:16: */ +func Xsqlite3_db_release_memory(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171463:16: */ var i int32 Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -194909,7 +197143,7 @@ func Xsqlite3_db_release_memory(tls *libc.TLS, db uintptr) int32 { /* testdata/s // Flush any dirty pages in the pager-cache for any attached database // to disk. -func Xsqlite3_db_cacheflush(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169412:16: */ +func Xsqlite3_db_cacheflush(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171487:16: */ var i int32 var rc int32 = SQLITE_OK var bSeenBusy int32 = 0 @@ -194938,7 +197172,7 @@ func Xsqlite3_db_cacheflush(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlit } // Configuration settings for an individual database connection -func Xsqlite3_db_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169441:16: */ +func Xsqlite3_db_config(tls *libc.TLS, db uintptr, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171516:16: */ var ap Va_list _ = ap var rc int32 @@ -195017,11 +197251,11 @@ var aFlagOp = [16]struct { {Fop: SQLITE_DBCONFIG_DQS_DML, Fmask: U32(SQLITE_DqsDML)}, {Fop: SQLITE_DBCONFIG_LEGACY_FILE_FORMAT, Fmask: U32(SQLITE_LegacyFileFmt)}, {Fop: SQLITE_DBCONFIG_TRUSTED_SCHEMA, Fmask: U32(SQLITE_TrustedSchema)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169464:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171539:9 */ // This is the default collating function named "BINARY" which is always // available. -func binCollFunc(tls *libc.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169516:12: */ +func binCollFunc(tls *libc.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171591:12: */ var rc int32 var n int32 _ = NotUsed @@ -195043,7 +197277,7 @@ func binCollFunc(tls *libc.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr, nKe // This is the collating function named "RTRIM" which is always // available. Ignore trailing spaces. -func rtrimCollFunc(tls *libc.TLS, pUser uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169539:12: */ +func rtrimCollFunc(tls *libc.TLS, pUser uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171614:12: */ var pK1 uintptr = pKey1 var pK2 uintptr = pKey2 for nKey1 != 0 && int32(*(*U8)(unsafe.Pointer(pK1 + uintptr(nKey1-1)))) == ' ' { @@ -195056,7 +197290,7 @@ func rtrimCollFunc(tls *libc.TLS, pUser uintptr, nKey1 int32, pKey1 uintptr, nKe } // Return true if CollSeq is the default built-in BINARY. -func Xsqlite3IsBinary(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169554:20: */ +func Xsqlite3IsBinary(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171629:20: */ return libc.Bool32(p == uintptr(0) || (*CollSeq)(unsafe.Pointer(p)).FxCmp == *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32 @@ -195070,7 +197304,7 @@ func Xsqlite3IsBinary(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // extends only to the 26 characters used in the English language. // // At the moment there is only a UTF-8 implementation. -func nocaseCollatingFunc(tls *libc.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169568:12: */ +func nocaseCollatingFunc(tls *libc.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171643:12: */ var r int32 = Xsqlite3_strnicmp(tls, pKey1, pKey2, func() int32 { if nKey1 < nKey2 { @@ -195086,39 +197320,39 @@ func nocaseCollatingFunc(tls *libc.TLS, NotUsed uintptr, nKey1 int32, pKey1 uint } // Return the ROWID of the most recent insert -func Xsqlite3_last_insert_rowid(tls *libc.TLS, db uintptr) Sqlite_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169585:25: */ +func Xsqlite3_last_insert_rowid(tls *libc.TLS, db uintptr) Sqlite_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171660:25: */ return (*Sqlite3)(unsafe.Pointer(db)).FlastRowid } // Set the value returned by the sqlite3_last_insert_rowid() API function. -func Xsqlite3_set_last_insert_rowid(tls *libc.TLS, db uintptr, iRowid Sqlite3_int64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169598:17: */ +func Xsqlite3_set_last_insert_rowid(tls *libc.TLS, db uintptr, iRowid Sqlite3_int64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171673:17: */ Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) (*Sqlite3)(unsafe.Pointer(db)).FlastRowid = iRowid Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) } // Return the number of changes in the most recent call to sqlite3_exec(). -func Xsqlite3_changes64(tls *libc.TLS, db uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169613:26: */ +func Xsqlite3_changes64(tls *libc.TLS, db uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171688:26: */ return (*Sqlite3)(unsafe.Pointer(db)).FnChange } -func Xsqlite3_changes(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169622:16: */ +func Xsqlite3_changes(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171697:16: */ return int32(Xsqlite3_changes64(tls, db)) } // Return the number of changes since the database handle was opened. -func Xsqlite3_total_changes64(tls *libc.TLS, db uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169629:26: */ +func Xsqlite3_total_changes64(tls *libc.TLS, db uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171704:26: */ return (*Sqlite3)(unsafe.Pointer(db)).FnTotalChange } -func Xsqlite3_total_changes(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169638:16: */ +func Xsqlite3_total_changes(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171713:16: */ return int32(Xsqlite3_total_changes64(tls, db)) } // Close all open savepoints. This function only manipulates fields of the // database handle object, it does not close any savepoints that may be open // at the b-tree/pager level. -func Xsqlite3CloseSavepoints(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169647:21: */ +func Xsqlite3CloseSavepoints(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171722:21: */ for (*Sqlite3)(unsafe.Pointer(db)).FpSavepoint != 0 { var pTmp uintptr = (*Sqlite3)(unsafe.Pointer(db)).FpSavepoint (*Sqlite3)(unsafe.Pointer(db)).FpSavepoint = (*Savepoint)(unsafe.Pointer(pTmp)).FpNext @@ -195133,7 +197367,7 @@ func Xsqlite3CloseSavepoints(tls *libc.TLS, db uintptr) { /* testdata/sqlite-ama // if this is not the last copy of the function, do not invoke it. Multiple // copies of a single function are created when create_function() is called // with SQLITE_ANY as the encoding. -func functionDestroy(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169664:13: */ +func functionDestroy(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171739:13: */ var pDestructor uintptr pDestructor = *(*uintptr)(unsafe.Pointer(p + 64)) @@ -195148,7 +197382,7 @@ func functionDestroy(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/sqlite- // Disconnect all sqlite3_vtab objects that belong to database connection // db. This is called when db is being closed. -func disconnectAllVtab(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169681:13: */ +func disconnectAllVtab(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171756:13: */ var i int32 var p uintptr Xsqlite3BtreeEnterAll(tls, db) @@ -195175,7 +197409,7 @@ func disconnectAllVtab(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamat // Return TRUE if database connection db has unfinalized prepared // statements or unfinished sqlite3_backup objects. -func connectionIsBusy(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169712:12: */ +func connectionIsBusy(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171787:12: */ var j int32 if (*Sqlite3)(unsafe.Pointer(db)).FpVdbe != 0 { @@ -195191,14 +197425,14 @@ func connectionIsBusy(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amal } // Close an existing SQLite database -func sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169726:12: */ +func sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171801:12: */ if !(db != 0) { // EVIDENCE-OF: R-63257-11740 Calling sqlite3_close() or // sqlite3_close_v2() with a NULL pointer argument is a harmless no-op. return SQLITE_OK } if !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) { - return Xsqlite3MisuseError(tls, 169733) + return Xsqlite3MisuseError(tls, 171808) } Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) if int32((*Sqlite3)(unsafe.Pointer(db)).FmTrace)&SQLITE_TRACE_CLOSE != 0 { @@ -195222,7 +197456,7 @@ func sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) int32 { /* testd // SQLITE_BUSY if the connection can not be closed immediately. if !(forceZombie != 0) && connectionIsBusy(tls, db) != 0 { Xsqlite3ErrorWithMsg(tls, db, SQLITE_BUSY, - ts+24570, 0) + ts+24535, 0) Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) return SQLITE_BUSY } @@ -195235,7 +197469,7 @@ func sqlite3Close(tls *libc.TLS, db uintptr, forceZombie int32) int32 { /* testd // Return the transaction state for a single databse, or the maximum // transaction state over all attached databases if zSchema is null. -func Xsqlite3_txn_state(tls *libc.TLS, db uintptr, zSchema uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169780:16: */ +func Xsqlite3_txn_state(tls *libc.TLS, db uintptr, zSchema uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171855:16: */ var iDb int32 var nDb int32 var iTxn int32 = -1 @@ -195272,11 +197506,11 @@ func Xsqlite3_txn_state(tls *libc.TLS, db uintptr, zSchema uintptr) int32 { /* t // version forces the connection to become a zombie if there are // unclosed resources, and arranges for deallocation when the last // prepare statement or sqlite3_backup closes. -func Xsqlite3_close(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169815:16: */ +func Xsqlite3_close(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171890:16: */ return sqlite3Close(tls, db, 0) } -func Xsqlite3_close_v2(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169816:16: */ +func Xsqlite3_close_v2(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171891:16: */ return sqlite3Close(tls, db, 1) } @@ -195286,7 +197520,7 @@ func Xsqlite3_close_v2(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-ama // has been a prior call to sqlite3_close(db) or sqlite3_close_v2(db)) and // every sqlite3_stmt has now been finalized and every sqlite3_backup has // finished, then free all resources. -func Xsqlite3LeaveMutexAndCloseZombie(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169827:21: */ +func Xsqlite3LeaveMutexAndCloseZombie(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:171902:21: */ var i uintptr // Hash table iterator var j int32 @@ -195396,7 +197630,7 @@ func Xsqlite3LeaveMutexAndCloseZombie(tls *libc.TLS, db uintptr) { /* testdata/s // breaker") and made to return tripCode if there are any further // attempts to use that cursor. Read cursors remain open and valid // but are "saved" in case the table pages are moved around. -func Xsqlite3RollbackAll(tls *libc.TLS, db uintptr, tripCode int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:169950:21: */ +func Xsqlite3RollbackAll(tls *libc.TLS, db uintptr, tripCode int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172025:21: */ var i int32 var inTrans int32 = 0 var schemaChange int32 @@ -195446,24 +197680,24 @@ func Xsqlite3RollbackAll(tls *libc.TLS, db uintptr, tripCode int32) { /* testdat // Return a static string that describes the kind of error specified in the // argument. -func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170111:27: */ - var zErr uintptr = ts + 24638 /* "unknown error" */ +func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172186:27: */ + var zErr uintptr = ts + 24603 /* "unknown error" */ switch rc { case SQLITE_ABORT | int32(2)<<8: { - zErr = ts + 24652 /* "abort due to ROL..." */ + zErr = ts + 24617 /* "abort due to ROL..." */ break } case SQLITE_ROW: { - zErr = ts + 24674 /* "another row avai..." */ + zErr = ts + 24639 /* "another row avai..." */ break } case SQLITE_DONE: { - zErr = ts + 24696 /* "no more rows ava..." */ + zErr = ts + 24661 /* "no more rows ava..." */ break } @@ -195481,36 +197715,36 @@ func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* testdata/sqlite-amalga } var aMsg = [29]uintptr{ - ts + 24719, - ts + 24732, + ts + 24684, + ts + 24697, /* SQLITE_INTERNAL */ uintptr(0), - ts + 24748, - ts + 24773, - ts + 24787, - ts + 24806, + ts + 24713, + ts + 24738, + ts + 24752, + ts + 24771, ts + 1460, - ts + 24831, - ts + 24868, - ts + 24880, - ts + 24895, - ts + 24928, - ts + 24946, - ts + 24971, - ts + 25000, + ts + 24796, + ts + 24833, + ts + 24845, + ts + 24860, + ts + 24893, + ts + 24911, + ts + 24936, + ts + 24965, /* SQLITE_EMPTY */ uintptr(0), - ts + 7151, - ts + 6637, - ts + 25017, - ts + 25035, - ts + 25053, + ts + 7186, + ts + 6672, + ts + 24982, + ts + 25000, + ts + 25018, /* SQLITE_NOLFS */ uintptr(0), - ts + 25087, + ts + 25052, /* SQLITE_FORMAT */ uintptr(0), - ts + 25108, - ts + 25134, - ts + 25157, - ts + 25178, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170112:20 */ + ts + 25073, + ts + 25099, + ts + 25122, + ts + 25143, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172187:20 */ // This routine implements a busy callback that sleeps and tries // again until a timeout value is reached. The timeout value is @@ -195519,7 +197753,7 @@ var aMsg = [29]uintptr{ // // Return non-zero to retry the lock. Return zero to stop trying // and cause SQLite to return SQLITE_BUSY. -func sqliteDefaultBusyCallback(tls *libc.TLS, ptr uintptr, count int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170181:12: */ +func sqliteDefaultBusyCallback(tls *libc.TLS, ptr uintptr, count int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172256:12: */ var db uintptr = ptr var tmout int32 = (*Sqlite3)(unsafe.Pointer(db)).FbusyTimeout var delay int32 @@ -195542,8 +197776,8 @@ func sqliteDefaultBusyCallback(tls *libc.TLS, ptr uintptr, count int32) int32 { return 1 } -var delays = [12]U8{U8(1), U8(2), U8(5), U8(10), U8(15), U8(20), U8(25), U8(25), U8(25), U8(50), U8(50), U8(100)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170188:19 */ -var totals = [12]U8{U8(0), U8(1), U8(3), U8(8), U8(18), U8(33), U8(53), U8(78), U8(103), U8(128), U8(178), U8(228)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170190:19 */ +var delays = [12]U8{U8(1), U8(2), U8(5), U8(10), U8(15), U8(20), U8(25), U8(25), U8(25), U8(50), U8(50), U8(100)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172263:19 */ +var totals = [12]U8{U8(0), U8(1), U8(3), U8(8), U8(18), U8(33), U8(53), U8(78), U8(103), U8(128), U8(178), U8(228)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172265:19 */ // Invoke the given busy handler. // @@ -195552,7 +197786,7 @@ var totals = [12]U8{U8(0), U8(1), U8(3), U8(8), U8(18), U8(33), U8(53), U8(78), // // If this routine returns non-zero, the lock is retried. If it // returns 0, the operation aborts with an SQLITE_BUSY error. -func Xsqlite3InvokeBusyHandler(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170233:20: */ +func Xsqlite3InvokeBusyHandler(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172308:20: */ var rc int32 if (*BusyHandler)(unsafe.Pointer(p)).FxBusyHandler == uintptr(0) || (*BusyHandler)(unsafe.Pointer(p)).FnBusy < 0 { return 0 @@ -195570,7 +197804,7 @@ func Xsqlite3InvokeBusyHandler(tls *libc.TLS, p uintptr) int32 { /* testdata/sql // This routine sets the busy callback for an Sqlite database to the // given callback function with the given argument. -func Xsqlite3_busy_handler(tls *libc.TLS, db uintptr, xBusy uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170249:16: */ +func Xsqlite3_busy_handler(tls *libc.TLS, db uintptr, xBusy uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172324:16: */ Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) (*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FxBusyHandler = xBusy (*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FpBusyArg = pArg @@ -195583,7 +197817,7 @@ func Xsqlite3_busy_handler(tls *libc.TLS, db uintptr, xBusy uintptr, pArg uintpt // This routine sets the progress callback for an Sqlite database to the // given callback function with the given argument. The progress callback will // be invoked every nOps opcodes. -func Xsqlite3_progress_handler(tls *libc.TLS, db uintptr, nOps int32, xProgress uintptr, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170272:17: */ +func Xsqlite3_progress_handler(tls *libc.TLS, db uintptr, nOps int32, xProgress uintptr, pArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172347:17: */ Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) if nOps > 0 { (*Sqlite3)(unsafe.Pointer(db)).FxProgress = xProgress @@ -195599,7 +197833,7 @@ func Xsqlite3_progress_handler(tls *libc.TLS, db uintptr, nOps int32, xProgress // This routine installs a default busy handler that waits for the // specified number of milliseconds before returning 0. -func Xsqlite3_busy_timeout(tls *libc.TLS, db uintptr, ms int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170303:16: */ +func Xsqlite3_busy_timeout(tls *libc.TLS, db uintptr, ms int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172378:16: */ if ms > 0 { Xsqlite3_busy_handler(tls, db, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32) int32 @@ -195613,7 +197847,7 @@ func Xsqlite3_busy_timeout(tls *libc.TLS, db uintptr, ms int32) int32 { /* testd } // Cause any pending operation to stop at its earliest opportunity. -func Xsqlite3_interrupt(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170320:17: */ +func Xsqlite3_interrupt(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172395:17: */ libc.AtomicStoreNInt32(db+432, int32(1), 0) } @@ -195621,7 +197855,7 @@ func Xsqlite3_interrupt(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgama // that it is designed to be called by internal code. The difference is // that if a malloc() fails in sqlite3_create_function(), an error code // is returned and the mallocFailed flag cleared. -func Xsqlite3CreateFunc(tls *libc.TLS, db uintptr, zFunctionName uintptr, nArg int32, enc int32, pUserData uintptr, xSFunc uintptr, xStep uintptr, xFinal uintptr, xValue uintptr, xInverse uintptr, pDestructor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170337:20: */ +func Xsqlite3CreateFunc(tls *libc.TLS, db uintptr, zFunctionName uintptr, nArg int32, enc int32, pUserData uintptr, xSFunc uintptr, xStep uintptr, xFinal uintptr, xValue uintptr, xInverse uintptr, pDestructor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172412:20: */ var p uintptr var extraFlags int32 @@ -195631,7 +197865,7 @@ func Xsqlite3CreateFunc(tls *libc.TLS, db uintptr, zFunctionName uintptr, nArg i libc.Bool32(xValue == uintptr(0)) != libc.Bool32(xInverse == uintptr(0)) || (nArg < -1 || nArg > SQLITE_MAX_FUNCTION_ARG) || 255 < Xsqlite3Strlen30(tls, zFunctionName) { - return Xsqlite3MisuseError(tls, 170362) + return Xsqlite3MisuseError(tls, 172437) } extraFlags = enc & (SQLITE_DETERMINISTIC | SQLITE_DIRECTONLY | SQLITE_SUBTYPE | SQLITE_INNOCUOUS) @@ -195689,7 +197923,7 @@ func Xsqlite3CreateFunc(tls *libc.TLS, db uintptr, zFunctionName uintptr, nArg i if p != 0 && (*FuncDef)(unsafe.Pointer(p)).FfuncFlags&U32(SQLITE_FUNC_ENCMASK) == U32(enc) && int32((*FuncDef)(unsafe.Pointer(p)).FnArg) == nArg { if (*Sqlite3)(unsafe.Pointer(db)).FnVdbeActive != 0 { Xsqlite3ErrorWithMsg(tls, db, SQLITE_BUSY, - ts+25194, 0) + ts+25159, 0) return SQLITE_BUSY } else { @@ -195733,10 +197967,10 @@ func Xsqlite3CreateFunc(tls *libc.TLS, db uintptr, zFunctionName uintptr, nArg i // Worker function used by utf-8 APIs that create new functions: // -// sqlite3_create_function() -// sqlite3_create_function_v2() -// sqlite3_create_window_function() -func createFunctionApi(tls *libc.TLS, db uintptr, zFunc uintptr, nArg int32, enc int32, p uintptr, xSFunc uintptr, xStep uintptr, xFinal uintptr, xValue uintptr, xInverse uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170471:12: */ +// sqlite3_create_function() +// sqlite3_create_function_v2() +// sqlite3_create_window_function() +func createFunctionApi(tls *libc.TLS, db uintptr, zFunc uintptr, nArg int32, enc int32, p uintptr, xSFunc uintptr, xStep uintptr, xFinal uintptr, xValue uintptr, xInverse uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172546:12: */ var rc int32 var pArg uintptr rc = SQLITE_ERROR @@ -195778,22 +198012,22 @@ out: } // Create new user functions. -func Xsqlite3_create_function(tls *libc.TLS, db uintptr, zFunc uintptr, nArg int32, enc int32, p uintptr, xSFunc uintptr, xStep uintptr, xFinal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170522:16: */ +func Xsqlite3_create_function(tls *libc.TLS, db uintptr, zFunc uintptr, nArg int32, enc int32, p uintptr, xSFunc uintptr, xStep uintptr, xFinal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172597:16: */ return createFunctionApi(tls, db, zFunc, nArg, enc, p, xSFunc, xStep, xFinal, uintptr(0), uintptr(0), uintptr(0)) } -func Xsqlite3_create_function_v2(tls *libc.TLS, db uintptr, zFunc uintptr, nArg int32, enc int32, p uintptr, xSFunc uintptr, xStep uintptr, xFinal uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170535:16: */ +func Xsqlite3_create_function_v2(tls *libc.TLS, db uintptr, zFunc uintptr, nArg int32, enc int32, p uintptr, xSFunc uintptr, xStep uintptr, xFinal uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172610:16: */ return createFunctionApi(tls, db, zFunc, nArg, enc, p, xSFunc, xStep, xFinal, uintptr(0), uintptr(0), xDestroy) } -func Xsqlite3_create_window_function(tls *libc.TLS, db uintptr, zFunc uintptr, nArg int32, enc int32, p uintptr, xStep uintptr, xFinal uintptr, xValue uintptr, xInverse uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170549:16: */ +func Xsqlite3_create_window_function(tls *libc.TLS, db uintptr, zFunc uintptr, nArg int32, enc int32, p uintptr, xStep uintptr, xFinal uintptr, xValue uintptr, xInverse uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172624:16: */ return createFunctionApi(tls, db, zFunc, nArg, enc, p, uintptr(0), xStep, xFinal, xValue, xInverse, xDestroy) } -func Xsqlite3_create_function16(tls *libc.TLS, db uintptr, zFunctionName uintptr, nArg int32, eTextRep int32, p uintptr, xSFunc uintptr, xStep uintptr, xFinal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170566:16: */ +func Xsqlite3_create_function16(tls *libc.TLS, db uintptr, zFunctionName uintptr, nArg int32, eTextRep int32, p uintptr, xSFunc uintptr, xStep uintptr, xFinal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172641:16: */ var rc int32 var zFunc8 uintptr @@ -195813,7 +198047,7 @@ func Xsqlite3_create_function16(tls *libc.TLS, db uintptr, zFunctionName uintptr // SQL function that use this routine so that the functions will exist // for name resolution but are actually overloaded by the xFindFunction // method of virtual tables. -func sqlite3InvalidFunction(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170602:13: */ +func sqlite3InvalidFunction(tls *libc.TLS, context uintptr, NotUsed int32, NotUsed2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172677:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -195822,7 +198056,7 @@ func sqlite3InvalidFunction(tls *libc.TLS, context uintptr, NotUsed int32, NotUs _ = NotUsed _ = NotUsed2 zErr = Xsqlite3_mprintf(tls, - ts+25257, libc.VaList(bp, zName)) + ts+25222, libc.VaList(bp, zName)) Xsqlite3_result_error(tls, context, zErr, -1) Xsqlite3_free(tls, zErr) } @@ -195837,7 +198071,7 @@ func sqlite3InvalidFunction(tls *libc.TLS, context uintptr, NotUsed int32, NotUs // should call this routine to make sure the global function exists. // A global function must exist in order for name resolution to work // properly. -func Xsqlite3_overload_function(tls *libc.TLS, db uintptr, zName uintptr, nArg int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170628:16: */ +func Xsqlite3_overload_function(tls *libc.TLS, db uintptr, zName uintptr, nArg int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172703:16: */ var rc int32 var zCopy uintptr @@ -195863,7 +198097,7 @@ func Xsqlite3_overload_function(tls *libc.TLS, db uintptr, zName uintptr, nArg i // A NULL trace function means that no tracing is executes. A non-NULL // trace is a pointer to a function that is invoked at the start of each // SQL statement. -func Xsqlite3_trace(tls *libc.TLS, db uintptr, xTrace uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170661:17: */ +func Xsqlite3_trace(tls *libc.TLS, db uintptr, xTrace uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172736:17: */ var pOld uintptr Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -195881,7 +198115,7 @@ func Xsqlite3_trace(tls *libc.TLS, db uintptr, xTrace uintptr, pArg uintptr) uin } // Register a trace callback using the version-2 interface. -func Xsqlite3_trace_v2(tls *libc.TLS, db uintptr, mTrace uint32, xTrace uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170682:16: */ +func Xsqlite3_trace_v2(tls *libc.TLS, db uintptr, mTrace uint32, xTrace uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172757:16: */ Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) if mTrace == uint32(0) { xTrace = uintptr(0) @@ -195902,7 +198136,7 @@ func Xsqlite3_trace_v2(tls *libc.TLS, db uintptr, mTrace uint32, xTrace uintptr, // A NULL profile function means that no profiling is executes. A non-NULL // profile is a pointer to a function that is invoked at the conclusion of // each SQL statement that is run. -func Xsqlite3_profile(tls *libc.TLS, db uintptr, xProfile uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170712:17: */ +func Xsqlite3_profile(tls *libc.TLS, db uintptr, xProfile uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172787:17: */ var pOld uintptr Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -195920,7 +198154,7 @@ func Xsqlite3_profile(tls *libc.TLS, db uintptr, xProfile uintptr, pArg uintptr) // Register a function to be invoked when a transaction commits. // If the invoked function returns non-zero, then the commit becomes a // rollback. -func Xsqlite3_commit_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170742:17: */ +func Xsqlite3_commit_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172817:17: */ var pOld uintptr Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -195933,7 +198167,7 @@ func Xsqlite3_commit_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uin // Register a callback to be invoked each time a row is updated, // inserted or deleted using this database connection. -func Xsqlite3_update_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170767:17: */ +func Xsqlite3_update_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172842:17: */ var pRet uintptr Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -195946,7 +198180,7 @@ func Xsqlite3_update_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uin // Register a callback to be invoked each time a transaction is rolled // back by this database connection. -func Xsqlite3_rollback_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170792:17: */ +func Xsqlite3_rollback_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172867:17: */ var pRet uintptr Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -195959,7 +198193,7 @@ func Xsqlite3_rollback_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg u // Register a callback to be invoked each time a row is updated, // inserted or deleted using this database connection. -func Xsqlite3_preupdate_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170818:17: */ +func Xsqlite3_preupdate_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172893:17: */ var pRet uintptr Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) pRet = (*Sqlite3)(unsafe.Pointer(db)).FpPreUpdateArg @@ -195971,7 +198205,7 @@ func Xsqlite3_preupdate_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg // Register a function to be invoked prior to each autovacuum that // determines the number of pages to vacuum. -func Xsqlite3_autovacuum_pages(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr, xDestructor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170838:16: */ +func Xsqlite3_autovacuum_pages(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr, xDestructor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172913:16: */ Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) if (*Sqlite3)(unsafe.Pointer(db)).FxAutovacDestr != 0 { (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*Sqlite3)(unsafe.Pointer(db)).FxAutovacDestr})).f(tls, (*Sqlite3)(unsafe.Pointer(db)).FpAutovacPagesArg) @@ -195987,7 +198221,7 @@ func Xsqlite3_autovacuum_pages(tls *libc.TLS, db uintptr, xCallback uintptr, pAr // Invoke sqlite3_wal_checkpoint if the number of frames in the log file // is greater than sqlite3.pWalArg cast to an integer (the value configured by // wal_autocheckpoint()). -func Xsqlite3WalDefaultHook(tls *libc.TLS, pClientData uintptr, db uintptr, zDb uintptr, nFrame int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170869:20: */ +func Xsqlite3WalDefaultHook(tls *libc.TLS, pClientData uintptr, db uintptr, zDb uintptr, nFrame int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172944:20: */ if nFrame >= int32(pClientData) { Xsqlite3BeginBenignMalloc(tls) Xsqlite3_wal_checkpoint(tls, db, zDb) @@ -196005,7 +198239,7 @@ func Xsqlite3WalDefaultHook(tls *libc.TLS, pClientData uintptr, db uintptr, zDb // registered using sqlite3_wal_hook(). Likewise, registering a callback // using sqlite3_wal_hook() disables the automatic checkpoint mechanism // configured by this function. -func Xsqlite3_wal_autocheckpoint(tls *libc.TLS, db uintptr, nFrame int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170895:16: */ +func Xsqlite3_wal_autocheckpoint(tls *libc.TLS, db uintptr, nFrame int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172970:16: */ if nFrame > 0 { Xsqlite3_wal_hook(tls, db, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr, int32) int32 @@ -196018,7 +198252,7 @@ func Xsqlite3_wal_autocheckpoint(tls *libc.TLS, db uintptr, nFrame int32) int32 // Register a callback to be invoked each time a transaction is written // into the write-ahead-log by this database connection. -func Xsqlite3_wal_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170916:17: */ +func Xsqlite3_wal_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172991:17: */ var pRet uintptr Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) pRet = (*Sqlite3)(unsafe.Pointer(db)).FpWalArg @@ -196029,7 +198263,7 @@ func Xsqlite3_wal_hook(tls *libc.TLS, db uintptr, xCallback uintptr, pArg uintpt } // Checkpoint database zDb. -func Xsqlite3_wal_checkpoint_v2(tls *libc.TLS, db uintptr, zDb uintptr, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170943:16: */ +func Xsqlite3_wal_checkpoint_v2(tls *libc.TLS, db uintptr, zDb uintptr, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173018:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -196058,7 +198292,7 @@ func Xsqlite3_wal_checkpoint_v2(tls *libc.TLS, db uintptr, zDb uintptr, eMode in } if iDb < 0 { rc = SQLITE_ERROR - Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+25308, libc.VaList(bp, zDb)) + Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+25273, libc.VaList(bp, zDb)) } else { (*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FnBusy = 0 rc = Xsqlite3Checkpoint(tls, db, iDb, eMode, pnLog, pnCkpt) @@ -196079,7 +198313,7 @@ func Xsqlite3_wal_checkpoint_v2(tls *libc.TLS, db uintptr, zDb uintptr, eMode in // Checkpoint database zDb. If zDb is NULL, or if the buffer zDb points // to contains a zero-length string, all attached databases are // checkpointed. -func Xsqlite3_wal_checkpoint(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171007:16: */ +func Xsqlite3_wal_checkpoint(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173082:16: */ // EVIDENCE-OF: R-41613-20553 The sqlite3_wal_checkpoint(D,X) is equivalent to // sqlite3_wal_checkpoint_v2(D,X,SQLITE_CHECKPOINT_PASSIVE,0,0). return Xsqlite3_wal_checkpoint_v2(tls, db, zDb, SQLITE_CHECKPOINT_PASSIVE, uintptr(0), uintptr(0)) @@ -196103,7 +198337,7 @@ func Xsqlite3_wal_checkpoint(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* // // Parameter eMode is one of SQLITE_CHECKPOINT_PASSIVE, FULL, RESTART // or TRUNCATE. -func Xsqlite3Checkpoint(tls *libc.TLS, db uintptr, iDb int32, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171034:20: */ +func Xsqlite3Checkpoint(tls *libc.TLS, db uintptr, iDb int32, eMode int32, pnLog uintptr, pnCkpt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173109:20: */ var rc int32 = SQLITE_OK // Return code var i int32 // Used to iterate through attached dbs var bBusy int32 = 0 // True if SQLITE_BUSY has been encountered @@ -196135,29 +198369,29 @@ func Xsqlite3Checkpoint(tls *libc.TLS, db uintptr, iDb int32, eMode int32, pnLog // following table describes the relationship between these two values // and this functions return value. // -// SQLITE_TEMP_STORE db->temp_store Location of temporary database -// ----------------- -------------- ------------------------------ -// 0 any file (return 0) -// 1 1 file (return 0) -// 1 2 memory (return 1) -// 1 0 file (return 0) -// 2 1 file (return 0) -// 2 2 memory (return 1) -// 2 0 memory (return 1) -// 3 any memory (return 1) -func Xsqlite3TempInMemory(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171080:20: */ +// SQLITE_TEMP_STORE db->temp_store Location of temporary database +// ----------------- -------------- ------------------------------ +// 0 any file (return 0) +// 1 1 file (return 0) +// 1 2 memory (return 1) +// 1 0 file (return 0) +// 2 1 file (return 0) +// 2 2 memory (return 1) +// 2 0 memory (return 1) +// 3 any memory (return 1) +func Xsqlite3TempInMemory(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173155:20: */ return libc.Bool32(int32((*Sqlite3)(unsafe.Pointer(db)).Ftemp_store) == 2) } // Return UTF-8 encoded English language explanation of the most recent // error. -func Xsqlite3_errmsg(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171101:23: */ +func Xsqlite3_errmsg(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173176:23: */ var z uintptr if !(db != 0) { return Xsqlite3ErrStr(tls, SQLITE_NOMEM) } if !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) { - return Xsqlite3ErrStr(tls, Xsqlite3MisuseError(tls, 171107)) + return Xsqlite3ErrStr(tls, Xsqlite3MisuseError(tls, 173182)) } Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { @@ -196179,7 +198413,7 @@ func Xsqlite3_errmsg(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-ama } // Return the byte offset of the most recent error -func Xsqlite3_error_offset(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171127:16: */ +func Xsqlite3_error_offset(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173202:16: */ var iOffset int32 = -1 if db != 0 && Xsqlite3SafetyCheckSickOrOk(tls, db) != 0 && (*Sqlite3)(unsafe.Pointer(db)).FerrCode != 0 { Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -196191,7 +198425,7 @@ func Xsqlite3_error_offset(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite // Return UTF-16 encoded English language explanation of the most recent // error. -func Xsqlite3_errmsg16(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171142:23: */ +func Xsqlite3_errmsg16(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173217:23: */ var z uintptr if !(db != 0) { return uintptr(uintptr(unsafe.Pointer(&outOfMem))) @@ -196220,18 +198454,18 @@ func Xsqlite3_errmsg16(tls *libc.TLS, db uintptr) uintptr { /* testdata/sqlite-a var outOfMem = [14]U16{ U16('o'), U16('u'), U16('t'), U16(' '), U16('o'), U16('f'), U16(' '), U16('m'), U16('e'), U16('m'), U16('o'), U16('r'), U16('y'), U16(0), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171143:20 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173218:20 */ var misuse = [34]U16{ U16('b'), U16('a'), U16('d'), U16(' '), U16('p'), U16('a'), U16('r'), U16('a'), U16('m'), U16('e'), U16('t'), U16('e'), U16('r'), U16(' '), U16('o'), U16('r'), U16(' '), U16('o'), U16('t'), U16('h'), U16('e'), U16('r'), U16(' '), U16('A'), U16('P'), U16('I'), U16(' '), U16('m'), U16('i'), U16('s'), U16('u'), U16('s'), U16('e'), U16(0), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171146:20 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173221:20 */ // Return the most recent error code generated by an SQLite routine. If NULL is // passed to this function, we assume a malloc() failed during sqlite3_open(). -func Xsqlite3_errcode(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171184:16: */ +func Xsqlite3_errcode(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173259:16: */ if db != 0 && !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) { - return Xsqlite3MisuseError(tls, 171186) + return Xsqlite3MisuseError(tls, 173261) } if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { return SQLITE_NOMEM @@ -196239,9 +198473,9 @@ func Xsqlite3_errcode(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amal return (*Sqlite3)(unsafe.Pointer(db)).FerrCode & (*Sqlite3)(unsafe.Pointer(db)).FerrMask } -func Xsqlite3_extended_errcode(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171193:16: */ +func Xsqlite3_extended_errcode(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173268:16: */ if db != 0 && !(Xsqlite3SafetyCheckSickOrOk(tls, db) != 0) { - return Xsqlite3MisuseError(tls, 171195) + return Xsqlite3MisuseError(tls, 173270) } if !(db != 0) || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { return SQLITE_NOMEM @@ -196249,7 +198483,7 @@ func Xsqlite3_extended_errcode(tls *libc.TLS, db uintptr) int32 { /* testdata/sq return (*Sqlite3)(unsafe.Pointer(db)).FerrCode } -func Xsqlite3_system_errno(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171202:16: */ +func Xsqlite3_system_errno(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173277:16: */ if db != 0 { return (*Sqlite3)(unsafe.Pointer(db)).FiSysErrno } @@ -196259,13 +198493,13 @@ func Xsqlite3_system_errno(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite // Return a string that describes the kind of error specified in the // argument. For now, this simply calls the internal sqlite3ErrStr() // function. -func Xsqlite3_errstr(tls *libc.TLS, rc int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171211:23: */ +func Xsqlite3_errstr(tls *libc.TLS, rc int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173286:23: */ return Xsqlite3ErrStr(tls, rc) } // Create a new collating function for database "db". The name is zName // and the encoding is enc. -func createCollation(tls *libc.TLS, db uintptr, zName uintptr, enc U8, pCtx uintptr, xCompare uintptr, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171219:12: */ +func createCollation(tls *libc.TLS, db uintptr, zName uintptr, enc U8, pCtx uintptr, xCompare uintptr, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173294:12: */ var pColl uintptr var enc2 int32 @@ -196278,7 +198512,7 @@ func createCollation(tls *libc.TLS, db uintptr, zName uintptr, enc U8, pCtx uint enc2 = SQLITE_UTF16LE } if enc2 < SQLITE_UTF8 || enc2 > SQLITE_UTF16BE { - return Xsqlite3MisuseError(tls, 171243) + return Xsqlite3MisuseError(tls, 173318) } // Check if this call is removing or replacing an existing collation @@ -196288,7 +198522,7 @@ func createCollation(tls *libc.TLS, db uintptr, zName uintptr, enc U8, pCtx uint if pColl != 0 && (*CollSeq)(unsafe.Pointer(pColl)).FxCmp != 0 { if (*Sqlite3)(unsafe.Pointer(db)).FnVdbeActive != 0 { Xsqlite3ErrorWithMsg(tls, db, SQLITE_BUSY, - ts+25329, 0) + ts+25294, 0) return SQLITE_BUSY } Xsqlite3ExpirePreparedStatements(tls, db, 0) @@ -196341,7 +198575,7 @@ var aHardLimit = [12]int32{ SQLITE_MAX_VARIABLE_NUMBER, // IMP: R-38091-32352 SQLITE_MAX_TRIGGER_DEPTH, SQLITE_MAX_WORKER_THREADS, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171296:18 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173371:18 */ // Make sure the hard limits are set to reasonable values @@ -196353,7 +198587,7 @@ var aHardLimit = [12]int32{ // A new lower limit does not shrink existing constructs. // It merely prevents new constructs that exceed the limit // from forming. -func Xsqlite3_limit(tls *libc.TLS, db uintptr, limitId int32, newLimit int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171359:16: */ +func Xsqlite3_limit(tls *libc.TLS, db uintptr, limitId int32, newLimit int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173434:16: */ var oldLimit int32 // EVIDENCE-OF: R-30189-54097 For each limit category SQLITE_LIMIT_NAME @@ -196400,7 +198634,7 @@ func Xsqlite3_limit(tls *libc.TLS, db uintptr, limitId int32, newLimit int32) in // may be set to point to a buffer containing an English language error // message. It is the responsibility of the caller to eventually release // this buffer by calling sqlite3_free(). -func Xsqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags uintptr, ppVfs uintptr, pzFile uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171431:20: */ +func Xsqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags uintptr, ppVfs uintptr, pzFile uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173506:20: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -196433,7 +198667,7 @@ func Xsqlite3ParseUri(tls *libc.TLS, zDefaultVfs uintptr, zUri uintptr, pFlags u if !((flags&uint32(SQLITE_OPEN_URI) != 0 || Xsqlite3Config.FbOpenUri != 0) && - nUri >= 5 && libc.Xmemcmp(tls, zUri, ts+25397, uint64(5)) == 0) { + nUri >= 5 && libc.Xmemcmp(tls, zUri, ts+25362, uint64(5)) == 0) { goto __1 } // Input character index iOut = 0 // Output character index @@ -196481,10 +198715,10 @@ __8: goto __8 __9: ; - if !(iIn != 7 && (iIn != 16 || libc.Xmemcmp(tls, ts+25403, zUri+7, uint64(9)) != 0)) { + if !(iIn != 7 && (iIn != 16 || libc.Xmemcmp(tls, ts+25368, zUri+7, uint64(9)) != 0)) { goto __10 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25413, + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25378, libc.VaList(bp, iIn-7, zUri+7)) rc = SQLITE_ERROR goto parse_uri_out @@ -196606,7 +198840,7 @@ __27: zVal = zOpt + uintptr(nOpt+1) nVal = Xsqlite3Strlen30(tls, zVal) - if !(nOpt == 3 && libc.Xmemcmp(tls, ts+25441, zOpt, uint64(3)) == 0) { + if !(nOpt == 3 && libc.Xmemcmp(tls, ts+25406, zOpt, uint64(3)) == 0) { goto __29 } zVfs = zVal @@ -196617,17 +198851,17 @@ __29: mask = 0 limit = 0 - if !(nOpt == 5 && libc.Xmemcmp(tls, ts+25445, zOpt, uint64(5)) == 0) { + if !(nOpt == 5 && libc.Xmemcmp(tls, ts+25410, zOpt, uint64(5)) == 0) { goto __31 } mask = SQLITE_OPEN_SHAREDCACHE | SQLITE_OPEN_PRIVATECACHE aMode = uintptr(unsafe.Pointer(&aCacheMode)) limit = mask - zModeType = ts + 25445 /* "cache" */ + zModeType = ts + 25410 /* "cache" */ __31: ; - if !(nOpt == 4 && libc.Xmemcmp(tls, ts+25451, zOpt, uint64(4)) == 0) { + if !(nOpt == 4 && libc.Xmemcmp(tls, ts+25416, zOpt, uint64(4)) == 0) { goto __32 } @@ -196635,7 +198869,7 @@ __31: SQLITE_OPEN_CREATE | SQLITE_OPEN_MEMORY aMode = uintptr(unsafe.Pointer(&aOpenMode)) limit = int32(uint32(mask) & flags) - zModeType = ts + 25456 /* "access" */ + zModeType = ts + 25421 /* "access" */ __32: ; @@ -196666,7 +198900,7 @@ __36: if !(mode == 0) { goto __38 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25463, libc.VaList(bp+16, zModeType, zVal)) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25428, libc.VaList(bp+16, zModeType, zVal)) rc = SQLITE_ERROR goto parse_uri_out __38: @@ -196674,7 +198908,7 @@ __38: if !(mode&libc.CplInt32(SQLITE_OPEN_MEMORY) > limit) { goto __39 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25483, + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25448, libc.VaList(bp+32, zModeType, zVal)) rc = SQLITE_PERM goto parse_uri_out @@ -196717,7 +198951,7 @@ __2: if !(*(*uintptr)(unsafe.Pointer(ppVfs)) == uintptr(0)) { goto __42 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25507, libc.VaList(bp+48, zVfs)) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+25472, libc.VaList(bp+48, zVfs)) rc = SQLITE_ERROR __42: ; @@ -196738,24 +198972,24 @@ type OpenMode = struct { Fz uintptr Fmode int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171573:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173648:9 */ var aCacheMode = [3]OpenMode{ - {Fz: ts + 25523, Fmode: SQLITE_OPEN_SHAREDCACHE}, - {Fz: ts + 25530, Fmode: SQLITE_OPEN_PRIVATECACHE}, + {Fz: ts + 25488, Fmode: SQLITE_OPEN_SHAREDCACHE}, + {Fz: ts + 25495, Fmode: SQLITE_OPEN_PRIVATECACHE}, {}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171582:34 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173657:34 */ var aOpenMode = [5]OpenMode{ - {Fz: ts + 25538, Fmode: SQLITE_OPEN_READONLY}, - {Fz: ts + 25541, Fmode: SQLITE_OPEN_READWRITE}, - {Fz: ts + 25544, Fmode: SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE}, - {Fz: ts + 18638, Fmode: SQLITE_OPEN_MEMORY}, + {Fz: ts + 25503, Fmode: SQLITE_OPEN_READONLY}, + {Fz: ts + 25506, Fmode: SQLITE_OPEN_READWRITE}, + {Fz: ts + 25509, Fmode: SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE}, + {Fz: ts + 18668, Fmode: SQLITE_OPEN_MEMORY}, {}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171594:34 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173669:34 */ // This routine does the core work of extracting URI parameters from a // database filename for the sqlite3_uri_parameter() interface. -func uriParameter(tls *libc.TLS, zFilename uintptr, zParam uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171668:19: */ +func uriParameter(tls *libc.TLS, zFilename uintptr, zParam uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173743:19: */ zFilename += uintptr(Xsqlite3Strlen30(tls, zFilename) + 1) for zFilename != uintptr(0) && *(*int8)(unsafe.Pointer(zFilename)) != 0 { var x int32 = libc.Xstrcmp(tls, zFilename, zParam) @@ -196771,7 +199005,7 @@ func uriParameter(tls *libc.TLS, zFilename uintptr, zParam uintptr) uintptr { /* // This routine does the work of opening a database on behalf of // sqlite3_open() and sqlite3_open16(). The database filename "zFilename" // is UTF-8 encoded. -func openDatabase(tls *libc.TLS, zFilename uintptr, ppDb uintptr, flags uint32, zVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:171686:12: */ +func openDatabase(tls *libc.TLS, zFilename uintptr, ppDb uintptr, flags uint32, zVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:173761:12: */ bp := tls.Alloc(32) defer tls.Free(32) *(*uint32)(unsafe.Pointer(bp + 8)) = flags @@ -196923,10 +199157,10 @@ __12: createCollation(tls, db, uintptr(unsafe.Pointer(&Xsqlite3StrBINARY)), uint8(SQLITE_UTF16LE), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32 }{binCollFunc})), uintptr(0)) - createCollation(tls, db, ts+23063, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + createCollation(tls, db, ts+23028, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32 }{nocaseCollatingFunc})), uintptr(0)) - createCollation(tls, db, ts+25548, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + createCollation(tls, db, ts+25513, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32 }{rtrimCollFunc})), uintptr(0)) if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { @@ -196955,7 +199189,7 @@ __15: if !(int32(1)<<(*(*uint32)(unsafe.Pointer(bp + 8))&uint32(7))&0x46 == 0) { goto __16 } - rc = Xsqlite3MisuseError(tls, 171899) // IMP: R-18321-05872 + rc = Xsqlite3MisuseError(tls, 173974) // IMP: R-18321-05872 goto __17 __16: rc = Xsqlite3ParseUri(tls, zVfs, zFilename, bp+8, db, bp+16, bp+24) @@ -196972,7 +199206,7 @@ __19: ; Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr { if *(*uintptr)(unsafe.Pointer(bp + 24)) != 0 { - return ts + 4444 /* "%s" */ + return ts + 4479 /* "%s" */ } return uintptr(0) }(), libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)))) @@ -197010,9 +199244,9 @@ __22: // The default safety_level for the main database is FULL; for the temp // database it is OFF. This matches the pager layer defaults. - (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FzDbSName = ts + 7684 /* "main" */ + (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FzDbSName = ts + 7719 /* "main" */ (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).Fsafety_level = U8(SQLITE_DEFAULT_SYNCHRONOUS + 1) - (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + 1*32)).FzDbSName = ts + 24543 /* "temp" */ + (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + 1*32)).FzDbSName = ts + 24508 /* "temp" */ (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + 1*32)).Fsafety_level = U8(PAGER_SYNCHRONOUS_OFF) (*Sqlite3)(unsafe.Pointer(db)).FeOpenState = U8(SQLITE_STATE_OPEN) @@ -197111,17 +199345,17 @@ __32: } // Open a new database handle. -func Xsqlite3_open(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172021:16: */ +func Xsqlite3_open(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174096:16: */ return openDatabase(tls, zFilename, ppDb, uint32(SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE), uintptr(0)) } -func Xsqlite3_open_v2(tls *libc.TLS, filename uintptr, ppDb uintptr, flags int32, zVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172028:16: */ +func Xsqlite3_open_v2(tls *libc.TLS, filename uintptr, ppDb uintptr, flags int32, zVfs uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174103:16: */ return openDatabase(tls, filename, ppDb, uint32(flags), zVfs) } // Open a new database handle. -func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172041:16: */ +func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174116:16: */ var zFilename8 uintptr // zFilename encoded in UTF-8 instead of UTF-16 var pVal uintptr var rc int32 @@ -197132,7 +199366,7 @@ func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* return rc } if zFilename == uintptr(0) { - zFilename = ts + 25554 /* "\x00\x00" */ + zFilename = ts + 25519 /* "\x00\x00" */ } pVal = Xsqlite3ValueNew(tls, uintptr(0)) Xsqlite3ValueSetStr(tls, pVal, -1, zFilename, uint8(SQLITE_UTF16LE), uintptr(0)) @@ -197153,12 +199387,12 @@ func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* } // Register a new collation sequence with the database handle db. -func Xsqlite3_create_collation(tls *libc.TLS, db uintptr, zName uintptr, enc int32, pCtx uintptr, xCompare uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172080:16: */ +func Xsqlite3_create_collation(tls *libc.TLS, db uintptr, zName uintptr, enc int32, pCtx uintptr, xCompare uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174155:16: */ return Xsqlite3_create_collation_v2(tls, db, zName, enc, pCtx, xCompare, uintptr(0)) } // Register a new collation sequence with the database handle db. -func Xsqlite3_create_collation_v2(tls *libc.TLS, db uintptr, zName uintptr, enc int32, pCtx uintptr, xCompare uintptr, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172093:16: */ +func Xsqlite3_create_collation_v2(tls *libc.TLS, db uintptr, zName uintptr, enc int32, pCtx uintptr, xCompare uintptr, xDel uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174168:16: */ var rc int32 Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -197170,7 +199404,7 @@ func Xsqlite3_create_collation_v2(tls *libc.TLS, db uintptr, zName uintptr, enc } // Register a new collation sequence with the database handle db. -func Xsqlite3_create_collation16(tls *libc.TLS, db uintptr, zName uintptr, enc int32, pCtx uintptr, xCompare uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172118:16: */ +func Xsqlite3_create_collation16(tls *libc.TLS, db uintptr, zName uintptr, enc int32, pCtx uintptr, xCompare uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174193:16: */ var rc int32 = SQLITE_OK var zName8 uintptr @@ -197188,7 +199422,7 @@ func Xsqlite3_create_collation16(tls *libc.TLS, db uintptr, zName uintptr, enc i // Register a collation sequence factory callback with the database handle // db. Replace any previously installed collation sequence factory. -func Xsqlite3_collation_needed(tls *libc.TLS, db uintptr, pCollNeededArg uintptr, xCollNeeded uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172148:16: */ +func Xsqlite3_collation_needed(tls *libc.TLS, db uintptr, pCollNeededArg uintptr, xCollNeeded uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174223:16: */ Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) (*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded = xCollNeeded (*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded16 = uintptr(0) @@ -197199,7 +199433,7 @@ func Xsqlite3_collation_needed(tls *libc.TLS, db uintptr, pCollNeededArg uintptr // Register a collation sequence factory callback with the database handle // db. Replace any previously installed collation sequence factory. -func Xsqlite3_collation_needed16(tls *libc.TLS, db uintptr, pCollNeededArg uintptr, xCollNeeded16 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172169:16: */ +func Xsqlite3_collation_needed16(tls *libc.TLS, db uintptr, pCollNeededArg uintptr, xCollNeeded16 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174244:16: */ Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) (*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded = uintptr(0) (*Sqlite3)(unsafe.Pointer(db)).FxCollNeeded16 = xCollNeeded16 @@ -197210,7 +199444,7 @@ func Xsqlite3_collation_needed16(tls *libc.TLS, db uintptr, pCollNeededArg uintp // This function is now an anachronism. It used to be used to recover from a // malloc() failure, but SQLite now does this automatically. -func Xsqlite3_global_recover(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172191:16: */ +func Xsqlite3_global_recover(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174266:16: */ return SQLITE_OK } @@ -197218,7 +199452,7 @@ func Xsqlite3_global_recover(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamat // mode. Return TRUE if it is and FALSE if not. Autocommit mode is on // by default. Autocommit is disabled by a BEGIN statement and reenabled // by the next COMMIT or ROLLBACK. -func Xsqlite3_get_autocommit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172202:16: */ +func Xsqlite3_get_autocommit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174277:16: */ return int32((*Sqlite3)(unsafe.Pointer(db)).FautoCommit) } @@ -197226,33 +199460,33 @@ func Xsqlite3_get_autocommit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqli // SQLITE_MISUSE, SQLITE_CANTOPEN, SQLITE_NOMEM and possibly other error // constants. They serve two purposes: // -// 1. Serve as a convenient place to set a breakpoint in a debugger -// to detect when version error conditions occurs. +// 1. Serve as a convenient place to set a breakpoint in a debugger +// to detect when version error conditions occurs. // -// 2. Invoke sqlite3_log() to provide the source code location where -// a low-level error is first detected. -func Xsqlite3ReportError(tls *libc.TLS, iErr int32, lineno int32, zType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172223:20: */ +// 2. Invoke sqlite3_log() to provide the source code location where +// a low-level error is first detected. +func Xsqlite3ReportError(tls *libc.TLS, iErr int32, lineno int32, zType uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174298:20: */ bp := tls.Alloc(24) defer tls.Free(24) - Xsqlite3_log(tls, iErr, ts+25557, + Xsqlite3_log(tls, iErr, ts+25522, libc.VaList(bp, zType, lineno, uintptr(20)+Xsqlite3_sourceid(tls))) return iErr } -func Xsqlite3CorruptError(tls *libc.TLS, lineno int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172228:20: */ +func Xsqlite3CorruptError(tls *libc.TLS, lineno int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174303:20: */ - return Xsqlite3ReportError(tls, SQLITE_CORRUPT, lineno, ts+25582) + return Xsqlite3ReportError(tls, SQLITE_CORRUPT, lineno, ts+25547) } -func Xsqlite3MisuseError(tls *libc.TLS, lineno int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172232:20: */ +func Xsqlite3MisuseError(tls *libc.TLS, lineno int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174307:20: */ - return Xsqlite3ReportError(tls, SQLITE_MISUSE, lineno, ts+25602) + return Xsqlite3ReportError(tls, SQLITE_MISUSE, lineno, ts+25567) } -func Xsqlite3CantopenError(tls *libc.TLS, lineno int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172236:20: */ +func Xsqlite3CantopenError(tls *libc.TLS, lineno int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174311:20: */ - return Xsqlite3ReportError(tls, SQLITE_CANTOPEN, lineno, ts+25609) + return Xsqlite3ReportError(tls, SQLITE_CANTOPEN, lineno, ts+25574) } // This is a convenience routine that makes sure that all thread-specific @@ -197260,12 +199494,12 @@ func Xsqlite3CantopenError(tls *libc.TLS, lineno int32) int32 { /* testdata/sqli // // SQLite no longer uses thread-specific data so this routine is now a // no-op. It is retained for historical compatibility. -func Xsqlite3_thread_cleanup(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172267:17: */ +func Xsqlite3_thread_cleanup(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174342:17: */ } // Return meta information about a specific column of a database table. // See comment in sqlite3.h (sqlite.h.in) for details. -func Xsqlite3_table_column_metadata(tls *libc.TLS, db uintptr, zDbName uintptr, zTableName uintptr, zColumnName uintptr, pzDataType uintptr, pzCollSeq uintptr, pNotNull uintptr, pPrimaryKey uintptr, pAutoinc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172275:16: */ +func Xsqlite3_table_column_metadata(tls *libc.TLS, db uintptr, zDbName uintptr, zTableName uintptr, zColumnName uintptr, pzDataType uintptr, pzCollSeq uintptr, pNotNull uintptr, pPrimaryKey uintptr, pAutoinc uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174350:16: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -197431,14 +199665,14 @@ __19: goto __20 } Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */))) - *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)) = Xsqlite3MPrintf(tls, db, ts+25626, libc.VaList(bp, zTableName, + *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)) = Xsqlite3MPrintf(tls, db, ts+25591, libc.VaList(bp, zTableName, zColumnName)) rc = SQLITE_ERROR __20: ; Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr { if *(*uintptr)(unsafe.Pointer(bp + 24)) != 0 { - return ts + 4444 /* "%s" */ + return ts + 4479 /* "%s" */ } return uintptr(0) }(), libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)))) @@ -197449,7 +199683,7 @@ __20: } // Sleep for a little while. Return the amount of time slept. -func Xsqlite3_sleep(tls *libc.TLS, ms int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172393:16: */ +func Xsqlite3_sleep(tls *libc.TLS, ms int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174468:16: */ var pVfs uintptr var rc int32 pVfs = Xsqlite3_vfs_find(tls, uintptr(0)) @@ -197464,7 +199698,7 @@ func Xsqlite3_sleep(tls *libc.TLS, ms int32) int32 { /* testdata/sqlite-amalgama } // Enable or disable the extended result codes. -func Xsqlite3_extended_result_codes(tls *libc.TLS, db uintptr, onoff int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172409:16: */ +func Xsqlite3_extended_result_codes(tls *libc.TLS, db uintptr, onoff int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174484:16: */ Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) (*Sqlite3)(unsafe.Pointer(db)).FerrMask = func() int32 { if onoff != 0 { @@ -197477,7 +199711,7 @@ func Xsqlite3_extended_result_codes(tls *libc.TLS, db uintptr, onoff int32) int3 } // Invoke the xFileControl method on a particular database. -func Xsqlite3_file_control(tls *libc.TLS, db uintptr, zDbName uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172422:16: */ +func Xsqlite3_file_control(tls *libc.TLS, db uintptr, zDbName uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174497:16: */ var rc int32 = SQLITE_ERROR var pBtree uintptr @@ -197522,7 +199756,7 @@ func Xsqlite3_file_control(tls *libc.TLS, db uintptr, zDbName uintptr, op int32, } // Interface to the testing logic. -func Xsqlite3_test_control(tls *libc.TLS, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172472:16: */ +func Xsqlite3_test_control(tls *libc.TLS, op int32, va uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:174547:16: */ var rc int32 = 0 var ap Va_list _ = ap @@ -197924,8 +200158,8 @@ func Xsqlite3_test_control(tls *libc.TLS, op int32, va uintptr) int32 { /* testd // // "ptr" is a pointer to a u32. // - // op==0 Store the current sqlite3SelectTrace in *ptr - // op==1 Set sqlite3SelectTrace to the value *ptr + // op==0 Store the current sqlite3TreeTrace in *ptr + // op==1 Set sqlite3TreeTrace to the value *ptr // op==3 Store the current sqlite3WhereTrace in *ptr // op==3 Set sqlite3WhereTrace to the value *ptr case SQLITE_TESTCTRL_TRACEFLAGS: @@ -197934,10 +200168,10 @@ func Xsqlite3_test_control(tls *libc.TLS, op int32, va uintptr) int32 { /* testd var ptr uintptr = libc.VaUintptr(&ap) switch opTrace { case 0: - *(*U32)(unsafe.Pointer(ptr)) = Xsqlite3SelectTrace + *(*U32)(unsafe.Pointer(ptr)) = Xsqlite3TreeTrace break case 1: - Xsqlite3SelectTrace = *(*U32)(unsafe.Pointer(ptr)) + Xsqlite3TreeTrace = *(*U32)(unsafe.Pointer(ptr)) break case 2: *(*U32)(unsafe.Pointer(ptr)) = Xsqlite3WhereTrace @@ -197962,10 +200196,12 @@ func Xsqlite3_test_control(tls *libc.TLS, op int32, va uintptr) int32 { /* testd { var rIn float64 = float64(libc.VaFloat64(&ap)) var rLogEst LogEst = Xsqlite3LogEstFromDouble(tls, rIn) - var iInt U64 = Xsqlite3LogEstToInt(tls, rLogEst) - *(*int32)(unsafe.Pointer(libc.VaUintptr(&ap))) = int32(rLogEst) - *(*U64)(unsafe.Pointer(libc.VaUintptr(&ap))) = iInt - *(*int32)(unsafe.Pointer(libc.VaUintptr(&ap))) = int32(Xsqlite3LogEst(tls, iInt)) + var pI1 uintptr = libc.VaUintptr(&ap) + var pU64 uintptr = libc.VaUintptr(&ap) + var pI2 uintptr = libc.VaUintptr(&ap) + *(*int32)(unsafe.Pointer(pI1)) = int32(rLogEst) + *(*U64)(unsafe.Pointer(pU64)) = Xsqlite3LogEstToInt(tls, rLogEst) + *(*int32)(unsafe.Pointer(pI2)) = int32(Xsqlite3LogEst(tls, *(*U64)(unsafe.Pointer(pU64)))) break } @@ -197981,7 +200217,7 @@ func Xsqlite3_test_control(tls *libc.TLS, op int32, va uintptr) int32 { /* testd // backwards for the first byte following four consecutive zero bytes. // // This only works if the filename passed in was obtained from the Pager. -func databaseName(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172968:19: */ +func databaseName(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175067:19: */ for int32(*(*int8)(unsafe.Pointer(zName + libc.UintptrFromInt32(-1)))) != 0 || int32(*(*int8)(unsafe.Pointer(zName + libc.UintptrFromInt32(-2)))) != 0 || int32(*(*int8)(unsafe.Pointer(zName + libc.UintptrFromInt32(-3)))) != 0 || int32(*(*int8)(unsafe.Pointer(zName + libc.UintptrFromInt32(-4)))) != 0 { zName-- } @@ -197990,7 +200226,7 @@ func databaseName(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-ama // Append text z[] to the end of p[]. Return a pointer to the first // character after then zero terminator on the new text in p[]. -func appendText(tls *libc.TLS, p uintptr, z uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172979:13: */ +func appendText(tls *libc.TLS, p uintptr, z uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175078:13: */ var n Size_t = libc.Xstrlen(tls, z) libc.Xmemcpy(tls, p, z, n+uint64(1)) return p + uintptr(n) + uintptr(1) @@ -198003,7 +200239,7 @@ func appendText(tls *libc.TLS, p uintptr, z uintptr) uintptr { /* testdata/sqlit // // Memory layout must be compatible with that generated by the pager // and expected by sqlite3_uri_parameter() and databaseName(). -func Xsqlite3_create_filename(tls *libc.TLS, zDatabase uintptr, zJournal uintptr, zWal uintptr, nParam int32, azParam uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:172994:17: */ +func Xsqlite3_create_filename(tls *libc.TLS, zDatabase uintptr, zJournal uintptr, zWal uintptr, nParam int32, azParam uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175093:17: */ var nByte Sqlite3_int64 var i int32 var pResult uintptr @@ -198034,7 +200270,7 @@ func Xsqlite3_create_filename(tls *libc.TLS, zDatabase uintptr, zJournal uintptr // Free memory obtained from sqlite3_create_filename(). It is a severe // error to call this routine with any parameter other than a pointer // previously obtained from sqlite3_create_filename() or a NULL pointer. -func Xsqlite3_free_filename(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173030:17: */ +func Xsqlite3_free_filename(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175129:17: */ if p == uintptr(0) { return } @@ -198051,7 +200287,7 @@ func Xsqlite3_free_filename(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalg // query parameter we seek. This routine returns the value of the zParam // parameter if it exists. If the parameter does not exist, this routine // returns a NULL pointer. -func Xsqlite3_uri_parameter(tls *libc.TLS, zFilename uintptr, zParam uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173048:23: */ +func Xsqlite3_uri_parameter(tls *libc.TLS, zFilename uintptr, zParam uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175147:23: */ if zFilename == uintptr(0) || zParam == uintptr(0) { return uintptr(0) } @@ -198060,7 +200296,7 @@ func Xsqlite3_uri_parameter(tls *libc.TLS, zFilename uintptr, zParam uintptr) ui } // Return a pointer to the name of Nth query parameter of the filename. -func Xsqlite3_uri_key(tls *libc.TLS, zFilename uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173057:23: */ +func Xsqlite3_uri_key(tls *libc.TLS, zFilename uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175156:23: */ if zFilename == uintptr(0) || N < 0 { return uintptr(0) } @@ -198077,7 +200313,7 @@ func Xsqlite3_uri_key(tls *libc.TLS, zFilename uintptr, N int32) uintptr { /* te } // Return a boolean value for a query parameter. -func Xsqlite3_uri_boolean(tls *libc.TLS, zFilename uintptr, zParam uintptr, bDflt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173071:16: */ +func Xsqlite3_uri_boolean(tls *libc.TLS, zFilename uintptr, zParam uintptr, bDflt int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175170:16: */ var z uintptr = Xsqlite3_uri_parameter(tls, zFilename, zParam) bDflt = libc.Bool32(bDflt != 0) if z != 0 { @@ -198087,7 +200323,7 @@ func Xsqlite3_uri_boolean(tls *libc.TLS, zFilename uintptr, zParam uintptr, bDfl } // Return a 64-bit integer value for a query parameter. -func Xsqlite3_uri_int64(tls *libc.TLS, zFilename uintptr, zParam uintptr, bDflt Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173080:26: */ +func Xsqlite3_uri_int64(tls *libc.TLS, zFilename uintptr, zParam uintptr, bDflt Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175179:26: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -198108,14 +200344,14 @@ func Xsqlite3_uri_int64(tls *libc.TLS, zFilename uintptr, zParam uintptr, bDflt // passing free() a pointer that was not obtained from malloc() - it is // an error that we cannot easily detect but that will likely cause memory // corruption. -func Xsqlite3_filename_database(tls *libc.TLS, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173103:23: */ +func Xsqlite3_filename_database(tls *libc.TLS, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175202:23: */ if zFilename == uintptr(0) { return uintptr(0) } return databaseName(tls, zFilename) } -func Xsqlite3_filename_journal(tls *libc.TLS, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173107:23: */ +func Xsqlite3_filename_journal(tls *libc.TLS, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175206:23: */ if zFilename == uintptr(0) { return uintptr(0) } @@ -198128,7 +200364,7 @@ func Xsqlite3_filename_journal(tls *libc.TLS, zFilename uintptr) uintptr { /* te return zFilename + uintptr(1) } -func Xsqlite3_filename_wal(tls *libc.TLS, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173117:23: */ +func Xsqlite3_filename_wal(tls *libc.TLS, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175216:23: */ zFilename = Xsqlite3_filename_journal(tls, zFilename) if zFilename != 0 { zFilename += uintptr(Xsqlite3Strlen30(tls, zFilename) + 1) @@ -198137,7 +200373,7 @@ func Xsqlite3_filename_wal(tls *libc.TLS, zFilename uintptr) uintptr { /* testda } // Return the Btree pointer identified by zDbName. Return NULL if not found. -func Xsqlite3DbNameToBtree(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173130:22: */ +func Xsqlite3DbNameToBtree(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175229:22: */ var iDb int32 if zDbName != 0 { iDb = Xsqlite3FindDbName(tls, db, zDbName) @@ -198150,9 +200386,20 @@ func Xsqlite3DbNameToBtree(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { return (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FpBt } +// Return the name of the N-th database schema. Return NULL if N is out +// of range. +func Xsqlite3_db_name(tls *libc.TLS, db uintptr, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175238:23: */ + if N < 0 || N >= (*Sqlite3)(unsafe.Pointer(db)).FnDb { + return uintptr(0) + } else { + return (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(N)*32)).FzDbSName + } + return uintptr(0) +} + // Return the filename of the database associated with a database // connection. -func Xsqlite3_db_filename(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173139:23: */ +func Xsqlite3_db_filename(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175256:23: */ var pBt uintptr pBt = Xsqlite3DbNameToBtree(tls, db, zDbName) if pBt != 0 { @@ -198163,7 +200410,7 @@ func Xsqlite3_db_filename(tls *libc.TLS, db uintptr, zDbName uintptr) uintptr { // Return 1 if database is read-only or 0 if read/write. Return -1 if // no such database exists. -func Xsqlite3_db_readonly(tls *libc.TLS, db uintptr, zDbName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173155:16: */ +func Xsqlite3_db_readonly(tls *libc.TLS, db uintptr, zDbName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175272:16: */ var pBt uintptr pBt = Xsqlite3DbNameToBtree(tls, db, zDbName) if pBt != 0 { @@ -198174,7 +200421,7 @@ func Xsqlite3_db_readonly(tls *libc.TLS, db uintptr, zDbName uintptr) int32 { /* // Obtain a snapshot handle for the snapshot of database zDb currently // being read by handle db. -func Xsqlite3_snapshot_get(tls *libc.TLS, db uintptr, zDb uintptr, ppSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173172:16: */ +func Xsqlite3_snapshot_get(tls *libc.TLS, db uintptr, zDb uintptr, ppSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175289:16: */ var rc int32 = SQLITE_ERROR Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -198197,7 +200444,7 @@ func Xsqlite3_snapshot_get(tls *libc.TLS, db uintptr, zDb uintptr, ppSnapshot ui } // Open a read-transaction on the snapshot idendified by pSnapshot. -func Xsqlite3_snapshot_open(tls *libc.TLS, db uintptr, zDb uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173208:16: */ +func Xsqlite3_snapshot_open(tls *libc.TLS, db uintptr, zDb uintptr, pSnapshot uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175325:16: */ var rc int32 = SQLITE_ERROR Xsqlite3_mutex_enter(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) @@ -198240,7 +200487,7 @@ func Xsqlite3_snapshot_open(tls *libc.TLS, db uintptr, zDb uintptr, pSnapshot ui // Recover as many snapshots as possible from the wal file associated with // schema zDb of database db. -func Xsqlite3_snapshot_recover(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173264:16: */ +func Xsqlite3_snapshot_recover(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175381:16: */ var rc int32 = SQLITE_ERROR var iDb int32 @@ -198261,7 +200508,7 @@ func Xsqlite3_snapshot_recover(tls *libc.TLS, db uintptr, zDb uintptr) int32 { / } // Free a snapshot handle obtained from sqlite3_snapshot_get(). -func Xsqlite3_snapshot_free(tls *libc.TLS, pSnapshot uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173295:17: */ +func Xsqlite3_snapshot_free(tls *libc.TLS, pSnapshot uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175412:17: */ Xsqlite3_free(tls, pSnapshot) } @@ -198270,7 +200517,7 @@ func Xsqlite3_snapshot_free(tls *libc.TLS, pSnapshot uintptr) { /* testdata/sqli // // The name can optionally begin with "SQLITE_" but the "SQLITE_" prefix // is not required for a match. -func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173308:16: */ +func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175425:16: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -198282,7 +200529,7 @@ func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) int32 { /* tes azCompileOpt = Xsqlite3CompileOptions(tls, bp) - if Xsqlite3_strnicmp(tls, zOptName, ts+25654, 7) == 0 { + if Xsqlite3_strnicmp(tls, zOptName, ts+25619, 7) == 0 { zOptName += uintptr(7) } n = Xsqlite3Strlen30(tls, zOptName) @@ -198300,7 +200547,7 @@ func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) int32 { /* tes // Return the N-th compile-time option string. If N is out of range, // return a NULL pointer. -func Xsqlite3_compileoption_get(tls *libc.TLS, N int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173341:23: */ +func Xsqlite3_compileoption_get(tls *libc.TLS, N int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175458:23: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -198345,11 +200592,11 @@ func Xsqlite3_compileoption_get(tls *libc.TLS, N int32) uintptr { /* testdata/sq // for which either sqlite3.pBlockingConnection or sqlite3.pUnlockConnection // is not NULL. This variable may only accessed while the STATIC_MAIN // mutex is held. -var sqlite3BlockedList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173393:16 */ +var sqlite3BlockedList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175510:16 */ // Remove connection db from the blocked connections list. If connection // db is not currently a part of the list, this function is a no-op. -func removeFromBlockedList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173436:13: */ +func removeFromBlockedList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175553:13: */ var pp uintptr for pp = uintptr(unsafe.Pointer(&sqlite3BlockedList)); *(*uintptr)(unsafe.Pointer(pp)) != 0; pp = *(*uintptr)(unsafe.Pointer(pp)) + 832 { @@ -198362,7 +200609,7 @@ func removeFromBlockedList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalg // Add connection db to the blocked connections list. It is assumed // that it is not already a part of the list. -func addToBlockedList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173451:13: */ +func addToBlockedList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175568:13: */ var pp uintptr for pp = uintptr(unsafe.Pointer(&sqlite3BlockedList)); *(*uintptr)(unsafe.Pointer(pp)) != 0 && (*Sqlite3)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pp)))).FxUnlockNotify != (*Sqlite3)(unsafe.Pointer(db)).FxUnlockNotify; pp = *(*uintptr)(unsafe.Pointer(pp)) + 832 { @@ -198372,13 +200619,13 @@ func addToBlockedList(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamati } // Obtain the STATIC_MAIN mutex. -func enterMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173466:13: */ +func enterMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175583:13: */ Xsqlite3_mutex_enter(tls, Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN)) } // Release the STATIC_MAIN mutex. -func leaveMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173474:13: */ +func leaveMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175591:13: */ Xsqlite3_mutex_leave(tls, Xsqlite3MutexAlloc(tls, SQLITE_MUTEX_STATIC_MAIN)) } @@ -198402,7 +200649,7 @@ func leaveMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3 // Each call to this routine overrides any prior callbacks registered // on the same "db". If xNotify==0 then any prior callbacks are immediately // cancelled. -func Xsqlite3_unlock_notify(tls *libc.TLS, db uintptr, xNotify uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173501:16: */ +func Xsqlite3_unlock_notify(tls *libc.TLS, db uintptr, xNotify uintptr, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175618:16: */ bp := tls.Alloc(8) defer tls.Free(8) *(*uintptr)(unsafe.Pointer(bp)) = pArg @@ -198445,7 +200692,7 @@ func Xsqlite3_unlock_notify(tls *libc.TLS, db uintptr, xNotify uintptr, pArg uin Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr { if rc != 0 { - return ts + 25662 /* "database is dead..." */ + return ts + 25627 /* "database is dead..." */ } return uintptr(0) }(), 0) @@ -198457,7 +200704,7 @@ func Xsqlite3_unlock_notify(tls *libc.TLS, db uintptr, xNotify uintptr, pArg uin // associated with connection db. The operation will return SQLITE_LOCKED // to the user because it requires a lock that will not be available // until connection pBlocker concludes its current transaction. -func Xsqlite3ConnectionBlocked(tls *libc.TLS, db uintptr, pBlocker uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173551:21: */ +func Xsqlite3ConnectionBlocked(tls *libc.TLS, db uintptr, pBlocker uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175668:21: */ enterMutex(tls) if (*Sqlite3)(unsafe.Pointer(db)).FpBlockingConnection == uintptr(0) && (*Sqlite3)(unsafe.Pointer(db)).FpUnlockConnection == uintptr(0) { addToBlockedList(tls, db) @@ -198473,17 +200720,17 @@ func Xsqlite3ConnectionBlocked(tls *libc.TLS, db uintptr, pBlocker uintptr) { /* // This function loops through each entry in the blocked connections // list and does the following: // -// 1) If the sqlite3.pBlockingConnection member of a list entry is -// set to db, then set pBlockingConnection=0. +// 1. If the sqlite3.pBlockingConnection member of a list entry is +// set to db, then set pBlockingConnection=0. // -// 2) If the sqlite3.pUnlockConnection member of a list entry is -// set to db, then invoke the configured unlock-notify callback and -// set pUnlockConnection=0. +// 2. If the sqlite3.pUnlockConnection member of a list entry is +// set to db, then invoke the configured unlock-notify callback and +// set pUnlockConnection=0. // -// 3) If the two steps above mean that pBlockingConnection==0 and -// pUnlockConnection==0, remove the entry from the blocked connections -// list. -func Xsqlite3ConnectionUnlocked(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173579:21: */ +// 3. If the two steps above mean that pBlockingConnection==0 and +// pUnlockConnection==0, remove the entry from the blocked connections +// list. +func Xsqlite3ConnectionUnlocked(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175696:21: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -198587,7 +200834,7 @@ func Xsqlite3ConnectionUnlocked(tls *libc.TLS, db uintptr) { /* testdata/sqlite- // This is called when the database connection passed as an argument is // being closed. The connection is removed from the blocked list. -func Xsqlite3ConnectionClosed(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:173678:21: */ +func Xsqlite3ConnectionClosed(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175795:21: */ Xsqlite3ConnectionUnlocked(tls, db) enterMutex(tls) removeFromBlockedList(tls, db) @@ -199192,7 +201439,7 @@ var jsonIsSpace = [256]int8{ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193255:19 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195377:19 */ // Objects type JsonString1 = struct { @@ -199204,10 +201451,10 @@ type JsonString1 = struct { FbErr U8 FzSpace [100]int8 F__ccgo_pad1 [2]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193282:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195404:9 */ // Objects -type JsonString = JsonString1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193282:27 */ +type JsonString = JsonString1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195404:27 */ type JsonNode1 = struct { FeType U8 FjnFlags U8 @@ -199215,9 +201462,9 @@ type JsonNode1 = struct { F__ccgo_pad1 [1]byte Fn U32 Fu struct{ FzJContent uintptr } -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193283:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195405:9 */ -type JsonNode = JsonNode1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193283:25 */ +type JsonNode = JsonNode1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195405:25 */ type JsonParse1 = struct { FnNode U32 FnAlloc U32 @@ -199230,9 +201477,9 @@ type JsonParse1 = struct { FnJson int32 FiHold U32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193284:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195406:9 */ -type JsonParse = JsonParse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193284:26 */ +type JsonParse = JsonParse1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195406:26 */ // JSON type values @@ -199240,8 +201487,8 @@ type JsonParse = JsonParse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19 // Names of the various JSON types: var jsonType = [8]uintptr{ - ts + 7484, ts + 7998, ts + 8003, ts + 7494, ts + 7489, ts + 9244, ts + 25685, ts + 25691, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193317:19 */ + ts + 7519, ts + 8042, ts + 8047, ts + 7529, ts + 7524, ts + 9283, ts + 25650, ts + 25656, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195439:19 */ // Maximum nesting depth of JSON for this implementation. // @@ -199255,7 +201502,7 @@ var jsonType = [8]uintptr{ // // Set the JsonString object to an empty string -func jsonZero(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193378:13: */ +func jsonZero(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195500:13: */ (*JsonString)(unsafe.Pointer(p)).FzBuf = p + 34 /* &.zSpace */ (*JsonString)(unsafe.Pointer(p)).FnAlloc = U64(unsafe.Sizeof([100]int8{})) (*JsonString)(unsafe.Pointer(p)).FnUsed = uint64(0) @@ -199263,7 +201510,7 @@ func jsonZero(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-338050 } // Initialize the JsonString object -func jsonInit(tls *libc.TLS, p uintptr, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193387:13: */ +func jsonInit(tls *libc.TLS, p uintptr, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195509:13: */ (*JsonString)(unsafe.Pointer(p)).FpCtx = pCtx (*JsonString)(unsafe.Pointer(p)).FbErr = U8(0) jsonZero(tls, p) @@ -199271,7 +201518,7 @@ func jsonInit(tls *libc.TLS, p uintptr, pCtx uintptr) { /* testdata/sqlite-amalg // Free all allocated memory and reset the JsonString object back to its // initial state. -func jsonReset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193397:13: */ +func jsonReset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195519:13: */ if !(int32((*JsonString)(unsafe.Pointer(p)).FbStatic) != 0) { Xsqlite3_free(tls, (*JsonString)(unsafe.Pointer(p)).FzBuf) } @@ -199279,7 +201526,7 @@ func jsonReset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-33805 } // Report an out-of-memory (OOM) condition -func jsonOom(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193405:13: */ +func jsonOom(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195527:13: */ (*JsonString)(unsafe.Pointer(p)).FbErr = U8(1) Xsqlite3_result_error_nomem(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx) jsonReset(tls, p) @@ -199287,7 +201534,7 @@ func jsonOom(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500 // Enlarge pJson->zBuf so that it can hold at least N more bytes. // Return zero on success. Return non-zero on an OOM error -func jsonGrow(tls *libc.TLS, p uintptr, N U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193414:12: */ +func jsonGrow(tls *libc.TLS, p uintptr, N U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195536:12: */ var nTotal U64 if U64(N) < (*JsonString)(unsafe.Pointer(p)).FnAlloc { nTotal = (*JsonString)(unsafe.Pointer(p)).FnAlloc * uint64(2) @@ -199320,7 +201567,7 @@ func jsonGrow(tls *libc.TLS, p uintptr, N U32) int32 { /* testdata/sqlite-amalga } // Append N bytes from zIn onto the end of the JsonString string. -func jsonAppendRaw(tls *libc.TLS, p uintptr, zIn uintptr, N U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193441:13: */ +func jsonAppendRaw(tls *libc.TLS, p uintptr, zIn uintptr, N U32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195563:13: */ if N == U32(0) { return } @@ -199332,7 +201579,7 @@ func jsonAppendRaw(tls *libc.TLS, p uintptr, zIn uintptr, N U32) { /* testdata/s } // Append formatted text (not to exceed N bytes) to the JsonString. -func jsonPrintf(tls *libc.TLS, N int32, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193450:13: */ +func jsonPrintf(tls *libc.TLS, N int32, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195572:13: */ var ap Va_list _ = ap if (*JsonString)(unsafe.Pointer(p)).FnUsed+U64(N) >= (*JsonString)(unsafe.Pointer(p)).FnAlloc && jsonGrow(tls, p, uint32(N)) != 0 { @@ -199345,7 +201592,7 @@ func jsonPrintf(tls *libc.TLS, N int32, p uintptr, zFormat uintptr, va uintptr) } // Append a single character -func jsonAppendChar(tls *libc.TLS, p uintptr, c int8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193461:13: */ +func jsonAppendChar(tls *libc.TLS, p uintptr, c int8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195583:13: */ if (*JsonString)(unsafe.Pointer(p)).FnUsed >= (*JsonString)(unsafe.Pointer(p)).FnAlloc && jsonGrow(tls, p, uint32(1)) != 0 { return } @@ -199354,7 +201601,7 @@ func jsonAppendChar(tls *libc.TLS, p uintptr, c int8) { /* testdata/sqlite-amalg // Append a comma separator to the output buffer, if the previous // character is not '[' or '{'. -func jsonAppendSeparator(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193469:13: */ +func jsonAppendSeparator(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195591:13: */ var c int8 if (*JsonString)(unsafe.Pointer(p)).FnUsed == uint64(0) { return @@ -199369,7 +201616,7 @@ func jsonAppendSeparator(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama // under construction. Enclose the string in "..." and escape // any double-quotes or backslash characters contained within the // string. -func jsonAppendString(tls *libc.TLS, p uintptr, zIn uintptr, N U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193481:13: */ +func jsonAppendString(tls *libc.TLS, p uintptr, zIn uintptr, N U32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195603:13: */ var i U32 var c uint8 if !(zIn == uintptr(0) || U64(N)+(*JsonString)(unsafe.Pointer(p)).FnUsed+uint64(2) >= (*JsonString)(unsafe.Pointer(p)).FnAlloc && jsonGrow(tls, p, N+U32(2)) != 0) { @@ -199420,7 +201667,7 @@ __10: *(*int8)(unsafe.Pointer((*JsonString)(unsafe.Pointer(p)).FzBuf + uintptr(libc.PostIncUint64(&(*JsonString)(unsafe.Pointer(p)).FnUsed, 1)))) = int8('0') *(*int8)(unsafe.Pointer((*JsonString)(unsafe.Pointer(p)).FzBuf + uintptr(libc.PostIncUint64(&(*JsonString)(unsafe.Pointer(p)).FnUsed, 1)))) = int8('0') *(*int8)(unsafe.Pointer((*JsonString)(unsafe.Pointer(p)).FzBuf + uintptr(libc.PostIncUint64(&(*JsonString)(unsafe.Pointer(p)).FnUsed, 1)))) = int8('0' + int32(c)>>4) - c = uint8(*(*int8)(unsafe.Pointer(ts + 25698 + uintptr(int32(c)&0xf)))) + c = uint8(*(*int8)(unsafe.Pointer(ts + 25663 + uintptr(int32(c)&0xf)))) __8: ; __6: @@ -199440,15 +201687,15 @@ __4: var aSpecial = [32]int8{ int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8('b'), int8('t'), int8('n'), int8(0), int8('f'), int8('r'), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), int8(0), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193492:25 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195614:25 */ // Append a function parameter value to the JSON string under // construction. -func jsonAppendValue(tls *libc.TLS, p uintptr, pValue uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193524:13: */ +func jsonAppendValue(tls *libc.TLS, p uintptr, pValue uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195646:13: */ switch Xsqlite3_value_type(tls, pValue) { case SQLITE_NULL: { - jsonAppendRaw(tls, p, ts+7484, uint32(4)) + jsonAppendRaw(tls, p, ts+7519, uint32(4)) break } @@ -199477,7 +201724,7 @@ func jsonAppendValue(tls *libc.TLS, p uintptr, pValue uintptr) { /* testdata/sql default: { if int32((*JsonString)(unsafe.Pointer(p)).FbErr) == 0 { - Xsqlite3_result_error(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx, ts+25715, -1) + Xsqlite3_result_error(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx, ts+25680, -1) (*JsonString)(unsafe.Pointer(p)).FbErr = U8(2) jsonReset(tls, p) } @@ -199488,7 +201735,7 @@ func jsonAppendValue(tls *libc.TLS, p uintptr, pValue uintptr) { /* testdata/sql } // Make the JSON in p the result of the SQL function. -func jsonResult(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193564:13: */ +func jsonResult(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195686:13: */ if int32((*JsonString)(unsafe.Pointer(p)).FbErr) == 0 { Xsqlite3_result_text64(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx, (*JsonString)(unsafe.Pointer(p)).FzBuf, (*JsonString)(unsafe.Pointer(p)).FnUsed, func() uintptr { @@ -199515,7 +201762,7 @@ func jsonResult(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380 // Appended elements are not counted. The value returned is the number // by which the JsonNode counter should increment in order to go to the // next peer value. -func jsonNodeSize(tls *libc.TLS, pNode uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193587:12: */ +func jsonNodeSize(tls *libc.TLS, pNode uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195709:12: */ if int32((*JsonNode)(unsafe.Pointer(pNode)).FeType) >= JSON_ARRAY { return (*JsonNode)(unsafe.Pointer(pNode)).Fn + U32(1) } @@ -199524,7 +201771,7 @@ func jsonNodeSize(tls *libc.TLS, pNode uintptr) U32 { /* testdata/sqlite-amalgam // Reclaim all memory allocated by a JsonParse object. But do not // delete the JsonParse object itself. -func jsonParseReset(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193595:13: */ +func jsonParseReset(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195717:13: */ Xsqlite3_free(tls, (*JsonParse)(unsafe.Pointer(pParse)).FaNode) (*JsonParse)(unsafe.Pointer(pParse)).FaNode = uintptr(0) (*JsonParse)(unsafe.Pointer(pParse)).FnNode = U32(0) @@ -199534,7 +201781,7 @@ func jsonParseReset(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgama } // Free a JsonParse object that was obtained from sqlite3_malloc(). -func jsonParseFree(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193607:13: */ +func jsonParseFree(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195729:13: */ jsonParseReset(tls, pParse) Xsqlite3_free(tls, pParse) } @@ -199542,7 +201789,7 @@ func jsonParseFree(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamat // Convert the JsonNode pNode into a pure JSON string and // append to pOut. Subsubstructure is also included. Return // the number of JsonNode objects that are encoded. -func jsonRenderNode(tls *libc.TLS, pNode uintptr, pOut uintptr, aReplace uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193617:13: */ +func jsonRenderNode(tls *libc.TLS, pNode uintptr, pOut uintptr, aReplace uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195739:13: */ if int32((*JsonNode)(unsafe.Pointer(pNode)).FjnFlags)&(JNODE_REPLACE|JNODE_PATCH) != 0 { if int32((*JsonNode)(unsafe.Pointer(pNode)).FjnFlags)&JNODE_REPLACE != 0 && aReplace != uintptr(0) { @@ -199557,19 +201804,19 @@ func jsonRenderNode(tls *libc.TLS, pNode uintptr, pOut uintptr, aReplace uintptr default: { - jsonAppendRaw(tls, pOut, ts+7484, uint32(4)) + jsonAppendRaw(tls, pOut, ts+7519, uint32(4)) break } case JSON_TRUE: { - jsonAppendRaw(tls, pOut, ts+7998, uint32(4)) + jsonAppendRaw(tls, pOut, ts+8042, uint32(4)) break } case JSON_FALSE: { - jsonAppendRaw(tls, pOut, ts+8003, uint32(5)) + jsonAppendRaw(tls, pOut, ts+8047, uint32(5)) break } @@ -199644,7 +201891,7 @@ func jsonRenderNode(tls *libc.TLS, pNode uintptr, pOut uintptr, aReplace uintptr } // Return a JsonNode and all its descendents as a JSON string. -func jsonReturnJson(tls *libc.TLS, pNode uintptr, pCtx uintptr, aReplace uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193706:13: */ +func jsonReturnJson(tls *libc.TLS, pNode uintptr, pCtx uintptr, aReplace uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195828:13: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -199659,14 +201906,14 @@ func jsonReturnJson(tls *libc.TLS, pNode uintptr, pCtx uintptr, aReplace uintptr // Translate a single byte of Hex into an integer. // This routine only works if h really is a valid hexadecimal // character: 0..9a..fA..F -func jsonHexToInt(tls *libc.TLS, h int32) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193723:11: */ +func jsonHexToInt(tls *libc.TLS, h int32) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195845:11: */ h = h + 9*(1&(h>>6)) return U8(h & 0xf) } // Convert a 4-byte hex string into an integer -func jsonHexToInt4(tls *libc.TLS, z uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193736:12: */ +func jsonHexToInt4(tls *libc.TLS, z uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195858:12: */ var v U32 v = U32(int32(jsonHexToInt(tls, int32(*(*int8)(unsafe.Pointer(z)))))<<12 + @@ -199677,7 +201924,7 @@ func jsonHexToInt4(tls *libc.TLS, z uintptr) U32 { /* testdata/sqlite-amalgamati } // Make the JsonNode the return value of the function. -func jsonReturn(tls *libc.TLS, pNode uintptr, pCtx uintptr, aReplace uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193752:13: */ +func jsonReturn(tls *libc.TLS, pNode uintptr, pCtx uintptr, aReplace uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195874:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -199958,7 +202205,7 @@ __1: // A macro to hint to the compiler that a function should not be // inlined. -func jsonParseAddNodeExpand(tls *libc.TLS, pParse uintptr, eType U32, n U32, zContent uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193925:26: */ +func jsonParseAddNodeExpand(tls *libc.TLS, pParse uintptr, eType U32, n U32, zContent uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196047:26: */ var nNew U32 var pNew uintptr @@ -199980,7 +202227,7 @@ func jsonParseAddNodeExpand(tls *libc.TLS, pParse uintptr, eType U32, n U32, zCo // Create a new JsonNode instance based on the arguments and append that // instance to the JsonParse. Return the index in pParse->aNode[] of the // new node, or -1 if a memory allocation fails. -func jsonParseAddNode(tls *libc.TLS, pParse uintptr, eType U32, n U32, zContent uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193952:12: */ +func jsonParseAddNode(tls *libc.TLS, pParse uintptr, eType U32, n U32, zContent uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196074:12: */ var p uintptr if (*JsonParse)(unsafe.Pointer(pParse)).FaNode == uintptr(0) || (*JsonParse)(unsafe.Pointer(pParse)).FnNode >= (*JsonParse)(unsafe.Pointer(pParse)).FnAlloc { return jsonParseAddNodeExpand(tls, pParse, eType, n, zContent) @@ -199995,7 +202242,7 @@ func jsonParseAddNode(tls *libc.TLS, pParse uintptr, eType U32, n U32, zContent } // Return true if z[] begins with 4 (or more) hexadecimal digits -func jsonIs4Hex(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193974:12: */ +func jsonIs4Hex(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196096:12: */ var i int32 for i = 0; i < 4; i++ { if !(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(i))))])&0x08 != 0) { @@ -200011,7 +202258,7 @@ func jsonIs4Hex(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamatio // Return negative for a syntax error. Special cases: return -2 if the // first non-whitespace character is '}' and return -3 if the first // non-whitespace character is ']'. -func jsonParseValue(tls *libc.TLS, pParse uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193988:12: */ +func jsonParseValue(tls *libc.TLS, pParse uintptr, i U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196110:12: */ var c int8 var j U32 var iThis int32 @@ -200145,17 +202392,17 @@ func jsonParseValue(tls *libc.TLS, pParse uintptr, i U32) int32 { /* testdata/sq } return int32(j + U32(1)) } else if int32(c) == 'n' && - libc.Xstrncmp(tls, z+uintptr(i), ts+7484, uint64(4)) == 0 && + libc.Xstrncmp(tls, z+uintptr(i), ts+7519, uint64(4)) == 0 && !(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(i+U32(4)))))])&0x06 != 0) { jsonParseAddNode(tls, pParse, uint32(JSON_NULL), uint32(0), uintptr(0)) return int32(i + U32(4)) } else if int32(c) == 't' && - libc.Xstrncmp(tls, z+uintptr(i), ts+7998, uint64(4)) == 0 && + libc.Xstrncmp(tls, z+uintptr(i), ts+8042, uint64(4)) == 0 && !(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(i+U32(4)))))])&0x06 != 0) { jsonParseAddNode(tls, pParse, uint32(JSON_TRUE), uint32(0), uintptr(0)) return int32(i + U32(4)) } else if int32(c) == 'f' && - libc.Xstrncmp(tls, z+uintptr(i), ts+8003, uint64(5)) == 0 && + libc.Xstrncmp(tls, z+uintptr(i), ts+8047, uint64(5)) == 0 && !(int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(i+U32(5)))))])&0x06 != 0) { jsonParseAddNode(tls, pParse, uint32(JSON_FALSE), uint32(0), uintptr(0)) return int32(i + U32(5)) @@ -200238,7 +202485,7 @@ func jsonParseValue(tls *libc.TLS, pParse uintptr, i U32) int32 { /* testdata/sq // pParse. // // pParse is uninitialized when this routine is called. -func jsonParse(tls *libc.TLS, pParse uintptr, pCtx uintptr, zJson uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194149:12: */ +func jsonParse(tls *libc.TLS, pParse uintptr, pCtx uintptr, zJson uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196271:12: */ var i int32 libc.Xmemset(tls, pParse, 0, uint64(unsafe.Sizeof(JsonParse{}))) if zJson == uintptr(0) { @@ -200263,7 +202510,7 @@ func jsonParse(tls *libc.TLS, pParse uintptr, pCtx uintptr, zJson uintptr) int32 if (*JsonParse)(unsafe.Pointer(pParse)).Foom != 0 { Xsqlite3_result_error_nomem(tls, pCtx) } else { - Xsqlite3_result_error(tls, pCtx, ts+25744, -1) + Xsqlite3_result_error(tls, pCtx, ts+25709, -1) } } jsonParseReset(tls, pParse) @@ -200274,7 +202521,7 @@ func jsonParse(tls *libc.TLS, pParse uintptr, pCtx uintptr, zJson uintptr) int32 // Mark node i of pParse as being a child of iParent. Call recursively // to fill in all the descendants of node i. -func jsonParseFillInParentage(tls *libc.TLS, pParse uintptr, i U32, iParent U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194182:13: */ +func jsonParseFillInParentage(tls *libc.TLS, pParse uintptr, i U32, iParent U32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196304:13: */ var pNode uintptr = (*JsonParse)(unsafe.Pointer(pParse)).FaNode + uintptr(i)*16 var j U32 *(*U32)(unsafe.Pointer((*JsonParse)(unsafe.Pointer(pParse)).FaUp + uintptr(i)*4)) = iParent @@ -200305,7 +202552,7 @@ func jsonParseFillInParentage(tls *libc.TLS, pParse uintptr, i U32, iParent U32) } // Compute the parentage of all nodes in a completed parse. -func jsonParseFindParents(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194209:12: */ +func jsonParseFindParents(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196331:12: */ var aUp uintptr aUp = libc.AssignPtrUintptr(pParse+24, Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(U32(0)))*uint64((*JsonParse)(unsafe.Pointer(pParse)).FnNode))) @@ -200325,7 +202572,7 @@ func jsonParseFindParents(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sql // is no longer valid, parse the JSON again and return the new parse, // and also register the new parse so that it will be available for // future sqlite3_get_auxdata() calls. -func jsonParseCached(tls *libc.TLS, pCtx uintptr, argv uintptr, pErrCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194235:18: */ +func jsonParseCached(tls *libc.TLS, pCtx uintptr, argv uintptr, pErrCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196357:18: */ var zJson uintptr = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv))) var nJson int32 = Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv))) var p uintptr @@ -200382,7 +202629,7 @@ func jsonParseCached(tls *libc.TLS, pCtx uintptr, argv uintptr, pErrCtx uintptr) // Compare the OBJECT label at pNode against zKey,nKey. Return true on // a match. -func jsonLabelCompare(tls *libc.TLS, pNode uintptr, zKey uintptr, nKey U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194297:12: */ +func jsonLabelCompare(tls *libc.TLS, pNode uintptr, zKey uintptr, nKey U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196419:12: */ if int32((*JsonNode)(unsafe.Pointer(pNode)).FjnFlags)&JNODE_RAW != 0 { if (*JsonNode)(unsafe.Pointer(pNode)).Fn != nKey { @@ -200405,7 +202652,7 @@ func jsonLabelCompare(tls *libc.TLS, pNode uintptr, zKey uintptr, nKey U32) int3 // If pApnd!=0, then try to append new nodes to complete zPath if it is // possible to do so and if no existing node corresponds to zPath. If // new nodes are appended *pApnd is set to 1. -func jsonLookupStep(tls *libc.TLS, pParse uintptr, iRoot U32, zPath uintptr, pApnd uintptr, pzErr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194320:17: */ +func jsonLookupStep(tls *libc.TLS, pParse uintptr, iRoot U32, zPath uintptr, pApnd uintptr, pzErr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196442:17: */ var i U32 var j U32 var nKey U32 @@ -200581,7 +202828,7 @@ func jsonLookupStep(tls *libc.TLS, pParse uintptr, iRoot U32, zPath uintptr, pAp // Append content to pParse that will complete zPath. Return a pointer // to the inserted node, or return NULL if the append fails. -func jsonLookupAppend(tls *libc.TLS, pParse uintptr, zPath uintptr, pApnd uintptr, pzErr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194473:17: */ +func jsonLookupAppend(tls *libc.TLS, pParse uintptr, zPath uintptr, pApnd uintptr, pzErr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196595:17: */ *(*int32)(unsafe.Pointer(pApnd)) = 1 if int32(*(*int8)(unsafe.Pointer(zPath))) == 0 { jsonParseAddNode(tls, pParse, uint32(JSON_NULL), uint32(0), uintptr(0)) @@ -200592,7 +202839,7 @@ func jsonLookupAppend(tls *libc.TLS, pParse uintptr, zPath uintptr, pApnd uintpt } if int32(*(*int8)(unsafe.Pointer(zPath))) == '.' { jsonParseAddNode(tls, pParse, uint32(JSON_OBJECT), uint32(0), uintptr(0)) - } else if libc.Xstrncmp(tls, zPath, ts+25759, uint64(3)) == 0 { + } else if libc.Xstrncmp(tls, zPath, ts+25724, uint64(3)) == 0 { jsonParseAddNode(tls, pParse, uint32(JSON_ARRAY), uint32(0), uintptr(0)) } else { return uintptr(0) @@ -200605,11 +202852,11 @@ func jsonLookupAppend(tls *libc.TLS, pParse uintptr, zPath uintptr, pApnd uintpt // Return the text of a syntax error message on a JSON path. Space is // obtained from sqlite3_malloc(). -func jsonPathSyntaxError(tls *libc.TLS, zErr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194499:13: */ +func jsonPathSyntaxError(tls *libc.TLS, zErr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196621:13: */ bp := tls.Alloc(8) defer tls.Free(8) - return Xsqlite3_mprintf(tls, ts+25763, libc.VaList(bp, zErr)) + return Xsqlite3_mprintf(tls, ts+25728, libc.VaList(bp, zErr)) } // Do a node lookup using zPath. Return a pointer to the node on success. @@ -200620,7 +202867,7 @@ func jsonPathSyntaxError(tls *libc.TLS, zErr uintptr) uintptr { /* testdata/sqli // // If pApnd!=NULL then try to append missing nodes and set *pApnd = 1 if // nodes are appended. -func jsonLookup(tls *libc.TLS, pParse uintptr, zPath uintptr, pApnd uintptr, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194513:17: */ +func jsonLookup(tls *libc.TLS, pParse uintptr, zPath uintptr, pApnd uintptr, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196635:17: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -200672,18 +202919,18 @@ __5: // Report the wrong number of arguments for json_insert(), json_replace() // or json_set(). -func jsonWrongNumArgs(tls *libc.TLS, pCtx uintptr, zFuncName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194550:13: */ +func jsonWrongNumArgs(tls *libc.TLS, pCtx uintptr, zFuncName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196672:13: */ bp := tls.Alloc(8) defer tls.Free(8) - var zMsg uintptr = Xsqlite3_mprintf(tls, ts+25789, + var zMsg uintptr = Xsqlite3_mprintf(tls, ts+25754, libc.VaList(bp, zFuncName)) Xsqlite3_result_error(tls, pCtx, zMsg, -1) Xsqlite3_free(tls, zMsg) } // Mark all NULL entries in the Object passed in as JNODE_REMOVE. -func jsonRemoveAllNulls(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194563:13: */ +func jsonRemoveAllNulls(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196685:13: */ var i int32 var n int32 @@ -200714,7 +202961,7 @@ func jsonRemoveAllNulls(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalg // corresponding to the SQL value input. Mostly this means putting // double-quotes around strings and returning the unquoted string "null" // when given a NULL input. -func jsonQuoteFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194652:13: */ +func jsonQuoteFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196774:13: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -200731,7 +202978,7 @@ func jsonQuoteFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* te // Implementation of the json_array(VALUE,...) function. Return a JSON // array that contains all values given in arguments. Or if any argument // is a BLOB, throw an error. -func jsonArrayFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194671:13: */ +func jsonArrayFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196793:13: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -200754,7 +203001,7 @@ func jsonArrayFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* te // // Return the number of elements in the top-level JSON array. // Return 0 if the input is not a well-formed JSON array. -func jsonArrayLengthFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194698:13: */ +func jsonArrayLengthFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196820:13: */ var p uintptr // The parse var n Sqlite3_int64 = int64(0) var i U32 @@ -200804,7 +203051,7 @@ func jsonArrayLengthFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { // // Abbreviated JSON path expressions are allows if JSON_ABPATH, for // compatibility with PG. -func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194758:13: */ +func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196880:13: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -200838,11 +203085,11 @@ func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* // [NUMBER] ==> $[NUMBER] // Not PG. Purely for convenience jsonInit(tls, bp, ctx) if int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zPath)))])&0x04 != 0 { - jsonAppendRaw(tls, bp, ts+25832, uint32(2)) + jsonAppendRaw(tls, bp, ts+25797, uint32(2)) jsonAppendRaw(tls, bp, zPath, uint32(int32(libc.Xstrlen(tls, zPath)))) - jsonAppendRaw(tls, bp, ts+6301, uint32(2)) + jsonAppendRaw(tls, bp, ts+6336, uint32(2)) } else { - jsonAppendRaw(tls, bp, ts+25835, uint32(1+libc.Bool32(int32(*(*int8)(unsafe.Pointer(zPath))) != '['))) + jsonAppendRaw(tls, bp, ts+25800, uint32(1+libc.Bool32(int32(*(*int8)(unsafe.Pointer(zPath))) != '['))) jsonAppendRaw(tls, bp, zPath, uint32(int32(libc.Xstrlen(tls, zPath)))) jsonAppendChar(tls, bp, int8(0)) } @@ -200885,7 +203132,7 @@ func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* if pNode != 0 { jsonRenderNode(tls, pNode, bp, uintptr(0)) } else { - jsonAppendRaw(tls, bp, ts+7484, uint32(4)) + jsonAppendRaw(tls, bp, ts+7519, uint32(4)) } } if i == argc { @@ -200898,7 +203145,7 @@ func jsonExtractFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* } // This is the RFC 7396 MergePatch algorithm. -func jsonMergePatch(tls *libc.TLS, pParse uintptr, iTarget U32, pPatch uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194841:17: */ +func jsonMergePatch(tls *libc.TLS, pParse uintptr, iTarget U32, pPatch uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:196963:17: */ var i U32 var j U32 var iRoot U32 @@ -200971,7 +203218,7 @@ func jsonMergePatch(tls *libc.TLS, pParse uintptr, iTarget U32, pPatch uintptr) // Implementation of the json_mergepatch(JSON1,JSON2) function. Return a JSON // object that is the result of running the RFC 7396 MergePatch() algorithm // on the two arguments. -func jsonPatchFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194923:13: */ +func jsonPatchFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197045:13: */ bp := tls.Alloc(96) defer tls.Free(96) @@ -201003,7 +203250,7 @@ func jsonPatchFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* te // Implementation of the json_object(NAME,VALUE,...) function. Return a JSON // object that contains all name/value given in arguments. Or if any name // is not a string or if any value is a BLOB, throw an error. -func jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194955:13: */ +func jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197077:13: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -201015,14 +203262,14 @@ func jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* t if argc&1 != 0 { Xsqlite3_result_error(tls, ctx, - ts+25838, -1) + ts+25803, -1) return } jsonInit(tls, bp, ctx) jsonAppendChar(tls, bp, int8('{')) for i = 0; i < argc; i = i + 2 { if Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))) != SQLITE_TEXT { - Xsqlite3_result_error(tls, ctx, ts+25889, -1) + Xsqlite3_result_error(tls, ctx, ts+25854, -1) jsonReset(tls, bp) return } @@ -201042,7 +203289,7 @@ func jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* t // // Remove the named elements from JSON and return the result. malformed // JSON or PATH arguments result in an error. -func jsonRemoveFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:194997:13: */ +func jsonRemoveFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197119:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -201111,7 +203358,7 @@ remove_done: // // Replace the value at PATH with VALUE. If PATH does not already exist, // this routine is a no-op. If JSON or PATH is malformed, throw an error. -func jsonReplaceFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195030:13: */ +func jsonReplaceFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197152:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -201130,7 +203377,7 @@ __1: if !(argc&1 == 0) { goto __2 } - jsonWrongNumArgs(tls, ctx, ts+16635) + jsonWrongNumArgs(tls, ctx, ts+16674) return __2: ; @@ -201194,7 +203441,7 @@ replace_err: // // Create PATH and initialize it to VALUE. If PATH already exists, this // routine is a no-op. If JSON or PATH is malformed, throw an error. -func jsonSetFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195082:13: */ +func jsonSetFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197204:13: */ bp := tls.Alloc(52) defer tls.Free(52) @@ -201219,9 +203466,9 @@ __1: } jsonWrongNumArgs(tls, ctx, func() uintptr { if bIsSet != 0 { - return ts + 25923 /* "set" */ + return ts + 25888 /* "set" */ } - return ts + 25927 /* "insert" */ + return ts + 25892 /* "insert" */ }()) return __2: @@ -201292,7 +203539,7 @@ jsonSetDone: // // Return the top-level "type" of a JSON string. json_type() raises an // error if either the JSON or PATH inputs are not well-formed. -func jsonTypeFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195135:13: */ +func jsonTypeFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197257:13: */ var p uintptr // The parse var zPath uintptr var pNode uintptr @@ -201316,7 +203563,7 @@ func jsonTypeFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* tes // // Return 1 if JSON is a well-formed JSON string according to RFC-7159. // Return 0 otherwise. -func jsonValidFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195163:13: */ +func jsonValidFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197285:13: */ var p uintptr // The parse _ = argc p = jsonParseCached(tls, ctx, argv, uintptr(0)) @@ -201325,12 +203572,12 @@ func jsonValidFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* te // *************************************************************************** // -// Aggregate SQL function implementations +// # Aggregate SQL function implementations // // json_group_array(VALUE) // // Return a JSON array composed of all values in the aggregate. -func jsonArrayStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195183:13: */ +func jsonArrayStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197305:13: */ var pStr uintptr _ = argc pStr = Xsqlite3_aggregate_context(tls, ctx, int32(unsafe.Sizeof(JsonString{}))) @@ -201346,7 +203593,7 @@ func jsonArrayStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* te } } -func jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195202:13: */ +func jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197324:13: */ var pStr uintptr pStr = Xsqlite3_aggregate_context(tls, ctx, 0) if pStr != 0 { @@ -201371,16 +203618,16 @@ func jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* testdata/s (*JsonString)(unsafe.Pointer(pStr)).FnUsed-- } } else { - Xsqlite3_result_text(tls, ctx, ts+25934, 2, uintptr(0)) + Xsqlite3_result_text(tls, ctx, ts+25899, 2, uintptr(0)) } Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE)) } -func jsonArrayValue(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195224:13: */ +func jsonArrayValue(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197346:13: */ jsonArrayCompute(tls, ctx, 0) } -func jsonArrayFinal(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195227:13: */ +func jsonArrayFinal(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197349:13: */ jsonArrayCompute(tls, ctx, 1) } @@ -201388,7 +203635,7 @@ func jsonArrayFinal(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamatio // It works by removing the first element of the group by searching forward // to the first comma (",") that is not within a string and deleting all // text through that comma. -func jsonGroupInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195238:13: */ +func jsonGroupInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197360:13: */ var i uint32 var inStr int32 = 0 var nNest int32 = 0 @@ -201430,7 +203677,7 @@ func jsonGroupInverse(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* // json_group_obj(NAME,VALUE) // // Return a JSON object composed of all names and values in the aggregate. -func jsonObjectStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195286:13: */ +func jsonObjectStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197408:13: */ var pStr uintptr var z uintptr var n U32 @@ -201452,7 +203699,7 @@ func jsonObjectStep(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* t } } -func jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195311:13: */ +func jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197433:13: */ var pStr uintptr pStr = Xsqlite3_aggregate_context(tls, ctx, 0) if pStr != 0 { @@ -201476,23 +203723,22 @@ func jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* testdata/ (*JsonString)(unsafe.Pointer(pStr)).FnUsed-- } } else { - Xsqlite3_result_text(tls, ctx, ts+25937, 2, uintptr(0)) + Xsqlite3_result_text(tls, ctx, ts+25902, 2, uintptr(0)) } Xsqlite3_result_subtype(tls, ctx, uint32(JSON_SUBTYPE)) } -func jsonObjectValue(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195332:13: */ +func jsonObjectValue(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197454:13: */ jsonObjectCompute(tls, ctx, 0) } -func jsonObjectFinal(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195335:13: */ +func jsonObjectFinal(tls *libc.TLS, ctx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197457:13: */ jsonObjectCompute(tls, ctx, 1) } // *************************************************************************** // // The json_each virtual table -// type JsonEachCursor1 = struct { Fbase Sqlite3_vtab_cursor FiRowid U32 @@ -201505,16 +203751,15 @@ type JsonEachCursor1 = struct { FzJson uintptr FzRoot uintptr FsParse JsonParse -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195345:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197467:9 */ // *************************************************************************** // // The json_each virtual table -// -type JsonEachCursor = JsonEachCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195345:31 */ +type JsonEachCursor = JsonEachCursor1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197467:31 */ // Constructor for the json_each virtual table -func jsonEachConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195360:12: */ +func jsonEachConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197482:12: */ var pNew uintptr var rc int32 @@ -201529,7 +203774,7 @@ func jsonEachConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv u _ = pAux rc = Xsqlite3_declare_vtab(tls, db, - ts+25940) + ts+25905) if rc == SQLITE_OK { pNew = libc.AssignPtrUintptr(ppVtab, Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Sqlite3_vtab{})))) if pNew == uintptr(0) { @@ -201542,13 +203787,13 @@ func jsonEachConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv u } // destructor for json_each virtual table -func jsonEachDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195402:12: */ +func jsonEachDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197524:12: */ Xsqlite3_free(tls, pVtab) return SQLITE_OK } // constructor for a JsonEachCursor object for json_each(). -func jsonEachOpenEach(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195408:12: */ +func jsonEachOpenEach(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197530:12: */ var pCur uintptr _ = p @@ -201562,7 +203807,7 @@ func jsonEachOpenEach(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* tes } // constructor for a JsonEachCursor object for json_tree(). -func jsonEachOpenTree(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195420:12: */ +func jsonEachOpenTree(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197542:12: */ var rc int32 = jsonEachOpenEach(tls, p, ppCursor) if rc == SQLITE_OK { var pCur uintptr = *(*uintptr)(unsafe.Pointer(ppCursor)) @@ -201573,7 +203818,7 @@ func jsonEachOpenTree(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* tes // Reset a JsonEachCursor back to its original state. Free any memory // held. -func jsonEachCursorReset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195431:13: */ +func jsonEachCursorReset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197553:13: */ Xsqlite3_free(tls, (*JsonEachCursor)(unsafe.Pointer(p)).FzJson) Xsqlite3_free(tls, (*JsonEachCursor)(unsafe.Pointer(p)).FzRoot) jsonParseReset(tls, p+48) @@ -201586,7 +203831,7 @@ func jsonEachCursorReset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama } // Destructor for a jsonEachCursor object -func jsonEachClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195444:12: */ +func jsonEachClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197566:12: */ var p uintptr = cur jsonEachCursorReset(tls, p) Xsqlite3_free(tls, cur) @@ -201595,13 +203840,13 @@ func jsonEachClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalga // Return TRUE if the jsonEachCursor object has been advanced off the end // of the JSON object -func jsonEachEof(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195453:12: */ +func jsonEachEof(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197575:12: */ var p uintptr = cur return libc.Bool32((*JsonEachCursor)(unsafe.Pointer(p)).Fi >= (*JsonEachCursor)(unsafe.Pointer(p)).FiEnd) } // Advance the cursor to the next element for json_tree() -func jsonEachNext(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195459:12: */ +func jsonEachNext(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197581:12: */ var p uintptr = cur if (*JsonEachCursor)(unsafe.Pointer(p)).FbRecursive != 0 { if int32((*JsonNode)(unsafe.Pointer((*JsonEachCursor)(unsafe.Pointer(p)).FsParse.FaNode+uintptr((*JsonEachCursor)(unsafe.Pointer(p)).Fi)*16)).FjnFlags)&JNODE_LABEL != 0 { @@ -201653,7 +203898,7 @@ func jsonEachNext(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgam // Append an object label to the JSON Path being constructed // in pStr. -func jsonAppendObjectPathElement(tls *libc.TLS, pStr uintptr, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195504:13: */ +func jsonAppendObjectPathElement(tls *libc.TLS, pStr uintptr, pNode uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197626:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -201672,11 +203917,11 @@ func jsonAppendObjectPathElement(tls *libc.TLS, pStr uintptr, pNode uintptr) { / nn = nn - 2 } } - jsonPrintf(tls, nn+2, pStr, ts+26023, libc.VaList(bp, nn, z)) + jsonPrintf(tls, nn+2, pStr, ts+25988, libc.VaList(bp, nn, z)) } // Append the name of the path for element i to pStr -func jsonEachComputePath(tls *libc.TLS, p uintptr, pStr uintptr, i U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195530:13: */ +func jsonEachComputePath(tls *libc.TLS, p uintptr, pStr uintptr, i U32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197652:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -201693,7 +203938,7 @@ func jsonEachComputePath(tls *libc.TLS, p uintptr, pStr uintptr, i U32) { /* tes pUp = (*JsonEachCursor)(unsafe.Pointer(p)).FsParse.FaNode + uintptr(iUp)*16 if int32((*JsonNode)(unsafe.Pointer(pUp)).FeType) == JSON_ARRAY { - jsonPrintf(tls, 30, pStr, ts+26029, libc.VaList(bp, *(*U32)(unsafe.Pointer(pUp + 8)))) + jsonPrintf(tls, 30, pStr, ts+25994, libc.VaList(bp, *(*U32)(unsafe.Pointer(pUp + 8)))) } else { if int32((*JsonNode)(unsafe.Pointer(pNode)).FjnFlags)&JNODE_LABEL == 0 { @@ -201704,7 +203949,7 @@ func jsonEachComputePath(tls *libc.TLS, p uintptr, pStr uintptr, i U32) { /* tes } // Return the value of a column -func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195557:12: */ +func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197679:12: */ bp := tls.Alloc(280) defer tls.Free(280) @@ -201793,7 +204038,7 @@ func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* jsonAppendChar(tls, bp+8, int8('$')) } if int32((*JsonEachCursor)(unsafe.Pointer(p)).FeType) == JSON_ARRAY { - jsonPrintf(tls, 30, bp+8, ts+26029, libc.VaList(bp, (*JsonEachCursor)(unsafe.Pointer(p)).FiRowid)) + jsonPrintf(tls, 30, bp+8, ts+25994, libc.VaList(bp, (*JsonEachCursor)(unsafe.Pointer(p)).FiRowid)) } else if int32((*JsonEachCursor)(unsafe.Pointer(p)).FeType) == JSON_OBJECT { jsonAppendObjectPathElement(tls, bp+8, pThis) } @@ -201819,7 +204064,7 @@ func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* { var zRoot uintptr = (*JsonEachCursor)(unsafe.Pointer(p)).FzRoot if zRoot == uintptr(0) { - zRoot = ts + 26034 /* "$" */ + zRoot = ts + 25999 /* "$" */ } Xsqlite3_result_text(tls, ctx, zRoot, -1, uintptr(0)) break @@ -201837,7 +204082,7 @@ func jsonEachColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* } // Return the current rowid value -func jsonEachRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195657:12: */ +func jsonEachRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197779:12: */ var p uintptr = cur *(*Sqlite_int64)(unsafe.Pointer(pRowid)) = Sqlite_int64((*JsonEachCursor)(unsafe.Pointer(p)).FiRowid) return SQLITE_OK @@ -201847,7 +204092,7 @@ func jsonEachRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* testda // column. Without such a constraint, the table cannot operate. idxNum is // 1 if the constraint is found, 3 if the constraint and zRoot are found, // and 0 otherwise. -func jsonEachBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195668:12: */ +func jsonEachBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197790:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -201922,7 +204167,7 @@ __3: } // Start a search on a new JSON string -func jsonEachFilter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195727:12: */ +func jsonEachFilter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197849:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -201951,7 +204196,7 @@ func jsonEachFilter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, ar var rc int32 = SQLITE_NOMEM if int32((*JsonEachCursor)(unsafe.Pointer(p)).FsParse.Foom) == 0 { Xsqlite3_free(tls, (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg) - (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+25744, 0) + (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+25709, 0) if (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg != 0 { rc = SQLITE_ERROR } @@ -202027,7 +204272,7 @@ var jsonEachModule = Sqlite3_module{ // xCreate FxEof: 0, // xEof - check for end of scan FxColumn: 0, // xColumn - read data FxRowid: 0, // xShadowName -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195808:23 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197930:23 */ // The methods of the json_tree virtual table. var jsonTreeModule = Sqlite3_module{ // xCreate @@ -202041,36 +204286,36 @@ var jsonTreeModule = Sqlite3_module{ // xCreate FxEof: 0, // xEof - check for end of scan FxColumn: 0, // xColumn - read data FxRowid: 0, // xShadowName -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195836:23 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197958:23 */ // Register JSON functions. -func Xsqlite3RegisterJsonFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195868:21: */ +func Xsqlite3RegisterJsonFunctions(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197990:21: */ Xsqlite3InsertBuiltinFuncs(tls, uintptr(unsafe.Pointer(&aJsonFunc)), int32(uint64(unsafe.Sizeof(aJsonFunc))/uint64(unsafe.Sizeof(FuncDef{})))) } var aJsonFunc = [19]FuncDef{ - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26036}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26041}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26052}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26052}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26070}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: uintptr(int64(JSON_JSON)), FxSFunc: 0, FzName: ts + 26083}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: uintptr(int64(JSON_SQL)), FxSFunc: 0, FzName: ts + 26086}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26090}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26102}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26114}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26125}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26136}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26148}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: uintptr(int64(JSON_ISSET)), FxSFunc: 0, FzName: ts + 26161}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26170}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26170}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26180}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_SUBTYPE | SQLITE_UTF8 | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 26191}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_SUBTYPE | SQLITE_UTF8 | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 26208}} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195870:18 */ + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26001}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26006}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26017}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26017}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26035}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: uintptr(int64(JSON_JSON)), FxSFunc: 0, FzName: ts + 26048}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: uintptr(int64(JSON_SQL)), FxSFunc: 0, FzName: ts + 26051}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26055}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26067}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26079}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26090}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26101}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26113}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: uintptr(int64(JSON_ISSET)), FxSFunc: 0, FzName: ts + 26126}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26135}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26135}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 26145}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_SUBTYPE | SQLITE_UTF8 | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 26156}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_SUBTYPE | SQLITE_UTF8 | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS), FxSFunc: 0, FxFinalize: 0, FxValue: 0, FxInverse: 0, FzName: ts + 26173}} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:197992:18 */ // Register the JSON table-valued functions -func Xsqlite3JsonTableFunctions(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195907:20: */ +func Xsqlite3JsonTableFunctions(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198029:20: */ var rc int32 = SQLITE_OK var i uint32 for i = uint32(0); uint64(i) < uint64(unsafe.Sizeof(aMod))/uint64(unsafe.Sizeof(struct { @@ -202086,9 +204331,9 @@ var aMod = [2]struct { FzName uintptr FpModule uintptr }{ - {FzName: ts + 26226 /* "json_each" */, FpModule: 0}, - {FzName: ts + 26236 /* "json_tree" */, FpModule: 0}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195912:5 */ // In the SQLite core + {FzName: ts + 26191 /* "json_each" */, FpModule: 0}, + {FzName: ts + 26201 /* "json_tree" */, FpModule: 0}, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198034:5 */ // In the SQLite core // If building separately, we will need some setup that is normally // found in sqliteInt.h @@ -202135,7 +204380,7 @@ type Rtree1 = struct { FpDeleteParent uintptr FpWriteAux uintptr FaHash [97]uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196035:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198157:9 */ // In the SQLite core @@ -202149,7 +204394,7 @@ type Rtree1 = struct { // The following macro is used to suppress compiler warnings. -type Rtree = Rtree1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196035:22 */ +type Rtree = Rtree1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198157:22 */ type RtreeCursor1 = struct { Fbase Sqlite3_vtab_cursor FatEOF U8 @@ -202170,9 +204415,9 @@ type RtreeCursor1 = struct { FaNode [5]uintptr FanQueue [41]U32 F__ccgo_pad4 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196036:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198158:9 */ -type RtreeCursor = RtreeCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196036:28 */ +type RtreeCursor = RtreeCursor1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198158:28 */ type RtreeNode1 = struct { FpParent uintptr FiNode I64 @@ -202180,23 +204425,23 @@ type RtreeNode1 = struct { FisDirty int32 FzData uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196035:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198157:9 */ -type RtreeNode = RtreeNode1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196037:26 */ +type RtreeNode = RtreeNode1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198159:26 */ type RtreeCell1 = struct { FiRowid I64 FaCoord [10]RtreeCoord -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196038:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198160:9 */ -type RtreeCell = RtreeCell1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196038:26 */ +type RtreeCell = RtreeCell1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198160:26 */ type RtreeConstraint1 = struct { FiCoord int32 Fop int32 Fu struct{ FrValue RtreeDValue } FpInfo uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196036:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198158:9 */ -type RtreeConstraint = RtreeConstraint1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196039:32 */ +type RtreeConstraint = RtreeConstraint1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198161:32 */ type RtreeMatchArg1 = struct { FiSize U32 F__ccgo_pad1 [4]byte @@ -202205,20 +204450,20 @@ type RtreeMatchArg1 = struct { F__ccgo_pad2 [4]byte FapSqlParam uintptr FaParam [1]RtreeDValue -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196040:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198162:9 */ -type RtreeMatchArg = RtreeMatchArg1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196040:30 */ +type RtreeMatchArg = RtreeMatchArg1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198162:30 */ type RtreeGeomCallback1 = struct { FxGeom uintptr FxQueryFunc uintptr FxDestructor uintptr FpContext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196040:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198162:9 */ -type RtreeGeomCallback = RtreeGeomCallback1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196041:34 */ -type RtreeCoord1 = struct{ Ff RtreeValue } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196038:9 */ +type RtreeGeomCallback = RtreeGeomCallback1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198163:34 */ +type RtreeCoord1 = struct{ Ff RtreeValue } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198160:9 */ -type RtreeCoord = RtreeCoord1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196042:26 */ +type RtreeCoord = RtreeCoord1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198164:26 */ type RtreeSearchPoint1 = struct { FrScore RtreeDValue Fid Sqlite3_int64 @@ -202226,17 +204471,17 @@ type RtreeSearchPoint1 = struct { FeWithin U8 FiCell U8 F__ccgo_pad1 [5]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196036:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198158:9 */ -type RtreeSearchPoint = RtreeSearchPoint1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196043:33 */ +type RtreeSearchPoint = RtreeSearchPoint1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198165:33 */ // Possible values for Rtree.eCoordType: // If SQLITE_RTREE_INT_ONLY is defined, then this virtual table will // only deal with integer coordinates. No floating point operations // will be done. -type RtreeDValue = float64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196140:18 */ // High accuracy coordinate -type RtreeValue = float32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196141:17 */ +type RtreeDValue = float64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198262:18 */ // High accuracy coordinate +type RtreeValue = float32 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198263:17 */ // What version of GCC is being used. 0 means GCC is not being used . // Note that the GCC_VERSION macro will also be set correctly when using @@ -202263,16 +204508,16 @@ type RtreeValue = float32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196 // Functions to deserialize a 16 bit integer, 32 bit real number and // 64 bit integer. The deserialized value is returned. -func readInt16(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196425:12: */ +func readInt16(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198547:12: */ return int32(*(*U8)(unsafe.Pointer(p)))<<8 + int32(*(*U8)(unsafe.Pointer(p + 1))) } -func readCoord(tls *libc.TLS, p uintptr, pCoord uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196428:13: */ +func readCoord(tls *libc.TLS, p uintptr, pCoord uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198550:13: */ // p is always 4-byte aligned *(*U32)(unsafe.Pointer(pCoord)) = U32(libc.X_byteswap_ulong(tls, uint32(*(*U32)(unsafe.Pointer(p))))) } -func readInt64(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196445:12: */ +func readInt64(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198567:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -202285,12 +204530,12 @@ func readInt64(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3 // Functions to serialize a 16 bit integer, 32 bit real number and // 64 bit integer. The value returned is the number of bytes written // to the argument buffer (always 2, 4 and 8 respectively). -func writeInt16(tls *libc.TLS, p uintptr, i int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196477:13: */ +func writeInt16(tls *libc.TLS, p uintptr, i int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198599:13: */ *(*U8)(unsafe.Pointer(p)) = U8(i >> 8 & 0xFF) *(*U8)(unsafe.Pointer(p + 1)) = U8(i >> 0 & 0xFF) } -func writeCoord(tls *libc.TLS, p uintptr, pCoord uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196481:12: */ +func writeCoord(tls *libc.TLS, p uintptr, pCoord uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198603:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -202303,7 +204548,7 @@ func writeCoord(tls *libc.TLS, p uintptr, pCoord uintptr) int32 { /* testdata/sq return 4 } -func writeInt64(tls *libc.TLS, p uintptr, i I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196504:12: */ +func writeInt64(tls *libc.TLS, p uintptr, i I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198626:12: */ bp := tls.Alloc(8) defer tls.Free(8) *(*I64)(unsafe.Pointer(bp)) = i @@ -202314,7 +204559,7 @@ func writeInt64(tls *libc.TLS, p uintptr, i I64) int32 { /* testdata/sqlite-amal } // Increment the reference count of node p. -func nodeReference(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196529:13: */ +func nodeReference(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198651:13: */ if p != 0 { (*RtreeNode)(unsafe.Pointer(p)).FnRef++ @@ -202322,20 +204567,20 @@ func nodeReference(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3 } // Clear the content of node p (set all bytes to 0x00). -func nodeZero(tls *libc.TLS, pRtree uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196539:13: */ +func nodeZero(tls *libc.TLS, pRtree uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198661:13: */ libc.Xmemset(tls, (*RtreeNode)(unsafe.Pointer(p)).FzData+2, 0, uint64((*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize-2)) (*RtreeNode)(unsafe.Pointer(p)).FisDirty = 1 } // Given a node number iNode, return the corresponding key to use // in the Rtree.aHash table. -func nodeHash(tls *libc.TLS, iNode I64) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196548:21: */ +func nodeHash(tls *libc.TLS, iNode I64) uint32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198670:21: */ return uint32(iNode) % uint32(HASHSIZE) } // Search the node hash table for node iNode. If found, return a pointer // to it. Otherwise, return 0. -func nodeHashLookup(tls *libc.TLS, pRtree uintptr, iNode I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196556:18: */ +func nodeHashLookup(tls *libc.TLS, pRtree uintptr, iNode I64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198678:18: */ var p uintptr for p = *(*uintptr)(unsafe.Pointer(pRtree + 192 + uintptr(nodeHash(tls, iNode))*8)); p != 0 && (*RtreeNode)(unsafe.Pointer(p)).FiNode != iNode; p = (*RtreeNode)(unsafe.Pointer(p)).FpNext { } @@ -202343,7 +204588,7 @@ func nodeHashLookup(tls *libc.TLS, pRtree uintptr, iNode I64) uintptr { /* testd } // Add node pNode to the node hash table. -func nodeHashInsert(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196565:13: */ +func nodeHashInsert(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198687:13: */ var iHash int32 iHash = int32(nodeHash(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode)) @@ -202352,7 +204597,7 @@ func nodeHashInsert(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* testdata/ } // Remove node pNode from the node hash table. -func nodeHashDelete(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196576:13: */ +func nodeHashDelete(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198698:13: */ var pp uintptr if (*RtreeNode)(unsafe.Pointer(pNode)).FiNode != int64(0) { pp = pRtree + 192 + uintptr(nodeHash(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode))*8 @@ -202367,7 +204612,7 @@ func nodeHashDelete(tls *libc.TLS, pRtree uintptr, pNode uintptr) { /* testdata/ // indicating that node has not yet been assigned a node number. It is // assigned a node number when nodeWrite() is called to write the // node contents out to the database. -func nodeNew(tls *libc.TLS, pRtree uintptr, pParent uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196592:18: */ +func nodeNew(tls *libc.TLS, pRtree uintptr, pParent uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198714:18: */ var pNode uintptr pNode = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(RtreeNode{}))+uint64((*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize)) if pNode != 0 { @@ -202383,7 +204628,7 @@ func nodeNew(tls *libc.TLS, pRtree uintptr, pParent uintptr) uintptr { /* testda } // Clear the Rtree.pNodeBlob object -func nodeBlobReset(tls *libc.TLS, pRtree uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196610:13: */ +func nodeBlobReset(tls *libc.TLS, pRtree uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198732:13: */ if (*Rtree)(unsafe.Pointer(pRtree)).FpNodeBlob != 0 && int32((*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans) == 0 && (*Rtree)(unsafe.Pointer(pRtree)).FnCursor == U32(0) { var pBlob uintptr = (*Rtree)(unsafe.Pointer(pRtree)).FpNodeBlob (*Rtree)(unsafe.Pointer(pRtree)).FpNodeBlob = uintptr(0) @@ -202392,7 +204637,7 @@ func nodeBlobReset(tls *libc.TLS, pRtree uintptr) { /* testdata/sqlite-amalgamat } // Obtain a reference to an r-tree node. -func nodeAcquire(tls *libc.TLS, pRtree uintptr, iNode I64, pParent uintptr, ppNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196621:12: */ +func nodeAcquire(tls *libc.TLS, pRtree uintptr, iNode I64, pParent uintptr, ppNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198743:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -202424,11 +204669,11 @@ func nodeAcquire(tls *libc.TLS, pRtree uintptr, iNode I64, pParent uintptr, ppNo } } if (*Rtree)(unsafe.Pointer(pRtree)).FpNodeBlob == uintptr(0) { - var zTab uintptr = Xsqlite3_mprintf(tls, ts+26246, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzName)) + var zTab uintptr = Xsqlite3_mprintf(tls, ts+26211, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzName)) if zTab == uintptr(0) { return SQLITE_NOMEM } - rc = Xsqlite3_blob_open(tls, (*Rtree)(unsafe.Pointer(pRtree)).Fdb, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, zTab, ts+26254, iNode, 0, + rc = Xsqlite3_blob_open(tls, (*Rtree)(unsafe.Pointer(pRtree)).Fdb, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, zTab, ts+26219, iNode, 0, pRtree+112) Xsqlite3_free(tls, zTab) } @@ -202502,7 +204747,7 @@ func nodeAcquire(tls *libc.TLS, pRtree uintptr, iNode I64, pParent uintptr, ppNo } // Overwrite cell iCell of node pNode with the contents of pCell. -func nodeOverwriteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iCell int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196734:13: */ +func nodeOverwriteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iCell int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198856:13: */ var ii int32 var p uintptr = (*RtreeNode)(unsafe.Pointer(pNode)).FzData + uintptr(4+int32((*Rtree)(unsafe.Pointer(pRtree)).FnBytesPerCell)*iCell) p += uintptr(writeInt64(tls, p, (*RtreeCell)(unsafe.Pointer(pCell)).FiRowid)) @@ -202513,7 +204758,7 @@ func nodeOverwriteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintp } // Remove the cell with index iCell from node pNode. -func nodeDeleteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196752:13: */ +func nodeDeleteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198874:13: */ var pDst uintptr = (*RtreeNode)(unsafe.Pointer(pNode)).FzData + uintptr(4+int32((*Rtree)(unsafe.Pointer(pRtree)).FnBytesPerCell)*iCell) var pSrc uintptr = pDst + uintptr((*Rtree)(unsafe.Pointer(pRtree)).FnBytesPerCell) var nByte int32 = (readInt16(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FzData+2) - iCell - 1) * int32((*Rtree)(unsafe.Pointer(pRtree)).FnBytesPerCell) @@ -202526,7 +204771,7 @@ func nodeDeleteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32) { // is successful, return SQLITE_OK. // // If there is not enough free space in pNode, return SQLITE_FULL. -func nodeInsertCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196767:12: */ +func nodeInsertCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198889:12: */ var nCell int32 // Current number of cells in pNode var nMaxCell int32 // Maximum number of cells for pNode @@ -202543,7 +204788,7 @@ func nodeInsertCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) } // If the node is dirty, write it out to the database. -func nodeWrite(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196791:12: */ +func nodeWrite(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198913:12: */ var rc int32 = SQLITE_OK if (*RtreeNode)(unsafe.Pointer(pNode)).FisDirty != 0 { var p uintptr = (*Rtree)(unsafe.Pointer(pRtree)).FpWriteNode @@ -202567,7 +204812,7 @@ func nodeWrite(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata // Release a reference to a node. If the node is dirty and the reference // count drops to zero, the node data is written to the database. -func nodeRelease(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196817:12: */ +func nodeRelease(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198939:12: */ var rc int32 = SQLITE_OK if pNode != 0 { @@ -202593,19 +204838,19 @@ func nodeRelease(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testda // Return the 64-bit integer value associated with cell iCell of // node pNode. If pNode is a leaf node, this is a rowid. If it is // an internal node, then the 64-bit integer is a child page number. -func nodeGetRowid(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196846:12: */ +func nodeGetRowid(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198968:12: */ return readInt64(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FzData+uintptr(4+int32((*Rtree)(unsafe.Pointer(pRtree)).FnBytesPerCell)*iCell)) } // Return coordinate iCoord from cell iCell in node pNode. -func nodeGetCoord(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, iCoord int32, pCoord uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196858:13: */ +func nodeGetCoord(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, iCoord int32, pCoord uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198980:13: */ readCoord(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FzData+uintptr(12+int32((*Rtree)(unsafe.Pointer(pRtree)).FnBytesPerCell)*iCell+4*iCoord), pCoord) } // Deserialize cell iCell of node pNode. Populate the structure pointed // to by pCell with the results. -func nodeGetCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, pCell uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196872:13: */ +func nodeGetCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, pCell uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:198994:13: */ var pData uintptr var pCoord uintptr var ii int32 = 0 @@ -202621,23 +204866,23 @@ func nodeGetCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, pCel } // Rtree virtual table module xCreate method. -func rtreeCreate(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196903:12: */ +func rtreeCreate(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199025:12: */ return rtreeInit(tls, db, pAux, argc, argv, ppVtab, pzErr, 1) } // Rtree virtual table module xConnect method. -func rtreeConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196916:12: */ +func rtreeConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199038:12: */ return rtreeInit(tls, db, pAux, argc, argv, ppVtab, pzErr, 0) } // Increment the r-tree reference count. -func rtreeReference(tls *libc.TLS, pRtree uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196929:13: */ +func rtreeReference(tls *libc.TLS, pRtree uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199051:13: */ (*Rtree)(unsafe.Pointer(pRtree)).FnBusy++ } // Decrement the r-tree reference count. When the reference count reaches // zero the structure is deleted. -func rtreeRelease(tls *libc.TLS, pRtree uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196937:13: */ +func rtreeRelease(tls *libc.TLS, pRtree uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199059:13: */ (*Rtree)(unsafe.Pointer(pRtree)).FnBusy-- if (*Rtree)(unsafe.Pointer(pRtree)).FnBusy == U32(0) { (*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans = U8(0) @@ -202659,13 +204904,13 @@ func rtreeRelease(tls *libc.TLS, pRtree uintptr) { /* testdata/sqlite-amalgamati } // Rtree virtual table module xDisconnect method. -func rtreeDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196961:12: */ +func rtreeDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199083:12: */ rtreeRelease(tls, pVtab) return SQLITE_OK } // Rtree virtual table module xDestroy method. -func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196969:12: */ +func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199091:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -202673,7 +204918,7 @@ func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalg var rc int32 var zCreate uintptr = Xsqlite3_mprintf(tls, - ts+26259, + ts+26224, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName)) @@ -202692,7 +204937,7 @@ func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalg } // Rtree virtual table module xOpen method. -func rtreeOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:196997:12: */ +func rtreeOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199119:12: */ var rc int32 = SQLITE_NOMEM var pRtree uintptr = pVTab var pCsr uintptr @@ -202710,7 +204955,7 @@ func rtreeOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* testda } // Reset a cursor back to its initial state. -func resetCursor(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197018:13: */ +func resetCursor(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199140:13: */ var pRtree uintptr = (*RtreeCursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab var ii int32 var pStmt uintptr @@ -202740,7 +204985,7 @@ func resetCursor(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation- } // Rtree virtual table module xClose method. -func rtreeClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197046:12: */ +func rtreeClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199168:12: */ var pRtree uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab var pCsr uintptr = cur @@ -202756,7 +205001,7 @@ func rtreeClose(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamat // // Return non-zero if the cursor does not currently point to a valid // record (i.e if the scan has finished), or zero otherwise. -func rtreeEof(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197064:12: */ +func rtreeEof(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199186:12: */ var pCsr uintptr = cur return int32((*RtreeCursor)(unsafe.Pointer(pCsr)).FatEOF) } @@ -202773,7 +205018,7 @@ func rtreeEof(tls *libc.TLS, cur uintptr) int32 { /* testdata/sqlite-amalgamatio // Check the RTree node or entry given by pCellData and p against the MATCH // constraint pConstraint. -func rtreeCallbackConstraint(tls *libc.TLS, pConstraint uintptr, eInt int32, pCellData uintptr, pSearch uintptr, prScore uintptr, peWithin uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197119:12: */ +func rtreeCallbackConstraint(tls *libc.TLS, pConstraint uintptr, eInt int32, pCellData uintptr, pSearch uintptr, prScore uintptr, peWithin uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199241:12: */ bp := tls.Alloc(92) defer tls.Free(92) @@ -202885,7 +205130,7 @@ func rtreeCallbackConstraint(tls *libc.TLS, pConstraint uintptr, eInt int32, pCe // Check the internal RTree node given by pCellData against constraint p. // If this constraint cannot be satisfied by any child within the node, // set *peWithin to NOT_WITHIN. -func rtreeNonleafConstraint(tls *libc.TLS, p uintptr, eInt int32, pCellData uintptr, peWithin uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197195:13: */ +func rtreeNonleafConstraint(tls *libc.TLS, p uintptr, eInt int32, pCellData uintptr, peWithin uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199317:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -202983,7 +205228,7 @@ func rtreeNonleafConstraint(tls *libc.TLS, p uintptr, eInt int32, pCellData uint // // The op is given by p->op. The xN is p->iCoord-th coordinate in // pCellData. $val is given by p->u.rValue. -func rtreeLeafConstraint(tls *libc.TLS, p uintptr, eInt int32, pCellData uintptr, peWithin uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197252:13: */ +func rtreeLeafConstraint(tls *libc.TLS, p uintptr, eInt int32, pCellData uintptr, peWithin uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199374:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -203038,7 +205283,7 @@ func rtreeLeafConstraint(tls *libc.TLS, p uintptr, eInt int32, pCellData uintptr // One of the cells in node pNode is guaranteed to have a 64-bit // integer value equal to iRowid. Return the index of this cell. -func nodeRowidIndex(tls *libc.TLS, pRtree uintptr, pNode uintptr, iRowid I64, piIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197282:12: */ +func nodeRowidIndex(tls *libc.TLS, pRtree uintptr, pNode uintptr, iRowid I64, piIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199404:12: */ var ii int32 var nCell int32 = readInt16(tls, (*RtreeNode)(unsafe.Pointer(pNode)).FzData+2) @@ -203054,7 +205299,7 @@ func nodeRowidIndex(tls *libc.TLS, pRtree uintptr, pNode uintptr, iRowid I64, pi // Return the index of the cell containing a pointer to node pNode // in its parent. If pNode is the root node, return -1. -func nodeParentIndex(tls *libc.TLS, pRtree uintptr, pNode uintptr, piIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197305:12: */ +func nodeParentIndex(tls *libc.TLS, pRtree uintptr, pNode uintptr, piIndex uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199427:12: */ var pParent uintptr = (*RtreeNode)(unsafe.Pointer(pNode)).FpParent if pParent != 0 { return nodeRowidIndex(tls, pRtree, pParent, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode, piIndex) @@ -203073,7 +205318,7 @@ func nodeParentIndex(tls *libc.TLS, pRtree uintptr, pNode uintptr, piIndex uintp // iLevel values coming first. In this way, if rScore is the same for all // SearchPoints, then iLevel becomes the deciding factor and the result // is a depth-first search, which is the desired default behavior. -func rtreeSearchPointCompare(tls *libc.TLS, pA uintptr, pB uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197325:12: */ +func rtreeSearchPointCompare(tls *libc.TLS, pA uintptr, pB uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199447:12: */ if (*RtreeSearchPoint)(unsafe.Pointer(pA)).FrScore < (*RtreeSearchPoint)(unsafe.Pointer(pB)).FrScore { return -1 } @@ -203090,7 +205335,7 @@ func rtreeSearchPointCompare(tls *libc.TLS, pA uintptr, pB uintptr) int32 { /* t } // Interchange two search points in a cursor. -func rtreeSearchPointSwap(tls *libc.TLS, p uintptr, i int32, j int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197339:13: */ +func rtreeSearchPointSwap(tls *libc.TLS, p uintptr, i int32, j int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199461:13: */ var t = *(*RtreeSearchPoint)(unsafe.Pointer((*RtreeCursor)(unsafe.Pointer(p)).FaPoint + uintptr(i)*24)) *(*RtreeSearchPoint)(unsafe.Pointer((*RtreeCursor)(unsafe.Pointer(p)).FaPoint + uintptr(i)*24)) = *(*RtreeSearchPoint)(unsafe.Pointer((*RtreeCursor)(unsafe.Pointer(p)).FaPoint + uintptr(j)*24)) @@ -203110,7 +205355,7 @@ func rtreeSearchPointSwap(tls *libc.TLS, p uintptr, i int32, j int32) { /* testd } // Return the search point with the lowest current score. -func rtreeSearchPointFirst(tls *libc.TLS, pCur uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197360:25: */ +func rtreeSearchPointFirst(tls *libc.TLS, pCur uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199482:25: */ if (*RtreeCursor)(unsafe.Pointer(pCur)).FbPoint != 0 { return pCur + 64 } @@ -203121,7 +205366,7 @@ func rtreeSearchPointFirst(tls *libc.TLS, pCur uintptr) uintptr { /* testdata/sq } // Get the RtreeNode for the search point with the lowest score. -func rtreeNodeOfFirstSearchPoint(tls *libc.TLS, pCur uintptr, pRC uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197367:18: */ +func rtreeNodeOfFirstSearchPoint(tls *libc.TLS, pCur uintptr, pRC uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199489:18: */ var id Sqlite3_int64 var ii int32 = 1 - int32((*RtreeCursor)(unsafe.Pointer(pCur)).FbPoint) @@ -203138,7 +205383,7 @@ func rtreeNodeOfFirstSearchPoint(tls *libc.TLS, pCur uintptr, pRC uintptr) uintp } // Push a new element onto the priority queue -func rtreeEnqueue(tls *libc.TLS, pCur uintptr, rScore RtreeDValue, iLevel U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197383:25: */ +func rtreeEnqueue(tls *libc.TLS, pCur uintptr, rScore RtreeDValue, iLevel U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199505:25: */ var i int32 var j int32 var pNew uintptr @@ -203172,7 +205417,7 @@ func rtreeEnqueue(tls *libc.TLS, pCur uintptr, rScore RtreeDValue, iLevel U8) ui // Allocate a new RtreeSearchPoint and return a pointer to it. Return // NULL if malloc fails. -func rtreeSearchPointNew(tls *libc.TLS, pCur uintptr, rScore RtreeDValue, iLevel U8) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197418:25: */ +func rtreeSearchPointNew(tls *libc.TLS, pCur uintptr, rScore RtreeDValue, iLevel U8) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199540:25: */ var pNew uintptr var pFirst uintptr pFirst = rtreeSearchPointFirst(tls, pCur) @@ -203208,7 +205453,7 @@ func rtreeSearchPointNew(tls *libc.TLS, pCur uintptr, rScore RtreeDValue, iLevel } // Remove the search point with the lowest current score. -func rtreeSearchPointPop(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197486:13: */ +func rtreeSearchPointPop(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199608:13: */ var i int32 var j int32 var k int32 @@ -203256,7 +205501,7 @@ func rtreeSearchPointPop(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama // contains an entry suitable for returning as a result-set row, // or until the RtreeSearchPoint queue is empty, indicating that the // query has completed. -func rtreeStepToLeaf(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197534:12: */ +func rtreeStepToLeaf(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199656:12: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -203349,7 +205594,7 @@ func rtreeStepToLeaf(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-ama } // Rtree virtual table module xNext method. -func rtreeNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197615:12: */ +func rtreeNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199737:12: */ var pCsr uintptr = pVtabCursor var rc int32 = SQLITE_OK @@ -203365,7 +205610,7 @@ func rtreeNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* testdata/sqlite-am } // Rtree virtual table module xRowid method. -func rtreeRowid(tls *libc.TLS, pVtabCursor uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197633:12: */ +func rtreeRowid(tls *libc.TLS, pVtabCursor uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199755:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -203380,7 +205625,7 @@ func rtreeRowid(tls *libc.TLS, pVtabCursor uintptr, pRowid uintptr) int32 { /* t } // Rtree virtual table module xColumn method. -func rtreeColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197647:12: */ +func rtreeColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199769:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -203441,7 +205686,7 @@ func rtreeColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* te // return SQLITE_OK. If there is no such record in the table, set // *ppLeaf to 0 and return SQLITE_OK. If an error occurs, set *ppLeaf // to zero and return an SQLite error code. -func findLeafNode(tls *libc.TLS, pRtree uintptr, iRowid I64, ppLeaf uintptr, piNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197701:12: */ +func findLeafNode(tls *libc.TLS, pRtree uintptr, iRowid I64, ppLeaf uintptr, piNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199823:12: */ var rc int32 *(*uintptr)(unsafe.Pointer(ppLeaf)) = uintptr(0) Xsqlite3_bind_int64(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpReadRowid, 1, iRowid) @@ -203462,12 +205707,12 @@ func findLeafNode(tls *libc.TLS, pRtree uintptr, iRowid I64, ppLeaf uintptr, piN // as the second argument for a MATCH constraint. The value passed as the // first argument to this function is the right-hand operand to the MATCH // operator. -func deserializeGeometry(tls *libc.TLS, pValue uintptr, pCons uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197727:12: */ +func deserializeGeometry(tls *libc.TLS, pValue uintptr, pCons uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199849:12: */ var pBlob uintptr var pSrc uintptr // BLOB returned by geometry function var pInfo uintptr // Callback information - pSrc = Xsqlite3_value_pointer(tls, pValue, ts+26341) + pSrc = Xsqlite3_value_pointer(tls, pValue, ts+26306) if pSrc == uintptr(0) { return SQLITE_ERROR } @@ -203494,7 +205739,7 @@ func deserializeGeometry(tls *libc.TLS, pValue uintptr, pCons uintptr) int32 { / } // Rtree virtual table module xFilter method. -func rtreeFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197757:12: */ +func rtreeFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:199879:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -203609,11 +205854,11 @@ func rtreeFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt // table scan strategies to choose from (in order from most to // least desirable): // -// idxNum idxStr Strategy -// ------------------------------------------------ -// 1 Unused Direct lookup by rowid. -// 2 See below R-tree query or full-table scan. -// ------------------------------------------------ +// idxNum idxStr Strategy +// ------------------------------------------------ +// 1 Unused Direct lookup by rowid. +// 2 See below R-tree query or full-table scan. +// ------------------------------------------------ // // If strategy 1 is used, then idxStr is not meaningful. If strategy // 2 is used, idxStr is formatted to contain 2 bytes for each @@ -203624,20 +205869,20 @@ func rtreeFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt // The first of each pair of bytes in idxStr identifies the constraint // operator as follows: // -// Operator Byte Value -// ---------------------- -// = 0x41 ('A') -// <= 0x42 ('B') -// < 0x43 ('C') -// >= 0x44 ('D') -// > 0x45 ('E') -// MATCH 0x46 ('F') -// ---------------------- +// Operator Byte Value +// ---------------------- +// = 0x41 ('A') +// <= 0x42 ('B') +// < 0x43 ('C') +// >= 0x44 ('D') +// > 0x45 ('E') +// MATCH 0x46 ('F') +// ---------------------- // // The second of each pair of bytes identifies the coordinate column // to which the constraint applies. The leftmost coordinate column // is 'a', the second from the left 'b' etc. -func rtreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197910:12: */ +func rtreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200032:12: */ bp := tls.Alloc(49) defer tls.Free(49) @@ -203732,7 +205977,7 @@ func rtreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* tes (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = 2 (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FneedToFreeIdxStr = 1 - if iIdx > 0 && uintptr(0) == libc.AssignPtrUintptr(pIdxInfo+48, Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, bp+8))) { + if iIdx > 0 && uintptr(0) == libc.AssignPtrUintptr(pIdxInfo+48, Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, bp+8))) { return SQLITE_NOMEM } @@ -203744,7 +205989,7 @@ func rtreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* tes } // Return the N-dimensional volumn of the cell stored in *p. -func cellArea(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:197999:20: */ +func cellArea(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200121:20: */ var area RtreeDValue = RtreeDValue(1) if int32((*Rtree)(unsafe.Pointer(pRtree)).FeCoordType) == RTREE_COORD_REAL32 { @@ -203787,7 +206032,7 @@ func cellArea(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* testdat // Return the margin length of cell p. The margin length is the sum // of the objects size in each dimension. -func cellMargin(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198029:20: */ +func cellMargin(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200151:20: */ var margin RtreeDValue = RtreeDValue(0) var ii int32 = int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2) - 2 for __ccgo := true; __ccgo; __ccgo = ii >= 0 { @@ -203808,7 +206053,7 @@ func cellMargin(tls *libc.TLS, pRtree uintptr, p uintptr) RtreeDValue { /* testd } // Store the union of cells p1 and p2 in p1. -func cellUnion(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198042:13: */ +func cellUnion(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200164:13: */ var ii int32 = 0 if int32((*Rtree)(unsafe.Pointer(pRtree)).FeCoordType) == RTREE_COORD_REAL32 { for __ccgo := true; __ccgo; __ccgo = ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2) { @@ -203847,7 +206092,7 @@ func cellUnion(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) { /* testd // Return true if the area covered by p2 is a subset of the area covered // by p1. False otherwise. -func cellContains(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198063:12: */ +func cellContains(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200185:12: */ var ii int32 var isInt int32 = libc.Bool32(int32((*Rtree)(unsafe.Pointer(pRtree)).FeCoordType) == RTREE_COORD_INT32) for ii = 0; ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnDim2); ii = ii + 2 { @@ -203862,7 +206107,7 @@ func cellContains(tls *libc.TLS, pRtree uintptr, p1 uintptr, p2 uintptr) int32 { } // Return the amount cell p would grow by if it were unioned with pCell. -func cellGrowth(tls *libc.TLS, pRtree uintptr, p uintptr, pCell uintptr) RtreeDValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198081:20: */ +func cellGrowth(tls *libc.TLS, pRtree uintptr, p uintptr, pCell uintptr) RtreeDValue { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200203:20: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -203875,7 +206120,7 @@ func cellGrowth(tls *libc.TLS, pRtree uintptr, p uintptr, pCell uintptr) RtreeDV return cellArea(tls, pRtree, bp) - area } -func cellOverlap(tls *libc.TLS, pRtree uintptr, p uintptr, aCell uintptr, nCell int32) RtreeDValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198090:20: */ +func cellOverlap(tls *libc.TLS, pRtree uintptr, p uintptr, aCell uintptr, nCell int32) RtreeDValue { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200212:20: */ var ii int32 var overlap RtreeDValue = 0.0 for ii = 0; ii < nCell; ii++ { @@ -203950,7 +206195,7 @@ func cellOverlap(tls *libc.TLS, pRtree uintptr, p uintptr, aCell uintptr, nCell // This function implements the ChooseLeaf algorithm from Gutman[84]. // ChooseSubTree in r*tree terminology. -func sChooseLeaf(tls *libc.TLS, pRtree uintptr, pCell uintptr, iHeight int32, ppLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198122:12: */ +func sChooseLeaf(tls *libc.TLS, pRtree uintptr, pCell uintptr, iHeight int32, ppLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200244:12: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -204006,7 +206251,7 @@ func sChooseLeaf(tls *libc.TLS, pRtree uintptr, pCell uintptr, iHeight int32, pp // A cell with the same content as pCell has just been inserted into // the node pNode. This function updates the bounding box cells in // all ancestor elements. -func sAdjustTree(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198182:12: */ +func sAdjustTree(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200304:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -204042,7 +206287,7 @@ func sAdjustTree(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) in } // Write mapping (iRowid->iNode) to the <rtree>_rowid table. -func rowidWrite(tls *libc.TLS, pRtree uintptr, iRowid Sqlite3_int64, iNode Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198220:12: */ +func rowidWrite(tls *libc.TLS, pRtree uintptr, iRowid Sqlite3_int64, iNode Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200342:12: */ Xsqlite3_bind_int64(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteRowid, 1, iRowid) Xsqlite3_bind_int64(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteRowid, 2, iNode) Xsqlite3_step(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteRowid) @@ -204050,7 +206295,7 @@ func rowidWrite(tls *libc.TLS, pRtree uintptr, iRowid Sqlite3_int64, iNode Sqlit } // Write mapping (iNode->iPar) to the <rtree>_parent table. -func parentWrite(tls *libc.TLS, pRtree uintptr, iNode Sqlite3_int64, iPar Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198230:12: */ +func parentWrite(tls *libc.TLS, pRtree uintptr, iNode Sqlite3_int64, iPar Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200352:12: */ Xsqlite3_bind_int64(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteParent, 1, iNode) Xsqlite3_bind_int64(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteParent, 2, iPar) Xsqlite3_step(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteParent) @@ -204063,16 +206308,16 @@ func parentWrite(tls *libc.TLS, pRtree uintptr, iNode Sqlite3_int64, iPar Sqlite // in aIdx according to the indexed values in aDistance. For // example, assuming the inputs: // -// aIdx = { 0, 1, 2, 3 } -// aDistance = { 5.0, 2.0, 7.0, 6.0 } +// aIdx = { 0, 1, 2, 3 } +// aDistance = { 5.0, 2.0, 7.0, 6.0 } // // this function sets the aIdx array to contain: // -// aIdx = { 0, 1, 2, 3 } +// aIdx = { 0, 1, 2, 3 } // // The aSpare array is used as temporary working space by the // sorting algorithm. -func sSortByDistance(tls *libc.TLS, aIdx uintptr, nIdx int32, aDistance uintptr, aSpare uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198257:13: */ +func sSortByDistance(tls *libc.TLS, aIdx uintptr, nIdx int32, aDistance uintptr, aSpare uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200379:13: */ if nIdx > 1 { var iLeft int32 = 0 var iRight int32 = 0 @@ -204120,7 +206365,7 @@ func sSortByDistance(tls *libc.TLS, aIdx uintptr, nIdx int32, aDistance uintptr, // // The aSpare array is used as temporary working space by the // sorting algorithm. -func sSortByDimension(tls *libc.TLS, pRtree uintptr, aIdx uintptr, nIdx int32, iDim int32, aCell uintptr, aSpare uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198323:13: */ +func sSortByDimension(tls *libc.TLS, pRtree uintptr, aIdx uintptr, nIdx int32, iDim int32, aCell uintptr, aSpare uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200445:13: */ if nIdx > 1 { var iLeft int32 = 0 @@ -204176,7 +206421,7 @@ func sSortByDimension(tls *libc.TLS, pRtree uintptr, aIdx uintptr, nIdx int32, i } // Implementation of the R*-tree variant of SplitNode from Beckman[1990]. -func splitNodeStartree(tls *libc.TLS, pRtree uintptr, aCell uintptr, nCell int32, pLeft uintptr, pRight uintptr, pBboxLeft uintptr, pBboxRight uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198382:12: */ +func splitNodeStartree(tls *libc.TLS, pRtree uintptr, aCell uintptr, nCell int32, pLeft uintptr, pRight uintptr, pBboxLeft uintptr, pBboxRight uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200504:12: */ bp := tls.Alloc(96) defer tls.Free(96) @@ -204275,7 +206520,7 @@ func splitNodeStartree(tls *libc.TLS, pRtree uintptr, aCell uintptr, nCell int32 return SQLITE_OK } -func updateMapping(tls *libc.TLS, pRtree uintptr, iRowid I64, pNode uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198480:12: */ +func updateMapping(tls *libc.TLS, pRtree uintptr, iRowid I64, pNode uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200602:12: */ var xSetMapping uintptr xSetMapping = func() uintptr { if iHeight == 0 { @@ -204309,7 +206554,7 @@ func updateMapping(tls *libc.TLS, pRtree uintptr, iRowid I64, pNode uintptr, iHe })(unsafe.Pointer(&struct{ uintptr }{xSetMapping})).f(tls, pRtree, iRowid, (*RtreeNode)(unsafe.Pointer(pNode)).FiNode) } -func sSplitNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198504:12: */ +func sSplitNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200626:12: */ bp := tls.Alloc(100) defer tls.Free(100) @@ -204544,7 +206789,7 @@ splitnode_out: // rowid of the row to delete, which can be used to find the leaf on which // the entry resides (argument pLeaf). Once the leaf is located, this // function is called to determine its ancestry. -func fixLeafParent(tls *libc.TLS, pRtree uintptr, pLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198652:12: */ +func fixLeafParent(tls *libc.TLS, pRtree uintptr, pLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200774:12: */ var rc int32 = SQLITE_OK var pChild uintptr = pLeaf for rc == SQLITE_OK && (*RtreeNode)(unsafe.Pointer(pChild)).FiNode != int64(1) && (*RtreeNode)(unsafe.Pointer(pChild)).FpParent == uintptr(0) { @@ -204579,7 +206824,7 @@ func fixLeafParent(tls *libc.TLS, pRtree uintptr, pLeaf uintptr) int32 { /* test return rc } -func removeNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198687:12: */ +func removeNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200809:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -204629,7 +206874,7 @@ func removeNode(tls *libc.TLS, pRtree uintptr, pNode uintptr, iHeight int32) int return SQLITE_OK } -func fixBoundingBox(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198737:12: */ +func fixBoundingBox(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200859:12: */ bp := tls.Alloc(100) defer tls.Free(100) @@ -204660,7 +206905,7 @@ func fixBoundingBox(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* tes // Delete the cell at index iCell of node pNode. After removing the // cell, adjust the r-tree data structure if required. -func deleteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198764:12: */ +func deleteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200886:12: */ var pParent uintptr var rc int32 @@ -204689,7 +206934,7 @@ func deleteCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, iCell int32, iHeig return rc } -func sReinsert(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198795:12: */ +func sReinsert(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:200917:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -204804,7 +207049,7 @@ func sReinsert(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHei // Insert cell pCell into node pNode. Node pNode is the head of a // subtree iHeight high (leaf nodes have iHeight==0). -func rtreeInsertCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198900:12: */ +func rtreeInsertCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr, iHeight int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201022:12: */ var rc int32 = SQLITE_OK if iHeight > 0 { var pChild uintptr = nodeHashLookup(tls, pRtree, (*RtreeCell)(unsafe.Pointer(pCell)).FiRowid) @@ -204834,7 +207079,7 @@ func rtreeInsertCell(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr return rc } -func reinsertNodeContent(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198935:12: */ +func reinsertNodeContent(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201057:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -204865,7 +207110,7 @@ func reinsertNodeContent(tls *libc.TLS, pRtree uintptr, pNode uintptr) int32 { / } // Select a currently unused rowid for a new r-tree record. -func rtreeNewRowid(tls *libc.TLS, pRtree uintptr, piRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198964:12: */ +func rtreeNewRowid(tls *libc.TLS, pRtree uintptr, piRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201086:12: */ var rc int32 Xsqlite3_bind_null(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteRowid, 1) Xsqlite3_bind_null(tls, (*Rtree)(unsafe.Pointer(pRtree)).FpWriteRowid, 2) @@ -204876,7 +207121,7 @@ func rtreeNewRowid(tls *libc.TLS, pRtree uintptr, piRowid uintptr) int32 { /* te } // Remove the entry with rowid=iDelete from the r-tree structure. -func rtreeDeleteRowid(tls *libc.TLS, pRtree uintptr, iDelete Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:198977:12: */ +func rtreeDeleteRowid(tls *libc.TLS, pRtree uintptr, iDelete Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201099:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -204965,7 +207210,7 @@ func rtreeDeleteRowid(tls *libc.TLS, pRtree uintptr, iDelete Sqlite3_int64) int3 // Convert an sqlite3_value into an RtreeValue (presumably a float) // while taking care to round toward negative or positive, respectively. -func rtreeValueDown(tls *libc.TLS, v uintptr) RtreeValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199074:19: */ +func rtreeValueDown(tls *libc.TLS, v uintptr) RtreeValue { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201196:19: */ var d float64 = Xsqlite3_value_double(tls, v) var f float32 = float32(d) if float64(f) > d { @@ -204979,7 +207224,7 @@ func rtreeValueDown(tls *libc.TLS, v uintptr) RtreeValue { /* testdata/sqlite-am return f } -func rtreeValueUp(tls *libc.TLS, v uintptr) RtreeValue { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199082:19: */ +func rtreeValueUp(tls *libc.TLS, v uintptr) RtreeValue { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201204:19: */ var d float64 = Xsqlite3_value_double(tls, v) var f float32 = float32(d) if float64(f) < d { @@ -205004,7 +207249,7 @@ func rtreeValueUp(tls *libc.TLS, v uintptr) RtreeValue { /* testdata/sqlite-amal // (c1<=c2) constraint on columns iCol and iCol+1 that has failed. // // If an OOM occurs, SQLITE_NOMEM is returned instead of SQLITE_CONSTRAINT. -func rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199105:12: */ +func rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201227:12: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -205012,7 +207257,7 @@ func rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) int32 { /* var zSql uintptr var rc int32 - zSql = Xsqlite3_mprintf(tls, ts+26355, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName)) + zSql = Xsqlite3_mprintf(tls, ts+26320, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName)) if zSql != 0 { rc = Xsqlite3_prepare_v2(tls, (*Rtree)(unsafe.Pointer(pRtree)).Fdb, zSql, -1, bp+56, uintptr(0)) } else { @@ -205024,12 +207269,12 @@ func rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) int32 { /* if iCol == 0 { var zCol uintptr = Xsqlite3_column_name(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)), 0) (*Rtree)(unsafe.Pointer(pRtree)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, - ts+26375, libc.VaList(bp+16, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol)) + ts+26340, libc.VaList(bp+16, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol)) } else { var zCol1 uintptr = Xsqlite3_column_name(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)), iCol) var zCol2 uintptr = Xsqlite3_column_name(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)), iCol+1) (*Rtree)(unsafe.Pointer(pRtree)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, - ts+26407, libc.VaList(bp+32, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2)) + ts+26372, libc.VaList(bp+32, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2)) } } @@ -205043,7 +207288,7 @@ func rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) int32 { /* } // The xUpdate method for rtree module virtual tables. -func rtreeUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199143:12: */ +func rtreeUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201265:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -205272,7 +207517,7 @@ constraint: } // Called when a transaction starts. -func rtreeBeginTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199291:12: */ +func rtreeBeginTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201413:12: */ var pRtree uintptr = pVtab (*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans++ @@ -205281,7 +207526,7 @@ func rtreeBeginTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sql // Called when a transaction completes (either by COMMIT or ROLLBACK). // The sqlite3_blob object should be released at this point. -func rtreeEndTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199302:12: */ +func rtreeEndTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201424:12: */ var pRtree uintptr = pVtab (*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans = U8(0) nodeBlobReset(tls, pRtree) @@ -205289,7 +207534,7 @@ func rtreeEndTransaction(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlit } // The xRename method for rtree module virtual tables. -func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199312:12: */ +func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201434:12: */ bp := tls.Alloc(72) defer tls.Free(72) @@ -205297,7 +207542,7 @@ func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* test var rc int32 = SQLITE_NOMEM var zSql uintptr = Xsqlite3_mprintf(tls, - ts+26444, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zNewName, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zNewName, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zNewName)) + ts+26409, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zNewName, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zNewName, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zNewName)) if zSql != 0 { nodeBlobReset(tls, pRtree) rc = Xsqlite3_exec(tls, (*Rtree)(unsafe.Pointer(pRtree)).Fdb, zSql, uintptr(0), uintptr(0), uintptr(0)) @@ -205314,11 +207559,11 @@ func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* test // succeed if there are any open blob handles. i.e. if the blob handle were // not closed here, the following would fail: // -// BEGIN; -// INSERT INTO rtree... -// DROP TABLE <tablename>; -- Would fail with SQLITE_LOCKED -// COMMIT; -func rtreeSavepoint(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199345:12: */ +// BEGIN; +// INSERT INTO rtree... +// DROP TABLE <tablename>; -- Would fail with SQLITE_LOCKED +// COMMIT; +func rtreeSavepoint(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201467:12: */ var pRtree uintptr = pVtab var iwt U8 = (*Rtree)(unsafe.Pointer(pRtree)).FinWrTrans _ = iSavepoint @@ -205331,11 +207576,11 @@ func rtreeSavepoint(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* t // This function populates the pRtree->nRowEst variable with an estimate // of the number of rows in the virtual table. If possible, this is based // on sqlite_stat1 data. Otherwise, use RTREE_DEFAULT_ROWEST. -func rtreeQueryStat1(tls *libc.TLS, db uintptr, pRtree uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199360:12: */ +func rtreeQueryStat1(tls *libc.TLS, db uintptr, pRtree uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201482:12: */ bp := tls.Alloc(24) defer tls.Free(24) - var zFmt uintptr = ts + 26589 /* "SELECT stat FROM..." */ + var zFmt uintptr = ts + 26554 /* "SELECT stat FROM..." */ var zSql uintptr // var p uintptr at bp+16, 8 @@ -205343,7 +207588,7 @@ func rtreeQueryStat1(tls *libc.TLS, db uintptr, pRtree uintptr) int32 { /* testd var nRow I64 = int64(RTREE_MIN_ROWEST) rc = Xsqlite3_table_column_metadata(tls, - db, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, ts+12585, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0)) + db, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, ts+12624, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0)) if rc != SQLITE_OK { (*Rtree)(unsafe.Pointer(pRtree)).FnRowEst = int64(RTREE_DEFAULT_ROWEST) if rc == SQLITE_ERROR { @@ -205375,7 +207620,7 @@ func rtreeQueryStat1(tls *libc.TLS, db uintptr, pRtree uintptr) int32 { /* testd // Return true if zName is the extension on one of the shadow tables used // by this module. -func rtreeShadowName(tls *libc.TLS, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199394:12: */ +func rtreeShadowName(tls *libc.TLS, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201516:12: */ var i uint32 for i = uint32(0); uint64(i) < uint64(unsafe.Sizeof(azName1))/uint64(unsafe.Sizeof(uintptr(0))); i++ { if Xsqlite3_stricmp(tls, zName, azName1[i]) == 0 { @@ -205386,8 +207631,8 @@ func rtreeShadowName(tls *libc.TLS, zName uintptr) int32 { /* testdata/sqlite-am } var azName1 = [3]uintptr{ - ts + 26645, ts + 6363, ts + 17532, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199395:21 */ + ts + 26610, ts + 6398, ts + 17562, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201517:21 */ var rtreeModule = Sqlite3_module{ FiVersion: 3, // iVersion @@ -205411,9 +207656,9 @@ var rtreeModule = Sqlite3_module{ FxRename: 0, // xRename - rename the table FxSavepoint: 0, // xRollbackTo FxShadowName: 0, // xShadowName -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199405:23 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201527:23 */ -func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefix uintptr, isCreate int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199432:12: */ +func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefix uintptr, isCreate int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201554:12: */ bp := tls.Alloc(232) defer tls.Free(232) @@ -205430,19 +207675,19 @@ func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefi var p uintptr = Xsqlite3_str_new(tls, db) var ii int32 Xsqlite3_str_appendf(tls, p, - ts+26650, + ts+26615, libc.VaList(bp, zDb, zPrefix)) for ii = 0; ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnAux); ii++ { - Xsqlite3_str_appendf(tls, p, ts+26712, libc.VaList(bp+16, ii)) + Xsqlite3_str_appendf(tls, p, ts+26677, libc.VaList(bp+16, ii)) } Xsqlite3_str_appendf(tls, p, - ts+26717, + ts+26682, libc.VaList(bp+24, zDb, zPrefix)) Xsqlite3_str_appendf(tls, p, - ts+26781, + ts+26746, libc.VaList(bp+40, zDb, zPrefix)) Xsqlite3_str_appendf(tls, p, - ts+26851, + ts+26816, libc.VaList(bp+56, zDb, zPrefix, (*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize)) zCreate = Xsqlite3_str_finish(tls, p) if !(zCreate != 0) { @@ -205473,7 +207718,7 @@ func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefi } else { // An UPSERT is very slightly slower than REPLACE, but it is needed // if there are auxiliary columns - zFormat = ts + 26900 /* "INSERT INTO\"%w\"...." */ + zFormat = ts + 26865 /* "INSERT INTO\"%w\"...." */ } zSql = Xsqlite3_mprintf(tls, zFormat, libc.VaList(bp+80, zDb, zPrefix)) if zSql != 0 { @@ -205485,7 +207730,7 @@ func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefi } if (*Rtree)(unsafe.Pointer(pRtree)).FnAux != 0 { (*Rtree)(unsafe.Pointer(pRtree)).FzReadAuxSql = Xsqlite3_mprintf(tls, - ts+27008, + ts+26973, libc.VaList(bp+96, zDb, zPrefix)) if (*Rtree)(unsafe.Pointer(pRtree)).FzReadAuxSql == uintptr(0) { rc = SQLITE_NOMEM @@ -205493,18 +207738,18 @@ func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefi var p uintptr = Xsqlite3_str_new(tls, db) var ii int32 var zSql uintptr - Xsqlite3_str_appendf(tls, p, ts+27053, libc.VaList(bp+112, zDb, zPrefix)) + Xsqlite3_str_appendf(tls, p, ts+27018, libc.VaList(bp+112, zDb, zPrefix)) for ii = 0; ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnAux); ii++ { if ii != 0 { - Xsqlite3_str_append(tls, p, ts+14056, 1) + Xsqlite3_str_append(tls, p, ts+14095, 1) } if ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnAuxNotNull) { - Xsqlite3_str_appendf(tls, p, ts+27080, libc.VaList(bp+128, ii, ii+2, ii)) + Xsqlite3_str_appendf(tls, p, ts+27045, libc.VaList(bp+128, ii, ii+2, ii)) } else { - Xsqlite3_str_appendf(tls, p, ts+27102, libc.VaList(bp+152, ii, ii+2)) + Xsqlite3_str_appendf(tls, p, ts+27067, libc.VaList(bp+152, ii, ii+2)) } } - Xsqlite3_str_appendf(tls, p, ts+27110, 0) + Xsqlite3_str_appendf(tls, p, ts+27075, 0) zSql = Xsqlite3_str_finish(tls, p) if zSql == uintptr(0) { rc = SQLITE_NOMEM @@ -205520,24 +207765,24 @@ func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefi var azSql = [8]uintptr{ - ts + 27126, - ts + 27179, + ts + 27091, + ts + 27144, - ts + 27224, - ts + 27276, - ts + 27330, + ts + 27189, + ts + 27241, + ts + 27295, - ts + 27375, - ts + 27433, - ts + 27488, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199442:21 */ + ts + 27340, + ts + 27398, + ts + 27453, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201564:21 */ // The second argument to this function contains the text of an SQL statement // that returns a single integer value. The statement is compiled and executed // using database connection db. If successful, the integer value returned // is written to *piVal and SQLITE_OK returned. Otherwise, an SQLite error // code is returned and the value of *piVal after returning is not defined. -func getIntFromStmt(tls *libc.TLS, db uintptr, zSql uintptr, piVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199565:12: */ +func getIntFromStmt(tls *libc.TLS, db uintptr, zSql uintptr, piVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201687:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -205568,7 +207813,7 @@ func getIntFromStmt(tls *libc.TLS, db uintptr, zSql uintptr, piVal uintptr) int3 // This ensures that each node is stored on a single database page. If the // database page-size is so large that more than RTREE_MAXCELLS entries // would fit in a single node, use a smaller node-size. -func getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199595:12: */ +func getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201717:12: */ bp := tls.Alloc(52) defer tls.Free(52) @@ -205576,7 +207821,7 @@ func getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzEr var zSql uintptr if isCreate != 0 { *(*int32)(unsafe.Pointer(bp + 48 /* iPageSize */)) = 0 - zSql = Xsqlite3_mprintf(tls, ts+27535, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb)) + zSql = Xsqlite3_mprintf(tls, ts+27500, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb)) rc = getIntFromStmt(tls, db, zSql, bp+48) if rc == SQLITE_OK { (*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize = *(*int32)(unsafe.Pointer(bp + 48)) - 64 @@ -205584,19 +207829,19 @@ func getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzEr (*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize = 4 + int32((*Rtree)(unsafe.Pointer(pRtree)).FnBytesPerCell)*RTREE_MAXCELLS } } else { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+8, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+8, Xsqlite3_errmsg(tls, db))) } } else { zSql = Xsqlite3_mprintf(tls, - ts+27555, + ts+27520, libc.VaList(bp+16, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName)) rc = getIntFromStmt(tls, db, zSql, pRtree+32) if rc != SQLITE_OK { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+32, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+32, Xsqlite3_errmsg(tls, db))) } else if (*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize < 512-64 { rc = SQLITE_CORRUPT | int32(1)<<8 - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+27612, + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+27577, libc.VaList(bp+40, (*Rtree)(unsafe.Pointer(pRtree)).FzName)) } } @@ -205606,7 +207851,7 @@ func getNodeSize(tls *libc.TLS, db uintptr, pRtree uintptr, isCreate int32, pzEr } // Return the length of a token -func rtreeTokenLength(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199638:12: */ +func rtreeTokenLength(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201760:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -205617,11 +207862,11 @@ func rtreeTokenLength(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalg // This function is the implementation of both the xConnect and xCreate // methods of the r-tree virtual table. // -// argv[0] -> module name -// argv[1] -> database name -// argv[2] -> table name -// argv[...] -> column names... -func rtreeInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr, isCreate int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199652:12: */ +// argv[0] -> module name +// argv[1] -> database name +// argv[2] -> table name +// argv[...] -> column names... +func rtreeInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr, isCreate int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201774:12: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -205647,17 +207892,17 @@ func rtreeInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr ii = 4 *(*[5]uintptr)(unsafe.Pointer(bp + 96 /* aErrMsg */)) = [5]uintptr{ uintptr(0), // 0 - ts + 27647, + ts + 27612, + ts + 27655, ts + 27690, - ts + 27725, - ts + 27761, + ts + 27726, } // Aux columns counted by a u8 if !(argc < 6 || argc > RTREE_MAX_AUX_COLUMN+3) { goto __1 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(2+libc.Bool32(argc >= 6))*8)))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(2+libc.Bool32(argc >= 6))*8)))) return SQLITE_ERROR __1: ; @@ -205687,7 +207932,7 @@ __2: // that is successful, call sqlite3_declare_vtab() to configure // the r-tree table schema. pSql = Xsqlite3_str_new(tls, db) - Xsqlite3_str_appendf(tls, pSql, ts+27798, + Xsqlite3_str_appendf(tls, pSql, ts+27763, libc.VaList(bp+16, rtreeTokenLength(tls, *(*uintptr)(unsafe.Pointer(argv + 3*8))), *(*uintptr)(unsafe.Pointer(argv + 3*8)))) ii = 4 __3: @@ -205699,7 +207944,7 @@ __3: goto __6 } (*Rtree)(unsafe.Pointer(pRtree)).FnAux++ - Xsqlite3_str_appendf(tls, pSql, ts+27822, libc.VaList(bp+32, rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1))) + Xsqlite3_str_appendf(tls, pSql, ts+27787, libc.VaList(bp+32, rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1))) goto __7 __6: if !(int32((*Rtree)(unsafe.Pointer(pRtree)).FnAux) > 0) { @@ -205722,7 +207967,7 @@ __4: goto __5 __5: ; - Xsqlite3_str_appendf(tls, pSql, ts+27828, 0) + Xsqlite3_str_appendf(tls, pSql, ts+27793, 0) zSql = Xsqlite3_str_finish(tls, pSql) if !!(zSql != 0) { goto __10 @@ -205733,14 +207978,14 @@ __10: if !(ii < argc) { goto __12 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer(bp + 96 + 4*8)))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer(bp + 96 + 4*8)))) rc = SQLITE_ERROR goto __13 __12: if !(SQLITE_OK != libc.AssignInt32(&rc, Xsqlite3_declare_vtab(tls, db, zSql))) { goto __14 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+72, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+72, Xsqlite3_errmsg(tls, db))) __14: ; __13: @@ -205783,7 +208028,7 @@ __17: if !(iErr != 0) { goto __22 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+80, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(iErr)*8)))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+80, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(iErr)*8)))) goto rtreeInit_fail __22: ; @@ -205801,7 +208046,7 @@ __23: if !(rc != 0) { goto __24 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+88, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+88, Xsqlite3_errmsg(tls, db))) goto rtreeInit_fail __24: ; @@ -205821,7 +208066,7 @@ __25: return rc } -var azFormat = [2]uintptr{ts + 27831, ts + 27842} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199718:25 */ +var azFormat = [2]uintptr{ts + 27796, ts + 27807} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201840:25 */ // Implementation of a scalar function that decodes r-tree nodes to // human readable strings. This can be used for debugging and analysis. @@ -205831,13 +208076,13 @@ var azFormat = [2]uintptr{ts + 27831, ts + 27842} /* testdata/sqlite-amalgamatio // an r-tree node. For a two-dimensional r-tree structure called "rt", to // deserialize all nodes, a statement like: // -// SELECT rtreenode(2, data) FROM rt_node; +// SELECT rtreenode(2, data) FROM rt_node; // // The human readable string takes the form of a Tcl list with one // entry for each cell in the r-tree node. Each entry is itself a // list, containing the 8-byte rowid/pageno followed by the // <num-dimension>*2 coordinates. -func rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199789:13: */ +func rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201911:13: */ bp := tls.Alloc(1072) defer tls.Free(1072) @@ -205879,13 +208124,13 @@ func rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testd nodeGetCell(tls, bp+56, bp+16, ii, bp+1024) if ii > 0 { - Xsqlite3_str_append(tls, pOut, ts+12157, 1) + Xsqlite3_str_append(tls, pOut, ts+12196, 1) } - Xsqlite3_str_appendf(tls, pOut, ts+27852, libc.VaList(bp, (*RtreeCell)(unsafe.Pointer(bp+1024 /* &cell */)).FiRowid)) + Xsqlite3_str_appendf(tls, pOut, ts+27817, libc.VaList(bp, (*RtreeCell)(unsafe.Pointer(bp+1024 /* &cell */)).FiRowid)) for jj = 0; jj < int32((*Rtree)(unsafe.Pointer(bp+56 /* &tree */)).FnDim2); jj++ { - Xsqlite3_str_appendf(tls, pOut, ts+27858, libc.VaList(bp+8, float64(*(*RtreeValue)(unsafe.Pointer(bp + 1024 + 8 + uintptr(jj)*4))))) + Xsqlite3_str_appendf(tls, pOut, ts+27823, libc.VaList(bp+8, float64(*(*RtreeValue)(unsafe.Pointer(bp + 1024 + 8 + uintptr(jj)*4))))) } - Xsqlite3_str_append(tls, pOut, ts+27862, 1) + Xsqlite3_str_append(tls, pOut, ts+27827, 1) } errCode = Xsqlite3_str_errcode(tls, pOut) Xsqlite3_result_text(tls, ctx, Xsqlite3_str_finish(tls, pOut), -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free}))) @@ -205895,16 +208140,16 @@ func rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testd // This routine implements an SQL function that returns the "depth" parameter // from the front of a blob that is an r-tree node. For example: // -// SELECT rtreedepth(data) FROM rt_node WHERE nodeno=1; +// SELECT rtreedepth(data) FROM rt_node WHERE nodeno=1; // // The depth value is 0 for all nodes other than the root node, and the root // node always has nodeno=1, so the example above is the primary use for this // routine. This routine is intended for testing and analysis only. -func rtreedepth(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199841:13: */ +func rtreedepth(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201963:13: */ _ = nArg if Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apArg))) != SQLITE_BLOB || Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(apArg))) < 2 { - Xsqlite3_result_error(tls, ctx, ts+27864, -1) + Xsqlite3_result_error(tls, ctx, ts+27829, -1) } else { var zBlob uintptr = Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(apArg))) if zBlob != 0 { @@ -205932,15 +208177,15 @@ type RtreeCheck1 = struct { FzReport uintptr FnErr int32 F__ccgo_pad2 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199862:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201984:9 */ // Context object passed between the various routines that make up the // implementation of integrity-check function rtreecheck(). -type RtreeCheck = RtreeCheck1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199862:27 */ +type RtreeCheck = RtreeCheck1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201984:27 */ // Reset SQL statement pStmt. If the sqlite3_reset() call returns an error, // and RtreeCheck.rc==SQLITE_OK, set RtreeCheck.rc to the error code. -func rtreeCheckReset(tls *libc.TLS, pCheck uintptr, pStmt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199884:13: */ +func rtreeCheckReset(tls *libc.TLS, pCheck uintptr, pStmt uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202006:13: */ var rc int32 = Xsqlite3_reset(tls, pStmt) if (*RtreeCheck)(unsafe.Pointer(pCheck)).Frc == SQLITE_OK { (*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = rc @@ -205953,7 +208198,7 @@ func rtreeCheckReset(tls *libc.TLS, pCheck uintptr, pStmt uintptr) { /* testdata // // If successful, a pointer to the new SQL statement is returned. Otherwise, // NULL is returned and an error code left in RtreeCheck.rc. -func rtreeCheckPrepare(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199897:21: */ +func rtreeCheckPrepare(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202019:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -205981,7 +208226,7 @@ func rtreeCheckPrepare(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintptr) // The second and subsequent arguments to this function are a printf() // style format string and arguments. This function formats the string and // appends it to the report being accumuated in pCheck. -func rtreeCheckAppendMsg(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199926:13: */ +func rtreeCheckAppendMsg(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202048:13: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -205993,10 +208238,10 @@ func rtreeCheckAppendMsg(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintptr if z == uintptr(0) { (*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = SQLITE_NOMEM } else { - (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport = Xsqlite3_mprintf(tls, ts+27897, + (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport = Xsqlite3_mprintf(tls, ts+27862, libc.VaList(bp, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport, func() uintptr { if (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport != 0 { - return ts + 5365 /* "\n" */ + return ts + 5400 /* "\n" */ } return ts + 1524 /* "" */ }(), z)) @@ -206021,7 +208266,7 @@ func rtreeCheckAppendMsg(tls *libc.TLS, pCheck uintptr, zFmt uintptr, va uintptr // Or, if an error does occur, NULL is returned and an error code left // in the RtreeCheck object. The final value of *pnNode is undefined in // this case. -func rtreeCheckGetNode(tls *libc.TLS, pCheck uintptr, iNode I64, pnNode uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199960:11: */ +func rtreeCheckGetNode(tls *libc.TLS, pCheck uintptr, iNode I64, pnNode uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202082:11: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -206029,7 +208274,7 @@ func rtreeCheckGetNode(tls *libc.TLS, pCheck uintptr, iNode I64, pnNode uintptr) if (*RtreeCheck)(unsafe.Pointer(pCheck)).Frc == SQLITE_OK && (*RtreeCheck)(unsafe.Pointer(pCheck)).FpGetNode == uintptr(0) { (*RtreeCheck)(unsafe.Pointer(pCheck)).FpGetNode = rtreeCheckPrepare(tls, pCheck, - ts+27904, + ts+27869, libc.VaList(bp, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzTab)) } @@ -206048,7 +208293,7 @@ func rtreeCheckGetNode(tls *libc.TLS, pCheck uintptr, iNode I64, pnNode uintptr) } rtreeCheckReset(tls, pCheck, (*RtreeCheck)(unsafe.Pointer(pCheck)).FpGetNode) if (*RtreeCheck)(unsafe.Pointer(pCheck)).Frc == SQLITE_OK && pRet == uintptr(0) { - rtreeCheckAppendMsg(tls, pCheck, ts+27949, libc.VaList(bp+16, iNode)) + rtreeCheckAppendMsg(tls, pCheck, ts+27914, libc.VaList(bp+16, iNode)) } } @@ -206059,21 +208304,20 @@ func rtreeCheckGetNode(tls *libc.TLS, pCheck uintptr, iNode I64, pnNode uintptr) // (if bLeaf==1) table contains a specified entry. The schemas of the // two tables are: // -// CREATE TABLE %_parent(nodeno INTEGER PRIMARY KEY, parentnode INTEGER) -// CREATE TABLE %_rowid(rowid INTEGER PRIMARY KEY, nodeno INTEGER, ...) +// CREATE TABLE %_parent(nodeno INTEGER PRIMARY KEY, parentnode INTEGER) +// CREATE TABLE %_rowid(rowid INTEGER PRIMARY KEY, nodeno INTEGER, ...) // // In both cases, this function checks that there exists an entry with // IPK value iKey and the second column set to iVal. -// -func rtreeCheckMapping(tls *libc.TLS, pCheck uintptr, bLeaf int32, iKey I64, iVal I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200004:13: */ +func rtreeCheckMapping(tls *libc.TLS, pCheck uintptr, bLeaf int32, iKey I64, iVal I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202126:13: */ bp := tls.Alloc(96) defer tls.Free(96) var rc int32 var pStmt uintptr *(*[2]uintptr)(unsafe.Pointer(bp + 80 /* azSql */)) = [2]uintptr{ - ts + 27981, - ts + 28035, + ts + 27946, + ts + 28000, } if *(*uintptr)(unsafe.Pointer(pCheck + 40 + uintptr(bLeaf)*8)) == uintptr(0) { @@ -206088,23 +208332,23 @@ func rtreeCheckMapping(tls *libc.TLS, pCheck uintptr, bLeaf int32, iKey I64, iVa Xsqlite3_bind_int64(tls, pStmt, 1, iKey) rc = Xsqlite3_step(tls, pStmt) if rc == SQLITE_DONE { - rtreeCheckAppendMsg(tls, pCheck, ts+28083, + rtreeCheckAppendMsg(tls, pCheck, ts+28048, libc.VaList(bp+16, iKey, iVal, func() uintptr { if bLeaf != 0 { - return ts + 28128 /* "%_rowid" */ + return ts + 28093 /* "%_rowid" */ } - return ts + 28136 /* "%_parent" */ + return ts + 28101 /* "%_parent" */ }())) } else if rc == SQLITE_ROW { var ii I64 = Xsqlite3_column_int64(tls, pStmt, 0) if ii != iVal { rtreeCheckAppendMsg(tls, pCheck, - ts+28145, + ts+28110, libc.VaList(bp+40, iKey, ii, func() uintptr { if bLeaf != 0 { - return ts + 28128 /* "%_rowid" */ + return ts + 28093 /* "%_rowid" */ } - return ts + 28136 /* "%_parent" */ + return ts + 28101 /* "%_parent" */ }(), iKey, iVal)) } } @@ -206121,7 +208365,7 @@ func rtreeCheckMapping(tls *libc.TLS, pCheck uintptr, bLeaf int32, iKey I64, iVa // containing pCell. In this case it is also verified that the two // sets of coordinates are mutually consistent and an error message added // to the RtreeCheck object if they are not. -func rtreeCheckCellCoord(tls *libc.TLS, pCheck uintptr, iNode I64, iCell int32, pCell uintptr, pParent uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200056:13: */ +func rtreeCheckCellCoord(tls *libc.TLS, pCheck uintptr, iNode I64, iCell int32, pCell uintptr, pParent uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202178:13: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -206147,7 +208391,7 @@ func rtreeCheckCellCoord(tls *libc.TLS, pCheck uintptr, iNode I64, iCell int32, return libc.Bool32(*(*RtreeValue)(unsafe.Pointer(bp + 48)) > *(*RtreeValue)(unsafe.Pointer(bp + 52))) }() != 0 { rtreeCheckAppendMsg(tls, pCheck, - ts+28203, libc.VaList(bp, i, iCell, iNode)) + ts+28168, libc.VaList(bp, i, iCell, iNode)) } if pParent != 0 { @@ -206167,7 +208411,7 @@ func rtreeCheckCellCoord(tls *libc.TLS, pCheck uintptr, iNode I64, iCell int32, return libc.Bool32(*(*RtreeValue)(unsafe.Pointer(bp + 52)) > *(*RtreeValue)(unsafe.Pointer(bp + 60))) }() != 0 { rtreeCheckAppendMsg(tls, pCheck, - ts+28251, libc.VaList(bp+24, i, iCell, iNode)) + ts+28216, libc.VaList(bp+24, i, iCell, iNode)) } } } @@ -206179,7 +208423,7 @@ func rtreeCheckCellCoord(tls *libc.TLS, pCheck uintptr, iNode I64, iCell int32, // // If any problems are discovered, an error message is appended to the // report accumulated in the RtreeCheck object. -func rtreeCheckNode(tls *libc.TLS, pCheck uintptr, iDepth int32, aParent uintptr, iNode I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200102:13: */ +func rtreeCheckNode(tls *libc.TLS, pCheck uintptr, iDepth int32, aParent uintptr, iNode I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202224:13: */ bp := tls.Alloc(52) defer tls.Free(52) @@ -206190,14 +208434,14 @@ func rtreeCheckNode(tls *libc.TLS, pCheck uintptr, iDepth int32, aParent uintptr if aNode != 0 { if *(*int32)(unsafe.Pointer(bp + 48)) < 4 { rtreeCheckAppendMsg(tls, pCheck, - ts+28318, libc.VaList(bp, iNode, *(*int32)(unsafe.Pointer(bp + 48 /* nNode */)))) + ts+28283, libc.VaList(bp, iNode, *(*int32)(unsafe.Pointer(bp + 48 /* nNode */)))) } else { var nCell int32 // Number of cells on page var i int32 // Used to iterate through cells if aParent == uintptr(0) { iDepth = readInt16(tls, aNode) if iDepth > RTREE_MAX_DEPTH { - rtreeCheckAppendMsg(tls, pCheck, ts+28352, libc.VaList(bp+16, iDepth)) + rtreeCheckAppendMsg(tls, pCheck, ts+28317, libc.VaList(bp+16, iDepth)) Xsqlite3_free(tls, aNode) return } @@ -206205,7 +208449,7 @@ func rtreeCheckNode(tls *libc.TLS, pCheck uintptr, iDepth int32, aParent uintptr nCell = readInt16(tls, aNode+2) if 4+nCell*(8+(*RtreeCheck)(unsafe.Pointer(pCheck)).FnDim*2*4) > *(*int32)(unsafe.Pointer(bp + 48)) { rtreeCheckAppendMsg(tls, pCheck, - ts+28382, + ts+28347, libc.VaList(bp+24, iNode, nCell, *(*int32)(unsafe.Pointer(bp + 48 /* nNode */)))) } else { for i = 0; i < nCell; i++ { @@ -206233,20 +208477,20 @@ func rtreeCheckNode(tls *libc.TLS, pCheck uintptr, iDepth int32, aParent uintptr // %_rowid or %_parent table is exactly nExpect. If not, it adds // an error message to the report in the RtreeCheck object indicated // by the first argument. -func rtreeCheckCount(tls *libc.TLS, pCheck uintptr, zTbl uintptr, nExpect I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200165:13: */ +func rtreeCheckCount(tls *libc.TLS, pCheck uintptr, zTbl uintptr, nExpect I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202287:13: */ bp := tls.Alloc(48) defer tls.Free(48) if (*RtreeCheck)(unsafe.Pointer(pCheck)).Frc == SQLITE_OK { var pCount uintptr - pCount = rtreeCheckPrepare(tls, pCheck, ts+28437, + pCount = rtreeCheckPrepare(tls, pCheck, ts+28402, libc.VaList(bp, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzTab, zTbl)) if pCount != 0 { if Xsqlite3_step(tls, pCount) == SQLITE_ROW { var nActual I64 = Xsqlite3_column_int64(tls, pCount, 0) if nActual != nExpect { rtreeCheckAppendMsg(tls, pCheck, - ts+28468, libc.VaList(bp+24, zTbl, nExpect, nActual)) + ts+28433, libc.VaList(bp+24, zTbl, nExpect, nActual)) } } (*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = Xsqlite3_finalize(tls, pCount) @@ -206256,7 +208500,7 @@ func rtreeCheckCount(tls *libc.TLS, pCheck uintptr, zTbl uintptr, nExpect I64) { // This function does the bulk of the work for the rtree integrity-check. // It is called by rtreecheck(), which is the SQL function implementation. -func rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzReport uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200189:12: */ +func rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzReport uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202311:12: */ bp := tls.Alloc(120) defer tls.Free(120) @@ -206276,13 +208520,13 @@ func rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzRep // to ensure that the queries run as part of this integrity-check operate // on a consistent snapshot. if Xsqlite3_get_autocommit(tls, db) != 0 { - (*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).Frc = Xsqlite3_exec(tls, db, ts+15797, uintptr(0), uintptr(0), uintptr(0)) + (*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).Frc = Xsqlite3_exec(tls, db, ts+15836, uintptr(0), uintptr(0), uintptr(0)) bEnd = 1 } // Find the number of auxiliary columns if (*RtreeCheck)(unsafe.Pointer(bp+32)).Frc == SQLITE_OK { - pStmt = rtreeCheckPrepare(tls, bp+32, ts+28535, libc.VaList(bp, zDb, zTab)) + pStmt = rtreeCheckPrepare(tls, bp+32, ts+28500, libc.VaList(bp, zDb, zTab)) if pStmt != 0 { nAux = Xsqlite3_column_count(tls, pStmt) - 2 Xsqlite3_finalize(tls, pStmt) @@ -206292,12 +208536,12 @@ func rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzRep } // Find number of dimensions in the rtree table. - pStmt = rtreeCheckPrepare(tls, bp+32, ts+26355, libc.VaList(bp+16, zDb, zTab)) + pStmt = rtreeCheckPrepare(tls, bp+32, ts+26320, libc.VaList(bp+16, zDb, zTab)) if pStmt != 0 { var rc int32 (*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).FnDim = (Xsqlite3_column_count(tls, pStmt) - 1 - nAux) / 2 if (*RtreeCheck)(unsafe.Pointer(bp+32)).FnDim < 1 { - rtreeCheckAppendMsg(tls, bp+32, ts+28563, 0) + rtreeCheckAppendMsg(tls, bp+32, ts+28528, 0) } else if SQLITE_ROW == Xsqlite3_step(tls, pStmt) { (*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).FbInt = libc.Bool32(Xsqlite3_column_type(tls, pStmt, 1) == SQLITE_INTEGER) } @@ -206312,8 +208556,8 @@ func rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzRep if (*RtreeCheck)(unsafe.Pointer(bp+32)).Frc == SQLITE_OK { rtreeCheckNode(tls, bp+32, 0, uintptr(0), int64(1)) } - rtreeCheckCount(tls, bp+32, ts+28594, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnLeaf)) - rtreeCheckCount(tls, bp+32, ts+28601, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnNonLeaf)) + rtreeCheckCount(tls, bp+32, ts+28559, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnLeaf)) + rtreeCheckCount(tls, bp+32, ts+28566, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnNonLeaf)) } // Finalize SQL statements used by the integrity-check @@ -206323,7 +208567,7 @@ func rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzRep // If one was opened, close the transaction if bEnd != 0 { - var rc int32 = Xsqlite3_exec(tls, db, ts+28609, uintptr(0), uintptr(0), uintptr(0)) + var rc int32 = Xsqlite3_exec(tls, db, ts+28574, uintptr(0), uintptr(0), uintptr(0)) if (*RtreeCheck)(unsafe.Pointer(bp+32)).Frc == SQLITE_OK { (*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).Frc = rc } @@ -206334,42 +208578,42 @@ func rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzRep // Usage: // -// rtreecheck(<rtree-table>); -// rtreecheck(<database>, <rtree-table>); +// rtreecheck(<rtree-table>); +// rtreecheck(<database>, <rtree-table>); // // Invoking this SQL function runs an integrity-check on the named rtree // table. The integrity-check verifies the following: // -// 1. For each cell in the r-tree structure (%_node table), that: +// 1. For each cell in the r-tree structure (%_node table), that: // -// a) for each dimension, (coord1 <= coord2). +// a) for each dimension, (coord1 <= coord2). // -// b) unless the cell is on the root node, that the cell is bounded -// by the parent cell on the parent node. +// b) unless the cell is on the root node, that the cell is bounded +// by the parent cell on the parent node. // -// c) for leaf nodes, that there is an entry in the %_rowid -// table corresponding to the cell's rowid value that -// points to the correct node. +// c) for leaf nodes, that there is an entry in the %_rowid +// table corresponding to the cell's rowid value that +// points to the correct node. // -// d) for cells on non-leaf nodes, that there is an entry in the -// %_parent table mapping from the cell's child node to the -// node that it resides on. +// d) for cells on non-leaf nodes, that there is an entry in the +// %_parent table mapping from the cell's child node to the +// node that it resides on. // -// 2. That there are the same number of entries in the %_rowid table -// as there are leaf cells in the r-tree structure, and that there -// is a leaf cell that corresponds to each entry in the %_rowid table. +// 2. That there are the same number of entries in the %_rowid table +// as there are leaf cells in the r-tree structure, and that there +// is a leaf cell that corresponds to each entry in the %_rowid table. // -// 3. That there are the same number of entries in the %_parent table -// as there are non-leaf cells in the r-tree structure, and that -// there is a non-leaf cell that corresponds to each entry in the -// %_parent table. -func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200296:13: */ +// 3. That there are the same number of entries in the %_parent table +// as there are non-leaf cells in the r-tree structure, and that +// there is a non-leaf cell that corresponds to each entry in the +// %_parent table. +func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202418:13: */ bp := tls.Alloc(8) defer tls.Free(8) if nArg != 1 && nArg != 2 { Xsqlite3_result_error(tls, ctx, - ts+28613, -1) + ts+28578, -1) } else { var rc int32 *(*uintptr)(unsafe.Pointer(bp /* zReport */)) = uintptr(0) @@ -206377,7 +208621,7 @@ func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test var zTab uintptr if nArg == 1 { zTab = zDb - zDb = ts + 7684 /* "main" */ + zDb = ts + 7719 /* "main" */ } else { zTab = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apArg + 1*8))) } @@ -206387,7 +208631,7 @@ func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test if *(*uintptr)(unsafe.Pointer(bp)) != 0 { return *(*uintptr)(unsafe.Pointer(bp /* zReport */)) } - return ts + 19180 /* "ok" */ + return ts + 19210 /* "ok" */ }(), -1, libc.UintptrFromInt32(-1)) } else { Xsqlite3_result_error_code(tls, ctx, rc) @@ -206426,7 +208670,7 @@ func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test // Compiler and version // Datatype for coordinates -type GeoCoord = float32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200417:15 */ +type GeoCoord = float32 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202539:15 */ // Internal representation of a polygon. // @@ -206441,8 +208685,8 @@ type GeoCoord = float32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200417 // The on-disk representation consists of a 4-byte header followed by // the values. The 4-byte header is: // -// encoding (1 byte) 0=big-endian, 1=little-endian -// nvertex (3 bytes) Number of vertexes as a big-endian integer +// encoding (1 byte) 0=big-endian, 1=little-endian +// nvertex (3 bytes) Number of vertexes as a big-endian integer // // Enough space is allocated for 4 coordinates, to work around over-zealous // warnings coming from some compiler (notably, clang). In reality, the size @@ -206452,7 +208696,7 @@ type GeoPoly1 = struct { FnVertex int32 Fhdr [4]uint8 Fa [8]GeoCoord -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200441:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202563:9 */ // Internal representation of a polygon. // @@ -206467,14 +208711,14 @@ type GeoPoly1 = struct { // The on-disk representation consists of a 4-byte header followed by // the values. The 4-byte header is: // -// encoding (1 byte) 0=big-endian, 1=little-endian -// nvertex (3 bytes) Number of vertexes as a big-endian integer +// encoding (1 byte) 0=big-endian, 1=little-endian +// nvertex (3 bytes) Number of vertexes as a big-endian integer // // Enough space is allocated for 4 coordinates, to work around over-zealous // warnings coming from some compiler (notably, clang). In reality, the size // of each GeoPoly memory allocate is adjusted as necessary so that the // GeoPoly.a[] array at the end is the appropriate size. -type GeoPoly = GeoPoly1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200441:24 */ +type GeoPoly = GeoPoly1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202563:24 */ // The size of a memory allocation needed for a GeoPoly object sufficient // to hold N coordinate pairs. @@ -206491,7 +208735,7 @@ type GeoParse1 = struct { FnErr int32 F__ccgo_pad1 [4]byte Fa uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200464:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202586:9 */ // The size of a memory allocation needed for a GeoPoly object sufficient // to hold N coordinate pairs. @@ -206501,10 +208745,10 @@ type GeoParse1 = struct { // to silence (incorrect) UBSAN warnings if the array index is too large. // State of a parse of a GeoJSON input. -type GeoParse = GeoParse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200464:25 */ +type GeoParse = GeoParse1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202586:25 */ // Do a 4-byte byte swap -func geopolySwab32(tls *libc.TLS, a uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200474:13: */ +func geopolySwab32(tls *libc.TLS, a uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202596:13: */ var t uint8 = *(*uint8)(unsafe.Pointer(a)) *(*uint8)(unsafe.Pointer(a)) = *(*uint8)(unsafe.Pointer(a + 3)) *(*uint8)(unsafe.Pointer(a + 3)) = t @@ -206514,7 +208758,7 @@ func geopolySwab32(tls *libc.TLS, a uintptr) { /* testdata/sqlite-amalgamation-3 } // Skip whitespace. Return the next non-whitespace character. -func geopolySkipSpace(tls *libc.TLS, p uintptr) int8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200484:13: */ +func geopolySkipSpace(tls *libc.TLS, p uintptr) int8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202606:13: */ for jsonIsSpace[*(*uint8)(unsafe.Pointer((*GeoParse)(unsafe.Pointer(p)).Fz))] != 0 { (*GeoParse)(unsafe.Pointer(p)).Fz++ } @@ -206523,7 +208767,7 @@ func geopolySkipSpace(tls *libc.TLS, p uintptr) int8 { /* testdata/sqlite-amalga // Parse out a number. Write the value into *pVal if pVal!=0. // return non-zero on success and zero if the next token is not a number. -func geopolyParseNumber(tls *libc.TLS, p uintptr, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200492:12: */ +func geopolyParseNumber(tls *libc.TLS, p uintptr, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202614:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -206595,7 +208839,7 @@ func geopolyParseNumber(tls *libc.TLS, p uintptr, pVal uintptr) int32 { /* testd // that object. // // If any error occurs, return NULL. -func geopolyParseJson(tls *libc.TLS, z uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200550:16: */ +func geopolyParseJson(tls *libc.TLS, z uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202672:16: */ bp := tls.Alloc(36) defer tls.Free(36) @@ -206737,7 +208981,7 @@ __16: // in the binary format or JSON text. Compute a GeoPoly object and // return a pointer to that object. Or if the input is not a well-formed // polygon, put an error message in sqlite3_context and return NULL. -func geopolyFuncParam(tls *libc.TLS, pCtx uintptr, pVal uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200627:16: */ +func geopolyFuncParam(tls *libc.TLS, pCtx uintptr, pVal uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202749:16: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -206806,7 +209050,7 @@ func geopolyFuncParam(tls *libc.TLS, pCtx uintptr, pVal uintptr, pRc uintptr) ui // If the input is a well-formed Geopoly BLOB or JSON string // then return the BLOB representation of the polygon. Otherwise // return NULL. -func geopolyBlobFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200688:13: */ +func geopolyBlobFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202810:13: */ var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0)) if p != 0 { Xsqlite3_result_blob(tls, context, p+4, @@ -206819,7 +209063,7 @@ func geopolyBlobFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { // // Interpret X as a polygon and render it as a JSON array // of coordinates. Or, if X is not a valid polygon, return NULL. -func geopolyJsonFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200707:13: */ +func geopolyJsonFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202829:13: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -206828,11 +209072,11 @@ func geopolyJsonFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { var db uintptr = Xsqlite3_context_db_handle(tls, context) var x uintptr = Xsqlite3_str_new(tls, db) var i int32 - Xsqlite3_str_append(tls, x, ts+28664, 1) + Xsqlite3_str_append(tls, x, ts+28629, 1) for i = 0; i < (*GeoPoly)(unsafe.Pointer(p)).FnVertex; i++ { - Xsqlite3_str_appendf(tls, x, ts+28666, libc.VaList(bp, float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2)*4))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2+1)*4))))) + Xsqlite3_str_appendf(tls, x, ts+28631, libc.VaList(bp, float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2)*4))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2+1)*4))))) } - Xsqlite3_str_appendf(tls, x, ts+28677, libc.VaList(bp+16, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4))))) + Xsqlite3_str_appendf(tls, x, ts+28642, libc.VaList(bp+16, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4))))) Xsqlite3_result_text(tls, context, Xsqlite3_str_finish(tls, x), -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free}))) Xsqlite3_free(tls, p) } @@ -206842,7 +209086,7 @@ func geopolyJsonFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { // // Interpret X as a polygon and render it as a SVG <polyline>. // Additional arguments are added as attributes to the <polyline>. -func geopolySvgFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200733:13: */ +func geopolySvgFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202855:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -206856,19 +209100,19 @@ func geopolySvgFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { var x uintptr = Xsqlite3_str_new(tls, db) var i int32 var cSep int8 = int8('\'') - Xsqlite3_str_appendf(tls, x, ts+28688, 0) + Xsqlite3_str_appendf(tls, x, ts+28653, 0) for i = 0; i < (*GeoPoly)(unsafe.Pointer(p)).FnVertex; i++ { - Xsqlite3_str_appendf(tls, x, ts+28706, libc.VaList(bp, int32(cSep), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2)*4))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2+1)*4))))) + Xsqlite3_str_appendf(tls, x, ts+28671, libc.VaList(bp, int32(cSep), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2)*4))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + uintptr(i*2+1)*4))))) cSep = int8(' ') } - Xsqlite3_str_appendf(tls, x, ts+28714, libc.VaList(bp+24, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4))))) + Xsqlite3_str_appendf(tls, x, ts+28679, libc.VaList(bp+24, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4))))) for i = 1; i < argc; i++ { var z uintptr = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))) if z != 0 && *(*int8)(unsafe.Pointer(z)) != 0 { - Xsqlite3_str_appendf(tls, x, ts+28722, libc.VaList(bp+40, z)) + Xsqlite3_str_appendf(tls, x, ts+28687, libc.VaList(bp+40, z)) } } - Xsqlite3_str_appendf(tls, x, ts+28726, 0) + Xsqlite3_str_appendf(tls, x, ts+28691, 0) Xsqlite3_result_text(tls, context, Xsqlite3_str_finish(tls, x), -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free}))) Xsqlite3_free(tls, p) } @@ -206878,17 +209122,17 @@ func geopolySvgFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { // // Transform and/or translate a polygon as follows: // -// x1 = A*x0 + B*y0 + E -// y1 = C*x0 + D*y0 + F +// x1 = A*x0 + B*y0 + E +// y1 = C*x0 + D*y0 + F // // For a translation: // -// geopoly_xform(poly, 1, 0, 0, 1, x-offset, y-offset) +// geopoly_xform(poly, 1, 0, 0, 1, x-offset, y-offset) // // Rotate by R around the point (0,0): // -// geopoly_xform(poly, cos(R), sin(R), -sin(R), cos(R), 0, 0) -func geopolyXformFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200780:13: */ +// geopoly_xform(poly, cos(R), sin(R), -sin(R), cos(R), 0, 0) +func geopolyXformFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202902:13: */ var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0)) var A float64 = Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8))) var B float64 = Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv + 2*8))) @@ -206921,7 +209165,7 @@ func geopolyXformFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) // This routine can also be used to detect polygons that rotate in // the wrong direction. Polygons are suppose to be counter-clockwise (CCW). // This routine returns a negative value for clockwise (CW) polygons. -func geopolyArea(tls *libc.TLS, p uintptr) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200816:15: */ +func geopolyArea(tls *libc.TLS, p uintptr) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202938:15: */ var rArea float64 = 0.0 var ii int32 for ii = 0; ii < (*GeoPoly)(unsafe.Pointer(p)).FnVertex-1; ii++ { @@ -206941,7 +209185,7 @@ func geopolyArea(tls *libc.TLS, p uintptr) float64 { /* testdata/sqlite-amalgama // enclosed by the polygon. If the polygon circulates clockwise instead // of counterclockwise (as it should) then return the negative of the // enclosed area. Otherwise return NULL. -func geopolyAreaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200838:13: */ +func geopolyAreaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202960:13: */ var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0)) if p != 0 { Xsqlite3_result_double(tls, context, geopolyArea(tls, p)) @@ -206960,7 +209204,7 @@ func geopolyAreaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { // // Use this routine to sanitize historical inputs that that sometimes // contain polygons that wind in the wrong direction. -func geopolyCcwFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200863:13: */ +func geopolyCcwFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:202985:13: */ var p uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0)) if p != 0 { if geopolyArea(tls, p) < 0.0 { @@ -206996,7 +209240,7 @@ func geopolyCcwFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { } // Fast approximation for sine(X) for X between -0.5*pi and 2*pi -func geopolySine(tls *libc.TLS, r float64) float64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200891:15: */ +func geopolySine(tls *libc.TLS, r float64) float64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203013:15: */ if r >= float64(1.5)*3.1415926535897932385 { r = r - float64(2.0)*3.1415926535897932385 @@ -207016,7 +209260,7 @@ func geopolySine(tls *libc.TLS, r float64) float64 { /* testdata/sqlite-amalgama // // Construct a simple, convex, regular polygon centered at X, Y // with circumradius R and with N sides. -func geopolyRegularFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200912:13: */ +func geopolyRegularFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203034:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -207055,13 +209299,13 @@ func geopolyRegularFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr // If pPoly is a polygon, compute its bounding box. Then: // -// (1) if aCoord!=0 store the bounding box in aCoord, returning NULL -// (2) otherwise, compute a GeoPoly for the bounding box and return the -// new GeoPoly +// (1) if aCoord!=0 store the bounding box in aCoord, returning NULL +// (2) otherwise, compute a GeoPoly for the bounding box and return the +// new GeoPoly // // If pPoly is NULL but aCoord is not NULL, then compute a new GeoPoly from // the bounding box in aCoord and return a pointer to that GeoPoly. -func geopolyBBox(tls *libc.TLS, context uintptr, pPoly uintptr, aCoord uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:200955:16: */ +func geopolyBBox(tls *libc.TLS, context uintptr, pPoly uintptr, aCoord uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203077:16: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -207202,7 +209446,7 @@ __4: } // Implementation of the geopoly_bbox(X) SQL function. -func geopolyBBoxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201026:13: */ +func geopolyBBoxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203148:13: */ var p uintptr = geopolyBBox(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0), uintptr(0)) if p != 0 { Xsqlite3_result_blob(tls, context, p+4, @@ -207215,13 +209459,13 @@ func geopolyBBoxFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { type GeoBBox1 = struct { FisInit int32 Fa [4]RtreeCoord -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201042:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203164:9 */ // State vector for the geopoly_group_bbox() aggregate function. -type GeoBBox = GeoBBox1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201042:24 */ +type GeoBBox = GeoBBox1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203164:24 */ // Implementation of the geopoly_group_bbox(X) aggregate SQL function. -func geopolyBBoxStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201052:13: */ +func geopolyBBoxStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203174:13: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -207255,7 +209499,7 @@ func geopolyBBoxStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { } } -func geopolyBBoxFinal(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201075:13: */ +func geopolyBBoxFinal(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203197:13: */ var p uintptr var pBBox uintptr pBBox = Xsqlite3_aggregate_context(tls, context, 0) @@ -207273,16 +209517,16 @@ func geopolyBBoxFinal(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalg // Determine if point (x0,y0) is beneath line segment (x1,y1)->(x2,y2). // Returns: // -// +2 x0,y0 is on the line segement +// +2 x0,y0 is on the line segement // -// +1 x0,y0 is beneath line segment +// +1 x0,y0 is beneath line segment // -// 0 x0,y0 is not on or beneath the line segment or the line segment -// is vertical and x0,y0 is not on the line segment +// 0 x0,y0 is not on or beneath the line segment or the line segment +// is vertical and x0,y0 is not on the line segment // // The left-most coordinate min(x1,x2) is not considered to be part of // the line segment for the purposes of this analysis. -func pointBeneathLine(tls *libc.TLS, x0 float64, y0 float64, x1 float64, y1 float64, x2 float64, y2 float64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201105:12: */ +func pointBeneathLine(tls *libc.TLS, x0 float64, y0 float64, x1 float64, y1 float64, x2 float64, y2 float64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203227:12: */ var y float64 if x0 == x1 && y0 == y1 { return 2 @@ -207323,7 +209567,7 @@ func pointBeneathLine(tls *libc.TLS, x0 float64, y0 float64, x1 float64, y1 floa // Return +2 if point X,Y is within polygon P. // Return +1 if point X,Y is on the polygon boundary. // Return 0 if point X,Y is outside the polygon -func geopolyContainsPointFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201136:13: */ +func geopolyContainsPointFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203258:13: */ var p1 uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0)) var x0 float64 = Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8))) var y0 float64 = Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv + 2*8))) @@ -207360,8 +209604,7 @@ func geopolyContainsPointFunc(tls *libc.TLS, context uintptr, argc int32, argv u // Return +2 if P1 and P2 are the same polygon // Return +1 if P2 is contained within P1 // Return 0 if any part of P2 is on the outside of P1 -// -func geopolyWithinFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201179:13: */ +func geopolyWithinFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203301:13: */ var p1 uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0)) var p2 uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uintptr(0)) if p1 != 0 && p2 != 0 { @@ -207393,10 +209636,10 @@ type GeoEvent1 = struct { F__ccgo_pad1 [4]byte FpSeg uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201199:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203321:9 */ // Objects used by the overlap algorihm. -type GeoEvent = GeoEvent1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201199:25 */ +type GeoEvent = GeoEvent1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203321:25 */ type GeoSegment1 = struct { FC float64 FB float64 @@ -207407,20 +209650,20 @@ type GeoSegment1 = struct { Fidx uint32 F__ccgo_pad2 [4]byte FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201199:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203321:9 */ -type GeoSegment = GeoSegment1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201200:27 */ +type GeoSegment = GeoSegment1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203322:27 */ type GeoOverlap1 = struct { FaEvent uintptr FaSegment uintptr FnEvent int32 FnSegment int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201201:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203323:9 */ -type GeoOverlap = GeoOverlap1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201201:27 */ +type GeoOverlap = GeoOverlap1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203323:27 */ // Add a single segment and its associated events. -func geopolyAddOneSegment(tls *libc.TLS, p uintptr, x0 GeoCoord, y0 GeoCoord, x1 GeoCoord, y1 GeoCoord, side uint8, idx uint32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201226:13: */ +func geopolyAddOneSegment(tls *libc.TLS, p uintptr, x0 GeoCoord, y0 GeoCoord, x1 GeoCoord, y1 GeoCoord, side uint8, idx uint32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203348:13: */ var pSeg uintptr var pEvent uintptr if x0 == x1 { @@ -207454,7 +209697,7 @@ func geopolyAddOneSegment(tls *libc.TLS, p uintptr, x0 GeoCoord, y0 GeoCoord, x1 } // Insert all segments and events for polygon pPoly. -func geopolyAddSegments(tls *libc.TLS, p uintptr, pPoly uintptr, side uint8) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201270:13: */ +func geopolyAddSegments(tls *libc.TLS, p uintptr, pPoly uintptr, side uint8) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203392:13: */ var i uint32 var x uintptr for i = uint32(0); i < uint32((*GeoPoly)(unsafe.Pointer(pPoly)).FnVertex)-uint32(1); i++ { @@ -207466,7 +209709,7 @@ func geopolyAddSegments(tls *libc.TLS, p uintptr, pPoly uintptr, side uint8) { / } // Merge two lists of sorted events by X coordinate -func geopolyEventMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201288:17: */ +func geopolyEventMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203410:17: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -207496,7 +209739,7 @@ func geopolyEventMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { / } // Sort an array of nEvent event objects into a list. -func geopolySortEventsByX(tls *libc.TLS, aEvent uintptr, nEvent int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201310:17: */ +func geopolySortEventsByX(tls *libc.TLS, aEvent uintptr, nEvent int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203432:17: */ bp := tls.Alloc(400) defer tls.Free(400) @@ -207526,7 +209769,7 @@ func geopolySortEventsByX(tls *libc.TLS, aEvent uintptr, nEvent int32) uintptr { } // Merge two lists of sorted segments by Y, and then by C. -func geopolySegmentMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201335:19: */ +func geopolySegmentMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203457:19: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -207561,7 +209804,7 @@ func geopolySegmentMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { // Sort a list of GeoSegments in order of increasing Y and in the event of // a tie, increasing C (slope). -func geopolySortSegmentsByYAndC(tls *libc.TLS, pList uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201360:19: */ +func geopolySortSegmentsByYAndC(tls *libc.TLS, pList uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203482:19: */ bp := tls.Alloc(400) defer tls.Free(400) @@ -207591,7 +209834,7 @@ func geopolySortSegmentsByYAndC(tls *libc.TLS, pList uintptr) uintptr { /* testd } // Determine the overlap between two polygons -func geopolyOverlap(tls *libc.TLS, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201386:12: */ +func geopolyOverlap(tls *libc.TLS, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203508:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -207821,13 +210064,13 @@ geopolyOverlapDone: // // Determine whether or not P1 and P2 overlap. Return value: // -// 0 The two polygons are disjoint -// 1 They overlap -// 2 P1 is completely contained within P2 -// 3 P2 is completely contained within P1 -// 4 P1 and P2 are the same polygon -// NULL Either P1 or P2 or both are not valid polygons -func geopolyOverlapFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201509:13: */ +// 0 The two polygons are disjoint +// 1 They overlap +// 2 P1 is completely contained within P2 +// 3 P2 is completely contained within P1 +// 4 P1 and P2 are the same polygon +// NULL Either P1 or P2 or both are not valid polygons +func geopolyOverlapFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203631:13: */ var p1 uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv)), uintptr(0)) var p2 uintptr = geopolyFuncParam(tls, context, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uintptr(0)) if p1 != 0 && p2 != 0 { @@ -207843,17 +210086,17 @@ func geopolyOverlapFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr } // Enable or disable debugging output -func geopolyDebugFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201531:13: */ +func geopolyDebugFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203653:13: */ } // This function is the implementation of both the xConnect and xCreate // methods of the geopoly virtual table. // -// argv[0] -> module name -// argv[1] -> database name -// argv[2] -> table name -// argv[...] -> column names... -func geopolyInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr, isCreate int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201550:12: */ +// argv[0] -> module name +// argv[1] -> database name +// argv[2] -> table name +// argv[...] -> column names... +func geopolyInit(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr, isCreate int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203672:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -207893,7 +210136,7 @@ __1: // that is successful, call sqlite3_declare_vtab() to configure // the r-tree table schema. pSql = Xsqlite3_str_new(tls, db) - Xsqlite3_str_appendf(tls, pSql, ts+28739, 0) + Xsqlite3_str_appendf(tls, pSql, ts+28704, 0) (*Rtree)(unsafe.Pointer(pRtree)).FnAux = U8(1) // Add one for _shape (*Rtree)(unsafe.Pointer(pRtree)).FnAuxNotNull = U8(1) // The _shape column is always not-null ii = 3 @@ -207902,7 +210145,7 @@ __2: goto __4 } (*Rtree)(unsafe.Pointer(pRtree)).FnAux++ - Xsqlite3_str_appendf(tls, pSql, ts+28761, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8)))) + Xsqlite3_str_appendf(tls, pSql, ts+28726, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8)))) goto __3 __3: ii++ @@ -207910,7 +210153,7 @@ __3: goto __4 __4: ; - Xsqlite3_str_appendf(tls, pSql, ts+27828, 0) + Xsqlite3_str_appendf(tls, pSql, ts+27793, 0) zSql = Xsqlite3_str_finish(tls, pSql) if !!(zSql != 0) { goto __5 @@ -207921,7 +210164,7 @@ __5: if !(SQLITE_OK != libc.AssignInt32(&rc, Xsqlite3_declare_vtab(tls, db, zSql))) { goto __7 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+16, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+16, Xsqlite3_errmsg(tls, db))) __7: ; __6: @@ -207947,7 +210190,7 @@ __9: if !(rc != 0) { goto __10 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db))) goto geopolyInit_fail __10: ; @@ -207968,12 +210211,12 @@ __11: } // GEOPOLY virtual table module xCreate method. -func geopolyCreate(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201634:12: */ +func geopolyCreate(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203756:12: */ return geopolyInit(tls, db, pAux, argc, argv, ppVtab, pzErr, 1) } // GEOPOLY virtual table module xConnect method. -func geopolyConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201647:12: */ +func geopolyConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203769:12: */ return geopolyInit(tls, db, pAux, argc, argv, ppVtab, pzErr, 0) } @@ -207981,13 +210224,13 @@ func geopolyConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv ui // // Query plans: // -// 1 rowid lookup -// 2 search for objects overlapping the same bounding box -// that contains polygon argv[0] -// 3 search for objects overlapping the same bounding box -// that contains polygon argv[0] -// 4 full table scan -func geopolyFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201670:12: */ +// 1 rowid lookup +// 2 search for objects overlapping the same bounding box +// that contains polygon argv[0] +// 3 search for objects overlapping the same bounding box +// that contains polygon argv[0] +// 4 full table scan +func geopolyFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203792:12: */ bp := tls.Alloc(52) defer tls.Free(52) @@ -208147,14 +210390,14 @@ geopoly_filter_end: // table scan strategies to choose from (in order from most to // least desirable): // -// idxNum idxStr Strategy -// ------------------------------------------------ -// 1 "rowid" Direct lookup by rowid. -// 2 "rtree" R-tree overlap query using geopoly_overlap() -// 3 "rtree" R-tree within query using geopoly_within() -// 4 "fullscan" full-table scan. -// ------------------------------------------------ -func geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201802:12: */ +// idxNum idxStr Strategy +// ------------------------------------------------ +// 1 "rowid" Direct lookup by rowid. +// 2 "rtree" R-tree overlap query using geopoly_overlap() +// 3 "rtree" R-tree within query using geopoly_within() +// 4 "fullscan" full-table scan. +// ------------------------------------------------ +func geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203924:12: */ var ii int32 var iRowidTerm int32 = -1 var iFuncTerm int32 = -1 @@ -208180,7 +210423,7 @@ func geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* t if iRowidTerm >= 0 { (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = 1 - (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 17532 /* "rowid" */ + (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 17562 /* "rowid" */ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iRowidTerm)*8)).FargvIndex = 1 (*sqlite3_index_constraint_usage)(unsafe.Pointer((*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iRowidTerm)*8)).Fomit = uint8(1) (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = 30.0 @@ -208190,7 +210433,7 @@ func geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* t } if iFuncTerm >= 0 { (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = idxNum - (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 28765 /* "rtree" */ + (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 28730 /* "rtree" */ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iFuncTerm)*8)).FargvIndex = 1 (*sqlite3_index_constraint_usage)(unsafe.Pointer((*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iFuncTerm)*8)).Fomit = uint8(0) (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = 300.0 @@ -208198,14 +210441,14 @@ func geopolyBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* t return SQLITE_OK } (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = 4 - (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 28771 /* "fullscan" */ + (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 28736 /* "fullscan" */ (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = 3000000.0 (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedRows = int64(100000) return SQLITE_OK } // GEOPOLY virtual table module xColumn method. -func geopolyColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201854:12: */ +func geopolyColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:203976:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -208255,22 +210498,22 @@ func geopolyColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* // // For DELETE: // -// argv[0] = the rowid to be deleted +// argv[0] = the rowid to be deleted // // For INSERT: // -// argv[0] = SQL NULL -// argv[1] = rowid to insert, or an SQL NULL to select automatically -// argv[2] = _shape column -// argv[3] = first application-defined column.... +// argv[0] = SQL NULL +// argv[1] = rowid to insert, or an SQL NULL to select automatically +// argv[2] = _shape column +// argv[3] = first application-defined column.... // // For UPDATE: // -// argv[0] = rowid to modify. Never NULL -// argv[1] = rowid after the change. Never NULL -// argv[2] = new value for _shape -// argv[3] = new value for first application-defined column.... -func geopolyUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:201909:12: */ +// argv[0] = rowid to modify. Never NULL +// argv[1] = rowid after the change. Never NULL +// argv[2] = new value for _shape +// argv[3] = new value for first application-defined column.... +func geopolyUpdate(tls *libc.TLS, pVtab uintptr, nData int32, aData uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204031:12: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -208337,7 +210580,7 @@ __1: if !(*(*int32)(unsafe.Pointer(bp + 48)) == SQLITE_ERROR) { goto __4 } - (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+28780, 0) + (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+28745, 0) __4: ; goto geopoly_update_end @@ -208481,15 +210724,15 @@ geopoly_update_end: // Report that geopoly_overlap() is an overloaded function suitable // for use in xBestIndex. -func geopolyFindFunction(tls *libc.TLS, pVtab uintptr, nArg int32, zName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202046:12: */ - if Xsqlite3_stricmp(tls, zName, ts+28820) == 0 { +func geopolyFindFunction(tls *libc.TLS, pVtab uintptr, nArg int32, zName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204168:12: */ + if Xsqlite3_stricmp(tls, zName, ts+28785) == 0 { *(*uintptr)(unsafe.Pointer(pxFunc)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{geopolyOverlapFunc})) *(*uintptr)(unsafe.Pointer(ppArg)) = uintptr(0) return SQLITE_INDEX_CONSTRAINT_FUNCTION } - if Xsqlite3_stricmp(tls, zName, ts+28836) == 0 { + if Xsqlite3_stricmp(tls, zName, ts+28801) == 0 { *(*uintptr)(unsafe.Pointer(pxFunc)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{geopolyWithinFunc})) @@ -208522,9 +210765,9 @@ var geopolyModule = Sqlite3_module{ FxRename: 0, // xRename - rename the table FxSavepoint: 0, // xRollbackTo FxShadowName: 0, // xShadowName -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202067:23 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204189:23 */ -func sqlite3_geopoly_init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202094:12: */ +func sqlite3_geopoly_init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204216:12: */ var rc int32 = SQLITE_OK var i int32 for i = 0; uint64(i) < uint64(unsafe.Sizeof(aFunc))/uint64(unsafe.Sizeof(struct { @@ -208554,7 +210797,7 @@ func sqlite3_geopoly_init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite- uintptr(0), aAgg[i].FxStep, aAgg[i].FxFinal) } if rc == SQLITE_OK { - rc = Xsqlite3_create_module_v2(tls, db, ts+28851, uintptr(unsafe.Pointer(&geopolyModule)), uintptr(0), uintptr(0)) + rc = Xsqlite3_create_module_v2(tls, db, ts+28816, uintptr(unsafe.Pointer(&geopolyModule)), uintptr(0), uintptr(0)) } return rc } @@ -208566,26 +210809,26 @@ var aFunc = [12]struct { F__ccgo_pad1 [6]byte FzName uintptr }{ - {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28859 /* "geopoly_area" */}, - {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28872 /* "geopoly_blob" */}, - {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28885 /* "geopoly_json" */}, - {FxFunc: 0, FnArg: int8(-1), FbPure: uint8(1), FzName: ts + 28898 /* "geopoly_svg" */}, - {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 28836 /* "geopoly_within" */}, - {FxFunc: 0, FnArg: int8(3), FbPure: uint8(1), FzName: ts + 28910 /* "geopoly_contains..." */}, - {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 28820 /* "geopoly_overlap" */}, - {FxFunc: 0, FnArg: int8(1), FzName: ts + 28933 /* "geopoly_debug" */}, - {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28947 /* "geopoly_bbox" */}, - {FxFunc: 0, FnArg: int8(7), FbPure: uint8(1), FzName: ts + 28960 /* "geopoly_xform" */}, - {FxFunc: 0, FnArg: int8(4), FbPure: uint8(1), FzName: ts + 28974 /* "geopoly_regular" */}, - {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28990 /* "geopoly_ccw" */}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202101:5 */ + {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28824 /* "geopoly_area" */}, + {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28837 /* "geopoly_blob" */}, + {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28850 /* "geopoly_json" */}, + {FxFunc: 0, FnArg: int8(-1), FbPure: uint8(1), FzName: ts + 28863 /* "geopoly_svg" */}, + {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 28801 /* "geopoly_within" */}, + {FxFunc: 0, FnArg: int8(3), FbPure: uint8(1), FzName: ts + 28875 /* "geopoly_contains..." */}, + {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 28785 /* "geopoly_overlap" */}, + {FxFunc: 0, FnArg: int8(1), FzName: ts + 28898 /* "geopoly_debug" */}, + {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28912 /* "geopoly_bbox" */}, + {FxFunc: 0, FnArg: int8(7), FbPure: uint8(1), FzName: ts + 28925 /* "geopoly_xform" */}, + {FxFunc: 0, FnArg: int8(4), FbPure: uint8(1), FzName: ts + 28939 /* "geopoly_regular" */}, + {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 28955 /* "geopoly_ccw" */}, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204223:5 */ var aAgg = [1]struct { FxStep uintptr FxFinal uintptr FzName uintptr }{ - {FxStep: 0, FxFinal: 0, FzName: ts + 29002 /* "geopoly_group_bb..." */}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202119:5 */ + {FxStep: 0, FxFinal: 0, FzName: ts + 28967 /* "geopoly_group_bb..." */}, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204241:5 */ //************* End of geopoly.c ******************************************** //************* Continuing where we left off in rtree.c ********************* @@ -208593,30 +210836,30 @@ var aAgg = [1]struct { // Register the r-tree module with database handle db. This creates the // virtual table module "rtree" and the debugging/analysis scalar // function "rtreenode". -func Xsqlite3RtreeInit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202154:20: */ +func Xsqlite3RtreeInit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204276:20: */ var utf8 int32 = SQLITE_UTF8 var rc int32 - rc = Xsqlite3_create_function(tls, db, ts+29021, 2, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + rc = Xsqlite3_create_function(tls, db, ts+28986, 2, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{rtreenode})), uintptr(0), uintptr(0)) if rc == SQLITE_OK { - rc = Xsqlite3_create_function(tls, db, ts+29031, 1, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + rc = Xsqlite3_create_function(tls, db, ts+28996, 1, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{rtreedepth})), uintptr(0), uintptr(0)) } if rc == SQLITE_OK { - rc = Xsqlite3_create_function(tls, db, ts+29042, -1, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + rc = Xsqlite3_create_function(tls, db, ts+29007, -1, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{rtreecheck})), uintptr(0), uintptr(0)) } if rc == SQLITE_OK { var c uintptr = uintptr(RTREE_COORD_REAL32) - rc = Xsqlite3_create_module_v2(tls, db, ts+28765, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0)) + rc = Xsqlite3_create_module_v2(tls, db, ts+28730, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0)) } if rc == SQLITE_OK { var c uintptr = uintptr(RTREE_COORD_INT32) - rc = Xsqlite3_create_module_v2(tls, db, ts+29053, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0)) + rc = Xsqlite3_create_module_v2(tls, db, ts+29018, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0)) } if rc == SQLITE_OK { rc = sqlite3_geopoly_init(tls, db) @@ -208630,7 +210873,7 @@ func Xsqlite3RtreeInit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-ama // or sqlite3_rtree_query_callback(). In other words, this routine is the // destructor for an RtreeGeomCallback objecct. This routine is called when // the corresponding SQL function is deleted. -func rtreeFreeCallback(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202193:13: */ +func rtreeFreeCallback(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204315:13: */ var pInfo uintptr = p if (*RtreeGeomCallback)(unsafe.Pointer(pInfo)).FxDestructor != 0 { (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*RtreeGeomCallback)(unsafe.Pointer(pInfo)).FxDestructor})).f(tls, (*RtreeGeomCallback)(unsafe.Pointer(pInfo)).FpContext) @@ -208639,7 +210882,7 @@ func rtreeFreeCallback(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamati } // This routine frees the BLOB that is returned by geomCallback(). -func rtreeMatchArgFree(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202202:13: */ +func rtreeMatchArgFree(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204324:13: */ var i int32 var p uintptr = pArg for i = 0; i < (*RtreeMatchArg)(unsafe.Pointer(p)).FnParam; i++ { @@ -208660,7 +210903,7 @@ func rtreeMatchArgFree(tls *libc.TLS, pArg uintptr) { /* testdata/sqlite-amalgam // The R-Tree MATCH operator will read the returned BLOB, deserialize // the RtreeMatchArg object, and use the RtreeMatchArg object to figure // out which elements of the R-Tree should be returned by the query. -func geomCallback(tls *libc.TLS, ctx uintptr, nArg int32, aArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202225:13: */ +func geomCallback(tls *libc.TLS, ctx uintptr, nArg int32, aArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204347:13: */ var pGeomCtx uintptr = Xsqlite3_user_data(tls, ctx) var pBlob uintptr var nBlob Sqlite3_int64 @@ -208688,13 +210931,13 @@ func geomCallback(tls *libc.TLS, ctx uintptr, nArg int32, aArg uintptr) { /* tes Xsqlite3_result_error_nomem(tls, ctx) rtreeMatchArgFree(tls, pBlob) } else { - Xsqlite3_result_pointer(tls, ctx, pBlob, ts+26341, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{rtreeMatchArgFree}))) + Xsqlite3_result_pointer(tls, ctx, pBlob, ts+26306, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{rtreeMatchArgFree}))) } } } // Register a new geometry function for use with the r-tree MATCH operator. -func Xsqlite3_rtree_geometry_callback(tls *libc.TLS, db uintptr, zGeom uintptr, xGeom uintptr, pContext uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202263:16: */ +func Xsqlite3_rtree_geometry_callback(tls *libc.TLS, db uintptr, zGeom uintptr, xGeom uintptr, pContext uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204385:16: */ var pGeomCtx uintptr // Context object for new user-function // Allocate and populate the context object. @@ -208714,7 +210957,7 @@ func Xsqlite3_rtree_geometry_callback(tls *libc.TLS, db uintptr, zGeom uintptr, // Register a new 2nd-generation geometry function for use with the // r-tree MATCH operator. -func Xsqlite3_rtree_query_callback(tls *libc.TLS, db uintptr, zQueryFunc uintptr, xQueryFunc uintptr, pContext uintptr, xDestructor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202287:16: */ +func Xsqlite3_rtree_query_callback(tls *libc.TLS, db uintptr, zQueryFunc uintptr, xQueryFunc uintptr, pContext uintptr, xDestructor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204409:16: */ var pGeomCtx uintptr // Context object for new user-function // Allocate and populate the context object. @@ -209170,7 +211413,7 @@ type sqlite3rbu = struct { FnRbu int32 F__ccgo_pad6 [4]byte FpRbuFd uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:205639:9 */ //************* End of rtree.c ********************************************** //************* Begin file icu.c ******************************************** @@ -209571,7 +211814,7 @@ type sqlite3rbu = struct { // #include "sqlite3.h" ** Required for error code definitions ** -type Sqlite3rbu = sqlite3rbu /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:27 */ +type Sqlite3rbu = sqlite3rbu /* testdata/sqlite-amalgamation-3390200/sqlite3.c:205639:27 */ //************* End of sqlite3rbu.h ***************************************** //************* Continuing where we left off in sqlite3rbu.c **************** @@ -209636,7 +211879,7 @@ type Sqlite3rbu = sqlite3rbu /* testdata/sqlite-amalgamation-3380500/sqlite3.c:2 type RbuFrame1 = struct { FiDbPage U32 FiWalFrame U32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:205639:9 */ //************* End of sqlite3rbu.h ***************************************** //************* Continuing where we left off in sqlite3rbu.c **************** @@ -209698,7 +211941,7 @@ type RbuFrame1 = struct { // Only valid if STAGE==1. The RBU database name of the table // currently being read. -type RbuFrame = RbuFrame1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203948:25 */ +type RbuFrame = RbuFrame1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206070:25 */ type RbuObjIter1 = struct { FpTblIter uintptr FpIdxIter uintptr @@ -209730,9 +211973,9 @@ type RbuObjIter1 = struct { FaIdxCol uintptr FzIdxSql uintptr FpRbuUpdate uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:205639:9 */ -type RbuObjIter = RbuObjIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203949:27 */ +type RbuObjIter = RbuObjIter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206071:27 */ type RbuState1 = struct { FeStage int32 F__ccgo_pad1 [4]byte @@ -209747,16 +211990,16 @@ type RbuState1 = struct { F__ccgo_pad3 [4]byte FiOalSz I64 FnPhaseOneStep I64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203950:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206072:9 */ -type RbuState = RbuState1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203950:25 */ +type RbuState = RbuState1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206072:25 */ type RbuSpan1 = struct { FzSpan uintptr FnSpan int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:205639:9 */ -type RbuSpan = RbuSpan1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203951:24 */ +type RbuSpan = RbuSpan1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206073:24 */ type rbu_vfs = struct { Fbase Sqlite3_vfs FpRealVfs uintptr @@ -209764,9 +212007,9 @@ type rbu_vfs = struct { FpRbu uintptr FpMain uintptr FpMainRbu uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:205639:9 */ -type Rbu_vfs = rbu_vfs /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203952:24 */ +type Rbu_vfs = rbu_vfs /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206074:24 */ type rbu_file = struct { Fbase Sqlite3_file FpReal uintptr @@ -209785,16 +212028,16 @@ type rbu_file = struct { FpWalFd uintptr FpMainNext uintptr FpMainRbuNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:205639:9 */ -type Rbu_file = rbu_file /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203953:25 */ +type Rbu_file = rbu_file /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206075:25 */ type RbuUpdateStmt1 = struct { FzMask uintptr FpUpdate uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203517:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:205639:9 */ -type RbuUpdateStmt = RbuUpdateStmt1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:203954:30 */ +type RbuUpdateStmt = RbuUpdateStmt1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206076:30 */ // True for an RBU vacuum handle, or false otherwise. @@ -209813,7 +212056,7 @@ type RbuUpdateStmt = RbuUpdateStmt1 /* testdata/sqlite-amalgamation-3380500/sqli // finished, leave *pz pointing to the first character past the end of // the integer. The *pLen parameter holds the length of the string // in *pz and is decremented once for each character in the integer. -func rbuDeltaGetInt(tls *libc.TLS, pz uintptr, pLen uintptr) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204244:21: */ +func rbuDeltaGetInt(tls *libc.TLS, pz uintptr, pLen uintptr) uint32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206366:21: */ var v uint32 = uint32(0) var c int32 var z uintptr = *(*uintptr)(unsafe.Pointer(pz)) @@ -209836,7 +212079,7 @@ var zValue = [128]int8{ int8(25), int8(26), int8(27), int8(28), int8(29), int8(30), int8(31), int8(32), int8(33), int8(34), int8(35), int8(-1), int8(-1), int8(-1), int8(-1), int8(36), int8(-1), int8(37), int8(38), int8(39), int8(40), int8(41), int8(42), int8(43), int8(44), int8(45), int8(46), int8(47), int8(48), int8(49), int8(50), int8(51), int8(52), int8(53), int8(54), int8(55), int8(56), int8(57), int8(58), int8(59), int8(60), int8(61), int8(62), int8(-1), int8(-1), int8(-1), int8(63), int8(-1), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204245:28 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206367:28 */ // Apply a delta. // @@ -209856,7 +212099,7 @@ var zValue = [128]int8{ // // Refer to the delta_create() documentation above for a description // of the delta file format. -func rbuDeltaApply(tls *libc.TLS, zSrc uintptr, lenSrc int32, zDelta uintptr, lenDelta int32, zOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204325:12: */ +func rbuDeltaApply(tls *libc.TLS, zSrc uintptr, lenSrc int32, zDelta uintptr, lenDelta int32, zOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206447:12: */ bp := tls.Alloc(12) defer tls.Free(12) *(*uintptr)(unsafe.Pointer(bp)) = zDelta @@ -209946,7 +212189,7 @@ func rbuDeltaApply(tls *libc.TLS, zSrc uintptr, lenSrc int32, zDelta uintptr, le return -1 } -func rbuDeltaOutputSize(tls *libc.TLS, zDelta uintptr, lenDelta int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204411:12: */ +func rbuDeltaOutputSize(tls *libc.TLS, zDelta uintptr, lenDelta int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206533:12: */ bp := tls.Alloc(12) defer tls.Free(12) *(*uintptr)(unsafe.Pointer(bp)) = zDelta @@ -209971,7 +212214,7 @@ func rbuDeltaOutputSize(tls *libc.TLS, zDelta uintptr, lenDelta int32) int32 { / // arguments must be passed to this function. The first is the blob to // patch and the second the patch to apply. If no error occurs, this // function returns the patched blob. -func rbuFossilDeltaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204433:13: */ +func rbuFossilDeltaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206555:13: */ var aDelta uintptr var nDelta int32 var aOrig uintptr @@ -209988,7 +212231,7 @@ func rbuFossilDeltaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr // Figure out the size of the output nOut = rbuDeltaOutputSize(tls, aDelta, nDelta) if nOut < 0 { - Xsqlite3_result_error(tls, context, ts+29063, -1) + Xsqlite3_result_error(tls, context, ts+29028, -1) return } @@ -209999,7 +212242,7 @@ func rbuFossilDeltaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr nOut2 = rbuDeltaApply(tls, aOrig, nOrig, aDelta, nDelta, aOut) if nOut2 != nOut { Xsqlite3_free(tls, aOut) - Xsqlite3_result_error(tls, context, ts+29063, -1) + Xsqlite3_result_error(tls, context, ts+29028, -1) } else { Xsqlite3_result_blob(tls, context, aOut, nOut, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free}))) } @@ -210014,13 +212257,13 @@ func rbuFossilDeltaFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr // an SQLite error code. Additionally, set output variable *pzErrmsg to // point to a buffer containing an error message. It is the responsibility // of the caller to (eventually) free this buffer using sqlite3_free(). -func prepareAndCollectError(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204486:12: */ +func prepareAndCollectError(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206608:12: */ bp := tls.Alloc(8) defer tls.Free(8) var rc int32 = Xsqlite3_prepare_v2(tls, db, zSql, -1, ppStmt, uintptr(0)) if rc != SQLITE_OK { - *(*uintptr)(unsafe.Pointer(pzErrmsg)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErrmsg)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, Xsqlite3_errmsg(tls, db))) *(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0) } return rc @@ -210032,13 +212275,13 @@ func prepareAndCollectError(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErrmsg // If an error has occurred, then set *pzErrmsg to point to a buffer // containing an error message. It is the responsibility of the caller // to eventually free this buffer using sqlite3_free(). -func resetAndCollectError(tls *libc.TLS, pStmt uintptr, pzErrmsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204508:12: */ +func resetAndCollectError(tls *libc.TLS, pStmt uintptr, pzErrmsg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206630:12: */ bp := tls.Alloc(8) defer tls.Free(8) var rc int32 = Xsqlite3_reset(tls, pStmt) if rc != SQLITE_OK { - *(*uintptr)(unsafe.Pointer(pzErrmsg)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, Xsqlite3_errmsg(tls, Xsqlite3_db_handle(tls, pStmt)))) + *(*uintptr)(unsafe.Pointer(pzErrmsg)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, Xsqlite3_errmsg(tls, Xsqlite3_db_handle(tls, pStmt)))) } return rc } @@ -210056,7 +212299,7 @@ func resetAndCollectError(tls *libc.TLS, pStmt uintptr, pzErrmsg uintptr) int32 // // If argument zSql is NULL, this function assumes that an OOM has occurred. // In this case SQLITE_NOMEM is returned and *ppStmt set to NULL. -func prepareFreeAndCollectError(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204531:12: */ +func prepareFreeAndCollectError(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206653:12: */ var rc int32 if zSql == uintptr(0) { @@ -210071,7 +212314,7 @@ func prepareFreeAndCollectError(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErr // Free the RbuObjIter.azTblCol[] and RbuObjIter.abTblPk[] arrays allocated // by an earlier call to rbuObjIterCacheTableInfo(). -func rbuObjIterFreeCols(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204553:13: */ +func rbuObjIterFreeCols(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206675:13: */ var i int32 for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ { Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8))) @@ -210089,7 +212332,7 @@ func rbuObjIterFreeCols(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalg // Finalize all statements and free all allocations that are specific to // the current object (table/index pair). -func rbuObjIterClearStatements(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204573:13: */ +func rbuObjIterClearStatements(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206695:13: */ var pUp uintptr Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpSelect) @@ -210119,7 +212362,7 @@ func rbuObjIterClearStatements(tls *libc.TLS, pIter uintptr) { /* testdata/sqlit // Clean up any resources allocated as part of the iterator object passed // as the only argument. -func rbuObjIterFinalize(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204605:13: */ +func rbuObjIterFinalize(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206727:13: */ rbuObjIterClearStatements(tls, pIter) Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpTblIter) Xsqlite3_finalize(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpIdxIter) @@ -210133,7 +212376,7 @@ func rbuObjIterFinalize(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalg // pointing to the next entry. Otherwise, an error code and message is // left in the RBU handle passed as the first argument. A copy of the // error code is returned. -func rbuObjIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204621:12: */ +func rbuObjIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206743:12: */ var rc int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Frc if rc == SQLITE_OK { @@ -210142,7 +212385,7 @@ func rbuObjIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata if (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx == uintptr(0) { rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, - ts+29084, uintptr(0), uintptr(0), p+64) + ts+29049, uintptr(0), uintptr(0), p+64) } if rc == SQLITE_OK { @@ -210202,19 +212445,19 @@ func rbuObjIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata // // For a non-vacuum RBU handle, if the table name matches the pattern: // -// data[0-9]_<name> +// data[0-9]_<name> // // where <name> is any sequence of 1 or more characters, <name> is returned. // Otherwise, if the only argument does not match the above pattern, an SQL // NULL is returned. // -// "data_t1" -> "t1" -// "data0123_t2" -> "t2" -// "dataAB_t3" -> NULL +// "data_t1" -> "t1" +// "data0123_t2" -> "t2" +// "dataAB_t3" -> NULL // // For an rbu vacuum handle, a copy of the first argument is returned if // the second argument is either missing or 0 (not a view). -func rbuTargetNameFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204701:13: */ +func rbuTargetNameFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206823:13: */ var p uintptr = Xsqlite3_user_data(tls, pCtx) var zIn uintptr @@ -210226,7 +212469,7 @@ func rbuTargetNameFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) { Xsqlite3_result_text(tls, pCtx, zIn, -1, uintptr(0)) } } else { - if libc.Xstrlen(tls, zIn) > uint64(4) && libc.Xmemcmp(tls, ts+26254, zIn, uint64(4)) == 0 { + if libc.Xstrlen(tls, zIn) > uint64(4) && libc.Xmemcmp(tls, ts+26219, zIn, uint64(4)) == 0 { var i int32 for i = 4; int32(*(*int8)(unsafe.Pointer(zIn + uintptr(i)))) >= '0' && int32(*(*int8)(unsafe.Pointer(zIn + uintptr(i)))) <= '9'; i++ { } @@ -210244,7 +212487,7 @@ func rbuTargetNameFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) { // pointing to the first entry. Otherwise, an error code and message is // left in the RBU handle passed as the first argument. A copy of the // error code is returned. -func rbuObjIterFirst(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204737:12: */ +func rbuObjIterFirst(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206859:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -210254,9 +212497,9 @@ func rbuObjIterFirst(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdat rc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter, p+64, Xsqlite3_mprintf(tls, - ts+29255, libc.VaList(bp, func() uintptr { + ts+29220, libc.VaList(bp, func() uintptr { if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - return ts + 29405 /* "AND rootpage!=0 ..." */ + return ts + 29370 /* "AND rootpage!=0 ..." */ } return ts + 1524 /* "" */ }()))) @@ -210264,7 +212507,7 @@ func rbuObjIterFirst(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdat if rc == SQLITE_OK { rc = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+8, p+64, - ts+29446) + ts+29411) } (*RbuObjIter)(unsafe.Pointer(pIter)).FbCleanup = 1 @@ -210279,7 +212522,7 @@ func rbuObjIterFirst(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdat // than SQLITE_OK), then this function returns NULL without modifying the // stored error code. In this case it still calls sqlite3_free() on any // printf() parameters associated with %z conversions. -func rbuMPrintf(tls *libc.TLS, p uintptr, zFmt uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204772:13: */ +func rbuMPrintf(tls *libc.TLS, p uintptr, zFmt uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206894:13: */ var zSql uintptr = uintptr(0) var ap Va_list _ = ap @@ -210305,7 +212548,7 @@ func rbuMPrintf(tls *libc.TLS, p uintptr, zFmt uintptr, va uintptr) uintptr { /* // If an error occurs, an error code and error message is stored in the // RBU handle. If an error has already occurred when this function is // called, it is a no-op. -func rbuMPrintfExec(tls *libc.TLS, p uintptr, db uintptr, zFmt uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204797:12: */ +func rbuMPrintfExec(tls *libc.TLS, p uintptr, db uintptr, zFmt uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206919:12: */ var ap Va_list _ = ap var zSql uintptr @@ -210331,7 +212574,7 @@ func rbuMPrintfExec(tls *libc.TLS, p uintptr, db uintptr, zFmt uintptr, va uintp // error has already occurred when this function is called, return NULL // immediately without attempting the allocation or modifying the stored // error code. -func rbuMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204824:13: */ +func rbuMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206946:13: */ var pRet uintptr = uintptr(0) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { @@ -210348,7 +212591,7 @@ func rbuMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* testd // Allocate and zero the pIter->azTblCol[] and abTblPk[] arrays so that // there is room for at least nCol elements. If an OOM occurs, store an // error code in the RBU handle passed as the first argument. -func rbuAllocateIterArrays(tls *libc.TLS, p uintptr, pIter uintptr, nCol int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204844:13: */ +func rbuAllocateIterArrays(tls *libc.TLS, p uintptr, pIter uintptr, nCol int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206966:13: */ var nByte Sqlite3_int64 = Sqlite3_int64((uint64(2)*uint64(unsafe.Sizeof(uintptr(0))) + uint64(unsafe.Sizeof(int32(0))) + uint64(3)*uint64(unsafe.Sizeof(U8(0)))) * uint64(nCol)) var azNew uintptr @@ -210371,7 +212614,7 @@ func rbuAllocateIterArrays(tls *libc.TLS, p uintptr, pIter uintptr, nCol int32) // If an OOM condition is encountered when attempting to allocate memory, // output variable (*pRc) is set to SQLITE_NOMEM before returning. Otherwise, // if the allocation succeeds, (*pRc) is left unchanged. -func rbuStrndup(tls *libc.TLS, zStr uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204869:13: */ +func rbuStrndup(tls *libc.TLS, zStr uintptr, pRc uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:206991:13: */ var zRet uintptr = uintptr(0) if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK { @@ -210394,7 +212637,7 @@ func rbuStrndup(tls *libc.TLS, zStr uintptr, pRc uintptr) uintptr { /* testdata/ // If the sqlite3_finalize() call indicates that an error occurs, and the // rbu handle error code is not already set, set the error code and error // message accordingly. -func rbuFinalize(tls *libc.TLS, p uintptr, pStmt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204894:13: */ +func rbuFinalize(tls *libc.TLS, p uintptr, pStmt uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207016:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -210402,49 +212645,49 @@ func rbuFinalize(tls *libc.TLS, p uintptr, pStmt uintptr) { /* testdata/sqlite-a var rc int32 = Xsqlite3_finalize(tls, pStmt) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && rc != SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc - (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, Xsqlite3_errmsg(tls, db))) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, Xsqlite3_errmsg(tls, db))) } } // Determine the type of a table. // -// peType is of type (int*), a pointer to an output parameter of type -// (int). This call sets the output parameter as follows, depending -// on the type of the table specified by parameters dbName and zTbl. +// peType is of type (int*), a pointer to an output parameter of type +// (int). This call sets the output parameter as follows, depending +// on the type of the table specified by parameters dbName and zTbl. // -// RBU_PK_NOTABLE: No such table. -// RBU_PK_NONE: Table has an implicit rowid. -// RBU_PK_IPK: Table has an explicit IPK column. -// RBU_PK_EXTERNAL: Table has an external PK index. -// RBU_PK_WITHOUT_ROWID: Table is WITHOUT ROWID. -// RBU_PK_VTAB: Table is a virtual table. +// RBU_PK_NOTABLE: No such table. +// RBU_PK_NONE: Table has an implicit rowid. +// RBU_PK_IPK: Table has an explicit IPK column. +// RBU_PK_EXTERNAL: Table has an external PK index. +// RBU_PK_WITHOUT_ROWID: Table is WITHOUT ROWID. +// RBU_PK_VTAB: Table is a virtual table. // -// Argument *piPk is also of type (int*), and also points to an output -// parameter. Unless the table has an external primary key index -// (i.e. unless *peType is set to 3), then *piPk is set to zero. Or, -// if the table does have an external primary key index, then *piPk -// is set to the root page number of the primary key index before -// returning. +// Argument *piPk is also of type (int*), and also points to an output +// parameter. Unless the table has an external primary key index +// (i.e. unless *peType is set to 3), then *piPk is set to zero. Or, +// if the table does have an external primary key index, then *piPk +// is set to the root page number of the primary key index before +// returning. // // ALGORITHM: // -// if( no entry exists in sqlite_schema ){ -// return RBU_PK_NOTABLE -// }else if( sql for the entry starts with "CREATE VIRTUAL" ){ -// return RBU_PK_VTAB -// }else if( "PRAGMA index_list()" for the table contains a "pk" index ){ -// if( the index that is the pk exists in sqlite_schema ){ -// *piPK = rootpage of that index. -// return RBU_PK_EXTERNAL -// }else{ -// return RBU_PK_WITHOUT_ROWID -// } -// }else if( "PRAGMA table_info()" lists one or more "pk" columns ){ -// return RBU_PK_IPK -// }else{ -// return RBU_PK_NONE -// } -func rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnum uintptr, piPk uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:204942:13: */ +// if( no entry exists in sqlite_schema ){ +// return RBU_PK_NOTABLE +// }else if( sql for the entry starts with "CREATE VIRTUAL" ){ +// return RBU_PK_VTAB +// }else if( "PRAGMA index_list()" for the table contains a "pk" index ){ +// if( the index that is the pk exists in sqlite_schema ){ +// *piPK = rootpage of that index. +// return RBU_PK_EXTERNAL +// }else{ +// return RBU_PK_WITHOUT_ROWID +// } +// }else if( "PRAGMA table_info()" lists one or more "pk" columns ){ +// return RBU_PK_IPK +// }else{ +// return RBU_PK_NONE +// } +func rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnum uintptr, piPk uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207064:13: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -210465,7 +212708,7 @@ func rbuTableType(tls *libc.TLS, p uintptr, zTab uintptr, peType uintptr, piTnum (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32, p+64, Xsqlite3_mprintf(tls, - ts+29571, libc.VaList(bp, zTab))) + ts+29536, libc.VaList(bp, zTab))) if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc != SQLITE_OK || Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 32))) != SQLITE_ROW) { goto __1 } @@ -210483,7 +212726,7 @@ __2: *(*int32)(unsafe.Pointer(piTnum)) = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 32)), 1) (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32+1*8, p+64, - Xsqlite3_mprintf(tls, ts+29690, libc.VaList(bp+8, zTab))) + Xsqlite3_mprintf(tls, ts+29655, libc.VaList(bp+8, zTab))) if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc != 0) { goto __3 } @@ -210501,7 +212744,7 @@ __4: } (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32+2*8, p+64, Xsqlite3_mprintf(tls, - ts+29711, libc.VaList(bp+16, zIdx))) + ts+29676, libc.VaList(bp+16, zIdx))) if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK) { goto __7 } @@ -210525,7 +212768,7 @@ __5: ; (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32+3*8, p+64, - Xsqlite3_mprintf(tls, ts+29762, libc.VaList(bp+24, zTab))) + Xsqlite3_mprintf(tls, ts+29727, libc.VaList(bp+24, zTab))) if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK) { goto __10 } @@ -210564,7 +212807,7 @@ __16: // This is a helper function for rbuObjIterCacheTableInfo(). It populates // the pIter->abIndexed[] array. -func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205028:13: */ +func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207150:13: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -210574,7 +212817,7 @@ func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* te if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { libc.Xmemcpy(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FabIndexed, (*RbuObjIter)(unsafe.Pointer(pIter)).FabTblPk, uint64(unsafe.Sizeof(U8(0)))*uint64((*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol)) (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+16, p+64, - Xsqlite3_mprintf(tls, ts+29783, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) + Xsqlite3_mprintf(tls, ts+29748, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) } (*RbuObjIter)(unsafe.Pointer(pIter)).FnIndex = 0 @@ -210589,7 +212832,7 @@ func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* te libc.Xmemset(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FabIndexed, 0x01, uint64(unsafe.Sizeof(U8(0)))*uint64((*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol)) } (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+24, p+64, - Xsqlite3_mprintf(tls, ts+29811, libc.VaList(bp+8, zIdx))) + Xsqlite3_mprintf(tls, ts+29776, libc.VaList(bp+8, zIdx))) for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 24))) { var iCid int32 = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pXInfo */)), 1) if iCid >= 0 { @@ -210622,7 +212865,7 @@ func rbuObjIterCacheIndexedCols(tls *libc.TLS, p uintptr, pIter uintptr) { /* te // Return SQLITE_OK if successful, or an SQLite error code otherwise. If // an error does occur, an error code and error message are also left in // the RBU handle. -func rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205082:12: */ +func rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207204:12: */ bp := tls.Alloc(72) defer tls.Free(72) @@ -210639,7 +212882,7 @@ func rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) int32 { / rbuTableType(tls, p, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, pIter+72, bp+56, pIter+108) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NOTABLE { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_ERROR - (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+20730, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+20670, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc != 0 { return (*Sqlite3rbu)(unsafe.Pointer(p)).Frc @@ -210652,18 +212895,18 @@ func rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) int32 { / // of the input table. Ignore any input table columns that begin with // "rbu_". (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp+64, p+64, - Xsqlite3_mprintf(tls, ts+29840, libc.VaList(bp+8, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))) + Xsqlite3_mprintf(tls, ts+29805, libc.VaList(bp+8, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { nCol = Xsqlite3_column_count(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* pStmt */))) rbuAllocateIterArrays(tls, p, pIter, nCol) } for i = 0; (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && i < nCol; i++ { var zName uintptr = Xsqlite3_column_name(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* pStmt */)), i) - if Xsqlite3_strnicmp(tls, ts+29859, zName, 4) != 0 { + if Xsqlite3_strnicmp(tls, ts+29824, zName, 4) != 0 { var zCopy uintptr = rbuStrndup(tls, zName, p+56) *(*int32)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FaiSrcOrder + uintptr((*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol)*4)) = (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(libc.PostIncInt32(&(*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol, 1))*8)) = zCopy - } else if 0 == Xsqlite3_stricmp(tls, ts+29864, zName) { + } else if 0 == Xsqlite3_stricmp(tls, ts+29829, zName) { bRbuRowid = 1 } } @@ -210675,12 +212918,12 @@ func rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) int32 { / bRbuRowid != libc.Bool32((*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_VTAB || (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NONE) { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_ERROR (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, - ts+29874, libc.VaList(bp+16, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, + ts+29839, libc.VaList(bp+16, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr { if bRbuRowid != 0 { - return ts + 29903 /* "may not have" */ + return ts + 29868 /* "may not have" */ } - return ts + 29916 /* "requires" */ + return ts + 29881 /* "requires" */ }())) } @@ -210689,7 +212932,7 @@ func rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) int32 { / // aiTblOrder[] arrays at the same time. if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+64, p+64, - Xsqlite3_mprintf(tls, ts+29925, libc.VaList(bp+32, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) + Xsqlite3_mprintf(tls, ts+29890, libc.VaList(bp+32, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) } for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 64))) { var zName uintptr = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* pStmt */)), 1) @@ -210703,7 +212946,7 @@ func rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) int32 { / } if i == (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_ERROR - (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+29947, + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+29912, libc.VaList(bp+40, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zName)) } else { var iPk int32 = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* pStmt */)), 5) @@ -210744,7 +212987,7 @@ func rbuObjIterCacheTableInfo(tls *libc.TLS, p uintptr, pIter uintptr) int32 { / // This function constructs and returns a pointer to a nul-terminated // string containing some SQL clause or list based on one or more of the // column names currently stored in the pIter->azTblCol[] array. -func rbuObjIterGetCollist(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205192:13: */ +func rbuObjIterGetCollist(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207314:13: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -210753,8 +212996,8 @@ func rbuObjIterGetCollist(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* var i int32 for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ { var z uintptr = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)) - zList = rbuMPrintf(tls, p, ts+29974, libc.VaList(bp, zList, zSep, z)) - zSep = ts + 15908 /* ", " */ + zList = rbuMPrintf(tls, p, ts+29939, libc.VaList(bp, zList, zSep, z)) + zSep = ts + 15947 /* ", " */ } return zList } @@ -210763,7 +213006,7 @@ func rbuObjIterGetCollist(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* // in order, for the current table. Before each column name, add the text // zPre. After each column name, add the zPost text. Use zSeparator as // the separator text (usually ", "). -func rbuObjIterGetPkList(tls *libc.TLS, p uintptr, pIter uintptr, zPre uintptr, zSeparator uintptr, zPost uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205213:13: */ +func rbuObjIterGetPkList(tls *libc.TLS, p uintptr, pIter uintptr, zPre uintptr, zSeparator uintptr, zPost uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207335:13: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -210775,7 +213018,7 @@ func rbuObjIterGetPkList(tls *libc.TLS, p uintptr, pIter uintptr, zPre uintptr, for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ { if int32(*(*U8)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i)))) == iPk { var zCol uintptr = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)) - zRet = rbuMPrintf(tls, p, ts+29983, libc.VaList(bp, zRet, zSep, zPre, zCol, zPost)) + zRet = rbuMPrintf(tls, p, ts+29948, libc.VaList(bp, zRet, zSep, zPre, zCol, zPost)) zSep = zSeparator break } @@ -210797,15 +213040,15 @@ func rbuObjIterGetPkList(tls *libc.TLS, p uintptr, pIter uintptr, zPre uintptr, // rows from the source table. For a rowid table, the WHERE clause // is of the form: // -// "WHERE _rowid_ > ?" +// "WHERE _rowid_ > ?" // // and for WITHOUT ROWID tables: // -// "WHERE (key1, key2) > (?, ?)" +// "WHERE (key1, key2) > (?, ?)" // // Instead of "?" placeholders, the actual WHERE clauses created by // this function contain literal SQL values. -func rbuVacuumTableStart(tls *libc.TLS, p uintptr, pIter uintptr, bRowid int32, zWrite uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205258:13: */ +func rbuVacuumTableStart(tls *libc.TLS, p uintptr, pIter uintptr, bRowid int32, zWrite uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207380:13: */ bp := tls.Alloc(80) defer tls.Free(80) @@ -210814,25 +213057,25 @@ func rbuVacuumTableStart(tls *libc.TLS, p uintptr, pIter uintptr, bRowid int32, if bRowid != 0 { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+72, p+64, Xsqlite3_mprintf(tls, - ts+29996, libc.VaList(bp, zWrite, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) + ts+29961, libc.VaList(bp, zWrite, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 72))) { var iMax Sqlite3_int64 = Xsqlite3_column_int64(tls, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */)), 0) - zRet = rbuMPrintf(tls, p, ts+30028, libc.VaList(bp+16, iMax)) + zRet = rbuMPrintf(tls, p, ts+29993, libc.VaList(bp+16, iMax)) } rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */))) } else { - var zOrder uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15908, ts+30051) - var zSelect uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+30057, ts+30064, ts+6260) - var zList uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15908, ts+1524) + var zOrder uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15947, ts+30016) + var zSelect uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+30022, ts+30029, ts+6295) + var zList uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15947, ts+1524) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+72, p+64, Xsqlite3_mprintf(tls, - ts+30072, + ts+30037, libc.VaList(bp+24, zSelect, zWrite, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zOrder))) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 72))) { var zVal uintptr = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */)), 0) - zRet = rbuMPrintf(tls, p, ts+30114, libc.VaList(bp+56, zList, zVal)) + zRet = rbuMPrintf(tls, p, ts+30079, libc.VaList(bp+56, zList, zVal)) } rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */))) } @@ -210851,20 +213094,20 @@ func rbuVacuumTableStart(tls *libc.TLS, p uintptr, pIter uintptr, bRowid int32, // clause to select the remaining required rows from the source table. // It is only possible to return such an expression if: // -// * The index contains no DESC columns, and -// * The last key written to the index before the operation was +// - The index contains no DESC columns, and +// - The last key written to the index before the operation was // suspended does not contain any NULL values. // // The expression is of the form: // -// (index-field1, index-field2, ...) > (?, ?, ...) +// (index-field1, index-field2, ...) > (?, ?, ...) // // except that the "?" placeholders are replaced with literal values. // // If the expression cannot be created, NULL is returned. In this case, // the caller has to use an OFFSET clause to extract only the required // rows from the sourct table, just as it does for an RBU update operation. -func rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205325:13: */ +func rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207447:13: */ bp := tls.Alloc(192) defer tls.Free(192) @@ -210895,7 +213138,7 @@ func rbuVacuumIndexStart(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* t *(*uintptr)(unsafe.Pointer(bp + 176 /* pXInfo */)) = uintptr(0) (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+176, p+64, - Xsqlite3_mprintf(tls, ts+29811, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx))) + Xsqlite3_mprintf(tls, ts+29776, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx))) __1: if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 176)))) { goto __2 @@ -210932,7 +213175,7 @@ __10: zCol = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)) goto __7 __6: - zCol = ts + 30134 /* "_rowid_" */ + zCol = ts + 30099 /* "_rowid_" */ __7: ; goto __5 @@ -210941,13 +213184,13 @@ __4: __5: ; - zLhs = rbuMPrintf(tls, p, ts+30142, + zLhs = rbuMPrintf(tls, p, ts+30107, libc.VaList(bp+8, zLhs, zSep, zCol, zCollate)) - zOrder = rbuMPrintf(tls, p, ts+30163, + zOrder = rbuMPrintf(tls, p, ts+30128, libc.VaList(bp+40, zOrder, zSep, iCol, zCol, zCollate)) - zSelect = rbuMPrintf(tls, p, ts+30199, + zSelect = rbuMPrintf(tls, p, ts+30164, libc.VaList(bp+80, zSelect, zSep, iCol, zCol)) - zSep = ts + 15908 /* ", " */ + zSep = ts + 15947 /* ", " */ iCol++ goto __1 __2: @@ -210966,7 +213209,7 @@ __11: *(*uintptr)(unsafe.Pointer(bp + 184 /* pSel */)) = uintptr(0) (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+184, p+64, - Xsqlite3_mprintf(tls, ts+30226, + Xsqlite3_mprintf(tls, ts+30191, libc.VaList(bp+112, zSelect, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zOrder))) if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 184)))) { goto __13 @@ -210993,8 +213236,8 @@ __19: ; __18: ; - zVector = rbuMPrintf(tls, p, ts+30274, libc.VaList(bp+136, zVector, zSep, zQuoted)) - zSep = ts + 15908 /* ", " */ + zVector = rbuMPrintf(tls, p, ts+30239, libc.VaList(bp+136, zVector, zSep, zQuoted)) + zSep = ts + 15947 /* ", " */ goto __15 __15: iCol++ @@ -211006,7 +213249,7 @@ __16: if !!(bFailed != 0) { goto __20 } - zRet = rbuMPrintf(tls, p, ts+30281, libc.VaList(bp+160, zLhs, zVector)) + zRet = rbuMPrintf(tls, p, ts+30246, libc.VaList(bp+160, zLhs, zVector)) __20: ; __13: @@ -211032,20 +213275,20 @@ index_start_out: // // If the index is of the following form: // -// CREATE INDEX i1 ON t1(c, b COLLATE nocase); +// CREATE INDEX i1 ON t1(c, b COLLATE nocase); // // and "t1" is a table with an explicit INTEGER PRIMARY KEY column // "ipk", the returned string is: // -// "`c` COLLATE 'BINARY', `b` COLLATE 'NOCASE', `ipk` COLLATE 'BINARY'" +// "`c` COLLATE 'BINARY', `b` COLLATE 'NOCASE', `ipk` COLLATE 'BINARY'" // // As well as the returned string, three other malloc'd strings are // returned via output parameters. As follows: // -// pzImposterCols: ... -// pzImposterPk: ... -// pzWhere: ... -func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterCols uintptr, pzImposterPk uintptr, pzWhere uintptr, pnBind uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205440:13: */ +// pzImposterCols: ... +// pzImposterPk: ... +// pzWhere: ... +func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterCols uintptr, pzImposterPk uintptr, pzWhere uintptr, pnBind uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207562:13: */ bp := tls.Alloc(208) defer tls.Free(208) @@ -211063,7 +213306,7 @@ func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterC if rc == SQLITE_OK { rc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+200, p+64, - Xsqlite3_mprintf(tls, ts+29811, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx))) + Xsqlite3_mprintf(tls, ts+29776, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx))) } for rc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 200))) { @@ -211075,7 +213318,7 @@ func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterC if iCid == -2 { var iSeq int32 = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 200 /* pXInfo */)), 0) - zRet = Xsqlite3_mprintf(tls, ts+30293, libc.VaList(bp+8, zRet, zCom, + zRet = Xsqlite3_mprintf(tls, ts+30258, libc.VaList(bp+8, zRet, zCom, (*RbuSpan)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FaIdxCol+uintptr(iSeq)*16)).FnSpan, (*RbuSpan)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FaIdxCol+uintptr(iSeq)*16)).FzSpan, zCollate)) zType = ts + 1524 /* "" */ } else { @@ -211089,37 +213332,37 @@ func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterC zCol = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)) } else if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - zCol = ts + 30134 /* "_rowid_" */ + zCol = ts + 30099 /* "_rowid_" */ } else { - zCol = ts + 29864 /* "rbu_rowid" */ + zCol = ts + 29829 /* "rbu_rowid" */ } zType = ts + 1089 /* "INTEGER" */ } else { zCol = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(iCid)*8)) zType = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCid)*8)) } - zRet = Xsqlite3_mprintf(tls, ts+30315, libc.VaList(bp+48, zRet, zCom, zCol, zCollate)) + zRet = Xsqlite3_mprintf(tls, ts+30280, libc.VaList(bp+48, zRet, zCom, zCol, zCollate)) } if (*RbuObjIter)(unsafe.Pointer(pIter)).FbUnique == 0 || Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 200)), 5) != 0 { var zOrder uintptr = func() uintptr { if bDesc != 0 { - return ts + 30051 + return ts + 30016 } return ts + 1524 }() - zImpPK = Xsqlite3_mprintf(tls, ts+30335, + zImpPK = Xsqlite3_mprintf(tls, ts+30300, libc.VaList(bp+80, zImpPK, zCom, nBind, zCol, zOrder)) } - zImpCols = Xsqlite3_mprintf(tls, ts+30356, + zImpCols = Xsqlite3_mprintf(tls, ts+30321, libc.VaList(bp+120, zImpCols, zCom, nBind, zCol, zType, zCollate)) zWhere = Xsqlite3_mprintf(tls, - ts+30389, libc.VaList(bp+168, zWhere, zAnd, nBind, zCol)) + ts+30354, libc.VaList(bp+168, zWhere, zAnd, nBind, zCol)) if zRet == uintptr(0) || zImpPK == uintptr(0) || zImpCols == uintptr(0) || zWhere == uintptr(0) { rc = SQLITE_NOMEM } - zCom = ts + 15908 /* ", " */ - zAnd = ts + 22750 /* " AND " */ + zCom = ts + 15947 /* ", " */ + zAnd = ts + 22690 /* " AND " */ nBind++ } @@ -211150,13 +213393,13 @@ func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterC // Assuming the current table columns are "a", "b" and "c", and the zObj // paramter is passed "old", return a string of the form: // -// "old.a, old.b, old.b" +// "old.a, old.b, old.b" // // With the column names escaped. // // For tables with implicit rowids - RBU_PK_EXTERNAL and RBU_PK_NONE, append // the text ", old._rowid_" to the returned value. -func rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205552:13: */ +func rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207674:13: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -211167,11 +213410,11 @@ func rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr) for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ { if *(*U8)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FabIndexed + uintptr(i))) != 0 { var zCol uintptr = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)) - zList = Xsqlite3_mprintf(tls, ts+30413, libc.VaList(bp, zList, zS, zObj, zCol)) + zList = Xsqlite3_mprintf(tls, ts+30378, libc.VaList(bp, zList, zS, zObj, zCol)) } else { - zList = Xsqlite3_mprintf(tls, ts+30425, libc.VaList(bp+32, zList, zS)) + zList = Xsqlite3_mprintf(tls, ts+30390, libc.VaList(bp+32, zList, zS)) } - zS = ts + 15908 /* ", " */ + zS = ts + 15947 /* ", " */ if zList == uintptr(0) { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM break @@ -211180,7 +213423,7 @@ func rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr) // For a table with implicit rowids, append "old._rowid_" to the list. if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL || (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NONE { - zList = rbuMPrintf(tls, p, ts+30434, libc.VaList(bp+48, zList, zObj)) + zList = rbuMPrintf(tls, p, ts+30399, libc.VaList(bp+48, zList, zObj)) } } return zList @@ -211189,29 +213432,29 @@ func rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr) // Return an expression that can be used in a WHERE clause to match the // primary key of the current table. For example, if the table is: // -// CREATE TABLE t1(a, b, c, PRIMARY KEY(b, c)); +// CREATE TABLE t1(a, b, c, PRIMARY KEY(b, c)); // // Return the string: // -// "b = ?1 AND c = ?2" -func rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205593:13: */ +// "b = ?1 AND c = ?2" +func rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207715:13: */ bp := tls.Alloc(80) defer tls.Free(80) var zList uintptr = uintptr(0) if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_VTAB || (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NONE { - zList = rbuMPrintf(tls, p, ts+30449, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+1)) + zList = rbuMPrintf(tls, p, ts+30414, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+1)) } else if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL { var zSep uintptr = ts + 1524 /* "" */ var i int32 for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ { if *(*U8)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i))) != 0 { - zList = rbuMPrintf(tls, p, ts+30463, libc.VaList(bp+8, zList, zSep, i, i+1)) - zSep = ts + 22750 /* " AND " */ + zList = rbuMPrintf(tls, p, ts+30428, libc.VaList(bp+8, zList, zSep, i, i+1)) + zSep = ts + 22690 /* " AND " */ } } zList = rbuMPrintf(tls, p, - ts+30475, libc.VaList(bp+40, zList)) + ts+30440, libc.VaList(bp+40, zList)) } else { var zSep uintptr = ts + 1524 /* "" */ @@ -211219,8 +213462,8 @@ func rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* te for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ { if *(*U8)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i))) != 0 { var zCol uintptr = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)) - zList = rbuMPrintf(tls, p, ts+30525, libc.VaList(bp+48, zList, zSep, zCol, i+1)) - zSep = ts + 22750 /* " AND " */ + zList = rbuMPrintf(tls, p, ts+30490, libc.VaList(bp+48, zList, zSep, zCol, i+1)) + zSep = ts + 22690 /* " AND " */ } } } @@ -211232,9 +213475,9 @@ func rbuObjIterGetWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* te // is something wrong with the rbu_control value in the rbu_control value // stored in the (p->nCol+1)'th column. Set the error code and error message // of the RBU handle to something reflecting this. -func rbuBadControlError(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205634:13: */ +func rbuBadControlError(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207756:13: */ (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_ERROR - (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+30538, 0) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+30503, 0) } // Return a nul-terminated string containing the comma separated list of @@ -211252,7 +213495,7 @@ func rbuBadControlError(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamat // argument and NULL is returned. Or, if an error has already occurred // when this function is called, NULL is returned immediately, without // attempting the allocation or modifying the stored error code. -func rbuObjIterGetSetlist(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205657:13: */ +func rbuObjIterGetSetlist(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207779:13: */ bp := tls.Alloc(112) defer tls.Free(112) @@ -211267,17 +213510,17 @@ func rbuObjIterGetSetlist(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr for i = 0; i < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; i++ { var c int8 = *(*int8)(unsafe.Pointer(zMask + uintptr(*(*int32)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FaiSrcOrder + uintptr(i)*4))))) if int32(c) == 'x' { - zList = rbuMPrintf(tls, p, ts+30525, + zList = rbuMPrintf(tls, p, ts+30490, libc.VaList(bp, zList, zSep, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+1)) - zSep = ts + 15908 /* ", " */ + zSep = ts + 15947 /* ", " */ } else if int32(c) == 'd' { - zList = rbuMPrintf(tls, p, ts+30564, + zList = rbuMPrintf(tls, p, ts+30529, libc.VaList(bp+32, zList, zSep, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+1)) - zSep = ts + 15908 /* ", " */ + zSep = ts + 15947 /* ", " */ } else if int32(c) == 'f' { - zList = rbuMPrintf(tls, p, ts+30594, + zList = rbuMPrintf(tls, p, ts+30559, libc.VaList(bp+72, zList, zSep, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+1)) - zSep = ts + 15908 /* ", " */ + zSep = ts + 15947 /* ", " */ } } } @@ -211298,7 +213541,7 @@ func rbuObjIterGetSetlist(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr // argument and NULL is returned. Or, if an error has already occurred // when this function is called, NULL is returned immediately, without // attempting the allocation or modifying the stored error code. -func rbuObjIterGetBindlist(tls *libc.TLS, p uintptr, nBind int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205711:13: */ +func rbuObjIterGetBindlist(tls *libc.TLS, p uintptr, nBind int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207833:13: */ var zRet uintptr = uintptr(0) var nByte Sqlite3_int64 = int64(2)*Sqlite3_int64(nBind) + int64(1) @@ -211323,31 +213566,31 @@ func rbuObjIterGetBindlist(tls *libc.TLS, p uintptr, nBind int32) uintptr { /* t // declaration for the corresponding imposter table. For example, // if the iterator points to a table created as: // -// CREATE TABLE t1(a, b, c, PRIMARY KEY(b, a DESC)) WITHOUT ROWID +// CREATE TABLE t1(a, b, c, PRIMARY KEY(b, a DESC)) WITHOUT ROWID // // this function returns: // -// PRIMARY KEY("b", "a" DESC) -func rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205738:13: */ +// PRIMARY KEY("b", "a" DESC) +func rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207860:13: */ bp := tls.Alloc(72) defer tls.Free(72) var z uintptr = uintptr(0) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { - var zSep uintptr = ts + 30631 /* "PRIMARY KEY(" */ + var zSep uintptr = ts + 30596 /* "PRIMARY KEY(" */ *(*uintptr)(unsafe.Pointer(bp + 56 /* pXList */)) = uintptr(0) // PRAGMA index_list = (pIter->zTbl) *(*uintptr)(unsafe.Pointer(bp + 64 /* pXInfo */)) = uintptr(0) // PRAGMA index_xinfo = <pk-index> (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+56, p+64, - Xsqlite3_mprintf(tls, ts+29783, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) + Xsqlite3_mprintf(tls, ts+29748, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 56))) { var zOrig uintptr = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pXList */)), 3) - if zOrig != 0 && libc.Xstrcmp(tls, zOrig, ts+17420) == 0 { + if zOrig != 0 && libc.Xstrcmp(tls, zOrig, ts+17450) == 0 { var zIdx uintptr = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pXList */)), 1) if zIdx != 0 { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+64, p+64, - Xsqlite3_mprintf(tls, ts+29811, libc.VaList(bp+8, zIdx))) + Xsqlite3_mprintf(tls, ts+29776, libc.VaList(bp+8, zIdx))) } break } @@ -211360,15 +213603,15 @@ func rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* tes var zCol uintptr = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* pXInfo */)), 2) var zDesc uintptr if Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 64)), 3) != 0 { - zDesc = ts + 30051 /* " DESC" */ + zDesc = ts + 30016 /* " DESC" */ } else { zDesc = ts + 1524 /* "" */ } - z = rbuMPrintf(tls, p, ts+30644, libc.VaList(bp+16, z, zSep, zCol, zDesc)) - zSep = ts + 15908 /* ", " */ + z = rbuMPrintf(tls, p, ts+30609, libc.VaList(bp+16, z, zSep, zCol, zDesc)) + zSep = ts + 15947 /* ", " */ } } - z = rbuMPrintf(tls, p, ts+30655, libc.VaList(bp+48, z)) + z = rbuMPrintf(tls, p, ts+30620, libc.VaList(bp+48, z)) rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 64 /* pXInfo */))) } return z @@ -211385,13 +213628,12 @@ func rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* tes // used to access that PK index. For example, if the target table is // declared as follows: // -// CREATE TABLE t1(a, b TEXT, c REAL, PRIMARY KEY(b, c)); +// CREATE TABLE t1(a, b TEXT, c REAL, PRIMARY KEY(b, c)); // // then the imposter table schema is: // -// CREATE TABLE rbu_imposter2(c1 TEXT, c2 REAL, id INTEGER) WITHOUT ROWID; -// -func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205797:13: */ +// CREATE TABLE rbu_imposter2(c1 TEXT, c2 REAL, id INTEGER) WITHOUT ROWID; +func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207919:13: */ bp := tls.Alloc(184) defer tls.Free(184) @@ -211408,7 +213650,7 @@ func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* testd // This is needed for the argument to "PRAGMA index_xinfo". Set // zIdx to point to a nul-terminated string containing this name. (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+168, p+64, - ts+30659) + ts+30624) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { Xsqlite3_bind_int(tls, *(*uintptr)(unsafe.Pointer(bp + 168 /* pQuery */)), 1, tnum) if SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 168))) { @@ -211417,7 +213659,7 @@ func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* testd } if zIdx != 0 { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+176, p+64, - Xsqlite3_mprintf(tls, ts+29811, libc.VaList(bp, zIdx))) + Xsqlite3_mprintf(tls, ts+29776, libc.VaList(bp, zIdx))) } rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 168 /* pQuery */))) @@ -211427,25 +213669,25 @@ func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* testd var iCid int32 = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 176 /* pXInfo */)), 1) var bDesc int32 = Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 176 /* pXInfo */)), 3) var zCollate uintptr = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 176 /* pXInfo */)), 4) - zCols = rbuMPrintf(tls, p, ts+30709, libc.VaList(bp+8, zCols, zComma, + zCols = rbuMPrintf(tls, p, ts+30674, libc.VaList(bp+8, zCols, zComma, iCid, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCid)*8)), zCollate)) - zPk = rbuMPrintf(tls, p, ts+30731, libc.VaList(bp+48, zPk, zComma, iCid, func() uintptr { + zPk = rbuMPrintf(tls, p, ts+30696, libc.VaList(bp+48, zPk, zComma, iCid, func() uintptr { if bDesc != 0 { - return ts + 30051 /* " DESC" */ + return ts + 30016 /* " DESC" */ } return ts + 1524 /* "" */ }())) - zComma = ts + 15908 /* ", " */ + zComma = ts + 15947 /* ", " */ } } - zCols = rbuMPrintf(tls, p, ts+30741, libc.VaList(bp+80, zCols)) + zCols = rbuMPrintf(tls, p, ts+30706, libc.VaList(bp+80, zCols)) rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 176 /* pXInfo */))) - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+88, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 1, tnum)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+88, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719, 1, tnum)) rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, - ts+30756, + ts+30721, libc.VaList(bp+120, zCols, zPk)) - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+136, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 0, 0)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+136, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719, 0, 0)) } } @@ -211467,7 +213709,7 @@ func rbuCreateImposterTable2(tls *libc.TLS, p uintptr, pIter uintptr) { /* testd // More precisely, the "same schema" means the same columns, types, // collation sequences. For tables that do not have an external PRIMARY // KEY, it also means the same PRIMARY KEY declaration. -func rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205871:13: */ +func rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:207993:13: */ bp := tls.Alloc(200) defer tls.Free(200) @@ -211476,7 +213718,7 @@ func rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) { /* testda var zComma uintptr = ts + 1524 /* "" */ var zSql uintptr = uintptr(0) var iCol int32 - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 0, 1)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719, 0, 1)) for iCol = 0; (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && iCol < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; iCol++ { var zPk uintptr = ts + 1524 /* "" */ @@ -211484,54 +213726,54 @@ func rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) { /* testda *(*uintptr)(unsafe.Pointer(bp + 192 /* zColl */)) = uintptr(0) (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_table_column_metadata(tls, - (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zCol, uintptr(0), bp+192, uintptr(0), uintptr(0), uintptr(0)) + (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zCol, uintptr(0), bp+192, uintptr(0), uintptr(0), uintptr(0)) if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_IPK && *(*U8)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(iCol))) != 0 { // If the target table column is an "INTEGER PRIMARY KEY", add // "PRIMARY KEY" to the imposter table column declaration. - zPk = ts + 30818 /* "PRIMARY KEY " */ + zPk = ts + 30783 /* "PRIMARY KEY " */ } - zSql = rbuMPrintf(tls, p, ts+30831, + zSql = rbuMPrintf(tls, p, ts+30796, libc.VaList(bp+32, zSql, zComma, zCol, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCol)*8)), zPk, *(*uintptr)(unsafe.Pointer(bp + 192 /* zColl */)), func() uintptr { if *(*U8)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FabNotNull + uintptr(iCol))) != 0 { - return ts + 30858 /* " NOT NULL" */ + return ts + 30823 /* " NOT NULL" */ } return ts + 1524 /* "" */ }())) - zComma = ts + 15908 /* ", " */ + zComma = ts + 15947 /* ", " */ } if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_WITHOUT_ROWID { var zPk uintptr = rbuWithoutRowidPK(tls, p, pIter) if zPk != 0 { - zSql = rbuMPrintf(tls, p, ts+30868, libc.VaList(bp+88, zSql, zPk)) + zSql = rbuMPrintf(tls, p, ts+30833, libc.VaList(bp+88, zSql, zPk)) } } - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+104, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 1, tnum)) - rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+30875, + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+104, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719, 1, tnum)) + rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+30840, libc.VaList(bp+136, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zSql, func() uintptr { if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_WITHOUT_ROWID { - return ts + 30907 /* " WITHOUT ROWID" */ + return ts + 30872 /* " WITHOUT ROWID" */ } return ts + 1524 /* "" */ }())) - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+160, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 0, 0)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+160, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719, 0, 0)) } } // Prepare a statement used to insert rows into the "rbu_tmp_xxx" table. // Specifically a statement of the form: // -// INSERT INTO rbu_tmp_xxx VALUES(?, ?, ? ...); +// INSERT INTO rbu_tmp_xxx VALUES(?, ?, ? ...); // // The number of bound variables is equal to the number of columns in // the target table, plus one (for the rbu_control column), plus one more // (for the rbu_rowid column) if the target table is an implicit IPK or // virtual table. -func rbuObjIterPrepareTmpInsert(tls *libc.TLS, p uintptr, pIter uintptr, zCollist uintptr, zRbuRowid uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205927:13: */ +func rbuObjIterPrepareTmpInsert(tls *libc.TLS, p uintptr, pIter uintptr, zCollist uintptr, zRbuRowid uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208049:13: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -211541,12 +213783,12 @@ func rbuObjIterPrepareTmpInsert(tls *libc.TLS, p uintptr, pIter uintptr, zCollis (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter+152, p+64, Xsqlite3_mprintf(tls, - ts+30922, + ts+30887, libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zCollist, zRbuRowid, zBind))) } } -func rbuTmpInsertFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205945:13: */ +func rbuTmpInsertFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208067:13: */ var p uintptr = Xsqlite3_user_data(tls, pCtx) var rc int32 = SQLITE_OK var i int32 @@ -211568,7 +213810,7 @@ func rbuTmpInsertFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { } } -func rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:205975:13: */ +func rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208097:13: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -211578,7 +213820,7 @@ func rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK { *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp, p+64, - ts+30979) + ts+30944) } if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK { var rc2 int32 @@ -211676,7 +213918,7 @@ func rbuObjIterGetIndexWhere(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { // Ensure that the SQLite statement handles required to update the // target database object currently indicated by the iterator passed // as the second argument are available. -func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206075:12: */ +func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208197:12: */ bp := tls.Alloc(628) defer tls.Free(628) @@ -211688,7 +213930,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 var zLimit uintptr = uintptr(0) if nOffset != 0 { - zLimit = Xsqlite3_mprintf(tls, ts+31045, libc.VaList(bp, nOffset)) + zLimit = Xsqlite3_mprintf(tls, ts+31010, libc.VaList(bp, nOffset)) if !(zLimit != 0) { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM } @@ -211709,26 +213951,26 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 zBind = rbuObjIterGetBindlist(tls, p, *(*int32)(unsafe.Pointer(bp + 624 /* nBind */))) // Create the imposter table used to write to this index. - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+8, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 0, 1)) - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+40, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 1, tnum)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+8, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719, 0, 1)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+40, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719, 1, tnum)) rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, - ts+31065, + ts+31030, libc.VaList(bp+72, zTbl, *(*uintptr)(unsafe.Pointer(bp + 600 /* zImposterCols */)), *(*uintptr)(unsafe.Pointer(bp + 608 /* zImposterPK */)))) - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+96, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, 0, 0)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+96, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719, 0, 0)) // Create the statement to insert index entries (*RbuObjIter)(unsafe.Pointer(pIter)).FnCol = *(*int32)(unsafe.Pointer(bp + 624 /* nBind */)) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+136, p+64, - Xsqlite3_mprintf(tls, ts+31130, libc.VaList(bp+128, zTbl, zBind))) + Xsqlite3_mprintf(tls, ts+31095, libc.VaList(bp+128, zTbl, zBind))) } // And to delete index entries if libc.Bool32((*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0)) == 0 && (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+144, p+64, - Xsqlite3_mprintf(tls, ts+31166, libc.VaList(bp+144, zTbl, *(*uintptr)(unsafe.Pointer(bp + 616 /* zWhere */))))) + Xsqlite3_mprintf(tls, ts+31131, libc.VaList(bp+144, zTbl, *(*uintptr)(unsafe.Pointer(bp + 616 /* zWhere */))))) } // Create the SELECT statement to read keys in sorted order @@ -211745,7 +213987,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 } zSql = Xsqlite3_mprintf(tls, - ts+31200, + ts+31165, libc.VaList(bp+160, zCollist, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, @@ -211753,9 +213995,9 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 if zStart != 0 { return func() uintptr { if zPart != 0 { - return ts + 31261 /* "AND" */ + return ts + 31226 /* "AND" */ } - return ts + 31265 /* "WHERE" */ + return ts + 31230 /* "WHERE" */ }() } return ts + 1524 /* "" */ @@ -211764,21 +214006,21 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 Xsqlite3_free(tls, zStart) } else if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL || (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NONE { zSql = Xsqlite3_mprintf(tls, - ts+31271, + ts+31236, libc.VaList(bp+216, zCollist, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, zCollist, zLimit)) } else { zSql = Xsqlite3_mprintf(tls, - ts+31332, + ts+31297, libc.VaList(bp+264, zCollist, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, zCollist, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, func() uintptr { if zPart != 0 { - return ts + 31261 /* "AND" */ + return ts + 31226 /* "AND" */ } - return ts + 31265 /* "WHERE" */ + return ts + 31230 /* "WHERE" */ }(), zCollist, zLimit)) } @@ -211803,8 +214045,8 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 var zBindings uintptr = rbuObjIterGetBindlist(tls, p, (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+bRbuRowid) var zWhere uintptr = rbuObjIterGetWhere(tls, p, pIter) - var zOldlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+7695) - var zNewlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+7691) + var zOldlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+7730) + var zNewlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+7726) zCollist = rbuObjIterGetCollist(tls, p, pIter) (*RbuObjIter)(unsafe.Pointer(pIter)).FnCol = (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol @@ -211816,17 +214058,17 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_VTAB { return ts + 1524 } - return ts + 31491 + return ts + 31456 }() // Create the INSERT statement to write to the target PK b-tree if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+136, pz, Xsqlite3_mprintf(tls, - ts+31500, + ts+31465, libc.VaList(bp+344, zWrite, zTbl, zCollist, func() uintptr { if bRbuRowid != 0 { - return ts + 31536 /* ", _rowid_" */ + return ts + 31501 /* ", _rowid_" */ } return ts + 1524 /* "" */ }(), zBindings))) @@ -211838,28 +214080,28 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 if libc.Bool32((*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0)) == 0 && (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, pIter+144, pz, Xsqlite3_mprintf(tls, - ts+31546, libc.VaList(bp+384, zWrite, zTbl, zWhere))) + ts+31511, libc.VaList(bp+384, zWrite, zTbl, zWhere))) } if libc.Bool32((*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0)) == 0 && (*RbuObjIter)(unsafe.Pointer(pIter)).FabIndexed != 0 { var zRbuRowid uintptr = ts + 1524 /* "" */ if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL || (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NONE { - zRbuRowid = ts + 31574 /* ", rbu_rowid" */ + zRbuRowid = ts + 31539 /* ", rbu_rowid" */ } // Create the rbu_tmp_xxx table and the triggers to populate it. rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, - ts+31586, libc.VaList(bp+408, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr { + ts+31551, libc.VaList(bp+408, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr { if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL { - return ts + 31662 /* ", 0 AS rbu_rowid" */ + return ts + 31627 /* ", 0 AS rbu_rowid" */ } return ts + 1524 /* "" */ }(), (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl)) rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, - ts+31679, + ts+31644, libc.VaList(bp+440, zWrite, zTbl, zOldlist, zWrite, zTbl, zOldlist, zWrite, zTbl, zNewlist)) @@ -211867,7 +214109,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL || (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NONE { rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, - ts+31978, + ts+31943, libc.VaList(bp+512, zWrite, zTbl, zNewlist)) } @@ -211881,9 +214123,9 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 var zOrder uintptr = uintptr(0) if bRbuRowid != 0 { if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - zRbuRowid = ts + 32077 /* ",_rowid_ " */ + zRbuRowid = ts + 32042 /* ",_rowid_ " */ } else { - zRbuRowid = ts + 32087 /* ",rbu_rowid" */ + zRbuRowid = ts + 32052 /* ",rbu_rowid" */ } } @@ -211896,20 +214138,20 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 } } if bRbuRowid != 0 { - zOrder = rbuMPrintf(tls, p, ts+30134, 0) + zOrder = rbuMPrintf(tls, p, ts+30099, 0) } else { - zOrder = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15908, ts+1524) + zOrder = rbuObjIterGetPkList(tls, p, pIter, ts+1524, ts+15947, ts+1524) } } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, pIter+128, pz, Xsqlite3_mprintf(tls, - ts+32098, + ts+32063, libc.VaList(bp+536, zCollist, func() uintptr { if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - return ts + 32146 /* "0 AS " */ + return ts + 32111 /* "0 AS " */ } return ts + 1524 /* "" */ }(), @@ -211922,7 +214164,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 }(), func() uintptr { if zOrder != 0 { - return ts + 21084 /* "ORDER BY" */ + return ts + 21024 /* "ORDER BY" */ } return ts + 1524 /* "" */ }(), zOrder, @@ -211951,7 +214193,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 // // If the zMask string does not specify any columns to update, then this // is not an error. Output variable *ppStmt is set to NULL in this case. -func rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, ppStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206342:12: */ +func rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, ppStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208464:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -212002,9 +214244,9 @@ func rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, pp var zPrefix uintptr = ts + 1524 /* "" */ if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType != RBU_PK_VTAB { - zPrefix = ts + 31491 /* "rbu_imp_" */ + zPrefix = ts + 31456 /* "rbu_imp_" */ } - zUpdate = Xsqlite3_mprintf(tls, ts+32152, + zUpdate = Xsqlite3_mprintf(tls, ts+32117, libc.VaList(bp, zPrefix, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zSet, zWhere)) (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, pUp+8, p+64, zUpdate) @@ -212017,7 +214259,7 @@ func rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, pp return (*Sqlite3rbu)(unsafe.Pointer(p)).Frc } -func rbuOpenDbhandle(tls *libc.TLS, p uintptr, zName uintptr, bUseVfs int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206410:16: */ +func rbuOpenDbhandle(tls *libc.TLS, p uintptr, zName uintptr, bUseVfs int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208532:16: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -212031,7 +214273,7 @@ func rbuOpenDbhandle(tls *libc.TLS, p uintptr, zName uintptr, bUseVfs int32) uin return uintptr(0) }()) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc != 0 { - (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* db */))))) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* db */))))) Xsqlite3_close(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* db */))) *(*uintptr)(unsafe.Pointer(bp + 8 /* db */)) = uintptr(0) } @@ -212040,7 +214282,7 @@ func rbuOpenDbhandle(tls *libc.TLS, p uintptr, zName uintptr, bUseVfs int32) uin } // Free an RbuState object allocated by rbuLoadState(). -func rbuFreeState(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206431:13: */ +func rbuFreeState(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208553:13: */ if p != 0 { Xsqlite3_free(tls, (*RbuState)(unsafe.Pointer(p)).FzTbl) Xsqlite3_free(tls, (*RbuState)(unsafe.Pointer(p)).FzDataTbl) @@ -212056,7 +214298,7 @@ func rbuFreeState(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-33 // // If an error occurs, leave an error code and message in the rbu handle // and return NULL. -func rbuLoadState(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206449:17: */ +func rbuLoadState(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208571:17: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -212072,7 +214314,7 @@ func rbuLoadState(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgam } *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp+8, p+64, - Xsqlite3_mprintf(tls, ts+32182, libc.VaList(bp, p+48))) + Xsqlite3_mprintf(tls, ts+32147, libc.VaList(bp, p+48))) for *(*int32)(unsafe.Pointer(bp + 16)) == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 8))) { switch Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* pStmt */)), 0) { case RBU_STATE_STAGE: @@ -212140,7 +214382,7 @@ func rbuLoadState(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgam // If argument dbMain is not NULL, then it is a database handle already // open on the target database. Use this handle instead of opening a new // one. -func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206530:13: */ +func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208652:13: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -212149,31 +214391,31 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr) (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain = dbMain if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7684, SQLITE_FCNTL_RBUCNT, p) + Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7719, SQLITE_FCNTL_RBUCNT, p) if (*Sqlite3rbu)(unsafe.Pointer(p)).FzState == uintptr(0) { - var zFile uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7684) - (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+32212, libc.VaList(bp, zFile, zFile)) + var zFile uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7719) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+32177, libc.VaList(bp, zFile, zFile)) } } // If using separate RBU and state databases, attach the state database to // the RBU db handle now. if (*Sqlite3rbu)(unsafe.Pointer(p)).FzState != 0 { - rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+32239, libc.VaList(bp+16, (*Sqlite3rbu)(unsafe.Pointer(p)).FzState)) - libc.Xmemcpy(tls, p+48, ts+14766, uint64(4)) + rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+32204, libc.VaList(bp+16, (*Sqlite3rbu)(unsafe.Pointer(p)).FzState)) + libc.Xmemcpy(tls, p+48, ts+14805, uint64(4)) } else { - libc.Xmemcpy(tls, p+48, ts+7684, uint64(4)) + libc.Xmemcpy(tls, p+48, ts+7719, uint64(4)) } // If it has not already been created, create the rbu_state table - rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+32257, libc.VaList(bp+24, p+48)) + rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+32222, libc.VaList(bp+24, p+48)) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { var bOpen int32 = 0 var rc int32 (*Sqlite3rbu)(unsafe.Pointer(p)).FnRbu = 0 (*Sqlite3rbu)(unsafe.Pointer(p)).FpRbuFd = uintptr(0) - rc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7684, SQLITE_FCNTL_RBUCNT, p) + rc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7719, SQLITE_FCNTL_RBUCNT, p) if rc != SQLITE_NOTFOUND { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc } @@ -212206,11 +214448,11 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr) return } (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_ERROR - (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+32323, 0) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+32288, 0) } else { var zTarget uintptr var zExtra uintptr = uintptr(0) - if libc.Xstrlen(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu) >= uint64(5) && 0 == libc.Xmemcmp(tls, ts+25397, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu, uint64(5)) { + if libc.Xstrlen(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu) >= uint64(5) && 0 == libc.Xmemcmp(tls, ts+25362, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu, uint64(5)) { zExtra = (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu + 5 for *(*int8)(unsafe.Pointer(zExtra)) != 0 { if int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zExtra, 1)))) == '?' { @@ -212222,13 +214464,13 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr) } } - zTarget = Xsqlite3_mprintf(tls, ts+32355, - libc.VaList(bp+32, Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7684), + zTarget = Xsqlite3_mprintf(tls, ts+32320, + libc.VaList(bp+32, Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7719), func() uintptr { if zExtra == uintptr(0) { return ts + 1524 /* "" */ } - return ts + 32387 /* "&" */ + return ts + 32352 /* "&" */ }(), func() uintptr { if zExtra == uintptr(0) { return ts + 1524 /* "" */ @@ -212247,40 +214489,40 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, - ts+32389, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { + ts+32354, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{rbuTmpInsertFunc})), uintptr(0), uintptr(0)) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, - ts+32404, 2, SQLITE_UTF8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + ts+32369, 2, SQLITE_UTF8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{rbuFossilDeltaFunc})), uintptr(0), uintptr(0)) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, - ts+32421, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { + ts+32386, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{rbuTargetNameFunc})), uintptr(0), uintptr(0)) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, SQLITE_FCNTL_RBU, p) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719, SQLITE_FCNTL_RBU, p) } - rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32437, 0) + rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32402, 0) // Mark the database file just opened as an RBU target database. If // this call returns SQLITE_NOTFOUND, then the RBU vfs is not in use. // This is an error. if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684, SQLITE_FCNTL_RBU, p) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719, SQLITE_FCNTL_RBU, p) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_NOTFOUND { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_ERROR - (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+32465, 0) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+32430, 0) } } @@ -212298,11 +214540,11 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr) // // Examples: // -// test.db-journal => test.nal -// test.db-wal => test.wal -// test.db-shm => test.shm -// test.db-mj7f3319fa => test.9fa -func rbuFileSuffix3(tls *libc.TLS, zBase uintptr, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206711:13: */ +// test.db-journal => test.nal +// test.db-wal => test.wal +// test.db-shm => test.shm +// test.db-mj7f3319fa => test.9fa +func rbuFileSuffix3(tls *libc.TLS, zBase uintptr, z uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208833:13: */ } // Return the current wal-index header checksum for the target database @@ -212310,7 +214552,7 @@ func rbuFileSuffix3(tls *libc.TLS, zBase uintptr, z uintptr) { /* testdata/sqlit // // The checksum is store in the first page of xShmMap memory as an 8-byte // blob starting at byte offset 40. -func rbuShmChecksum(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206732:12: */ +func rbuShmChecksum(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208854:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -212343,7 +214585,7 @@ func rbuShmChecksum(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamat // object, then the rbu handle is set to DONE state. This occurs if some // other client appends a transaction to the wal file in the middle of // an incremental checkpoint. -func rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206761:13: */ +func rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208883:13: */ // If pState is NULL, then the wal file may not have been opened and // recovered. Running a read-statement here to ensure that doing so @@ -212351,7 +214593,7 @@ func rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) { /* testdata/ if pState == uintptr(0) { (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage = 0 if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32437, uintptr(0), uintptr(0), uintptr(0)) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32402, uintptr(0), uintptr(0), uintptr(0)) } } @@ -212385,7 +214627,7 @@ func rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) { /* testdata/ if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { var rc2 int32 (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage = RBU_STAGE_CAPTURE - rc2 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32483, uintptr(0), uintptr(0), uintptr(0)) + rc2 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32448, uintptr(0), uintptr(0), uintptr(0)) if rc2 != SQLITE_INTERNAL { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc2 } @@ -212435,7 +214677,7 @@ func rbuSetupCheckpoint(tls *libc.TLS, p uintptr, pState uintptr) { /* testdata/ // Called when iAmt bytes are read from offset iOff of the wal file while // the rbu object is in capture mode. Record the frame number of the frame // being read in the aFrame[] array. -func rbuCaptureWalRead(tls *libc.TLS, pRbu uintptr, iOff I64, iAmt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206845:12: */ +func rbuCaptureWalRead(tls *libc.TLS, pRbu uintptr, iOff I64, iAmt int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208967:12: */ var mReq U32 = U32(int32(1)<<WAL_LOCK_WRITE | int32(1)<<WAL_LOCK_CKPT | int32(1)<<WAL_LOCK_READ0) var iFrame U32 @@ -212474,7 +214716,7 @@ func rbuCaptureWalRead(tls *libc.TLS, pRbu uintptr, iOff I64, iAmt int32) int32 // Called when a page of data is written to offset iOff of the database // file while the rbu handle is in capture mode. Record the page number // of the page being written in the aFrame[] array. -func rbuCaptureDbWrite(tls *libc.TLS, pRbu uintptr, iOff I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206877:12: */ +func rbuCaptureDbWrite(tls *libc.TLS, pRbu uintptr, iOff I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:208999:12: */ (*RbuFrame)(unsafe.Pointer((*Sqlite3rbu)(unsafe.Pointer(pRbu)).FaFrame + uintptr((*Sqlite3rbu)(unsafe.Pointer(pRbu)).FnFrame-1)*8)).FiDbPage = U32(iOff/I64((*Sqlite3rbu)(unsafe.Pointer(pRbu)).Fpgsz)) + U32(1) return SQLITE_OK } @@ -212482,7 +214724,7 @@ func rbuCaptureDbWrite(tls *libc.TLS, pRbu uintptr, iOff I64) int32 { /* testdat // This is called as part of an incremental checkpoint operation. Copy // a single frame of data from the wal file into the database file, as // indicated by the RbuFrame object. -func rbuCheckpointFrame(tls *libc.TLS, p uintptr, pFrame uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206887:13: */ +func rbuCheckpointFrame(tls *libc.TLS, p uintptr, pFrame uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209009:13: */ var pWal uintptr = (*Rbu_file)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer((*Sqlite3rbu)(unsafe.Pointer(p)).FpTargetFd)).FpWalFd)).FpReal var pDb uintptr = (*Rbu_file)(unsafe.Pointer((*Sqlite3rbu)(unsafe.Pointer(p)).FpTargetFd)).FpReal var iOff I64 @@ -212503,13 +214745,13 @@ func rbuCheckpointFrame(tls *libc.TLS, p uintptr, pFrame uintptr) { /* testdata/ // Take an EXCLUSIVE lock on the database file. Return SQLITE_OK if // successful, or an SQLite error code otherwise. -func rbuLockDatabase(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206906:12: */ +func rbuLockDatabase(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209028:12: */ bp := tls.Alloc(8) defer tls.Free(8) var rc int32 = SQLITE_OK *(*uintptr)(unsafe.Pointer(bp /* fd */)) = uintptr(0) - Xsqlite3_file_control(tls, db, ts+7684, SQLITE_FCNTL_FILE_POINTER, bp) + Xsqlite3_file_control(tls, db, ts+7719, SQLITE_FCNTL_FILE_POINTER, bp) if (*Sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FpMethods != 0 { rc = (*struct { @@ -212527,9 +214769,9 @@ func rbuLockDatabase(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalg // Return true if the database handle passed as the only argument // was opened with the rbu_exclusive_checkpoint=1 URI parameter // specified. Or false otherwise. -func rbuExclusiveCheckpoint(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206925:12: */ +func rbuExclusiveCheckpoint(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209047:12: */ var zUri uintptr = Xsqlite3_db_filename(tls, db, uintptr(0)) - return Xsqlite3_uri_boolean(tls, zUri, ts+32518, 0) + return Xsqlite3_uri_boolean(tls, zUri, ts+32483, 0) } // The RBU handle is currently in RBU_STAGE_OAL state, with a SHARED lock @@ -212537,20 +214779,20 @@ func rbuExclusiveCheckpoint(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlit // then reopens the database file (this time in vanilla, non-oal, WAL mode). // If an error occurs, leave an error code and error message in the rbu // handle. -func rbuMoveOalFile(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:206961:13: */ +func rbuMoveOalFile(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209083:13: */ bp := tls.Alloc(16) defer tls.Free(16) - var zBase uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7684) + var zBase uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+7719) var zMove uintptr = zBase var zOal uintptr var zWal uintptr if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - zMove = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7684) + zMove = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+7719) } - zOal = Xsqlite3_mprintf(tls, ts+32543, libc.VaList(bp, zMove)) - zWal = Xsqlite3_mprintf(tls, ts+32550, libc.VaList(bp+8, zMove)) + zOal = Xsqlite3_mprintf(tls, ts+32508, libc.VaList(bp, zMove)) + zWal = Xsqlite3_mprintf(tls, ts+32515, libc.VaList(bp+8, zMove)) if zWal == uintptr(0) || zOal == uintptr(0) { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM @@ -212609,17 +214851,17 @@ func rbuMoveOalFile(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation- // determines the type of operation requested by this row and returns // one of the following values to indicate the result: // -// * RBU_INSERT -// * RBU_DELETE -// * RBU_IDX_DELETE -// * RBU_UPDATE +// - RBU_INSERT +// - RBU_DELETE +// - RBU_IDX_DELETE +// - RBU_UPDATE // // If RBU_UPDATE is returned, then output variable *pzMask is set to // point to the text value indicating the columns to update. // // If the rbu_control field contains an invalid value, an error code and // message are left in the RBU handle and zero returned. -func rbuStepType(tls *libc.TLS, p uintptr, pzMask uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207066:12: */ +func rbuStepType(tls *libc.TLS, p uintptr, pzMask uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209188:12: */ var iCol int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FnCol // Index of rbu_control column var res int32 = 0 // Return value @@ -212675,7 +214917,7 @@ func rbuStepType(tls *libc.TLS, p uintptr, pzMask uintptr) int32 { /* testdata/s // Argument eType must be one of RBU_INSERT, RBU_DELETE, RBU_IDX_INSERT or // RBU_IDX_DELETE. This function performs the work of a single // sqlite3rbu_step() call for the type of operation specified by eType. -func rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207122:13: */ +func rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209244:13: */ var pIter uintptr = p + 80 var pVal uintptr var pWriter uintptr @@ -212703,7 +214945,7 @@ func rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) { /* testdata/sqlite-am (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx == uintptr(0) && (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_IPK && *(*U8)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FabTblPk + uintptr(i))) != 0 && Xsqlite3_column_type(tls, (*RbuObjIter)(unsafe.Pointer(pIter)).FpSelect, i) == SQLITE_NULL { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_MISMATCH - (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+25035, 0) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+25000, 0) return } @@ -212747,7 +214989,7 @@ func rbuStepOneOp(tls *libc.TLS, p uintptr, eType int32) { /* testdata/sqlite-am // If no error occurs, SQLITE_OK is returned. Otherwise, an error code // and message is left in the RBU handle and a copy of the error code // returned. -func rbuStep(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207205:12: */ +func rbuStep(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209327:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -212806,7 +215048,7 @@ func rbuStep(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3 // Or, if this is an RBU vacuum, set the schema cookie of the main db // opened by p->dbMain to one more than the schema cookie of the main // db opened by p->dbRbu. -func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207270:13: */ +func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209392:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -212821,7 +215063,7 @@ func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama // var pStmt uintptr at bp+8, 8 (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareAndCollectError(tls, dbread, bp+8, p+64, - ts+32557) + ts+32522) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { // Coverage: it may be that this sqlite3_step() cannot fail. There // is already a transaction open, so the prepared statement cannot @@ -212834,7 +215076,7 @@ func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 8 /* pStmt */))) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { - rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32579, libc.VaList(bp, iCookie+1)) + rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32544, libc.VaList(bp, iCookie+1)) } } } @@ -212842,7 +215084,7 @@ func rbuIncrSchemaCookie(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama // Update the contents of the rbu_state table within the rbu database. The // value stored in the RBU_STATE_STAGE column is eStage. All other values // are determined by inspecting the rbu handle passed as the first argument. -func rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207301:13: */ +func rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209423:13: */ bp := tls.Alloc(176) defer tls.Free(176) @@ -212859,7 +215101,7 @@ func rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) { /* testdata/sqlite-a rc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp+168, p+64, Xsqlite3_mprintf(tls, - ts+32606, + ts+32571, libc.VaList(bp, p+48, RBU_STATE_STAGE, eStage, RBU_STATE_TBL, (*Sqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FzTbl, @@ -212886,27 +215128,27 @@ func rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) { /* testdata/sqlite-a // setting - "page_size", "auto_vacuum", "user_version" or "application_id". // This function executes the following on sqlite3rbu.dbRbu: // -// "PRAGMA main.$zPragma" +// "PRAGMA main.$zPragma" // // where $zPragma is the string passed as the second argument, then // on sqlite3rbu.dbMain: // -// "PRAGMA main.$zPragma = $val" +// "PRAGMA main.$zPragma = $val" // // where $val is the value returned by the first PRAGMA invocation. // // In short, it copies the value of the specified PRAGMA setting from // dbRbu to dbMain. -func rbuCopyPragma(tls *libc.TLS, p uintptr, zPragma uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207362:13: */ +func rbuCopyPragma(tls *libc.TLS, p uintptr, zPragma uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209484:13: */ bp := tls.Alloc(32) defer tls.Free(32) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { *(*uintptr)(unsafe.Pointer(bp + 24 /* pPragma */)) = uintptr(0) (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp+24, p+64, - Xsqlite3_mprintf(tls, ts+32764, libc.VaList(bp, zPragma))) + Xsqlite3_mprintf(tls, ts+32729, libc.VaList(bp, zPragma))) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 24))) { - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32779, + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32744, libc.VaList(bp+8, zPragma, Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pPragma */)), 0))) } rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 24 /* pPragma */))) @@ -212916,18 +215158,18 @@ func rbuCopyPragma(tls *libc.TLS, p uintptr, zPragma uintptr) { /* testdata/sqli // The RBU handle passed as the only argument has just been opened and // the state database is empty. If this RBU handle was opened for an // RBU vacuum operation, create the schema in the target db. -func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207382:13: */ +func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209504:13: */ bp := tls.Alloc(16) defer tls.Free(16) *(*uintptr)(unsafe.Pointer(bp /* pSql */)) = uintptr(0) *(*uintptr)(unsafe.Pointer(bp + 8 /* pInsert */)) = uintptr(0) - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32799, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+32764, uintptr(0), uintptr(0), p+64) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, - ts+32824) + ts+32789) } for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == SQLITE_ROW { @@ -212941,12 +215183,12 @@ func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalga if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, - ts+32932) + ts+32897) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+8, p+64, - ts+32997) + ts+32962) } for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == SQLITE_ROW { @@ -212958,7 +215200,7 @@ func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalga (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_reset(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* pInsert */))) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+33041, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+33006, uintptr(0), uintptr(0), p+64) } rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp /* pSql */))) @@ -212966,7 +215208,7 @@ func rbuCreateTargetSchema(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalga } // Step the RBU object. -func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207434:16: */ +func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209556:16: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -212980,8 +215222,8 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // when this handle was opened, create the target database schema. if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) && (*Sqlite3rbu)(unsafe.Pointer(p)).FnProgress == 0 && (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { rbuCreateTargetSchema(tls, p) - rbuCopyPragma(tls, p, ts+18526) - rbuCopyPragma(tls, p, ts+17616) + rbuCopyPragma(tls, p, ts+18556) + rbuCopyPragma(tls, p, ts+17646) } for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl != 0 { @@ -212992,7 +215234,7 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // But the contents can be deleted. if libc.Bool32((*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0)) == 0 && (*RbuObjIter)(unsafe.Pointer(pIter)).FabIndexed != 0 { rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, - ts+33066, libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl)) + ts+33031, libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl)) } } else { rbuObjIterPrepareAll(tls, p, pIter, 0) @@ -213018,10 +215260,10 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg rbuSaveState(tls, p, RBU_STAGE_MOVE) rbuIncrSchemaCookie(tls, p) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+15812, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+15851, uintptr(0), uintptr(0), p+64) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15812, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15851, uintptr(0), uintptr(0), p+64) } (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage = RBU_STAGE_MOVE } @@ -213109,7 +215351,7 @@ func Xsqlite3rbu_step(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalg // Compare strings z1 and z2, returning 0 if they are identical, or non-zero // otherwise. Either or both argument may be NULL. Two NULL values are // considered equal, and NULL is considered distinct from all other values. -func rbuStrCompare(tls *libc.TLS, z1 uintptr, z2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207563:12: */ +func rbuStrCompare(tls *libc.TLS, z1 uintptr, z2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209685:12: */ if z1 == uintptr(0) && z2 == uintptr(0) { return 0 } @@ -213127,7 +215369,7 @@ func rbuStrCompare(tls *libc.TLS, z1 uintptr, z2 uintptr) int32 { /* testdata/sq // // If an error occurs, an error code and error message are left in the // rbu handle passed as the first argument. -func rbuSetupOal(tls *libc.TLS, p uintptr, pState uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207579:13: */ +func rbuSetupOal(tls *libc.TLS, p uintptr, pState uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209701:13: */ if (*RbuState)(unsafe.Pointer(pState)).FzTbl != 0 { var pIter uintptr = p + 80 @@ -213142,7 +215384,7 @@ func rbuSetupOal(tls *libc.TLS, p uintptr, pState uintptr) { /* testdata/sqlite- if rc == SQLITE_OK && !(int32((*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl) != 0) { rc = SQLITE_ERROR - (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33094, 0) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33059, 0) } if rc == SQLITE_OK { @@ -213157,11 +215399,11 @@ func rbuSetupOal(tls *libc.TLS, p uintptr, pState uintptr) { /* testdata/sqlite- // If there is a "*-oal" file in the file-system corresponding to the // target database in the file-system, delete it. If an error occurs, // leave an error code and error message in the rbu handle. -func rbuDeleteOalFile(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207612:13: */ +func rbuDeleteOalFile(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209734:13: */ bp := tls.Alloc(8) defer tls.Free(8) - var zOal uintptr = rbuMPrintf(tls, p, ts+32543, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget)) + var zOal uintptr = rbuMPrintf(tls, p, ts+32508, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget)) if zOal != 0 { var pVfs uintptr = Xsqlite3_vfs_find(tls, uintptr(0)) @@ -213176,7 +215418,7 @@ func rbuDeleteOalFile(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamatio // argument. This VFS will be used unless the call to sqlite3rbu_open() // specified a URI with a vfs=? option in place of a target database // file name. -func rbuCreateVfs(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207628:13: */ +func rbuCreateVfs(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209750:13: */ bp := tls.Alloc(76) defer tls.Free(76) @@ -213185,7 +215427,7 @@ func rbuCreateVfs(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-33 // var zRnd [64]int8 at bp+12, 64 Xsqlite3_randomness(tls, int32(unsafe.Sizeof(int32(0))), bp+8) - Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+12, ts+33119, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* rnd */)))) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+12, ts+33084, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* rnd */)))) (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3rbu_create_vfs(tls, bp+12, uintptr(0)) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { var pVfs uintptr = Xsqlite3_vfs_find(tls, bp+12) @@ -213197,7 +215439,7 @@ func rbuCreateVfs(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-33 // Destroy the private VFS created for the rbu handle passed as the only // argument by an earlier call to rbuCreateVfs(). -func rbuDeleteVfs(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207648:13: */ +func rbuDeleteVfs(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209770:13: */ if (*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName != 0 { Xsqlite3rbu_destroy_vfs(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName) (*Sqlite3rbu)(unsafe.Pointer(p)).FzVfsName = uintptr(0) @@ -213207,7 +215449,7 @@ func rbuDeleteVfs(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-33 // This user-defined SQL function is invoked with a single argument - the // name of a table expected to appear in the target database. It returns // the number of auxilliary indexes on the table. -func rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207660:13: */ +func rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209782:13: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -213224,7 +215466,7 @@ func rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { / rc = prepareFreeAndCollectError(tls, db, bp+8, bp+16, Xsqlite3_mprintf(tls, - ts+33130, libc.VaList(bp, Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal)))))) + ts+33095, libc.VaList(bp, Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal)))))) if rc != SQLITE_OK { Xsqlite3_result_error(tls, pCtx, *(*uintptr)(unsafe.Pointer(bp + 16 /* zErrmsg */)), -1) } else { @@ -213247,7 +215489,7 @@ func rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { / // the sqlite3rbu.nPhaseOneStep variable. The schema of the rbu_count table // is assumed to contain the same columns as: // -// CREATE TABLE rbu_count(tbl TEXT PRIMARY KEY, cnt INTEGER) WITHOUT ROWID; +// CREATE TABLE rbu_count(tbl TEXT PRIMARY KEY, cnt INTEGER) WITHOUT ROWID; // // There should be one row in the table for each data_xxx table in the // database. The 'tbl' column should contain the name of a data_xxx table, @@ -213256,7 +215498,7 @@ func rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { / // sqlite3rbu.nPhaseOneStep is initialized to the sum of (1 + nIndex) * cnt // for all rows in the rbu_count table, where nIndex is the number of // indexes on the corresponding target database table. -func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207710:13: */ +func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209832:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -213267,7 +215509,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgam (*Sqlite3rbu)(unsafe.Pointer(p)).FnPhaseOneStep = int64(-1) (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_create_function(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, - ts+33202, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { + ts+33167, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{rbuIndexCntFunc})), uintptr(0), uintptr(0)) @@ -213275,7 +215517,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgam // occurs, nPhaseOneStep will be left set to -1. if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, - ts+33216) + ts+33181) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { if SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) { @@ -213287,7 +215529,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgam if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && bExists != 0 { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, bp, p+64, - ts+33273) + ts+33238) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { if SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) { (*Sqlite3rbu)(unsafe.Pointer(p)).FnPhaseOneStep = Xsqlite3_column_int64(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)), 0) @@ -213298,7 +215540,7 @@ func rbuInitPhaseOneSteps(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgam } } -func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207751:19: */ +func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:209873:19: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -213333,7 +215575,7 @@ func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) libc.Xmemcpy(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu, zRbu, nRbu+uint64(1)) pCsr += uintptr(nRbu + uint64(1)) if zState != 0 { - (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+4444, libc.VaList(bp, zState)) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+4479, libc.VaList(bp, zState)) } // If the first attempt to open the database file fails and the bRetry @@ -213370,7 +215612,7 @@ func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Rbu_file)(unsafe.Pointer((*Sqlite3rbu)(unsafe.Pointer(p)).FpTargetFd)).FpWalFd != 0 { if (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage == RBU_STAGE_OAL { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_ERROR - (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33347, 0) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33312, 0) } else if (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage == RBU_STAGE_MOVE { (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage = RBU_STAGE_CKPT (*Sqlite3rbu)(unsafe.Pointer(p)).FnStep = 0 @@ -213392,12 +215634,12 @@ func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) // transaction is committed in rollback mode) currently stored on // page 1 of the database file. (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_BUSY - (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33379, + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33344, libc.VaList(bp+8, func() uintptr { if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - return ts + 33411 /* "vacuum" */ + return ts + 33376 /* "vacuum" */ } - return ts + 33418 /* "update" */ + return ts + 33383 /* "update" */ }())) } } @@ -213405,7 +215647,7 @@ func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { if (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage == RBU_STAGE_OAL { var db uintptr = (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15797, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15836, uintptr(0), uintptr(0), p+64) // Point the object iterator at the first object if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { @@ -213419,24 +215661,24 @@ func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage = RBU_STAGE_DONE } else { if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*RbuState)(unsafe.Pointer(pState)).FeStage == 0 && (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - rbuCopyPragma(tls, p, ts+18240) - rbuCopyPragma(tls, p, ts+17631) + rbuCopyPragma(tls, p, ts+18270) + rbuCopyPragma(tls, p, ts+17661) } // Open transactions both databases. The *-oal file is opened or // created at this point. if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, ts+33425, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, ts+33390, uintptr(0), uintptr(0), p+64) } // Check if the main database is a zipvfs db. If it is, set the upper // level pager to use "journal_mode=off". This prevents it from // generating a large journal using a temp file. if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { - var frc int32 = Xsqlite3_file_control(tls, db, ts+7684, SQLITE_FCNTL_ZIPVFS, uintptr(0)) + var frc int32 = Xsqlite3_file_control(tls, db, ts+7719, SQLITE_FCNTL_ZIPVFS, uintptr(0)) if frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, - db, ts+33441, uintptr(0), uintptr(0), p+64) + db, ts+33406, uintptr(0), uintptr(0), p+64) } } @@ -213471,7 +215713,7 @@ func openRbuHandle(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) // Allocate and return an RBU handle with all fields zeroed except for the // error code, which is set to SQLITE_MISUSE. -func rbuMisuseError(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207915:19: */ +func rbuMisuseError(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210037:19: */ var pRet uintptr pRet = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(Sqlite3rbu{}))) if pRet != 0 { @@ -213482,7 +215724,7 @@ func rbuMisuseError(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-338 } // Open and return a new RBU handle. -func Xsqlite3rbu_open(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207928:23: */ +func Xsqlite3rbu_open(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210050:23: */ if zTarget == uintptr(0) || zRbu == uintptr(0) { return rbuMisuseError(tls) } @@ -213490,13 +215732,13 @@ func Xsqlite3rbu_open(tls *libc.TLS, zTarget uintptr, zRbu uintptr, zState uintp } // Open a handle to begin or resume an RBU VACUUM operation. -func Xsqlite3rbu_vacuum(tls *libc.TLS, zTarget uintptr, zState uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207940:23: */ +func Xsqlite3rbu_vacuum(tls *libc.TLS, zTarget uintptr, zState uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210062:23: */ if zTarget == uintptr(0) { return rbuMisuseError(tls) } if zState != 0 { var n int32 = int32(libc.Xstrlen(tls, zState)) - if n >= 7 && 0 == libc.Xmemcmp(tls, ts+33465, zState+uintptr(n-7), uint64(7)) { + if n >= 7 && 0 == libc.Xmemcmp(tls, ts+33430, zState+uintptr(n-7), uint64(7)) { return rbuMisuseError(tls) } } @@ -213505,7 +215747,7 @@ func Xsqlite3rbu_vacuum(tls *libc.TLS, zTarget uintptr, zState uintptr) uintptr } // Return the database handle used by pRbu. -func Xsqlite3rbu_db(tls *libc.TLS, pRbu uintptr, bRbu int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207958:20: */ +func Xsqlite3rbu_db(tls *libc.TLS, pRbu uintptr, bRbu int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210080:20: */ var db uintptr = uintptr(0) if pRbu != 0 { db = func() uintptr { @@ -213521,12 +215763,12 @@ func Xsqlite3rbu_db(tls *libc.TLS, pRbu uintptr, bRbu int32) uintptr { /* testda // If the error code currently stored in the RBU handle is SQLITE_CONSTRAINT, // then edit any error message string so as to remove all occurrences of // the pattern "rbu_imp_[0-9]*". -func rbuEditErrmsg(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207972:13: */ +func rbuEditErrmsg(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210094:13: */ if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_CONSTRAINT && (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg != 0 { var i uint32 var nErrmsg Size_t = libc.Xstrlen(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg) for i = uint32(0); Size_t(i) < nErrmsg-uint64(8); i++ { - if libc.Xmemcmp(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg+uintptr(i), ts+31491, uint64(8)) == 0 { + if libc.Xmemcmp(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg+uintptr(i), ts+31456, uint64(8)) == 0 { var nDel int32 = 8 for int32(*(*int8)(unsafe.Pointer((*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg + uintptr(i+uint32(nDel))))) >= '0' && int32(*(*int8)(unsafe.Pointer((*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg + uintptr(i+uint32(nDel))))) <= '9' { nDel++ @@ -213539,13 +215781,13 @@ func rbuEditErrmsg(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3 } // Close the RBU handle. -func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:207990:16: */ +func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210112:16: */ var rc int32 if p != 0 { // Commit the transaction to the *-oal file. if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage == RBU_STAGE_OAL { - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+15812, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+15851, uintptr(0), uintptr(0), p+64) } // Sync the db file if currently doing an incremental checkpoint @@ -213559,7 +215801,7 @@ func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* te rbuSaveState(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage == RBU_STAGE_OAL { - (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15812, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15851, uintptr(0), uintptr(0), p+64) } // Close any open statement handles. @@ -213571,7 +215813,7 @@ func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* te // specifying the current target and state databases to start a new // vacuum from scratch. if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) && (*Sqlite3rbu)(unsafe.Pointer(p)).Frc != SQLITE_OK && (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu != 0 { - var rc2 int32 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+33473, uintptr(0), uintptr(0), uintptr(0)) + var rc2 int32 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+33438, uintptr(0), uintptr(0), uintptr(0)) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_DONE && rc2 != SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc2 } @@ -213604,13 +215846,13 @@ func Xsqlite3rbu_close(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* te // Return the total number of key-value operations (inserts, deletes or // updates) that have been performed on the target database since the // current RBU update was started. -func Xsqlite3rbu_progress(tls *libc.TLS, pRbu uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208053:26: */ +func Xsqlite3rbu_progress(tls *libc.TLS, pRbu uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210175:26: */ return Sqlite3_int64((*Sqlite3rbu)(unsafe.Pointer(pRbu)).FnProgress) } // Return permyriadage progress indications for the two main stages of // an RBU update. -func Xsqlite3rbu_bp_progress(tls *libc.TLS, p uintptr, pnOne uintptr, pnTwo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208061:17: */ +func Xsqlite3rbu_bp_progress(tls *libc.TLS, p uintptr, pnOne uintptr, pnTwo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210183:17: */ var MAX_PROGRESS int32 = 10000 switch (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage { case RBU_STAGE_OAL: @@ -213643,7 +215885,7 @@ func Xsqlite3rbu_bp_progress(tls *libc.TLS, p uintptr, pnOne uintptr, pnTwo uint } // Return the current state of the RBU vacuum or update operation. -func Xsqlite3rbu_state(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208096:16: */ +func Xsqlite3rbu_state(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210218:16: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -213661,7 +215903,7 @@ func Xsqlite3rbu_state(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amal return int32(0) } -func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208124:16: */ +func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210246:16: */ var rc int32 = (*Sqlite3rbu)(unsafe.Pointer(p)).Frc if rc == SQLITE_DONE { return SQLITE_OK @@ -213670,7 +215912,7 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite- if (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage == RBU_STAGE_OAL { if rc == SQLITE_OK { - rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+15812, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+15851, uintptr(0), uintptr(0), uintptr(0)) } } @@ -213689,19 +215931,19 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite- if (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage == RBU_STAGE_OAL { if rc == SQLITE_OK { - rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15812, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+15851, uintptr(0), uintptr(0), uintptr(0)) } if rc == SQLITE_OK { var zBegin uintptr if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - zBegin = ts + 15797 /* "BEGIN" */ + zBegin = ts + 15836 /* "BEGIN" */ } else { - zBegin = ts + 33425 /* "BEGIN IMMEDIATE" */ + zBegin = ts + 33390 /* "BEGIN IMMEDIATE" */ } rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, zBegin, uintptr(0), uintptr(0), uintptr(0)) } if rc == SQLITE_OK { - rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+33425, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+33390, uintptr(0), uintptr(0), uintptr(0)) } } @@ -213768,7 +216010,7 @@ func Xsqlite3rbu_savestate(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite- // relinquished). Finally, calls to xSync() on the target database // file fail with SQLITE_INTERNAL errors. -func rbuUnlockShm(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208217:13: */ +func rbuUnlockShm(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210339:13: */ if (*Rbu_file)(unsafe.Pointer(p)).FpRbu != 0 { var xShmLock uintptr = (*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer(p)).FpReal)).FpMethods)).FxShmLock @@ -213784,8 +216026,7 @@ func rbuUnlockShm(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-33 } } -// -func rbuUpdateTempSize(tls *libc.TLS, pFd uintptr, nNew Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208233:12: */ +func rbuUpdateTempSize(tls *libc.TLS, pFd uintptr, nNew Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210355:12: */ var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(pFd)).FpRbu var nDiff I64 = nNew - (*Rbu_file)(unsafe.Pointer(pFd)).Fsz *(*I64)(unsafe.Pointer(pRbu + 360)) += nDiff @@ -213803,7 +216044,7 @@ func rbuUpdateTempSize(tls *libc.TLS, pFd uintptr, nNew Sqlite3_int64) int32 { / // for all file descriptors with rbu_file.pDb!=0. If the argument has // rbu_file.pDb!=0, then it is assumed to already be present on the // main list and is only added to the pDb!=0 list. -func rbuMainlistAdd(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208251:13: */ +func rbuMainlistAdd(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210373:13: */ var pRbuVfs uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbuVfs var pIter uintptr @@ -213825,7 +216066,7 @@ func rbuMainlistAdd(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation- } // Remove an item from the main-db lists. -func rbuMainlistRemove(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208273:13: */ +func rbuMainlistRemove(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210395:13: */ var pp uintptr Xsqlite3_mutex_enter(tls, (*Rbu_vfs)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer(p)).FpRbuVfs)).Fmutex) for pp = (*Rbu_file)(unsafe.Pointer(p)).FpRbuVfs + 192; *(*uintptr)(unsafe.Pointer(pp)) != 0 && *(*uintptr)(unsafe.Pointer(pp)) != p; pp = *(*uintptr)(unsafe.Pointer(pp)) + 88 { @@ -213850,7 +216091,7 @@ func rbuMainlistRemove(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamati // // If parameter bRbu is true, only search for file-descriptors with // rbu_file.pDb!=0. -func rbuFindMaindb(tls *libc.TLS, pRbuVfs uintptr, zWal uintptr, bRbu int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208294:17: */ +func rbuFindMaindb(tls *libc.TLS, pRbuVfs uintptr, zWal uintptr, bRbu int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210416:17: */ var pDb uintptr Xsqlite3_mutex_enter(tls, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fmutex) if bRbu != 0 { @@ -213865,7 +216106,7 @@ func rbuFindMaindb(tls *libc.TLS, pRbuVfs uintptr, zWal uintptr, bRbu int32) uin } // Close an rbu file. -func rbuVfsClose(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208309:12: */ +func rbuVfsClose(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210431:12: */ var p uintptr = pFile var rc int32 var i int32 @@ -213897,7 +216138,7 @@ func rbuVfsClose(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalga // Read and return an unsigned 32-bit big-endian integer from the buffer // passed as the only argument. -func rbuGetU32(tls *libc.TLS, aBuf uintptr) U32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208342:12: */ +func rbuGetU32(tls *libc.TLS, aBuf uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210464:12: */ return U32(*(*U8)(unsafe.Pointer(aBuf)))<<24 + U32(*(*U8)(unsafe.Pointer(aBuf + 1)))<<16 + U32(*(*U8)(unsafe.Pointer(aBuf + 2)))<<8 + @@ -213906,20 +216147,20 @@ func rbuGetU32(tls *libc.TLS, aBuf uintptr) U32 { /* testdata/sqlite-amalgamatio // Write an unsigned 32-bit value in big-endian format to the supplied // buffer. -func rbuPutU32(tls *libc.TLS, aBuf uintptr, iVal U32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208353:13: */ +func rbuPutU32(tls *libc.TLS, aBuf uintptr, iVal U32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210475:13: */ *(*U8)(unsafe.Pointer(aBuf)) = U8(iVal >> 24 & U32(0xFF)) *(*U8)(unsafe.Pointer(aBuf + 1)) = U8(iVal >> 16 & U32(0xFF)) *(*U8)(unsafe.Pointer(aBuf + 2)) = U8(iVal >> 8 & U32(0xFF)) *(*U8)(unsafe.Pointer(aBuf + 3)) = U8(iVal >> 0 & U32(0xFF)) } -func rbuPutU16(tls *libc.TLS, aBuf uintptr, iVal U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208360:13: */ +func rbuPutU16(tls *libc.TLS, aBuf uintptr, iVal U16) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210482:13: */ *(*U8)(unsafe.Pointer(aBuf)) = U8(int32(iVal) >> 8 & 0xFF) *(*U8)(unsafe.Pointer(aBuf + 1)) = U8(int32(iVal) >> 0 & 0xFF) } // Read data from an rbuVfs-file. -func rbuVfsRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208368:12: */ +func rbuVfsRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210490:12: */ var p uintptr = pFile var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu var rc int32 @@ -213983,7 +216224,7 @@ func rbuVfsRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sq } // Write data to an rbuVfs-file. -func rbuVfsWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208434:12: */ +func rbuVfsWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210556:12: */ var p uintptr = pFile var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu var rc int32 @@ -214022,7 +216263,7 @@ func rbuVfsWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst S } // Truncate an rbuVfs-file. -func rbuVfsTruncate(tls *libc.TLS, pFile uintptr, size Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208477:12: */ +func rbuVfsTruncate(tls *libc.TLS, pFile uintptr, size Sqlite_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210599:12: */ var p uintptr = pFile if (*Rbu_file)(unsafe.Pointer(p)).FopenFlags&SQLITE_OPEN_DELETEONCLOSE != 0 && (*Rbu_file)(unsafe.Pointer(p)).FpRbu != 0 { var rc int32 = rbuUpdateTempSize(tls, p, size) @@ -214036,7 +216277,7 @@ func rbuVfsTruncate(tls *libc.TLS, pFile uintptr, size Sqlite_int64) int32 { /* } // Sync an rbuVfs-file. -func rbuVfsSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208489:12: */ +func rbuVfsSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210611:12: */ var p uintptr = pFile if (*Rbu_file)(unsafe.Pointer(p)).FpRbu != 0 && (*Sqlite3rbu)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer(p)).FpRbu)).FeStage == RBU_STAGE_CAPTURE { if (*Rbu_file)(unsafe.Pointer(p)).FopenFlags&SQLITE_OPEN_MAIN_DB != 0 { @@ -214050,7 +216291,7 @@ func rbuVfsSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* testdata/s } // Return the current file-size of an rbuVfs-file. -func rbuVfsFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208503:12: */ +func rbuVfsFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210625:12: */ var p uintptr = pFile var rc int32 rc = (*struct { @@ -214070,7 +216311,7 @@ func rbuVfsFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* test } // Lock an rbuVfs-file. -func rbuVfsLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208524:12: */ +func rbuVfsLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210646:12: */ var p uintptr = pFile var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu var rc int32 = SQLITE_OK @@ -214090,7 +216331,7 @@ func rbuVfsLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata/s } // Unlock an rbuVfs-file. -func rbuVfsUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208546:12: */ +func rbuVfsUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210668:12: */ var p uintptr = pFile return (*struct { f func(*libc.TLS, uintptr, int32) int32 @@ -214098,7 +216339,7 @@ func rbuVfsUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* testdata } // Check if another file-handle holds a RESERVED lock on an rbuVfs-file. -func rbuVfsCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208554:12: */ +func rbuVfsCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210676:12: */ var p uintptr = pFile return (*struct { f func(*libc.TLS, uintptr, uintptr) int32 @@ -214106,7 +216347,7 @@ func rbuVfsCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int3 } // File control method. For custom operations on an rbuVfs-file. -func rbuVfsFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208562:12: */ +func rbuVfsFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210684:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -214133,7 +216374,7 @@ func rbuVfsFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int })(unsafe.Pointer(&struct{ uintptr }{xControl})).f(tls, (*Rbu_file)(unsafe.Pointer(p)).FpReal, SQLITE_FCNTL_ZIPVFS, bp+16 /* &dummy */) if rc == SQLITE_OK { rc = SQLITE_ERROR - (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33500, 0) + (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FzErrmsg = Xsqlite3_mprintf(tls, ts+33465, 0) } else if rc == SQLITE_NOTFOUND { (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FpTargetFd = p (*Rbu_file)(unsafe.Pointer(p)).FpRbu = pRbu @@ -214158,7 +216399,7 @@ func rbuVfsFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int if rc == SQLITE_OK && op == SQLITE_FCNTL_VFSNAME { var pRbuVfs uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbuVfs var zIn uintptr = *(*uintptr)(unsafe.Pointer(pArg)) - var zOut uintptr = Xsqlite3_mprintf(tls, ts+33523, libc.VaList(bp, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn)) + var zOut uintptr = Xsqlite3_mprintf(tls, ts+33488, libc.VaList(bp, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn)) *(*uintptr)(unsafe.Pointer(pArg)) = zOut if zOut == uintptr(0) { rc = SQLITE_NOMEM @@ -214169,7 +216410,7 @@ func rbuVfsFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int } // Return the sector-size in bytes for an rbuVfs-file. -func rbuVfsSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208618:12: */ +func rbuVfsSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210740:12: */ var p uintptr = pFile return (*struct { f func(*libc.TLS, uintptr) int32 @@ -214177,7 +216418,7 @@ func rbuVfsSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-a } // Return the device characteristic flags supported by an rbuVfs-file. -func rbuVfsDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208626:12: */ +func rbuVfsDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210748:12: */ var p uintptr = pFile return (*struct { f func(*libc.TLS, uintptr) int32 @@ -214185,7 +216426,7 @@ func rbuVfsDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* testda } // Take or release a shared-memory lock. -func rbuVfsShmLock(tls *libc.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208634:12: */ +func rbuVfsShmLock(tls *libc.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210756:12: */ var p uintptr = pFile var pRbu uintptr = (*Rbu_file)(unsafe.Pointer(p)).FpRbu var rc int32 = SQLITE_OK @@ -214218,7 +216459,7 @@ func rbuVfsShmLock(tls *libc.TLS, pFile uintptr, ofst int32, n int32, flags int3 } // Obtain a pointer to a mapping of a single 32KiB page of the *-shm file. -func rbuVfsShmMap(tls *libc.TLS, pFile uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208672:12: */ +func rbuVfsShmMap(tls *libc.TLS, pFile uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210794:12: */ var p uintptr = pFile var rc int32 = SQLITE_OK var eStage int32 = func() int32 { @@ -214275,13 +216516,13 @@ func rbuVfsShmMap(tls *libc.TLS, pFile uintptr, iRegion int32, szRegion int32, i } // Memory barrier. -func rbuVfsShmBarrier(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208730:13: */ +func rbuVfsShmBarrier(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210852:13: */ var p uintptr = pFile (*struct{ f func(*libc.TLS, uintptr) })(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_io_methods)(unsafe.Pointer((*Sqlite3_file)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer(p)).FpReal)).FpMethods)).FxShmBarrier})).f(tls, (*Rbu_file)(unsafe.Pointer(p)).FpReal) } // The xShmUnmap method. -func rbuVfsShmUnmap(tls *libc.TLS, pFile uintptr, delFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208738:12: */ +func rbuVfsShmUnmap(tls *libc.TLS, pFile uintptr, delFlag int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210860:12: */ var p uintptr = pFile var rc int32 = SQLITE_OK var eStage int32 = func() int32 { @@ -214304,7 +216545,7 @@ func rbuVfsShmUnmap(tls *libc.TLS, pFile uintptr, delFlag int32) int32 { /* test } // Open an rbu file handle. -func rbuVfsOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208757:12: */ +func rbuVfsOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210879:12: */ var pRbuVfs uintptr = pVfs var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).FpRealVfs var pFd uintptr = pFile @@ -214331,7 +216572,7 @@ func rbuVfsOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags // This call is to open a *-wal file. Intead, open the *-oal. var nOpen Size_t if (*Sqlite3rbu)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer(pDb)).FpRbu)).FzTarget == uintptr(0) { - zOpen = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer(pDb)).FpRbu)).FdbRbu, ts+7684) + zOpen = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer(pDb)).FpRbu)).FdbRbu, ts+7719) zOpen = Xsqlite3_filename_wal(tls, zOpen) } nOpen = libc.Xstrlen(tls, zOpen) @@ -214346,7 +216587,7 @@ func rbuVfsOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags } if oflags&SQLITE_OPEN_MAIN_DB != 0 && - Xsqlite3_uri_boolean(tls, zName, ts+33534, 0) != 0 { + Xsqlite3_uri_boolean(tls, zName, ts+33499, 0) != 0 { oflags = SQLITE_OPEN_TEMP_DB | SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE zOpen = uintptr(0) @@ -214390,10 +216631,10 @@ var rbuvfs_io_methods = Sqlite3_io_methods{ FxShmLock: 0, // xShmLock FxShmBarrier: 0, // xShmBarrier FxShmUnmap: 0, // xFetch, xUnfetch -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208764:29 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210886:29 */ // Delete the file located at zPath. -func rbuVfsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208855:12: */ +func rbuVfsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210977:12: */ var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs return (*struct { f func(*libc.TLS, uintptr, uintptr, int32) int32 @@ -214402,7 +216643,7 @@ func rbuVfsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int // Test for access permissions. Return true if the requested permission // is available, or false otherwise. -func rbuVfsAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208864:12: */ +func rbuVfsAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:210986:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -214447,7 +216688,7 @@ func rbuVfsAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResO // Populate buffer zOut with the full canonical pathname corresponding // to the pathname in zPath. zOut is guaranteed to point to a buffer // of at least (DEVSYM_MAX_PATHNAME+1) bytes. -func rbuVfsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208912:12: */ +func rbuVfsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211034:12: */ var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs return (*struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32 @@ -214455,7 +216696,7 @@ func rbuVfsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, } // Open the dynamic library located at zPath and return a handle. -func rbuVfsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208926:13: */ +func rbuVfsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211048:13: */ var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs return (*struct { f func(*libc.TLS, uintptr, uintptr) uintptr @@ -214465,7 +216706,7 @@ func rbuVfsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* testd // Populate the buffer zErrMsg (size nByte bytes) with a human readable // utf-8 string describing the most recent error encountered associated // with dynamic libraries. -func rbuVfsDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208936:13: */ +func rbuVfsDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211058:13: */ var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs (*struct { f func(*libc.TLS, uintptr, int32, uintptr) @@ -214473,7 +216714,7 @@ func rbuVfsDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { } // Return a pointer to the symbol zSymbol in the dynamic library pHandle. -func rbuVfsDlSym(tls *libc.TLS, pVfs uintptr, pArg uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208944:13: */ +func rbuVfsDlSym(tls *libc.TLS, pVfs uintptr, pArg uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211066:13: */ var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs return (*struct { f func(*libc.TLS, uintptr, uintptr, uintptr) uintptr @@ -214481,7 +216722,7 @@ func rbuVfsDlSym(tls *libc.TLS, pVfs uintptr, pArg uintptr, zSym uintptr) uintpt } // Close the dynamic library handle pHandle. -func rbuVfsDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208956:13: */ +func rbuVfsDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211078:13: */ var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs (*struct { f func(*libc.TLS, uintptr, uintptr) @@ -214490,7 +216731,7 @@ func rbuVfsDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* testdata/s // Populate the buffer pointed to by zBufOut with nByte bytes of // random data. -func rbuVfsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208966:12: */ +func rbuVfsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211088:12: */ var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs return (*struct { f func(*libc.TLS, uintptr, int32, uintptr) int32 @@ -214499,7 +216740,7 @@ func rbuVfsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) // Sleep for nMicro microseconds. Return the number of microseconds // actually slept. -func rbuVfsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208975:12: */ +func rbuVfsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211097:12: */ var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs return (*struct { f func(*libc.TLS, uintptr, int32) int32 @@ -214507,7 +216748,7 @@ func rbuVfsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* testdata/ } // Return the current time as a Julian Day number in *pTimeOut. -func rbuVfsCurrentTime(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208983:12: */ +func rbuVfsCurrentTime(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211105:12: */ var pRealVfs uintptr = (*Rbu_vfs)(unsafe.Pointer(pVfs)).FpRealVfs return (*struct { f func(*libc.TLS, uintptr, uintptr) int32 @@ -214515,13 +216756,13 @@ func rbuVfsCurrentTime(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* } // No-op. -func rbuVfsGetLastError(tls *libc.TLS, pVfs uintptr, a int32, b uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208991:12: */ +func rbuVfsGetLastError(tls *libc.TLS, pVfs uintptr, a int32, b uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211113:12: */ return 0 } // Deregister and destroy an RBU vfs created by an earlier call to // sqlite3rbu_create_vfs(). -func Xsqlite3rbu_destroy_vfs(tls *libc.TLS, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:208999:17: */ +func Xsqlite3rbu_destroy_vfs(tls *libc.TLS, zName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211121:17: */ var pVfs uintptr = Xsqlite3_vfs_find(tls, zName) if pVfs != 0 && (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FxOpen == *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32 @@ -214535,7 +216776,7 @@ func Xsqlite3rbu_destroy_vfs(tls *libc.TLS, zName uintptr) { /* testdata/sqlite- // Create an RBU VFS named zName that accesses the underlying file-system // via existing VFS zParent. The new object is registered as a non-default // VFS with SQLite before returning. -func Xsqlite3rbu_create_vfs(tls *libc.TLS, zName uintptr, zParent uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:209013:16: */ +func Xsqlite3rbu_create_vfs(tls *libc.TLS, zName uintptr, zParent uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211135:16: */ var pNew uintptr = uintptr(0) // Newly allocated VFS var rc int32 = SQLITE_OK @@ -214596,17 +216837,17 @@ var vfs_template = Sqlite3_vfs{ FxSleep: 0, // xSleep FxCurrentTime: 0, // xCurrentTime FxGetLastError: 0, // Unimplemented version 3 methods -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:209016:22 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211138:22 */ // Configure the aggregate temp file size limit for this RBU handle. -func Xsqlite3rbu_temp_size_limit(tls *libc.TLS, pRbu uintptr, n Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:209091:26: */ +func Xsqlite3rbu_temp_size_limit(tls *libc.TLS, pRbu uintptr, n Sqlite3_int64) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211213:26: */ if n >= int64(0) { (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FszTempLimit = n } return (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FszTempLimit } -func Xsqlite3rbu_temp_size(tls *libc.TLS, pRbu uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:209098:26: */ +func Xsqlite3rbu_temp_size(tls *libc.TLS, pRbu uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:211220:26: */ return (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FszTemp } @@ -214689,7 +216930,7 @@ type SessionTable1 = struct { FnEntry int32 FnChange int32 FapChange uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10832:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10862:9 */ //************************************************************************ @@ -214760,7 +217001,7 @@ type SessionTable1 = struct { // #include <assert.h> // #include <string.h> -type SessionTable = SessionTable1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210443:29 */ +type SessionTable = SessionTable1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212565:29 */ type SessionChange1 = struct { Fop U8 FbIndirect U8 @@ -214770,16 +217011,16 @@ type SessionChange1 = struct { F__ccgo_pad2 [4]byte FaRecord uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10832:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10862:9 */ -type SessionChange = SessionChange1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210444:30 */ +type SessionChange = SessionChange1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212566:30 */ type SessionBuffer1 = struct { FaBuf uintptr FnBuf int32 FnAlloc int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10840:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10870:9 */ -type SessionBuffer = SessionBuffer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210445:30 */ +type SessionBuffer = SessionBuffer1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212567:30 */ type SessionInput1 = struct { FbNoDiscard int32 FiCurrent int32 @@ -214793,13 +217034,13 @@ type SessionInput1 = struct { FpIn uintptr FbEof int32 F__ccgo_pad3 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10840:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10870:9 */ -type SessionInput = SessionInput1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210446:29 */ +type SessionInput = SessionInput1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212568:29 */ // Minimum chunk size used by streaming versions of functions. -var sessions_strm_chunk_size int32 = SESSIONS_STRM_CHUNK_SIZE /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210459:12 */ +var sessions_strm_chunk_size int32 = SESSIONS_STRM_CHUNK_SIZE /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212581:12 */ type SessionHook1 = struct { FpCtx uintptr @@ -214807,13 +217048,13 @@ type SessionHook1 = struct { FxNew uintptr FxCount uintptr FxDepth uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:10832:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:10862:9 */ -type SessionHook = SessionHook1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210461:28 */ +type SessionHook = SessionHook1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212583:28 */ // Write a varint with value iVal into the buffer at aBuf. Return the // number of bytes written. -func sessionVarintPut(tls *libc.TLS, aBuf uintptr, iVal int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210739:12: */ +func sessionVarintPut(tls *libc.TLS, aBuf uintptr, iVal int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212861:12: */ return int32(func() uint8 { if U32(iVal) < U32(0x80) { return uint8(func() int32 { *(*U8)(unsafe.Pointer(aBuf)) = uint8(iVal); return 1 }()) @@ -214823,13 +217064,13 @@ func sessionVarintPut(tls *libc.TLS, aBuf uintptr, iVal int32) int32 { /* testda } // Return the number of bytes required to store value iVal as a varint. -func sessionVarintLen(tls *libc.TLS, iVal int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210746:12: */ +func sessionVarintLen(tls *libc.TLS, iVal int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212868:12: */ return Xsqlite3VarintLen(tls, uint64(iVal)) } // Read a varint value from aBuf[] into *piVal. Return the number of // bytes read. -func sessionVarintGet(tls *libc.TLS, aBuf uintptr, piVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210754:12: */ +func sessionVarintGet(tls *libc.TLS, aBuf uintptr, piVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212876:12: */ return int32(func() uint8 { if int32(*(*U8)(unsafe.Pointer(aBuf))) < int32(U8(0x80)) { return uint8(func() int32 { *(*int32)(unsafe.Pointer(piVal)) = int32(U32(*(*U8)(unsafe.Pointer(aBuf)))); return 1 }()) @@ -214842,7 +217083,7 @@ func sessionVarintGet(tls *libc.TLS, aBuf uintptr, piVal uintptr) int32 { /* tes // Read a 64-bit big-endian integer value from buffer aRec[]. Return // the value read. -func sessionGetI64(tls *libc.TLS, aRec uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210765:22: */ +func sessionGetI64(tls *libc.TLS, aRec uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212887:22: */ var x U64 = U64(U32(*(*U8)(unsafe.Pointer(aRec)))<<24 | U32(int32(*(*U8)(unsafe.Pointer(aRec + 1)))<<16) | U32(int32(*(*U8)(unsafe.Pointer(aRec + 2)))<<8) | U32(*(*U8)(unsafe.Pointer(aRec + 3)))) var y U32 = U32(*(*U8)(unsafe.Pointer(aRec + uintptr(4))))<<24 | U32(int32(*(*U8)(unsafe.Pointer(aRec + uintptr(4) + 1)))<<16) | U32(int32(*(*U8)(unsafe.Pointer(aRec + uintptr(4) + 2)))<<8) | U32(*(*U8)(unsafe.Pointer(aRec + uintptr(4) + 3))) x = x<<32 + U64(y) @@ -214850,7 +217091,7 @@ func sessionGetI64(tls *libc.TLS, aRec uintptr) Sqlite3_int64 { /* testdata/sqli } // Write a 64-bit big-endian integer value to the buffer aBuf[]. -func sessionPutI64(tls *libc.TLS, aBuf uintptr, i Sqlite3_int64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210775:13: */ +func sessionPutI64(tls *libc.TLS, aBuf uintptr, i Sqlite3_int64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212897:13: */ *(*U8)(unsafe.Pointer(aBuf)) = U8(i >> 56 & int64(0xFF)) *(*U8)(unsafe.Pointer(aBuf + 1)) = U8(i >> 48 & int64(0xFF)) *(*U8)(unsafe.Pointer(aBuf + 2)) = U8(i >> 40 & int64(0xFF)) @@ -214872,7 +217113,7 @@ func sessionPutI64(tls *libc.TLS, aBuf uintptr, i Sqlite3_int64) { /* testdata/s // If no error occurs, SQLITE_OK is returned. Or, if an OOM error occurs // within a call to sqlite3_value_text() (may fail if the db is utf-16)) // SQLITE_NOMEM is returned. -func sessionSerializeValue(tls *libc.TLS, aBuf uintptr, pValue uintptr, pnWrite uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210799:12: */ +func sessionSerializeValue(tls *libc.TLS, aBuf uintptr, pValue uintptr, pnWrite uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212921:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -214960,7 +217201,7 @@ func sessionSerializeValue(tls *libc.TLS, aBuf uintptr, pValue uintptr, pnWrite // Allocate and return a pointer to a buffer nByte bytes in size. If // pSession is not NULL, increase the sqlite3_session.nMalloc variable // by the number of bytes allocated. -func sessionMalloc64(tls *libc.TLS, pSession uintptr, nByte I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210875:13: */ +func sessionMalloc64(tls *libc.TLS, pSession uintptr, nByte I64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:212997:13: */ var pRet uintptr = Xsqlite3_malloc64(tls, uint64(nByte)) if pSession != 0 { *(*I64)(unsafe.Pointer(pSession + 56)) += I64(Xsqlite3_msize(tls, pRet)) @@ -214971,7 +217212,7 @@ func sessionMalloc64(tls *libc.TLS, pSession uintptr, nByte I64) uintptr { /* te // Free buffer pFree, which must have been allocated by an earlier // call to sessionMalloc64(). If pSession is not NULL, decrease the // sqlite3_session.nMalloc counter by the number of bytes freed. -func sessionFree(tls *libc.TLS, pSession uintptr, pFree uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210886:13: */ +func sessionFree(tls *libc.TLS, pSession uintptr, pFree uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213008:13: */ if pSession != 0 { *(*I64)(unsafe.Pointer(pSession + 56)) -= I64(Xsqlite3_msize(tls, pFree)) } @@ -214994,14 +217235,14 @@ func sessionFree(tls *libc.TLS, pSession uintptr, pFree uintptr) { /* testdata/s // Append the hash of the 64-bit integer passed as the second argument to the // hash-key value passed as the first. Return the new hash-key value. -func sessionHashAppendI64(tls *libc.TLS, h uint32, i I64) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210912:21: */ +func sessionHashAppendI64(tls *libc.TLS, h uint32, i I64) uint32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213034:21: */ h = h<<3 ^ h ^ uint32(i&int64(0xFFFFFFFF)) return h<<3 ^ h ^ uint32(i>>32&int64(0xFFFFFFFF)) } // Append the hash of the blob passed via the second and third arguments to // the hash-key value passed as the first. Return the new hash-key value. -func sessionHashAppendBlob(tls *libc.TLS, h uint32, n int32, z uintptr) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210921:21: */ +func sessionHashAppendBlob(tls *libc.TLS, h uint32, n int32, z uintptr) uint32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213043:21: */ var i int32 for i = 0; i < n; i++ { h = h<<3 ^ h ^ uint32(*(*U8)(unsafe.Pointer(z + uintptr(i)))) @@ -215011,7 +217252,7 @@ func sessionHashAppendBlob(tls *libc.TLS, h uint32, n int32, z uintptr) uint32 { // Append the hash of the data type passed as the second argument to the // hash-key value passed as the first. Return the new hash-key value. -func sessionHashAppendType(tls *libc.TLS, h uint32, eType int32) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210931:21: */ +func sessionHashAppendType(tls *libc.TLS, h uint32, eType int32) uint32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213053:21: */ return h<<3 ^ h ^ uint32(eType) } @@ -215024,7 +217265,7 @@ func sessionHashAppendType(tls *libc.TLS, h uint32, eType int32) uint32 { /* tes // If an error occurs, an SQLite error code is returned and the final values // of *piHash asn *pbNullPK are undefined. Otherwise, SQLITE_OK is returned // and the output variables are set as described above. -func sessionPreupdateHash(tls *libc.TLS, pSession uintptr, pTab uintptr, bNew int32, piHash uintptr, pbNullPK uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:210946:12: */ +func sessionPreupdateHash(tls *libc.TLS, pSession uintptr, pTab uintptr, bNew int32, piHash uintptr, pbNullPK uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213068:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -215090,7 +217331,7 @@ func sessionPreupdateHash(tls *libc.TLS, pSession uintptr, pTab uintptr, bNew in // The buffer that the argument points to contains a serialized SQL value. // Return the number of bytes of space occupied by the value (including // the type byte). -func sessionSerialLen(tls *libc.TLS, a uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211011:12: */ +func sessionSerialLen(tls *libc.TLS, a uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213133:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -215116,7 +217357,7 @@ func sessionSerialLen(tls *libc.TLS, a uintptr) int32 { /* testdata/sqlite-amalg // // The bPkOnly argument is non-zero if the record at aRecord[] is from // a patchset DELETE. In this case the non-PK fields are omitted entirely. -func sessionChangeHash(tls *libc.TLS, pTab uintptr, bPkOnly int32, aRecord uintptr, nBucket int32) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211029:21: */ +func sessionChangeHash(tls *libc.TLS, pTab uintptr, bPkOnly int32, aRecord uintptr, nBucket int32) uint32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213151:21: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -215159,7 +217400,7 @@ func sessionChangeHash(tls *libc.TLS, pTab uintptr, bPkOnly int32, aRecord uintp // This function returns true if the two records apply to the same row (i.e. // have the same values stored in the primary key columns), or false // otherwise. -func sessionChangeEqual(tls *libc.TLS, pTab uintptr, bLeftPkOnly int32, aLeft uintptr, bRightPkOnly int32, aRight uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211078:12: */ +func sessionChangeEqual(tls *libc.TLS, pTab uintptr, bLeftPkOnly int32, aLeft uintptr, bRightPkOnly int32, aRight uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213200:12: */ var a1 uintptr = aLeft // Cursor to iterate through aLeft var a2 uintptr = aRight // Cursor to iterate through aRight var iCol int32 // Used to iterate through table columns @@ -215198,7 +217439,7 @@ func sessionChangeEqual(tls *libc.TLS, pTab uintptr, bLeftPkOnly int32, aLeft ui // their. Otherwise, if aLeft contains a value, copy it. If neither // record contains a value for a given column, then neither does the // output record. -func sessionMergeRecord(tls *libc.TLS, paOut uintptr, nCol int32, aLeft uintptr, aRight uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211121:13: */ +func sessionMergeRecord(tls *libc.TLS, paOut uintptr, nCol int32, aLeft uintptr, aRight uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213243:13: */ var a1 uintptr = aLeft // Cursor used to iterate through aLeft var a2 uintptr = aRight // Cursor used to iterate through aRight var aOut uintptr = *(*uintptr)(unsafe.Pointer(paOut)) // Output cursor @@ -215234,10 +217475,9 @@ func sessionMergeRecord(tls *libc.TLS, paOut uintptr, nCol int32, aLeft uintptr, // set to the number of bytes in the value at *paOne. If *paOne points // to the "no value" placeholder, *pnVal is set to 1. In other words: // -// if( *paTwo is valid ) return *paTwo; -// return *paOne; -// -func sessionMergeValue(tls *libc.TLS, paOne uintptr, paTwo uintptr, pnVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211167:11: */ +// if( *paTwo is valid ) return *paTwo; +// return *paOne; +func sessionMergeValue(tls *libc.TLS, paOne uintptr, paTwo uintptr, pnVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213289:11: */ var a1 uintptr = *(*uintptr)(unsafe.Pointer(paOne)) var a2 uintptr = *(*uintptr)(unsafe.Pointer(paTwo)) var pRet uintptr = uintptr(0) @@ -215264,7 +217504,7 @@ func sessionMergeValue(tls *libc.TLS, paOne uintptr, paTwo uintptr, pnVal uintpt // This function is used by changeset_concat() to merge two UPDATE changes // on the same row. -func sessionMergeUpdate(tls *libc.TLS, paOut uintptr, pTab uintptr, bPatchset int32, aOldRecord1 uintptr, aOldRecord2 uintptr, aNewRecord1 uintptr, aNewRecord2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211201:12: */ +func sessionMergeUpdate(tls *libc.TLS, paOut uintptr, pTab uintptr, bPatchset int32, aOldRecord1 uintptr, aOldRecord2 uintptr, aNewRecord1 uintptr, aNewRecord2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213323:12: */ bp := tls.Alloc(52) defer tls.Free(52) @@ -215339,7 +217579,7 @@ func sessionMergeUpdate(tls *libc.TLS, paOut uintptr, pTab uintptr, bPatchset in // as the change stored in argument pChange. If so, it returns true. Otherwise // if the pre-update-hook does not affect the same row as pChange, it returns // false. -func sessionPreupdateEqual(tls *libc.TLS, pSession uintptr, pTab uintptr, pChange uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211278:12: */ +func sessionPreupdateEqual(tls *libc.TLS, pSession uintptr, pTab uintptr, pChange uintptr, op int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213400:12: */ bp := tls.Alloc(28) defer tls.Free(28) @@ -215427,7 +217667,7 @@ func sessionPreupdateEqual(tls *libc.TLS, pSession uintptr, pTab uintptr, pChang // that case the hash-table does not grow, but SQLITE_OK is returned anyway. // Growing the hash table in this case is a performance optimization only, // it is not required for correct operation. -func sessionGrowHash(tls *libc.TLS, pSession uintptr, bPatchset int32, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211357:12: */ +func sessionGrowHash(tls *libc.TLS, pSession uintptr, bPatchset int32, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213479:12: */ if (*SessionTable)(unsafe.Pointer(pTab)).FnChange == 0 || (*SessionTable)(unsafe.Pointer(pTab)).FnEntry >= (*SessionTable)(unsafe.Pointer(pTab)).FnChange/2 { var i int32 var apNew uintptr @@ -215480,18 +217720,18 @@ func sessionGrowHash(tls *libc.TLS, pSession uintptr, bPatchset int32, pTab uint // // For example, if the table is declared as: // -// CREATE TABLE tbl1(w, x, y, z, PRIMARY KEY(w, z)); +// CREATE TABLE tbl1(w, x, y, z, PRIMARY KEY(w, z)); // // Then the four output variables are populated as follows: // -// *pnCol = 4 -// *pzTab = "tbl1" -// *pazCol = {"w", "x", "y", "z"} -// *pabPK = {1, 0, 0, 1} +// *pnCol = 4 +// *pzTab = "tbl1" +// *pazCol = {"w", "x", "y", "z"} +// *pabPK = {1, 0, 0, 1} // // All returned buffers are part of the same single allocation, which must // be freed using sqlite3_free() by the caller -func sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr, zThis uintptr, pnCol uintptr, pzTab uintptr, pazCol uintptr, pabPK uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211423:12: */ +func sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr, zThis uintptr, pnCol uintptr, pzTab uintptr, pazCol uintptr, pabPK uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213545:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -215508,13 +217748,13 @@ func sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr, var abPK uintptr = uintptr(0) nThis = Xsqlite3Strlen30(tls, zThis) - if nThis == 12 && 0 == Xsqlite3_stricmp(tls, ts+12585, zThis) { + if nThis == 12 && 0 == Xsqlite3_stricmp(tls, ts+12624, zThis) { rc = Xsqlite3_table_column_metadata(tls, db, zDb, zThis, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0)) if rc == SQLITE_OK { // For sqlite_stat1, pretend that (tbl,idx) is the PRIMARY KEY. zPragma = Xsqlite3_mprintf(tls, - ts+33545, 0) + ts+33510, 0) } else if rc == SQLITE_ERROR { zPragma = Xsqlite3_mprintf(tls, ts+1524, 0) } else { @@ -215527,7 +217767,7 @@ func sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr, return rc } } else { - zPragma = Xsqlite3_mprintf(tls, ts+33666, libc.VaList(bp, zDb, zThis)) + zPragma = Xsqlite3_mprintf(tls, ts+33631, libc.VaList(bp, zDb, zThis)) } if !(zPragma != 0) { *(*uintptr)(unsafe.Pointer(pazCol)) = uintptr(0) @@ -215622,7 +217862,7 @@ func sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr, // key, sqlite3_session.rc is left set to SQLITE_OK and non-zero returned to // indicate that updates on this table should be ignored. SessionTable.abPK // is set to NULL in this case. -func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211556:12: */ +func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213678:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -215639,7 +217879,7 @@ func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /* break } } - if 0 == Xsqlite3_stricmp(tls, ts+12585, (*SessionTable)(unsafe.Pointer(pTab)).FzName) { + if 0 == Xsqlite3_stricmp(tls, ts+12624, (*SessionTable)(unsafe.Pointer(pTab)).FzName) { (*SessionTable)(unsafe.Pointer(pTab)).FbStat1 = 1 } @@ -215658,15 +217898,15 @@ func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /* type SessionStat1Ctx1 = struct { Fhook SessionHook FpSession uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211591:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213713:9 */ // Versions of the four methods in object SessionHook for use with the // sqlite_stat1 table. The purpose of this is to substitute a zero-length // blob each time a NULL value is read from the "idx" column of the // sqlite_stat1 table. -type SessionStat1Ctx = SessionStat1Ctx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211591:32 */ +type SessionStat1Ctx = SessionStat1Ctx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213713:32 */ -func sessionStat1Old(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211596:12: */ +func sessionStat1Old(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213718:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -215682,7 +217922,7 @@ func sessionStat1Old(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int return rc } -func sessionStat1New(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211606:12: */ +func sessionStat1New(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213728:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -215698,21 +217938,21 @@ func sessionStat1New(tls *libc.TLS, pCtx uintptr, iCol int32, ppVal uintptr) int return rc } -func sessionStat1Count(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211616:12: */ +func sessionStat1Count(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213738:12: */ var p uintptr = pCtx return (*struct { f func(*libc.TLS, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*SessionStat1Ctx)(unsafe.Pointer(p)).Fhook.FxCount})).f(tls, (*SessionStat1Ctx)(unsafe.Pointer(p)).Fhook.FpCtx) } -func sessionStat1Depth(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211620:12: */ +func sessionStat1Depth(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213742:12: */ var p uintptr = pCtx return (*struct { f func(*libc.TLS, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{(*SessionStat1Ctx)(unsafe.Pointer(p)).Fhook.FxDepth})).f(tls, (*SessionStat1Ctx)(unsafe.Pointer(p)).Fhook.FpCtx) } -func sessionUpdateMaxSize(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr, pC uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211625:12: */ +func sessionUpdateMaxSize(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr, pC uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213747:12: */ bp := tls.Alloc(44) defer tls.Free(44) @@ -215826,7 +218066,7 @@ func sessionUpdateMaxSize(tls *libc.TLS, op int32, pSession uintptr, pTab uintpt // // Unless one is already present or an error occurs, an entry is added // to the changed-rows hash table associated with table pTab. -func sessionPreupdateOneChange(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211731:13: */ +func sessionPreupdateOneChange(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:213853:13: */ bp := tls.Alloc(80) defer tls.Free(80) @@ -216122,7 +218362,7 @@ __35: __36: } -func sessionFindTable(tls *libc.TLS, pSession uintptr, zName uintptr, ppTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211880:12: */ +func sessionFindTable(tls *libc.TLS, pSession uintptr, zName uintptr, ppTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214002:12: */ var rc int32 = SQLITE_OK var nName int32 = Xsqlite3Strlen30(tls, zName) var pRet uintptr @@ -216157,7 +218397,7 @@ func sessionFindTable(tls *libc.TLS, pSession uintptr, zName uintptr, ppTab uint } // The 'pre-update' hook registered by this module with SQLite databases. -func xPreUpdate(tls *libc.TLS, pCtx uintptr, db uintptr, op int32, zDb uintptr, zName uintptr, iKey1 Sqlite3_int64, iKey2 Sqlite3_int64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211920:13: */ +func xPreUpdate(tls *libc.TLS, pCtx uintptr, db uintptr, op int32, zDb uintptr, zName uintptr, iKey1 Sqlite3_int64, iKey2 Sqlite3_int64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214042:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -216192,25 +218432,25 @@ func xPreUpdate(tls *libc.TLS, pCtx uintptr, db uintptr, op int32, zDb uintptr, } // The pre-update hook implementations. -func sessionPreupdateOld(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211958:12: */ +func sessionPreupdateOld(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214080:12: */ return Xsqlite3_preupdate_old(tls, pCtx, iVal, ppVal) } -func sessionPreupdateNew(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211961:12: */ +func sessionPreupdateNew(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214083:12: */ return Xsqlite3_preupdate_new(tls, pCtx, iVal, ppVal) } -func sessionPreupdateCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211964:12: */ +func sessionPreupdateCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214086:12: */ return Xsqlite3_preupdate_count(tls, pCtx) } -func sessionPreupdateDepth(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211967:12: */ +func sessionPreupdateDepth(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214089:12: */ return Xsqlite3_preupdate_depth(tls, pCtx) } // Install the pre-update hooks on the session object passed as the only // argument. -func sessionPreupdateHooks(tls *libc.TLS, pSession uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211975:13: */ +func sessionPreupdateHooks(tls *libc.TLS, pSession uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214097:13: */ (*Sqlite3_session)(unsafe.Pointer(pSession)).Fhook.FpCtx = (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb (*Sqlite3_session)(unsafe.Pointer(pSession)).Fhook.FxOld = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) int32 @@ -216230,24 +218470,24 @@ type SessionDiffCtx1 = struct { FpStmt uintptr FnOldOff int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211985:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214107:9 */ -type SessionDiffCtx = SessionDiffCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211985:31 */ +type SessionDiffCtx = SessionDiffCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214107:31 */ // The diff hook implementations. -func sessionDiffOld(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211994:12: */ +func sessionDiffOld(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214116:12: */ var p uintptr = pCtx *(*uintptr)(unsafe.Pointer(ppVal)) = Xsqlite3_column_value(tls, (*SessionDiffCtx)(unsafe.Pointer(p)).FpStmt, iVal+(*SessionDiffCtx)(unsafe.Pointer(p)).FnOldOff) return SQLITE_OK } -func sessionDiffNew(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:211999:12: */ +func sessionDiffNew(tls *libc.TLS, pCtx uintptr, iVal int32, ppVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214121:12: */ var p uintptr = pCtx *(*uintptr)(unsafe.Pointer(ppVal)) = Xsqlite3_column_value(tls, (*SessionDiffCtx)(unsafe.Pointer(p)).FpStmt, iVal) return SQLITE_OK } -func sessionDiffCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212004:12: */ +func sessionDiffCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214126:12: */ var p uintptr = pCtx if (*SessionDiffCtx)(unsafe.Pointer(p)).FnOldOff != 0 { return (*SessionDiffCtx)(unsafe.Pointer(p)).FnOldOff @@ -216255,13 +218495,13 @@ func sessionDiffCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-am return Xsqlite3_column_count(tls, (*SessionDiffCtx)(unsafe.Pointer(p)).FpStmt) } -func sessionDiffDepth(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212008:12: */ +func sessionDiffDepth(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214130:12: */ return 0 } // Install the diff hooks on the session object passed as the only // argument. -func sessionDiffHooks(tls *libc.TLS, pSession uintptr, pDiffCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212016:13: */ +func sessionDiffHooks(tls *libc.TLS, pSession uintptr, pDiffCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214138:13: */ (*Sqlite3_session)(unsafe.Pointer(pSession)).Fhook.FpCtx = pDiffCtx (*Sqlite3_session)(unsafe.Pointer(pSession)).Fhook.FxOld = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) int32 @@ -216277,7 +218517,7 @@ func sessionDiffHooks(tls *libc.TLS, pSession uintptr, pDiffCtx uintptr) { /* te }{sessionDiffDepth})) } -func sessionExprComparePK(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTab uintptr, azCol uintptr, abPK uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212027:13: */ +func sessionExprComparePK(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTab uintptr, azCol uintptr, abPK uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214149:13: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -216287,9 +218527,9 @@ func sessionExprComparePK(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, for i = 0; i < nCol; i++ { if *(*U8)(unsafe.Pointer(abPK + uintptr(i))) != 0 { - zRet = Xsqlite3_mprintf(tls, ts+33695, + zRet = Xsqlite3_mprintf(tls, ts+33660, libc.VaList(bp, zRet, zSep, zDb1, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), zDb2, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)))) - zSep = ts + 22750 /* " AND " */ + zSep = ts + 22690 /* " AND " */ if zRet == uintptr(0) { break } @@ -216299,7 +218539,7 @@ func sessionExprComparePK(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, return zRet } -func sessionExprCompareOther(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTab uintptr, azCol uintptr, abPK uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212050:13: */ +func sessionExprCompareOther(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTab uintptr, azCol uintptr, abPK uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214172:13: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -216312,9 +218552,9 @@ func sessionExprCompareOther(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintp if int32(*(*U8)(unsafe.Pointer(abPK + uintptr(i)))) == 0 { bHave = 1 zRet = Xsqlite3_mprintf(tls, - ts+33729, + ts+33694, libc.VaList(bp, zRet, zSep, zDb1, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), zDb2, zTab, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)))) - zSep = ts + 33770 /* " OR " */ + zSep = ts + 33735 /* " OR " */ if zRet == uintptr(0) { break } @@ -216323,24 +218563,24 @@ func sessionExprCompareOther(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintp if bHave == 0 { - zRet = Xsqlite3_mprintf(tls, ts+8769, 0) + zRet = Xsqlite3_mprintf(tls, ts+8808, 0) } return zRet } -func sessionSelectFindNew(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTbl uintptr, zExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212081:13: */ +func sessionSelectFindNew(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintptr, zTbl uintptr, zExpr uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214203:13: */ bp := tls.Alloc(40) defer tls.Free(40) var zRet uintptr = Xsqlite3_mprintf(tls, - ts+33775, + ts+33740, libc.VaList(bp, zDb1, zTbl, zDb2, zTbl, zExpr)) return zRet } -func sessionDiffFindNew(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr, zDb1 uintptr, zDb2 uintptr, zExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212097:12: */ +func sessionDiffFindNew(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr, zDb1 uintptr, zDb2 uintptr, zExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214219:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -216368,7 +218608,7 @@ func sessionDiffFindNew(tls *libc.TLS, op int32, pSession uintptr, pTab uintptr, return rc } -func sessionDiffFindModified(tls *libc.TLS, pSession uintptr, pTab uintptr, zFrom uintptr, zExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212128:12: */ +func sessionDiffFindModified(tls *libc.TLS, pSession uintptr, pTab uintptr, zFrom uintptr, zExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214250:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -216380,7 +218620,7 @@ func sessionDiffFindModified(tls *libc.TLS, pSession uintptr, pTab uintptr, zFro rc = SQLITE_NOMEM } else { var zStmt uintptr = Xsqlite3_mprintf(tls, - ts+33853, + ts+33818, libc.VaList(bp, (*Sqlite3_session)(unsafe.Pointer(pSession)).FzDb, (*SessionTable)(unsafe.Pointer(pTab)).FzName, zFrom, (*SessionTable)(unsafe.Pointer(pTab)).FzName, zExpr, zExpr2)) if zStmt == uintptr(0) { rc = SQLITE_NOMEM @@ -216405,7 +218645,7 @@ func sessionDiffFindModified(tls *libc.TLS, pSession uintptr, pTab uintptr, zFro return rc } -func Xsqlite3session_diff(tls *libc.TLS, pSession uintptr, zFrom uintptr, zTbl uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212168:16: */ +func Xsqlite3session_diff(tls *libc.TLS, pSession uintptr, zFrom uintptr, zTbl uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214290:16: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -216518,7 +218758,7 @@ __6: if !(pzErrMsg != 0) { goto __16 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+33906, 0) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+33871, 0) __16: ; rc = SQLITE_SCHEMA @@ -216578,7 +218818,7 @@ diff_out: // Create a session object. This session object will record changes to // database zDb attached to connection db. -func Xsqlite3session_create(tls *libc.TLS, db uintptr, zDb uintptr, ppSession uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212263:16: */ +func Xsqlite3session_create(tls *libc.TLS, db uintptr, zDb uintptr, ppSession uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214385:16: */ var pNew uintptr // Newly allocated session object var pOld uintptr // Session object already attached to db var nDb int32 = Xsqlite3Strlen30(tls, zDb) // Length of zDb in bytes @@ -216614,7 +218854,7 @@ func Xsqlite3session_create(tls *libc.TLS, db uintptr, zDb uintptr, ppSession ui // Free the list of table objects passed as the first argument. The contents // of the changed-rows hash tables are also deleted. -func sessionDeleteTable(tls *libc.TLS, pSession uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212301:13: */ +func sessionDeleteTable(tls *libc.TLS, pSession uintptr, pList uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214423:13: */ var pNext uintptr var pTab uintptr @@ -216636,7 +218876,7 @@ func sessionDeleteTable(tls *libc.TLS, pSession uintptr, pList uintptr) { /* tes } // Delete a session object previously allocated using sqlite3session_create(). -func Xsqlite3session_delete(tls *libc.TLS, pSession uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212325:17: */ +func Xsqlite3session_delete(tls *libc.TLS, pSession uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214447:17: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -216674,7 +218914,7 @@ func Xsqlite3session_delete(tls *libc.TLS, pSession uintptr) { /* testdata/sqlit } // Set a table filter on a Session Object. -func Xsqlite3session_table_filter(tls *libc.TLS, pSession uintptr, xFilter uintptr, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212357:17: */ +func Xsqlite3session_table_filter(tls *libc.TLS, pSession uintptr, xFilter uintptr, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214479:17: */ (*Sqlite3_session)(unsafe.Pointer(pSession)).FbAutoAttach = 1 (*Sqlite3_session)(unsafe.Pointer(pSession)).FpFilterCtx = pCtx (*Sqlite3_session)(unsafe.Pointer(pSession)).FxTableFilter = xFilter @@ -216686,7 +218926,7 @@ func Xsqlite3session_table_filter(tls *libc.TLS, pSession uintptr, xFilter uintp // Only tables that have a PRIMARY KEY defined may be attached. It does // not matter if the PRIMARY KEY is an "INTEGER PRIMARY KEY" (rowid alias) // or not. -func Xsqlite3session_attach(tls *libc.TLS, pSession uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212375:16: */ +func Xsqlite3session_attach(tls *libc.TLS, pSession uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214497:16: */ var rc int32 = SQLITE_OK Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb)) @@ -216737,7 +218977,7 @@ func Xsqlite3session_attach(tls *libc.TLS, pSession uintptr, zName uintptr) int3 // // If successful, return zero. Otherwise, if an OOM condition is encountered, // set *pRc to SQLITE_NOMEM and return non-zero. -func sessionBufferGrow(tls *libc.TLS, p uintptr, nByte I64, pRc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212428:12: */ +func sessionBufferGrow(tls *libc.TLS, p uintptr, nByte I64, pRc uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214550:12: */ var nReq I64 = I64((*SessionBuffer)(unsafe.Pointer(p)).FnBuf) + nByte if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK && nReq > I64((*SessionBuffer)(unsafe.Pointer(p)).FnAlloc) { var aNew uintptr @@ -216782,7 +219022,7 @@ func sessionBufferGrow(tls *libc.TLS, p uintptr, nByte I64, pRc uintptr) int32 { // This function is a no-op if *pRc is non-zero when it is called. // Otherwise, if an error occurs, *pRc is set to an SQLite error code // before returning. -func sessionAppendValue(tls *libc.TLS, p uintptr, pVal uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212471:13: */ +func sessionAppendValue(tls *libc.TLS, p uintptr, pVal uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214593:13: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -216805,7 +219045,7 @@ func sessionAppendValue(tls *libc.TLS, p uintptr, pVal uintptr, pRc uintptr) { / // // If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before // returning. -func sessionAppendByte(tls *libc.TLS, p uintptr, v U8, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212493:13: */ +func sessionAppendByte(tls *libc.TLS, p uintptr, v U8, pRc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214615:13: */ if 0 == sessionBufferGrow(tls, p, int64(1), pRc) { *(*U8)(unsafe.Pointer((*SessionBuffer)(unsafe.Pointer(p)).FaBuf + uintptr(libc.PostIncInt32(&(*SessionBuffer)(unsafe.Pointer(p)).FnBuf, 1)))) = v } @@ -216816,7 +219056,7 @@ func sessionAppendByte(tls *libc.TLS, p uintptr, v U8, pRc uintptr) { /* testdat // // If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before // returning. -func sessionAppendVarint(tls *libc.TLS, p uintptr, v int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212506:13: */ +func sessionAppendVarint(tls *libc.TLS, p uintptr, v int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214628:13: */ if 0 == sessionBufferGrow(tls, p, int64(9), pRc) { *(*int32)(unsafe.Pointer(p + 8)) += sessionVarintPut(tls, (*SessionBuffer)(unsafe.Pointer(p)).FaBuf+uintptr((*SessionBuffer)(unsafe.Pointer(p)).FnBuf), v) } @@ -216827,7 +219067,7 @@ func sessionAppendVarint(tls *libc.TLS, p uintptr, v int32, pRc uintptr) { /* te // // If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before // returning. -func sessionAppendBlob(tls *libc.TLS, p uintptr, aBlob uintptr, nBlob int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212519:13: */ +func sessionAppendBlob(tls *libc.TLS, p uintptr, aBlob uintptr, nBlob int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214641:13: */ if nBlob > 0 && 0 == sessionBufferGrow(tls, p, int64(nBlob), pRc) { libc.Xmemcpy(tls, (*SessionBuffer)(unsafe.Pointer(p)).FaBuf+uintptr((*SessionBuffer)(unsafe.Pointer(p)).FnBuf), aBlob, uint64(nBlob)) *(*int32)(unsafe.Pointer(p + 8)) += nBlob @@ -216840,7 +219080,7 @@ func sessionAppendBlob(tls *libc.TLS, p uintptr, aBlob uintptr, nBlob int32, pRc // // If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before // returning. -func sessionAppendStr(tls *libc.TLS, p uintptr, zStr uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212539:13: */ +func sessionAppendStr(tls *libc.TLS, p uintptr, zStr uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214661:13: */ var nStr int32 = Xsqlite3Strlen30(tls, zStr) if 0 == sessionBufferGrow(tls, p, int64(nStr), pRc) { libc.Xmemcpy(tls, (*SessionBuffer)(unsafe.Pointer(p)).FaBuf+uintptr((*SessionBuffer)(unsafe.Pointer(p)).FnBuf), zStr, uint64(nStr)) @@ -216854,13 +219094,13 @@ func sessionAppendStr(tls *libc.TLS, p uintptr, zStr uintptr, pRc uintptr) { /* // // If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before // returning. -func sessionAppendInteger(tls *libc.TLS, p uintptr, iVal int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212559:13: */ +func sessionAppendInteger(tls *libc.TLS, p uintptr, iVal int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214681:13: */ bp := tls.Alloc(32) defer tls.Free(32) // var aBuf [24]int8 at bp+8, 24 - Xsqlite3_snprintf(tls, int32(uint64(unsafe.Sizeof([24]int8{}))-uint64(1)), bp+8, ts+6278, libc.VaList(bp, iVal)) + Xsqlite3_snprintf(tls, int32(uint64(unsafe.Sizeof([24]int8{}))-uint64(1)), bp+8, ts+6313, libc.VaList(bp, iVal)) sessionAppendStr(tls, p, bp+8, pRc) } @@ -216871,7 +219111,7 @@ func sessionAppendInteger(tls *libc.TLS, p uintptr, iVal int32, pRc uintptr) { / // // If an OOM condition is encountered, set *pRc to SQLITE_NOMEM before // returning. -func sessionAppendIdent(tls *libc.TLS, p uintptr, zStr uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212578:13: */ +func sessionAppendIdent(tls *libc.TLS, p uintptr, zStr uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214700:13: */ var nStr int32 = Xsqlite3Strlen30(tls, zStr)*2 + 2 + 1 if 0 == sessionBufferGrow(tls, p, int64(nStr), pRc) { var zOut uintptr = (*SessionBuffer)(unsafe.Pointer(p)).FaBuf + uintptr((*SessionBuffer)(unsafe.Pointer(p)).FnBuf) @@ -216892,7 +219132,7 @@ func sessionAppendIdent(tls *libc.TLS, p uintptr, zStr uintptr, pRc uintptr) { / // called. Otherwse, it appends the serialized version of the value stored // in column iCol of the row that SQL statement pStmt currently points // to to the buffer. -func sessionAppendCol(tls *libc.TLS, p uintptr, pStmt uintptr, iCol int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212603:13: */ +func sessionAppendCol(tls *libc.TLS, p uintptr, pStmt uintptr, iCol int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214725:13: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -216932,14 +219172,13 @@ func sessionAppendCol(tls *libc.TLS, p uintptr, pStmt uintptr, iCol int32, pRc u } } -// // This function appends an update change to the buffer (see the comments // under "CHANGESET FORMAT" at the top of the file). An update change // consists of: // -// 1 byte: SQLITE_UPDATE (0x17) -// n bytes: old.* record (see RECORD FORMAT) -// m bytes: new.* record (see RECORD FORMAT) +// 1 byte: SQLITE_UPDATE (0x17) +// n bytes: old.* record (see RECORD FORMAT) +// m bytes: new.* record (see RECORD FORMAT) // // The SessionChange object passed as the third argument contains the // values that were stored in the row when the session began (the old.* @@ -216952,7 +219191,7 @@ func sessionAppendCol(tls *libc.TLS, p uintptr, pStmt uintptr, iCol int32, pRc u // Otherwise, the old.* record contains all primary key values and the // original values of any fields that have been modified. The new.* record // contains the new values of only those fields that have been modified. -func sessionAppendUpdate(tls *libc.TLS, pBuf uintptr, bPatchset int32, pStmt uintptr, p uintptr, abPK uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212665:12: */ +func sessionAppendUpdate(tls *libc.TLS, pBuf uintptr, bPatchset int32, pStmt uintptr, p uintptr, abPK uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214787:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -217058,7 +219297,7 @@ func sessionAppendUpdate(tls *libc.TLS, pBuf uintptr, bPatchset int32, pStmt uin // Append a DELETE change to the buffer passed as the first argument. Use // the changeset format if argument bPatchset is zero, or the patchset // format otherwise. -func sessionAppendDelete(tls *libc.TLS, pBuf uintptr, bPatchset int32, p uintptr, nCol int32, abPK uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212765:12: */ +func sessionAppendDelete(tls *libc.TLS, pBuf uintptr, bPatchset int32, p uintptr, nCol int32, abPK uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214887:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -217114,8 +219353,8 @@ func sessionAppendDelete(tls *libc.TLS, pBuf uintptr, bPatchset int32, p uintptr // Formulate and prepare a SELECT statement to retrieve a row from table // zTab in database zDb based on its primary key. i.e. // -// SELECT * FROM zDb.zTab WHERE pk1 = ? AND pk2 = ? AND ... -func sessionSelectStmt(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, nCol int32, azCol uintptr, abPK uintptr, ppStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212820:12: */ +// SELECT * FROM zDb.zTab WHERE pk1 = ? AND pk2 = ? AND ... +func sessionSelectStmt(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, nCol int32, azCol uintptr, abPK uintptr, ppStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214942:12: */ bp := tls.Alloc(28) defer tls.Free(28) @@ -217123,10 +219362,10 @@ func sessionSelectStmt(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, nCo var zSql uintptr = uintptr(0) var nSql int32 = -1 - if 0 == Xsqlite3_stricmp(tls, ts+12585, zTab) { + if 0 == Xsqlite3_stricmp(tls, ts+12624, zTab) { zSql = Xsqlite3_mprintf(tls, - ts+33933, libc.VaList(bp, zDb)) + ts+33898, libc.VaList(bp, zDb)) if zSql == uintptr(0) { *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = SQLITE_NOMEM } @@ -217135,18 +219374,18 @@ func sessionSelectStmt(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, nCo var zSep uintptr = ts + 1524 /* "" */ *(*SessionBuffer)(unsafe.Pointer(bp + 8 /* buf */)) = SessionBuffer{} - sessionAppendStr(tls, bp+8, ts+34043, bp+24) + sessionAppendStr(tls, bp+8, ts+34008, bp+24) sessionAppendIdent(tls, bp+8, zDb, bp+24) sessionAppendStr(tls, bp+8, ts+1537, bp+24) sessionAppendIdent(tls, bp+8, zTab, bp+24) - sessionAppendStr(tls, bp+8, ts+34058, bp+24) + sessionAppendStr(tls, bp+8, ts+34023, bp+24) for i = 0; i < nCol; i++ { if *(*U8)(unsafe.Pointer(abPK + uintptr(i))) != 0 { sessionAppendStr(tls, bp+8, zSep, bp+24) sessionAppendIdent(tls, bp+8, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), bp+24) - sessionAppendStr(tls, bp+8, ts+34066, bp+24) + sessionAppendStr(tls, bp+8, ts+34031, bp+24) sessionAppendInteger(tls, bp+8, i+1, bp+24) - zSep = ts + 22750 /* " AND " */ + zSep = ts + 22690 /* " AND " */ } } zSql = (*SessionBuffer)(unsafe.Pointer(bp + 8 /* &buf */)).FaBuf @@ -217166,7 +219405,7 @@ func sessionSelectStmt(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, nCo // // Return SQLITE_OK if all PK values are successfully bound, or an SQLite // error code (e.g. SQLITE_NOMEM) otherwise. -func sessionSelectBind(tls *libc.TLS, pSelect uintptr, nCol int32, abPK uintptr, pChange uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212877:12: */ +func sessionSelectBind(tls *libc.TLS, pSelect uintptr, nCol int32, abPK uintptr, pChange uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:214999:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -217244,7 +219483,7 @@ func sessionSelectBind(tls *libc.TLS, pSelect uintptr, nCol int32, abPK uintptr, // is called. Otherwise, append a serialized table header (part of the binary // changeset format) to buffer *pBuf. If an error occurs, set *pRc to an // SQLite error code before returning. -func sessionAppendTableHdr(tls *libc.TLS, pBuf uintptr, bPatchset int32, pTab uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212948:13: */ +func sessionAppendTableHdr(tls *libc.TLS, pBuf uintptr, bPatchset int32, pTab uintptr, pRc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215070:13: */ // Write a table header sessionAppendByte(tls, pBuf, func() uint8 { if bPatchset != 0 { @@ -217265,7 +219504,7 @@ func sessionAppendTableHdr(tls *libc.TLS, pBuf uintptr, bPatchset int32, pTab ui // stored in output variables *pnChangeset and *ppChangeset. Or, if an error // occurs, an SQLite error code is returned and both output variables set // to 0. -func sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32, xOutput uintptr, pOut uintptr, pnChangeset uintptr, ppChangeset uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:212971:12: */ +func sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32, xOutput uintptr, pOut uintptr, pnChangeset uintptr, ppChangeset uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215093:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -217287,7 +219526,7 @@ func sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32, if (*Sqlite3_session)(unsafe.Pointer(pSession)).Frc != 0 { return (*Sqlite3_session)(unsafe.Pointer(pSession)).Frc } - *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3_exec(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb, ts+34072, uintptr(0), uintptr(0), uintptr(0)) + *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3_exec(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb, ts+34037, uintptr(0), uintptr(0), uintptr(0)) if *(*int32)(unsafe.Pointer(bp + 40)) != SQLITE_OK { return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } @@ -217385,7 +219624,7 @@ func sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32, } Xsqlite3_free(tls, (*SessionBuffer)(unsafe.Pointer(bp+24 /* &buf */)).FaBuf) - Xsqlite3_exec(tls, db, ts+34092, uintptr(0), uintptr(0), uintptr(0)) + Xsqlite3_exec(tls, db, ts+34057, uintptr(0), uintptr(0), uintptr(0)) Xsqlite3_mutex_leave(tls, Xsqlite3_db_mutex(tls, db)) return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } @@ -217395,7 +219634,7 @@ func sessionGenerateChangeset(tls *libc.TLS, pSession uintptr, bPatchset int32, // // It is the responsibility of the caller to eventually free the buffer // using sqlite3_free(). -func Xsqlite3session_changeset(tls *libc.TLS, pSession uintptr, pnChangeset uintptr, ppChangeset uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213100:16: */ +func Xsqlite3session_changeset(tls *libc.TLS, pSession uintptr, pnChangeset uintptr, ppChangeset uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215222:16: */ var rc int32 if pnChangeset == uintptr(0) || ppChangeset == uintptr(0) { @@ -217407,7 +219646,7 @@ func Xsqlite3session_changeset(tls *libc.TLS, pSession uintptr, pnChangeset uint } // Streaming version of sqlite3session_changeset(). -func Xsqlite3session_changeset_strm(tls *libc.TLS, pSession uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213118:16: */ +func Xsqlite3session_changeset_strm(tls *libc.TLS, pSession uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215240:16: */ if xOutput == uintptr(0) { return SQLITE_MISUSE } @@ -217415,7 +219654,7 @@ func Xsqlite3session_changeset_strm(tls *libc.TLS, pSession uintptr, xOutput uin } // Streaming version of sqlite3session_patchset(). -func Xsqlite3session_patchset_strm(tls *libc.TLS, pSession uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213130:16: */ +func Xsqlite3session_patchset_strm(tls *libc.TLS, pSession uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215252:16: */ if xOutput == uintptr(0) { return SQLITE_MISUSE } @@ -217427,7 +219666,7 @@ func Xsqlite3session_patchset_strm(tls *libc.TLS, pSession uintptr, xOutput uint // // It is the responsibility of the caller to eventually free the buffer // using sqlite3_free(). -func Xsqlite3session_patchset(tls *libc.TLS, pSession uintptr, pnPatchset uintptr, ppPatchset uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213146:16: */ +func Xsqlite3session_patchset(tls *libc.TLS, pSession uintptr, pnPatchset uintptr, ppPatchset uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215268:16: */ if pnPatchset == uintptr(0) || ppPatchset == uintptr(0) { return SQLITE_MISUSE } @@ -217435,7 +219674,7 @@ func Xsqlite3session_patchset(tls *libc.TLS, pSession uintptr, pnPatchset uintpt } // Enable or disable the session object passed as the first argument. -func Xsqlite3session_enable(tls *libc.TLS, pSession uintptr, bEnable int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213158:16: */ +func Xsqlite3session_enable(tls *libc.TLS, pSession uintptr, bEnable int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215280:16: */ var ret int32 Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb)) if bEnable >= 0 { @@ -217447,7 +219686,7 @@ func Xsqlite3session_enable(tls *libc.TLS, pSession uintptr, bEnable int32) int3 } // Enable or disable the session object passed as the first argument. -func Xsqlite3session_indirect(tls *libc.TLS, pSession uintptr, bIndirect int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213172:16: */ +func Xsqlite3session_indirect(tls *libc.TLS, pSession uintptr, bIndirect int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215294:16: */ var ret int32 Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb)) if bIndirect >= 0 { @@ -217460,7 +219699,7 @@ func Xsqlite3session_indirect(tls *libc.TLS, pSession uintptr, bIndirect int32) // Return true if there have been no changes to monitored tables recorded // by the session object passed as the only argument. -func Xsqlite3session_isempty(tls *libc.TLS, pSession uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213187:16: */ +func Xsqlite3session_isempty(tls *libc.TLS, pSession uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215309:16: */ var ret int32 = 0 var pTab uintptr @@ -217474,12 +219713,12 @@ func Xsqlite3session_isempty(tls *libc.TLS, pSession uintptr) int32 { /* testdat } // Return the amount of heap memory in use. -func Xsqlite3session_memory_used(tls *libc.TLS, pSession uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213203:26: */ +func Xsqlite3session_memory_used(tls *libc.TLS, pSession uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215325:26: */ return (*Sqlite3_session)(unsafe.Pointer(pSession)).FnMalloc } // Configure the session object passed as the first argument. -func Xsqlite3session_object_config(tls *libc.TLS, pSession uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213210:16: */ +func Xsqlite3session_object_config(tls *libc.TLS, pSession uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215332:16: */ var rc int32 = SQLITE_OK switch op { case SQLITE_SESSION_OBJCONFIG_SIZE: @@ -217505,12 +219744,12 @@ func Xsqlite3session_object_config(tls *libc.TLS, pSession uintptr, op int32, pA } // Return the maximum size of sqlite3session_changeset() output. -func Xsqlite3session_changeset_size(tls *libc.TLS, pSession uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213236:26: */ +func Xsqlite3session_changeset_size(tls *libc.TLS, pSession uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215358:26: */ return (*Sqlite3_session)(unsafe.Pointer(pSession)).FnMaxChangesetSize } // Do the work for either sqlite3changeset_start() or start_strm(). -func sessionChangesetStart(tls *libc.TLS, pp uintptr, xInput uintptr, pIn uintptr, nChangeset int32, pChangeset uintptr, bInvert int32, bSkipEmpty int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213243:12: */ +func sessionChangesetStart(tls *libc.TLS, pp uintptr, xInput uintptr, pIn uintptr, nChangeset int32, pChangeset uintptr, bInvert int32, bSkipEmpty int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215365:12: */ var pRet uintptr // Iterator to return var nByte int32 // Number of bytes to allocate for iterator @@ -217543,28 +219782,28 @@ func sessionChangesetStart(tls *libc.TLS, pp uintptr, xInput uintptr, pIn uintpt } // Create an iterator used to iterate through the contents of a changeset. -func Xsqlite3changeset_start(tls *libc.TLS, pp uintptr, nChangeset int32, pChangeset uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213281:16: */ +func Xsqlite3changeset_start(tls *libc.TLS, pp uintptr, nChangeset int32, pChangeset uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215403:16: */ return sessionChangesetStart(tls, pp, uintptr(0), uintptr(0), nChangeset, pChangeset, 0, 0) } -func Xsqlite3changeset_start_v2(tls *libc.TLS, pp uintptr, nChangeset int32, pChangeset uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213288:16: */ +func Xsqlite3changeset_start_v2(tls *libc.TLS, pp uintptr, nChangeset int32, pChangeset uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215410:16: */ var bInvert int32 = libc.BoolInt32(!!(flags&SQLITE_CHANGESETSTART_INVERT != 0)) return sessionChangesetStart(tls, pp, uintptr(0), uintptr(0), nChangeset, pChangeset, bInvert, 0) } // Streaming version of sqlite3changeset_start(). -func Xsqlite3changeset_start_strm(tls *libc.TLS, pp uintptr, xInput uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213301:16: */ +func Xsqlite3changeset_start_strm(tls *libc.TLS, pp uintptr, xInput uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215423:16: */ return sessionChangesetStart(tls, pp, xInput, pIn, 0, uintptr(0), 0, 0) } -func Xsqlite3changeset_start_v2_strm(tls *libc.TLS, pp uintptr, xInput uintptr, pIn uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213308:16: */ +func Xsqlite3changeset_start_v2_strm(tls *libc.TLS, pp uintptr, xInput uintptr, pIn uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215430:16: */ var bInvert int32 = libc.BoolInt32(!!(flags&SQLITE_CHANGESETSTART_INVERT != 0)) return sessionChangesetStart(tls, pp, xInput, pIn, 0, uintptr(0), bInvert, 0) } // If the SessionInput object passed as the only argument is a streaming // object and the buffer is full, discard some data to free up space. -func sessionDiscardData(tls *libc.TLS, pIn uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213322:13: */ +func sessionDiscardData(tls *libc.TLS, pIn uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215444:13: */ if (*SessionInput)(unsafe.Pointer(pIn)).FxInput != 0 && (*SessionInput)(unsafe.Pointer(pIn)).FiNext >= sessions_strm_chunk_size { var nMove int32 = (*SessionInput)(unsafe.Pointer(pIn)).Fbuf.FnBuf - (*SessionInput)(unsafe.Pointer(pIn)).FiNext @@ -217582,7 +219821,7 @@ func sessionDiscardData(tls *libc.TLS, pIn uintptr) { /* testdata/sqlite-amalgam // data is in the buffer. // // Return an SQLite error code if an error occurs, or SQLITE_OK otherwise. -func sessionInputBuffer(tls *libc.TLS, pIn uintptr, nByte int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213342:12: */ +func sessionInputBuffer(tls *libc.TLS, pIn uintptr, nByte int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215464:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -217615,7 +219854,7 @@ func sessionInputBuffer(tls *libc.TLS, pIn uintptr, nByte int32) int32 { /* test // When this function is called, *ppRec points to the start of a record // that contains nCol values. This function advances the pointer *ppRec // until it points to the byte immediately following that record. -func sessionSkipRecord(tls *libc.TLS, ppRec uintptr, nCol int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213370:13: */ +func sessionSkipRecord(tls *libc.TLS, ppRec uintptr, nCol int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215492:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -217640,7 +219879,7 @@ func sessionSkipRecord(tls *libc.TLS, ppRec uintptr, nCol int32) { /* testdata/s // first argument to a copy of the string or blob held in the aData[] // buffer. SQLITE_OK is returned if successful, or SQLITE_NOMEM if an OOM // error occurs. -func sessionValueSetStr(tls *libc.TLS, pVal uintptr, aData uintptr, nData int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213396:12: */ +func sessionValueSetStr(tls *libc.TLS, pVal uintptr, aData uintptr, nData int32, enc U8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215518:12: */ // In theory this code could just pass SQLITE_TRANSIENT as the final // argument to sqlite3ValueSetStr() and have the copy created // automatically. But doing so makes it difficult to detect any OOM @@ -217676,7 +219915,7 @@ func sessionValueSetStr(tls *libc.TLS, pVal uintptr, aData uintptr, nData int32, // // If an error occurs, an SQLite error code (e.g. SQLITE_NOMEM) is returned. // The apOut[] array may have been partially populated in this case. -func sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, apOut uintptr, pbEmpty uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213437:12: */ +func sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, apOut uintptr, pbEmpty uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215559:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -217694,7 +219933,7 @@ func sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, apO rc = sessionInputBuffer(tls, pIn, 9) if rc == SQLITE_OK { if (*SessionInput)(unsafe.Pointer(pIn)).FiNext >= (*SessionInput)(unsafe.Pointer(pIn)).FnData { - rc = Xsqlite3CorruptError(tls, 213455) + rc = Xsqlite3CorruptError(tls, 215577) } else { eType = int32(*(*U8)(unsafe.Pointer((*SessionInput)(unsafe.Pointer(pIn)).FaData + uintptr(libc.PostIncInt32(&(*SessionInput)(unsafe.Pointer(pIn)).FiNext, 1))))) @@ -217719,7 +219958,7 @@ func sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, apO rc = sessionInputBuffer(tls, pIn, *(*int32)(unsafe.Pointer(bp /* nByte */))) if rc == SQLITE_OK { if *(*int32)(unsafe.Pointer(bp)) < 0 || *(*int32)(unsafe.Pointer(bp)) > (*SessionInput)(unsafe.Pointer(pIn)).FnData-(*SessionInput)(unsafe.Pointer(pIn)).FiNext { - rc = Xsqlite3CorruptError(tls, 213475) + rc = Xsqlite3CorruptError(tls, 215597) } else { var enc U8 = func() uint8 { if eType == SQLITE_TEXT { @@ -217753,15 +219992,15 @@ func sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, apO // The input pointer currently points to the second byte of a table-header. // Specifically, to the following: // -// + number of columns in table (varint) -// + array of PK flags (1 byte per column), -// + table name (nul terminated). +// - number of columns in table (varint) +// - array of PK flags (1 byte per column), +// - table name (nul terminated). // // This function ensures that all of the above is present in the input // buffer (i.e. that it can be accessed without any calls to xInput()). // If successful, SQLITE_OK is returned. Otherwise, an SQLite error code. // The input pointer is not moved. -func sessionChangesetBufferTblhdr(tls *libc.TLS, pIn uintptr, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213513:12: */ +func sessionChangesetBufferTblhdr(tls *libc.TLS, pIn uintptr, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215635:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -217780,7 +220019,7 @@ func sessionChangesetBufferTblhdr(tls *libc.TLS, pIn uintptr, pnByte uintptr) in // large value for nCol may cause nRead to wrap around and become // negative. Leading to a crash. if *(*int32)(unsafe.Pointer(bp)) < 0 || *(*int32)(unsafe.Pointer(bp)) > 65536 { - rc = Xsqlite3CorruptError(tls, 213529) + rc = Xsqlite3CorruptError(tls, 215651) } else { rc = sessionInputBuffer(tls, pIn, nRead+*(*int32)(unsafe.Pointer(bp))+100) nRead = nRead + *(*int32)(unsafe.Pointer(bp)) @@ -217807,7 +220046,7 @@ func sessionChangesetBufferTblhdr(tls *libc.TLS, pIn uintptr, pnByte uintptr) in // If successful, SQLITE_OK is returned and *pnByte is set to the size of // the record in bytes. Otherwise, an SQLite error code is returned. The // final value of *pnByte is undefined in this case. -func sessionChangesetBufferRecord(tls *libc.TLS, pIn uintptr, nCol int32, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213556:12: */ +func sessionChangesetBufferRecord(tls *libc.TLS, pIn uintptr, nCol int32, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215678:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -217837,9 +220076,9 @@ func sessionChangesetBufferRecord(tls *libc.TLS, pIn uintptr, nCol int32, pnByte // The input pointer currently points to the second byte of a table-header. // Specifically, to the following: // -// + number of columns in table (varint) -// + array of PK flags (1 byte per column), -// + table name (nul terminated). +// - number of columns in table (varint) +// - array of PK flags (1 byte per column), +// - table name (nul terminated). // // This function decodes the table-header and populates the p->nCol, // p->zTab and p->abPK[] variables accordingly. The p->apValue[] array is @@ -217849,7 +220088,7 @@ func sessionChangesetBufferRecord(tls *libc.TLS, pIn uintptr, nCol int32, pnByte // If successful, SQLITE_OK is returned. Otherwise, an SQLite error code // is returned and the final values of the various fields enumerated above // are undefined. -func sessionChangesetReadTblhdr(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213600:12: */ +func sessionChangesetReadTblhdr(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215722:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -217869,7 +220108,7 @@ func sessionChangesetReadTblhdr(tls *libc.TLS, p uintptr) int32 { /* testdata/sq (*Sqlite3_changeset_iter)(unsafe.Pointer(p)).Ftblhdr.FnBuf = 0 sessionBufferGrow(tls, p+72, int64(nByte), bp+4) } else { - *(*int32)(unsafe.Pointer(bp + 4 /* rc */)) = Xsqlite3CorruptError(tls, 213617) + *(*int32)(unsafe.Pointer(bp + 4 /* rc */)) = Xsqlite3CorruptError(tls, 215739) } } @@ -217899,12 +220138,12 @@ func sessionChangesetReadTblhdr(tls *libc.TLS, p uintptr) int32 { /* testdata/sq // Advance the changeset iterator to the next change. The differences between // this function and sessionChangesetNext() are that // -// * If pbEmpty is not NULL and the change is a no-op UPDATE (an UPDATE +// - If pbEmpty is not NULL and the change is a no-op UPDATE (an UPDATE // that modifies no columns), this function sets (*pbEmpty) to 1. // -// * If the iterator is configured to skip no-op UPDATEs, +// - If the iterator is configured to skip no-op UPDATEs, // sessionChangesetNext() does that. This function does not. -func sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uintptr, pbNew uintptr, pbEmpty uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213649:12: */ +func sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uintptr, pbNew uintptr, pbEmpty uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215771:12: */ var i int32 var op U8 @@ -217961,13 +220200,13 @@ func sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uint // The first record in the changeset is not a table header. Must be a // corrupt changeset. - return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 213703)) + return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 215825)) } (*Sqlite3_changeset_iter)(unsafe.Pointer(p)).Fop = int32(op) (*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FbIndirect = int32(*(*U8)(unsafe.Pointer((*Sqlite3_changeset_iter)(unsafe.Pointer(p)).Fin.FaData + uintptr(libc.PostIncInt32(&(*Sqlite3_changeset_iter)(unsafe.Pointer(p)).Fin.FiNext, 1))))) if (*Sqlite3_changeset_iter)(unsafe.Pointer(p)).Fop != SQLITE_UPDATE && (*Sqlite3_changeset_iter)(unsafe.Pointer(p)).Fop != SQLITE_DELETE && (*Sqlite3_changeset_iter)(unsafe.Pointer(p)).Fop != SQLITE_INSERT { - return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 213709)) + return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 215831)) } if paRec != 0 { @@ -218037,7 +220276,7 @@ func sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uint *(*uintptr)(unsafe.Pointer((*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i)*8)) = *(*uintptr)(unsafe.Pointer((*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i+(*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FnCol)*8)) if *(*uintptr)(unsafe.Pointer((*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i)*8)) == uintptr(0) { - return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 213753)) + return libc.AssignPtrInt32(p+100, Xsqlite3CorruptError(tls, 215875)) } *(*uintptr)(unsafe.Pointer((*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FapValue + uintptr(i+(*Sqlite3_changeset_iter)(unsafe.Pointer(p)).FnCol)*8)) = uintptr(0) } @@ -218068,7 +220307,7 @@ func sessionChangesetNextOne(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uint // successfully advanced to the next change in the changeset, an SQLite // error code if an error occurs, or SQLITE_DONE if there are no further // changes in the changeset. -func sessionChangesetNext(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uintptr, pbNew uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213782:12: */ +func sessionChangesetNext(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uintptr, pbNew uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215904:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -218088,14 +220327,14 @@ func sessionChangesetNext(tls *libc.TLS, p uintptr, paRec uintptr, pnRec uintptr // // This function may not be called on iterators passed to a conflict handler // callback by changeset_apply(). -func Xsqlite3changeset_next(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213805:16: */ +func Xsqlite3changeset_next(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215927:16: */ return sessionChangesetNext(tls, p, uintptr(0), uintptr(0), uintptr(0)) } // The following function extracts information on the current change // from a changeset iterator. It may only be called after changeset_next() // has returned SQLITE_ROW. -func Xsqlite3changeset_op(tls *libc.TLS, pIter uintptr, pzTab uintptr, pnCol uintptr, pOp uintptr, pbIndirect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213814:16: */ +func Xsqlite3changeset_op(tls *libc.TLS, pIter uintptr, pzTab uintptr, pnCol uintptr, pOp uintptr, pbIndirect uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215936:16: */ *(*int32)(unsafe.Pointer(pOp)) = (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop *(*int32)(unsafe.Pointer(pnCol)) = (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FnCol *(*uintptr)(unsafe.Pointer(pzTab)) = (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab @@ -218109,7 +220348,7 @@ func Xsqlite3changeset_op(tls *libc.TLS, pIter uintptr, pzTab uintptr, pnCol uin // the database table affected by the change that pIter currently points // to. This function may only be called after changeset_next() returns // SQLITE_ROW. -func Xsqlite3changeset_pk(tls *libc.TLS, pIter uintptr, pabPK uintptr, pnCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213834:16: */ +func Xsqlite3changeset_pk(tls *libc.TLS, pIter uintptr, pabPK uintptr, pnCol uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215956:16: */ *(*uintptr)(unsafe.Pointer(pabPK)) = (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FabPK if pnCol != 0 { *(*int32)(unsafe.Pointer(pnCol)) = (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FnCol @@ -218128,7 +220367,7 @@ func Xsqlite3changeset_pk(tls *libc.TLS, pIter uintptr, pabPK uintptr, pnCol uin // // If value iVal is out-of-range, SQLITE_RANGE is returned and *ppValue is // not modified. Otherwise, SQLITE_OK. -func Xsqlite3changeset_old(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213857:16: */ +func Xsqlite3changeset_old(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:215979:16: */ if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_UPDATE && (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_DELETE { return SQLITE_MISUSE } @@ -218150,7 +220389,7 @@ func Xsqlite3changeset_old(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uin // // If value iVal is out-of-range, SQLITE_RANGE is returned and *ppValue is // not modified. Otherwise, SQLITE_OK. -func Xsqlite3changeset_new(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213885:16: */ +func Xsqlite3changeset_new(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216007:16: */ if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_UPDATE && (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).Fop != SQLITE_INSERT { return SQLITE_MISUSE } @@ -218174,7 +220413,7 @@ func Xsqlite3changeset_new(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uin // // If value iVal is out-of-range or some other error occurs, an SQLite error // code is returned. Otherwise, SQLITE_OK. -func Xsqlite3changeset_conflict(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213919:16: */ +func Xsqlite3changeset_conflict(tls *libc.TLS, pIter uintptr, iVal int32, ppValue uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216041:16: */ if !(int32((*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FpConflict) != 0) { return SQLITE_MISUSE } @@ -218191,7 +220430,7 @@ func Xsqlite3changeset_conflict(tls *libc.TLS, pIter uintptr, iVal int32, ppValu // violations in the destination database and returns SQLITE_OK. // // In all other cases this function returns SQLITE_MISUSE. -func Xsqlite3changeset_fk_conflicts(tls *libc.TLS, pIter uintptr, pnOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213942:16: */ +func Xsqlite3changeset_fk_conflicts(tls *libc.TLS, pIter uintptr, pnOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216064:16: */ if (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FpConflict != 0 || (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FapValue != 0 { return SQLITE_MISUSE } @@ -218203,7 +220442,7 @@ func Xsqlite3changeset_fk_conflicts(tls *libc.TLS, pIter uintptr, pnOut uintptr) // // This function may not be called on iterators passed to a conflict handler // callback by changeset_apply(). -func Xsqlite3changeset_finalize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213960:16: */ +func Xsqlite3changeset_finalize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216082:16: */ var rc int32 = SQLITE_OK if p != 0 { var i int32 // Used to iterate through p->apValue[] @@ -218220,7 +220459,7 @@ func Xsqlite3changeset_finalize(tls *libc.TLS, p uintptr) int32 { /* testdata/sq return rc } -func sessionChangesetInvert(tls *libc.TLS, pInput uintptr, xOutput uintptr, pOut uintptr, pnInverted uintptr, ppInverted uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:213975:12: */ +func sessionChangesetInvert(tls *libc.TLS, pInput uintptr, xOutput uintptr, pOut uintptr, pnInverted uintptr, ppInverted uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216097:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -218456,7 +220695,7 @@ __27: goto __6 __11: - *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 214102) + *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3CorruptError(tls, 216224) goto finished_invert __6: ; @@ -218507,7 +220746,7 @@ finished_invert: } // Invert a changeset object. -func Xsqlite3changeset_invert(tls *libc.TLS, nChangeset int32, pChangeset uintptr, pnInverted uintptr, ppInverted uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214134:16: */ +func Xsqlite3changeset_invert(tls *libc.TLS, nChangeset int32, pChangeset uintptr, pnInverted uintptr, ppInverted uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216256:16: */ bp := tls.Alloc(72) defer tls.Free(72) @@ -218522,7 +220761,7 @@ func Xsqlite3changeset_invert(tls *libc.TLS, nChangeset int32, pChangeset uintpt } // Streaming version of sqlite3changeset_invert(). -func Xsqlite3changeset_invert_strm(tls *libc.TLS, xInput uintptr, pIn uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214153:16: */ +func Xsqlite3changeset_invert_strm(tls *libc.TLS, xInput uintptr, pIn uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216275:16: */ bp := tls.Alloc(72) defer tls.Free(72) @@ -218544,9 +220783,9 @@ type SessionUpdate1 = struct { FpStmt uintptr FaMask uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214173:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216295:9 */ -type SessionUpdate = SessionUpdate1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214173:30 */ +type SessionUpdate = SessionUpdate1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216295:30 */ type SessionApplyCtx1 = struct { Fdb uintptr @@ -218568,17 +220807,17 @@ type SessionApplyCtx1 = struct { FbRebaseStarted U8 FbRebase U8 F__ccgo_pad3 [6]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214180:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216302:9 */ -type SessionApplyCtx = SessionApplyCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214180:32 */ +type SessionApplyCtx = SessionApplyCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216302:32 */ // Number of prepared UPDATE statements to cache. // Find a prepared UPDATE statement suitable for the UPDATE step currently // being visited by the iterator. The UPDATE is of the form: // -// UPDATE tbl SET col = ?, col2 = ? WHERE pk1 IS ? AND pk2 IS ? -func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32, ppStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214209:12: */ +// UPDATE tbl SET col = ?, col2 = ? WHERE pk1 IS ? AND pk2 IS ? +func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32, ppStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216331:12: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -218639,7 +220878,7 @@ func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32, if pUp == uintptr(0) { var nByte int32 = int32(uint64(unsafe.Sizeof(SessionUpdate{})) * uint64(nU32) * uint64(unsafe.Sizeof(U32(0)))) - var bStat1 int32 = libc.Bool32(Xsqlite3_stricmp(tls, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, ts+12585) == 0) + var bStat1 int32 = libc.Bool32(Xsqlite3_stricmp(tls, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, ts+12624) == 0) pUp = Xsqlite3_malloc(tls, nByte) if pUp == uintptr(0) { *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_NOMEM @@ -218651,24 +220890,24 @@ func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32, (*SessionUpdate)(unsafe.Pointer(pUp)).FaMask = pUp + 1*24 libc.Xmemcpy(tls, (*SessionUpdate)(unsafe.Pointer(pUp)).FaMask, (*SessionApplyCtx)(unsafe.Pointer(p)).FaUpdateMask, uint64(nU32)*uint64(unsafe.Sizeof(U32(0)))) - sessionAppendStr(tls, bp, ts+34110, bp+16) + sessionAppendStr(tls, bp, ts+34075, bp+16) sessionAppendIdent(tls, bp, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, bp+16) - sessionAppendStr(tls, bp, ts+34123, bp+16) + sessionAppendStr(tls, bp, ts+34088, bp+16) // Create the assignments part of the UPDATE for ii = 0; ii < (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FnCol; ii++ { if int32(*(*U8)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FabPK + uintptr(ii)))) == 0 && *(*uintptr)(unsafe.Pointer((*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FapValue + uintptr((*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FnCol+ii)*8)) != 0 { sessionAppendStr(tls, bp, zSep, bp+16) sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(ii)*8)), bp+16) - sessionAppendStr(tls, bp, ts+34129, bp+16) + sessionAppendStr(tls, bp, ts+34094, bp+16) sessionAppendInteger(tls, bp, ii*2+1, bp+16) - zSep = ts + 15908 /* ", " */ + zSep = ts + 15947 /* ", " */ } } // Create the WHERE clause part of the UPDATE zSep = ts + 1524 /* "" */ - sessionAppendStr(tls, bp, ts+34058, bp+16) + sessionAppendStr(tls, bp, ts+34023, bp+16) for ii = 0; ii < (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FnCol; ii++ { if *(*U8)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FabPK + uintptr(ii))) != 0 || bPatchset == 0 && *(*uintptr)(unsafe.Pointer((*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FapValue + uintptr(ii)*8)) != 0 { sessionAppendStr(tls, bp, zSep, bp+16) @@ -218676,13 +220915,13 @@ func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32, sessionAppendStr(tls, bp, - ts+34134, bp+16) + ts+34099, bp+16) } else { sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(ii)*8)), bp+16) - sessionAppendStr(tls, bp, ts+34066, bp+16) + sessionAppendStr(tls, bp, ts+34031, bp+16) sessionAppendInteger(tls, bp, ii*2+2, bp+16) } - zSep = ts + 22750 /* " AND " */ + zSep = ts + 22690 /* " AND " */ } } @@ -218712,7 +220951,7 @@ func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32, } // Free all cached UPDATE statements. -func sessionUpdateFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214348:13: */ +func sessionUpdateFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216470:13: */ var pUp uintptr var pNext uintptr for pUp = (*SessionApplyCtx)(unsafe.Pointer(p)).FpUp; pUp != 0; pUp = pNext { @@ -218728,11 +220967,11 @@ func sessionUpdateFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamati // Formulate a statement to DELETE a row from database db. Assuming a table // structure like this: // -// CREATE TABLE x(a, b, c, d, PRIMARY KEY(a, c)); +// CREATE TABLE x(a, b, c, d, PRIMARY KEY(a, c)); // // The DELETE statement looks like this: // -// DELETE FROM x WHERE a = :1 AND c = :3 AND (:5 OR b IS :2 AND d IS :4) +// DELETE FROM x WHERE a = :1 AND c = :3 AND (:5 OR b IS :2 AND d IS :4) // // Variable :5 (nCol+1) is a boolean. It should be set to 0 if we require // matching b and d values, or 1 otherwise. The second case comes up if the @@ -218740,7 +220979,7 @@ func sessionUpdateFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamati // // If successful, SQLITE_OK is returned and SessionApplyCtx.pDelete is left // pointing to the prepared version of the SQL statement. -func sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214378:12: */ +func sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216500:12: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -218750,37 +220989,37 @@ func sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 *(*SessionBuffer)(unsafe.Pointer(bp /* buf */)) = SessionBuffer{} var nPk int32 = 0 - sessionAppendStr(tls, bp, ts+34209, bp+16) + sessionAppendStr(tls, bp, ts+34174, bp+16) sessionAppendIdent(tls, bp, zTab, bp+16) - sessionAppendStr(tls, bp, ts+34058, bp+16) + sessionAppendStr(tls, bp, ts+34023, bp+16) for i = 0; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ { if *(*U8)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FabPK + uintptr(i))) != 0 { nPk++ sessionAppendStr(tls, bp, zSep, bp+16) sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp+16) - sessionAppendStr(tls, bp, ts+34129, bp+16) + sessionAppendStr(tls, bp, ts+34094, bp+16) sessionAppendInteger(tls, bp, i+1, bp+16) - zSep = ts + 22750 /* " AND " */ + zSep = ts + 22690 /* " AND " */ } } if nPk < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol { - sessionAppendStr(tls, bp, ts+34227, bp+16) + sessionAppendStr(tls, bp, ts+34192, bp+16) sessionAppendInteger(tls, bp, (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol+1, bp+16) - sessionAppendStr(tls, bp, ts+33770, bp+16) + sessionAppendStr(tls, bp, ts+33735, bp+16) zSep = ts + 1524 /* "" */ for i = 0; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ { if !(int32(*(*U8)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FabPK + uintptr(i)))) != 0) { sessionAppendStr(tls, bp, zSep, bp+16) sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp+16) - sessionAppendStr(tls, bp, ts+34066, bp+16) + sessionAppendStr(tls, bp, ts+34031, bp+16) sessionAppendInteger(tls, bp, i+1, bp+16) - zSep = ts + 34235 /* "AND " */ + zSep = ts + 34200 /* "AND " */ } } - sessionAppendStr(tls, bp, ts+6260, bp+16) + sessionAppendStr(tls, bp, ts+6295, bp+16) } if *(*int32)(unsafe.Pointer(bp + 16)) == SQLITE_OK { @@ -218794,27 +221033,27 @@ func sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 // Formulate and prepare an SQL statement to query table zTab by primary // key. Assuming the following table structure: // -// CREATE TABLE x(a, b, c, d, PRIMARY KEY(a, c)); +// CREATE TABLE x(a, b, c, d, PRIMARY KEY(a, c)); // // The SELECT statement looks like this: // -// SELECT * FROM x WHERE a = ?1 AND c = ?3 +// SELECT * FROM x WHERE a = ?1 AND c = ?3 // // If successful, SQLITE_OK is returned and SessionApplyCtx.pSelect is left // pointing to the prepared version of the SQL statement. -func sessionSelectRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214443:12: */ +func sessionSelectRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216565:12: */ return sessionSelectStmt(tls, - db, ts+7684, zTab, (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FazCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FabPK, p+24) + db, ts+7719, zTab, (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FazCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FabPK, p+24) } // Formulate and prepare an INSERT statement to add a record to table zTab. // For example: // -// INSERT INTO main."zTab" VALUES(?1, ?2, ?3 ...); +// INSERT INTO main."zTab" VALUES(?1, ?2, ?3 ...); // // If successful, SQLITE_OK is returned and SessionApplyCtx.pInsert is left // pointing to the prepared version of the SQL statement. -func sessionInsertRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214461:12: */ +func sessionInsertRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216583:12: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -218822,21 +221061,21 @@ func sessionInsertRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 var i int32 *(*SessionBuffer)(unsafe.Pointer(bp /* buf */)) = SessionBuffer{} - sessionAppendStr(tls, bp, ts+34240, bp+16) + sessionAppendStr(tls, bp, ts+34205, bp+16) sessionAppendIdent(tls, bp, zTab, bp+16) - sessionAppendStr(tls, bp, ts+22756, bp+16) + sessionAppendStr(tls, bp, ts+22696, bp+16) for i = 0; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ { if i != 0 { - sessionAppendStr(tls, bp, ts+15908, bp+16) + sessionAppendStr(tls, bp, ts+15947, bp+16) } sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp+16) } - sessionAppendStr(tls, bp, ts+34258, bp+16) + sessionAppendStr(tls, bp, ts+34223, bp+16) for i = 1; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ { - sessionAppendStr(tls, bp, ts+34269, bp+16) + sessionAppendStr(tls, bp, ts+34234, bp+16) } - sessionAppendStr(tls, bp, ts+6260, bp+16) + sessionAppendStr(tls, bp, ts+6295, bp+16) if *(*int32)(unsafe.Pointer(bp + 16)) == SQLITE_OK { *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = Xsqlite3_prepare_v2(tls, db, (*SessionBuffer)(unsafe.Pointer(bp /* &buf */)).FaBuf, (*SessionBuffer)(unsafe.Pointer(bp /* &buf */)).FnBuf, p+16, uintptr(0)) @@ -218845,7 +221084,7 @@ func sessionInsertRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 return *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) } -func sessionPrepare(tls *libc.TLS, db uintptr, pp uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214491:12: */ +func sessionPrepare(tls *libc.TLS, db uintptr, pp uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216613:12: */ return Xsqlite3_prepare_v2(tls, db, zSql, -1, pp, uintptr(0)) } @@ -218853,24 +221092,24 @@ func sessionPrepare(tls *libc.TLS, db uintptr, pp uintptr, zSql uintptr) int32 { // These are similar to those created by sessionSelectRow(), // sessionInsertRow(), sessionUpdateRow() and sessionDeleteRow() for // other tables. -func sessionStat1Sql(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214501:12: */ - var rc int32 = sessionSelectRow(tls, db, ts+12585, p) +func sessionStat1Sql(tls *libc.TLS, db uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216623:12: */ + var rc int32 = sessionSelectRow(tls, db, ts+12624, p) if rc == SQLITE_OK { rc = sessionPrepare(tls, db, p+16, - ts+34273) + ts+34238) } if rc == SQLITE_OK { rc = sessionPrepare(tls, db, p+8, - ts+34386) + ts+34351) } return rc } // A wrapper around sqlite3_bind_value() that detects an extra problem. // See comments in the body of this function for details. -func sessionBindValue(tls *libc.TLS, pStmt uintptr, i int32, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214524:12: */ +func sessionBindValue(tls *libc.TLS, pStmt uintptr, i int32, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216646:12: */ var eType int32 = Xsqlite3_value_type(tls, pVal) // COVERAGE: The (pVal->z==0) branch is never true using current versions // of SQLite. If a malloc fails in an sqlite3_value_xxx() function, either @@ -218897,7 +221136,7 @@ func sessionBindValue(tls *libc.TLS, pStmt uintptr, i int32, pVal uintptr) int32 // statement. // // An SQLite error code is returned if an error occurs. Otherwise, SQLITE_OK. -func sessionBindRow(tls *libc.TLS, pIter uintptr, xValue uintptr, nCol int32, abPK uintptr, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214557:12: */ +func sessionBindRow(tls *libc.TLS, pIter uintptr, xValue uintptr, nCol int32, abPK uintptr, pStmt uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216679:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -218918,7 +221157,7 @@ func sessionBindRow(tls *libc.TLS, pIter uintptr, xValue uintptr, nCol int32, ab if *(*uintptr)(unsafe.Pointer(bp)) == uintptr(0) { // The value in the changeset was "undefined". This indicates a // corrupt changeset blob. - rc = Xsqlite3CorruptError(tls, 214580) + rc = Xsqlite3CorruptError(tls, 216702) } else { rc = sessionBindValue(tls, pStmt, i+1, *(*uintptr)(unsafe.Pointer(bp /* pVal */))) } @@ -218942,7 +221181,7 @@ func sessionBindRow(tls *libc.TLS, pIter uintptr, xValue uintptr, nCol int32, ab // If the iterator currently points to an INSERT record, bind values from the // new.* record to the SELECT statement. Or, if it points to a DELETE or // UPDATE, bind values from the old.* record. -func sessionSeekToRow(tls *libc.TLS, db uintptr, pIter uintptr, abPK uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214606:12: */ +func sessionSeekToRow(tls *libc.TLS, db uintptr, pIter uintptr, abPK uintptr, pSelect uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216728:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -218986,7 +221225,7 @@ func sessionSeekToRow(tls *libc.TLS, db uintptr, pIter uintptr, abPK uintptr, pS // of apply_v2() as the "rebase" buffer. // // Return SQLITE_OK if successful, or an SQLite error code otherwise. -func sessionRebaseAdd(tls *libc.TLS, p uintptr, eType int32, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214641:12: */ +func sessionRebaseAdd(tls *libc.TLS, p uintptr, eType int32, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216763:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -219032,10 +221271,10 @@ func sessionRebaseAdd(tls *libc.TLS, p uintptr, eType int32, pIter uintptr) int3 // If argument pbReplace is NULL, then the type of conflict handler invoked // depends solely on eType, as follows: // -// eType value Value passed to xConflict -// ------------------------------------------------- -// CHANGESET_DATA CHANGESET_NOTFOUND -// CHANGESET_CONFLICT CHANGESET_CONSTRAINT +// eType value Value passed to xConflict +// ------------------------------------------------- +// CHANGESET_DATA CHANGESET_NOTFOUND +// CHANGESET_CONFLICT CHANGESET_CONSTRAINT // // Or, if pbReplace is not NULL, then an attempt is made to find an existing // record with the same primary key as the record about to be deleted, updated @@ -219043,12 +221282,12 @@ func sessionRebaseAdd(tls *libc.TLS, p uintptr, eType int32, pIter uintptr) int3 // handler as the "conflicting" record. In this case the type of conflict // handler invoked is as follows: // -// eType value PK Record found? Value passed to xConflict -// ---------------------------------------------------------------- -// CHANGESET_DATA Yes CHANGESET_DATA -// CHANGESET_DATA No CHANGESET_NOTFOUND -// CHANGESET_CONFLICT Yes CHANGESET_CONFLICT -// CHANGESET_CONFLICT No CHANGESET_CONSTRAINT +// eType value PK Record found? Value passed to xConflict +// ---------------------------------------------------------------- +// CHANGESET_DATA Yes CHANGESET_DATA +// CHANGESET_DATA No CHANGESET_NOTFOUND +// CHANGESET_CONFLICT Yes CHANGESET_CONFLICT +// CHANGESET_CONFLICT No CHANGESET_CONSTRAINT // // If pbReplace is not NULL, and a record with a matching PK is found, and // the conflict handler function returns SQLITE_CHANGESET_REPLACE, *pbReplace @@ -219058,7 +221297,7 @@ func sessionRebaseAdd(tls *libc.TLS, p uintptr, eType int32, pIter uintptr) int3 // returned. Or, if the conflict handler returns an invalid value, // SQLITE_MISUSE. If the conflict handler returns SQLITE_CHANGESET_OMIT, // this function returns SQLITE_OK. -func sessionConflictHandler(tls *libc.TLS, eType int32, p uintptr, pIter uintptr, xConflict uintptr, pCtx uintptr, pbReplace uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214715:12: */ +func sessionConflictHandler(tls *libc.TLS, eType int32, p uintptr, pIter uintptr, xConflict uintptr, pCtx uintptr, pbReplace uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216837:12: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -219158,7 +221397,7 @@ func sessionConflictHandler(tls *libc.TLS, eType int32, p uintptr, pIter uintptr // If any conflict handler returns SQLITE_CHANGESET_ABORT, this function // returns SQLITE_ABORT. Otherwise, if no error occurs, SQLITE_OK is // returned. -func sessionApplyOneOp(tls *libc.TLS, pIter uintptr, p uintptr, xConflict uintptr, pCtx uintptr, pbReplace uintptr, pbRetry uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214813:12: */ +func sessionApplyOneOp(tls *libc.TLS, pIter uintptr, p uintptr, xConflict uintptr, pCtx uintptr, pbReplace uintptr, pbRetry uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:216935:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -219293,7 +221532,7 @@ func sessionApplyOneOp(tls *libc.TLS, pIter uintptr, p uintptr, xConflict uintpt // function handles the case where the conflict-handler is invoked and // returns SQLITE_CHANGESET_REPLACE - indicating that the change should be // retried in some manner. -func sessionApplyOneWithRetry(tls *libc.TLS, db uintptr, pIter uintptr, pApply uintptr, xConflict uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:214946:12: */ +func sessionApplyOneWithRetry(tls *libc.TLS, db uintptr, pIter uintptr, pApply uintptr, xConflict uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217068:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -219315,7 +221554,7 @@ func sessionApplyOneWithRetry(tls *libc.TLS, db uintptr, pIter uintptr, pApply u rc = sessionApplyOneOp(tls, pIter, pApply, xConflict, pCtx, uintptr(0), uintptr(0)) } else if *(*int32)(unsafe.Pointer(bp)) != 0 { - rc = Xsqlite3_exec(tls, db, ts+34530, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, db, ts+34495, uintptr(0), uintptr(0), uintptr(0)) if rc == SQLITE_OK { rc = sessionBindRow(tls, pIter, *(*uintptr)(unsafe.Pointer(&struct { @@ -219331,7 +221570,7 @@ func sessionApplyOneWithRetry(tls *libc.TLS, db uintptr, pIter uintptr, pApply u rc = sessionApplyOneOp(tls, pIter, pApply, xConflict, pCtx, uintptr(0), uintptr(0)) } if rc == SQLITE_OK { - rc = Xsqlite3_exec(tls, db, ts+34551, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, db, ts+34516, uintptr(0), uintptr(0), uintptr(0)) } } } @@ -219340,7 +221579,7 @@ func sessionApplyOneWithRetry(tls *libc.TLS, db uintptr, pIter uintptr, pApply u } // Retry the changes accumulated in the pApply->constraints buffer. -func sessionRetryConstraints(tls *libc.TLS, db uintptr, bPatchset int32, zTab uintptr, pApply uintptr, xConflict uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215003:12: */ +func sessionRetryConstraints(tls *libc.TLS, db uintptr, bPatchset int32, zTab uintptr, pApply uintptr, xConflict uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217125:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -219394,7 +221633,7 @@ func sessionRetryConstraints(tls *libc.TLS, db uintptr, bPatchset int32, zTab ui // changeset to the main database attached to handle "db". The supplied // conflict handler callback is invoked to resolve any conflicts encountered // while applying the change. -func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr, ppRebase uintptr, pnRebase uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215059:12: */ +func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr, ppRebase uintptr, pnRebase uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217181:12: */ bp := tls.Alloc(368) defer tls.Free(368) @@ -219412,10 +221651,10 @@ func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uin (*SessionApplyCtx)(unsafe.Pointer(bp + 48 /* &sApply */)).FbInvertConstraints = libc.BoolInt32(!!(flags&SQLITE_CHANGESETAPPLY_INVERT != 0)) Xsqlite3_mutex_enter(tls, Xsqlite3_db_mutex(tls, db)) if flags&SQLITE_CHANGESETAPPLY_NOSAVEPOINT == 0 { - rc = Xsqlite3_exec(tls, db, ts+34570, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, db, ts+34535, uintptr(0), uintptr(0), uintptr(0)) } if rc == SQLITE_OK { - rc = Xsqlite3_exec(tls, db, ts+34596, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, db, ts+34561, uintptr(0), uintptr(0), uintptr(0)) } for rc == SQLITE_OK && SQLITE_ROW == Xsqlite3changeset_next(tls, pIter) { // var nCol int32 at bp+184, 4 @@ -219459,7 +221698,7 @@ func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uin f func(*libc.TLS, uintptr, uintptr) int32 })(unsafe.Pointer(&struct{ uintptr }{xFilter})).f(tls, pCtx, *(*uintptr)(unsafe.Pointer(bp + 176)))) if schemaMismatch != 0 { - *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)))) + *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)))) if *(*uintptr)(unsafe.Pointer(bp + 200)) == uintptr(0) { rc = SQLITE_NOMEM break @@ -219472,7 +221711,7 @@ func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uin Xsqlite3changeset_pk(tls, pIter, bp+192, uintptr(0)) rc = sessionTableInfo(tls, uintptr(0), - db, ts+7684, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)), bp+48+32, bp+200, bp+48+40, bp+48+48) + db, ts+7719, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)), bp+48+32, bp+200, bp+48+40, bp+48+48) if rc != SQLITE_OK { break } @@ -219485,20 +221724,20 @@ func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uin if (*SessionApplyCtx)(unsafe.Pointer(bp+48)).FnCol == 0 { schemaMismatch = 1 Xsqlite3_log(tls, SQLITE_SCHEMA, - ts+34626, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)))) + ts+34591, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)))) } else if (*SessionApplyCtx)(unsafe.Pointer(bp+48)).FnCol < *(*int32)(unsafe.Pointer(bp + 184)) { schemaMismatch = 1 Xsqlite3_log(tls, SQLITE_SCHEMA, - ts+34670, + ts+34635, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)), (*SessionApplyCtx)(unsafe.Pointer(bp+48 /* &sApply */)).FnCol, *(*int32)(unsafe.Pointer(bp + 184 /* nCol */)))) } else if *(*int32)(unsafe.Pointer(bp + 184)) < nMinCol || libc.Xmemcmp(tls, (*SessionApplyCtx)(unsafe.Pointer(bp+48)).FabPK, *(*uintptr)(unsafe.Pointer(bp + 192)), uint64(*(*int32)(unsafe.Pointer(bp + 184)))) != 0 { schemaMismatch = 1 Xsqlite3_log(tls, SQLITE_SCHEMA, - ts+34741, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)))) + ts+34706, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)))) } else { (*SessionApplyCtx)(unsafe.Pointer(bp + 48 /* &sApply */)).FnCol = *(*int32)(unsafe.Pointer(bp + 184 /* nCol */)) - if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(bp + 200)), ts+12585) { + if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(bp + 200)), ts+12624) { if libc.AssignInt32(&rc, sessionStat1Sql(tls, db, bp+48)) != 0 { break } @@ -219556,14 +221795,14 @@ func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uin } } } - Xsqlite3_exec(tls, db, ts+34801, uintptr(0), uintptr(0), uintptr(0)) + Xsqlite3_exec(tls, db, ts+34766, uintptr(0), uintptr(0), uintptr(0)) if flags&SQLITE_CHANGESETAPPLY_NOSAVEPOINT == 0 { if rc == SQLITE_OK { - rc = Xsqlite3_exec(tls, db, ts+34831, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, db, ts+34796, uintptr(0), uintptr(0), uintptr(0)) } else { - Xsqlite3_exec(tls, db, ts+34855, uintptr(0), uintptr(0), uintptr(0)) - Xsqlite3_exec(tls, db, ts+34831, uintptr(0), uintptr(0), uintptr(0)) + Xsqlite3_exec(tls, db, ts+34820, uintptr(0), uintptr(0), uintptr(0)) + Xsqlite3_exec(tls, db, ts+34796, uintptr(0), uintptr(0), uintptr(0)) } } @@ -219585,7 +221824,7 @@ func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uin // Apply the changeset passed via pChangeset/nChangeset to the main // database attached to handle "db". -func Xsqlite3changeset_apply_v2(tls *libc.TLS, db uintptr, nChangeset int32, pChangeset uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr, ppRebase uintptr, pnRebase uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215257:16: */ +func Xsqlite3changeset_apply_v2(tls *libc.TLS, db uintptr, nChangeset int32, pChangeset uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr, ppRebase uintptr, pnRebase uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217379:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -219603,7 +221842,7 @@ func Xsqlite3changeset_apply_v2(tls *libc.TLS, db uintptr, nChangeset int32, pCh // Apply the changeset passed via pChangeset/nChangeset to the main database // attached to handle "db". Invoke the supplied conflict handler callback // to resolve any conflicts encountered while applying the change. -func Xsqlite3changeset_apply(tls *libc.TLS, db uintptr, nChangeset int32, pChangeset uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215290:16: */ +func Xsqlite3changeset_apply(tls *libc.TLS, db uintptr, nChangeset int32, pChangeset uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217412:16: */ return Xsqlite3changeset_apply_v2(tls, db, nChangeset, pChangeset, xFilter, xConflict, pCtx, uintptr(0), uintptr(0), 0) } @@ -219611,7 +221850,7 @@ func Xsqlite3changeset_apply(tls *libc.TLS, db uintptr, nChangeset int32, pChang // Apply the changeset passed via xInput/pIn to the main database // attached to handle "db". Invoke the supplied conflict handler callback // to resolve any conflicts encountered while applying the change. -func Xsqlite3changeset_apply_v2_strm(tls *libc.TLS, db uintptr, xInput uintptr, pIn uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr, ppRebase uintptr, pnRebase uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215315:16: */ +func Xsqlite3changeset_apply_v2_strm(tls *libc.TLS, db uintptr, xInput uintptr, pIn uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr, ppRebase uintptr, pnRebase uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217437:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -219626,7 +221865,7 @@ func Xsqlite3changeset_apply_v2_strm(tls *libc.TLS, db uintptr, xInput uintptr, return rc } -func Xsqlite3changeset_apply_strm(tls *libc.TLS, db uintptr, xInput uintptr, pIn uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215342:16: */ +func Xsqlite3changeset_apply_strm(tls *libc.TLS, db uintptr, xInput uintptr, pIn uintptr, xFilter uintptr, xConflict uintptr, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217464:16: */ return Xsqlite3changeset_apply_v2_strm(tls, db, xInput, pIn, xFilter, xConflict, pCtx, uintptr(0), uintptr(0), 0) } @@ -219634,7 +221873,7 @@ func Xsqlite3changeset_apply_strm(tls *libc.TLS, db uintptr, xInput uintptr, pIn // This function is called to merge two changes to the same row together as // part of an sqlite3changeset_concat() operation. A new change object is // allocated and a pointer to it stored in *ppNew. -func sessionChangeMerge(tls *libc.TLS, pTab uintptr, bRebase int32, bPatchset int32, pExist uintptr, op2 int32, bIndirect int32, aRec uintptr, nRec int32, ppNew uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215376:12: */ +func sessionChangeMerge(tls *libc.TLS, pTab uintptr, bRebase int32, bPatchset int32, pExist uintptr, op2 int32, bIndirect int32, aRec uintptr, nRec int32, ppNew uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217498:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -219806,7 +222045,7 @@ func sessionChangeMerge(tls *libc.TLS, pTab uintptr, bRebase int32, bPatchset in // Add all changes in the changeset traversed by the iterator passed as // the first argument to the changegroup hash tables. -func sessionChangesetToHash(tls *libc.TLS, pIter uintptr, pGrp uintptr, bRebase int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215558:12: */ +func sessionChangesetToHash(tls *libc.TLS, pIter uintptr, pGrp uintptr, bRebase int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217680:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -219937,7 +222176,7 @@ func sessionChangesetToHash(tls *libc.TLS, pIter uintptr, pGrp uintptr, bRebase // If successful, SQLITE_OK is returned. Or, if an error occurs, an SQLite // error code. If an error occurs and xOutput is NULL, (*ppOut) and (*pnOut) // are both set to 0 before returning. -func sessionChangegroupOutput(tls *libc.TLS, pGrp uintptr, xOutput uintptr, pOut uintptr, pnOut uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215681:12: */ +func sessionChangegroupOutput(tls *libc.TLS, pGrp uintptr, xOutput uintptr, pOut uintptr, pnOut uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217803:12: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -219991,7 +222230,7 @@ func sessionChangegroupOutput(tls *libc.TLS, pGrp uintptr, xOutput uintptr, pOut } // Allocate a new, empty, sqlite3_changegroup. -func Xsqlite3changegroup_new(tls *libc.TLS, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215732:16: */ +func Xsqlite3changegroup_new(tls *libc.TLS, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217854:16: */ var rc int32 = SQLITE_OK // Return code var p uintptr // New object p = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Sqlite3_changegroup{}))) @@ -220006,7 +222245,7 @@ func Xsqlite3changegroup_new(tls *libc.TLS, pp uintptr) int32 { /* testdata/sqli // Add the changeset currently stored in buffer pData, size nData bytes, // to changeset-group p. -func Xsqlite3changegroup_add(tls *libc.TLS, pGrp uintptr, nData int32, pData uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215749:16: */ +func Xsqlite3changegroup_add(tls *libc.TLS, pGrp uintptr, nData int32, pData uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217871:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -220024,12 +222263,12 @@ func Xsqlite3changegroup_add(tls *libc.TLS, pGrp uintptr, nData int32, pData uin // Obtain a buffer containing a changeset representing the concatenation // of all changesets added to the group so far. -func Xsqlite3changegroup_output(tls *libc.TLS, pGrp uintptr, pnData uintptr, ppData uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215765:16: */ +func Xsqlite3changegroup_output(tls *libc.TLS, pGrp uintptr, pnData uintptr, ppData uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217887:16: */ return sessionChangegroupOutput(tls, pGrp, uintptr(0), uintptr(0), pnData, ppData) } // Streaming versions of changegroup_add(). -func Xsqlite3changegroup_add_strm(tls *libc.TLS, pGrp uintptr, xInput uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215776:16: */ +func Xsqlite3changegroup_add_strm(tls *libc.TLS, pGrp uintptr, xInput uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217898:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -220046,12 +222285,12 @@ func Xsqlite3changegroup_add_strm(tls *libc.TLS, pGrp uintptr, xInput uintptr, p } // Streaming versions of changegroup_output(). -func Xsqlite3changegroup_output_strm(tls *libc.TLS, pGrp uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215795:16: */ +func Xsqlite3changegroup_output_strm(tls *libc.TLS, pGrp uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217917:16: */ return sessionChangegroupOutput(tls, pGrp, xOutput, pOut, uintptr(0), uintptr(0)) } // Delete a changegroup object. -func Xsqlite3changegroup_delete(tls *libc.TLS, pGrp uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215806:17: */ +func Xsqlite3changegroup_delete(tls *libc.TLS, pGrp uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217928:17: */ if pGrp != 0 { sessionDeleteTable(tls, uintptr(0), (*Sqlite3_changegroup)(unsafe.Pointer(pGrp)).FpList) Xsqlite3_free(tls, pGrp) @@ -220059,7 +222298,7 @@ func Xsqlite3changegroup_delete(tls *libc.TLS, pGrp uintptr) { /* testdata/sqlit } // Combine two changesets together. -func Xsqlite3changeset_concat(tls *libc.TLS, nLeft int32, pLeft uintptr, nRight int32, pRight uintptr, pnOut uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215816:16: */ +func Xsqlite3changeset_concat(tls *libc.TLS, nLeft int32, pLeft uintptr, nRight int32, pRight uintptr, pnOut uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217938:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -220083,7 +222322,7 @@ func Xsqlite3changeset_concat(tls *libc.TLS, nLeft int32, pLeft uintptr, nRight } // Streaming version of sqlite3changeset_concat(). -func Xsqlite3changeset_concat_strm(tls *libc.TLS, xInputA uintptr, pInA uintptr, xInputB uintptr, pInB uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215845:16: */ +func Xsqlite3changeset_concat_strm(tls *libc.TLS, xInputA uintptr, pInA uintptr, xInputB uintptr, pInB uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:217967:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -220110,7 +222349,7 @@ func Xsqlite3changeset_concat_strm(tls *libc.TLS, xInputA uintptr, pInA uintptr, // fields in size. This function appends an nCol sessions module // record to buffer pBuf that is a copy of a1, except that for // each field that is undefined in a1[], swap in the field from a2[]. -func sessionAppendRecordMerge(tls *libc.TLS, pBuf uintptr, nCol int32, a1 uintptr, n1 int32, a2 uintptr, n2 int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215884:13: */ +func sessionAppendRecordMerge(tls *libc.TLS, pBuf uintptr, nCol int32, a1 uintptr, n1 int32, a2 uintptr, n2 int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:218006:13: */ sessionBufferGrow(tls, pBuf, int64(n1+n2), pRc) if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK { var i int32 @@ -220142,16 +222381,16 @@ func sessionAppendRecordMerge(tls *libc.TLS, pBuf uintptr, nCol int32, a1 uintpt // // Rebasing the UPDATE involves: // -// * Removing any changes to fields for which the corresponding field +// - Removing any changes to fields for which the corresponding field // in the rebase buffer is set to "replaced" (type 0xFF). If this // means the UPDATE change updates no fields, nothing is appended // to the output buffer. // -// * For each field modified by the local change for which the +// - For each field modified by the local change for which the // corresponding field in the rebase buffer is not "undefined" (0x00) // or "replaced" (0xFF), the old.* value is replaced by the value // in the rebase buffer. -func sessionAppendPartialUpdate(tls *libc.TLS, pBuf uintptr, pIter uintptr, aRec uintptr, nRec int32, aChange uintptr, nChange int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:215933:13: */ +func sessionAppendPartialUpdate(tls *libc.TLS, pBuf uintptr, pIter uintptr, aRec uintptr, nRec int32, aChange uintptr, nChange int32, pRc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:218055:13: */ sessionBufferGrow(tls, pBuf, int64(2+nRec+nChange), pRc) if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK { var bData int32 = 0 @@ -220213,7 +222452,7 @@ func sessionAppendPartialUpdate(tls *libc.TLS, pBuf uintptr, pIter uintptr, aRec // If an error occurs, an SQLite error code is returned. If ppOut and // pnOut are not NULL, then the two output parameters are set to 0 before // returning. -func sessionRebase(tls *libc.TLS, p uintptr, pIter uintptr, xOutput uintptr, pOut uintptr, pnOut uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216001:12: */ +func sessionRebase(tls *libc.TLS, p uintptr, pIter uintptr, xOutput uintptr, pOut uintptr, pnOut uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:218123:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -220351,7 +222590,7 @@ func sessionRebase(tls *libc.TLS, p uintptr, pIter uintptr, xOutput uintptr, pOu } // Create a new rebaser object. -func Xsqlite3rebaser_create(tls *libc.TLS, ppNew uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216133:16: */ +func Xsqlite3rebaser_create(tls *libc.TLS, ppNew uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:218255:16: */ var rc int32 = SQLITE_OK var pNew uintptr @@ -220366,7 +222605,7 @@ func Xsqlite3rebaser_create(tls *libc.TLS, ppNew uintptr) int32 { /* testdata/sq } // Call this one or more times to configure a rebaser. -func Xsqlite3rebaser_configure(tls *libc.TLS, p uintptr, nRebase int32, pRebase uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216150:16: */ +func Xsqlite3rebaser_configure(tls *libc.TLS, p uintptr, nRebase int32, pRebase uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:218272:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -220381,7 +222620,7 @@ func Xsqlite3rebaser_configure(tls *libc.TLS, p uintptr, nRebase int32, pRebase } // Rebase a changeset according to current rebaser configuration -func Xsqlite3rebaser_rebase(tls *libc.TLS, p uintptr, nIn int32, pIn uintptr, pnOut uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216167:16: */ +func Xsqlite3rebaser_rebase(tls *libc.TLS, p uintptr, nIn int32, pIn uintptr, pnOut uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:218289:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -220397,7 +222636,7 @@ func Xsqlite3rebaser_rebase(tls *libc.TLS, p uintptr, nIn int32, pIn uintptr, pn } // Rebase a changeset according to current rebaser configuration -func Xsqlite3rebaser_rebase_strm(tls *libc.TLS, p uintptr, xInput uintptr, pIn uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216186:16: */ +func Xsqlite3rebaser_rebase_strm(tls *libc.TLS, p uintptr, xInput uintptr, pIn uintptr, xOutput uintptr, pOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:218308:16: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -220413,7 +222652,7 @@ func Xsqlite3rebaser_rebase_strm(tls *libc.TLS, p uintptr, xInput uintptr, pIn u } // Destroy a rebaser object -func Xsqlite3rebaser_delete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216207:17: */ +func Xsqlite3rebaser_delete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:218329:17: */ if p != 0 { sessionDeleteTable(tls, uintptr(0), (*Sqlite3_rebaser)(unsafe.Pointer(p)).Fgrp.FpList) Xsqlite3_free(tls, p) @@ -220421,7 +222660,7 @@ func Xsqlite3rebaser_delete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalg } // Global configuration -func Xsqlite3session_config(tls *libc.TLS, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216217:16: */ +func Xsqlite3session_config(tls *libc.TLS, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:218339:16: */ var rc int32 = SQLITE_OK switch op { case SQLITE_SESSION_CONFIG_STRMSIZE: @@ -220509,7 +222748,7 @@ type Fts5Global1 = struct { FpTok uintptr FpDfltTok uintptr FpCsr uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ //************* End of sqlite3session.c ************************************* //************* Begin file fts5.c ******************************************* @@ -220571,13 +222810,13 @@ type Fts5Global1 = struct { // Mark a function parameter as unused, to suppress nuisance compiler // warnings. -type Fts5Global = Fts5Global1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:27 */ +type Fts5Global = Fts5Global1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:27 */ type Fts5Colset1 = struct { FnCol int32 FaiCol [1]int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5Colset = Fts5Colset1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216949:27 */ +type Fts5Colset = Fts5Colset1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219071:27 */ // ************************************************************************* // @@ -220615,14 +222854,14 @@ type Fts5Config1 = struct { FzRank uintptr FzRankArgs uintptr FpzErrmsg uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ // ************************************************************************* // // Interface to code in fts5_config.c. fts5_config.c contains contains code // to parse the arguments passed to the CREATE VIRTUAL TABLE statement. -type Fts5Config = Fts5Config1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216969:27 */ +type Fts5Config = Fts5Config1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219091:27 */ // // End of interface to code in fts5_config.c. @@ -220637,7 +222876,7 @@ type Fts5Buffer1 = struct { Fp uintptr Fn int32 FnSpace int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ // // End of interface to code in fts5_config.c. @@ -220648,7 +222887,7 @@ type Fts5Buffer1 = struct { // Interface to code in fts5_buffer.c. // Buffer object for the incremental building of string data. -type Fts5Buffer = Fts5Buffer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217095:27 */ +type Fts5Buffer = Fts5Buffer1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219217:27 */ type Fts5PoslistReader1 = struct { Fa uintptr @@ -220658,19 +222897,19 @@ type Fts5PoslistReader1 = struct { FbEof U8 F__ccgo_pad1 [6]byte FiPos I64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5PoslistReader = Fts5PoslistReader1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217131:34 */ +type Fts5PoslistReader = Fts5PoslistReader1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219253:34 */ -type Fts5PoslistWriter1 = struct{ FiPrev I64 } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217150:9 */ +type Fts5PoslistWriter1 = struct{ FiPrev I64 } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219272:9 */ -type Fts5PoslistWriter = Fts5PoslistWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217150:34 */ +type Fts5PoslistWriter = Fts5PoslistWriter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219272:34 */ // Bucket of terms object used by the integrity-check in offsets=0 mode. -type Fts5Termset1 = struct{ FapHash [512]uintptr } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217172:9 */ +type Fts5Termset1 = struct{ FapHash [512]uintptr } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219294:9 */ // Bucket of terms object used by the integrity-check in offsets=0 mode. -type Fts5Termset = Fts5Termset1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217172:28 */ +type Fts5Termset = Fts5Termset1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219294:28 */ // // End of interface to code in fts5_buffer.c. @@ -220703,7 +222942,7 @@ type Fts5Index1 = struct { FpDataVersion uintptr FiStructVersion I64 FpStruct uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ // // End of interface to code in fts5_buffer.c. @@ -220714,16 +222953,16 @@ type Fts5Index1 = struct { // Interface to code in fts5_index.c. fts5_index.c contains contains code // to access the data stored in the %_data table. -type Fts5Index = Fts5Index1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217186:26 */ +type Fts5Index = Fts5Index1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219308:26 */ type Fts5IndexIter1 = struct { FiRowid I64 FpData uintptr FnData int32 FbEof U8 F__ccgo_pad1 [3]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5IndexIter = Fts5IndexIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217187:30 */ +type Fts5IndexIter = Fts5IndexIter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219309:30 */ // // End of interface to code in fts5_varint.c. @@ -220738,7 +222977,7 @@ type Fts5Table1 = struct { Fbase Sqlite3_vtab FpConfig uintptr FpIndex uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217389:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219511:9 */ // // End of interface to code in fts5_varint.c. @@ -220749,7 +222988,7 @@ type Fts5Table1 = struct { // Interface to code in fts5_main.c. // Virtual-table object. -type Fts5Table = Fts5Table1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217389:26 */ +type Fts5Table = Fts5Table1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219511:26 */ // // End of interface to code in fts5.c. @@ -220766,7 +223005,7 @@ type Fts5Hash1 = struct { FnSlot int32 FpScan uintptr FaSlot uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ // // End of interface to code in fts5.c. @@ -220775,7 +223014,7 @@ type Fts5Hash1 = struct { // ************************************************************************* // // Interface to code in fts5_hash.c. -type Fts5Hash = Fts5Hash1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217415:25 */ +type Fts5Hash = Fts5Hash1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219537:25 */ // // End of interface to code in fts5_hash.c. @@ -220794,7 +223033,7 @@ type Fts5Storage1 = struct { FnTotalRow I64 FaTotalSize uintptr FaStmt [11]uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217471:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219593:9 */ // // End of interface to code in fts5_hash.c. @@ -220805,7 +223044,7 @@ type Fts5Storage1 = struct { // Interface to code in fts5_storage.c. fts5_storage.c contains contains // code to access the data stored in the %_content and %_docsize tables. -type Fts5Storage = Fts5Storage1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217471:28 */ +type Fts5Storage = Fts5Storage1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219593:28 */ // // End of interface to code in fts5_storage.c. @@ -220821,7 +223060,7 @@ type Fts5Expr1 = struct { FbDesc int32 FnPhrase int32 FapExprPhrase uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ // // End of interface to code in fts5_storage.c. @@ -220830,7 +223069,7 @@ type Fts5Expr1 = struct { // ************************************************************************* // // Interface to code in fts5_expr.c. -type Fts5Expr = Fts5Expr1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217514:25 */ +type Fts5Expr = Fts5Expr1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219636:25 */ type Fts5ExprNode1 = struct { FeType int32 FbEof int32 @@ -220842,9 +223081,9 @@ type Fts5ExprNode1 = struct { FnChild int32 F__ccgo_pad2 [4]byte FapChild [1]uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5ExprNode = Fts5ExprNode1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217515:29 */ +type Fts5ExprNode = Fts5ExprNode1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219637:29 */ type Fts5Parse1 = struct { FpConfig uintptr FzErr uintptr @@ -220854,25 +223093,25 @@ type Fts5Parse1 = struct { FpExpr uintptr FbPhraseToAnd int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217516:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219638:9 */ -type Fts5Parse = Fts5Parse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217516:26 */ +type Fts5Parse = Fts5Parse1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219638:26 */ type Fts5Token1 = struct { Fp uintptr Fn int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217517:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219639:9 */ -type Fts5Token = Fts5Token1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217517:26 */ +type Fts5Token = Fts5Token1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219639:26 */ type Fts5ExprPhrase1 = struct { FpNode uintptr Fposlist Fts5Buffer FnTerm int32 F__ccgo_pad1 [4]byte FaTerm [1]Fts5ExprTerm -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5ExprPhrase = Fts5ExprPhrase1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217518:31 */ +type Fts5ExprPhrase = Fts5ExprPhrase1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219640:31 */ type Fts5ExprNearset1 = struct { FnNear int32 F__ccgo_pad1 [4]byte @@ -220880,17 +223119,17 @@ type Fts5ExprNearset1 = struct { FnPhrase int32 F__ccgo_pad2 [4]byte FapPhrase [1]uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5ExprNearset = Fts5ExprNearset1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217519:32 */ +type Fts5ExprNearset = Fts5ExprNearset1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219641:32 */ type Fts5PoslistPopulator1 = struct { Fwriter Fts5PoslistWriter FbOk int32 FbMiss int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217567:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219689:9 */ -type Fts5PoslistPopulator = Fts5PoslistPopulator1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217567:37 */ +type Fts5PoslistPopulator = Fts5PoslistPopulator1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219689:37 */ // // End of interface to code in fts5_unicode2.c. // @@ -220942,60 +223181,62 @@ type Fts5PoslistPopulator = Fts5PoslistPopulator1 /* testdata/sqlite-amalgamatio // The next sections is a series of control #defines. // various aspects of the generated parser. -// fts5YYCODETYPE is the data type used to store the integer codes -// that represent terminal and non-terminal symbols. -// "unsigned char" is used if there are fewer than -// 256 symbols. Larger types otherwise. -// fts5YYNOCODE is a number of type fts5YYCODETYPE that is not used for -// any terminal or nonterminal symbol. -// fts5YYFALLBACK If defined, this indicates that one or more tokens -// (also known as: "terminal symbols") have fall-back -// values which should be used if the original symbol -// would not parse. This permits keywords to sometimes -// be used as identifiers, for example. -// fts5YYACTIONTYPE is the data type used for "action codes" - numbers -// that indicate what to do in response to the next -// token. -// sqlite3Fts5ParserFTS5TOKENTYPE is the data type used for minor type for terminal -// symbols. Background: A "minor type" is a semantic -// value associated with a terminal or non-terminal -// symbols. For example, for an "ID" terminal symbol, -// the minor type might be the name of the identifier. -// Each non-terminal can have a different minor type. -// Terminal symbols all have the same minor type, though. -// This macros defines the minor type for terminal -// symbols. -// fts5YYMINORTYPE is the data type used for all minor types. -// This is typically a union of many types, one of -// which is sqlite3Fts5ParserFTS5TOKENTYPE. The entry in the union -// for terminal symbols is called "fts5yy0". -// fts5YYSTACKDEPTH is the maximum depth of the parser's stack. If -// zero the stack is dynamically sized using realloc() -// sqlite3Fts5ParserARG_SDECL A static variable declaration for the %extra_argument -// sqlite3Fts5ParserARG_PDECL A parameter declaration for the %extra_argument -// sqlite3Fts5ParserARG_PARAM Code to pass %extra_argument as a subroutine parameter -// sqlite3Fts5ParserARG_STORE Code to store %extra_argument into fts5yypParser -// sqlite3Fts5ParserARG_FETCH Code to extract %extra_argument from fts5yypParser -// sqlite3Fts5ParserCTX_* As sqlite3Fts5ParserARG_ except for %extra_context -// fts5YYERRORSYMBOL is the code number of the error symbol. If not -// defined, then do no error processing. -// fts5YYNSTATE the combined number of states. -// fts5YYNRULE the number of rules in the grammar -// fts5YYNFTS5TOKEN Number of terminal symbols -// fts5YY_MAX_SHIFT Maximum value for shift actions -// fts5YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions -// fts5YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions -// fts5YY_ERROR_ACTION The fts5yy_action[] code for syntax error -// fts5YY_ACCEPT_ACTION The fts5yy_action[] code for accept -// fts5YY_NO_ACTION The fts5yy_action[] code for no-op -// fts5YY_MIN_REDUCE Minimum value for reduce actions -// fts5YY_MAX_REDUCE Maximum value for reduce actions -//************ Begin control #defines **************************************** +// +// fts5YYCODETYPE is the data type used to store the integer codes +// that represent terminal and non-terminal symbols. +// "unsigned char" is used if there are fewer than +// 256 symbols. Larger types otherwise. +// fts5YYNOCODE is a number of type fts5YYCODETYPE that is not used for +// any terminal or nonterminal symbol. +// fts5YYFALLBACK If defined, this indicates that one or more tokens +// (also known as: "terminal symbols") have fall-back +// values which should be used if the original symbol +// would not parse. This permits keywords to sometimes +// be used as identifiers, for example. +// fts5YYACTIONTYPE is the data type used for "action codes" - numbers +// that indicate what to do in response to the next +// token. +// sqlite3Fts5ParserFTS5TOKENTYPE is the data type used for minor type for terminal +// symbols. Background: A "minor type" is a semantic +// value associated with a terminal or non-terminal +// symbols. For example, for an "ID" terminal symbol, +// the minor type might be the name of the identifier. +// Each non-terminal can have a different minor type. +// Terminal symbols all have the same minor type, though. +// This macros defines the minor type for terminal +// symbols. +// fts5YYMINORTYPE is the data type used for all minor types. +// This is typically a union of many types, one of +// which is sqlite3Fts5ParserFTS5TOKENTYPE. The entry in the union +// for terminal symbols is called "fts5yy0". +// fts5YYSTACKDEPTH is the maximum depth of the parser's stack. If +// zero the stack is dynamically sized using realloc() +// sqlite3Fts5ParserARG_SDECL A static variable declaration for the %extra_argument +// sqlite3Fts5ParserARG_PDECL A parameter declaration for the %extra_argument +// sqlite3Fts5ParserARG_PARAM Code to pass %extra_argument as a subroutine parameter +// sqlite3Fts5ParserARG_STORE Code to store %extra_argument into fts5yypParser +// sqlite3Fts5ParserARG_FETCH Code to extract %extra_argument from fts5yypParser +// sqlite3Fts5ParserCTX_* As sqlite3Fts5ParserARG_ except for %extra_context +// fts5YYERRORSYMBOL is the code number of the error symbol. If not +// defined, then do no error processing. +// fts5YYNSTATE the combined number of states. +// fts5YYNRULE the number of rules in the grammar +// fts5YYNFTS5TOKEN Number of terminal symbols +// fts5YY_MAX_SHIFT Maximum value for shift actions +// fts5YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions +// fts5YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions +// fts5YY_ERROR_ACTION The fts5yy_action[] code for syntax error +// fts5YY_ACCEPT_ACTION The fts5yy_action[] code for accept +// fts5YY_NO_ACTION The fts5yy_action[] code for no-op +// fts5YY_MIN_REDUCE Minimum value for reduce actions +// fts5YY_MAX_REDUCE Maximum value for reduce actions +// +// ************ Begin control #defines **************************************** type Fts5YYMINORTYPE = struct { F__ccgo_pad1 [0]uint64 Ffts5yyinit int32 F__ccgo_pad2 [12]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217843:3 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219965:3 */ //************ End control #defines ****************************************** // Define the fts5yytestcase() macro to be a no-op if is not already defined @@ -221014,27 +223255,27 @@ type Fts5YYMINORTYPE = struct { // Suppose the action integer is N. Then the action is determined as // follows // -// 0 <= N <= fts5YY_MAX_SHIFT Shift N. That is, push the lookahead -// token onto the stack and goto state N. +// 0 <= N <= fts5YY_MAX_SHIFT Shift N. That is, push the lookahead +// token onto the stack and goto state N. // -// N between fts5YY_MIN_SHIFTREDUCE Shift to an arbitrary state then -// and fts5YY_MAX_SHIFTREDUCE reduce by rule N-fts5YY_MIN_SHIFTREDUCE. +// N between fts5YY_MIN_SHIFTREDUCE Shift to an arbitrary state then +// and fts5YY_MAX_SHIFTREDUCE reduce by rule N-fts5YY_MIN_SHIFTREDUCE. // -// N == fts5YY_ERROR_ACTION A syntax error has occurred. +// N == fts5YY_ERROR_ACTION A syntax error has occurred. // -// N == fts5YY_ACCEPT_ACTION The parser accepts its input. +// N == fts5YY_ACCEPT_ACTION The parser accepts its input. // -// N == fts5YY_NO_ACTION No such action. Denotes unused -// slots in the fts5yy_action[] table. +// N == fts5YY_NO_ACTION No such action. Denotes unused +// slots in the fts5yy_action[] table. // -// N between fts5YY_MIN_REDUCE Reduce by rule N-fts5YY_MIN_REDUCE -// and fts5YY_MAX_REDUCE +// N between fts5YY_MIN_REDUCE Reduce by rule N-fts5YY_MIN_REDUCE +// and fts5YY_MAX_REDUCE // // The action table is constructed as a single large table named fts5yy_action[]. // Given state S and lookahead X, the action is computed as either: // -// (A) N = fts5yy_action[ fts5yy_shift_ofst[S] + X ] -// (B) N = fts5yy_default[S] +// (A) N = fts5yy_action[ fts5yy_shift_ofst[S] + X ] +// (B) N = fts5yy_default[S] // // The (A) formula is preferred. The B formula is used instead if // fts5yy_lookahead[fts5yy_shift_ofst[S]+X] is not equal to X. @@ -221046,14 +223287,14 @@ type Fts5YYMINORTYPE = struct { // // The following are the tables generated in this section: // -// fts5yy_action[] A single table containing all actions. -// fts5yy_lookahead[] A table containing the lookahead for each entry in -// fts5yy_action. Used to detect hash collisions. -// fts5yy_shift_ofst[] For each state, the offset into fts5yy_action for -// shifting terminals. -// fts5yy_reduce_ofst[] For each state, the offset into fts5yy_action for -// shifting non-terminals after a reduce. -// fts5yy_default[] Default action for each state. +// fts5yy_action[] A single table containing all actions. +// fts5yy_lookahead[] A table containing the lookahead for each entry in +// fts5yy_action. Used to detect hash collisions. +// fts5yy_shift_ofst[] For each state, the offset into fts5yy_action for +// shifting terminals. +// fts5yy_reduce_ofst[] For each state, the offset into fts5yy_action for +// shifting non-terminals after a reduce. +// fts5yy_default[] Default action for each state. // // Begin parsing tables ********************************************* var fts5yy_action = [105]uint8{ @@ -221068,7 +223309,7 @@ var fts5yy_action = [105]uint8{ /* 80 */ uint8(5), uint8(3), uint8(63), uint8(5), uint8(3), uint8(62), uint8(12), uint8(2), uint8(86), uint8(13), /* 90 */ uint8(9), uint8(30), uint8(10), uint8(10), uint8(54), uint8(57), uint8(75), uint8(78), uint8(78), uint8(53), /* 100 */ uint8(57), uint8(15), uint8(82), uint8(82), uint8(71), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217936:31 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220058:31 */ var fts5yy_lookahead = [121]uint8{ /* 0 */ uint8(16), uint8(17), uint8(18), uint8(19), uint8(20), uint8(22), uint8(22), uint8(24), uint8(24), uint8(17), /* 10 */ uint8(18), uint8(19), uint8(20), uint8(7), uint8(22), uint8(9), uint8(24), uint8(17), uint8(18), uint8(19), @@ -221083,23 +223324,23 @@ var fts5yy_lookahead = [121]uint8{ /* 100 */ uint8(9), uint8(9), uint8(27), uint8(27), uint8(11), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), /* 110 */ uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), uint8(27), /* 120 */ uint8(27), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217949:29 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220071:29 */ var fts5yy_shift_ofst = [35]uint8{ /* 0 */ uint8(44), uint8(44), uint8(44), uint8(44), uint8(44), uint8(44), uint8(51), uint8(77), uint8(43), uint8(12), /* 10 */ uint8(14), uint8(83), uint8(82), uint8(14), uint8(23), uint8(23), uint8(31), uint8(31), uint8(71), uint8(74), /* 20 */ uint8(78), uint8(81), uint8(86), uint8(91), uint8(6), uint8(53), uint8(53), uint8(60), uint8(64), uint8(68), /* 30 */ uint8(53), uint8(87), uint8(92), uint8(53), uint8(93), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217967:28 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220089:28 */ var fts5yy_reduce_ofst = [18]int8{ /* 0 */ int8(-16), int8(-8), int8(0), int8(9), int8(17), int8(25), int8(46), int8(-17), int8(-17), int8(37), /* 10 */ int8(67), int8(4), int8(4), int8(8), int8(4), int8(20), int8(27), int8(38), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217976:26 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220098:26 */ var fts5yy_default = [35]uint8{ /* 0 */ uint8(80), uint8(80), uint8(80), uint8(80), uint8(80), uint8(80), uint8(95), uint8(80), uint8(80), uint8(105), /* 10 */ uint8(80), uint8(110), uint8(110), uint8(80), uint8(110), uint8(110), uint8(80), uint8(80), uint8(80), uint8(80), /* 20 */ uint8(80), uint8(91), uint8(80), uint8(80), uint8(80), uint8(101), uint8(100), uint8(80), uint8(80), uint8(90), /* 30 */ uint8(103), uint8(80), uint8(80), uint8(104), uint8(80), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217980:31 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220102:31 */ //********* End of lemon-generated parsing tables **************************** // The next table maps tokens (terminal symbols) into fallback tokens. @@ -221119,14 +223360,14 @@ var fts5yy_default = [35]uint8{ // The following structure represents a single element of the // parser's stack. Information stored includes: // -// + The state number for the parser at this level of the stack. +// - The state number for the parser at this level of the stack. // -// + The value of the token stored at this level of the stack. -// (In other words, the "major" token.) +// - The value of the token stored at this level of the stack. +// (In other words, the "major" token.) // -// + The semantic value stored at this level of the stack. This is -// the information used by the action routines in the grammar. -// It is sometimes called the "minor" token. +// - The semantic value stored at this level of the stack. This is +// the information used by the action routines in the grammar. +// It is sometimes called the "minor" token. // // After the "shift" half of a SHIFTREDUCE action, the stateno field // actually contains the reduce action for the second half of the @@ -221136,9 +223377,9 @@ type fts5yyStackEntry = struct { Fmajor uint8 F__ccgo_pad1 [6]byte Fminor Fts5YYMINORTYPE -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218023:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220145:1 */ -type Fts5yyStackEntry = fts5yyStackEntry /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218030:33 */ +type Fts5yyStackEntry = fts5yyStackEntry /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220152:33 */ // The state of the parser is completely contained in an instance of // the following structure @@ -221147,9 +223388,9 @@ type fts5yyParser = struct { FpParse uintptr Ffts5yystack [100]Fts5yyStackEntry Ffts5yystackEnd uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218034:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220156:1 */ -type Fts5yyParser = fts5yyParser /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218053:29 */ +type Fts5yyParser = fts5yyParser /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220175:29 */ // #include <assert.h> @@ -221159,7 +223400,7 @@ type Fts5yyParser = fts5yyParser /* testdata/sqlite-amalgamation-3380500/sqlite3 // grammar. // Initialize a new parser that has already been allocated. -func sqlite3Fts5ParserInit(tls *libc.TLS, fts5yypRawParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218202:13: */ +func sqlite3Fts5ParserInit(tls *libc.TLS, fts5yypRawParser uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220324:13: */ var fts5yypParser uintptr = fts5yypRawParser (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos = fts5yypParser + 16 /* &.fts5yystack */ @@ -221178,7 +223419,7 @@ func sqlite3Fts5ParserInit(tls *libc.TLS, fts5yypRawParser uintptr) { /* testdat // Outputs: // A pointer to a parser. This pointer is used in subsequent calls // to sqlite3Fts5Parser and sqlite3Fts5ParserFree. -func sqlite3Fts5ParserAlloc(tls *libc.TLS, mallocProc uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218241:13: */ +func sqlite3Fts5ParserAlloc(tls *libc.TLS, mallocProc uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220363:13: */ var fts5yypParser uintptr fts5yypParser = (*struct{ f func(*libc.TLS, U64) uintptr })(unsafe.Pointer(&struct{ uintptr }{mallocProc})).f(tls, U64(unsafe.Sizeof(Fts5yyParser{}))) if fts5yypParser != 0 { @@ -221194,7 +223435,7 @@ func sqlite3Fts5ParserAlloc(tls *libc.TLS, mallocProc uintptr) uintptr { /* test // a pointer to the value to be deleted. The code used to do the // deletions is derived from the %destructor and/or %token_destructor // directives of the input grammar. -func fts5yy_destructor(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor uint8, fts5yypminor uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218260:13: */ +func fts5yy_destructor(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor uint8, fts5yypminor uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220382:13: */ var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse _ = pParse @@ -221252,7 +223493,7 @@ func fts5yy_destructor(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor uint8, // // If there is a destructor routine associated with the token which // is popped from the stack, then call it. -func fts5yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218319:13: */ +func fts5yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220441:13: */ var fts5yytos uintptr fts5yytos = libc.PostDecUintptr(&(*Fts5yyParser)(unsafe.Pointer(pParser)).Ffts5yytos, 24) @@ -221260,7 +223501,7 @@ func fts5yy_pop_parser_stack(tls *libc.TLS, pParser uintptr) { /* testdata/sqlit } // Clear all secondary memory allocations from the parser -func sqlite3Fts5ParserFinalize(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218337:13: */ +func sqlite3Fts5ParserFinalize(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220459:13: */ var pParser uintptr = p for (*Fts5yyParser)(unsafe.Pointer(pParser)).Ffts5yytos > pParser+16 { fts5yy_pop_parser_stack(tls, pParser) @@ -221273,7 +223514,7 @@ func sqlite3Fts5ParserFinalize(tls *libc.TLS, p uintptr) { /* testdata/sqlite-am // If the fts5YYPARSEFREENEVERNULL macro exists (for example because it // is defined in a %include section of the input grammar) then it is // assumed that the input pointer is never NULL. -func sqlite3Fts5ParserFree(tls *libc.TLS, p uintptr, freeProc uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218354:13: */ +func sqlite3Fts5ParserFree(tls *libc.TLS, p uintptr, freeProc uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220476:13: */ if p == uintptr(0) { return } @@ -221297,7 +223538,7 @@ func sqlite3Fts5ParserFree(tls *libc.TLS, p uintptr, freeProc uintptr) { /* test // Find the appropriate action for a parser given the terminal // look-ahead token iLookAhead. -func fts5yy_find_shift_action(tls *libc.TLS, iLookAhead uint8, stateno uint8) uint8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218417:25: */ +func fts5yy_find_shift_action(tls *libc.TLS, iLookAhead uint8, stateno uint8) uint8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220539:25: */ var i int32 if int32(stateno) > Fts5YY_MAX_SHIFT { @@ -221321,7 +223562,7 @@ func fts5yy_find_shift_action(tls *libc.TLS, iLookAhead uint8, stateno uint8) ui // Find the appropriate action for a parser given the non-terminal // look-ahead token iLookAhead. -func fts5yy_find_reduce_action(tls *libc.TLS, stateno uint8, iLookAhead uint8) uint8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218482:25: */ +func fts5yy_find_reduce_action(tls *libc.TLS, stateno uint8, iLookAhead uint8) uint8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220604:25: */ var i int32 i = int32(fts5yy_reduce_ofst[stateno]) @@ -221332,7 +223573,7 @@ func fts5yy_find_reduce_action(tls *libc.TLS, stateno uint8, iLookAhead uint8) u } // The following routine is called if the stack overflows. -func fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218511:13: */ +func fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220633:13: */ var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse for (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos > fts5yypParser+16 { @@ -221342,7 +223583,7 @@ func fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) { /* testdata/sql // stack every overflows //******* Begin %stack_overflow code ***************************************** - sqlite3Fts5ParseError(tls, pParse, ts+34883, 0) + sqlite3Fts5ParseError(tls, pParse, ts+34848, 0) //******* End %stack_overflow code ******************************************* (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse = pParse // Suppress warning about unused %extra_argument var @@ -221351,7 +223592,7 @@ func fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) { /* testdata/sql // Print tracing information for a SHIFT action // Perform a shift action. -func fts5yy_shift(tls *libc.TLS, fts5yypParser uintptr, fts5yyNewState uint8, fts5yyMajor uint8, fts5yyMinor Fts5Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218554:13: */ +func fts5yy_shift(tls *libc.TLS, fts5yypParser uintptr, fts5yyNewState uint8, fts5yyMajor uint8, fts5yyMinor Fts5Token) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220676:13: */ var fts5yytos uintptr (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos += 24 if (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yytos > (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).Ffts5yystackEnd { @@ -221400,7 +223641,7 @@ var fts5yyRuleInfoLhs = [28]uint8{ uint8(24), // (25) phrase ::= STRING star_opt uint8(26), // (26) star_opt ::= STAR uint8(26), // (27) star_opt ::= -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218595:29 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220717:29 */ // For rule J, fts5yyRuleInfoNRhs[J] contains the negative of the number // of symbols on the right-hand side of that rule. @@ -221433,7 +223674,7 @@ var fts5yyRuleInfoNRhs = [28]int8{ int8(-2), // (25) phrase ::= STRING star_opt int8(-1), // (26) star_opt ::= STAR int8(0), // (27) star_opt ::= -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218628:26 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220750:26 */ // Forward Declaration @@ -221445,7 +223686,7 @@ var fts5yyRuleInfoNRhs = [28]int8{ // if the lookahead token has already been consumed. As this procedure is // only called from one place, optimizing compilers will in-line it, which // means that the extra parameters have no performance impact. -func fts5yy_reduce(tls *libc.TLS, fts5yypParser uintptr, fts5yyruleno uint32, fts5yyLookahead int32, fts5yyLookaheadToken Fts5Token) uint8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218671:25: */ +func fts5yy_reduce(tls *libc.TLS, fts5yypParser uintptr, fts5yyruleno uint32, fts5yyLookahead int32, fts5yyLookaheadToken Fts5Token) uint8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:220793:25: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -221655,7 +223896,7 @@ func fts5yy_reduce(tls *libc.TLS, fts5yypParser uintptr, fts5yyruleno uint32, ft // The following code executes when the parse fails // The following code executes when a syntax error first occurs. -func fts5yy_syntax_error(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor int32, fts5yyminor Fts5Token) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218889:13: */ +func fts5yy_syntax_error(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor int32, fts5yyminor Fts5Token) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221011:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -221665,14 +223906,14 @@ func fts5yy_syntax_error(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor int32 _ = fts5yymajor // Silence a compiler warning sqlite3Fts5ParseError(tls, - pParse, ts+34911, libc.VaList(bp, fts5yyminor.Fn, fts5yyminor.Fp)) + pParse, ts+34876, libc.VaList(bp, fts5yyminor.Fn, fts5yyminor.Fp)) //*********** End %syntax_error code ***************************************** (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse = pParse // Suppress warning about unused %extra_argument variable } // The following is executed when the parser accepts -func fts5yy_accept(tls *libc.TLS, fts5yypParser uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218911:13: */ +func fts5yy_accept(tls *libc.TLS, fts5yypParser uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221033:13: */ var pParse uintptr = (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse // Here code is inserted which will be executed whenever the @@ -221701,7 +223942,7 @@ func fts5yy_accept(tls *libc.TLS, fts5yypParser uintptr) { /* testdata/sqlite-am // // Outputs: // None. -func sqlite3Fts5Parser(tls *libc.TLS, fts5yyp uintptr, fts5yymajor int32, fts5yyminor Fts5Token, pParse uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:218952:13: */ +func sqlite3Fts5Parser(tls *libc.TLS, fts5yyp uintptr, fts5yymajor int32, fts5yyminor Fts5Token, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221074:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -221756,7 +223997,7 @@ func sqlite3Fts5Parser(tls *libc.TLS, fts5yyp uintptr, fts5yymajor int32, fts5yy // Return the fallback token corresponding to canonical token iToken, or // 0 if iToken has no fallback. -func sqlite3Fts5ParserFallback(tls *libc.TLS, iToken int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219169:12: */ +func sqlite3Fts5ParserFallback(tls *libc.TLS, iToken int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221291:12: */ _ = iToken return 0 } @@ -221788,13 +224029,12 @@ func sqlite3Fts5ParserFallback(tls *libc.TLS, iToken int32) int32 { /* testdata/ // // Usage is: // -// for(rc = fts5CInstIterNext(pApi, pFts, iCol, &iter); -// (rc==SQLITE_OK && 0==fts5CInstIterEof(&iter); -// rc = fts5CInstIterNext(&iter) -// ){ -// printf("instance starts at %d, ends at %d\n", iter.iStart, iter.iEnd); -// } -// +// for(rc = fts5CInstIterNext(pApi, pFts, iCol, &iter); +// (rc==SQLITE_OK && 0==fts5CInstIterEof(&iter); +// rc = fts5CInstIterNext(&iter) +// ){ +// printf("instance starts at %d, ends at %d\n", iter.iStart, iter.iEnd); +// } type CInstIter1 = struct { FpApi uintptr FpFts uintptr @@ -221804,7 +224044,7 @@ type CInstIter1 = struct { FiStart int32 FiEnd int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219215:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221337:9 */ // 2014 May 31 // @@ -221833,18 +224073,17 @@ type CInstIter1 = struct { // // Usage is: // -// for(rc = fts5CInstIterNext(pApi, pFts, iCol, &iter); -// (rc==SQLITE_OK && 0==fts5CInstIterEof(&iter); -// rc = fts5CInstIterNext(&iter) -// ){ -// printf("instance starts at %d, ends at %d\n", iter.iStart, iter.iEnd); -// } -// -type CInstIter = CInstIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219215:26 */ +// for(rc = fts5CInstIterNext(pApi, pFts, iCol, &iter); +// (rc==SQLITE_OK && 0==fts5CInstIterEof(&iter); +// rc = fts5CInstIterNext(&iter) +// ){ +// printf("instance starts at %d, ends at %d\n", iter.iStart, iter.iEnd); +// } +type CInstIter = CInstIter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221337:26 */ // Advance the iterator to the next coalesced phrase instance. Return // an SQLite error code if an error occurs, or SQLITE_OK otherwise. -func fts5CInstIterNext(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219232:12: */ +func fts5CInstIterNext(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221354:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -221887,7 +224126,7 @@ func fts5CInstIterNext(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite- // Initialize the iterator object indicated by the final parameter to // iterate through coalesced phrase instances in column iCol. -func fts5CInstIterInit(tls *libc.TLS, pApi uintptr, pFts uintptr, iCol int32, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219263:12: */ +func fts5CInstIterInit(tls *libc.TLS, pApi uintptr, pFts uintptr, iCol int32, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221385:12: */ var rc int32 libc.Xmemset(tls, pIter, 0, uint64(unsafe.Sizeof(CInstIter{}))) @@ -221920,12 +224159,12 @@ type HighlightContext1 = struct { FnIn int32 FiOff int32 FzOut uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219289:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221411:9 */ // ************************************************************************ // // Start of highlight() implementation. -type HighlightContext = HighlightContext1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219289:33 */ +type HighlightContext = HighlightContext1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221411:33 */ // Append text to the HighlightContext output string - p->zOut. Argument // z points to a buffer containing n bytes of text to append. If n is @@ -221934,7 +224173,7 @@ type HighlightContext = HighlightContext1 /* testdata/sqlite-amalgamation-338050 // If *pRc is set to any value other than SQLITE_OK when this function is // called, it is a no-op. If an error (i.e. an OOM condition) is encountered, // *pRc is set to an error code before returning. -func fts5HighlightAppend(tls *libc.TLS, pRc uintptr, p uintptr, z uintptr, n int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219312:13: */ +func fts5HighlightAppend(tls *libc.TLS, pRc uintptr, p uintptr, z uintptr, n int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221434:13: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -221942,7 +224181,7 @@ func fts5HighlightAppend(tls *libc.TLS, pRc uintptr, p uintptr, z uintptr, n int if n < 0 { n = int32(libc.Xstrlen(tls, z)) } - (*HighlightContext)(unsafe.Pointer(p)).FzOut = Xsqlite3_mprintf(tls, ts+34942, libc.VaList(bp, (*HighlightContext)(unsafe.Pointer(p)).FzOut, n, z)) + (*HighlightContext)(unsafe.Pointer(p)).FzOut = Xsqlite3_mprintf(tls, ts+34907, libc.VaList(bp, (*HighlightContext)(unsafe.Pointer(p)).FzOut, n, z)) if (*HighlightContext)(unsafe.Pointer(p)).FzOut == uintptr(0) { *(*int32)(unsafe.Pointer(pRc)) = SQLITE_NOMEM } @@ -221950,7 +224189,7 @@ func fts5HighlightAppend(tls *libc.TLS, pRc uintptr, p uintptr, z uintptr, n int } // Tokenizer callback used by implementation of highlight() function. -func fts5HighlightCb(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iStartOff int32, iEndOff int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219327:12: */ +func fts5HighlightCb(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iStartOff int32, iEndOff int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221449:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -222005,7 +224244,7 @@ func fts5HighlightCb(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintp } // Implementation of highlight() function. -func fts5HighlightFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219381:13: */ +func fts5HighlightFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221503:13: */ bp := tls.Alloc(100) defer tls.Free(100) @@ -222016,7 +224255,7 @@ func fts5HighlightFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintp var iCol int32 if nVal != 3 { - var zErr uintptr = ts + 34949 /* "wrong number of ..." */ + var zErr uintptr = ts + 34914 /* "wrong number of ..." */ Xsqlite3_result_error(tls, pCtx, zErr, -1) return } @@ -222065,19 +224304,19 @@ type Fts5SFinder1 = struct { F__ccgo_pad1 [4]byte FaFirst uintptr FzDoc uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219430:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221552:9 */ // // End of highlight() implementation. // // Context object passed to the fts5SentenceFinderCb() function. -type Fts5SFinder = Fts5SFinder1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219430:28 */ +type Fts5SFinder = Fts5SFinder1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221552:28 */ // Add an entry to the Fts5SFinder.aFirst[] array. Grow the array if // necessary. Return SQLITE_OK if successful, or SQLITE_NOMEM if an // error occurs. -func fts5SentenceFinderAdd(tls *libc.TLS, p uintptr, iAdd int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219444:12: */ +func fts5SentenceFinderAdd(tls *libc.TLS, p uintptr, iAdd int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221566:12: */ if (*Fts5SFinder)(unsafe.Pointer(p)).FnFirstAlloc == (*Fts5SFinder)(unsafe.Pointer(p)).FnFirst { var nNew int32 if (*Fts5SFinder)(unsafe.Pointer(p)).FnFirstAlloc != 0 { @@ -222101,7 +224340,7 @@ func fts5SentenceFinderAdd(tls *libc.TLS, p uintptr, iAdd int32) int32 { /* test // This function is an xTokenize() callback used by the auxiliary snippet() // function. Its job is to identify tokens that are the first in a sentence. // For each such token, an entry is added to the SFinder.aFirst[] array. -func fts5SentenceFinderCb(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iStartOff int32, iEndOff int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219463:12: */ +func fts5SentenceFinderCb(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iStartOff int32, iEndOff int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221585:12: */ var rc int32 = SQLITE_OK _ = pToken @@ -222130,7 +224369,7 @@ func fts5SentenceFinderCb(tls *libc.TLS, pContext uintptr, tflags int32, pToken return rc } -func fts5SnippetScore(tls *libc.TLS, pApi uintptr, pFts uintptr, nDocsize int32, aSeen uintptr, iCol int32, iPos int32, nToken int32, pnScore uintptr, piPos uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219496:12: */ +func fts5SnippetScore(tls *libc.TLS, pApi uintptr, pFts uintptr, nDocsize int32, aSeen uintptr, iCol int32, iPos int32, nToken int32, pnScore uintptr, piPos uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221618:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -222188,7 +224427,7 @@ func fts5SnippetScore(tls *libc.TLS, pApi uintptr, pFts uintptr, nDocsize int32, // Return the value in pVal interpreted as utf-8 text. Except, if pVal // contains a NULL value, return a pointer to a static string zero // bytes in length instead of a NULL pointer. -func fts5ValueToText(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219545:19: */ +func fts5ValueToText(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221667:19: */ var zRet uintptr = Xsqlite3_value_text(tls, pVal) if zRet != 0 { return zRet @@ -222197,7 +224436,7 @@ func fts5ValueToText(tls *libc.TLS, pVal uintptr) uintptr { /* testdata/sqlite-a } // Implementation of snippet() function. -func fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219553:13: */ +func fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221675:13: */ bp := tls.Alloc(172) defer tls.Free(172) @@ -222220,7 +224459,7 @@ func fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr var nCol int32 if nVal != 5 { - var zErr uintptr = ts + 34999 /* "wrong number of ..." */ + var zErr uintptr = ts + 34964 /* "wrong number of ..." */ Xsqlite3_result_error(tls, pCtx, zErr, -1) return } @@ -222412,17 +224651,17 @@ type Fts5Bm25Data1 = struct { Favgdl float64 FaIDF uintptr FaFreq uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219711:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221833:9 */ //********************************************************************** // The first time the bm25() function is called for a query, an instance // of the following structure is allocated and populated. -type Fts5Bm25Data = Fts5Bm25Data1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219711:29 */ +type Fts5Bm25Data = Fts5Bm25Data1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221833:29 */ // Callback used by fts5Bm25GetData() to count the number of rows in the // table matched by each individual phrase within the query. -func fts5CountCb(tls *libc.TLS, pApi uintptr, pFts uintptr, pUserData uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219723:12: */ +func fts5CountCb(tls *libc.TLS, pApi uintptr, pFts uintptr, pUserData uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221845:12: */ var pn uintptr = pUserData _ = pApi _ = pFts @@ -222433,7 +224672,7 @@ func fts5CountCb(tls *libc.TLS, pApi uintptr, pFts uintptr, pUserData uintptr) i // Set *ppData to point to the Fts5Bm25Data object for the current query. // If the object has not already been allocated, allocate and populate it // now. -func fts5Bm25GetData(tls *libc.TLS, pApi uintptr, pFts uintptr, ppData uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219739:12: */ +func fts5Bm25GetData(tls *libc.TLS, pApi uintptr, pFts uintptr, ppData uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221861:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -222527,7 +224766,7 @@ func fts5Bm25GetData(tls *libc.TLS, pApi uintptr, pFts uintptr, ppData uintptr) } // Implementation of bm25() function. -func fts5Bm25Function(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219812:13: */ +func fts5Bm25Function(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221934:13: */ bp := tls.Alloc(28) defer tls.Free(28) @@ -222595,18 +224834,18 @@ func fts5Bm25Function(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, n } } -func sqlite3Fts5AuxInit(tls *libc.TLS, pApi uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219868:12: */ +func sqlite3Fts5AuxInit(tls *libc.TLS, pApi uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221990:12: */ bp := tls.Alloc(96) defer tls.Free(96) *(*[3]Builtin)(unsafe.Pointer(bp /* aBuiltin */)) = [3]Builtin{ - {FzFunc: ts + 35047, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { + {FzFunc: ts + 35012, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) }{fts5SnippetFunction}))}, - {FzFunc: ts + 35055, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { + {FzFunc: ts + 35020, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) }{fts5HighlightFunction}))}, - {FzFunc: ts + 35065, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { + {FzFunc: ts + 35030, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) }{fts5Bm25Function}))}, } @@ -222631,7 +224870,7 @@ type Builtin = struct { FpUserData uintptr FxFunc Fts5_extension_function FxDestroy uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219869:3 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:221991:3 */ // 2014 May 31 // @@ -222646,7 +224885,7 @@ type Builtin = struct { // #include "fts5Int.h" -func sqlite3Fts5BufferSize(tls *libc.TLS, pRc uintptr, pBuf uintptr, nByte U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219911:12: */ +func sqlite3Fts5BufferSize(tls *libc.TLS, pRc uintptr, pBuf uintptr, nByte U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222033:12: */ if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) < nByte { var nNew U64 if (*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace != 0 { @@ -222672,7 +224911,7 @@ func sqlite3Fts5BufferSize(tls *libc.TLS, pRc uintptr, pBuf uintptr, nByte U32) // Encode value iVal as an SQLite varint and append it to the buffer object // pBuf. If an OOM error occurs, set the error code in p. -func sqlite3Fts5BufferAppendVarint(tls *libc.TLS, pRc uintptr, pBuf uintptr, iVal I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219935:13: */ +func sqlite3Fts5BufferAppendVarint(tls *libc.TLS, pRc uintptr, pBuf uintptr, iVal I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222057:13: */ if func() int32 { if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn)+U32(9) <= U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) { return 0 @@ -222684,21 +224923,21 @@ func sqlite3Fts5BufferAppendVarint(tls *libc.TLS, pRc uintptr, pBuf uintptr, iVa *(*int32)(unsafe.Pointer(pBuf + 8)) += sqlite3Fts5PutVarint(tls, (*Fts5Buffer)(unsafe.Pointer(pBuf)).Fp+uintptr((*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn), uint64(iVal)) } -func sqlite3Fts5Put32(tls *libc.TLS, aBuf uintptr, iVal int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219940:13: */ +func sqlite3Fts5Put32(tls *libc.TLS, aBuf uintptr, iVal int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222062:13: */ *(*U8)(unsafe.Pointer(aBuf)) = U8(iVal >> 24 & 0x00FF) *(*U8)(unsafe.Pointer(aBuf + 1)) = U8(iVal >> 16 & 0x00FF) *(*U8)(unsafe.Pointer(aBuf + 2)) = U8(iVal >> 8 & 0x00FF) *(*U8)(unsafe.Pointer(aBuf + 3)) = U8(iVal >> 0 & 0x00FF) } -func sqlite3Fts5Get32(tls *libc.TLS, aBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219947:12: */ +func sqlite3Fts5Get32(tls *libc.TLS, aBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222069:12: */ return int32(U32(*(*U8)(unsafe.Pointer(aBuf)))<<24 + U32(int32(*(*U8)(unsafe.Pointer(aBuf + 1)))<<16) + U32(int32(*(*U8)(unsafe.Pointer(aBuf + 2)))<<8) + U32(*(*U8)(unsafe.Pointer(aBuf + 3)))) } // Append buffer nData/pData to buffer pBuf. If an OOM error occurs, set // the error code in p. If an error has already occurred when this function // is called, it is a no-op. -func sqlite3Fts5BufferAppendBlob(tls *libc.TLS, pRc uintptr, pBuf uintptr, nData U32, pData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219956:13: */ +func sqlite3Fts5BufferAppendBlob(tls *libc.TLS, pRc uintptr, pBuf uintptr, nData U32, pData uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222078:13: */ if nData != 0 { if func() int32 { if U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn)+nData <= U32((*Fts5Buffer)(unsafe.Pointer(pBuf)).FnSpace) { @@ -222716,7 +224955,7 @@ func sqlite3Fts5BufferAppendBlob(tls *libc.TLS, pRc uintptr, pBuf uintptr, nData // Append the nul-terminated string zStr to the buffer pBuf. This function // ensures that the byte following the buffer data is set to 0x00, even // though this byte is not included in the pBuf->n count. -func sqlite3Fts5BufferAppendString(tls *libc.TLS, pRc uintptr, pBuf uintptr, zStr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219974:13: */ +func sqlite3Fts5BufferAppendString(tls *libc.TLS, pRc uintptr, pBuf uintptr, zStr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222096:13: */ var nStr int32 = int32(libc.Xstrlen(tls, zStr)) sqlite3Fts5BufferAppendBlob(tls, pRc, pBuf, uint32(nStr+1), zStr) (*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn-- @@ -222728,7 +224967,7 @@ func sqlite3Fts5BufferAppendString(tls *libc.TLS, pRc uintptr, pBuf uintptr, zSt // Like sqlite3Fts5BufferAppendString(), this function ensures that the byte // following the buffer data is set to 0x00, even though this byte is not // included in the pBuf->n count. -func sqlite3Fts5BufferAppendPrintf(tls *libc.TLS, pRc uintptr, pBuf uintptr, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219992:13: */ +func sqlite3Fts5BufferAppendPrintf(tls *libc.TLS, pRc uintptr, pBuf uintptr, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222114:13: */ if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK { var zTmp uintptr var ap Va_list @@ -222746,7 +224985,7 @@ func sqlite3Fts5BufferAppendPrintf(tls *libc.TLS, pRc uintptr, pBuf uintptr, zFm } } -func sqlite3Fts5Mprintf(tls *libc.TLS, pRc uintptr, zFmt uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220013:13: */ +func sqlite3Fts5Mprintf(tls *libc.TLS, pRc uintptr, zFmt uintptr, va uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222135:13: */ var zRet uintptr = uintptr(0) if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK { var ap Va_list @@ -222762,26 +225001,26 @@ func sqlite3Fts5Mprintf(tls *libc.TLS, pRc uintptr, zFmt uintptr, va uintptr) ui } // Free any buffer allocated by pBuf. Zero the structure before returning. -func sqlite3Fts5BufferFree(tls *libc.TLS, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220031:13: */ +func sqlite3Fts5BufferFree(tls *libc.TLS, pBuf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222153:13: */ Xsqlite3_free(tls, (*Fts5Buffer)(unsafe.Pointer(pBuf)).Fp) libc.Xmemset(tls, pBuf, 0, uint64(unsafe.Sizeof(Fts5Buffer{}))) } // Zero the contents of the buffer object. But do not free the associated // memory allocation. -func sqlite3Fts5BufferZero(tls *libc.TLS, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220040:13: */ +func sqlite3Fts5BufferZero(tls *libc.TLS, pBuf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222162:13: */ (*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn = 0 } // Set the buffer to contain nData/pData. If an OOM error occurs, leave an // the error code in p. If an error has already occurred when this function // is called, it is a no-op. -func sqlite3Fts5BufferSet(tls *libc.TLS, pRc uintptr, pBuf uintptr, nData int32, pData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220049:13: */ +func sqlite3Fts5BufferSet(tls *libc.TLS, pRc uintptr, pBuf uintptr, nData int32, pData uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222171:13: */ (*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn = 0 sqlite3Fts5BufferAppendBlob(tls, pRc, pBuf, uint32(nData), pData) } -func sqlite3Fts5PoslistNext64(tls *libc.TLS, a uintptr, n int32, pi uintptr, piOff uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220059:12: */ +func sqlite3Fts5PoslistNext64(tls *libc.TLS, a uintptr, n int32, pi uintptr, piOff uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222181:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -222843,14 +225082,14 @@ func sqlite3Fts5PoslistNext64(tls *libc.TLS, a uintptr, n int32, pi uintptr, piO // Advance the iterator object passed as the only argument. Return true // if the iterator reaches EOF, or false otherwise. -func sqlite3Fts5PoslistReaderNext(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220102:12: */ +func sqlite3Fts5PoslistReaderNext(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222224:12: */ if sqlite3Fts5PoslistNext64(tls, (*Fts5PoslistReader)(unsafe.Pointer(pIter)).Fa, (*Fts5PoslistReader)(unsafe.Pointer(pIter)).Fn, pIter+12, pIter+24) != 0 { (*Fts5PoslistReader)(unsafe.Pointer(pIter)).FbEof = U8(1) } return int32((*Fts5PoslistReader)(unsafe.Pointer(pIter)).FbEof) } -func sqlite3Fts5PoslistReaderInit(tls *libc.TLS, a uintptr, n int32, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220109:12: */ +func sqlite3Fts5PoslistReaderInit(tls *libc.TLS, a uintptr, n int32, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222231:12: */ libc.Xmemset(tls, pIter, 0, uint64(unsafe.Sizeof(Fts5PoslistReader{}))) (*Fts5PoslistReader)(unsafe.Pointer(pIter)).Fa = a (*Fts5PoslistReader)(unsafe.Pointer(pIter)).Fn = n @@ -222862,7 +225101,7 @@ func sqlite3Fts5PoslistReaderInit(tls *libc.TLS, a uintptr, n int32, pIter uintp // pBuf, which must be already be large enough to hold the new data. // The previous position written to this list is *piPrev. *piPrev is set // to iPos before returning. -func sqlite3Fts5PoslistSafeAppend(tls *libc.TLS, pBuf uintptr, piPrev uintptr, iPos I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220126:13: */ +func sqlite3Fts5PoslistSafeAppend(tls *libc.TLS, pBuf uintptr, piPrev uintptr, iPos I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222248:13: */ if iPos >= *(*I64)(unsafe.Pointer(piPrev)) { if iPos&colmask != *(*I64)(unsafe.Pointer(piPrev))&colmask { *(*U8)(unsafe.Pointer((*Fts5Buffer)(unsafe.Pointer(pBuf)).Fp + uintptr(libc.PostIncInt32(&(*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn, 1)))) = U8(1) @@ -222874,9 +225113,9 @@ func sqlite3Fts5PoslistSafeAppend(tls *libc.TLS, pBuf uintptr, piPrev uintptr, i } } -var colmask I64 = I64(int64(0x7FFFFFFF)) << 32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220132:22 */ +var colmask I64 = I64(int64(0x7FFFFFFF)) << 32 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222254:22 */ -func sqlite3Fts5PoslistWriterAppend(tls *libc.TLS, pBuf uintptr, pWriter uintptr, iPos I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220143:12: */ +func sqlite3Fts5PoslistWriterAppend(tls *libc.TLS, pBuf uintptr, pWriter uintptr, iPos I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222265:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -222893,7 +225132,7 @@ func sqlite3Fts5PoslistWriterAppend(tls *libc.TLS, pBuf uintptr, pWriter uintptr return SQLITE_OK } -func sqlite3Fts5MallocZero(tls *libc.TLS, pRc uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220154:13: */ +func sqlite3Fts5MallocZero(tls *libc.TLS, pRc uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222276:13: */ var pRet uintptr = uintptr(0) if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK { pRet = Xsqlite3_malloc64(tls, uint64(nByte)) @@ -222914,7 +225153,7 @@ func sqlite3Fts5MallocZero(tls *libc.TLS, pRc uintptr, nByte Sqlite3_int64) uint // // It is the responsibility of the caller to eventually free the returned // buffer using sqlite3_free(). If an OOM error occurs, NULL is returned. -func sqlite3Fts5Strndup(tls *libc.TLS, pRc uintptr, pIn uintptr, nIn int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220175:13: */ +func sqlite3Fts5Strndup(tls *libc.TLS, pRc uintptr, pIn uintptr, nIn int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222297:13: */ var zRet uintptr = uintptr(0) if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK { if nIn < 0 { @@ -222934,12 +225173,12 @@ func sqlite3Fts5Strndup(tls *libc.TLS, pRc uintptr, pIn uintptr, nIn int32) uint // Return true if character 't' may be part of an FTS5 bareword, or false // otherwise. Characters that may be part of barewords: // -// * All non-ASCII characters, -// * The 52 upper and lower case ASCII characters, and -// * The 10 integer ASCII characters. -// * The underscore character "_" (0x5F). -// * The unicode "subsitute" character (0x1A). -func sqlite3Fts5IsBareword(tls *libc.TLS, t int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220203:12: */ +// - All non-ASCII characters, +// - The 52 upper and lower case ASCII characters, and +// - The 10 integer ASCII characters. +// - The underscore character "_" (0x5F). +// - The unicode "subsitute" character (0x1A). +func sqlite3Fts5IsBareword(tls *libc.TLS, t int8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222325:12: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -222958,19 +225197,17 @@ func sqlite3Fts5IsBareword(tls *libc.TLS, t int8) int32 { /* testdata/sqlite-ama } // ************************************************************************ -// type Fts5TermsetEntry1 = struct { FpTerm uintptr FnTerm int32 FiIdx int32 FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:217172:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219294:9 */ // ************************************************************************ -// -type Fts5TermsetEntry = Fts5TermsetEntry1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220221:33 */ +type Fts5TermsetEntry = Fts5TermsetEntry1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222343:33 */ -func sqlite3Fts5TermsetNew(tls *libc.TLS, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220233:12: */ +func sqlite3Fts5TermsetNew(tls *libc.TLS, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222355:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -222979,7 +225216,7 @@ func sqlite3Fts5TermsetNew(tls *libc.TLS, pp uintptr) int32 { /* testdata/sqlite return *(*int32)(unsafe.Pointer(bp /* rc */)) } -func sqlite3Fts5TermsetAdd(tls *libc.TLS, p uintptr, iIdx int32, pTerm uintptr, nTerm int32, pbPresent uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220239:12: */ +func sqlite3Fts5TermsetAdd(tls *libc.TLS, p uintptr, iIdx int32, pTerm uintptr, nTerm int32, pbPresent uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222361:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -223025,7 +225262,7 @@ func sqlite3Fts5TermsetAdd(tls *libc.TLS, p uintptr, iIdx int32, pTerm uintptr, return *(*int32)(unsafe.Pointer(bp /* rc */)) } -func sqlite3Fts5TermsetFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220288:13: */ +func sqlite3Fts5TermsetFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222410:13: */ if p != 0 { var i U32 for i = U32(0); i < U32(int32(uint64(unsafe.Sizeof([512]uintptr{}))/uint64(unsafe.Sizeof(uintptr(0))))); i++ { @@ -223057,18 +225294,18 @@ func sqlite3Fts5TermsetFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalg // Maximum allowed page size -func fts5_iswhitespace(tls *libc.TLS, x int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220330:12: */ +func fts5_iswhitespace(tls *libc.TLS, x int8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222452:12: */ return libc.Bool32(int32(x) == ' ') } -func fts5_isopenquote(tls *libc.TLS, x int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220334:12: */ +func fts5_isopenquote(tls *libc.TLS, x int8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222456:12: */ return libc.Bool32(int32(x) == '"' || int32(x) == '\'' || int32(x) == '[' || int32(x) == '`') } // Argument pIn points to a character that is part of a nul-terminated // string. Return a pointer to the first character following *pIn in // the string that is not a white-space character. -func fts5ConfigSkipWhitespace(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220343:19: */ +func fts5ConfigSkipWhitespace(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222465:19: */ var p uintptr = pIn if p != 0 { for fts5_iswhitespace(tls, *(*int8)(unsafe.Pointer(p))) != 0 { @@ -223081,7 +225318,7 @@ func fts5ConfigSkipWhitespace(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/ // Argument pIn points to a character that is part of a nul-terminated // string. Return a pointer to the first character following *pIn in // the string that is not a "bareword" character. -func fts5ConfigSkipBareword(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220356:19: */ +func fts5ConfigSkipBareword(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222478:19: */ var p uintptr = pIn for sqlite3Fts5IsBareword(tls, *(*int8)(unsafe.Pointer(p))) != 0 { p++ @@ -223092,17 +225329,17 @@ func fts5ConfigSkipBareword(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sq return p } -func fts5_isdigit(tls *libc.TLS, a int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220363:12: */ +func fts5_isdigit(tls *libc.TLS, a int8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222485:12: */ return libc.Bool32(int32(a) >= '0' && int32(a) <= '9') } -func fts5ConfigSkipLiteral(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220369:19: */ +func fts5ConfigSkipLiteral(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222491:19: */ var p uintptr = pIn switch int32(*(*int8)(unsafe.Pointer(p))) { case 'n': fallthrough case 'N': - if Xsqlite3_strnicmp(tls, ts+7484, p, 4) == 0 { + if Xsqlite3_strnicmp(tls, ts+7519, p, 4) == 0 { p = p + 4 } else { p = uintptr(0) @@ -223185,7 +225422,7 @@ func fts5ConfigSkipLiteral(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sql // the character immediately following it. Or, if the close-quote is not // found, -1 is returned. If -1 is returned, the buffer is left in an // undefined state. -func fts5Dequote(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220445:12: */ +func fts5Dequote(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222567:12: */ var q int8 var iIn int32 = 1 var iOut int32 = 0 @@ -223226,11 +225463,11 @@ func fts5Dequote(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamati // // Examples: // -// "abc" becomes abc -// 'xyz' becomes xyz -// [pqr] becomes pqr -// `mno` becomes mno -func sqlite3Fts5Dequote(tls *libc.TLS, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220490:13: */ +// "abc" becomes abc +// 'xyz' becomes xyz +// [pqr] becomes pqr +// `mno` becomes mno +func sqlite3Fts5Dequote(tls *libc.TLS, z uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222612:13: */ var quote int8 // Quote character (if any ) quote = *(*int8)(unsafe.Pointer(z)) @@ -223243,11 +225480,11 @@ type Fts5Enum1 = struct { FzName uintptr FeVal int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220501:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222623:1 */ -type Fts5Enum = Fts5Enum1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220505:25 */ +type Fts5Enum = Fts5Enum1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222627:25 */ -func fts5ConfigSetEnum(tls *libc.TLS, aEnum uintptr, zEnum uintptr, peVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220507:12: */ +func fts5ConfigSetEnum(tls *libc.TLS, aEnum uintptr, zEnum uintptr, peVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222629:12: */ var nEnum int32 = int32(libc.Xstrlen(tls, zEnum)) var i int32 var iVal int32 = -1 @@ -223275,13 +225512,13 @@ func fts5ConfigSetEnum(tls *libc.TLS, aEnum uintptr, zEnum uintptr, peVal uintpt // an error occurs, an SQLite error code is returned and an error message // may be left in *pzErr. It is the responsibility of the caller to // eventually free any such error message using sqlite3_free(). -func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCmd uintptr, zArg uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220536:12: */ +func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCmd uintptr, zArg uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222658:12: */ bp := tls.Alloc(112) defer tls.Free(112) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_OK var nCmd int32 = int32(libc.Xstrlen(tls, zCmd)) - if Xsqlite3_strnicmp(tls, ts+35070, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+35035, zCmd, nCmd) == 0 { var nByte int32 = int32(uint64(unsafe.Sizeof(int32(0))) * uint64(FTS5_MAX_PREFIX_INDEXES)) var p uintptr var bFirst int32 = 1 @@ -223308,14 +225545,14 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm break } if int32(*(*int8)(unsafe.Pointer(p))) < '0' || int32(*(*int8)(unsafe.Pointer(p))) > '9' { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35077, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35042, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR break } if (*Fts5Config)(unsafe.Pointer(pConfig)).FnPrefix == FTS5_MAX_PREFIX_INDEXES { *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, - ts+35108, libc.VaList(bp, FTS5_MAX_PREFIX_INDEXES)) + ts+35073, libc.VaList(bp, FTS5_MAX_PREFIX_INDEXES)) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR break } @@ -223326,7 +225563,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm } if nPre <= 0 || nPre >= 1000 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35141, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35106, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR break } @@ -223339,7 +225576,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - if Xsqlite3_strnicmp(tls, ts+35178, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+35143, zCmd, nCmd) == 0 { var p uintptr = zArg var nArg Sqlite3_int64 = Sqlite3_int64(libc.Xstrlen(tls, zArg) + uint64(1)) var azArg uintptr = sqlite3Fts5MallocZero(tls, bp+40, int64(uint64(unsafe.Sizeof(uintptr(0)))*uint64(nArg))) @@ -223348,7 +225585,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm if azArg != 0 && pSpace != 0 { if (*Fts5Config)(unsafe.Pointer(pConfig)).FpTok != 0 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35187, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35152, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } else { for nArg = int64(0); p != 0 && *(*int8)(unsafe.Pointer(p)) != 0; nArg++ { @@ -223367,7 +225604,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm } } if p == uintptr(0) { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35220, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35185, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } else { *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = sqlite3Fts5GetTokenizer(tls, pGlobal, @@ -223382,14 +225619,14 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - if Xsqlite3_strnicmp(tls, ts+35254, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+35219, zCmd, nCmd) == 0 { if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent != FTS5_CONTENT_NORMAL { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35262, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35227, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } else { if *(*int8)(unsafe.Pointer(zArg)) != 0 { (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent = FTS5_CONTENT_EXTERNAL - (*Fts5Config)(unsafe.Pointer(pConfig)).FzContent = sqlite3Fts5Mprintf(tls, bp+40, ts+35294, libc.VaList(bp+8, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg)) + (*Fts5Config)(unsafe.Pointer(pConfig)).FzContent = sqlite3Fts5Mprintf(tls, bp+40, ts+35259, libc.VaList(bp+8, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg)) } else { (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent = FTS5_CONTENT_NONE } @@ -223397,9 +225634,9 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - if Xsqlite3_strnicmp(tls, ts+35300, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+35265, zCmd, nCmd) == 0 { if (*Fts5Config)(unsafe.Pointer(pConfig)).FzContentRowid != 0 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35314, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35279, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } else { (*Fts5Config)(unsafe.Pointer(pConfig)).FzContentRowid = sqlite3Fts5Strndup(tls, bp+40, zArg, -1) @@ -223407,9 +225644,9 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - if Xsqlite3_strnicmp(tls, ts+35352, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+35317, zCmd, nCmd) == 0 { if int32(*(*int8)(unsafe.Pointer(zArg))) != '0' && int32(*(*int8)(unsafe.Pointer(zArg))) != '1' || int32(*(*int8)(unsafe.Pointer(zArg + 1))) != 0 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35363, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35328, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } else { (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize = libc.Bool32(int32(*(*int8)(unsafe.Pointer(zArg))) == '1') @@ -223417,28 +225654,28 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - if Xsqlite3_strnicmp(tls, ts+6378, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+6413, zCmd, nCmd) == 0 { *(*[4]Fts5Enum)(unsafe.Pointer(bp + 48 /* aDetail */)) = [4]Fts5Enum{ - {FzName: ts + 9257, FeVal: FTS5_DETAIL_NONE}, - {FzName: ts + 18621}, - {FzName: ts + 35398, FeVal: FTS5_DETAIL_COLUMNS}, + {FzName: ts + 9296, FeVal: FTS5_DETAIL_NONE}, + {FzName: ts + 18651}, + {FzName: ts + 35363, FeVal: FTS5_DETAIL_COLUMNS}, {}, } if libc.AssignPtrInt32(bp+40, fts5ConfigSetEnum(tls, bp+48, zArg, pConfig+92)) != 0 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35406, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35371, 0) } return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35437, libc.VaList(bp+24, nCmd, zCmd)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35402, libc.VaList(bp+24, nCmd, zCmd)) return SQLITE_ERROR } // Allocate an instance of the default tokenizer ("simple") at // Fts5Config.pTokenizer. Return SQLITE_OK if successful, or an SQLite error // code if an error occurs. -func fts5ConfigDefaultTokenizer(tls *libc.TLS, pGlobal uintptr, pConfig uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220700:12: */ +func fts5ConfigDefaultTokenizer(tls *libc.TLS, pGlobal uintptr, pConfig uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222822:12: */ return sqlite3Fts5GetTokenizer(tls, pGlobal, uintptr(0), 0, pConfig, uintptr(0)) } @@ -223456,7 +225693,7 @@ func fts5ConfigDefaultTokenizer(tls *libc.TLS, pGlobal uintptr, pConfig uintptr) // a no-op (NULL is returned). Otherwise, if an OOM occurs within this // function, *pRc is set to SQLITE_NOMEM before returning. *pRc is *not* // set if a parse error (failed to find close quote) occurs. -func fts5ConfigGobbleWord(tls *libc.TLS, pRc uintptr, zIn uintptr, pzOut uintptr, pbQuoted uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220720:19: */ +func fts5ConfigGobbleWord(tls *libc.TLS, pRc uintptr, zIn uintptr, pzOut uintptr, pbQuoted uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222842:19: */ var zRet uintptr = uintptr(0) var nIn Sqlite3_int64 = Sqlite3_int64(libc.Xstrlen(tls, zIn)) @@ -223490,20 +225727,20 @@ func fts5ConfigGobbleWord(tls *libc.TLS, pRc uintptr, zIn uintptr, pzOut uintptr return zRet } -func fts5ConfigParseColumn(tls *libc.TLS, p uintptr, zCol uintptr, zArg uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220760:12: */ +func fts5ConfigParseColumn(tls *libc.TLS, p uintptr, zCol uintptr, zArg uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222882:12: */ bp := tls.Alloc(16) defer tls.Free(16) var rc int32 = SQLITE_OK - if 0 == Xsqlite3_stricmp(tls, zCol, ts+23391) || - 0 == Xsqlite3_stricmp(tls, zCol, ts+17532) { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35465, libc.VaList(bp, zCol)) + if 0 == Xsqlite3_stricmp(tls, zCol, ts+23356) || + 0 == Xsqlite3_stricmp(tls, zCol, ts+17562) { + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35430, libc.VaList(bp, zCol)) rc = SQLITE_ERROR } else if zArg != 0 { - if 0 == Xsqlite3_stricmp(tls, zArg, ts+35495) { + if 0 == Xsqlite3_stricmp(tls, zArg, ts+35460) { *(*U8)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(p)).FabUnindexed + uintptr((*Fts5Config)(unsafe.Pointer(p)).FnCol))) = U8(1) } else { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35505, libc.VaList(bp+8, zArg)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35470, libc.VaList(bp+8, zArg)) rc = SQLITE_ERROR } } @@ -223513,7 +225750,7 @@ func fts5ConfigParseColumn(tls *libc.TLS, p uintptr, zCol uintptr, zArg uintptr, } // Populate the Fts5Config.zContentExprlist string. -func fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220788:12: */ +func fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222910:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -223521,13 +225758,13 @@ func fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = SQLITE_OK *(*Fts5Buffer)(unsafe.Pointer(bp + 32 /* buf */)) = Fts5Buffer{} - sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+35536, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(p)).FzContentRowid)) + sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+35501, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(p)).FzContentRowid)) if (*Fts5Config)(unsafe.Pointer(p)).FeContent != FTS5_CONTENT_NONE { for i = 0; i < (*Fts5Config)(unsafe.Pointer(p)).FnCol; i++ { if (*Fts5Config)(unsafe.Pointer(p)).FeContent == FTS5_CONTENT_EXTERNAL { - sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+35541, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)))) + sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+35506, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)))) } else { - sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+35548, libc.VaList(bp+16, i)) + sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+35513, libc.VaList(bp+16, i)) } } } @@ -223546,7 +225783,7 @@ func fts5ConfigMakeExprlist(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite // returned, *ppOut is set to NULL and an error message may be left in // *pzErr. It is the responsibility of the caller to eventually free any // such error message using sqlite3_free(). -func sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg int32, azArg uintptr, ppOut uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220821:12: */ +func sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg int32, azArg uintptr, ppOut uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222943:12: */ bp := tls.Alloc(76) defer tls.Free(76) @@ -223575,8 +225812,8 @@ func sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg int (*Fts5Config)(unsafe.Pointer(pRet)).FzName = sqlite3Fts5Strndup(tls, bp+40, *(*uintptr)(unsafe.Pointer(azArg + 2*8)), -1) (*Fts5Config)(unsafe.Pointer(pRet)).FbColumnsize = 1 (*Fts5Config)(unsafe.Pointer(pRet)).FeDetail = FTS5_DETAIL_FULL - if *(*int32)(unsafe.Pointer(bp + 40)) == SQLITE_OK && Xsqlite3_stricmp(tls, (*Fts5Config)(unsafe.Pointer(pRet)).FzName, ts+23391) == 0 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35556, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pRet)).FzName)) + if *(*int32)(unsafe.Pointer(bp + 40)) == SQLITE_OK && Xsqlite3_stricmp(tls, (*Fts5Config)(unsafe.Pointer(pRet)).FzName, ts+23356) == 0 { + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35521, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pRet)).FzName)) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } @@ -223610,7 +225847,7 @@ func sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg int if *(*int32)(unsafe.Pointer(bp + 40)) == SQLITE_OK { if z == uintptr(0) { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35585, libc.VaList(bp+8, zOrig)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35550, libc.VaList(bp+8, zOrig)) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } else { if bOption != 0 { @@ -223651,19 +225888,19 @@ func sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg int var zTail uintptr = uintptr(0) if (*Fts5Config)(unsafe.Pointer(pRet)).FeContent == FTS5_CONTENT_NORMAL { - zTail = ts + 35254 /* "content" */ + zTail = ts + 35219 /* "content" */ } else if (*Fts5Config)(unsafe.Pointer(pRet)).FbColumnsize != 0 { - zTail = ts + 35605 /* "docsize" */ + zTail = ts + 35570 /* "docsize" */ } if zTail != 0 { (*Fts5Config)(unsafe.Pointer(pRet)).FzContent = sqlite3Fts5Mprintf(tls, - bp+40, ts+35613, libc.VaList(bp+16, (*Fts5Config)(unsafe.Pointer(pRet)).FzDb, (*Fts5Config)(unsafe.Pointer(pRet)).FzName, zTail)) + bp+40, ts+35578, libc.VaList(bp+16, (*Fts5Config)(unsafe.Pointer(pRet)).FzDb, (*Fts5Config)(unsafe.Pointer(pRet)).FzName, zTail)) } } if *(*int32)(unsafe.Pointer(bp + 40)) == SQLITE_OK && (*Fts5Config)(unsafe.Pointer(pRet)).FzContentRowid == uintptr(0) { - (*Fts5Config)(unsafe.Pointer(pRet)).FzContentRowid = sqlite3Fts5Strndup(tls, bp+40, ts+17532, -1) + (*Fts5Config)(unsafe.Pointer(pRet)).FzContentRowid = sqlite3Fts5Strndup(tls, bp+40, ts+17562, -1) } // Formulate the zContentExprlist text @@ -223679,7 +225916,7 @@ func sqlite3Fts5ConfigParse(tls *libc.TLS, pGlobal uintptr, db uintptr, nArg int } // Free the configuration object passed as the only argument. -func sqlite3Fts5ConfigFree(tls *libc.TLS, pConfig uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220945:13: */ +func sqlite3Fts5ConfigFree(tls *libc.TLS, pConfig uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223067:13: */ if pConfig != 0 { var i int32 if (*Fts5Config)(unsafe.Pointer(pConfig)).FpTok != 0 { @@ -223704,7 +225941,7 @@ func sqlite3Fts5ConfigFree(tls *libc.TLS, pConfig uintptr) { /* testdata/sqlite- // Call sqlite3_declare_vtab() based on the contents of the configuration // object passed as the only argument. Return SQLITE_OK if successful, or // an SQLite error code if an error occurs. -func sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220972:12: */ +func sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223094:12: */ bp := tls.Alloc(52) defer tls.Free(52) @@ -223712,18 +225949,18 @@ func sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) int32 { /* tes *(*int32)(unsafe.Pointer(bp + 48 /* rc */)) = SQLITE_OK var zSql uintptr - zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+35624, 0) + zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+35589, 0) for i = 0; zSql != 0 && i < (*Fts5Config)(unsafe.Pointer(pConfig)).FnCol; i++ { var zSep uintptr = func() uintptr { if i == 0 { return ts + 1524 } - return ts + 15908 + return ts + 15947 }() - zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+35640, libc.VaList(bp, zSql, zSep, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8)))) + zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+35605, libc.VaList(bp, zSql, zSep, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8)))) } - zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+35647, - libc.VaList(bp+24, zSql, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, ts+23391)) + zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+35612, + libc.VaList(bp+24, zSql, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, ts+23356)) if zSql != 0 { *(*int32)(unsafe.Pointer(bp + 48 /* rc */)) = Xsqlite3_declare_vtab(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, zSql) @@ -223738,12 +225975,12 @@ func sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) int32 { /* tes // The callback is invoked once for each token in the input text. The // arguments passed to it are, in order: // -// void *pCtx // Copy of 4th argument to sqlite3Fts5Tokenize() -// const char *pToken // Pointer to buffer containing token -// int nToken // Size of token in bytes -// int iStart // Byte offset of start of token within input text -// int iEnd // Byte offset of end of token within input text -// int iPos // Position of token in input (first token is 0) +// void *pCtx // Copy of 4th argument to sqlite3Fts5Tokenize() +// const char *pToken // Pointer to buffer containing token +// int nToken // Size of token in bytes +// int iStart // Byte offset of start of token within input text +// int iEnd // Byte offset of end of token within input text +// int iPos // Position of token in input (first token is 0) // // If the callback returns a non-zero value the tokenization is abandoned // and no further callbacks are issued. @@ -223754,7 +225991,7 @@ func sqlite3Fts5ConfigDeclareVtab(tls *libc.TLS, pConfig uintptr) int32 { /* tes // still returns SQLITE_OK. Or, if the tokenization was abandoned early // because the callback returned another non-zero value, it is assumed // to be an SQLite error code and returned to the caller. -func sqlite3Fts5Tokenize(tls *libc.TLS, pConfig uintptr, flags int32, pText uintptr, nText int32, pCtx uintptr, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221018:12: */ +func sqlite3Fts5Tokenize(tls *libc.TLS, pConfig uintptr, flags int32, pText uintptr, nText int32, pCtx uintptr, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223140:12: */ if pText == uintptr(0) { return SQLITE_OK } @@ -223768,7 +226005,7 @@ func sqlite3Fts5Tokenize(tls *libc.TLS, pConfig uintptr, flags int32, pText uint // a comma-separated list of SQL literals followed by a ')' character. // If it actually is this, return a pointer to the ')'. Otherwise, return // NULL to indicate a parse error. -func fts5ConfigSkipArgs(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221037:19: */ +func fts5ConfigSkipArgs(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223159:19: */ var p uintptr = pIn for 1 != 0 { @@ -223791,11 +226028,11 @@ func fts5ConfigSkipArgs(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite // Parameter zIn contains a rank() function specification. The format of // this is: // -// + Bareword (function name) -// + Open parenthesis - "(" -// + Zero or more SQL literals in a comma separated list -// + Close parenthesis - ")" -func sqlite3Fts5ConfigParseRank(tls *libc.TLS, zIn uintptr, pzRank uintptr, pzRankArgs uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221064:12: */ +// - Bareword (function name) +// - Open parenthesis - "(" +// - Zero or more SQL literals in a comma separated list +// - Close parenthesis - ")" +func sqlite3Fts5ConfigParseRank(tls *libc.TLS, zIn uintptr, pzRank uintptr, pzRankArgs uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223186:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -223859,13 +226096,13 @@ func sqlite3Fts5ConfigParseRank(tls *libc.TLS, zIn uintptr, pzRank uintptr, pzRa return *(*int32)(unsafe.Pointer(bp /* rc */)) } -func sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pVal uintptr, pbBadkey uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221123:12: */ +func sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pVal uintptr, pbBadkey uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223245:12: */ bp := tls.Alloc(16) defer tls.Free(16) var rc int32 = SQLITE_OK - if 0 == Xsqlite3_stricmp(tls, zKey, ts+35673) { + if 0 == Xsqlite3_stricmp(tls, zKey, ts+35638) { var pgsz int32 = 0 if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) { pgsz = Xsqlite3_value_int(tls, pVal) @@ -223875,7 +226112,7 @@ func sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pVa } else { (*Fts5Config)(unsafe.Pointer(pConfig)).Fpgsz = pgsz } - } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35678) { + } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35643) { var nHashSize int32 = -1 if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) { nHashSize = Xsqlite3_value_int(tls, pVal) @@ -223885,7 +226122,7 @@ func sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pVa } else { (*Fts5Config)(unsafe.Pointer(pConfig)).FnHashSize = nHashSize } - } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35687) { + } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35652) { var nAutomerge int32 = -1 if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) { nAutomerge = Xsqlite3_value_int(tls, pVal) @@ -223898,7 +226135,7 @@ func sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pVa } (*Fts5Config)(unsafe.Pointer(pConfig)).FnAutomerge = nAutomerge } - } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35697) { + } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35662) { var nUsermerge int32 = -1 if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) { nUsermerge = Xsqlite3_value_int(tls, pVal) @@ -223908,7 +226145,7 @@ func sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pVa } else { (*Fts5Config)(unsafe.Pointer(pConfig)).FnUsermerge = nUsermerge } - } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35707) { + } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+35672) { var nCrisisMerge int32 = -1 if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) { nCrisisMerge = Xsqlite3_value_int(tls, pVal) @@ -223924,7 +226161,7 @@ func sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pVa } (*Fts5Config)(unsafe.Pointer(pConfig)).FnCrisisMerge = nCrisisMerge } - } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+23391) { + } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+23356) { var zIn uintptr = Xsqlite3_value_text(tls, pVal) // var zRank uintptr at bp, 8 @@ -223947,11 +226184,11 @@ func sqlite3Fts5ConfigSetValue(tls *libc.TLS, pConfig uintptr, zKey uintptr, pVa } // Load the contents of the %_config table into memory. -func sqlite3Fts5ConfigLoad(tls *libc.TLS, pConfig uintptr, iCookie int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221217:12: */ +func sqlite3Fts5ConfigLoad(tls *libc.TLS, pConfig uintptr, iCookie int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223339:12: */ bp := tls.Alloc(52) defer tls.Free(52) - var zSelect uintptr = ts + 35719 /* "SELECT k, v FROM..." */ + var zSelect uintptr = ts + 35684 /* "SELECT k, v FROM..." */ var zSql uintptr *(*uintptr)(unsafe.Pointer(bp + 40 /* p */)) = uintptr(0) *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_OK @@ -223974,7 +226211,7 @@ func sqlite3Fts5ConfigLoad(tls *libc.TLS, pConfig uintptr, iCookie int32) int32 for SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 40))) { var zK uintptr = Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 40 /* p */)), 0) var pVal uintptr = Xsqlite3_column_value(tls, *(*uintptr)(unsafe.Pointer(bp + 40 /* p */)), 1) - if 0 == Xsqlite3_stricmp(tls, zK, ts+35751) { + if 0 == Xsqlite3_stricmp(tls, zK, ts+35716) { iVersion = Xsqlite3_value_int(tls, pVal) } else { *(*int32)(unsafe.Pointer(bp + 48 /* bDummy */)) = 0 @@ -223989,7 +226226,7 @@ func sqlite3Fts5ConfigLoad(tls *libc.TLS, pConfig uintptr, iCookie int32) int32 if (*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg != 0 { *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, - ts+35759, + ts+35724, libc.VaList(bp+16, iVersion, FTS5_CURRENT_VERSION)) } } @@ -224024,7 +226261,7 @@ type Fts5ExprTerm1 = struct { FzTerm uintptr FpIter uintptr FpSynonym uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ // 2014 May 31 // @@ -224043,9 +226280,9 @@ type Fts5ExprTerm1 = struct { // All token types in the generated fts5parse.h file are greater than 0. -type Fts5ExprTerm = Fts5ExprTerm1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221295:29 */ +type Fts5ExprTerm = Fts5ExprTerm1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223417:29 */ -func sqlite3Fts5ParseError(tls *libc.TLS, pParse uintptr, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221402:13: */ +func sqlite3Fts5ParseError(tls *libc.TLS, pParse uintptr, zFmt uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223524:13: */ var ap Va_list _ = ap ap = va @@ -224057,12 +226294,12 @@ func sqlite3Fts5ParseError(tls *libc.TLS, pParse uintptr, zFmt uintptr, va uintp _ = ap } -func fts5ExprIsspace(tls *libc.TLS, t int8) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221413:12: */ +func fts5ExprIsspace(tls *libc.TLS, t int8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223535:12: */ return libc.Bool32(int32(t) == ' ' || int32(t) == '\t' || int32(t) == '\n' || int32(t) == '\r') } // Read the first token from the nul-terminated string at *pz. -func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221420:12: */ +func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223542:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -224124,7 +226361,7 @@ func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr) } } if int32(*(*int8)(unsafe.Pointer(z2))) == 0 { - sqlite3Fts5ParseError(tls, pParse, ts+35824, 0) + sqlite3Fts5ParseError(tls, pParse, ts+35789, 0) return FTS5_EOF } } @@ -224137,20 +226374,20 @@ func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr) { var z2 uintptr if sqlite3Fts5IsBareword(tls, *(*int8)(unsafe.Pointer(z))) == 0 { - sqlite3Fts5ParseError(tls, pParse, ts+35844, libc.VaList(bp, z)) + sqlite3Fts5ParseError(tls, pParse, ts+35809, libc.VaList(bp, z)) return FTS5_EOF } tok = FTS5_STRING for z2 = z + 1; sqlite3Fts5IsBareword(tls, *(*int8)(unsafe.Pointer(z2))) != 0; z2++ { } (*Fts5Token)(unsafe.Pointer(pToken)).Fn = int32((int64(z2) - int64(z)) / 1) - if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 2 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+35875, uint64(2)) == 0 { + if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 2 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+35840, uint64(2)) == 0 { tok = FTS5_OR } - if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+35878, uint64(3)) == 0 { + if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+35843, uint64(3)) == 0 { tok = FTS5_NOT } - if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+31261, uint64(3)) == 0 { + if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+31226, uint64(3)) == 0 { tok = FTS5_AND } break @@ -224162,15 +226399,15 @@ func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr) return tok } -func fts5ParseAlloc(tls *libc.TLS, t U64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221484:13: */ +func fts5ParseAlloc(tls *libc.TLS, t U64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223606:13: */ return Xsqlite3_malloc64(tls, uint64(Sqlite3_int64(t))) } -func fts5ParseFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221485:13: */ +func fts5ParseFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223607:13: */ Xsqlite3_free(tls, p) } -func sqlite3Fts5ExprNew(tls *libc.TLS, pConfig uintptr, bPhraseToAnd int32, iCol int32, zExpr uintptr, ppNew uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221487:12: */ +func sqlite3Fts5ExprNew(tls *libc.TLS, pConfig uintptr, bPhraseToAnd int32, iCol int32, zExpr uintptr, ppNew uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223609:12: */ bp := tls.Alloc(72) defer tls.Free(72) @@ -224248,7 +226485,7 @@ func sqlite3Fts5ExprNew(tls *libc.TLS, pConfig uintptr, bPhraseToAnd int32, iCol // expression that will match a superset of the rows matched by the LIKE or // GLOB. If successful, SQLITE_OK is returned. Otherwise, an SQLite error // code. -func sqlite3Fts5ExprPattern(tls *libc.TLS, pConfig uintptr, bGlob int32, iCol int32, zText uintptr, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221568:12: */ +func sqlite3Fts5ExprPattern(tls *libc.TLS, pConfig uintptr, bGlob int32, iCol int32, zText uintptr, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223690:12: */ bp := tls.Alloc(3) defer tls.Free(3) @@ -224323,7 +226560,7 @@ func sqlite3Fts5ExprPattern(tls *libc.TLS, pConfig uintptr, bGlob int32, iCol in } // Free the expression node object passed as the only argument. -func sqlite3Fts5ParseNodeFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221638:13: */ +func sqlite3Fts5ParseNodeFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223760:13: */ if p != 0 { var i int32 for i = 0; i < (*Fts5ExprNode)(unsafe.Pointer(p)).FnChild; i++ { @@ -224335,7 +226572,7 @@ func sqlite3Fts5ParseNodeFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-ama } // Free the expression object passed as the only argument. -func sqlite3Fts5ExprFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221652:13: */ +func sqlite3Fts5ExprFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223774:13: */ if p != 0 { sqlite3Fts5ParseNodeFree(tls, (*Fts5Expr)(unsafe.Pointer(p)).FpRoot) Xsqlite3_free(tls, (*Fts5Expr)(unsafe.Pointer(p)).FapExprPhrase) @@ -224343,7 +226580,7 @@ func sqlite3Fts5ExprFree(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama } } -func sqlite3Fts5ExprAnd(tls *libc.TLS, pp1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221660:12: */ +func sqlite3Fts5ExprAnd(tls *libc.TLS, pp1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223782:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -224384,7 +226621,7 @@ func sqlite3Fts5ExprAnd(tls *libc.TLS, pp1 uintptr, p2 uintptr) int32 { /* testd // Argument pTerm must be a synonym iterator. Return the current rowid // that it points to. -func fts5ExprSynonymRowid(tls *libc.TLS, pTerm uintptr, bDesc int32, pbEof uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221700:12: */ +func fts5ExprSynonymRowid(tls *libc.TLS, pTerm uintptr, bDesc int32, pbEof uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223822:12: */ var iRet I64 = int64(0) var bRetValid int32 = 0 var p uintptr @@ -224406,7 +226643,7 @@ func fts5ExprSynonymRowid(tls *libc.TLS, pTerm uintptr, bDesc int32, pbEof uintp } // Argument pTerm must be a synonym iterator. -func fts5ExprSynonymList(tls *libc.TLS, pTerm uintptr, iRowid I64, pBuf uintptr, pa uintptr, pn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221725:12: */ +func fts5ExprSynonymList(tls *libc.TLS, pTerm uintptr, iRowid I64, pBuf uintptr, pa uintptr, pn uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223847:12: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -224570,7 +226807,7 @@ __22: // SQLITE_OK is returned if an error occurs, or an SQLite error code // otherwise. It is not considered an error code if the current rowid is // not a match. -func fts5ExprPhraseIsMatch(tls *libc.TLS, pNode uintptr, pPhrase uintptr, pbMatch uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221808:12: */ +func fts5ExprPhraseIsMatch(tls *libc.TLS, pNode uintptr, pPhrase uintptr, pbMatch uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:223930:12: */ bp := tls.Alloc(168) defer tls.Free(168) @@ -224795,11 +227032,11 @@ type Fts5LookaheadReader1 = struct { Fi int32 FiPos I64 FiLookahead I64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221892:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224014:9 */ -type Fts5LookaheadReader = Fts5LookaheadReader1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221892:36 */ +type Fts5LookaheadReader = Fts5LookaheadReader1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224014:36 */ -func fts5LookaheadReaderNext(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221903:12: */ +func fts5LookaheadReaderNext(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224025:12: */ (*Fts5LookaheadReader)(unsafe.Pointer(p)).FiPos = (*Fts5LookaheadReader)(unsafe.Pointer(p)).FiLookahead if sqlite3Fts5PoslistNext64(tls, (*Fts5LookaheadReader)(unsafe.Pointer(p)).Fa, (*Fts5LookaheadReader)(unsafe.Pointer(p)).Fn, p+12, p+24) != 0 { (*Fts5LookaheadReader)(unsafe.Pointer(p)).FiLookahead = I64(int64(1)) << 62 @@ -224807,7 +227044,7 @@ func fts5LookaheadReaderNext(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlit return libc.Bool32((*Fts5LookaheadReader)(unsafe.Pointer(p)).FiPos == I64(int64(1))<<62) } -func fts5LookaheadReaderInit(tls *libc.TLS, a uintptr, n int32, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221911:12: */ +func fts5LookaheadReaderInit(tls *libc.TLS, a uintptr, n int32, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224033:12: */ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Fts5LookaheadReader{}))) (*Fts5LookaheadReader)(unsafe.Pointer(p)).Fa = a (*Fts5LookaheadReader)(unsafe.Pointer(p)).Fn = n @@ -224819,9 +227056,9 @@ type Fts5NearTrimmer1 = struct { Freader Fts5LookaheadReader Fwriter Fts5PoslistWriter FpOut uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221922:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224044:9 */ -type Fts5NearTrimmer = Fts5NearTrimmer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221922:32 */ +type Fts5NearTrimmer = Fts5NearTrimmer1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224044:32 */ // The near-set object passed as the first argument contains more than // one phrase. All phrases currently point to the same row. The @@ -224838,7 +227075,7 @@ type Fts5NearTrimmer = Fts5NearTrimmer1 /* testdata/sqlite-amalgamation-3380500/ // If no error occurs and non-zero (a match) is returned, the position-list // of each phrase object is edited to contain only those entries that // meet the constraint before returning. -func fts5ExprNearIsMatch(tls *libc.TLS, pRc uintptr, pNear uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:221946:12: */ +func fts5ExprNearIsMatch(tls *libc.TLS, pRc uintptr, pNear uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224068:12: */ bp := tls.Alloc(196) defer tls.Free(196) @@ -225040,7 +227277,7 @@ __29: // If the iterator reaches EOF, set *pbEof to true before returning. If // an error occurs, set *pRc to an error code. If either *pbEof or *pRc // are set, return a non-zero value. Otherwise, return zero. -func fts5ExprAdvanceto(tls *libc.TLS, pIter uintptr, bDesc int32, piLast uintptr, pRc uintptr, pbEof uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222045:12: */ +func fts5ExprAdvanceto(tls *libc.TLS, pIter uintptr, bDesc int32, piLast uintptr, pRc uintptr, pbEof uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224167:12: */ var iLast I64 = *(*I64)(unsafe.Pointer(piLast)) var iRowid I64 @@ -225060,7 +227297,7 @@ func fts5ExprAdvanceto(tls *libc.TLS, pIter uintptr, bDesc int32, piLast uintptr return 0 } -func fts5ExprSynonymAdvanceto(tls *libc.TLS, pTerm uintptr, bDesc int32, piLast uintptr, pRc uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222071:12: */ +func fts5ExprSynonymAdvanceto(tls *libc.TLS, pTerm uintptr, bDesc int32, piLast uintptr, pRc uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224193:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -225087,7 +227324,7 @@ func fts5ExprSynonymAdvanceto(tls *libc.TLS, pTerm uintptr, bDesc int32, piLast return *(*int32)(unsafe.Pointer(bp /* bEof */)) } -func fts5ExprNearTest(tls *libc.TLS, pRc uintptr, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222101:12: */ +func fts5ExprNearTest(tls *libc.TLS, pRc uintptr, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224223:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -225144,7 +227381,7 @@ func fts5ExprNearTest(tls *libc.TLS, pRc uintptr, pExpr uintptr, pNode uintptr) // If an error occurs, return an SQLite error code. Otherwise, return // SQLITE_OK. It is not considered an error if some term matches zero // documents. -func fts5ExprNearInitAll(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222160:12: */ +func fts5ExprNearInitAll(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224282:12: */ var pNear uintptr = (*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear var i int32 @@ -225205,12 +227442,12 @@ func fts5ExprNearInitAll(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* // If pExpr is an ASC iterator, this function returns a value with the // same sign as: // -// (iLhs - iRhs) +// (iLhs - iRhs) // // Otherwise, if this is a DESC iterator, the opposite is returned: // -// (iRhs - iLhs) -func fts5RowidCmp(tls *libc.TLS, pExpr uintptr, iLhs I64, iRhs I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222222:12: */ +// (iRhs - iLhs) +func fts5RowidCmp(tls *libc.TLS, pExpr uintptr, iLhs I64, iRhs I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224344:12: */ if (*Fts5Expr)(unsafe.Pointer(pExpr)).FbDesc == 0 { if iLhs < iRhs { @@ -225226,7 +227463,7 @@ func fts5RowidCmp(tls *libc.TLS, pExpr uintptr, iLhs I64, iRhs I64) int32 { /* t return int32(0) } -func fts5ExprSetEof(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222237:13: */ +func fts5ExprSetEof(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224359:13: */ var i int32 (*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 1 (*Fts5ExprNode)(unsafe.Pointer(pNode)).FbNomatch = 0 @@ -225235,7 +227472,7 @@ func fts5ExprSetEof(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamat } } -func fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222246:13: */ +func fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224368:13: */ if (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_STRING || (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_TERM { var pNear uintptr = (*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear var i int32 @@ -225253,7 +227490,7 @@ func fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite- // Compare the values currently indicated by the two nodes as follows: // -// res = (*p1) - (*p2) +// res = (*p1) - (*p2) // // Nodes that point to values that come later in the iteration order are // considered to be larger. Nodes at EOF are the largest of all. @@ -225261,7 +227498,7 @@ func fts5ExprNodeZeroPoslist(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite- // This means that if the iteration order is ASC, then numerically larger // rowids are considered larger. Or if it is the default DESC, numerically // smaller rowids are larger. -func fts5NodeCompare(tls *libc.TLS, pExpr uintptr, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222276:12: */ +func fts5NodeCompare(tls *libc.TLS, pExpr uintptr, p1 uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224398:12: */ if (*Fts5ExprNode)(unsafe.Pointer(p2)).FbEof != 0 { return -1 } @@ -225280,7 +227517,7 @@ func fts5NodeCompare(tls *libc.TLS, pExpr uintptr, p1 uintptr, p2 uintptr) int32 // SQLITE_OK is returned if an error occurs, or an SQLite error code // otherwise. It is not considered an error code if an iterator reaches // EOF. -func fts5ExprNodeTest_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222297:12: */ +func fts5ExprNodeTest_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224419:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -225348,7 +227585,7 @@ func fts5ExprNodeTest_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 // // Return SQLITE_OK if successful, or an SQLite error code if an error // occurs. -func fts5ExprNodeNext_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222367:12: */ +func fts5ExprNodeNext_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224489:12: */ var pTerm uintptr = *(*uintptr)(unsafe.Pointer((*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear + 24)) + 32 var rc int32 = SQLITE_OK @@ -225407,7 +227644,7 @@ func fts5ExprNodeNext_STRING(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromV return rc } -func fts5ExprNodeTest_TERM(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222432:12: */ +func fts5ExprNodeTest_TERM(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224554:12: */ // As this "NEAR" object is actually a single phrase that consists // of a single term only, grab pointers into the poslist managed by the // fts5_index.c iterator object. This is much faster than synthesizing @@ -225426,7 +227663,7 @@ func fts5ExprNodeTest_TERM(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { } // xNext() method for a node of type FTS5_TERM. -func fts5ExprNodeNext_TERM(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222460:12: */ +func fts5ExprNodeNext_TERM(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224582:12: */ var rc int32 var pIter uintptr = (*Fts5ExprTerm)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear + 24)) + 32)).FpIter @@ -225444,7 +227681,7 @@ func fts5ExprNodeNext_TERM(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromVal return rc } -func fts5ExprNodeTest_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222484:13: */ +func fts5ExprNodeTest_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224606:13: */ var pNext uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48)) var i int32 @@ -225460,7 +227697,7 @@ func fts5ExprNodeTest_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr) { /* testd (*Fts5ExprNode)(unsafe.Pointer(pNode)).FbNomatch = (*Fts5ExprNode)(unsafe.Pointer(pNext)).FbNomatch } -func fts5ExprNodeNext_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222503:12: */ +func fts5ExprNodeNext_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224625:12: */ var i int32 var iLast I64 = (*Fts5ExprNode)(unsafe.Pointer(pNode)).FiRowid @@ -225486,7 +227723,7 @@ func fts5ExprNodeNext_OR(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid } // Argument pNode is an FTS5_AND node. -func fts5ExprNodeTest_AND(tls *libc.TLS, pExpr uintptr, pAnd uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222535:12: */ +func fts5ExprNodeTest_AND(tls *libc.TLS, pExpr uintptr, pAnd uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224657:12: */ var iChild int32 var iLast I64 = (*Fts5ExprNode)(unsafe.Pointer(pAnd)).FiRowid var rc int32 = SQLITE_OK @@ -225536,7 +227773,7 @@ func fts5ExprNodeTest_AND(tls *libc.TLS, pExpr uintptr, pAnd uintptr) int32 { /* return SQLITE_OK } -func fts5ExprNodeNext_AND(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222587:12: */ +func fts5ExprNodeNext_AND(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224709:12: */ var rc int32 = (*struct { f func(*libc.TLS, uintptr, uintptr, int32, I64) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Fts5ExprNode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pNode + 48 /* &.apChild */)))).FxNext})).f(tls, pExpr, *(*uintptr)(unsafe.Pointer(pNode + 48 /* &.apChild */)), bFromValid, iFrom) @@ -225548,7 +227785,7 @@ func fts5ExprNodeNext_AND(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromVali return rc } -func fts5ExprNodeTest_NOT(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222602:12: */ +func fts5ExprNodeTest_NOT(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224724:12: */ var rc int32 = SQLITE_OK var p1 uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48)) var p2 uintptr = *(*uintptr)(unsafe.Pointer(pNode + 48 + 1*8)) @@ -225578,7 +227815,7 @@ func fts5ExprNodeTest_NOT(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { / return rc } -func fts5ExprNodeNext_NOT(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222630:12: */ +func fts5ExprNodeNext_NOT(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromValid int32, iFrom I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224752:12: */ var rc int32 = (*struct { f func(*libc.TLS, uintptr, uintptr, int32, I64) int32 })(unsafe.Pointer(&struct{ uintptr }{(*Fts5ExprNode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pNode + 48 /* &.apChild */)))).FxNext})).f(tls, pExpr, *(*uintptr)(unsafe.Pointer(pNode + 48 /* &.apChild */)), bFromValid, iFrom) @@ -225594,7 +227831,7 @@ func fts5ExprNodeNext_NOT(tls *libc.TLS, pExpr uintptr, pNode uintptr, bFromVali // If pNode currently points to a match, this function returns SQLITE_OK // without modifying it. Otherwise, pNode is advanced until it does point // to a match or EOF is reached. -func fts5ExprNodeTest(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222651:12: */ +func fts5ExprNodeTest(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224773:12: */ var rc int32 = SQLITE_OK if (*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof == 0 { switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType { @@ -225647,7 +227884,7 @@ func fts5ExprNodeTest(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* te // // Return an SQLite error code if an error occurs, or SQLITE_OK otherwise. // It is not an error if there are no matches. -func fts5ExprNodeFirst(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222696:12: */ +func fts5ExprNodeFirst(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224818:12: */ var rc int32 = SQLITE_OK (*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 0 (*Fts5ExprNode)(unsafe.Pointer(pNode)).FbNomatch = 0 @@ -225709,7 +227946,7 @@ func fts5ExprNodeFirst(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* t // // Return SQLITE_OK if successful, or an SQLite error code otherwise. It // is not considered an error if the query does not match any documents. -func sqlite3Fts5ExprFirst(tls *libc.TLS, p uintptr, pIdx uintptr, iFirst I64, bDesc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222755:12: */ +func sqlite3Fts5ExprFirst(tls *libc.TLS, p uintptr, pIdx uintptr, iFirst I64, bDesc int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224877:12: */ var pRoot uintptr = (*Fts5Expr)(unsafe.Pointer(p)).FpRoot var rc int32 // Return code @@ -225741,7 +227978,7 @@ func sqlite3Fts5ExprFirst(tls *libc.TLS, p uintptr, pIdx uintptr, iFirst I64, bD // // Return SQLITE_OK if successful, or an SQLite error code otherwise. It // is not considered an error if the query does not match any documents. -func sqlite3Fts5ExprNext(tls *libc.TLS, p uintptr, iLast I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222786:12: */ +func sqlite3Fts5ExprNext(tls *libc.TLS, p uintptr, iLast I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224908:12: */ var rc int32 var pRoot uintptr = (*Fts5Expr)(unsafe.Pointer(p)).FpRoot @@ -225757,15 +227994,15 @@ func sqlite3Fts5ExprNext(tls *libc.TLS, p uintptr, iLast I64) int32 { /* testdat return rc } -func sqlite3Fts5ExprEof(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222800:12: */ +func sqlite3Fts5ExprEof(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224922:12: */ return (*Fts5ExprNode)(unsafe.Pointer((*Fts5Expr)(unsafe.Pointer(p)).FpRoot)).FbEof } -func sqlite3Fts5ExprRowid(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222804:12: */ +func sqlite3Fts5ExprRowid(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224926:12: */ return (*Fts5ExprNode)(unsafe.Pointer((*Fts5Expr)(unsafe.Pointer(p)).FpRoot)).FiRowid } -func fts5ParseStringFromToken(tls *libc.TLS, pToken uintptr, pz uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222808:12: */ +func fts5ParseStringFromToken(tls *libc.TLS, pToken uintptr, pz uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224930:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -225775,7 +228012,7 @@ func fts5ParseStringFromToken(tls *libc.TLS, pToken uintptr, pz uintptr) int32 { } // Free the phrase object passed as the only argument. -func fts5ExprPhraseFree(tls *libc.TLS, pPhrase uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222817:13: */ +func fts5ExprPhraseFree(tls *libc.TLS, pPhrase uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224939:13: */ if pPhrase != 0 { var i int32 for i = 0; i < (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm; i++ { @@ -225800,7 +228037,7 @@ func fts5ExprPhraseFree(tls *libc.TLS, pPhrase uintptr) { /* testdata/sqlite-ama // Set the "bFirst" flag on the first token of the phrase passed as the // only argument. -func sqlite3Fts5ParseSetCaret(tls *libc.TLS, pPhrase uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222842:13: */ +func sqlite3Fts5ParseSetCaret(tls *libc.TLS, pPhrase uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224964:13: */ if pPhrase != 0 && (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm != 0 { (*Fts5ExprTerm)(unsafe.Pointer(pPhrase + 32)).FbFirst = U8(1) } @@ -225812,7 +228049,7 @@ func sqlite3Fts5ParseSetCaret(tls *libc.TLS, pPhrase uintptr) { /* testdata/sqli // // If an OOM error occurs, both the pNear and pPhrase objects are freed and // NULL returned. -func sqlite3Fts5ParseNearset(tls *libc.TLS, pParse uintptr, pNear uintptr, pPhrase uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222856:24: */ +func sqlite3Fts5ParseNearset(tls *libc.TLS, pParse uintptr, pNear uintptr, pPhrase uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:224978:24: */ var SZALLOC int32 = 8 var pRet uintptr = uintptr(0) @@ -225872,12 +228109,12 @@ type TokenCtx1 = struct { FpPhrase uintptr Frc int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222916:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225041:9 */ -type TokenCtx = TokenCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222916:25 */ +type TokenCtx = TokenCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225041:25 */ // Callback for tokenizing terms used by ParseTerm(). -func fts5ParseTokenize(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222925:12: */ +func fts5ParseTokenize(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225050:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -225946,12 +228183,12 @@ func fts5ParseTokenize(tls *libc.TLS, pContext uintptr, tflags int32, pToken uin } // Free the phrase object passed as the only argument. -func sqlite3Fts5ParsePhraseFree(tls *libc.TLS, pPhrase uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222990:13: */ +func sqlite3Fts5ParsePhraseFree(tls *libc.TLS, pPhrase uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225115:13: */ fts5ExprPhraseFree(tls, pPhrase) } // Free the phrase object passed as the second argument. -func sqlite3Fts5ParseNearsetFree(tls *libc.TLS, pNear uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:222997:13: */ +func sqlite3Fts5ParseNearsetFree(tls *libc.TLS, pNear uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225122:13: */ if pNear != 0 { var i int32 for i = 0; i < (*Fts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase; i++ { @@ -225962,12 +228199,12 @@ func sqlite3Fts5ParseNearsetFree(tls *libc.TLS, pNear uintptr) { /* testdata/sql } } -func sqlite3Fts5ParseFinished(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223008:13: */ +func sqlite3Fts5ParseFinished(tls *libc.TLS, pParse uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225133:13: */ (*Fts5Parse)(unsafe.Pointer(pParse)).FpExpr = p } -func parseGrowPhraseArray(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223013:12: */ +func parseGrowPhraseArray(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225138:12: */ if (*Fts5Parse)(unsafe.Pointer(pParse)).FnPhrase%8 == 0 { var nByte Sqlite3_int64 = Sqlite3_int64(uint64(unsafe.Sizeof(uintptr(0))) * uint64((*Fts5Parse)(unsafe.Pointer(pParse)).FnPhrase+8)) var apNew uintptr @@ -225984,7 +228221,7 @@ func parseGrowPhraseArray(tls *libc.TLS, pParse uintptr) int32 { /* testdata/sql // This function is called by the parser to process a string token. The // string may or may not be quoted. In any case it is tokenized and a // phrase object consisting of all tokens returned. -func sqlite3Fts5ParseTerm(tls *libc.TLS, pParse uintptr, pAppend uintptr, pToken uintptr, bPrefix int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223032:23: */ +func sqlite3Fts5ParseTerm(tls *libc.TLS, pParse uintptr, pAppend uintptr, pToken uintptr, bPrefix int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225157:23: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -226042,7 +228279,7 @@ func sqlite3Fts5ParseTerm(tls *libc.TLS, pParse uintptr, pAppend uintptr, pToken // Create a new FTS5 expression by cloning phrase iPhrase of the // expression passed as the second argument. -func sqlite3Fts5ExprClonePhrase(tls *libc.TLS, pExpr uintptr, iPhrase int32, ppNew uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223086:12: */ +func sqlite3Fts5ExprClonePhrase(tls *libc.TLS, pExpr uintptr, iPhrase int32, ppNew uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225211:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -226137,17 +228374,17 @@ func sqlite3Fts5ExprClonePhrase(tls *libc.TLS, pExpr uintptr, iPhrase int32, ppN // Token pTok has appeared in a MATCH expression where the NEAR operator // is expected. If token pTok does not contain "NEAR", store an error // in the pParse object. -func sqlite3Fts5ParseNear(tls *libc.TLS, pParse uintptr, pTok uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223182:13: */ +func sqlite3Fts5ParseNear(tls *libc.TLS, pParse uintptr, pTok uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225307:13: */ bp := tls.Alloc(16) defer tls.Free(16) - if (*Fts5Token)(unsafe.Pointer(pTok)).Fn != 4 || libc.Xmemcmp(tls, ts+35882, (*Fts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 { + if (*Fts5Token)(unsafe.Pointer(pTok)).Fn != 4 || libc.Xmemcmp(tls, ts+35847, (*Fts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 { sqlite3Fts5ParseError(tls, - pParse, ts+34911, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(pTok)).Fn, (*Fts5Token)(unsafe.Pointer(pTok)).Fp)) + pParse, ts+34876, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(pTok)).Fn, (*Fts5Token)(unsafe.Pointer(pTok)).Fp)) } } -func sqlite3Fts5ParseSetDistance(tls *libc.TLS, pParse uintptr, pNear uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223190:13: */ +func sqlite3Fts5ParseSetDistance(tls *libc.TLS, pParse uintptr, pNear uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225315:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -226159,7 +228396,7 @@ func sqlite3Fts5ParseSetDistance(tls *libc.TLS, pParse uintptr, pNear uintptr, p var c int8 = *(*int8)(unsafe.Pointer((*Fts5Token)(unsafe.Pointer(p)).Fp + uintptr(i))) if int32(c) < '0' || int32(c) > '9' { sqlite3Fts5ParseError(tls, - pParse, ts+35887, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(p)).Fn, (*Fts5Token)(unsafe.Pointer(p)).Fp)) + pParse, ts+35852, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(p)).Fn, (*Fts5Token)(unsafe.Pointer(p)).Fp)) return } nNear = nNear*10 + (int32(*(*int8)(unsafe.Pointer((*Fts5Token)(unsafe.Pointer(p)).Fp + uintptr(i)))) - '0') @@ -226178,7 +228415,7 @@ func sqlite3Fts5ParseSetDistance(tls *libc.TLS, pParse uintptr, pNear uintptr, p // // If an OOM error occurs, store an error code in pParse and return NULL. // The old colset object (if any) is not freed in this case. -func fts5ParseColset(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223225:19: */ +func fts5ParseColset(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225350:19: */ var nCol int32 if p != 0 { nCol = (*Fts5Colset)(unsafe.Pointer(p)).FnCol @@ -226216,7 +228453,7 @@ func fts5ParseColset(tls *libc.TLS, pParse uintptr, p uintptr, iCol int32) uintp // Allocate and return an Fts5Colset object specifying the inverse of // the colset passed as the second argument. Free the colset passed // as the second argument before returning. -func sqlite3Fts5ParseColsetInvert(tls *libc.TLS, pParse uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223266:19: */ +func sqlite3Fts5ParseColsetInvert(tls *libc.TLS, pParse uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225391:19: */ var pRet uintptr var nCol int32 = (*Fts5Config)(unsafe.Pointer((*Fts5Parse)(unsafe.Pointer(pParse)).FpConfig)).FnCol @@ -226238,7 +228475,7 @@ func sqlite3Fts5ParseColsetInvert(tls *libc.TLS, pParse uintptr, p uintptr) uint return pRet } -func sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223289:19: */ +func sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225414:19: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -226256,7 +228493,7 @@ func sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p ui } } if iCol == (*Fts5Config)(unsafe.Pointer(pConfig)).FnCol { - sqlite3Fts5ParseError(tls, pParse, ts+21753, libc.VaList(bp, z)) + sqlite3Fts5ParseError(tls, pParse, ts+21693, libc.VaList(bp, z)) } else { pRet = fts5ParseColset(tls, pParse, pColset, iCol) } @@ -226277,7 +228514,7 @@ func sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p ui // Otherwise, a copy of (*pOrig) is made into memory obtained from // sqlite3Fts5MallocZero() and a pointer to it returned. If the allocation // fails, (*pRc) is set to SQLITE_NOMEM and NULL is returned. -func fts5CloneColset(tls *libc.TLS, pRc uintptr, pOrig uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223329:19: */ +func fts5CloneColset(tls *libc.TLS, pRc uintptr, pOrig uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225454:19: */ var pRet uintptr if pOrig != 0 { var nByte Sqlite3_int64 = Sqlite3_int64(uint64(unsafe.Sizeof(Fts5Colset{})) + uint64((*Fts5Colset)(unsafe.Pointer(pOrig)).FnCol-1)*uint64(unsafe.Sizeof(int32(0)))) @@ -226292,7 +228529,7 @@ func fts5CloneColset(tls *libc.TLS, pRc uintptr, pOrig uintptr) uintptr { /* tes } // Remove from colset pColset any columns that are not also in colset pMerge. -func fts5MergeColset(tls *libc.TLS, pColset uintptr, pMerge uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223346:13: */ +func fts5MergeColset(tls *libc.TLS, pColset uintptr, pMerge uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225471:13: */ var iIn int32 = 0 // Next input in pColset var iMerge int32 = 0 // Next input in pMerge var iOut int32 = 0 // Next output slot in pColset @@ -226316,7 +228553,7 @@ func fts5MergeColset(tls *libc.TLS, pColset uintptr, pMerge uintptr) { /* testda // its decendents. If (*ppFree) is not NULL, it contains a spare copy // of pColset. This function may use the spare copy and set (*ppFree) to // zero, or it may create copies of pColset using fts5CloneColset(). -func fts5ParseSetColset(tls *libc.TLS, pParse uintptr, pNode uintptr, pColset uintptr, ppFree uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223372:13: */ +func fts5ParseSetColset(tls *libc.TLS, pParse uintptr, pNode uintptr, pColset uintptr, ppFree uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225497:13: */ if (*Fts5Parse)(unsafe.Pointer(pParse)).Frc == SQLITE_OK { if (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_STRING || (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_TERM { @@ -226344,21 +228581,21 @@ func fts5ParseSetColset(tls *libc.TLS, pParse uintptr, pNode uintptr, pColset ui } // Apply colset pColset to expression node pExpr and all of its descendents. -func sqlite3Fts5ParseSetColset(tls *libc.TLS, pParse uintptr, pExpr uintptr, pColset uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223410:13: */ +func sqlite3Fts5ParseSetColset(tls *libc.TLS, pParse uintptr, pExpr uintptr, pColset uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225535:13: */ bp := tls.Alloc(8) defer tls.Free(8) *(*uintptr)(unsafe.Pointer(bp /* pFree */)) = pColset if (*Fts5Config)(unsafe.Pointer((*Fts5Parse)(unsafe.Pointer(pParse)).FpConfig)).FeDetail == FTS5_DETAIL_NONE { sqlite3Fts5ParseError(tls, pParse, - ts+35916, 0) + ts+35881, 0) } else { fts5ParseSetColset(tls, pParse, pExpr, pColset, bp) } Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp /* pFree */))) } -func fts5ExprAssignXNext(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223426:13: */ +func fts5ExprAssignXNext(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225551:13: */ switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType { case FTS5_STRING: { @@ -226409,7 +228646,7 @@ func fts5ExprAssignXNext(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amal } } -func fts5ExprAddChildren(tls *libc.TLS, p uintptr, pSub uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223459:13: */ +func fts5ExprAddChildren(tls *libc.TLS, p uintptr, pSub uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225584:13: */ if (*Fts5ExprNode)(unsafe.Pointer(p)).FeType != FTS5_NOT && (*Fts5ExprNode)(unsafe.Pointer(pSub)).FeType == (*Fts5ExprNode)(unsafe.Pointer(p)).FeType { var nByte int32 = int32(uint64(unsafe.Sizeof(uintptr(0))) * uint64((*Fts5ExprNode)(unsafe.Pointer(pSub)).FnChild)) libc.Xmemcpy(tls, p+48+uintptr((*Fts5ExprNode)(unsafe.Pointer(p)).FnChild)*8, pSub+48, uint64(nByte)) @@ -226424,12 +228661,12 @@ func fts5ExprAddChildren(tls *libc.TLS, p uintptr, pSub uintptr) { /* testdata/s // trigram indexes that specify either detail=column or detail=none. // It converts a phrase: // -// abc + def + ghi +// abc + def + ghi // // into an AND tree: // -// abc AND def AND ghi -func fts5ParsePhraseToAnd(tls *libc.TLS, pParse uintptr, pNear uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223481:21: */ +// abc AND def AND ghi +func fts5ParsePhraseToAnd(tls *libc.TLS, pParse uintptr, pNear uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225606:21: */ var nTerm int32 = (*Fts5ExprPhrase)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pNear + 24)))).FnTerm var ii int32 var nByte int32 @@ -226472,7 +228709,7 @@ func fts5ParsePhraseToAnd(tls *libc.TLS, pParse uintptr, pNear uintptr) uintptr // Allocate and return a new expression object. If anything goes wrong (i.e. // OOM error), leave an error code in pParse and return NULL. -func sqlite3Fts5ParseNode(tls *libc.TLS, pParse uintptr, eType int32, pLeft uintptr, pRight uintptr, pNear uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223535:21: */ +func sqlite3Fts5ParseNode(tls *libc.TLS, pParse uintptr, eType int32, pLeft uintptr, pRight uintptr, pNear uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225660:21: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -226532,12 +228769,12 @@ func sqlite3Fts5ParseNode(tls *libc.TLS, pParse uintptr, eType int32, pLeft uint (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm > 1 || (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FnTerm > 0 && (*Fts5ExprTerm)(unsafe.Pointer(pPhrase+32)).FbFirst != 0 { sqlite3Fts5ParseError(tls, pParse, - ts+35969, + ts+35934, libc.VaList(bp, func() uintptr { if (*Fts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase == 1 { - return ts + 36019 /* "phrase" */ + return ts + 35984 /* "phrase" */ } - return ts + 35882 /* "NEAR" */ + return ts + 35847 /* "NEAR" */ }())) Xsqlite3_free(tls, pRet) pRet = uintptr(0) @@ -226560,7 +228797,7 @@ func sqlite3Fts5ParseNode(tls *libc.TLS, pParse uintptr, eType int32, pLeft uint return pRet } -func sqlite3Fts5ParseImplicitAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:223617:21: */ +func sqlite3Fts5ParseImplicitAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:225742:21: */ var pRet uintptr = uintptr(0) var pPrev uintptr @@ -226606,7 +228843,7 @@ func sqlite3Fts5ParseImplicitAnd(tls *libc.TLS, pParse uintptr, pLeft uintptr, p // This is called during initialization to register the fts5_expr() scalar // UDF with the SQLite handle passed as the only argument. -func sqlite3Fts5ExprInit(tls *libc.TLS, pGlobal uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224054:12: */ +func sqlite3Fts5ExprInit(tls *libc.TLS, pGlobal uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226179:12: */ var rc int32 = SQLITE_OK _ = pGlobal _ = db @@ -226619,7 +228856,7 @@ func sqlite3Fts5ExprInit(tls *libc.TLS, pGlobal uintptr, db uintptr) int32 { /* } // Return the number of phrases in expression pExpr. -func sqlite3Fts5ExprPhraseCount(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224091:12: */ +func sqlite3Fts5ExprPhraseCount(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226216:12: */ return func() int32 { if pExpr != 0 { return (*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase @@ -226629,7 +228866,7 @@ func sqlite3Fts5ExprPhraseCount(tls *libc.TLS, pExpr uintptr) int32 { /* testdat } // Return the number of terms in the iPhrase'th phrase in pExpr. -func sqlite3Fts5ExprPhraseSize(tls *libc.TLS, pExpr uintptr, iPhrase int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224098:12: */ +func sqlite3Fts5ExprPhraseSize(tls *libc.TLS, pExpr uintptr, iPhrase int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226223:12: */ if iPhrase < 0 || iPhrase >= (*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase { return 0 } @@ -226638,7 +228875,7 @@ func sqlite3Fts5ExprPhraseSize(tls *libc.TLS, pExpr uintptr, iPhrase int32) int3 // This function is used to access the current position list for phrase // iPhrase. -func sqlite3Fts5ExprPoslist(tls *libc.TLS, pExpr uintptr, iPhrase int32, pa uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224107:12: */ +func sqlite3Fts5ExprPoslist(tls *libc.TLS, pExpr uintptr, iPhrase int32, pa uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226232:12: */ var nRet int32 var pPhrase uintptr = *(*uintptr)(unsafe.Pointer((*Fts5Expr)(unsafe.Pointer(pExpr)).FapExprPhrase + uintptr(iPhrase)*8)) var pNode uintptr = (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FpNode @@ -226659,7 +228896,7 @@ func sqlite3Fts5ExprPoslist(tls *libc.TLS, pExpr uintptr, iPhrase int32, pa uint // At present this function is only used for detail=col and detail=none // fts5 tables. This implies that all phrases must be at most 1 token // in size, as phrase matches are not supported without detail=full. -func sqlite3Fts5ExprClearPoslists(tls *libc.TLS, pExpr uintptr, bLive int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224136:29: */ +func sqlite3Fts5ExprClearPoslists(tls *libc.TLS, pExpr uintptr, bLive int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226261:29: */ var pRet uintptr pRet = Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(Fts5PoslistPopulator{}))*uint64((*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase)) if pRet != 0 { @@ -226683,12 +228920,12 @@ type Fts5ExprCtx1 = struct { FpExpr uintptr FaPopulator uintptr FiOff I64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224158:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226283:1 */ -type Fts5ExprCtx = Fts5ExprCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224163:28 */ +type Fts5ExprCtx = Fts5ExprCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226288:28 */ // TODO: Make this more efficient! -func fts5ExprColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224168:12: */ +func fts5ExprColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226293:12: */ var i int32 for i = 0; i < (*Fts5Colset)(unsafe.Pointer(pColset)).FnCol; i++ { if *(*int32)(unsafe.Pointer(pColset + 4 + uintptr(i)*4)) == iCol { @@ -226698,7 +228935,7 @@ func fts5ExprColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* t return 0 } -func fts5ExprPopulatePoslistsCb(tls *libc.TLS, pCtx uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224176:12: */ +func fts5ExprPopulatePoslistsCb(tls *libc.TLS, pCtx uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226301:12: */ var p uintptr = pCtx var pExpr uintptr = (*Fts5ExprCtx)(unsafe.Pointer(p)).FpExpr var i int32 @@ -226733,7 +228970,7 @@ func fts5ExprPopulatePoslistsCb(tls *libc.TLS, pCtx uintptr, tflags int32, pToke return SQLITE_OK } -func sqlite3Fts5ExprPopulatePoslists(tls *libc.TLS, pConfig uintptr, pExpr uintptr, aPopulator uintptr, iCol int32, z uintptr, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224211:12: */ +func sqlite3Fts5ExprPopulatePoslists(tls *libc.TLS, pConfig uintptr, pExpr uintptr, aPopulator uintptr, iCol int32, z uintptr, n int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226336:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -226761,7 +228998,7 @@ func sqlite3Fts5ExprPopulatePoslists(tls *libc.TLS, pConfig uintptr, pExpr uintp }{fts5ExprPopulatePoslistsCb}))) } -func fts5ExprClearPoslists(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224241:13: */ +func fts5ExprClearPoslists(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226366:13: */ if (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_TERM || (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType == FTS5_STRING { (*Fts5ExprPhrase)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer((*Fts5ExprNode)(unsafe.Pointer(pNode)).FpNear + 24)))).Fposlist.Fn = 0 } else { @@ -226772,7 +229009,7 @@ func fts5ExprClearPoslists(tls *libc.TLS, pNode uintptr) { /* testdata/sqlite-am } } -func fts5ExprCheckPoslists(tls *libc.TLS, pNode uintptr, iRowid I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224252:12: */ +func fts5ExprCheckPoslists(tls *libc.TLS, pNode uintptr, iRowid I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226377:12: */ (*Fts5ExprNode)(unsafe.Pointer(pNode)).FiRowid = iRowid (*Fts5ExprNode)(unsafe.Pointer(pNode)).FbEof = 0 switch (*Fts5ExprNode)(unsafe.Pointer(pNode)).FeType { @@ -226822,12 +229059,12 @@ func fts5ExprCheckPoslists(tls *libc.TLS, pNode uintptr, iRowid I64) int32 { /* return 1 } -func sqlite3Fts5ExprCheckPoslists(tls *libc.TLS, pExpr uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224296:13: */ +func sqlite3Fts5ExprCheckPoslists(tls *libc.TLS, pExpr uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226421:13: */ fts5ExprCheckPoslists(tls, (*Fts5Expr)(unsafe.Pointer(pExpr)).FpRoot, iRowid) } // This function is only called for detail=columns tables. -func sqlite3Fts5ExprPhraseCollist(tls *libc.TLS, pExpr uintptr, iPhrase int32, ppCollist uintptr, pnCollist uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224303:12: */ +func sqlite3Fts5ExprPhraseCollist(tls *libc.TLS, pExpr uintptr, iPhrase int32, ppCollist uintptr, pnCollist uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226428:12: */ var pPhrase uintptr = *(*uintptr)(unsafe.Pointer((*Fts5Expr)(unsafe.Pointer(pExpr)).FapExprPhrase + uintptr(iPhrase)*8)) var pNode uintptr = (*Fts5ExprPhrase)(unsafe.Pointer(pPhrase)).FpNode var rc int32 = SQLITE_OK @@ -226878,7 +229115,7 @@ type Fts5HashEntry1 = struct { FiCol I16 FiPos int32 FiRowid I64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ // 2014 August 11 // @@ -226894,14 +229131,14 @@ type Fts5HashEntry1 = struct { // #include "fts5Int.h" -type Fts5HashEntry = Fts5HashEntry1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224356:30 */ +type Fts5HashEntry = Fts5HashEntry1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226481:30 */ // Eqivalent to: // // char *fts5EntryKey(Fts5HashEntry *pEntry){ return zKey; } // Allocate a new hash table. -func sqlite3Fts5HashNew(tls *libc.TLS, pConfig uintptr, ppNew uintptr, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224422:12: */ +func sqlite3Fts5HashNew(tls *libc.TLS, pConfig uintptr, ppNew uintptr, pnByte uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226547:12: */ var rc int32 = SQLITE_OK var pNew uintptr @@ -226929,7 +229166,7 @@ func sqlite3Fts5HashNew(tls *libc.TLS, pConfig uintptr, ppNew uintptr, pnByte ui } // Free a hash table object. -func sqlite3Fts5HashFree(tls *libc.TLS, pHash uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224452:13: */ +func sqlite3Fts5HashFree(tls *libc.TLS, pHash uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226577:13: */ if pHash != 0 { sqlite3Fts5HashClear(tls, pHash) Xsqlite3_free(tls, (*Fts5Hash)(unsafe.Pointer(pHash)).FaSlot) @@ -226938,7 +229175,7 @@ func sqlite3Fts5HashFree(tls *libc.TLS, pHash uintptr) { /* testdata/sqlite-amal } // Empty (but do not delete) a hash table. -func sqlite3Fts5HashClear(tls *libc.TLS, pHash uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224463:13: */ +func sqlite3Fts5HashClear(tls *libc.TLS, pHash uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226588:13: */ var i int32 for i = 0; i < (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot; i++ { var pNext uintptr @@ -226952,7 +229189,7 @@ func sqlite3Fts5HashClear(tls *libc.TLS, pHash uintptr) { /* testdata/sqlite-ama (*Fts5Hash)(unsafe.Pointer(pHash)).FnEntry = 0 } -func fts5HashKey(tls *libc.TLS, nSlot int32, p uintptr, n int32) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224477:21: */ +func fts5HashKey(tls *libc.TLS, nSlot int32, p uintptr, n int32) uint32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226602:21: */ var i int32 var h uint32 = uint32(13) for i = n - 1; i >= 0; i-- { @@ -226961,7 +229198,7 @@ func fts5HashKey(tls *libc.TLS, nSlot int32, p uintptr, n int32) uint32 { /* tes return h % uint32(nSlot) } -func fts5HashKey2(tls *libc.TLS, nSlot int32, b U8, p uintptr, n int32) uint32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224486:21: */ +func fts5HashKey2(tls *libc.TLS, nSlot int32, b U8, p uintptr, n int32) uint32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226611:21: */ var i int32 var h uint32 = uint32(13) for i = n - 1; i >= 0; i-- { @@ -226972,7 +229209,7 @@ func fts5HashKey2(tls *libc.TLS, nSlot int32, b U8, p uintptr, n int32) uint32 { } // Resize the hash table by doubling the number of slots. -func fts5HashResize(tls *libc.TLS, pHash uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224499:12: */ +func fts5HashResize(tls *libc.TLS, pHash uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226624:12: */ var nNew int32 = (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot * 2 var i int32 var apNew uintptr @@ -227002,7 +229239,7 @@ func fts5HashResize(tls *libc.TLS, pHash uintptr) int32 { /* testdata/sqlite-ama return SQLITE_OK } -func fts5HashAddPoslistSize(tls *libc.TLS, pHash uintptr, p uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224527:12: */ +func fts5HashAddPoslistSize(tls *libc.TLS, pHash uintptr, p uintptr, p2 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226652:12: */ var nRet int32 = 0 if (*Fts5HashEntry)(unsafe.Pointer(p)).FiSzPoslist != 0 { var pPtr uintptr @@ -227048,10 +229285,10 @@ func fts5HashAddPoslistSize(tls *libc.TLS, pHash uintptr, p uintptr, p2 uintptr) // Add an entry to the in-memory hash table. The key is the concatenation // of bByte and (pToken/nToken). The value is (iRowid/iCol/iPos). // -// (bByte || pToken) -> (iRowid,iCol,iPos) +// (bByte || pToken) -> (iRowid,iCol,iPos) // // Or, if iCol is negative, then the value is a delete marker. -func sqlite3Fts5HashWrite(tls *libc.TLS, pHash uintptr, iRowid I64, iCol int32, iPos int32, bByte int8, pToken uintptr, nToken int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224578:12: */ +func sqlite3Fts5HashWrite(tls *libc.TLS, pHash uintptr, iRowid I64, iCol int32, iPos int32, bByte int8, pToken uintptr, nToken int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226703:12: */ var iHash uint32 var p uintptr var pPtr uintptr @@ -227210,7 +229447,7 @@ func sqlite3Fts5HashWrite(tls *libc.TLS, pHash uintptr, iRowid I64, iCol int32, // Arguments pLeft and pRight point to linked-lists of hash-entry objects, // each sorted in key order. This function merges the two lists into a // single list and returns a pointer to its first element. -func fts5HashEntryMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224731:22: */ +func fts5HashEntryMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226856:22: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -227256,7 +229493,7 @@ func fts5HashEntryMerge(tls *libc.TLS, pLeft uintptr, pRight uintptr) uintptr { // in sorted order. The hash table is cleared before returning. It is // the responsibility of the caller to free the elements of the returned // list. -func fts5HashEntrySort(tls *libc.TLS, pHash uintptr, pTerm uintptr, nTerm int32, ppSorted uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224777:12: */ +func fts5HashEntrySort(tls *libc.TLS, pHash uintptr, pTerm uintptr, nTerm int32, ppSorted uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226902:12: */ var nMergeSlot int32 = 32 var ap uintptr var pList uintptr @@ -227298,7 +229535,7 @@ func fts5HashEntrySort(tls *libc.TLS, pHash uintptr, pTerm uintptr, nTerm int32, } // Query the hash table for a doclist associated with term pTerm/nTerm. -func sqlite3Fts5HashQuery(tls *libc.TLS, pHash uintptr, nPre int32, pTerm uintptr, nTerm int32, ppOut uintptr, pnDoclist uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224824:12: */ +func sqlite3Fts5HashQuery(tls *libc.TLS, pHash uintptr, nPre int32, pTerm uintptr, nTerm int32, ppOut uintptr, pnDoclist uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226949:12: */ var iHash uint32 = fts5HashKey(tls, (*Fts5Hash)(unsafe.Pointer(pHash)).FnSlot, pTerm, nTerm) var zKey uintptr = uintptr(0) var p uintptr @@ -227332,20 +229569,20 @@ func sqlite3Fts5HashQuery(tls *libc.TLS, pHash uintptr, nPre int32, pTerm uintpt return SQLITE_OK } -func sqlite3Fts5HashScanInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224862:12: */ +func sqlite3Fts5HashScanInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226987:12: */ return fts5HashEntrySort(tls, p, pTerm, nTerm, p+24) } -func sqlite3Fts5HashScanNext(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224869:13: */ +func sqlite3Fts5HashScanNext(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226994:13: */ (*Fts5Hash)(unsafe.Pointer(p)).FpScan = (*Fts5HashEntry)(unsafe.Pointer((*Fts5Hash)(unsafe.Pointer(p)).FpScan)).FpScanNext } -func sqlite3Fts5HashScanEof(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224874:12: */ +func sqlite3Fts5HashScanEof(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:226999:12: */ return libc.Bool32((*Fts5Hash)(unsafe.Pointer(p)).FpScan == uintptr(0)) } -func sqlite3Fts5HashScanEntry(tls *libc.TLS, pHash uintptr, pzTerm uintptr, ppDoclist uintptr, pnDoclist uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:224878:13: */ +func sqlite3Fts5HashScanEntry(tls *libc.TLS, pHash uintptr, pzTerm uintptr, ppDoclist uintptr, pnDoclist uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227003:13: */ var p uintptr if libc.AssignUintptr(&p, (*Fts5Hash)(unsafe.Pointer(pHash)).FpScan) != 0 { var zKey uintptr = p + 1*48 @@ -227571,7 +229808,7 @@ type Fts5Data1 = struct { Fp uintptr Fnn int32 FszLeaf int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225153:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227278:9 */ // 2014 May 31 // @@ -227779,14 +230016,14 @@ type Fts5Data1 = struct { // many zero bytes. This makes it easier to decode the various record formats // without overreading if the records are corrupt. -type Fts5Data = Fts5Data1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225153:25 */ +type Fts5Data = Fts5Data1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227278:25 */ type Fts5DlidxIter1 = struct { FnLvl int32 FiSegid int32 FaLvl [1]Fts5DlidxLvl -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225154:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227279:9 */ -type Fts5DlidxIter = Fts5DlidxIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225154:30 */ +type Fts5DlidxIter = Fts5DlidxIter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227279:30 */ type Fts5DlidxLvl1 = struct { FpData uintptr FiOff int32 @@ -227794,17 +230031,17 @@ type Fts5DlidxLvl1 = struct { FiFirstOff int32 FiLeafPgno int32 FiRowid I64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225154:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227279:9 */ -type Fts5DlidxLvl = Fts5DlidxLvl1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225155:29 */ +type Fts5DlidxLvl = Fts5DlidxLvl1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227280:29 */ type Fts5DlidxWriter1 = struct { Fpgno int32 FbPrevValid int32 FiPrev I64 Fbuf Fts5Buffer -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225156:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227281:9 */ -type Fts5DlidxWriter = Fts5DlidxWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225156:32 */ +type Fts5DlidxWriter = Fts5DlidxWriter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227281:32 */ type Fts5Iter1 = struct { Fbase Fts5IndexIter FpIndex uintptr @@ -227818,18 +230055,18 @@ type Fts5Iter1 = struct { FiSwitchRowid I64 FaFirst uintptr FaSeg [1]Fts5SegIter -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225157:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227282:9 */ -type Fts5Iter = Fts5Iter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225157:25 */ +type Fts5Iter = Fts5Iter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227282:25 */ type Fts5PageWriter1 = struct { Fpgno int32 FiPrevPgidx int32 Fbuf Fts5Buffer Fpgidx Fts5Buffer Fterm Fts5Buffer -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225158:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227283:9 */ -type Fts5PageWriter = Fts5PageWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225158:31 */ +type Fts5PageWriter = Fts5PageWriter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227283:31 */ type Fts5SegIter1 = struct { FpSeg uintptr Fflags int32 @@ -227851,18 +230088,18 @@ type Fts5SegIter1 = struct { FnPos int32 FbDel U8 F__ccgo_pad1 [3]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225157:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227282:9 */ -type Fts5SegIter = Fts5SegIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225159:28 */ +type Fts5SegIter = Fts5SegIter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227284:28 */ type Fts5DoclistIter1 = struct { FaEof uintptr FiRowid I64 FaPoslist uintptr FnPoslist int32 FnSize int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225160:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227285:9 */ -type Fts5DoclistIter = Fts5DoclistIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225160:32 */ +type Fts5DoclistIter = Fts5DoclistIter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227285:32 */ type Fts5SegWriter1 = struct { FiSegid int32 F__ccgo_pad1 [4]byte @@ -227879,9 +230116,9 @@ type Fts5SegWriter1 = struct { Fbtterm Fts5Buffer FiBtPage int32 F__ccgo_pad3 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225161:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227286:9 */ -type Fts5SegWriter = Fts5SegWriter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225161:30 */ +type Fts5SegWriter = Fts5SegWriter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227286:30 */ type Fts5Structure1 = struct { FnRef int32 F__ccgo_pad1 [4]byte @@ -227889,38 +230126,38 @@ type Fts5Structure1 = struct { FnSegment int32 FnLevel int32 FaLevel [1]Fts5StructureLevel -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5Structure = Fts5Structure1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225162:30 */ +type Fts5Structure = Fts5Structure1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227287:30 */ type Fts5StructureLevel1 = struct { FnMerge int32 FnSeg int32 FaSeg uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5StructureLevel = Fts5StructureLevel1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225163:35 */ +type Fts5StructureLevel = Fts5StructureLevel1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227288:35 */ type Fts5StructureSegment1 = struct { FiSegid int32 FpgnoFirst int32 FpgnoLast int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5StructureSegment = Fts5StructureSegment1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225164:37 */ +type Fts5StructureSegment = Fts5StructureSegment1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227289:37 */ type Fts5CResult1 = struct { FiFirst U16 FbTermEq U8 F__ccgo_pad1 [1]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225157:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227282:9 */ -type Fts5CResult = Fts5CResult1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225274:28 */ +type Fts5CResult = Fts5CResult1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227399:28 */ -func fts5PutU16(tls *libc.TLS, aOut uintptr, iVal U16) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225453:13: */ +func fts5PutU16(tls *libc.TLS, aOut uintptr, iVal U16) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227578:13: */ *(*U8)(unsafe.Pointer(aOut)) = U8(int32(iVal) >> 8) *(*U8)(unsafe.Pointer(aOut + 1)) = U8(int32(iVal) & 0xFF) } -func fts5GetU16(tls *libc.TLS, aIn uintptr) U16 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225458:12: */ +func fts5GetU16(tls *libc.TLS, aIn uintptr) U16 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227583:12: */ return U16(int32(U16(*(*U8)(unsafe.Pointer(aIn))))<<8 + int32(*(*U8)(unsafe.Pointer(aIn + 1)))) } @@ -227928,7 +230165,7 @@ func fts5GetU16(tls *libc.TLS, aIn uintptr) U16 { /* testdata/sqlite-amalgamatio // // If an OOM error is encountered, return NULL and set the error code in // the Fts5Index handle passed as the first argument. -func fts5IdxMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225468:13: */ +func fts5IdxMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227593:13: */ return sqlite3Fts5MallocZero(tls, p+52, nByte) } @@ -227945,8 +230182,8 @@ func fts5IdxMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* t // Return -ve if pLeft is smaller than pRight, 0 if they are equal or // +ve if pRight is smaller than pLeft. In other words: // -// res = *pLeft - *pRight -func fts5BufferCompare(tls *libc.TLS, pLeft uintptr, pRight uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225500:12: */ +// res = *pLeft - *pRight +func fts5BufferCompare(tls *libc.TLS, pLeft uintptr, pRight uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227625:12: */ var nCmp int32 var res int32 nCmp = func() int32 { @@ -227970,7 +230207,7 @@ func fts5BufferCompare(tls *libc.TLS, pLeft uintptr, pRight uintptr) int32 { /* }() } -func fts5LeafFirstTermOff(tls *libc.TLS, pLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225509:12: */ +func fts5LeafFirstTermOff(tls *libc.TLS, pLeaf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227634:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -227981,7 +230218,7 @@ func fts5LeafFirstTermOff(tls *libc.TLS, pLeaf uintptr) int32 { /* testdata/sqli } // Close the read-only blob handle, if it is open. -func sqlite3Fts5IndexCloseReader(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225518:13: */ +func sqlite3Fts5IndexCloseReader(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227643:13: */ if (*Fts5Index)(unsafe.Pointer(p)).FpReader != 0 { var pReader uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpReader (*Fts5Index)(unsafe.Pointer(p)).FpReader = uintptr(0) @@ -227993,7 +230230,7 @@ func sqlite3Fts5IndexCloseReader(tls *libc.TLS, p uintptr) { /* testdata/sqlite- // // If an error occurs, NULL is returned and an error left in the // Fts5Index object. -func fts5DataRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225532:17: */ +func fts5DataRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227657:17: */ var pRet uintptr = uintptr(0) if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK { var rc int32 = SQLITE_OK @@ -228020,7 +230257,7 @@ func fts5DataRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* testdata/sq if (*Fts5Index)(unsafe.Pointer(p)).FpReader == uintptr(0) && rc == SQLITE_OK { var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig rc = Xsqlite3_blob_open(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, - (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl, ts+36026, iRowid, 0, p+56) + (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl, ts+35991, iRowid, 0, p+56) } // If either of the sqlite3_blob_open() or sqlite3_blob_reopen() calls @@ -228066,11 +230303,11 @@ func fts5DataRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* testdata/sq // Release a reference to data record returned by an earlier call to // fts5DataRead(). -func fts5DataRelease(tls *libc.TLS, pData uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225606:13: */ +func fts5DataRelease(tls *libc.TLS, pData uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227731:13: */ Xsqlite3_free(tls, pData) } -func fts5LeafRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225610:17: */ +func fts5LeafRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227735:17: */ var pRet uintptr = fts5DataRead(tls, p, iRowid) if pRet != 0 { if (*Fts5Data)(unsafe.Pointer(pRet)).Fnn < 4 || (*Fts5Data)(unsafe.Pointer(pRet)).FszLeaf > (*Fts5Data)(unsafe.Pointer(pRet)).Fnn { @@ -228082,7 +230319,7 @@ func fts5LeafRead(tls *libc.TLS, p uintptr, iRowid I64) uintptr { /* testdata/sq return pRet } -func fts5IndexPrepareStmt(tls *libc.TLS, p uintptr, ppStmt uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225622:12: */ +func fts5IndexPrepareStmt(tls *libc.TLS, p uintptr, ppStmt uintptr, zSql uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227747:12: */ if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK { if zSql != 0 { (*Fts5Index)(unsafe.Pointer(p)).Frc = Xsqlite3_prepare_v3(tls, (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).Fdb, zSql, -1, @@ -228097,7 +230334,7 @@ func fts5IndexPrepareStmt(tls *libc.TLS, p uintptr, ppStmt uintptr, zSql uintptr } // INSERT OR REPLACE a record into the %_data table. -func fts5DataWrite(tls *libc.TLS, p uintptr, iRowid I64, pData uintptr, nData int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225644:13: */ +func fts5DataWrite(tls *libc.TLS, p uintptr, iRowid I64, pData uintptr, nData int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227769:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -228108,7 +230345,7 @@ func fts5DataWrite(tls *libc.TLS, p uintptr, iRowid I64, pData uintptr, nData in if (*Fts5Index)(unsafe.Pointer(p)).FpWriter == uintptr(0) { var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig fts5IndexPrepareStmt(tls, p, p+64, Xsqlite3_mprintf(tls, - ts+36032, + ts+35997, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))) if (*Fts5Index)(unsafe.Pointer(p)).Frc != 0 { return @@ -228124,8 +230361,8 @@ func fts5DataWrite(tls *libc.TLS, p uintptr, iRowid I64, pData uintptr, nData in // Execute the following SQL: // -// DELETE FROM %_data WHERE id BETWEEN $iFirst AND $iLast -func fts5DataDelete(tls *libc.TLS, p uintptr, iFirst I64, iLast I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225668:13: */ +// DELETE FROM %_data WHERE id BETWEEN $iFirst AND $iLast +func fts5DataDelete(tls *libc.TLS, p uintptr, iFirst I64, iLast I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227793:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -228136,7 +230373,7 @@ func fts5DataDelete(tls *libc.TLS, p uintptr, iFirst I64, iLast I64) { /* testda if (*Fts5Index)(unsafe.Pointer(p)).FpDeleter == uintptr(0) { var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig var zSql uintptr = Xsqlite3_mprintf(tls, - ts+36083, + ts+36048, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) if fts5IndexPrepareStmt(tls, p, p+72, zSql) != 0 { return @@ -228150,7 +230387,7 @@ func fts5DataDelete(tls *libc.TLS, p uintptr, iFirst I64, iLast I64) { /* testda } // Remove all records associated with segment iSegid. -func fts5DataRemoveSegment(tls *libc.TLS, p uintptr, iSegid int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225689:13: */ +func fts5DataRemoveSegment(tls *libc.TLS, p uintptr, iSegid int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227814:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -228160,7 +230397,7 @@ func fts5DataRemoveSegment(tls *libc.TLS, p uintptr, iSegid int32) { /* testdata if (*Fts5Index)(unsafe.Pointer(p)).FpIdxDeleter == uintptr(0) { var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig fts5IndexPrepareStmt(tls, p, p+88, Xsqlite3_mprintf(tls, - ts+36132, + ts+36097, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))) } if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK { @@ -228172,7 +230409,7 @@ func fts5DataRemoveSegment(tls *libc.TLS, p uintptr, iSegid int32) { /* testdata // Release a reference to an Fts5Structure object returned by an earlier // call to fts5StructureRead() or fts5StructureDecode(). -func fts5StructureRelease(tls *libc.TLS, pStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225711:13: */ +func fts5StructureRelease(tls *libc.TLS, pStruct uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227836:13: */ if pStruct != 0 && 0 >= libc.PreDecInt32(&(*Fts5Structure)(unsafe.Pointer(pStruct)).FnRef, 1) { var i int32 @@ -228183,22 +230420,22 @@ func fts5StructureRelease(tls *libc.TLS, pStruct uintptr) { /* testdata/sqlite-a } } -func fts5StructureRef(tls *libc.TLS, pStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225722:13: */ +func fts5StructureRef(tls *libc.TLS, pStruct uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227847:13: */ (*Fts5Structure)(unsafe.Pointer(pStruct)).FnRef++ } -func sqlite3Fts5StructureRef(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225726:13: */ +func sqlite3Fts5StructureRef(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227851:13: */ fts5StructureRef(tls, (*Fts5Index)(unsafe.Pointer(p)).FpStruct) return (*Fts5Index)(unsafe.Pointer(p)).FpStruct } -func sqlite3Fts5StructureRelease(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225730:13: */ +func sqlite3Fts5StructureRelease(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227855:13: */ if p != 0 { fts5StructureRelease(tls, p) } } -func sqlite3Fts5StructureTest(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225735:12: */ +func sqlite3Fts5StructureTest(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227860:12: */ if (*Fts5Index)(unsafe.Pointer(p)).FpStruct != pStruct { return SQLITE_ABORT } @@ -228209,7 +230446,7 @@ func sqlite3Fts5StructureTest(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { // // This function is a no-op if (*pRc) is not SQLITE_OK when it is called. If // an error occurs, (*pRc) is set to an SQLite error code before returning. -func fts5StructureMakeWritable(tls *libc.TLS, pRc uintptr, pp uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225748:13: */ +func fts5StructureMakeWritable(tls *libc.TLS, pRc uintptr, pp uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227873:13: */ var p uintptr = *(*uintptr)(unsafe.Pointer(pp)) if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK && (*Fts5Structure)(unsafe.Pointer(p)).FnRef > 1 { var nByte I64 = I64(uint64(unsafe.Sizeof(Fts5Structure{})) + uint64((*Fts5Structure)(unsafe.Pointer(p)).FnLevel-1)*uint64(unsafe.Sizeof(Fts5StructureLevel{}))) @@ -228251,7 +230488,7 @@ func fts5StructureMakeWritable(tls *libc.TLS, pRc uintptr, pp uintptr) { /* test // If an error occurs, *ppOut is set to NULL and an SQLite error code // returned. Otherwise, *ppOut is set to point to the new object and // SQLITE_OK returned. -func fts5StructureDecode(tls *libc.TLS, pData uintptr, nData int32, piCookie uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225790:12: */ +func fts5StructureDecode(tls *libc.TLS, pData uintptr, nData int32, piCookie uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:227915:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -228344,7 +230581,7 @@ func fts5StructureDecode(tls *libc.TLS, pData uintptr, nData int32, piCookie uin // Add a level to the Fts5Structure.aLevel[] array of structure object // (*ppStruct). -func fts5StructureAddLevel(tls *libc.TLS, pRc uintptr, ppStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225882:13: */ +func fts5StructureAddLevel(tls *libc.TLS, pRc uintptr, ppStruct uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228007:13: */ fts5StructureMakeWritable(tls, pRc, ppStruct) if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK { var pStruct uintptr = *(*uintptr)(unsafe.Pointer(ppStruct)) @@ -228364,7 +230601,7 @@ func fts5StructureAddLevel(tls *libc.TLS, pRc uintptr, ppStruct uintptr) { /* te // Extend level iLvl so that there is room for at least nExtra more // segments. -func fts5StructureExtendLevel(tls *libc.TLS, pRc uintptr, pStruct uintptr, iLvl int32, nExtra int32, bInsert int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225907:13: */ +func fts5StructureExtendLevel(tls *libc.TLS, pRc uintptr, pStruct uintptr, iLvl int32, nExtra int32, bInsert int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228032:13: */ if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK { var pLvl uintptr = pStruct + 24 + uintptr(iLvl)*16 var aNew uintptr @@ -228387,7 +230624,7 @@ func fts5StructureExtendLevel(tls *libc.TLS, pRc uintptr, pStruct uintptr, iLvl } } -func fts5StructureReadUncached(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225936:22: */ +func fts5StructureReadUncached(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228061:22: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -228415,7 +230652,7 @@ func fts5StructureReadUncached(tls *libc.TLS, p uintptr) uintptr { /* testdata/s return *(*uintptr)(unsafe.Pointer(bp + 8 /* pRet */)) } -func fts5IndexDataVersion(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225960:12: */ +func fts5IndexDataVersion(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228085:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -228424,7 +230661,7 @@ func fts5IndexDataVersion(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-ama if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK { if (*Fts5Index)(unsafe.Pointer(p)).FpDataVersion == uintptr(0) { (*Fts5Index)(unsafe.Pointer(p)).Frc = fts5IndexPrepareStmt(tls, p, p+112, - Xsqlite3_mprintf(tls, ts+36172, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb))) + Xsqlite3_mprintf(tls, ts+36137, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb))) if (*Fts5Index)(unsafe.Pointer(p)).Frc != 0 { return int64(0) } @@ -228448,7 +230685,7 @@ func fts5IndexDataVersion(tls *libc.TLS, p uintptr) I64 { /* testdata/sqlite-ama // If an error occurs, NULL is returned and an error code left in the // Fts5Index handle. If an error has already occurred when this function // is called, it is a no-op. -func fts5StructureRead(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:225991:22: */ +func fts5StructureRead(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228116:22: */ if (*Fts5Index)(unsafe.Pointer(p)).FpStruct == uintptr(0) { (*Fts5Index)(unsafe.Pointer(p)).FiStructVersion = fts5IndexDataVersion(tls, p) @@ -228465,7 +230702,7 @@ func fts5StructureRead(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-am return (*Fts5Index)(unsafe.Pointer(p)).FpStruct } -func fts5StructureInvalidate(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226030:13: */ +func fts5StructureInvalidate(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228155:13: */ if (*Fts5Index)(unsafe.Pointer(p)).FpStruct != 0 { fts5StructureRelease(tls, (*Fts5Index)(unsafe.Pointer(p)).FpStruct) (*Fts5Index)(unsafe.Pointer(p)).FpStruct = uintptr(0) @@ -228479,7 +230716,7 @@ func fts5StructureInvalidate(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amal // // If an error occurs, leave an error code in the Fts5Index object. If an // error has already occurred, this function is a no-op. -func fts5StructureWrite(tls *libc.TLS, p uintptr, pStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226073:13: */ +func fts5StructureWrite(tls *libc.TLS, p uintptr, pStruct uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228198:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -228532,14 +230769,14 @@ func fts5StructureWrite(tls *libc.TLS, p uintptr, pStruct uintptr) { /* testdata } } -func fts5SegmentSize(tls *libc.TLS, pSeg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226128:12: */ +func fts5SegmentSize(tls *libc.TLS, pSeg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228253:12: */ return 1 + (*Fts5StructureSegment)(unsafe.Pointer(pSeg)).FpgnoLast - (*Fts5StructureSegment)(unsafe.Pointer(pSeg)).FpgnoFirst } // Return a copy of index structure pStruct. Except, promote as many // segments as possible to level iPromote. If an OOM occurs, NULL is // returned. -func fts5StructurePromoteTo(tls *libc.TLS, p uintptr, iPromote int32, szPromote int32, pStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226137:13: */ +func fts5StructurePromoteTo(tls *libc.TLS, p uintptr, iPromote int32, szPromote int32, pStruct uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228262:13: */ var il int32 var is int32 var pOut uintptr = pStruct + 24 + uintptr(iPromote)*16 @@ -228571,18 +230808,18 @@ func fts5StructurePromoteTo(tls *libc.TLS, p uintptr, iPromote int32, szPromote // pStruct. This function determines if any segments should be promoted // as a result. Segments are promoted in two scenarios: // -// a) If the segment just written is smaller than one or more segments -// within the previous populated level, it is promoted to the previous -// populated level. +// a) If the segment just written is smaller than one or more segments +// within the previous populated level, it is promoted to the previous +// populated level. // -// b) If the segment just written is larger than the newest segment on -// the next populated level, then that segment, and any other adjacent -// segments that are also smaller than the one just written, are -// promoted. +// b) If the segment just written is larger than the newest segment on +// the next populated level, then that segment, and any other adjacent +// segments that are also smaller than the one just written, are +// promoted. // // If one or more segments are promoted, the structure object is updated // to reflect this. -func fts5StructurePromote(tls *libc.TLS, p uintptr, iLvl int32, pStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226180:13: */ +func fts5StructurePromote(tls *libc.TLS, p uintptr, iLvl int32, pStruct uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228305:13: */ if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK { var iTst int32 var iPromote int32 = -1 @@ -228631,7 +230868,7 @@ func fts5StructurePromote(tls *libc.TLS, p uintptr, iLvl int32, pStruct uintptr) // Advance the iterator passed as the only argument. If the end of the // doclist-index page is reached, return non-zero. -func fts5DlidxLvlNext(tls *libc.TLS, pLvl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226231:12: */ +func fts5DlidxLvlNext(tls *libc.TLS, pLvl uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228356:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -228667,7 +230904,7 @@ func fts5DlidxLvlNext(tls *libc.TLS, pLvl uintptr) int32 { /* testdata/sqlite-am } // Advance the iterator passed as the only argument. -func fts5DlidxIterNextR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226263:12: */ +func fts5DlidxIterNextR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228388:12: */ var pLvl uintptr = pIter + 8 + uintptr(iLvl)*32 if fts5DlidxLvlNext(tls, pLvl) != 0 { @@ -228688,7 +230925,7 @@ func fts5DlidxIterNextR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int return (*Fts5DlidxLvl)(unsafe.Pointer(pIter + 8)).FbEof } -func fts5DlidxIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226283:12: */ +func fts5DlidxIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228408:12: */ return fts5DlidxIterNextR(tls, p, pIter, 0) } @@ -228696,12 +230933,12 @@ func fts5DlidxIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testd // as follows. This function sets up the rest of the iterator so that it // points to the first rowid in the doclist-index. // -// pData: -// pointer to doclist-index record, +// pData: +// pointer to doclist-index record, // // When this function is called pIter->iLeafPgno is the page number the // doclist is associated with (the one featuring the term). -func fts5DlidxIterFirst(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226298:12: */ +func fts5DlidxIterFirst(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228423:12: */ var i int32 for i = 0; i < (*Fts5DlidxIter)(unsafe.Pointer(pIter)).FnLvl; i++ { fts5DlidxLvlNext(tls, pIter+8+uintptr(i)*32) @@ -228709,11 +230946,11 @@ func fts5DlidxIterFirst(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite return (*Fts5DlidxLvl)(unsafe.Pointer(pIter + 8)).FbEof } -func fts5DlidxIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226307:12: */ +func fts5DlidxIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228432:12: */ return libc.Bool32((*Fts5Index)(unsafe.Pointer(p)).Frc != SQLITE_OK || (*Fts5DlidxLvl)(unsafe.Pointer(pIter+8)).FbEof != 0) } -func fts5DlidxIterLast(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226311:13: */ +func fts5DlidxIterLast(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228436:13: */ var i int32 // Advance each level to the last entry on the last page @@ -228734,7 +230971,7 @@ func fts5DlidxIterLast(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sq } // Move the iterator passed as the only argument to the previous entry. -func fts5DlidxLvlPrev(tls *libc.TLS, pLvl uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226334:12: */ +func fts5DlidxLvlPrev(tls *libc.TLS, pLvl uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228459:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -228796,7 +231033,7 @@ func fts5DlidxLvlPrev(tls *libc.TLS, pLvl uintptr) int32 { /* testdata/sqlite-am return (*Fts5DlidxLvl)(unsafe.Pointer(pLvl)).FbEof } -func fts5DlidxIterPrevR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226383:12: */ +func fts5DlidxIterPrevR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228508:12: */ var pLvl uintptr = pIter + 8 + uintptr(iLvl)*32 if fts5DlidxLvlPrev(tls, pLvl) != 0 { @@ -228819,12 +231056,12 @@ func fts5DlidxIterPrevR(tls *libc.TLS, p uintptr, pIter uintptr, iLvl int32) int return (*Fts5DlidxLvl)(unsafe.Pointer(pIter + 8)).FbEof } -func fts5DlidxIterPrev(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226406:12: */ +func fts5DlidxIterPrev(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228531:12: */ return fts5DlidxIterPrevR(tls, p, pIter, 0) } // Free a doclist-index iterator object allocated by fts5DlidxIterInit(). -func fts5DlidxIterFree(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226413:13: */ +func fts5DlidxIterFree(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228538:13: */ if pIter != 0 { var i int32 for i = 0; i < (*Fts5DlidxIter)(unsafe.Pointer(pIter)).FnLvl; i++ { @@ -228834,7 +231071,7 @@ func fts5DlidxIterFree(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalga } } -func fts5DlidxIterInit(tls *libc.TLS, p uintptr, bRev int32, iSegid int32, iLeafPg int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226423:22: */ +func fts5DlidxIterInit(tls *libc.TLS, p uintptr, bRev int32, iSegid int32, iLeafPg int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228548:22: */ var pIter uintptr = uintptr(0) var i int32 var bDone int32 = 0 @@ -228876,16 +231113,16 @@ func fts5DlidxIterInit(tls *libc.TLS, p uintptr, bRev int32, iSegid int32, iLeaf return pIter } -func fts5DlidxIterRowid(tls *libc.TLS, pIter uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226470:12: */ +func fts5DlidxIterRowid(tls *libc.TLS, pIter uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228595:12: */ return (*Fts5DlidxLvl)(unsafe.Pointer(pIter + 8)).FiRowid } -func fts5DlidxIterPgno(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226473:12: */ +func fts5DlidxIterPgno(tls *libc.TLS, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228598:12: */ return (*Fts5DlidxLvl)(unsafe.Pointer(pIter + 8)).FiLeafPgno } // Load the next leaf page into the segment iterator. -func fts5SegIterNextPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226480:13: */ +func fts5SegIterNextPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228605:13: */ var pLeaf uintptr var pSeg uintptr = (*Fts5SegIter)(unsafe.Pointer(pIter)).FpSeg fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf) @@ -228915,7 +231152,7 @@ func fts5SegIterNextPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/ // position list size field. Read the varint and return the number of bytes // read. Before returning, set *pnSz to the number of bytes in the position // list, and *pbDel to true if the delete flag is set, or false otherwise. -func fts5GetPoslistSize(tls *libc.TLS, p uintptr, pnSz uintptr, pbDel uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226518:12: */ +func fts5GetPoslistSize(tls *libc.TLS, p uintptr, pnSz uintptr, pbDel uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228643:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -228939,12 +231176,12 @@ func fts5GetPoslistSize(tls *libc.TLS, p uintptr, pnSz uintptr, pbDel uintptr) i // position-list size field. Read the value of the field and store it // in the following variables: // -// Fts5SegIter.nPos -// Fts5SegIter.bDel +// Fts5SegIter.nPos +// Fts5SegIter.bDel // // Leave Fts5SegIter.iLeafOffset pointing to the first byte of the // position list content (if any). -func fts5SegIterLoadNPos(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226539:13: */ +func fts5SegIterLoadNPos(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228664:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -228989,7 +231226,7 @@ func fts5SegIterLoadNPos(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/ } } -func fts5SegIterLoadRowid(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226568:13: */ +func fts5SegIterLoadRowid(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228693:13: */ var a uintptr = (*Fts5Data)(unsafe.Pointer((*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf)).Fp // Buffer to read data from var iOff I64 = (*Fts5SegIter)(unsafe.Pointer(pIter)).FiLeafOffset @@ -229015,13 +231252,13 @@ func fts5SegIterLoadRowid(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata // // This function populates: // -// Fts5SegIter.term -// Fts5SegIter.rowid +// Fts5SegIter.term +// Fts5SegIter.rowid // // accordingly and leaves (Fts5SegIter.iLeafOffset) set to the content of // the first position list. The position list belonging to document // (Fts5SegIter.iRowid). -func fts5SegIterLoadTerm(tls *libc.TLS, p uintptr, pIter uintptr, nKeep int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226601:13: */ +func fts5SegIterLoadTerm(tls *libc.TLS, p uintptr, pIter uintptr, nKeep int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228726:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -229055,7 +231292,7 @@ func fts5SegIterLoadTerm(tls *libc.TLS, p uintptr, pIter uintptr, nKeep int32) { fts5SegIterLoadRowid(tls, p, pIter) } -func fts5SegIterSetNext(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226634:13: */ +func fts5SegIterSetNext(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228759:13: */ if (*Fts5SegIter)(unsafe.Pointer(pIter)).Fflags&FTS5_SEGITER_REVERSE != 0 { (*Fts5SegIter)(unsafe.Pointer(pIter)).FxNext = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr) @@ -229077,7 +231314,7 @@ func fts5SegIterSetNext(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/s // // If an error occurs, Fts5Index.rc is set to an appropriate error code. If // an error has already occurred when this function is called, it is a no-op. -func fts5SegIterInit(tls *libc.TLS, p uintptr, pSeg uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226652:13: */ +func fts5SegIterInit(tls *libc.TLS, p uintptr, pSeg uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228777:13: */ if (*Fts5StructureSegment)(unsafe.Pointer(pSeg)).FpgnoFirst == 0 { // This happens if the segment is being used as an input to an incremental // merge and all data has already been "trimmed". See function @@ -229118,7 +231355,7 @@ func fts5SegIterInit(tls *libc.TLS, p uintptr, pSeg uintptr, pIter uintptr) { /* // aRowidOffset[] and iRowidOffset variables. At this point the iterator // is in its regular state - Fts5SegIter.iLeafOffset points to the first // byte of the position list content associated with said rowid. -func fts5SegIterReverseInitPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226701:13: */ +func fts5SegIterReverseInitPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228826:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -229176,8 +231413,7 @@ func fts5SegIterReverseInitPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* te fts5SegIterLoadNPos(tls, p, pIter) } -// -func fts5SegIterReverseNewPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226754:13: */ +func fts5SegIterReverseNewPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228879:13: */ fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf) (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf = uintptr(0) @@ -229227,7 +231463,7 @@ func fts5SegIterReverseNewPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* tes // Return true if the iterator passed as the second argument currently // points to a delete marker. A delete marker is an entry with a 0 byte // position-list. -func fts5MultiIterIsEmpty(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226810:12: */ +func fts5MultiIterIsEmpty(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228935:12: */ var pSeg uintptr = pIter + 96 + uintptr((*Fts5CResult)(unsafe.Pointer((*Fts5Iter)(unsafe.Pointer(pIter)).FaFirst+1*4)).FiFirst)*120 return libc.Bool32((*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Fts5SegIter)(unsafe.Pointer(pSeg)).FpLeaf != 0 && (*Fts5SegIter)(unsafe.Pointer(pSeg)).FnPos == 0) } @@ -229235,7 +231471,7 @@ func fts5MultiIterIsEmpty(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* te // Advance iterator pIter to the next entry. // // This version of fts5SegIterNext() is only used by reverse iterators. -func fts5SegIterNext_Reverse(tls *libc.TLS, p uintptr, pIter uintptr, pbUnused uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226820:13: */ +func fts5SegIterNext_Reverse(tls *libc.TLS, p uintptr, pIter uintptr, pbUnused uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228945:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -229264,7 +231500,7 @@ func fts5SegIterNext_Reverse(tls *libc.TLS, p uintptr, pIter uintptr, pbUnused u // // This version of fts5SegIterNext() is only used if detail=none and the // iterator is not a reverse direction iterator. -func fts5SegIterNext_None(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226854:13: */ +func fts5SegIterNext_None(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:228979:13: */ bp := tls.Alloc(36) defer tls.Free(36) @@ -229369,7 +231605,7 @@ next_none_eof: // If an error occurs, Fts5Index.rc is set to an appropriate error code. It // is not considered an error if the iterator reaches EOF. If an error has // already occurred when this function is called, it is a no-op. -func fts5SegIterNext(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:226926:13: */ +func fts5SegIterNext(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229051:13: */ bp := tls.Alloc(44) defer tls.Free(44) @@ -229494,7 +231730,7 @@ func fts5SegIterNext(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) // Iterator pIter currently points to the first rowid in a doclist. This // function sets the iterator up so that iterates in reverse order through // the doclist. -func fts5SegIterReverse(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227057:13: */ +func fts5SegIterReverse(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229182:13: */ var pDlidx uintptr = (*Fts5SegIter)(unsafe.Pointer(pIter)).FpDlidx var pLast uintptr = uintptr(0) var pgnoLast int32 = 0 @@ -229594,7 +231830,7 @@ func fts5SegIterReverse(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/s // There is a doclist-index associated with the final term on the current // page. If the current term is the last term on the page, load the // doclist-index from disk and initialize an iterator at (pIter->pDlidx). -func fts5SegIterLoadDlidx(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227146:13: */ +func fts5SegIterLoadDlidx(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229271:13: */ var iSeg int32 = (*Fts5StructureSegment)(unsafe.Pointer((*Fts5SegIter)(unsafe.Pointer(pIter)).FpSeg)).FiSegid var bRev int32 = (*Fts5SegIter)(unsafe.Pointer(pIter)).Fflags & FTS5_SEGITER_REVERSE var pLeaf uintptr = (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf // Current leaf data @@ -229622,7 +231858,7 @@ func fts5SegIterLoadDlidx(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata // iterator is left pointing to the smallest term in the segment that // is larger than the specified term, even if this term is not on the // current page. -func fts5LeafSeek(tls *libc.TLS, p uintptr, bGe int32, pIter uintptr, pTerm uintptr, nTerm int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227180:13: */ +func fts5LeafSeek(tls *libc.TLS, p uintptr, bGe int32, pIter uintptr, pTerm uintptr, nTerm int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229305:13: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -229856,7 +232092,7 @@ __31: fts5SegIterLoadNPos(tls, p, pIter) } -func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227306:21: */ +func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229431:21: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -229864,7 +232100,7 @@ func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-am var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig fts5IndexPrepareStmt(tls, p, p+96, Xsqlite3_mprintf(tls, - ts+36195, + ts+36160, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))) } return (*Fts5Index)(unsafe.Pointer(p)).FpIdxSelect @@ -229875,7 +232111,7 @@ func fts5IdxSelectStmt(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-am // // If an error occurs, Fts5Index.rc is set to an appropriate error code. If // an error has already occurred when this function is called, it is a no-op. -func fts5SegIterSeekInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32, flags int32, pSeg uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227325:13: */ +func fts5SegIterSeekInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32, flags int32, pSeg uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229450:13: */ var iPg int32 = 1 var bGe int32 = flags & FTS5INDEX_QUERY_SCAN var bDlidx int32 = 0 // True if there is a doclist-index @@ -229945,7 +232181,7 @@ func fts5SegIterSeekInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32, f // // If an error occurs, Fts5Index.rc is set to an appropriate error code. If // an error has already occurred when this function is called, it is a no-op. -func fts5SegIterHashInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32, flags int32, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227408:13: */ +func fts5SegIterHashInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32, flags int32, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229533:13: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -230001,7 +232237,7 @@ func fts5SegIterHashInit(tls *libc.TLS, p uintptr, pTerm uintptr, nTerm int32, f } // Zero the iterator passed as the only argument. -func fts5SegIterClear(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227467:13: */ +func fts5SegIterClear(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229592:13: */ sqlite3Fts5BufferFree(tls, pIter+88) fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpLeaf) fts5DataRelease(tls, (*Fts5SegIter)(unsafe.Pointer(pIter)).FpNextLeaf) @@ -230016,7 +232252,7 @@ func fts5SegIterClear(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgam // in the pIter->aSeg[] array that is (a) not at EOF, and (b) pointing // to a key that is a duplicate of another, higher priority, // segment-iterator in the pSeg->aSeg[] array. -func fts5MultiIterDoCompare(tls *libc.TLS, pIter uintptr, iOut int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227571:12: */ +func fts5MultiIterDoCompare(tls *libc.TLS, pIter uintptr, iOut int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229696:12: */ var i1 int32 // Index of left-hand Fts5SegIter var i2 int32 // Index of right-hand Fts5SegIter var iRes int32 @@ -230068,7 +232304,7 @@ func fts5MultiIterDoCompare(tls *libc.TLS, pIter uintptr, iOut int32) int32 { /* // Move the seg-iter so that it points to the first rowid on page iLeafPgno. // It is an error if leaf iLeafPgno does not exist or contains no rowids. -func fts5SegIterGotoPage(tls *libc.TLS, p uintptr, pIter uintptr, iLeafPgno int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227625:13: */ +func fts5SegIterGotoPage(tls *libc.TLS, p uintptr, pIter uintptr, iLeafPgno int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229750:13: */ if iLeafPgno > (*Fts5StructureSegment)(unsafe.Pointer((*Fts5SegIter)(unsafe.Pointer(pIter)).FpSeg)).FpgnoLast { (*Fts5Index)(unsafe.Pointer(p)).Frc = SQLITE_CORRUPT | int32(1)<<8 @@ -230098,7 +232334,7 @@ func fts5SegIterGotoPage(tls *libc.TLS, p uintptr, pIter uintptr, iLeafPgno int3 // Advance the iterator passed as the second argument until it is at or // past rowid iFrom. Regardless of the value of iFrom, the iterator is // always advanced at least once. -func fts5SegIterNextFrom(tls *libc.TLS, p uintptr, pIter uintptr, iMatch I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227663:13: */ +func fts5SegIterNextFrom(tls *libc.TLS, p uintptr, pIter uintptr, iMatch I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229788:13: */ var bRev int32 = (*Fts5SegIter)(unsafe.Pointer(pIter)).Fflags & FTS5_SEGITER_REVERSE var pDlidx uintptr = (*Fts5SegIter)(unsafe.Pointer(pIter)).FpDlidx var iLeafPgno int32 = (*Fts5SegIter)(unsafe.Pointer(pIter)).FiLeafPgno @@ -230148,7 +232384,7 @@ func fts5SegIterNextFrom(tls *libc.TLS, p uintptr, pIter uintptr, iMatch I64) { } // Free the iterator object passed as the second argument. -func fts5MultiIterFree(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227717:13: */ +func fts5MultiIterFree(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229842:13: */ if pIter != 0 { var i int32 for i = 0; i < (*Fts5Iter)(unsafe.Pointer(pIter)).FnSeg; i++ { @@ -230159,7 +232395,7 @@ func fts5MultiIterFree(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalga } } -func fts5MultiIterAdvanced(tls *libc.TLS, p uintptr, pIter uintptr, iChanged int32, iMinset int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227728:13: */ +func fts5MultiIterAdvanced(tls *libc.TLS, p uintptr, pIter uintptr, iChanged int32, iMinset int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229853:13: */ var i int32 for i = ((*Fts5Iter)(unsafe.Pointer(pIter)).FnSeg + iChanged) / 2; i >= iMinset && (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK; i = i / 2 { var iEq int32 @@ -230182,7 +232418,7 @@ func fts5MultiIterAdvanced(tls *libc.TLS, p uintptr, pIter uintptr, iChanged int // If non-zero is returned, the caller should call fts5MultiIterAdvanced() // on the iterator instead. That function does the same as this one, except // that it deals with more complicated cases as well. -func fts5MultiIterAdvanceRowid(tls *libc.TLS, pIter uintptr, iChanged int32, ppFirst uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227756:12: */ +func fts5MultiIterAdvanceRowid(tls *libc.TLS, pIter uintptr, iChanged int32, ppFirst uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229881:12: */ var pNew uintptr = pIter + 96 + uintptr(iChanged)*120 if (*Fts5SegIter)(unsafe.Pointer(pNew)).FiRowid == (*Fts5Iter)(unsafe.Pointer(pIter)).FiSwitchRowid || @@ -230222,7 +232458,7 @@ func fts5MultiIterAdvanceRowid(tls *libc.TLS, pIter uintptr, iChanged int32, ppF } // Set the pIter->bEof variable based on the state of the sub-iterators. -func fts5MultiIterSetEof(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227799:13: */ +func fts5MultiIterSetEof(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229924:13: */ var pSeg uintptr = pIter + 96 + uintptr((*Fts5CResult)(unsafe.Pointer((*Fts5Iter)(unsafe.Pointer(pIter)).FaFirst+1*4)).FiFirst)*120 (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FbEof = U8(libc.Bool32((*Fts5SegIter)(unsafe.Pointer(pSeg)).FpLeaf == uintptr(0))) (*Fts5Iter)(unsafe.Pointer(pIter)).FiSwitchRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid @@ -230233,7 +232469,7 @@ func fts5MultiIterSetEof(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amal // If an error occurs, an error code is left in Fts5Index.rc. It is not // considered an error if the iterator reaches EOF, or if it is already at // EOF when this function is called. -func fts5MultiIterNext(tls *libc.TLS, p uintptr, pIter uintptr, bFrom int32, iFrom I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227812:13: */ +func fts5MultiIterNext(tls *libc.TLS, p uintptr, pIter uintptr, bFrom int32, iFrom I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229937:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -230272,7 +232508,7 @@ func fts5MultiIterNext(tls *libc.TLS, p uintptr, pIter uintptr, bFrom int32, iFr } } -func fts5MultiIterNext2(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227850:13: */ +func fts5MultiIterNext2(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:229975:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -230297,12 +232533,12 @@ func fts5MultiIterNext2(tls *libc.TLS, p uintptr, pIter uintptr, pbNewTerm uintp } } -func fts5IterSetOutputs_Noop(tls *libc.TLS, pUnused1 uintptr, pUnused2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227878:13: */ +func fts5IterSetOutputs_Noop(tls *libc.TLS, pUnused1 uintptr, pUnused2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230003:13: */ _ = pUnused1 _ = pUnused2 } -func fts5MultiIterAlloc(tls *libc.TLS, p uintptr, nSeg int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227882:17: */ +func fts5MultiIterAlloc(tls *libc.TLS, p uintptr, nSeg int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230007:17: */ var pNew uintptr var nSlot int32 // Power of two >= nSeg @@ -230321,7 +232557,7 @@ func fts5MultiIterAlloc(tls *libc.TLS, p uintptr, nSeg int32) uintptr { /* testd return pNew } -func fts5PoslistCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227904:13: */ +func fts5PoslistCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230029:13: */ _ = pUnused if nChunk > 0 { @@ -230338,21 +232574,21 @@ type PoslistCallbackCtx1 = struct { FpColset uintptr FeState int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227916:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230041:9 */ -type PoslistCallbackCtx = PoslistCallbackCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227916:35 */ +type PoslistCallbackCtx = PoslistCallbackCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230041:35 */ type PoslistOffsetsCtx1 = struct { FpBuf uintptr FpColset uintptr FiRead int32 FiWrite int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227923:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230048:9 */ -type PoslistOffsetsCtx = PoslistOffsetsCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227923:34 */ +type PoslistOffsetsCtx = PoslistOffsetsCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230048:34 */ // TODO: Make this more efficient! -func fts5IndexColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227934:12: */ +func fts5IndexColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230059:12: */ var i int32 for i = 0; i < (*Fts5Colset)(unsafe.Pointer(pColset)).FnCol; i++ { if *(*int32)(unsafe.Pointer(pColset + 4 + uintptr(i)*4)) == iCol { @@ -230362,7 +232598,7 @@ func fts5IndexColsetTest(tls *libc.TLS, pColset uintptr, iCol int32) int32 { /* return 0 } -func fts5PoslistOffsetsCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227942:13: */ +func fts5PoslistOffsetsCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230067:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -230388,7 +232624,7 @@ func fts5PoslistOffsetsCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr } } -func fts5PoslistFilterCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:227965:13: */ +func fts5PoslistFilterCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230090:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -230468,7 +232704,7 @@ func fts5PoslistFilterCallback(tls *libc.TLS, pUnused uintptr, pContext uintptr, } } -func fts5ChunkIterate(tls *libc.TLS, p uintptr, pSeg uintptr, pCtx uintptr, xChunk uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228017:13: */ +func fts5ChunkIterate(tls *libc.TLS, p uintptr, pSeg uintptr, pCtx uintptr, xChunk uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230142:13: */ var nRem int32 = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FnPos // Number of bytes still to come var pData uintptr = uintptr(0) var pChunk uintptr = (*Fts5Data)(unsafe.Pointer((*Fts5SegIter)(unsafe.Pointer(pSeg)).FpLeaf)).Fp + uintptr((*Fts5SegIter)(unsafe.Pointer(pSeg)).FiLeafOffset) @@ -230524,7 +232760,7 @@ func fts5ChunkIterate(tls *libc.TLS, p uintptr, pSeg uintptr, pCtx uintptr, xChu // function appends the position list data for the current entry to // buffer pBuf. It does not make a copy of the position-list size // field. -func fts5SegiterPoslist(tls *libc.TLS, p uintptr, pSeg uintptr, pColset uintptr, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228067:13: */ +func fts5SegiterPoslist(tls *libc.TLS, p uintptr, pSeg uintptr, pColset uintptr, pBuf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230192:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -230575,7 +232811,7 @@ func fts5SegiterPoslist(tls *libc.TLS, p uintptr, pSeg uintptr, pColset uintptr, // This function is a no-op if *pRc is other than SQLITE_OK when it is // called. If an OOM error is encountered, *pRc is set to SQLITE_NOMEM // before returning. -func fts5IndexExtractColset(tls *libc.TLS, pRc uintptr, pColset uintptr, pPos uintptr, nPos int32, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228112:13: */ +func fts5IndexExtractColset(tls *libc.TLS, pRc uintptr, pColset uintptr, pPos uintptr, nPos int32, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230237:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -230636,7 +232872,7 @@ func fts5IndexExtractColset(tls *libc.TLS, pRc uintptr, pColset uintptr, pPos ui } // xSetOutputs callback used by detail=none tables. -func fts5IterSetOutputs_None(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228172:13: */ +func fts5IterSetOutputs_None(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230297:13: */ (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FnPos @@ -230644,7 +232880,7 @@ func fts5IterSetOutputs_None(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* te // xSetOutputs callback used by detail=full and detail=col tables when no // column filters are specified. -func fts5IterSetOutputs_Nocolset(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228182:13: */ +func fts5IterSetOutputs_Nocolset(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230307:13: */ (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FnPos @@ -230664,7 +232900,7 @@ func fts5IterSetOutputs_Nocolset(tls *libc.TLS, pIter uintptr, pSeg uintptr) { / // xSetOutputs callback used when the Fts5Colset object has nCol==0 (match // against no columns at all). -func fts5IterSetOutputs_ZeroColset(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228207:13: */ +func fts5IterSetOutputs_ZeroColset(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230332:13: */ _ = pSeg (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FnData = 0 } @@ -230672,7 +232908,7 @@ func fts5IterSetOutputs_ZeroColset(tls *libc.TLS, pIter uintptr, pSeg uintptr) { // xSetOutputs callback used by detail=col when there is a column filter // and there are 100 or more columns. Also called as a fallback from // fts5IterSetOutputs_Col100 if the column-list spans more than one page. -func fts5IterSetOutputs_Col(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228217:13: */ +func fts5IterSetOutputs_Col(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230342:13: */ sqlite3Fts5BufferZero(tls, pIter+32) fts5SegiterPoslist(tls, (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex, pSeg, (*Fts5Iter)(unsafe.Pointer(pIter)).FpColset, pIter+32) (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid @@ -230682,13 +232918,13 @@ func fts5IterSetOutputs_Col(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* tes // xSetOutputs callback used when: // -// * detail=col, -// * there is a column filter, and -// * the table contains 100 or fewer columns. +// - detail=col, +// - there is a column filter, and +// - the table contains 100 or fewer columns. // // The last point is to ensure all column numbers are stored as // single-byte varints. -func fts5IterSetOutputs_Col100(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228235:13: */ +func fts5IterSetOutputs_Col100(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230360:13: */ var a uintptr var pEnd uintptr var iPrev int32 @@ -230750,7 +232986,7 @@ __2: } // xSetOutputs callback used by detail=full when there is a column filter. -func fts5IterSetOutputs_Full(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228275:13: */ +func fts5IterSetOutputs_Full(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230400:13: */ var pColset uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpColset (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FiRowid = (*Fts5SegIter)(unsafe.Pointer(pSeg)).FiRowid @@ -230772,7 +233008,7 @@ func fts5IterSetOutputs_Full(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* te } } -func fts5IterSetOutputCb(tls *libc.TLS, pRc uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228300:13: */ +func fts5IterSetOutputCb(tls *libc.TLS, pRc uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230425:13: */ if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK { var pConfig uintptr = (*Fts5Index)(unsafe.Pointer((*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex)).FpConfig @@ -230817,7 +233053,7 @@ func fts5IterSetOutputCb(tls *libc.TLS, pRc uintptr, pIter uintptr) { /* testdat // // The iterator initially points to the first term/rowid entry in the // iterated data. -func fts5MultiIterNew(tls *libc.TLS, p uintptr, pStruct uintptr, flags int32, pColset uintptr, pTerm uintptr, nTerm int32, iLevel int32, nSegment int32, ppOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228344:13: */ +func fts5MultiIterNew(tls *libc.TLS, p uintptr, pStruct uintptr, flags int32, pColset uintptr, pTerm uintptr, nTerm int32, iLevel int32, nSegment int32, ppOut uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230469:13: */ var nSeg int32 // Number of segment-iters in use var iIter int32 // var iSeg int32 // Used to iterate through segments @@ -231020,7 +233256,7 @@ fts5MultiIterNew_post_check: // Create an Fts5Iter that iterates through the doclist provided // as the second argument. -func fts5MultiIterNew2(tls *libc.TLS, p uintptr, pData uintptr, bDesc int32, ppOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228450:13: */ +func fts5MultiIterNew2(tls *libc.TLS, p uintptr, pData uintptr, bDesc int32, ppOut uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230575:13: */ var pNew uintptr pNew = fts5MultiIterAlloc(tls, p, 2) if pNew != 0 { @@ -231053,7 +233289,7 @@ func fts5MultiIterNew2(tls *libc.TLS, p uintptr, pData uintptr, bDesc int32, ppO // Return true if the iterator is at EOF or if an error has occurred. // False otherwise. -func fts5MultiIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228490:12: */ +func fts5MultiIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230615:12: */ return libc.Bool32((*Fts5Index)(unsafe.Pointer(p)).Frc != 0 || (*Fts5Iter)(unsafe.Pointer(pIter)).Fbase.FbEof != 0) } @@ -231061,13 +233297,13 @@ func fts5MultiIterEof(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testda // Return the rowid of the entry that the iterator currently points // to. If the iterator points to EOF when this function is called the // results are undefined. -func fts5MultiIterRowid(tls *libc.TLS, pIter uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228503:12: */ +func fts5MultiIterRowid(tls *libc.TLS, pIter uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230628:12: */ return (*Fts5SegIter)(unsafe.Pointer(pIter + 96 + uintptr((*Fts5CResult)(unsafe.Pointer((*Fts5Iter)(unsafe.Pointer(pIter)).FaFirst+1*4)).FiFirst)*120)).FiRowid } // Move the iterator to the next entry at or following iMatch. -func fts5MultiIterNextFrom(tls *libc.TLS, p uintptr, pIter uintptr, iMatch I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228511:13: */ +func fts5MultiIterNextFrom(tls *libc.TLS, p uintptr, pIter uintptr, iMatch I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230636:13: */ for 1 != 0 { var iRowid I64 fts5MultiIterNext(tls, p, pIter, 1, iMatch) @@ -231086,7 +233322,7 @@ func fts5MultiIterNextFrom(tls *libc.TLS, p uintptr, pIter uintptr, iMatch I64) // Return a pointer to a buffer containing the term associated with the // entry that the iterator currently points to. -func fts5MultiIterTerm(tls *libc.TLS, pIter uintptr, pn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228530:17: */ +func fts5MultiIterTerm(tls *libc.TLS, pIter uintptr, pn uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230655:17: */ var p uintptr = pIter + 96 + uintptr((*Fts5CResult)(unsafe.Pointer((*Fts5Iter)(unsafe.Pointer(pIter)).FaFirst+1*4)).FiFirst)*120 *(*int32)(unsafe.Pointer(pn)) = (*Fts5SegIter)(unsafe.Pointer(p)).Fterm.Fn return (*Fts5SegIter)(unsafe.Pointer(p)).Fterm.Fp @@ -231099,7 +233335,7 @@ func fts5MultiIterTerm(tls *libc.TLS, pIter uintptr, pn uintptr) uintptr { /* te // // If an error has already occurred, this function is a no-op. 0 is // returned in this case. -func fts5AllocateSegid(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228545:12: */ +func fts5AllocateSegid(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230670:12: */ bp := tls.Alloc(252) defer tls.Free(252) @@ -231141,7 +233377,7 @@ func fts5AllocateSegid(tls *libc.TLS, p uintptr, pStruct uintptr) int32 { /* tes } // Discard all data currently cached in the hash-tables. -func fts5IndexDiscardData(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228602:13: */ +func fts5IndexDiscardData(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230727:13: */ if (*Fts5Index)(unsafe.Pointer(p)).FpHash != 0 { sqlite3Fts5HashClear(tls, (*Fts5Index)(unsafe.Pointer(p)).FpHash) @@ -231154,7 +233390,7 @@ func fts5IndexDiscardData(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgam // // Buffer (pNew/<length-unknown>) is guaranteed to be greater // than buffer (pOld/nOld). -func fts5PrefixCompress(tls *libc.TLS, nOld int32, pOld uintptr, pNew uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228617:12: */ +func fts5PrefixCompress(tls *libc.TLS, nOld int32, pOld uintptr, pNew uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230742:12: */ var i int32 for i = 0; i < nOld; i++ { if int32(*(*U8)(unsafe.Pointer(pOld + uintptr(i)))) != int32(*(*U8)(unsafe.Pointer(pNew + uintptr(i)))) { @@ -231164,7 +233400,7 @@ func fts5PrefixCompress(tls *libc.TLS, nOld int32, pOld uintptr, pNew uintptr) i return i } -func fts5WriteDlidxClear(tls *libc.TLS, p uintptr, pWriter uintptr, bFlush int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228625:13: */ +func fts5WriteDlidxClear(tls *libc.TLS, p uintptr, pWriter uintptr, bFlush int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230750:13: */ var i int32 for i = 0; i < (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FnDlidx; i++ { @@ -231185,7 +233421,7 @@ func fts5WriteDlidxClear(tls *libc.TLS, p uintptr, pWriter uintptr, bFlush int32 // Grow the pWriter->aDlidx[] array to at least nLvl elements in size. // Any new array elements are zeroed before returning. -func fts5WriteDlidxGrow(tls *libc.TLS, p uintptr, pWriter uintptr, nLvl int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228651:12: */ +func fts5WriteDlidxGrow(tls *libc.TLS, p uintptr, pWriter uintptr, nLvl int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230776:12: */ if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK && nLvl >= (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FnDlidx { var aDlidx uintptr = Xsqlite3_realloc64(tls, (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FaDlidx, uint64(unsafe.Sizeof(Fts5DlidxWriter{}))*uint64(nLvl)) @@ -231204,7 +233440,7 @@ func fts5WriteDlidxGrow(tls *libc.TLS, p uintptr, pWriter uintptr, nLvl int32) i // If the current doclist-index accumulating in pWriter->aDlidx[] is large // enough, flush it to disk and return 1. Otherwise discard it and return // zero. -func fts5WriteFlushDlidx(tls *libc.TLS, p uintptr, pWriter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228677:12: */ +func fts5WriteFlushDlidx(tls *libc.TLS, p uintptr, pWriter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230802:12: */ var bFlag int32 = 0 // If there were FTS5_MIN_DLIDX_SIZE or more empty leaf pages written @@ -231226,7 +233462,7 @@ func fts5WriteFlushDlidx(tls *libc.TLS, p uintptr, pWriter uintptr) int32 { /* t // it. // // Fts5SegWriter.btterm currently contains the first term on page iBtPage. -func fts5WriteFlushBtree(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228701:13: */ +func fts5WriteFlushBtree(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230826:13: */ var bFlag int32 if (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FiBtPage == 0 { @@ -231259,7 +233495,7 @@ func fts5WriteFlushBtree(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testdat // // If an error occurs, an error code is left in Fts5Index.rc. If an error // has already occurred when this function is called, it is a no-op. -func fts5WriteBtreeTerm(tls *libc.TLS, p uintptr, pWriter uintptr, nTerm int32, pTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228730:13: */ +func fts5WriteBtreeTerm(tls *libc.TLS, p uintptr, pWriter uintptr, nTerm int32, pTerm uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230855:13: */ fts5WriteFlushBtree(tls, p, pWriter) if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK { sqlite3Fts5BufferSet(tls, p+52, pWriter+96, nTerm, pTerm) @@ -231269,7 +233505,7 @@ func fts5WriteBtreeTerm(tls *libc.TLS, p uintptr, pWriter uintptr, nTerm int32, // This function is called when flushing a leaf page that contains no // terms at all to disk. -func fts5WriteBtreeNoTerm(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228746:13: */ +func fts5WriteBtreeNoTerm(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230871:13: */ // If there were no rowids on the leaf page either and the doclist-index // has already been started, append an 0x00 byte to it. if (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FbFirstRowidInPage != 0 && (*Fts5DlidxWriter)(unsafe.Pointer((*Fts5SegWriter)(unsafe.Pointer(pWriter)).FaDlidx)).Fbuf.Fn > 0 { @@ -231282,7 +233518,7 @@ func fts5WriteBtreeNoTerm(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testda (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FnEmpty++ } -func fts5DlidxExtractFirstRowid(tls *libc.TLS, pBuf uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228762:12: */ +func fts5DlidxExtractFirstRowid(tls *libc.TLS, pBuf uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230887:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -231298,7 +233534,7 @@ func fts5DlidxExtractFirstRowid(tls *libc.TLS, pBuf uintptr) I64 { /* testdata/s // Rowid iRowid has just been appended to the current leaf page. It is the // first on the page. This function appends an appropriate entry to the current // doclist-index. -func fts5WriteDlidxAppend(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228776:13: */ +func fts5WriteDlidxAppend(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230901:13: */ var i int32 var bDone int32 = 0 @@ -231358,7 +233594,7 @@ func fts5WriteDlidxAppend(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64) } } -func fts5WriteFlushLeaf(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228836:13: */ +func fts5WriteFlushLeaf(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230961:13: */ var pPage uintptr = pWriter + 8 var iRowid I64 @@ -231394,14 +233630,14 @@ func fts5WriteFlushLeaf(tls *libc.TLS, p uintptr, pWriter uintptr) { /* testdata (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FbFirstRowidInPage = U8(1) } -var zero = [4]U8{U8(0x00), U8(0x00), U8(0x00), U8(0x00)} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228837:19 */ +var zero = [4]U8{U8(0x00), U8(0x00), U8(0x00), U8(0x00)} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:230962:19 */ // Append term pTerm/nTerm to the segment being written by the writer passed // as the second argument. // // If an error occurs, set the Fts5Index.rc error code. If an error has // already occurred, this function is a no-op. -func fts5WriteAppendTerm(tls *libc.TLS, p uintptr, pWriter uintptr, nTerm int32, pTerm uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228882:13: */ +func fts5WriteAppendTerm(tls *libc.TLS, p uintptr, pWriter uintptr, nTerm int32, pTerm uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231007:13: */ var nPrefix int32 // Bytes of prefix compression for term var pPage uintptr = pWriter + 8 var pPgidx uintptr = pWriter + 8 + 24 @@ -231477,7 +233713,7 @@ func fts5WriteAppendTerm(tls *libc.TLS, p uintptr, pWriter uintptr, nTerm int32, } // Append a rowid and position-list size field to the writers output. -func fts5WriteAppendRowid(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228963:13: */ +func fts5WriteAppendRowid(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231088:13: */ if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK { var pPage uintptr = pWriter + 8 @@ -231506,7 +233742,7 @@ func fts5WriteAppendRowid(tls *libc.TLS, p uintptr, pWriter uintptr, iRowid I64) } } -func fts5WriteAppendPoslistData(tls *libc.TLS, p uintptr, pWriter uintptr, aData uintptr, nData int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:228996:13: */ +func fts5WriteAppendPoslistData(tls *libc.TLS, p uintptr, pWriter uintptr, aData uintptr, nData int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231121:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -231535,7 +233771,7 @@ func fts5WriteAppendPoslistData(tls *libc.TLS, p uintptr, pWriter uintptr, aData // Flush any data cached by the writer object to the database. Free any // allocations associated with the writer. -func fts5WriteFinish(tls *libc.TLS, p uintptr, pWriter uintptr, pnLeaf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229030:13: */ +func fts5WriteFinish(tls *libc.TLS, p uintptr, pWriter uintptr, pnLeaf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231155:13: */ var i int32 var pLeaf uintptr = pWriter + 8 if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK { @@ -231559,7 +233795,7 @@ func fts5WriteFinish(tls *libc.TLS, p uintptr, pWriter uintptr, pnLeaf uintptr) Xsqlite3_free(tls, (*Fts5SegWriter)(unsafe.Pointer(pWriter)).FaDlidx) } -func fts5WriteInit(tls *libc.TLS, p uintptr, pWriter uintptr, iSegid int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229058:13: */ +func fts5WriteInit(tls *libc.TLS, p uintptr, pWriter uintptr, iSegid int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231183:13: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -231580,7 +233816,7 @@ func fts5WriteInit(tls *libc.TLS, p uintptr, pWriter uintptr, iSegid int32) { /* if (*Fts5Index)(unsafe.Pointer(p)).FpIdxWriter == uintptr(0) { var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig fts5IndexPrepareStmt(tls, p, p+80, Xsqlite3_mprintf(tls, - ts+36279, + ts+36244, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))) } @@ -231599,7 +233835,7 @@ func fts5WriteInit(tls *libc.TLS, p uintptr, pWriter uintptr, iSegid int32) { /* // Iterator pIter was used to iterate through the input segments of on an // incremental merge operation. This function is called if the incremental // merge step has finished but the input has not been completely exhausted. -func fts5TrimSegments(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229105:13: */ +func fts5TrimSegments(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231230:13: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -231668,13 +233904,12 @@ func fts5TrimSegments(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata/sql sqlite3Fts5BufferFree(tls, bp) } -func fts5MergeChunkCallback(tls *libc.TLS, p uintptr, pCtx uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229171:13: */ +func fts5MergeChunkCallback(tls *libc.TLS, p uintptr, pCtx uintptr, pChunk uintptr, nChunk int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231296:13: */ var pWriter uintptr = pCtx fts5WriteAppendPoslistData(tls, p, pWriter, pChunk, nChunk) } -// -func fts5IndexMergeLevel(tls *libc.TLS, p uintptr, ppStruct uintptr, iLvl int32, pnRem uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229183:13: */ +func fts5IndexMergeLevel(tls *libc.TLS, p uintptr, ppStruct uintptr, iLvl int32, pnRem uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231308:13: */ bp := tls.Alloc(148) defer tls.Free(148) @@ -231833,7 +234068,7 @@ func fts5IndexMergeLevel(tls *libc.TLS, p uintptr, ppStruct uintptr, iLvl int32, // Do up to nPg pages of automerge work on the index. // // Return true if any changes were actually made, or false otherwise. -func fts5IndexMerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nPg int32, nMin int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229333:12: */ +func fts5IndexMerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nPg int32, nMin int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231458:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -231883,7 +234118,7 @@ func fts5IndexMerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nPg int32, nMin // // If an error occurs, set the Fts5Index.rc error code. If an error has // already occurred, this function is a no-op. -func fts5IndexAutomerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nLeaf int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229392:13: */ +func fts5IndexAutomerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nLeaf int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231517:13: */ if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FnAutomerge > 0 && *(*uintptr)(unsafe.Pointer(ppStruct)) != uintptr(0) { var pStruct uintptr = *(*uintptr)(unsafe.Pointer(ppStruct)) var nWrite U64 // Initial value of write-counter @@ -231900,7 +234135,7 @@ func fts5IndexAutomerge(tls *libc.TLS, p uintptr, ppStruct uintptr, nLeaf int32) } } -func fts5IndexCrisismerge(tls *libc.TLS, p uintptr, ppStruct uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229413:13: */ +func fts5IndexCrisismerge(tls *libc.TLS, p uintptr, ppStruct uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231538:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -231917,7 +234152,7 @@ func fts5IndexCrisismerge(tls *libc.TLS, p uintptr, ppStruct uintptr) { /* testd *(*uintptr)(unsafe.Pointer(ppStruct)) = *(*uintptr)(unsafe.Pointer(bp /* pStruct */)) } -func fts5IndexReturn(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229431:12: */ +func fts5IndexReturn(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231556:12: */ var rc int32 = (*Fts5Index)(unsafe.Pointer(p)).Frc (*Fts5Index)(unsafe.Pointer(p)).Frc = SQLITE_OK return rc @@ -231926,14 +234161,14 @@ func fts5IndexReturn(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalga type Fts5FlushCtx1 = struct { FpIdx uintptr Fwriter Fts5SegWriter -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229437:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231562:9 */ -type Fts5FlushCtx = Fts5FlushCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229437:29 */ +type Fts5FlushCtx = Fts5FlushCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231562:29 */ // Buffer aBuf[] contains a list of varints, all small enough to fit // in a 32-bit integer. Return the size of the largest prefix of this // list nMax bytes or less in size. -func fts5PoslistPrefix(tls *libc.TLS, aBuf uintptr, nMax int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229448:12: */ +func fts5PoslistPrefix(tls *libc.TLS, aBuf uintptr, nMax int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231573:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -231958,7 +234193,7 @@ func fts5PoslistPrefix(tls *libc.TLS, aBuf uintptr, nMax int32) int32 { /* testd // // If an error occurs, set the Fts5Index.rc error code. If an error has // already occurred, this function is a no-op. -func fts5FlushOneHash(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229469:13: */ +func fts5FlushOneHash(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231594:13: */ bp := tls.Alloc(176) defer tls.Free(176) @@ -232136,7 +234371,7 @@ func fts5FlushOneHash(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamatio } // Flush any data stored in the in-memory hash tables to the database. -func fts5IndexFlush(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229623:13: */ +func fts5IndexFlush(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231748:13: */ // Unless it is empty, flush the hash table to disk if (*Fts5Index)(unsafe.Pointer(p)).FnPendingData != 0 { @@ -232145,7 +234380,7 @@ func fts5IndexFlush(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation- } } -func fts5IndexOptimizeStruct(tls *libc.TLS, p uintptr, pStruct uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229632:22: */ +func fts5IndexOptimizeStruct(tls *libc.TLS, p uintptr, pStruct uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231757:22: */ var pNew uintptr = uintptr(0) var nByte Sqlite3_int64 = Sqlite3_int64(unsafe.Sizeof(Fts5Structure{})) var nSeg int32 = (*Fts5Structure)(unsafe.Pointer(pStruct)).FnSegment @@ -232206,7 +234441,7 @@ func fts5IndexOptimizeStruct(tls *libc.TLS, p uintptr, pStruct uintptr) uintptr return pNew } -func sqlite3Fts5IndexOptimize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229694:12: */ +func sqlite3Fts5IndexOptimize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231819:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -232240,7 +234475,7 @@ func sqlite3Fts5IndexOptimize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqli // This is called to implement the special "VALUES('merge', $nMerge)" // INSERT command. -func sqlite3Fts5IndexMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229728:12: */ +func sqlite3Fts5IndexMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231853:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -232265,12 +234500,12 @@ func sqlite3Fts5IndexMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* te return fts5IndexReturn(tls, p) } -func fts5AppendRowid(tls *libc.TLS, p uintptr, iDelta I64, pUnused uintptr, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229750:13: */ +func fts5AppendRowid(tls *libc.TLS, p uintptr, iDelta I64, pUnused uintptr, pBuf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231875:13: */ _ = pUnused sqlite3Fts5BufferAppendVarint(tls, p+52, pBuf, iDelta) } -func fts5AppendPoslist(tls *libc.TLS, p uintptr, iDelta I64, pMulti uintptr, pBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229760:13: */ +func fts5AppendPoslist(tls *libc.TLS, p uintptr, iDelta I64, pMulti uintptr, pBuf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231885:13: */ var nData int32 = (*Fts5Iter)(unsafe.Pointer(pMulti)).Fbase.FnData var nByte int32 = nData + 9 + 9 + FTS5_DATA_ZERO_PADDING @@ -232297,7 +234532,7 @@ func fts5AppendPoslist(tls *libc.TLS, p uintptr, iDelta I64, pMulti uintptr, pBu } } -func fts5DoclistIterNext(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229778:13: */ +func fts5DoclistIterNext(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231903:13: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -232329,7 +234564,7 @@ func fts5DoclistIterNext(tls *libc.TLS, pIter uintptr) { /* testdata/sqlite-amal } } -func fts5DoclistIterInit(tls *libc.TLS, pBuf uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229807:13: */ +func fts5DoclistIterInit(tls *libc.TLS, pBuf uintptr, pIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231932:13: */ libc.Xmemset(tls, pIter, 0, uint64(unsafe.Sizeof(Fts5DoclistIter{}))) if (*Fts5Buffer)(unsafe.Pointer(pBuf)).Fn > 0 { (*Fts5DoclistIter)(unsafe.Pointer(pIter)).FaPoslist = (*Fts5Buffer)(unsafe.Pointer(pBuf)).Fp @@ -232339,13 +234574,13 @@ func fts5DoclistIterInit(tls *libc.TLS, pBuf uintptr, pIter uintptr) { /* testda } // Swap the contents of buffer *p1 with that of *p2. -func fts5BufferSwap(tls *libc.TLS, p1 uintptr, p2 uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229846:13: */ +func fts5BufferSwap(tls *libc.TLS, p1 uintptr, p2 uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231971:13: */ var tmp = *(*Fts5Buffer)(unsafe.Pointer(p1)) *(*Fts5Buffer)(unsafe.Pointer(p1)) = *(*Fts5Buffer)(unsafe.Pointer(p2)) *(*Fts5Buffer)(unsafe.Pointer(p2)) = tmp } -func fts5NextRowid(tls *libc.TLS, pBuf uintptr, piOff uintptr, piRowid uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229852:13: */ +func fts5NextRowid(tls *libc.TLS, pBuf uintptr, piOff uintptr, piRowid uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231977:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -232362,7 +234597,7 @@ func fts5NextRowid(tls *libc.TLS, pBuf uintptr, piOff uintptr, piRowid uintptr) // This is the equivalent of fts5MergePrefixLists() for detail=none mode. // In this case the buffers consist of a delta-encoded list of rowids only. -func fts5MergeRowidLists(tls *libc.TLS, p uintptr, p1 uintptr, nBuf int32, aBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229867:13: */ +func fts5MergeRowidLists(tls *libc.TLS, p uintptr, p1 uintptr, nBuf int32, aBuf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:231992:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -232418,11 +234653,11 @@ type PrefixMerger1 = struct { F__ccgo_pad1 [4]byte FaPos uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229910:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232035:9 */ -type PrefixMerger = PrefixMerger1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229910:29 */ +type PrefixMerger = PrefixMerger1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232035:29 */ -func fts5PrefixMergerInsertByRowid(tls *libc.TLS, ppHead uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229919:13: */ +func fts5PrefixMergerInsertByRowid(tls *libc.TLS, ppHead uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232044:13: */ if (*PrefixMerger)(unsafe.Pointer(p)).Fiter.FaPoslist != 0 { var pp uintptr = ppHead for *(*uintptr)(unsafe.Pointer(pp)) != 0 && (*PrefixMerger)(unsafe.Pointer(p)).Fiter.FiRowid > (*PrefixMerger)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pp)))).Fiter.FiRowid { @@ -232433,7 +234668,7 @@ func fts5PrefixMergerInsertByRowid(tls *libc.TLS, ppHead uintptr, p uintptr) { / } } -func fts5PrefixMergerInsertByPosition(tls *libc.TLS, ppHead uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229933:13: */ +func fts5PrefixMergerInsertByPosition(tls *libc.TLS, ppHead uintptr, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232058:13: */ if (*PrefixMerger)(unsafe.Pointer(p)).FiPos >= int64(0) { var pp uintptr = ppHead for *(*uintptr)(unsafe.Pointer(pp)) != 0 && (*PrefixMerger)(unsafe.Pointer(p)).FiPos > (*PrefixMerger)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pp)))).FiPos { @@ -232446,7 +234681,7 @@ func fts5PrefixMergerInsertByPosition(tls *libc.TLS, ppHead uintptr, p uintptr) // Array aBuf[] contains nBuf doclists. These are all merged in with the // doclist in buffer p1. -func fts5MergePrefixLists(tls *libc.TLS, p uintptr, p1 uintptr, nBuf int32, aBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:229952:13: */ +func fts5MergePrefixLists(tls *libc.TLS, p uintptr, p1 uintptr, nBuf int32, aBuf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232077:13: */ bp := tls.Alloc(1072) defer tls.Free(1072) @@ -232611,7 +234846,7 @@ func fts5MergePrefixLists(tls *libc.TLS, p uintptr, p1 uintptr, nBuf int32, aBuf *(*Fts5Buffer)(unsafe.Pointer(p1)) = *(*Fts5Buffer)(unsafe.Pointer(bp + 1032 /* out */)) } -func fts5SetupPrefixIter(tls *libc.TLS, p uintptr, bDesc int32, iIdx int32, pToken uintptr, nToken int32, pColset uintptr, ppIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230096:13: */ +func fts5SetupPrefixIter(tls *libc.TLS, p uintptr, bDesc int32, iIdx int32, pToken uintptr, nToken int32, pColset uintptr, ppIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232221:13: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -232758,7 +234993,7 @@ func fts5SetupPrefixIter(tls *libc.TLS, p uintptr, bDesc int32, iIdx int32, pTok // Indicate that all subsequent calls to sqlite3Fts5IndexWrite() pertain // to the document with rowid iRowid. -func sqlite3Fts5IndexBeginWrite(tls *libc.TLS, p uintptr, bDelete int32, iRowid I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230233:12: */ +func sqlite3Fts5IndexBeginWrite(tls *libc.TLS, p uintptr, bDelete int32, iRowid I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232358:12: */ // Allocate the hash table if it has not already been allocated if (*Fts5Index)(unsafe.Pointer(p)).FpHash == uintptr(0) { @@ -232778,7 +235013,7 @@ func sqlite3Fts5IndexBeginWrite(tls *libc.TLS, p uintptr, bDelete int32, iRowid } // Commit data to disk. -func sqlite3Fts5IndexSync(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230257:12: */ +func sqlite3Fts5IndexSync(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232382:12: */ fts5IndexFlush(tls, p) sqlite3Fts5IndexCloseReader(tls, p) @@ -232789,7 +235024,7 @@ func sqlite3Fts5IndexSync(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-a // to the database. Additionally, assume that the contents of the %_data // table may have changed on disk. So any in-memory caches of %_data // records must be invalidated. -func sqlite3Fts5IndexRollback(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230270:12: */ +func sqlite3Fts5IndexRollback(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232395:12: */ sqlite3Fts5IndexCloseReader(tls, p) fts5IndexDiscardData(tls, p) fts5StructureInvalidate(tls, p) @@ -232800,7 +235035,7 @@ func sqlite3Fts5IndexRollback(tls *libc.TLS, p uintptr) int32 { /* testdata/sqli // The %_data table is completely empty when this function is called. This // function populates it with the initial structure objects for each index, // and the initial version of the "averages" record (a zero-byte blob). -func sqlite3Fts5IndexReinit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230283:12: */ +func sqlite3Fts5IndexReinit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232408:12: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -232819,7 +235054,7 @@ func sqlite3Fts5IndexReinit(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite // // If successful, set *pp to point to the new object and return SQLITE_OK. // Otherwise, set *pp to NULL and return an SQLite error code. -func sqlite3Fts5IndexOpen(tls *libc.TLS, pConfig uintptr, bCreate int32, pp uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230300:12: */ +func sqlite3Fts5IndexOpen(tls *libc.TLS, pConfig uintptr, bCreate int32, pp uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232425:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -232830,13 +235065,13 @@ func sqlite3Fts5IndexOpen(tls *libc.TLS, pConfig uintptr, bCreate int32, pp uint if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK { (*Fts5Index)(unsafe.Pointer(p)).FpConfig = pConfig (*Fts5Index)(unsafe.Pointer(p)).FnWorkUnit = FTS5_WORK_UNIT - (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl = sqlite3Fts5Mprintf(tls, bp+8, ts+36336, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) + (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl = sqlite3Fts5Mprintf(tls, bp+8, ts+36301, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) if (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl != 0 && bCreate != 0 { *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = sqlite3Fts5CreateTable(tls, - pConfig, ts+26254, ts+36344, 0, pzErr) + pConfig, ts+26219, ts+36309, 0, pzErr) if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK { - *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = sqlite3Fts5CreateTable(tls, pConfig, ts+12725, - ts+36379, + *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = sqlite3Fts5CreateTable(tls, pConfig, ts+12764, + ts+36344, 1, pzErr) } if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK { @@ -232853,7 +235088,7 @@ func sqlite3Fts5IndexOpen(tls *libc.TLS, pConfig uintptr, bCreate int32, pp uint } // Close a handle opened by an earlier call to sqlite3Fts5IndexOpen(). -func sqlite3Fts5IndexClose(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230341:12: */ +func sqlite3Fts5IndexClose(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232466:12: */ var rc int32 = SQLITE_OK if p != 0 { @@ -232874,7 +235109,7 @@ func sqlite3Fts5IndexClose(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite- // Argument p points to a buffer containing utf-8 text that is n bytes in // size. Return the number of bytes in the nChar character prefix of the // buffer, or 0 if there are less than nChar characters in total. -func sqlite3Fts5IndexCharlenToBytelen(tls *libc.TLS, p uintptr, nByte int32, nChar int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230364:12: */ +func sqlite3Fts5IndexCharlenToBytelen(tls *libc.TLS, p uintptr, nByte int32, nChar int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232489:12: */ var n int32 = 0 var i int32 for i = 0; i < nChar; i++ { @@ -232901,7 +235136,7 @@ func sqlite3Fts5IndexCharlenToBytelen(tls *libc.TLS, p uintptr, nByte int32, nCh // pIn is a UTF-8 encoded string, nIn bytes in size. Return the number of // unicode characters in the string. -func fts5IndexCharlen(tls *libc.TLS, pIn uintptr, nIn int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230391:12: */ +func fts5IndexCharlen(tls *libc.TLS, pIn uintptr, nIn int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232516:12: */ var nChar int32 = 0 var i int32 = 0 for i < nIn { @@ -232923,7 +235158,7 @@ func fts5IndexCharlen(tls *libc.TLS, pIn uintptr, nIn int32) int32 { /* testdata // If the operation is a delete, it must be called (at least) once for each // unique token in the document with an iCol value less than zero. The iPos // argument is ignored for a delete. -func sqlite3Fts5IndexWrite(tls *libc.TLS, p uintptr, iCol int32, iPos int32, pToken uintptr, nToken int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230413:12: */ +func sqlite3Fts5IndexWrite(tls *libc.TLS, p uintptr, iCol int32, iPos int32, pToken uintptr, nToken int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232538:12: */ var i int32 // Used to iterate through indexes var rc int32 = SQLITE_OK // Return code var pConfig uintptr = (*Fts5Index)(unsafe.Pointer(p)).FpConfig @@ -232947,7 +235182,7 @@ func sqlite3Fts5IndexWrite(tls *libc.TLS, p uintptr, iCol int32, iPos int32, pTo // Open a new iterator to iterate though all rowid that match the // specified token or token prefix. -func sqlite3Fts5IndexQuery(tls *libc.TLS, p uintptr, pToken uintptr, nToken int32, flags int32, pColset uintptr, ppIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230449:12: */ +func sqlite3Fts5IndexQuery(tls *libc.TLS, p uintptr, pToken uintptr, nToken int32, flags int32, pColset uintptr, ppIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232574:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -233030,7 +235265,7 @@ func sqlite3Fts5IndexQuery(tls *libc.TLS, p uintptr, pToken uintptr, nToken int3 // Return true if the iterator passed as the only argument is at EOF. // Move to the next matching rowid. -func sqlite3Fts5IterNext(tls *libc.TLS, pIndexIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230537:12: */ +func sqlite3Fts5IterNext(tls *libc.TLS, pIndexIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232662:12: */ var pIter uintptr = pIndexIter fts5MultiIterNext(tls, (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex, pIter, 0, int64(0)) @@ -233038,7 +235273,7 @@ func sqlite3Fts5IterNext(tls *libc.TLS, pIndexIter uintptr) int32 { /* testdata/ } // Move to the next matching term/rowid. Used by the fts5vocab module. -func sqlite3Fts5IterNextScan(tls *libc.TLS, pIndexIter uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230547:12: */ +func sqlite3Fts5IterNextScan(tls *libc.TLS, pIndexIter uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232672:12: */ var pIter uintptr = pIndexIter var p uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex @@ -233058,14 +235293,14 @@ func sqlite3Fts5IterNextScan(tls *libc.TLS, pIndexIter uintptr) int32 { /* testd // Move to the next matching rowid that occurs at or after iMatch. The // definition of "at or after" depends on whether this iterator iterates // in ascending or descending rowid order. -func sqlite3Fts5IterNextFrom(tls *libc.TLS, pIndexIter uintptr, iMatch I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230571:12: */ +func sqlite3Fts5IterNextFrom(tls *libc.TLS, pIndexIter uintptr, iMatch I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232696:12: */ var pIter uintptr = pIndexIter fts5MultiIterNextFrom(tls, (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex, pIter, iMatch) return fts5IndexReturn(tls, (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex) } // Return the current term. -func sqlite3Fts5IterTerm(tls *libc.TLS, pIndexIter uintptr, pn uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230580:19: */ +func sqlite3Fts5IterTerm(tls *libc.TLS, pIndexIter uintptr, pn uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232705:19: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -233083,7 +235318,7 @@ func sqlite3Fts5IterTerm(tls *libc.TLS, pIndexIter uintptr, pn uintptr) uintptr } // Close an iterator opened by an earlier call to sqlite3Fts5IndexQuery(). -func sqlite3Fts5IterClose(tls *libc.TLS, pIndexIter uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230591:13: */ +func sqlite3Fts5IterClose(tls *libc.TLS, pIndexIter uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232716:13: */ if pIndexIter != 0 { var pIter uintptr = pIndexIter var pIndex uintptr = (*Fts5Iter)(unsafe.Pointer(pIter)).FpIndex @@ -233096,7 +235331,7 @@ func sqlite3Fts5IterClose(tls *libc.TLS, pIndexIter uintptr) { /* testdata/sqlit // // Parameter anSize must point to an array of size nCol, where nCol is // the number of user defined columns in the FTS table. -func sqlite3Fts5IndexGetAverages(tls *libc.TLS, p uintptr, pnRow uintptr, anSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230606:12: */ +func sqlite3Fts5IndexGetAverages(tls *libc.TLS, p uintptr, pnRow uintptr, anSize uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232731:12: */ var nCol int32 = (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FnCol var pData uintptr @@ -233118,7 +235353,7 @@ func sqlite3Fts5IndexGetAverages(tls *libc.TLS, p uintptr, pnRow uintptr, anSize // Replace the current "averages" record with the contents of the buffer // supplied as the second argument. -func sqlite3Fts5IndexSetAverages(tls *libc.TLS, p uintptr, pData uintptr, nData int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230630:12: */ +func sqlite3Fts5IndexSetAverages(tls *libc.TLS, p uintptr, pData uintptr, nData int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232755:12: */ fts5DataWrite(tls, p, int64(FTS5_AVERAGES_ROWID), pData, nData) return fts5IndexReturn(tls, p) @@ -233126,7 +235361,7 @@ func sqlite3Fts5IndexSetAverages(tls *libc.TLS, p uintptr, pData uintptr, nData // Return the total number of blocks this module has read from the %_data // table since it was created. -func sqlite3Fts5IndexReads(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230640:12: */ +func sqlite3Fts5IndexReads(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232765:12: */ return (*Fts5Index)(unsafe.Pointer(p)).FnRead } @@ -233135,7 +235370,7 @@ func sqlite3Fts5IndexReads(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite- // // Return SQLITE_OK if successful, or an SQLite error code if an error // occurs. -func sqlite3Fts5IndexSetCookie(tls *libc.TLS, p uintptr, iNew int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230651:12: */ +func sqlite3Fts5IndexSetCookie(tls *libc.TLS, p uintptr, iNew int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232776:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -233148,7 +235383,7 @@ func sqlite3Fts5IndexSetCookie(tls *libc.TLS, p uintptr, iNew int32) int32 { /* sqlite3Fts5Put32(tls, bp, iNew) rc = Xsqlite3_blob_open(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl, - ts+36026, int64(FTS5_STRUCTURE_ROWID), 1, bp+8) + ts+35991, int64(FTS5_STRUCTURE_ROWID), 1, bp+8) if rc == SQLITE_OK { Xsqlite3_blob_write(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* pBlob */)), bp, 4, 0) rc = Xsqlite3_blob_close(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* pBlob */))) @@ -233157,7 +235392,7 @@ func sqlite3Fts5IndexSetCookie(tls *libc.TLS, p uintptr, iNew int32) int32 { /* return rc } -func sqlite3Fts5IndexLoadConfig(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230671:12: */ +func sqlite3Fts5IndexLoadConfig(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232796:12: */ var pStruct uintptr pStruct = fts5StructureRead(tls, p) fts5StructureRelease(tls, pStruct) @@ -233171,7 +235406,7 @@ func sqlite3Fts5IndexLoadConfig(tls *libc.TLS, p uintptr) int32 { /* testdata/sq // functionality. // Return a simple checksum value based on the arguments. -func sqlite3Fts5IndexEntryCksum(tls *libc.TLS, iRowid I64, iCol int32, iPos int32, iIdx int32, pTerm uintptr, nTerm int32) U64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230688:12: */ +func sqlite3Fts5IndexEntryCksum(tls *libc.TLS, iRowid I64, iCol int32, iPos int32, iIdx int32, pTerm uintptr, nTerm int32) U64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:232813:12: */ var i int32 var ret U64 = U64(iRowid) ret = ret + (ret<<3 + U64(iCol)) @@ -233187,11 +235422,11 @@ func sqlite3Fts5IndexEntryCksum(tls *libc.TLS, iRowid I64, iCol int32, iPos int3 // Check that: // -// 1) All leaves of pSeg between iFirst and iLast (inclusive) exist and -// contain zero terms. -// 2) All leaves of pSeg between iNoRowid and iLast (inclusive) exist and -// contain zero rowids. -func fts5IndexIntegrityCheckEmpty(tls *libc.TLS, p uintptr, pSeg uintptr, iFirst int32, iNoRowid int32, iLast int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230906:13: */ +// 1. All leaves of pSeg between iFirst and iLast (inclusive) exist and +// contain zero terms. +// 2. All leaves of pSeg between iNoRowid and iLast (inclusive) exist and +// contain zero rowids. +func fts5IndexIntegrityCheckEmpty(tls *libc.TLS, p uintptr, pSeg uintptr, iFirst int32, iNoRowid int32, iLast int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233031:13: */ var i int32 // Now check that the iter.nEmpty leaves following the current leaf @@ -233210,7 +235445,7 @@ func fts5IndexIntegrityCheckEmpty(tls *libc.TLS, p uintptr, pSeg uintptr, iFirst } } -func fts5IntegrityCheckPgidx(tls *libc.TLS, p uintptr, pLeaf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230927:13: */ +func fts5IntegrityCheckPgidx(tls *libc.TLS, p uintptr, pLeaf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233052:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -233269,7 +235504,7 @@ func fts5IntegrityCheckPgidx(tls *libc.TLS, p uintptr, pLeaf uintptr) { /* testd sqlite3Fts5BufferFree(tls, bp+32) } -func fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:230977:13: */ +func fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233102:13: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -233285,7 +235520,7 @@ func fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) { /* fts5IndexPrepareStmt(tls, p, bp+24, Xsqlite3_mprintf(tls, - ts+36423, + ts+36388, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, (*Fts5StructureSegment)(unsafe.Pointer(pSeg)).FiSegid))) // Iterate through the b-tree hierarchy. @@ -233438,7 +235673,7 @@ func fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) { /* // checksum does not match. Return SQLITE_OK if all checks pass without // error, or some other SQLite error code if another error (e.g. OOM) // occurs. -func sqlite3Fts5IndexIntegrityCheck(tls *libc.TLS, p uintptr, cksum U64, bUseCksum int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231122:12: */ +func sqlite3Fts5IndexIntegrityCheck(tls *libc.TLS, p uintptr, cksum U64, bUseCksum int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233247:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -233497,7 +235732,7 @@ func sqlite3Fts5IndexIntegrityCheck(tls *libc.TLS, p uintptr, cksum U64, bUseCks } else { (*Fts5Buffer)(unsafe.Pointer(bp + 16 /* &poslist */)).Fn = 0 fts5SegiterPoslist(tls, p, *(*uintptr)(unsafe.Pointer(bp))+96+uintptr((*Fts5CResult)(unsafe.Pointer((*Fts5Iter)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FaFirst+1*4)).FiFirst)*120, uintptr(0), bp+16) - sqlite3Fts5BufferAppendBlob(tls, p+52, bp+16, uint32(4), ts+36509) + sqlite3Fts5BufferAppendBlob(tls, p+52, bp+16, uint32(4), ts+36474) for 0 == sqlite3Fts5PoslistNext64(tls, (*Fts5Buffer)(unsafe.Pointer(bp+16)).Fp, (*Fts5Buffer)(unsafe.Pointer(bp+16)).Fn, bp+32, bp+40) { var iCol int32 = int32(*(*I64)(unsafe.Pointer(bp + 40)) >> 32) var iTokOff int32 = int32(*(*I64)(unsafe.Pointer(bp + 40)) & int64(0x7FFFFFFF)) @@ -233528,13 +235763,13 @@ func sqlite3Fts5IndexIntegrityCheck(tls *libc.TLS, p uintptr, cksum U64, bUseCks // // If successful, SQLITE_OK is returned. If an error occurs, some other // SQLite error code is returned instead. -func sqlite3Fts5IndexInit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231685:12: */ +func sqlite3Fts5IndexInit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233810:12: */ return SQLITE_OK _ = db return int32(0) } -func sqlite3Fts5IndexReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231711:12: */ +func sqlite3Fts5IndexReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233836:12: */ if fts5IndexDataVersion(tls, p) != (*Fts5Index)(unsafe.Pointer(p)).FiStructVersion { fts5StructureInvalidate(tls, p) @@ -233567,7 +235802,7 @@ type Fts5Auxdata1 = struct { FpPtr uintptr FxDelete uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ // 2014 Jun 09 // @@ -233589,7 +235824,7 @@ type Fts5Auxdata1 = struct { // assert() conditions in the fts5 code are activated - conditions that are // only true if it is guaranteed that the fts5 database is not corrupt. -type Fts5Auxdata = Fts5Auxdata1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231748:28 */ +type Fts5Auxdata = Fts5Auxdata1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233873:28 */ type Fts5Auxiliary1 = struct { FpGlobal uintptr FzFunc uintptr @@ -233597,9 +235832,9 @@ type Fts5Auxiliary1 = struct { FxFunc Fts5_extension_function FxDestroy uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5Auxiliary = Fts5Auxiliary1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231749:30 */ +type Fts5Auxiliary = Fts5Auxiliary1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233874:30 */ type Fts5Cursor1 = struct { Fbase Sqlite3_vtab_cursor FpNext uintptr @@ -233628,45 +235863,45 @@ type Fts5Cursor1 = struct { FnInstAlloc int32 FnInstCount int32 FaInst uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5Cursor = Fts5Cursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231750:27 */ +type Fts5Cursor = Fts5Cursor1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233875:27 */ type Fts5FullTable1 = struct { Fp Fts5Table FpStorage uintptr FpGlobal uintptr FpSortCsr uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231751:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233876:9 */ -type Fts5FullTable = Fts5FullTable1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231751:30 */ +type Fts5FullTable = Fts5FullTable1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233876:30 */ type Fts5Sorter1 = struct { FpStmt uintptr FiRowid I64 FaPoslist uintptr FnIdx int32 FaIdx [1]int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5Sorter = Fts5Sorter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231752:27 */ +type Fts5Sorter = Fts5Sorter1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233877:27 */ type Fts5TokenizerModule1 = struct { FzName uintptr FpUserData uintptr Fx Fts5_tokenizer FxDestroy uintptr FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:216948:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:219070:9 */ -type Fts5TokenizerModule = Fts5TokenizerModule1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231753:36 */ +type Fts5TokenizerModule = Fts5TokenizerModule1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233878:36 */ // NOTES ON TRANSACTIONS: // // SQLite invokes the following virtual table methods as transactions are // opened and closed by the user: // -// xBegin(): Start of a new transaction. -// xSync(): Initial part of two-phase commit. -// xCommit(): Final part of two-phase commit. -// xRollback(): Rollback the transaction. +// xBegin(): Start of a new transaction. +// xSync(): Initial part of two-phase commit. +// xCommit(): Final part of two-phase commit. +// xRollback(): Rollback the transaction. // // Anything that is required as part of a commit that may fail is performed // in the xSync() callback. Current versions of SQLite ignore any errors @@ -233674,9 +235909,9 @@ type Fts5TokenizerModule = Fts5TokenizerModule1 /* testdata/sqlite-amalgamation- // // And as sub-transactions are opened/closed: // -// xSavepoint(int S): Open savepoint S. -// xRelease(int S): Commit and close savepoint S. -// xRollbackTo(int S): Rollback to start of savepoint S. +// xSavepoint(int S): Open savepoint S. +// xRelease(int S): Commit and close savepoint S. +// xRollbackTo(int S): Rollback to start of savepoint S. // // During a write-transaction the fts5_index.c module may cache some data // in-memory. It is flushed to disk whenever xSync(), xRelease() or @@ -233690,21 +235925,21 @@ type Fts5TokenizerModule = Fts5TokenizerModule1 /* testdata/sqlite-amalgamation- type Fts5TransactionState = struct { FeState int32 FiSavepoint int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231786:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233911:1 */ type Fts5MatchPhrase = struct { FpPoslist uintptr FnTerm int32 F__ccgo_pad1 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:231843:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:233968:1 */ // Return true if pTab is a contentless table. -func fts5IsContentless(tls *libc.TLS, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232027:12: */ +func fts5IsContentless(tls *libc.TLS, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234152:12: */ return libc.Bool32((*Fts5Config)(unsafe.Pointer((*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpConfig)).FeContent == FTS5_CONTENT_NONE) } // Delete a virtual table handle allocated by fts5InitVtab(). -func fts5FreeVtab(tls *libc.TLS, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232034:13: */ +func fts5FreeVtab(tls *libc.TLS, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234159:13: */ if pTab != 0 { sqlite3Fts5IndexClose(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpIndex) sqlite3Fts5StorageClose(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage) @@ -233714,13 +235949,13 @@ func fts5FreeVtab(tls *libc.TLS, pTab uintptr) { /* testdata/sqlite-amalgamation } // The xDisconnect() virtual table method. -func fts5DisconnectMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232046:12: */ +func fts5DisconnectMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234171:12: */ fts5FreeVtab(tls, pVtab) return SQLITE_OK } // The xDestroy() virtual table method. -func fts5DestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232054:12: */ +func fts5DestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234179:12: */ var pTab uintptr = pVtab var rc int32 = sqlite3Fts5DropAll(tls, (*Fts5Table)(unsafe.Pointer(pTab)).FpConfig) if rc == SQLITE_OK { @@ -233734,11 +235969,11 @@ func fts5DestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite- // // The argv[] array contains the following: // -// argv[0] -> module name ("fts5") -// argv[1] -> database name -// argv[2] -> table name -// argv[...] -> "column name" and other module argument fields. -func fts5InitVtab(tls *libc.TLS, bCreate int32, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232074:12: */ +// argv[0] -> module name ("fts5") +// argv[1] -> database name +// argv[2] -> table name +// argv[...] -> "column name" and other module argument fields. +func fts5InitVtab(tls *libc.TLS, bCreate int32, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234199:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -233796,11 +236031,11 @@ func fts5InitVtab(tls *libc.TLS, bCreate int32, db uintptr, pAux uintptr, argc i // The xConnect() and xCreate() methods for the virtual table. All the // work is done in function fts5InitVtab(). -func fts5ConnectMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232140:12: */ +func fts5ConnectMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234265:12: */ return fts5InitVtab(tls, 0, db, pAux, argc, argv, ppVtab, pzErr) } -func fts5CreateMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232150:12: */ +func fts5CreateMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234275:12: */ return fts5InitVtab(tls, 1, db, pAux, argc, argv, ppVtab, pzErr) } @@ -233809,14 +236044,14 @@ func fts5CreateMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv // Set the SQLITE_INDEX_SCAN_UNIQUE flag in pIdxInfo->flags. Unless this // extension is currently being used by a version of SQLite too old to // support index-info flags. In that case this function is a no-op. -func fts5SetUniqueFlag(tls *libc.TLS, pIdxInfo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232176:13: */ +func fts5SetUniqueFlag(tls *libc.TLS, pIdxInfo uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234301:13: */ { *(*int32)(unsafe.Pointer(pIdxInfo + 80)) |= SQLITE_INDEX_SCAN_UNIQUE } } -func fts5UsePatternMatch(tls *libc.TLS, pConfig uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232187:12: */ +func fts5UsePatternMatch(tls *libc.TLS, pConfig uintptr, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234312:12: */ if (*Fts5Config)(unsafe.Pointer(pConfig)).FePattern == FTS5_PATTERN_GLOB && int32((*sqlite3_index_constraint)(unsafe.Pointer(p)).Fop) == FTS5_PATTERN_GLOB { return 1 @@ -233831,63 +236066,63 @@ func fts5UsePatternMatch(tls *libc.TLS, pConfig uintptr, p uintptr) int32 { /* t // Implementation of the xBestIndex method for FTS5 tables. Within the // WHERE constraint, it searches for the following: // -// 1. A MATCH constraint against the table column. -// 2. A MATCH constraint against the "rank" column. -// 3. A MATCH constraint against some other column. -// 4. An == constraint against the rowid column. -// 5. A < or <= constraint against the rowid column. -// 6. A > or >= constraint against the rowid column. +// 1. A MATCH constraint against the table column. +// 2. A MATCH constraint against the "rank" column. +// 3. A MATCH constraint against some other column. +// 4. An == constraint against the rowid column. +// 5. A < or <= constraint against the rowid column. +// 6. A > or >= constraint against the rowid column. // // Within the ORDER BY, the following are supported: // -// 5. ORDER BY rank [ASC|DESC] -// 6. ORDER BY rowid [ASC|DESC] +// 5. ORDER BY rank [ASC|DESC] +// 6. ORDER BY rowid [ASC|DESC] // // Information for the xFilter call is passed via both the idxNum and // idxStr variables. Specifically, idxNum is a bitmask of the following // flags used to encode the ORDER BY clause: // -// FTS5_BI_ORDER_RANK -// FTS5_BI_ORDER_ROWID -// FTS5_BI_ORDER_DESC +// FTS5_BI_ORDER_RANK +// FTS5_BI_ORDER_ROWID +// FTS5_BI_ORDER_DESC // // idxStr is used to encode data from the WHERE clause. For each argument // passed to the xFilter method, the following is appended to idxStr: // -// Match against table column: "m" -// Match against rank column: "r" -// Match against other column: "M<column-number>" -// LIKE against other column: "L<column-number>" -// GLOB against other column: "G<column-number>" -// Equality constraint against the rowid: "=" -// A < or <= against the rowid: "<" -// A > or >= against the rowid: ">" +// Match against table column: "m" +// Match against rank column: "r" +// Match against other column: "M<column-number>" +// LIKE against other column: "L<column-number>" +// GLOB against other column: "G<column-number>" +// Equality constraint against the rowid: "=" +// A < or <= against the rowid: "<" +// A > or >= against the rowid: ">" // // This function ensures that there is at most one "r" or "=". And that if // there exists an "=" then there is no "<" or ">". // // Costs are assigned as follows: // -// a) If an unusable MATCH operator is present in the WHERE clause, the -// cost is unconditionally set to 1e50 (a really big number). +// a) If an unusable MATCH operator is present in the WHERE clause, the +// cost is unconditionally set to 1e50 (a really big number). // -// a) If a MATCH operator is present, the cost depends on the other -// constraints also present. As follows: +// a) If a MATCH operator is present, the cost depends on the other +// constraints also present. As follows: // -// * No other constraints: cost=1000.0 -// * One rowid range constraint: cost=750.0 -// * Both rowid range constraints: cost=500.0 -// * An == rowid constraint: cost=100.0 +// * No other constraints: cost=1000.0 +// * One rowid range constraint: cost=750.0 +// * Both rowid range constraints: cost=500.0 +// * An == rowid constraint: cost=100.0 // -// b) Otherwise, if there is no MATCH: +// b) Otherwise, if there is no MATCH: // -// * No other constraints: cost=1000000.0 -// * One rowid range constraint: cost=750000.0 -// * Both rowid range constraints: cost=250000.0 -// * An == rowid constraint: cost=10.0 +// * No other constraints: cost=1000000.0 +// * One rowid range constraint: cost=750000.0 +// * Both rowid range constraints: cost=250000.0 +// * An == rowid constraint: cost=10.0 // // Costs are not modified by the ORDER BY clause. -func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232265:12: */ +func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234390:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -233908,7 +236143,7 @@ func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /* if (*Fts5Config)(unsafe.Pointer(pConfig)).FbLock != 0 { (*Fts5Table)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, - ts+36514, 0) + ts+36479, 0) return SQLITE_ERROR } @@ -233942,7 +236177,7 @@ func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /* } else if iCol >= 0 { bSeenMatch = 1 *(*int8)(unsafe.Pointer(idxStr + uintptr(libc.PostIncInt32(&iIdxStr, 1)))) = int8('M') - Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+6278, libc.VaList(bp, iCol)) + Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+6313, libc.VaList(bp, iCol)) idxStr += uintptr(libc.Xstrlen(tls, idxStr+uintptr(iIdxStr))) } @@ -233958,7 +236193,7 @@ func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /* } return int8('G') }() - Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+6278, libc.VaList(bp+8, iCol)) + Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+6313, libc.VaList(bp+8, iCol)) idxStr += uintptr(libc.Xstrlen(tls, idxStr+uintptr(iIdxStr))) (*sqlite3_index_constraint_usage)(unsafe.Pointer((*Sqlite3_index_info)(unsafe.Pointer(pInfo)).FaConstraintUsage + uintptr(i)*8)).FargvIndex = libc.PreIncInt32(&iCons, 1) @@ -234049,7 +236284,7 @@ func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /* return SQLITE_OK } -func fts5NewTransaction(tls *libc.TLS, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232400:12: */ +func fts5NewTransaction(tls *libc.TLS, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234525:12: */ var pCsr uintptr for pCsr = (*Fts5Global)(unsafe.Pointer((*Fts5FullTable)(unsafe.Pointer(pTab)).FpGlobal)).FpCsr; pCsr != 0; pCsr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpNext { if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab == pTab { @@ -234060,7 +236295,7 @@ func fts5NewTransaction(tls *libc.TLS, pTab uintptr) int32 { /* testdata/sqlite- } // Implementation of xOpen method. -func fts5OpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232411:12: */ +func fts5OpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234536:12: */ var pTab uintptr = pVTab var pConfig uintptr = (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpConfig var pCsr uintptr = uintptr(0) // New cursor object @@ -234086,7 +236321,7 @@ func fts5OpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* test return rc } -func fts5StmtType(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232437:12: */ +func fts5StmtType(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234562:12: */ if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FePlan == FTS5_PLAN_SCAN { if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FbDesc != 0 { return FTS5_STMT_SCAN_DESC @@ -234099,11 +236334,11 @@ func fts5StmtType(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalga // This function is called after the cursor passed as the only argument // is moved to point at a different row. It clears all cached data // specific to the previous row stored by the cursor object. -func fts5CsrNewrow(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232449:13: */ +func fts5CsrNewrow(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234574:13: */ *(*int32)(unsafe.Pointer(pCsr + 80)) |= FTS5CSR_REQUIRE_CONTENT | FTS5CSR_REQUIRE_DOCSIZE | FTS5CSR_REQUIRE_INST | FTS5CSR_REQUIRE_POSLIST } -func fts5FreeCursorComponents(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232458:13: */ +func fts5FreeCursorComponents(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234583:13: */ var pTab uintptr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab var pData uintptr var pNext uintptr @@ -234146,7 +236381,7 @@ func fts5FreeCursorComponents(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite- // Close the cursor. For additional information see the documentation // on the xClose method of the virtual table interface. -func fts5CloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232502:12: */ +func fts5CloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234627:12: */ if pCursor != 0 { var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab var pCsr uintptr = pCursor @@ -234163,7 +236398,7 @@ func fts5CloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite- return SQLITE_OK } -func fts5SorterNext(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232518:12: */ +func fts5SorterNext(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234643:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -234207,7 +236442,7 @@ func fts5SorterNext(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amal // Set the FTS5CSR_REQUIRE_RESEEK flag on all FTS5_PLAN_MATCH cursors // open on table pTab. -func fts5TripCursors(tls *libc.TLS, pTab uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232561:13: */ +func fts5TripCursors(tls *libc.TLS, pTab uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234686:13: */ var pCsr uintptr for pCsr = (*Fts5Global)(unsafe.Pointer((*Fts5FullTable)(unsafe.Pointer(pTab)).FpGlobal)).FpCsr; pCsr != 0; pCsr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpNext { if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FePlan == FTS5_PLAN_MATCH && @@ -234227,7 +236462,7 @@ func fts5TripCursors(tls *libc.TLS, pTab uintptr) { /* testdata/sqlite-amalgamat // // Return SQLITE_OK if successful or if no reseek was required, or an // error code if an error occurred. -func fts5CursorReseek(tls *libc.TLS, pCsr uintptr, pbSkip uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232584:12: */ +func fts5CursorReseek(tls *libc.TLS, pCsr uintptr, pbSkip uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234709:12: */ var rc int32 = SQLITE_OK if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_RESEEK != 0 { @@ -234256,7 +236491,7 @@ func fts5CursorReseek(tls *libc.TLS, pCsr uintptr, pbSkip uintptr) int32 { /* te // Return SQLITE_OK if nothing goes wrong. SQLITE_OK is returned // even if we reach end-of-file. The fts5EofMethod() will be called // subsequently to determine whether or not an EOF was hit. -func fts5NextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232616:12: */ +func fts5NextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234741:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -234301,7 +236536,7 @@ func fts5NextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-a rc = Xsqlite3_reset(tls, (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpStmt) if rc != SQLITE_OK { (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, - ts+4444, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb))) + ts+4479, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb))) } } else { rc = SQLITE_OK @@ -234315,7 +236550,7 @@ func fts5NextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-a return rc } -func fts5PrepareStatement(tls *libc.TLS, ppStmt uintptr, pConfig uintptr, zFmt uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232669:12: */ +func fts5PrepareStatement(tls *libc.TLS, ppStmt uintptr, pConfig uintptr, zFmt uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234794:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -234333,7 +236568,7 @@ func fts5PrepareStatement(tls *libc.TLS, ppStmt uintptr, pConfig uintptr, zFmt u rc = Xsqlite3_prepare_v3(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, zSql, -1, uint32(SQLITE_PREPARE_PERSISTENT), bp+8, uintptr(0)) if rc != SQLITE_OK { - *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb))) + *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb))) } Xsqlite3_free(tls, zSql) } @@ -234343,7 +236578,7 @@ func fts5PrepareStatement(tls *libc.TLS, ppStmt uintptr, pConfig uintptr, zFmt u return rc } -func fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232698:12: */ +func fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234823:12: */ bp := tls.Alloc(56) defer tls.Free(56) @@ -234372,11 +236607,11 @@ func fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int3 // // If SQLite a built-in statement cache, this wouldn't be a problem. rc = fts5PrepareStatement(tls, pSorter, pConfig, - ts+36553, + ts+36518, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zRank, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, func() uintptr { if zRankArgs != 0 { - return ts + 15908 /* ", " */ + return ts + 15947 /* ", " */ } return ts + 1524 /* "" */ }(), @@ -234388,9 +236623,9 @@ func fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int3 }(), func() uintptr { if bDesc != 0 { - return ts + 36608 /* "DESC" */ + return ts + 36573 /* "DESC" */ } - return ts + 36613 /* "ASC" */ + return ts + 36578 /* "ASC" */ }())) (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter = pSorter @@ -234410,7 +236645,7 @@ func fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int3 return rc } -func fts5CursorFirst(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232750:12: */ +func fts5CursorFirst(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234875:12: */ var rc int32 var pExpr uintptr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpExpr rc = sqlite3Fts5ExprFirst(tls, pExpr, (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpIndex, (*Fts5Cursor)(unsafe.Pointer(pCsr)).FiFirstRowid, bDesc) @@ -234425,7 +236660,7 @@ func fts5CursorFirst(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int32) int // MATCH expression that begins with a '*' character. The remainder of // the text passed to the MATCH operator are used as the special query // parameters. -func fts5SpecialMatch(tls *libc.TLS, pTab uintptr, pCsr uintptr, zQuery uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232767:12: */ +func fts5SpecialMatch(tls *libc.TLS, pTab uintptr, pCsr uintptr, zQuery uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234892:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -234441,13 +236676,13 @@ func fts5SpecialMatch(tls *libc.TLS, pTab uintptr, pCsr uintptr, zQuery uintptr) (*Fts5Cursor)(unsafe.Pointer(pCsr)).FePlan = FTS5_PLAN_SPECIAL - if n == 5 && 0 == Xsqlite3_strnicmp(tls, ts+36617, z, n) { + if n == 5 && 0 == Xsqlite3_strnicmp(tls, ts+36582, z, n) { (*Fts5Cursor)(unsafe.Pointer(pCsr)).FiSpecial = I64(sqlite3Fts5IndexReads(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpIndex)) - } else if n == 2 && 0 == Xsqlite3_strnicmp(tls, ts+6360, z, n) { + } else if n == 2 && 0 == Xsqlite3_strnicmp(tls, ts+6395, z, n) { (*Fts5Cursor)(unsafe.Pointer(pCsr)).FiSpecial = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FiCsrId } else { // An unrecognized directive. Return an error message. - (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+36623, libc.VaList(bp, n, z)) + (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+36588, libc.VaList(bp, n, z)) rc = SQLITE_ERROR } @@ -234457,7 +236692,7 @@ func fts5SpecialMatch(tls *libc.TLS, pTab uintptr, pCsr uintptr, zQuery uintptr) // Search for an auxiliary function named zName that can be used with table // pTab. If one is found, return a pointer to the corresponding Fts5Auxiliary // structure. Otherwise, if no such function exists, return NULL. -func fts5FindAuxiliary(tls *libc.TLS, pTab uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232802:22: */ +func fts5FindAuxiliary(tls *libc.TLS, pTab uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234927:22: */ var pAux uintptr for pAux = (*Fts5Global)(unsafe.Pointer((*Fts5FullTable)(unsafe.Pointer(pTab)).FpGlobal)).FpAux; pAux != 0; pAux = (*Fts5Auxiliary)(unsafe.Pointer(pAux)).FpNext { @@ -234470,7 +236705,7 @@ func fts5FindAuxiliary(tls *libc.TLS, pTab uintptr, zName uintptr) uintptr { /* return uintptr(0) } -func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232814:12: */ +func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234939:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -234482,7 +236717,7 @@ func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlit var zRankArgs uintptr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRankArgs if zRankArgs != 0 { - var zSql uintptr = sqlite3Fts5Mprintf(tls, bp+16, ts+36651, libc.VaList(bp, zRankArgs)) + var zSql uintptr = sqlite3Fts5Mprintf(tls, bp+16, ts+36616, libc.VaList(bp, zRankArgs)) if zSql != 0 { *(*uintptr)(unsafe.Pointer(bp + 24 /* pStmt */)) = uintptr(0) *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = Xsqlite3_prepare_v3(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, zSql, -1, @@ -234514,7 +236749,7 @@ func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlit pAux = fts5FindAuxiliary(tls, pTab, zRank) if pAux == uintptr(0) { - (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+36661, libc.VaList(bp+8, zRank)) + (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+36626, libc.VaList(bp+8, zRank)) *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_ERROR } } @@ -234523,7 +236758,7 @@ func fts5FindRankFunction(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlit return *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) } -func fts5CursorParseRank(tls *libc.TLS, pConfig uintptr, pCsr uintptr, pRank uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232865:12: */ +func fts5CursorParseRank(tls *libc.TLS, pConfig uintptr, pCsr uintptr, pRank uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:234990:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -234546,21 +236781,21 @@ func fts5CursorParseRank(tls *libc.TLS, pConfig uintptr, pCsr uintptr, pRank uin *(*int32)(unsafe.Pointer(pCsr + 80)) |= FTS5CSR_FREE_ZRANK } else if rc == SQLITE_ERROR { (*Sqlite3_vtab)(unsafe.Pointer((*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, - ts+36682, libc.VaList(bp, z)) + ts+36647, libc.VaList(bp, z)) } } else { if (*Fts5Config)(unsafe.Pointer(pConfig)).FzRank != 0 { (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRank = (*Fts5Config)(unsafe.Pointer(pConfig)).FzRank (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRankArgs = (*Fts5Config)(unsafe.Pointer(pConfig)).FzRankArgs } else { - (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRank = ts + 35065 /* "bm25" */ + (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRank = ts + 35030 /* "bm25" */ (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRankArgs = uintptr(0) } } return rc } -func fts5GetRowidLimit(tls *libc.TLS, pVal uintptr, iDefault I64) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232902:12: */ +func fts5GetRowidLimit(tls *libc.TLS, pVal uintptr, iDefault I64) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235027:12: */ if pVal != 0 { var eType int32 = Xsqlite3_value_numeric_type(tls, pVal) if eType == SQLITE_INTEGER { @@ -234576,10 +236811,10 @@ func fts5GetRowidLimit(tls *libc.TLS, pVal uintptr, iDefault I64) I64 { /* testd // // There are three possible query strategies: // -// 1. Full-text search using a MATCH operator. -// 2. A by-rowid lookup. -// 3. A full-table scan. -func fts5FilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uintptr, nVal int32, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:232923:12: */ +// 1. Full-text search using a MATCH operator. +// 2. A by-rowid lookup. +// 3. A full-table scan. +func fts5FilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uintptr, nVal int32, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235048:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -234619,7 +236854,7 @@ func fts5FilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uintp goto __1 } (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, - ts+36514, 0) + ts+36479, 0) return SQLITE_ERROR __1: ; @@ -234854,7 +237089,7 @@ __35: goto __40 } *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, - ts+36715, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) + ts+36680, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) rc = SQLITE_ERROR goto __41 __40: @@ -234900,7 +237135,7 @@ filter_out: // This is the xEof method of the virtual table. SQLite calls this // routine to find out if it has reached the end of a result set. -func fts5EofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233116:12: */ +func fts5EofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235241:12: */ var pCsr uintptr = pCursor return func() int32 { if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_EOF != 0 { @@ -234911,7 +237146,7 @@ func fts5EofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-am } // Return the rowid that the cursor currently points to. -func fts5CursorRowid(tls *libc.TLS, pCsr uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233124:12: */ +func fts5CursorRowid(tls *libc.TLS, pCsr uintptr) I64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235249:12: */ if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter != 0 { return (*Fts5Sorter)(unsafe.Pointer((*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter)).FiRowid @@ -234925,7 +237160,7 @@ func fts5CursorRowid(tls *libc.TLS, pCsr uintptr) I64 { /* testdata/sqlite-amalg // retrieve the rowid for the current row of the result set. fts5 // exposes %_content.rowid as the rowid for the virtual table. The // rowid should be written to *pRowid. -func fts5RowidMethod(tls *libc.TLS, pCursor uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233142:12: */ +func fts5RowidMethod(tls *libc.TLS, pCursor uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235267:12: */ var pCsr uintptr = pCursor var ePlan int32 = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FePlan @@ -234955,7 +237190,7 @@ func fts5RowidMethod(tls *libc.TLS, pCursor uintptr, pRowid uintptr) int32 { /* // // If argument bErrormsg is true and an error occurs, an error message may // be left in sqlite3_vtab.zErrMsg. -func fts5SeekCursor(tls *libc.TLS, pCsr uintptr, bErrormsg int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233173:12: */ +func fts5SeekCursor(tls *libc.TLS, pCsr uintptr, bErrormsg int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235298:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -234992,14 +237227,14 @@ func fts5SeekCursor(tls *libc.TLS, pCsr uintptr, bErrormsg int32) int32 { /* tes rc = SQLITE_CORRUPT | int32(1)<<8 } else if (*Fts5Config)(unsafe.Pointer((*Fts5Table)(unsafe.Pointer(pTab)).FpConfig)).FpzErrmsg != 0 { *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer((*Fts5Table)(unsafe.Pointer(pTab)).FpConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, - ts+4444, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer((*Fts5Table)(unsafe.Pointer(pTab)).FpConfig)).Fdb))) + ts+4479, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer((*Fts5Table)(unsafe.Pointer(pTab)).FpConfig)).Fdb))) } } } return rc } -func fts5SetVtabError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233212:13: */ +func fts5SetVtabError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235337:13: */ var ap Va_list _ = ap // ... printf arguments ap = va @@ -235011,8 +237246,8 @@ func fts5SetVtabError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { / // This function is called to handle an FTS INSERT command. In other words, // an INSERT statement of the form: // -// INSERT INTO fts(fts) VALUES($pCmd) -// INSERT INTO fts(fts, rank) VALUES($pCmd, $pVal) +// INSERT INTO fts(fts) VALUES($pCmd) +// INSERT INTO fts(fts, rank) VALUES($pCmd, $pVal) // // Argument pVal is the value assigned to column "fts" by the INSERT // statement. This function returns SQLITE_OK if successful, or an SQLite @@ -235021,7 +237256,7 @@ func fts5SetVtabError(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { / // The commands implemented by this function are documented in the "Special // INSERT Directives" section of the documentation. It should be updated if // more commands are added to this function. -func fts5SpecialInsert(tls *libc.TLS, pTab uintptr, zCmd uintptr, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233235:12: */ +func fts5SpecialInsert(tls *libc.TLS, pTab uintptr, zCmd uintptr, pVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235360:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -235029,29 +237264,29 @@ func fts5SpecialInsert(tls *libc.TLS, pTab uintptr, zCmd uintptr, pVal uintptr) var rc int32 = SQLITE_OK *(*int32)(unsafe.Pointer(bp /* bError */)) = 0 - if 0 == Xsqlite3_stricmp(tls, ts+36751, zCmd) { + if 0 == Xsqlite3_stricmp(tls, ts+36716, zCmd) { if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL { fts5SetVtabError(tls, pTab, - ts+36762, 0) + ts+36727, 0) rc = SQLITE_ERROR } else { rc = sqlite3Fts5StorageDeleteAll(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage) } - } else if 0 == Xsqlite3_stricmp(tls, ts+36842, zCmd) { + } else if 0 == Xsqlite3_stricmp(tls, ts+36807, zCmd) { if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NONE { fts5SetVtabError(tls, pTab, - ts+36850, 0) + ts+36815, 0) rc = SQLITE_ERROR } else { rc = sqlite3Fts5StorageRebuild(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage) } - } else if 0 == Xsqlite3_stricmp(tls, ts+18220, zCmd) { + } else if 0 == Xsqlite3_stricmp(tls, ts+18250, zCmd) { rc = sqlite3Fts5StorageOptimize(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage) - } else if 0 == Xsqlite3_stricmp(tls, ts+36906, zCmd) { + } else if 0 == Xsqlite3_stricmp(tls, ts+36871, zCmd) { var nMerge int32 = Xsqlite3_value_int(tls, pVal) rc = sqlite3Fts5StorageMerge(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, nMerge) - } else if 0 == Xsqlite3_stricmp(tls, ts+36912, zCmd) { + } else if 0 == Xsqlite3_stricmp(tls, ts+36877, zCmd) { var iArg int32 = Xsqlite3_value_int(tls, pVal) rc = sqlite3Fts5StorageIntegrity(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, iArg) } else { @@ -235070,7 +237305,7 @@ func fts5SpecialInsert(tls *libc.TLS, pTab uintptr, zCmd uintptr, pVal uintptr) return rc } -func fts5SpecialDelete(tls *libc.TLS, pTab uintptr, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233291:12: */ +func fts5SpecialDelete(tls *libc.TLS, pTab uintptr, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235416:12: */ var rc int32 = SQLITE_OK var eType1 int32 = Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apVal + 1*8))) if eType1 == SQLITE_INTEGER { @@ -235080,7 +237315,7 @@ func fts5SpecialDelete(tls *libc.TLS, pTab uintptr, apVal uintptr) int32 { /* te return rc } -func fts5StorageInsert(tls *libc.TLS, pRc uintptr, pTab uintptr, apVal uintptr, piRowid uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233304:13: */ +func fts5StorageInsert(tls *libc.TLS, pRc uintptr, pTab uintptr, apVal uintptr, piRowid uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235429:13: */ var rc int32 = *(*int32)(unsafe.Pointer(pRc)) if rc == SQLITE_OK { rc = sqlite3Fts5StorageContentInsert(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, apVal, piRowid) @@ -235099,11 +237334,11 @@ func fts5StorageInsert(tls *libc.TLS, pRc uintptr, pTab uintptr, apVal uintptr, // // Update and insert operations pass: // -// 1. The "old" rowid, or NULL. -// 2. The "new" rowid. -// 3. Values for each of the nCol matchable columns. -// 4. Values for the two hidden columns (<tablename> and "rank"). -func fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233334:12: */ +// 1. The "old" rowid, or NULL. +// 2. The "new" rowid. +// 3. Values for each of the nCol matchable columns. +// 4. Values for the two hidden columns (<tablename> and "rank"). +func fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235459:12: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -235125,7 +237360,7 @@ func fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr, p // A "special" INSERT op. These are handled separately. var z uintptr = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(2+(*Fts5Config)(unsafe.Pointer(pConfig)).FnCol)*8))) if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent != FTS5_CONTENT_NORMAL && - 0 == Xsqlite3_stricmp(tls, ts+18755, z) { + 0 == Xsqlite3_stricmp(tls, ts+18785, z) { *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = fts5SpecialDelete(tls, pTab, apVal) } else { *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = fts5SpecialInsert(tls, pTab, z, *(*uintptr)(unsafe.Pointer(apVal + uintptr(2+(*Fts5Config)(unsafe.Pointer(pConfig)).FnCol+1)*8))) @@ -235150,12 +237385,12 @@ func fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr, p // This is not suported. if eType0 == SQLITE_INTEGER && fts5IsContentless(tls, pTab) != 0 { (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, - ts+36928, + ts+36893, libc.VaList(bp, func() uintptr { if nArg > 1 { - return ts + 21654 /* "UPDATE" */ + return ts + 21594 /* "UPDATE" */ } - return ts + 36965 /* "DELETE from" */ + return ts + 36930 /* "DELETE from" */ }(), (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_ERROR } else if nArg == 1 { @@ -235205,7 +237440,7 @@ func fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr, p } // Implementation of xSync() method. -func fts5SyncMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233460:12: */ +func fts5SyncMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235585:12: */ var rc int32 var pTab uintptr = pVtab @@ -235217,7 +237452,7 @@ func fts5SyncMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-ama } // Implementation of xBegin() method. -func fts5BeginMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233474:12: */ +func fts5BeginMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235599:12: */ fts5NewTransaction(tls, pVtab) return SQLITE_OK @@ -235226,7 +237461,7 @@ func fts5BeginMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-am // Implementation of xCommit() method. This is a no-op. The contents of // the pending-terms hash-table have already been flushed into the database // by fts5SyncMethod(). -func fts5CommitMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233485:12: */ +func fts5CommitMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235610:12: */ _ = pVtab // Call below is a no-op for NDEBUG builds return SQLITE_OK @@ -235234,7 +237469,7 @@ func fts5CommitMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-a // Implementation of xRollback(). Discard the contents of the pending-terms // hash-table. Any changes made to the database are reverted by SQLite. -func fts5RollbackMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233495:12: */ +func fts5RollbackMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235620:12: */ var rc int32 var pTab uintptr = pVtab @@ -235242,46 +237477,46 @@ func fts5RollbackMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite return rc } -func fts5ApiUserData(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233505:13: */ +func fts5ApiUserData(tls *libc.TLS, pCtx uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235630:13: */ var pCsr uintptr = pCtx return (*Fts5Auxiliary)(unsafe.Pointer((*Fts5Cursor)(unsafe.Pointer(pCsr)).FpAux)).FpUserData } -func fts5ApiColumnCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233510:12: */ +func fts5ApiColumnCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235635:12: */ var pCsr uintptr = pCtx return (*Fts5Config)(unsafe.Pointer((*Fts5Table)(unsafe.Pointer((*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab)).FpConfig)).FnCol } -func fts5ApiColumnTotalSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233515:12: */ +func fts5ApiColumnTotalSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235640:12: */ var pCsr uintptr = pCtx var pTab uintptr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab return sqlite3Fts5StorageSize(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, iCol, pnToken) } -func fts5ApiRowCount(tls *libc.TLS, pCtx uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233525:12: */ +func fts5ApiRowCount(tls *libc.TLS, pCtx uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235650:12: */ var pCsr uintptr = pCtx var pTab uintptr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab return sqlite3Fts5StorageRowCount(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, pnRow) } -func fts5ApiTokenize(tls *libc.TLS, pCtx uintptr, pText uintptr, nText int32, pUserData uintptr, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233531:12: */ +func fts5ApiTokenize(tls *libc.TLS, pCtx uintptr, pText uintptr, nText int32, pUserData uintptr, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235656:12: */ var pCsr uintptr = pCtx var pTab uintptr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab return sqlite3Fts5Tokenize(tls, (*Fts5Table)(unsafe.Pointer(pTab)).FpConfig, FTS5_TOKENIZE_AUX, pText, nText, pUserData, xToken) } -func fts5ApiPhraseCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233544:12: */ +func fts5ApiPhraseCount(tls *libc.TLS, pCtx uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235669:12: */ var pCsr uintptr = pCtx return sqlite3Fts5ExprPhraseCount(tls, (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpExpr) } -func fts5ApiPhraseSize(tls *libc.TLS, pCtx uintptr, iPhrase int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233549:12: */ +func fts5ApiPhraseSize(tls *libc.TLS, pCtx uintptr, iPhrase int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235674:12: */ var pCsr uintptr = pCtx return sqlite3Fts5ExprPhraseSize(tls, (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpExpr, iPhrase) } -func fts5ApiColumnText(tls *libc.TLS, pCtx uintptr, iCol int32, pz uintptr, pn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233554:12: */ +func fts5ApiColumnText(tls *libc.TLS, pCtx uintptr, iCol int32, pz uintptr, pn uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235679:12: */ var rc int32 = SQLITE_OK var pCsr uintptr = pCtx if fts5IsContentless(tls, (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fbase.FpVtab) != 0 || @@ -235298,7 +237533,7 @@ func fts5ApiColumnText(tls *libc.TLS, pCtx uintptr, iCol int32, pz uintptr, pn u return rc } -func fts5CsrPoslist(tls *libc.TLS, pCsr uintptr, iPhrase int32, pa uintptr, pn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233577:12: */ +func fts5CsrPoslist(tls *libc.TLS, pCsr uintptr, iPhrase int32, pa uintptr, pn uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235702:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -235355,7 +237590,7 @@ func fts5CsrPoslist(tls *libc.TLS, pCsr uintptr, iPhrase int32, pa uintptr, pn u // Ensure that the Fts5Cursor.nInstCount and aInst[] variables are populated // correctly for the current view. Return SQLITE_OK if successful, or an // SQLite error code otherwise. -func fts5CacheInstArray(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233629:12: */ +func fts5CacheInstArray(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235754:12: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -235439,7 +237674,7 @@ func fts5CacheInstArray(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite- return *(*int32)(unsafe.Pointer(bp /* rc */)) } -func fts5ApiInstCount(tls *libc.TLS, pCtx uintptr, pnInst uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233703:12: */ +func fts5ApiInstCount(tls *libc.TLS, pCtx uintptr, pnInst uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235828:12: */ var pCsr uintptr = pCtx var rc int32 = SQLITE_OK if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_INST == 0 || @@ -235449,7 +237684,7 @@ func fts5ApiInstCount(tls *libc.TLS, pCtx uintptr, pnInst uintptr) int32 { /* te return rc } -func fts5ApiInst(tls *libc.TLS, pCtx uintptr, iIdx int32, piPhrase uintptr, piCol uintptr, piOff uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233713:12: */ +func fts5ApiInst(tls *libc.TLS, pCtx uintptr, iIdx int32, piPhrase uintptr, piCol uintptr, piOff uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235838:12: */ var pCsr uintptr = pCtx var rc int32 = SQLITE_OK if (*Fts5Cursor)(unsafe.Pointer(pCsr)).Fcsrflags&FTS5CSR_REQUIRE_INST == 0 || @@ -235465,11 +237700,11 @@ func fts5ApiInst(tls *libc.TLS, pCtx uintptr, iIdx int32, piPhrase uintptr, piCo return rc } -func fts5ApiRowid(tls *libc.TLS, pCtx uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233742:22: */ +func fts5ApiRowid(tls *libc.TLS, pCtx uintptr) Sqlite3_int64 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235867:22: */ return fts5CursorRowid(tls, pCtx) } -func fts5ColumnSizeCb(tls *libc.TLS, pContext uintptr, tflags int32, pUnused uintptr, nUnused int32, iUnused1 int32, iUnused2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233746:12: */ +func fts5ColumnSizeCb(tls *libc.TLS, pContext uintptr, tflags int32, pUnused uintptr, nUnused int32, iUnused1 int32, iUnused2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235871:12: */ var pCnt uintptr = pContext _ = pUnused _ = nUnused @@ -235481,7 +237716,7 @@ func fts5ColumnSizeCb(tls *libc.TLS, pContext uintptr, tflags int32, pUnused uin return SQLITE_OK } -func fts5ApiColumnSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233763:12: */ +func fts5ApiColumnSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235888:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -235539,7 +237774,7 @@ func fts5ApiColumnSize(tls *libc.TLS, pCtx uintptr, iCol int32, pnToken uintptr) } // Implementation of the xSetAuxdata() method. -func fts5ApiSetAuxdata(tls *libc.TLS, pCtx uintptr, pPtr uintptr, xDelete uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233816:12: */ +func fts5ApiSetAuxdata(tls *libc.TLS, pCtx uintptr, pPtr uintptr, xDelete uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235941:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -235577,7 +237812,7 @@ func fts5ApiSetAuxdata(tls *libc.TLS, pCtx uintptr, pPtr uintptr, xDelete uintpt return SQLITE_OK } -func fts5ApiGetAuxdata(tls *libc.TLS, pCtx uintptr, bClear int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233851:13: */ +func fts5ApiGetAuxdata(tls *libc.TLS, pCtx uintptr, bClear int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235976:13: */ var pCsr uintptr = pCtx var pData uintptr var pRet uintptr = uintptr(0) @@ -235599,7 +237834,7 @@ func fts5ApiGetAuxdata(tls *libc.TLS, pCtx uintptr, bClear int32) uintptr { /* t return pRet } -func fts5ApiPhraseNext(tls *libc.TLS, pUnused uintptr, pIter uintptr, piCol uintptr, piOff uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233871:13: */ +func fts5ApiPhraseNext(tls *libc.TLS, pUnused uintptr, pIter uintptr, piCol uintptr, piOff uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:235996:13: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -235621,7 +237856,7 @@ func fts5ApiPhraseNext(tls *libc.TLS, pUnused uintptr, pIter uintptr, piCol uint } } -func fts5ApiPhraseFirst(tls *libc.TLS, pCtx uintptr, iPhrase int32, pIter uintptr, piCol uintptr, piOff uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233893:12: */ +func fts5ApiPhraseFirst(tls *libc.TLS, pCtx uintptr, iPhrase int32, pIter uintptr, piCol uintptr, piOff uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236018:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -235644,7 +237879,7 @@ func fts5ApiPhraseFirst(tls *libc.TLS, pCtx uintptr, iPhrase int32, pIter uintpt return rc } -func fts5ApiPhraseNextColumn(tls *libc.TLS, pCtx uintptr, pIter uintptr, piCol uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233912:13: */ +func fts5ApiPhraseNextColumn(tls *libc.TLS, pCtx uintptr, pIter uintptr, piCol uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236037:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -235677,7 +237912,7 @@ func fts5ApiPhraseNextColumn(tls *libc.TLS, pCtx uintptr, pIter uintptr, piCol u } } -func fts5ApiPhraseFirstColumn(tls *libc.TLS, pCtx uintptr, iPhrase int32, pIter uintptr, piCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233942:12: */ +func fts5ApiPhraseFirstColumn(tls *libc.TLS, pCtx uintptr, iPhrase int32, pIter uintptr, piCol uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236067:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -235758,10 +237993,10 @@ var sFts5Api = Fts5ExtensionApi{ FxPhraseNext: 0, FxPhraseFirstColumn: 0, FxPhraseNextColumn: 0, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233992:31 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236117:31 */ // Implementation of API function xQueryPhrase(). -func fts5ApiQueryPhrase(tls *libc.TLS, pCtx uintptr, iPhrase int32, pUserData uintptr, xCallback uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234018:12: */ +func fts5ApiQueryPhrase(tls *libc.TLS, pCtx uintptr, iPhrase int32, pUserData uintptr, xCallback uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236143:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -235797,7 +238032,7 @@ func fts5ApiQueryPhrase(tls *libc.TLS, pCtx uintptr, iPhrase int32, pUserData ui return rc } -func fts5ApiInvoke(tls *libc.TLS, pAux uintptr, pCsr uintptr, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234055:13: */ +func fts5ApiInvoke(tls *libc.TLS, pAux uintptr, pCsr uintptr, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236180:13: */ (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpAux = pAux (*struct { @@ -235806,7 +238041,7 @@ func fts5ApiInvoke(tls *libc.TLS, pAux uintptr, pCsr uintptr, context uintptr, a (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpAux = uintptr(0) } -func fts5CursorFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234068:19: */ +func fts5CursorFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId I64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236193:19: */ var pCsr uintptr for pCsr = (*Fts5Global)(unsafe.Pointer(pGlobal)).FpCsr; pCsr != 0; pCsr = (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpNext { if (*Fts5Cursor)(unsafe.Pointer(pCsr)).FiCsrId == iCsrId { @@ -235816,7 +238051,7 @@ func fts5CursorFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId I64) uintptr { / return pCsr } -func fts5ApiCallback(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234076:13: */ +func fts5ApiCallback(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236201:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -235829,7 +238064,7 @@ func fts5ApiCallback(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { pCsr = fts5CursorFromCsrid(tls, (*Fts5Auxiliary)(unsafe.Pointer(pAux)).FpGlobal, iCsrId) if pCsr == uintptr(0) || (*Fts5Cursor)(unsafe.Pointer(pCsr)).FePlan == 0 { - var zErr uintptr = Xsqlite3_mprintf(tls, ts+36977, libc.VaList(bp, iCsrId)) + var zErr uintptr = Xsqlite3_mprintf(tls, ts+36942, libc.VaList(bp, iCsrId)) Xsqlite3_result_error(tls, context, zErr, -1) Xsqlite3_free(tls, zErr) } else { @@ -235839,7 +238074,7 @@ func fts5ApiCallback(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { // Given cursor id iId, return a pointer to the corresponding Fts5Table // object. Or NULL If the cursor id does not exist. -func sqlite3Fts5TableFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId I64) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234105:18: */ +func sqlite3Fts5TableFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId I64) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236230:18: */ var pCsr uintptr pCsr = fts5CursorFromCsrid(tls, pGlobal, iCsrId) if pCsr != 0 { @@ -235861,7 +238096,7 @@ func sqlite3Fts5TableFromCsrid(tls *libc.TLS, pGlobal uintptr, iCsrId I64) uintp // for phrase 0. The second (same disclaimer) contains the size of position // list 1. And so on. There is no size field for the final position list, // as it can be derived from the total size of the blob. -func fts5PoslistBlob(tls *libc.TLS, pCtx uintptr, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234132:12: */ +func fts5PoslistBlob(tls *libc.TLS, pCtx uintptr, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236257:12: */ bp := tls.Alloc(68) defer tls.Free(68) @@ -235925,7 +238160,7 @@ func fts5PoslistBlob(tls *libc.TLS, pCtx uintptr, pCsr uintptr) int32 { /* testd // This is the xColumn method, called by SQLite to request a value from // the row that the supplied cursor currently points to. -func fts5ColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234189:12: */ +func fts5ColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236314:12: */ var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab var pConfig uintptr = (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.FpConfig var pCsr uintptr = pCursor @@ -235965,7 +238200,7 @@ func fts5ColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32) // This routine implements the xFindFunction method for the FTS3 // virtual table. -func fts5FindFunctionMethod(tls *libc.TLS, pVtab uintptr, nUnused int32, zName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234242:12: */ +func fts5FindFunctionMethod(tls *libc.TLS, pVtab uintptr, nUnused int32, zName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236367:12: */ var pTab uintptr = pVtab var pAux uintptr @@ -235984,12 +238219,12 @@ func fts5FindFunctionMethod(tls *libc.TLS, pVtab uintptr, nUnused int32, zName u } // Implementation of FTS5 xRename method. Rename an fts5 table. -func fts5RenameMethod(tls *libc.TLS, pVtab uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234267:12: */ +func fts5RenameMethod(tls *libc.TLS, pVtab uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236392:12: */ var pTab uintptr = pVtab return sqlite3Fts5StorageRename(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, zName) } -func sqlite3Fts5FlushToDisk(tls *libc.TLS, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234275:12: */ +func sqlite3Fts5FlushToDisk(tls *libc.TLS, pTab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236400:12: */ fts5TripCursors(tls, pTab) return sqlite3Fts5StorageSync(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage) } @@ -235997,7 +238232,7 @@ func sqlite3Fts5FlushToDisk(tls *libc.TLS, pTab uintptr) int32 { /* testdata/sql // The xSavepoint() method. // // Flush the contents of the pending-terms table to disk. -func fts5SavepointMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234285:12: */ +func fts5SavepointMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236410:12: */ _ = iSavepoint // Call below is a no-op for NDEBUG builds return sqlite3Fts5FlushToDisk(tls, pVtab) @@ -236006,7 +238241,7 @@ func fts5SavepointMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { // The xRelease() method. // // This is a no-op. -func fts5ReleaseMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234296:12: */ +func fts5ReleaseMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236421:12: */ _ = iSavepoint // Call below is a no-op for NDEBUG builds return sqlite3Fts5FlushToDisk(tls, pVtab) @@ -236015,7 +238250,7 @@ func fts5ReleaseMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { / // The xRollbackTo() method. // // Discard the contents of the pending terms table. -func fts5RollbackToMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234307:12: */ +func fts5RollbackToMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236432:12: */ var pTab uintptr = pVtab _ = iSavepoint // Call below is a no-op for NDEBUG builds @@ -236024,7 +238259,7 @@ func fts5RollbackToMethod(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 } // Register a new auxiliary function with global context pGlobal. -func fts5CreateAux(tls *libc.TLS, pApi uintptr, zName uintptr, pUserData uintptr, xFunc Fts5_extension_function, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234318:12: */ +func fts5CreateAux(tls *libc.TLS, pApi uintptr, zName uintptr, pUserData uintptr, xFunc Fts5_extension_function, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236443:12: */ var pGlobal uintptr = pApi var rc int32 = Xsqlite3_overload_function(tls, (*Fts5Global)(unsafe.Pointer(pGlobal)).Fdb, zName, -1) if rc == SQLITE_OK { @@ -236055,7 +238290,7 @@ func fts5CreateAux(tls *libc.TLS, pApi uintptr, zName uintptr, pUserData uintptr // Register a new tokenizer. This is the implementation of the // fts5_api.xCreateTokenizer() method. -func fts5CreateTokenizer(tls *libc.TLS, pApi uintptr, zName uintptr, pUserData uintptr, pTokenizer uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234357:12: */ +func fts5CreateTokenizer(tls *libc.TLS, pApi uintptr, zName uintptr, pUserData uintptr, pTokenizer uintptr, xDestroy uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236482:12: */ var pGlobal uintptr = pApi var pNew uintptr var nName Sqlite3_int64 // Size of zName and its \0 terminator @@ -236084,7 +238319,7 @@ func fts5CreateTokenizer(tls *libc.TLS, pApi uintptr, zName uintptr, pUserData u return rc } -func fts5LocateTokenizer(tls *libc.TLS, pGlobal uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234392:28: */ +func fts5LocateTokenizer(tls *libc.TLS, pGlobal uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236517:28: */ var pMod uintptr = uintptr(0) if zName == uintptr(0) { @@ -236102,7 +238337,7 @@ func fts5LocateTokenizer(tls *libc.TLS, pGlobal uintptr, zName uintptr) uintptr // Find a tokenizer. This is the implementation of the // fts5_api.xFindTokenizer() method. -func fts5FindTokenizer(tls *libc.TLS, pApi uintptr, zName uintptr, ppUserData uintptr, pTokenizer uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234413:12: */ +func fts5FindTokenizer(tls *libc.TLS, pApi uintptr, zName uintptr, ppUserData uintptr, pTokenizer uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236538:12: */ var rc int32 = SQLITE_OK var pMod uintptr @@ -236118,7 +238353,7 @@ func fts5FindTokenizer(tls *libc.TLS, pApi uintptr, zName uintptr, ppUserData ui return rc } -func sqlite3Fts5GetTokenizer(tls *libc.TLS, pGlobal uintptr, azArg uintptr, nArg int32, pConfig uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234434:12: */ +func sqlite3Fts5GetTokenizer(tls *libc.TLS, pGlobal uintptr, azArg uintptr, nArg int32, pConfig uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236559:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -236134,7 +238369,7 @@ func sqlite3Fts5GetTokenizer(tls *libc.TLS, pGlobal uintptr, azArg uintptr, nArg if pMod == uintptr(0) { rc = SQLITE_ERROR - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+36998, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azArg)))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+36963, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azArg)))) } else { rc = (*struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32 @@ -236153,7 +238388,7 @@ func sqlite3Fts5GetTokenizer(tls *libc.TLS, pGlobal uintptr, azArg uintptr, nArg (*Fts5Config)(unsafe.Pointer(pConfig)).FpTokApi = pMod + 16 if rc != SQLITE_OK { if pzErr != 0 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37020, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+36985, 0) } } else { (*Fts5Config)(unsafe.Pointer(pConfig)).FePattern = sqlite3Fts5TokenizerPattern(tls, @@ -236169,7 +238404,7 @@ func sqlite3Fts5GetTokenizer(tls *libc.TLS, pGlobal uintptr, azArg uintptr, nArg return rc } -func fts5ModuleDestroy(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234471:13: */ +func fts5ModuleDestroy(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236596:13: */ var pTok uintptr var pNextTok uintptr var pAux uintptr @@ -236195,28 +238430,28 @@ func fts5ModuleDestroy(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgam Xsqlite3_free(tls, pGlobal) } -func fts5Fts5Func(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234491:13: */ +func fts5Fts5Func(tls *libc.TLS, pCtx uintptr, nArg int32, apArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236616:13: */ var pGlobal uintptr = Xsqlite3_user_data(tls, pCtx) var ppApi uintptr _ = nArg - ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), ts+37051) + ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), ts+37016) if ppApi != 0 { *(*uintptr)(unsafe.Pointer(ppApi)) = pGlobal } } // Implementation of fts5_source_id() function. -func fts5SourceIdFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apUnused uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234507:13: */ +func fts5SourceIdFunc(tls *libc.TLS, pCtx uintptr, nArg int32, apUnused uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236632:13: */ _ = nArg _ = apUnused - Xsqlite3_result_text(tls, pCtx, ts+37064, -1, libc.UintptrFromInt32(-1)) + Xsqlite3_result_text(tls, pCtx, ts+37029, -1, libc.UintptrFromInt32(-1)) } // Return true if zName is the extension on one of the shadow tables used // by this module. -func fts5ShadowName(tls *libc.TLS, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234521:12: */ +func fts5ShadowName(tls *libc.TLS, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236646:12: */ var i uint32 for i = uint32(0); uint64(i) < uint64(unsafe.Sizeof(azName2))/uint64(unsafe.Sizeof(uintptr(0))); i++ { if Xsqlite3_stricmp(tls, zName, azName2[i]) == 0 { @@ -236227,10 +238462,10 @@ func fts5ShadowName(tls *libc.TLS, zName uintptr) int32 { /* testdata/sqlite-ama } var azName2 = [5]uintptr{ - ts + 37155, ts + 35254, ts + 26254, ts + 35605, ts + 12725, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234522:21 */ + ts + 37120, ts + 35219, ts + 26219, ts + 35570, ts + 12764, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236647:21 */ -func fts5Init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234532:12: */ +func fts5Init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236657:12: */ var rc int32 var pGlobal uintptr = uintptr(0) @@ -236251,7 +238486,7 @@ func fts5Init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation (*Fts5Global)(unsafe.Pointer(pGlobal)).Fapi.FxFindTokenizer = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32 }{fts5FindTokenizer})) - rc = Xsqlite3_create_module_v2(tls, db, ts+37162, uintptr(unsafe.Pointer(&fts5Mod)), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5ModuleDestroy}))) + rc = Xsqlite3_create_module_v2(tls, db, ts+37127, uintptr(unsafe.Pointer(&fts5Mod)), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5ModuleDestroy}))) if rc == SQLITE_OK { rc = sqlite3Fts5IndexInit(tls, db) } @@ -236269,13 +238504,13 @@ func fts5Init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation } if rc == SQLITE_OK { rc = Xsqlite3_create_function(tls, - db, ts+37162, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { + db, ts+37127, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{fts5Fts5Func})), uintptr(0), uintptr(0)) } if rc == SQLITE_OK { rc = Xsqlite3_create_function(tls, - db, ts+37167, 0, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { + db, ts+37132, 0, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{fts5SourceIdFunc})), uintptr(0), uintptr(0)) } @@ -236313,7 +238548,7 @@ var fts5Mod = Sqlite3_module{ /* xRelease */ FxRelease: 0, /* xRollbackTo */ FxRollbackTo: 0, /* xShadowName */ FxShadowName: 0, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234533:31 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236658:31 */ // The following functions are used to register the module with SQLite. If // this module is being built as part of the SQLite core (SQLITE_CORE is @@ -236322,7 +238557,7 @@ var fts5Mod = Sqlite3_module{ // Or, if this module is being built as a loadable extension, // sqlite3Fts5Init() is omitted and the two standard entry points // sqlite3_fts_init() and sqlite3_fts5_init() defined instead. -func Xsqlite3Fts5Init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234641:20: */ +func Xsqlite3Fts5Init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236766:20: */ return fts5Init(tls, db) } @@ -236330,7 +238565,7 @@ func Xsqlite3Fts5Init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amal // Fts5Storage.pInsertDocsize - if they have not already been prepared. // Return SQLITE_OK if successful, or an SQLite error code if an error // occurs. -func fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234699:12: */ +func fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236824:12: */ bp := tls.Alloc(216) defer tls.Free(216) @@ -236341,20 +238576,20 @@ func fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr, p if *(*uintptr)(unsafe.Pointer(p + 40 + uintptr(eStmt)*8)) == uintptr(0) { *(*[11]uintptr)(unsafe.Pointer(bp + 128 /* azStmt */)) = [11]uintptr{ - ts + 37182, - ts + 37250, - ts + 37319, + ts + 37147, + ts + 37215, + ts + 37284, - ts + 37352, - ts + 37391, - ts + 37431, - ts + 37470, - ts + 37511, + ts + 37317, + ts + 37356, + ts + 37396, + ts + 37435, + ts + 37476, - ts + 37550, + ts + 37515, - ts + 37592, - ts + 37632, + ts + 37557, + ts + 37597, } var pC uintptr = (*Fts5Storage)(unsafe.Pointer(p)).FpConfig var zSql uintptr = uintptr(0) @@ -236421,7 +238656,7 @@ func fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr, p (*Fts5Config)(unsafe.Pointer((*Fts5Storage)(unsafe.Pointer(p)).FpConfig)).FbLock-- Xsqlite3_free(tls, zSql) if rc != SQLITE_OK && pzErrMsg != 0 { - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+4444, libc.VaList(bp+120, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pC)).Fdb))) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+4479, libc.VaList(bp+120, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pC)).Fdb))) } } } @@ -236431,7 +238666,7 @@ func fts5StorageGetStmt(tls *libc.TLS, p uintptr, eStmt int32, ppStmt uintptr, p return rc } -func fts5ExecPrintf(tls *libc.TLS, db uintptr, pzErr uintptr, zFormat uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234802:12: */ +func fts5ExecPrintf(tls *libc.TLS, db uintptr, pzErr uintptr, zFormat uintptr, va uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236927:12: */ var rc int32 var ap Va_list _ = ap // ... printf arguments @@ -236453,79 +238688,79 @@ func fts5ExecPrintf(tls *libc.TLS, db uintptr, pzErr uintptr, zFormat uintptr, v // Drop all shadow tables. Return SQLITE_OK if successful or an SQLite error // code otherwise. -func sqlite3Fts5DropAll(tls *libc.TLS, pConfig uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234830:12: */ +func sqlite3Fts5DropAll(tls *libc.TLS, pConfig uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236955:12: */ bp := tls.Alloc(80) defer tls.Free(80) var rc int32 = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), - ts+37655, + ts+37620, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) if rc == SQLITE_OK && (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 { rc = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), - ts+37759, + ts+37724, libc.VaList(bp+48, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) } if rc == SQLITE_OK && (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL { rc = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), - ts+37797, + ts+37762, libc.VaList(bp+64, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) } return rc } -func fts5StorageRenameOne(tls *libc.TLS, pConfig uintptr, pRc uintptr, zTail uintptr, zName uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234854:13: */ +func fts5StorageRenameOne(tls *libc.TLS, pConfig uintptr, pRc uintptr, zTail uintptr, zName uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236979:13: */ bp := tls.Alloc(40) defer tls.Free(40) if *(*int32)(unsafe.Pointer(pRc)) == SQLITE_OK { *(*int32)(unsafe.Pointer(pRc)) = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), - ts+37835, + ts+37800, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zTail, zName, zTail)) } } -func sqlite3Fts5StorageRename(tls *libc.TLS, pStorage uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234868:12: */ +func sqlite3Fts5StorageRename(tls *libc.TLS, pStorage uintptr, zName uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:236993:12: */ bp := tls.Alloc(4) defer tls.Free(4) var pConfig uintptr = (*Fts5Storage)(unsafe.Pointer(pStorage)).FpConfig *(*int32)(unsafe.Pointer(bp /* rc */)) = sqlite3Fts5StorageSync(tls, pStorage) - fts5StorageRenameOne(tls, pConfig, bp, ts+26254, zName) - fts5StorageRenameOne(tls, pConfig, bp, ts+12725, zName) - fts5StorageRenameOne(tls, pConfig, bp, ts+37155, zName) + fts5StorageRenameOne(tls, pConfig, bp, ts+26219, zName) + fts5StorageRenameOne(tls, pConfig, bp, ts+12764, zName) + fts5StorageRenameOne(tls, pConfig, bp, ts+37120, zName) if (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 { - fts5StorageRenameOne(tls, pConfig, bp, ts+35605, zName) + fts5StorageRenameOne(tls, pConfig, bp, ts+35570, zName) } if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL { - fts5StorageRenameOne(tls, pConfig, bp, ts+35254, zName) + fts5StorageRenameOne(tls, pConfig, bp, ts+35219, zName) } return *(*int32)(unsafe.Pointer(bp /* rc */)) } // Create the shadow table named zPost, with definition zDefn. Return // SQLITE_OK if successful, or an SQLite error code otherwise. -func sqlite3Fts5CreateTable(tls *libc.TLS, pConfig uintptr, zPost uintptr, zDefn uintptr, bWithout int32, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234888:12: */ +func sqlite3Fts5CreateTable(tls *libc.TLS, pConfig uintptr, zPost uintptr, zDefn uintptr, bWithout int32, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237013:12: */ bp := tls.Alloc(72) defer tls.Free(72) var rc int32 *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */)) = uintptr(0) - rc = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, bp+64, ts+37877, + rc = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, bp+64, ts+37842, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, zDefn, func() uintptr { if bWithout != 0 { - return ts + 30907 /* " WITHOUT ROWID" */ + return ts + 30872 /* " WITHOUT ROWID" */ } return ts + 1524 /* "" */ }())) if *(*uintptr)(unsafe.Pointer(bp + 64)) != 0 { *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, - ts+37907, + ts+37872, libc.VaList(bp+40, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */)))) Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */))) } @@ -236538,7 +238773,7 @@ func sqlite3Fts5CreateTable(tls *libc.TLS, pConfig uintptr, zPost uintptr, zDefn // // If successful, set *pp to point to the new object and return SQLITE_OK. // Otherwise, set *pp to NULL and return an SQLite error code. -func sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCreate int32, pp uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234923:12: */ +func sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCreate int32, pp uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237048:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -236567,27 +238802,27 @@ func sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCre } else { var i int32 var iOff int32 - Xsqlite3_snprintf(tls, nDefn, zDefn, ts+37951, 0) + Xsqlite3_snprintf(tls, nDefn, zDefn, ts+37916, 0) iOff = int32(libc.Xstrlen(tls, zDefn)) for i = 0; i < (*Fts5Config)(unsafe.Pointer(pConfig)).FnCol; i++ { - Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), ts+37974, libc.VaList(bp, i)) + Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), ts+37939, libc.VaList(bp, i)) iOff = iOff + int32(libc.Xstrlen(tls, zDefn+uintptr(iOff))) } - rc = sqlite3Fts5CreateTable(tls, pConfig, ts+35254, zDefn, 0, pzErr) + rc = sqlite3Fts5CreateTable(tls, pConfig, ts+35219, zDefn, 0, pzErr) } Xsqlite3_free(tls, zDefn) } if rc == SQLITE_OK && (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 { rc = sqlite3Fts5CreateTable(tls, - pConfig, ts+35605, ts+37980, 0, pzErr) + pConfig, ts+35570, ts+37945, 0, pzErr) } if rc == SQLITE_OK { rc = sqlite3Fts5CreateTable(tls, - pConfig, ts+37155, ts+38012, 1, pzErr) + pConfig, ts+37120, ts+37977, 1, pzErr) } if rc == SQLITE_OK { - rc = sqlite3Fts5StorageConfigValue(tls, p, ts+35751, uintptr(0), FTS5_CURRENT_VERSION) + rc = sqlite3Fts5StorageConfigValue(tls, p, ts+35716, uintptr(0), FTS5_CURRENT_VERSION) } } @@ -236599,7 +238834,7 @@ func sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCre } // Close a handle opened by an earlier call to sqlite3Fts5StorageOpen(). -func sqlite3Fts5StorageClose(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234989:12: */ +func sqlite3Fts5StorageClose(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237114:12: */ var rc int32 = SQLITE_OK if p != 0 { var i int32 @@ -236618,12 +238853,12 @@ type Fts5InsertCtx1 = struct { FpStorage uintptr FiCol int32 FszCol int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235004:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237129:9 */ -type Fts5InsertCtx = Fts5InsertCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235004:30 */ +type Fts5InsertCtx = Fts5InsertCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237129:30 */ // Tokenization callback used when inserting tokens into the FTS index. -func fts5StorageInsertCallback(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235014:12: */ +func fts5StorageInsertCallback(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237139:12: */ var pCtx uintptr = pContext var pIdx uintptr = (*Fts5Storage)(unsafe.Pointer((*Fts5InsertCtx)(unsafe.Pointer(pCtx)).FpStorage)).FpIndex _ = iUnused1 @@ -236640,7 +238875,7 @@ func fts5StorageInsertCallback(tls *libc.TLS, pContext uintptr, tflags int32, pT // If a row with rowid iDel is present in the %_content table, add the // delete-markers to the FTS index necessary to delete it. Do not actually // remove the %_content row at this time though. -func fts5StorageDeleteFromIndex(tls *libc.TLS, p uintptr, iDel I64, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235037:12: */ +func fts5StorageDeleteFromIndex(tls *libc.TLS, p uintptr, iDel I64, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237162:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -236705,11 +238940,11 @@ func fts5StorageDeleteFromIndex(tls *libc.TLS, p uintptr, iDel I64, apVal uintpt // Insert a record into the %_docsize table. Specifically, do: // -// INSERT OR REPLACE INTO %_docsize(id, sz) VALUES(iRowid, pBuf); +// INSERT OR REPLACE INTO %_docsize(id, sz) VALUES(iRowid, pBuf); // // If there is no %_docsize table (as happens if the columnsize=0 option // is specified when the FTS5 table is created), this function is a no-op. -func fts5StorageInsertDocsize(tls *libc.TLS, p uintptr, iRowid I64, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235106:12: */ +func fts5StorageInsertDocsize(tls *libc.TLS, p uintptr, iRowid I64, pBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237231:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -236736,7 +238971,7 @@ func fts5StorageInsertDocsize(tls *libc.TLS, p uintptr, iRowid I64, pBuf uintptr // // Return SQLITE_OK if successful, or an SQLite error code if an error // occurs. -func fts5StorageLoadTotals(tls *libc.TLS, p uintptr, bCache int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235136:12: */ +func fts5StorageLoadTotals(tls *libc.TLS, p uintptr, bCache int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237261:12: */ var rc int32 = SQLITE_OK if (*Fts5Storage)(unsafe.Pointer(p)).FbTotalsValid == 0 { rc = sqlite3Fts5IndexGetAverages(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex, p+24, (*Fts5Storage)(unsafe.Pointer(p)).FaTotalSize) @@ -236750,7 +238985,7 @@ func fts5StorageLoadTotals(tls *libc.TLS, p uintptr, bCache int32) int32 { /* te // // Return SQLITE_OK if successful, or an SQLite error code if an error // occurs. -func fts5StorageSaveTotals(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235152:12: */ +func fts5StorageSaveTotals(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237277:12: */ bp := tls.Alloc(20) defer tls.Free(20) @@ -236774,7 +239009,7 @@ func fts5StorageSaveTotals(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite- } // Remove a row from the FTS table. -func sqlite3Fts5StorageDelete(tls *libc.TLS, p uintptr, iDel I64, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235174:12: */ +func sqlite3Fts5StorageDelete(tls *libc.TLS, p uintptr, iDel I64, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237299:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -236815,7 +239050,7 @@ func sqlite3Fts5StorageDelete(tls *libc.TLS, p uintptr, iDel I64, apVal uintptr) } // Delete all entries in the FTS5 index. -func sqlite3Fts5StorageDeleteAll(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235215:12: */ +func sqlite3Fts5StorageDeleteAll(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237340:12: */ bp := tls.Alloc(48) defer tls.Free(48) @@ -236827,12 +239062,12 @@ func sqlite3Fts5StorageDeleteAll(tls *libc.TLS, p uintptr) int32 { /* testdata/s // Delete the contents of the %_data and %_docsize tables. rc = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), - ts+38029, + ts+37994, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) if rc == SQLITE_OK && (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 { rc = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, uintptr(0), - ts+38079, + ts+38044, libc.VaList(bp+32, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) } @@ -236842,12 +239077,12 @@ func sqlite3Fts5StorageDeleteAll(tls *libc.TLS, p uintptr) int32 { /* testdata/s rc = sqlite3Fts5IndexReinit(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex) } if rc == SQLITE_OK { - rc = sqlite3Fts5StorageConfigValue(tls, p, ts+35751, uintptr(0), FTS5_CURRENT_VERSION) + rc = sqlite3Fts5StorageConfigValue(tls, p, ts+35716, uintptr(0), FTS5_CURRENT_VERSION) } return rc } -func sqlite3Fts5StorageRebuild(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235246:12: */ +func sqlite3Fts5StorageRebuild(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237371:12: */ bp := tls.Alloc(44) defer tls.Free(44) @@ -236911,15 +239146,15 @@ func sqlite3Fts5StorageRebuild(tls *libc.TLS, p uintptr) int32 { /* testdata/sql return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } -func sqlite3Fts5StorageOptimize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235301:12: */ +func sqlite3Fts5StorageOptimize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237426:12: */ return sqlite3Fts5IndexOptimize(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex) } -func sqlite3Fts5StorageMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235305:12: */ +func sqlite3Fts5StorageMerge(tls *libc.TLS, p uintptr, nMerge int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237430:12: */ return sqlite3Fts5IndexMerge(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex, nMerge) } -func sqlite3Fts5StorageReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235309:12: */ +func sqlite3Fts5StorageReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237434:12: */ return sqlite3Fts5IndexReset(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex) } @@ -236930,7 +239165,7 @@ func sqlite3Fts5StorageReset(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlit // // If the %_docsize table does not exist, SQLITE_MISMATCH is returned. In // this case the user is required to provide a rowid explicitly. -func fts5StorageNewRowid(tls *libc.TLS, p uintptr, piRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235322:12: */ +func fts5StorageNewRowid(tls *libc.TLS, p uintptr, piRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237447:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -236952,7 +239187,7 @@ func fts5StorageNewRowid(tls *libc.TLS, p uintptr, piRowid uintptr) int32 { /* t } // Insert a new row into the FTS content table. -func sqlite3Fts5StorageContentInsert(tls *libc.TLS, p uintptr, apVal uintptr, piRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235343:12: */ +func sqlite3Fts5StorageContentInsert(tls *libc.TLS, p uintptr, apVal uintptr, piRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237468:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -236984,7 +239219,7 @@ func sqlite3Fts5StorageContentInsert(tls *libc.TLS, p uintptr, apVal uintptr, pi } // Insert new entries into the FTS index and %_docsize table. -func sqlite3Fts5StorageIndexInsert(tls *libc.TLS, p uintptr, apVal uintptr, iRowid I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235378:12: */ +func sqlite3Fts5StorageIndexInsert(tls *libc.TLS, p uintptr, apVal uintptr, iRowid I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237503:12: */ bp := tls.Alloc(36) defer tls.Free(36) @@ -237029,7 +239264,7 @@ func sqlite3Fts5StorageIndexInsert(tls *libc.TLS, p uintptr, apVal uintptr, iRow return *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) } -func fts5StorageCount(tls *libc.TLS, p uintptr, zSuffix uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235421:12: */ +func fts5StorageCount(tls *libc.TLS, p uintptr, zSuffix uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237546:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -237037,7 +239272,7 @@ func fts5StorageCount(tls *libc.TLS, p uintptr, zSuffix uintptr, pnRow uintptr) var zSql uintptr var rc int32 - zSql = Xsqlite3_mprintf(tls, ts+38108, + zSql = Xsqlite3_mprintf(tls, ts+38073, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zSuffix)) if zSql == uintptr(0) { rc = SQLITE_NOMEM @@ -237064,13 +239299,13 @@ type Fts5IntegrityCtx1 = struct { Fcksum U64 FpTermset uintptr FpConfig uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235449:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237574:9 */ // Context object used by sqlite3Fts5StorageIntegrity(). -type Fts5IntegrityCtx = Fts5IntegrityCtx1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235449:33 */ +type Fts5IntegrityCtx = Fts5IntegrityCtx1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237574:33 */ // Tokenization callback used by integrity check. -func fts5StorageIntegrityCallback(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235463:12: */ +func fts5StorageIntegrityCallback(tls *libc.TLS, pContext uintptr, tflags int32, pToken uintptr, nToken int32, iUnused1 int32, iUnused2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237588:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -237136,7 +239371,7 @@ func fts5StorageIntegrityCallback(tls *libc.TLS, pContext uintptr, tflags int32, // table. Return SQLITE_OK if they do, or SQLITE_CORRUPT if not. Return // some other SQLite error code if an error occurs while attempting to // determine this. -func sqlite3Fts5StorageIntegrity(tls *libc.TLS, p uintptr, iArg int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235533:12: */ +func sqlite3Fts5StorageIntegrity(tls *libc.TLS, p uintptr, iArg int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237658:12: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -237234,14 +239469,14 @@ func sqlite3Fts5StorageIntegrity(tls *libc.TLS, p uintptr, iArg int32) int32 { / // number of rows. if rc == SQLITE_OK && (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL { *(*I64)(unsafe.Pointer(bp + 48 /* nRow */)) = int64(0) - rc = fts5StorageCount(tls, p, ts+35254, bp+48) + rc = fts5StorageCount(tls, p, ts+35219, bp+48) if rc == SQLITE_OK && *(*I64)(unsafe.Pointer(bp + 48)) != (*Fts5Storage)(unsafe.Pointer(p)).FnTotalRow { rc = SQLITE_CORRUPT | int32(1)<<8 } } if rc == SQLITE_OK && (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 { *(*I64)(unsafe.Pointer(bp + 56 /* nRow */)) = int64(0) - rc = fts5StorageCount(tls, p, ts+35605, bp+56) + rc = fts5StorageCount(tls, p, ts+35570, bp+56) if rc == SQLITE_OK && *(*I64)(unsafe.Pointer(bp + 56)) != (*Fts5Storage)(unsafe.Pointer(p)).FnTotalRow { rc = SQLITE_CORRUPT | int32(1)<<8 } @@ -237261,7 +239496,7 @@ func sqlite3Fts5StorageIntegrity(tls *libc.TLS, p uintptr, iArg int32) int32 { / // Obtain an SQLite statement handle that may be used to read data from the // %_content table. -func sqlite3Fts5StorageStmt(tls *libc.TLS, p uintptr, eStmt int32, pp uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235641:12: */ +func sqlite3Fts5StorageStmt(tls *libc.TLS, p uintptr, eStmt int32, pp uintptr, pzErrMsg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237766:12: */ var rc int32 rc = fts5StorageGetStmt(tls, p, eStmt, pp, pzErrMsg) @@ -237275,7 +239510,7 @@ func sqlite3Fts5StorageStmt(tls *libc.TLS, p uintptr, eStmt int32, pp uintptr, p // Release an SQLite statement handle obtained via an earlier call to // sqlite3Fts5StorageStmt(). The eStmt parameter passed to this function // must match that passed to the sqlite3Fts5StorageStmt() call. -func sqlite3Fts5StorageStmtRelease(tls *libc.TLS, p uintptr, eStmt int32, pStmt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235665:13: */ +func sqlite3Fts5StorageStmtRelease(tls *libc.TLS, p uintptr, eStmt int32, pStmt uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237790:13: */ if *(*uintptr)(unsafe.Pointer(p + 40 + uintptr(eStmt)*8)) == uintptr(0) { Xsqlite3_reset(tls, pStmt) @@ -237285,7 +239520,7 @@ func sqlite3Fts5StorageStmtRelease(tls *libc.TLS, p uintptr, eStmt int32, pStmt } } -func fts5StorageDecodeSizeArray(tls *libc.TLS, aCol uintptr, nCol int32, aBlob uintptr, nBlob int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235682:12: */ +func fts5StorageDecodeSizeArray(tls *libc.TLS, aCol uintptr, nCol int32, aBlob uintptr, nBlob int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237807:12: */ var i int32 var iOff int32 = 0 for i = 0; i < nCol; i++ { @@ -237303,7 +239538,7 @@ func fts5StorageDecodeSizeArray(tls *libc.TLS, aCol uintptr, nCol int32, aBlob u // // An SQLite error code is returned if an error occurs, or SQLITE_OK // otherwise. -func sqlite3Fts5StorageDocsize(tls *libc.TLS, p uintptr, iRowid I64, aCol uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235703:12: */ +func sqlite3Fts5StorageDocsize(tls *libc.TLS, p uintptr, iRowid I64, aCol uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237828:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -237334,7 +239569,7 @@ func sqlite3Fts5StorageDocsize(tls *libc.TLS, p uintptr, iRowid I64, aCol uintpt return rc } -func sqlite3Fts5StorageSize(tls *libc.TLS, p uintptr, iCol int32, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235732:12: */ +func sqlite3Fts5StorageSize(tls *libc.TLS, p uintptr, iCol int32, pnToken uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237857:12: */ var rc int32 = fts5StorageLoadTotals(tls, p, 0) if rc == SQLITE_OK { *(*I64)(unsafe.Pointer(pnToken)) = int64(0) @@ -237352,7 +239587,7 @@ func sqlite3Fts5StorageSize(tls *libc.TLS, p uintptr, iCol int32, pnToken uintpt return rc } -func sqlite3Fts5StorageRowCount(tls *libc.TLS, p uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235750:12: */ +func sqlite3Fts5StorageRowCount(tls *libc.TLS, p uintptr, pnRow uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237875:12: */ var rc int32 = fts5StorageLoadTotals(tls, p, 0) if rc == SQLITE_OK { // nTotalRow being zero does not necessarily indicate a corrupt @@ -237369,7 +239604,7 @@ func sqlite3Fts5StorageRowCount(tls *libc.TLS, p uintptr, pnRow uintptr) int32 { } // Flush any data currently held in-memory to disk. -func sqlite3Fts5StorageSync(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235767:12: */ +func sqlite3Fts5StorageSync(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237892:12: */ var rc int32 = SQLITE_OK var iLastRowid I64 = Xsqlite3_last_insert_rowid(tls, (*Fts5Config)(unsafe.Pointer((*Fts5Storage)(unsafe.Pointer(p)).FpConfig)).Fdb) if (*Fts5Storage)(unsafe.Pointer(p)).FbTotalsValid != 0 { @@ -237383,12 +239618,12 @@ func sqlite3Fts5StorageSync(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite return rc } -func sqlite3Fts5StorageRollback(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235781:12: */ +func sqlite3Fts5StorageRollback(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237906:12: */ (*Fts5Storage)(unsafe.Pointer(p)).FbTotalsValid = 0 return sqlite3Fts5IndexRollback(tls, (*Fts5Storage)(unsafe.Pointer(p)).FpIndex) } -func sqlite3Fts5StorageConfigValue(tls *libc.TLS, p uintptr, z uintptr, pVal uintptr, iVal int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235786:12: */ +func sqlite3Fts5StorageConfigValue(tls *libc.TLS, p uintptr, z uintptr, pVal uintptr, iVal int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237911:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -237443,13 +239678,13 @@ var aAsciiTokenChar = [128]uint8{ uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), // 0x50..0x5F uint8(0), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), // 0x60..0x6F uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(1), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), // 0x70..0x7F -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235839:22 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237964:22 */ -type AsciiTokenizer1 = struct{ FaTokenChar [128]uint8 } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235850:9 */ +type AsciiTokenizer1 = struct{ FaTokenChar [128]uint8 } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237975:9 */ -type AsciiTokenizer = AsciiTokenizer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235850:31 */ +type AsciiTokenizer = AsciiTokenizer1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237975:31 */ -func fts5AsciiAddExceptions(tls *libc.TLS, p uintptr, zArg uintptr, bTokenChars int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235855:13: */ +func fts5AsciiAddExceptions(tls *libc.TLS, p uintptr, zArg uintptr, bTokenChars int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237980:13: */ var i int32 for i = 0; *(*int8)(unsafe.Pointer(zArg + uintptr(i))) != 0; i++ { if int32(*(*int8)(unsafe.Pointer(zArg + uintptr(i))))&0x80 == 0 { @@ -237459,12 +239694,12 @@ func fts5AsciiAddExceptions(tls *libc.TLS, p uintptr, zArg uintptr, bTokenChars } // Delete a "ascii" tokenizer. -func fts5AsciiDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235871:13: */ +func fts5AsciiDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:237996:13: */ Xsqlite3_free(tls, p) } // Create an "ascii" tokenizer. -func fts5AsciiCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235878:12: */ +func fts5AsciiCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238003:12: */ var rc int32 = SQLITE_OK var p uintptr = uintptr(0) _ = pUnused @@ -237480,9 +239715,9 @@ func fts5AsciiCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, libc.Xmemcpy(tls, p, uintptr(unsafe.Pointer(&aAsciiTokenChar)), uint64(unsafe.Sizeof(aAsciiTokenChar))) for i = 0; rc == SQLITE_OK && i < nArg; i = i + 2 { var zArg uintptr = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+1)*8)) - if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38140) { + if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38105) { fts5AsciiAddExceptions(tls, p, zArg, 1) - } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38151) { + } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38116) { fts5AsciiAddExceptions(tls, p, zArg, 0) } else { rc = SQLITE_ERROR @@ -237499,7 +239734,7 @@ func fts5AsciiCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, return rc } -func asciiFold(tls *libc.TLS, aOut uintptr, aIn uintptr, nByte int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235919:13: */ +func asciiFold(tls *libc.TLS, aOut uintptr, aIn uintptr, nByte int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238044:13: */ var i int32 for i = 0; i < nByte; i++ { var c int8 = *(*int8)(unsafe.Pointer(aIn + uintptr(i))) @@ -237511,7 +239746,7 @@ func asciiFold(tls *libc.TLS, aOut uintptr, aIn uintptr, nByte int32) { /* testd } // Tokenize some text using the ascii tokenizer. -func fts5AsciiTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, iUnused int32, pText uintptr, nText int32, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:235931:12: */ +func fts5AsciiTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, iUnused int32, pText uintptr, nText int32, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238056:12: */ bp := tls.Alloc(64) defer tls.Free(64) @@ -237592,7 +239827,7 @@ type Unicode61Tokenizer1 = struct { F__ccgo_pad1 [4]byte FaiException uintptr FaCategory [32]uint8 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236046:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238171:9 */ // ************************************************************************* // @@ -237602,11 +239837,11 @@ type Unicode61Tokenizer1 = struct { // from the sqlite3 source file utf.c. If this file is compiled as part // of the amalgamation, they are not required. -type Unicode61Tokenizer = Unicode61Tokenizer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236046:35 */ +type Unicode61Tokenizer = Unicode61Tokenizer1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238171:35 */ // Values for eRemoveDiacritic (must match internals of fts5_unicode2.c) -func fts5UnicodeAddExceptions(tls *libc.TLS, p uintptr, z uintptr, bTokenChars int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236063:12: */ +func fts5UnicodeAddExceptions(tls *libc.TLS, p uintptr, z uintptr, bTokenChars int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238188:12: */ var rc int32 = SQLITE_OK var n int32 = int32(libc.Xstrlen(tls, z)) var aNew uintptr @@ -237661,7 +239896,7 @@ func fts5UnicodeAddExceptions(tls *libc.TLS, p uintptr, z uintptr, bTokenChars i } // Return true if the p->aiException[] array contains the value iCode. -func fts5UnicodeIsException(tls *libc.TLS, p uintptr, iCode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236113:12: */ +func fts5UnicodeIsException(tls *libc.TLS, p uintptr, iCode int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238238:12: */ if (*Unicode61Tokenizer)(unsafe.Pointer(p)).FnException > 0 { var a uintptr = (*Unicode61Tokenizer)(unsafe.Pointer(p)).FaiException var iLo int32 = 0 @@ -237683,7 +239918,7 @@ func fts5UnicodeIsException(tls *libc.TLS, p uintptr, iCode int32) int32 { /* te } // Delete a "unicode61" tokenizer. -func fts5UnicodeDelete(tls *libc.TLS, pTok uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236137:13: */ +func fts5UnicodeDelete(tls *libc.TLS, pTok uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238262:13: */ if pTok != 0 { var p uintptr = pTok Xsqlite3_free(tls, (*Unicode61Tokenizer)(unsafe.Pointer(p)).FaiException) @@ -237693,7 +239928,7 @@ func fts5UnicodeDelete(tls *libc.TLS, pTok uintptr) { /* testdata/sqlite-amalgam return } -func unicodeSetCategories(tls *libc.TLS, p uintptr, zCat uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236147:12: */ +func unicodeSetCategories(tls *libc.TLS, p uintptr, zCat uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238272:12: */ var z uintptr = zCat for *(*int8)(unsafe.Pointer(z)) != 0 { @@ -237713,7 +239948,7 @@ func unicodeSetCategories(tls *libc.TLS, p uintptr, zCat uintptr) int32 { /* tes } // Create a "unicode61" tokenizer. -func fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236165:12: */ +func fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238290:12: */ var rc int32 = SQLITE_OK // Return code var p uintptr = uintptr(0) // New tokenizer object @@ -237724,7 +239959,7 @@ func fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32 } else { p = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Unicode61Tokenizer{}))) if p != 0 { - var zCat uintptr = ts + 38162 /* "L* N* Co" */ + var zCat uintptr = ts + 38127 /* "L* N* Co" */ var i int32 libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Unicode61Tokenizer{}))) @@ -237737,7 +239972,7 @@ func fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32 // Search for a "categories" argument for i = 0; rc == SQLITE_OK && i < nArg; i = i + 2 { - if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38171) { + if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38136) { zCat = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+1)*8)) } } @@ -237748,18 +239983,18 @@ func fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32 for i = 0; rc == SQLITE_OK && i < nArg; i = i + 2 { var zArg uintptr = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+1)*8)) - if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38182) { + if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38147) { if int32(*(*int8)(unsafe.Pointer(zArg))) != '0' && int32(*(*int8)(unsafe.Pointer(zArg))) != '1' && int32(*(*int8)(unsafe.Pointer(zArg))) != '2' || *(*int8)(unsafe.Pointer(zArg + 1)) != 0 { rc = SQLITE_ERROR } else { (*Unicode61Tokenizer)(unsafe.Pointer(p)).FeRemoveDiacritic = int32(*(*int8)(unsafe.Pointer(zArg))) - '0' } - } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38140) { + } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38105) { rc = fts5UnicodeAddExceptions(tls, p, zArg, 1) - } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38151) { + } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38116) { rc = fts5UnicodeAddExceptions(tls, p, zArg, 0) - } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38171) { + } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38136) { // no-op } else { rc = SQLITE_ERROR @@ -237781,12 +240016,12 @@ func fts5UnicodeCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32 // Return true if, for the purposes of tokenizing with the tokenizer // passed as the first argument, codepoint iCode is considered a token // character (not a separator). -func fts5UnicodeIsAlnum(tls *libc.TLS, p uintptr, iCode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236245:12: */ +func fts5UnicodeIsAlnum(tls *libc.TLS, p uintptr, iCode int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238370:12: */ return int32(*(*uint8)(unsafe.Pointer(p + 160 + uintptr(sqlite3Fts5UnicodeCategory(tls, U32(iCode)))))) ^ fts5UnicodeIsException(tls, p, iCode) } -func fts5UnicodeTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, iUnused int32, pText uintptr, nText int32, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236252:12: */ +func fts5UnicodeTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, iUnused int32, pText uintptr, nText int32, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238377:12: */ var p uintptr var rc int32 var a uintptr @@ -238042,7 +240277,7 @@ type PorterTokenizer1 = struct { Ftokenizer Fts5_tokenizer FpTokenizer uintptr FaBuf [128]int8 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236364:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238489:9 */ // ************************************************************************* // @@ -238051,10 +240286,10 @@ type PorterTokenizer1 = struct { // Any tokens larger than this (in bytes) are passed through without // stemming. -type PorterTokenizer = PorterTokenizer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236364:32 */ +type PorterTokenizer = PorterTokenizer1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238489:32 */ // Delete a "porter" tokenizer. -func fts5PorterDelete(tls *libc.TLS, pTok uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236374:13: */ +func fts5PorterDelete(tls *libc.TLS, pTok uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238499:13: */ if pTok != 0 { var p uintptr = pTok if (*PorterTokenizer)(unsafe.Pointer(p)).FpTokenizer != 0 { @@ -238065,7 +240300,7 @@ func fts5PorterDelete(tls *libc.TLS, pTok uintptr) { /* testdata/sqlite-amalgama } // Create a "porter" tokenizer. -func fts5PorterCreate(tls *libc.TLS, pCtx uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236387:12: */ +func fts5PorterCreate(tls *libc.TLS, pCtx uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238512:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -238073,7 +240308,7 @@ func fts5PorterCreate(tls *libc.TLS, pCtx uintptr, azArg uintptr, nArg int32, pp var rc int32 = SQLITE_OK var pRet uintptr *(*uintptr)(unsafe.Pointer(bp /* pUserdata */)) = uintptr(0) - var zBase uintptr = ts + 38200 /* "unicode61" */ + var zBase uintptr = ts + 38165 /* "unicode61" */ if nArg > 0 { zBase = *(*uintptr)(unsafe.Pointer(azArg)) @@ -238118,9 +240353,9 @@ type PorterContext1 = struct { FpCtx uintptr FxToken uintptr FaBuf uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236423:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238548:9 */ -type PorterContext = PorterContext1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236423:30 */ +type PorterContext = PorterContext1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238548:30 */ type PorterRule1 = struct { FzSuffix uintptr @@ -238130,15 +240365,15 @@ type PorterRule1 = struct { FzOutput uintptr FnOutput int32 F__ccgo_pad2 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236430:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238555:9 */ -type PorterRule = PorterRule1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236430:27 */ +type PorterRule = PorterRule1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238555:27 */ -func fts5PorterIsVowel(tls *libc.TLS, c int8, bYIsVowel int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236465:12: */ +func fts5PorterIsVowel(tls *libc.TLS, c int8, bYIsVowel int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238590:12: */ return libc.Bool32(int32(c) == 'a' || int32(c) == 'e' || int32(c) == 'i' || int32(c) == 'o' || int32(c) == 'u' || bYIsVowel != 0 && int32(c) == 'y') } -func fts5PorterGobbleVC(tls *libc.TLS, zStem uintptr, nStem int32, bPrevCons int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236471:12: */ +func fts5PorterGobbleVC(tls *libc.TLS, zStem uintptr, nStem int32, bPrevCons int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238596:12: */ var i int32 var bCons int32 = bPrevCons @@ -238159,12 +240394,12 @@ func fts5PorterGobbleVC(tls *libc.TLS, zStem uintptr, nStem int32, bPrevCons int } // porter rule condition: (m > 0) -func fts5Porter_MGt0(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236488:12: */ +func fts5Porter_MGt0(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238613:12: */ return libc.BoolInt32(!!(fts5PorterGobbleVC(tls, zStem, nStem, 0) != 0)) } // porter rule condition: (m > 1) -func fts5Porter_MGt1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236493:12: */ +func fts5Porter_MGt1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238618:12: */ var n int32 n = fts5PorterGobbleVC(tls, zStem, nStem, 0) if n != 0 && fts5PorterGobbleVC(tls, zStem+uintptr(n), nStem-n, 1) != 0 { @@ -238174,7 +240409,7 @@ func fts5Porter_MGt1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testd } // porter rule condition: (m = 1) -func fts5Porter_MEq1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236503:12: */ +func fts5Porter_MEq1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238628:12: */ var n int32 n = fts5PorterGobbleVC(tls, zStem, nStem, 0) if n != 0 && 0 == fts5PorterGobbleVC(tls, zStem+uintptr(n), nStem-n, 1) { @@ -238184,7 +240419,7 @@ func fts5Porter_MEq1(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testd } // porter rule condition: (*o) -func fts5Porter_Ostar(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236513:12: */ +func fts5Porter_Ostar(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238638:12: */ if int32(*(*int8)(unsafe.Pointer(zStem + uintptr(nStem-1)))) == 'w' || int32(*(*int8)(unsafe.Pointer(zStem + uintptr(nStem-1)))) == 'x' || int32(*(*int8)(unsafe.Pointer(zStem + uintptr(nStem-1)))) == 'y' { return 0 } else { @@ -238202,14 +240437,14 @@ func fts5Porter_Ostar(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* test } // porter rule condition: (m > 1 and (*S or *T)) -func fts5Porter_MGt1_and_S_or_T(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236530:12: */ +func fts5Porter_MGt1_and_S_or_T(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238655:12: */ return libc.Bool32((int32(*(*int8)(unsafe.Pointer(zStem + uintptr(nStem-1)))) == 's' || int32(*(*int8)(unsafe.Pointer(zStem + uintptr(nStem-1)))) == 't') && fts5Porter_MGt1(tls, zStem, nStem) != 0) } // porter rule condition: (*v*) -func fts5Porter_Vowel(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236537:12: */ +func fts5Porter_Vowel(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238662:12: */ var i int32 for i = 0; i < nStem; i++ { if fts5PorterIsVowel(tls, *(*int8)(unsafe.Pointer(zStem + uintptr(i))), libc.Bool32(i > 0)) != 0 { @@ -238224,13 +240459,13 @@ func fts5Porter_Vowel(tls *libc.TLS, zStem uintptr, nStem int32) int32 { /* test // // GENERATED CODE STARTS HERE (mkportersteps.tcl) -func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236553:12: */ +func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238678:12: */ var ret int32 = 0 var nBuf int32 = *(*int32)(unsafe.Pointer(pnBuf)) switch int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-2)))) { case 'a': - if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38210, aBuf+uintptr(nBuf-2), uint64(2)) { + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38175, aBuf+uintptr(nBuf-2), uint64(2)) { if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 } @@ -238238,11 +240473,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'c': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38213, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38178, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 } - } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38218, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38183, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 } @@ -238250,7 +240485,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'e': - if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38223, aBuf+uintptr(nBuf-2), uint64(2)) { + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38188, aBuf+uintptr(nBuf-2), uint64(2)) { if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 } @@ -238258,7 +240493,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'i': - if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38226, aBuf+uintptr(nBuf-2), uint64(2)) { + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38191, aBuf+uintptr(nBuf-2), uint64(2)) { if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 } @@ -238266,11 +240501,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'l': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38229, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38194, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 } - } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38234, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38199, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 } @@ -238278,19 +240513,19 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'n': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38239, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38204, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } - } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38243, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38208, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt1(tls, aBuf, nBuf-5) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 } - } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38249, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38214, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 } - } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38254, aBuf+uintptr(nBuf-3), uint64(3)) { + } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38219, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -238298,11 +240533,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'o': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38258, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38223, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1_and_S_or_T(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } - } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38262, aBuf+uintptr(nBuf-2), uint64(2)) { + } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38227, aBuf+uintptr(nBuf-2), uint64(2)) { if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 } @@ -238310,7 +240545,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 's': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38265, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38230, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -238318,11 +240553,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 't': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38269, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38234, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } - } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38273, aBuf+uintptr(nBuf-3), uint64(3)) { + } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38238, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -238330,7 +240565,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'u': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38277, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38242, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -238338,7 +240573,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'v': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38281, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38246, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -238346,7 +240581,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'z': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38285, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38250, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -238357,30 +240592,30 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test return ret } -func fts5PorterStep1B2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236687:12: */ +func fts5PorterStep1B2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238812:12: */ var ret int32 = 0 var nBuf int32 = *(*int32)(unsafe.Pointer(pnBuf)) switch int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-2)))) { case 'a': - if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38289, aBuf+uintptr(nBuf-2), uint64(2)) { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38269, uint64(3)) + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38254, aBuf+uintptr(nBuf-2), uint64(2)) { + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38234, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3 ret = 1 } break case 'b': - if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38292, aBuf+uintptr(nBuf-2), uint64(2)) { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38295, uint64(3)) + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38257, aBuf+uintptr(nBuf-2), uint64(2)) { + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38260, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3 ret = 1 } break case 'i': - if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38299, aBuf+uintptr(nBuf-2), uint64(2)) { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38285, uint64(3)) + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38264, aBuf+uintptr(nBuf-2), uint64(2)) { + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+38250, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3 ret = 1 } @@ -238390,143 +240625,143 @@ func fts5PorterStep1B2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* te return ret } -func fts5PorterStep2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236721:12: */ +func fts5PorterStep2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238846:12: */ var ret int32 = 0 var nBuf int32 = *(*int32)(unsafe.Pointer(pnBuf)) switch int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-2)))) { case 'a': - if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38302, aBuf+uintptr(nBuf-7), uint64(7)) { + if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38267, aBuf+uintptr(nBuf-7), uint64(7)) { if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38269, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38234, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3 } - } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+38310, aBuf+uintptr(nBuf-6), uint64(6)) { + } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+38275, aBuf+uintptr(nBuf-6), uint64(6)) { if fts5Porter_MGt0(tls, aBuf, nBuf-6) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+38317, uint64(4)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+38282, uint64(4)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 6 + 4 } } break case 'c': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38322, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38287, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38218, uint64(4)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38183, uint64(4)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 4 } - } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38327, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38292, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38213, uint64(4)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38178, uint64(4)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 4 } } break case 'e': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38332, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38297, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38285, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38250, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3 } } break case 'g': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38337, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38302, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+16744, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+16774, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3 } } break case 'l': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38342, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38307, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38295, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38260, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 3 } - } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38346, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38311, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38210, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38175, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 2 } - } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38351, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38316, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38254, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38219, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3 } - } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38357, aBuf+uintptr(nBuf-3), uint64(3)) { + } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38322, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38361, uint64(1)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38326, uint64(1)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 1 } - } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38363, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38328, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38277, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38242, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3 } } break case 'o': - if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38369, aBuf+uintptr(nBuf-7), uint64(7)) { + if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38334, aBuf+uintptr(nBuf-7), uint64(7)) { if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38285, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38250, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3 } - } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38377, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38342, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38269, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38234, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3 } - } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38383, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38348, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38269, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38234, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3 } } break case 's': - if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38388, aBuf+uintptr(nBuf-5), uint64(5)) { + if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38353, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38210, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38175, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2 } - } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38394, aBuf+uintptr(nBuf-7), uint64(7)) { + } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38359, aBuf+uintptr(nBuf-7), uint64(7)) { if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38281, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38246, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3 } - } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38402, aBuf+uintptr(nBuf-7), uint64(7)) { + } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38367, aBuf+uintptr(nBuf-7), uint64(7)) { if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38410, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38375, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3 } - } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38414, aBuf+uintptr(nBuf-7), uint64(7)) { + } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+38379, aBuf+uintptr(nBuf-7), uint64(7)) { if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38277, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+38242, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3 } } break case 't': - if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38422, aBuf+uintptr(nBuf-5), uint64(5)) { + if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38387, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38210, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38175, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2 } - } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38428, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38393, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38281, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38246, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3 } - } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+38434, aBuf+uintptr(nBuf-6), uint64(6)) { + } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+38399, aBuf+uintptr(nBuf-6), uint64(6)) { if fts5Porter_MGt0(tls, aBuf, nBuf-6) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+38295, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+38260, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 6 + 3 } } @@ -238536,22 +240771,22 @@ func fts5PorterStep2(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test return ret } -func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236868:12: */ +func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:238993:12: */ var ret int32 = 0 var nBuf int32 = *(*int32)(unsafe.Pointer(pnBuf)) switch int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-2)))) { case 'a': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38441, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38406, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38226, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+38191, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 2 } } break case 's': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38446, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+38411, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 } @@ -238559,21 +240794,21 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 't': - if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38451, aBuf+uintptr(nBuf-5), uint64(5)) { + if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38416, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38226, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38191, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2 } - } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38457, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38422, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38226, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38191, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2 } } break case 'u': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38410, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38375, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -238581,7 +240816,7 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'v': - if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38463, aBuf+uintptr(nBuf-5), uint64(5)) { + if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38428, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 } @@ -238589,9 +240824,9 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'z': - if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38469, aBuf+uintptr(nBuf-5), uint64(5)) { + if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+38434, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38210, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+38175, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2 } } @@ -238601,18 +240836,18 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test return ret } -func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236934:12: */ +func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239059:12: */ var ret int32 = 0 var nBuf int32 = *(*int32)(unsafe.Pointer(pnBuf)) switch int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-2)))) { case 'e': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38475, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38440, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38479, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+38444, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 2 } - } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38482, aBuf+uintptr(nBuf-2), uint64(2)) { + } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+38447, aBuf+uintptr(nBuf-2), uint64(2)) { if fts5Porter_Vowel(tls, aBuf, nBuf-2) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 ret = 1 @@ -238621,7 +240856,7 @@ func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* tes break case 'n': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38485, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+38450, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_Vowel(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 ret = 1 @@ -238638,7 +240873,7 @@ func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* tes // // -func fts5PorterStep1A(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236971:13: */ +func fts5PorterStep1A(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239096:13: */ var nBuf int32 = *(*int32)(unsafe.Pointer(pnBuf)) if int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-1)))) == 's' { if int32(*(*int8)(unsafe.Pointer(aBuf + uintptr(nBuf-2)))) == 'e' { @@ -238654,7 +240889,7 @@ func fts5PorterStep1A(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) { /* testdata/ } } -func fts5PorterCb(tls *libc.TLS, pCtx uintptr, tflags int32, pToken uintptr, nToken int32, iStart int32, iEnd int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:236989:12: */ +func fts5PorterCb(tls *libc.TLS, pCtx uintptr, tflags int32, pToken uintptr, nToken int32, iStart int32, iEnd int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239114:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -238752,7 +240987,7 @@ pass_through: } // Tokenize using the porter tokenizer. -func fts5PorterTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, flags int32, pText uintptr, nText int32, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237058:12: */ +func fts5PorterTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, flags int32, pText uintptr, nText int32, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239183:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -238773,20 +241008,20 @@ func fts5PorterTokenize(tls *libc.TLS, pTokenizer uintptr, pCtx uintptr, flags i // ************************************************************************* // // Start of trigram implementation. -type TrigramTokenizer1 = struct{ FbFold int32 } /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237078:9 */ +type TrigramTokenizer1 = struct{ FbFold int32 } /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239203:9 */ // ************************************************************************* // // Start of trigram implementation. -type TrigramTokenizer = TrigramTokenizer1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237078:33 */ +type TrigramTokenizer = TrigramTokenizer1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239203:33 */ // Free a trigram tokenizer. -func fts5TriDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237086:13: */ +func fts5TriDelete(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239211:13: */ Xsqlite3_free(tls, p) } // Allocate a trigram tokenizer. -func fts5TriCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237093:12: */ +func fts5TriCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239218:12: */ var rc int32 = SQLITE_OK var pNew uintptr = Xsqlite3_malloc(tls, int32(unsafe.Sizeof(TrigramTokenizer{}))) _ = pUnused @@ -238797,7 +241032,7 @@ func fts5TriCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, pp (*TrigramTokenizer)(unsafe.Pointer(pNew)).FbFold = 1 for i = 0; rc == SQLITE_OK && i < nArg; i = i + 2 { var zArg uintptr = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+1)*8)) - if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38489) { + if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+38454) { if int32(*(*int8)(unsafe.Pointer(zArg))) != '0' && int32(*(*int8)(unsafe.Pointer(zArg))) != '1' || *(*int8)(unsafe.Pointer(zArg + 1)) != 0 { rc = SQLITE_ERROR } else { @@ -238817,7 +241052,7 @@ func fts5TriCreate(tls *libc.TLS, pUnused uintptr, azArg uintptr, nArg int32, pp } // Trigram tokenizer tokenize routine. -func fts5TriTokenize(tls *libc.TLS, pTok uintptr, pCtx uintptr, unusedFlags int32, pText uintptr, nText int32, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237131:12: */ +func fts5TriTokenize(tls *libc.TLS, pTok uintptr, pCtx uintptr, unusedFlags int32, pText uintptr, nText int32, xToken uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239256:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -238967,10 +241202,10 @@ func fts5TriTokenize(tls *libc.TLS, pTok uintptr, pCtx uintptr, unusedFlags int3 // indicating the style of pattern matching that the tokenizer can support. // In practice, this is: // -// "trigram" tokenizer, case_sensitive=1 - FTS5_PATTERN_GLOB -// "trigram" tokenizer, case_sensitive=0 (the default) - FTS5_PATTERN_LIKE -// all other tokenizers - FTS5_PATTERN_NONE -func sqlite3Fts5TokenizerPattern(tls *libc.TLS, xCreate uintptr, pTok uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237191:12: */ +// "trigram" tokenizer, case_sensitive=1 - FTS5_PATTERN_GLOB +// "trigram" tokenizer, case_sensitive=0 (the default) - FTS5_PATTERN_LIKE +// all other tokenizers - FTS5_PATTERN_NONE +func sqlite3Fts5TokenizerPattern(tls *libc.TLS, xCreate uintptr, pTok uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239316:12: */ if xCreate == *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32 }{fts5TriCreate})) { @@ -238984,27 +241219,27 @@ func sqlite3Fts5TokenizerPattern(tls *libc.TLS, xCreate uintptr, pTok uintptr) i } // Register all built-in tokenizers with FTS5. -func sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237205:12: */ +func sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239330:12: */ bp := tls.Alloc(128) defer tls.Free(128) *(*[4]BuiltinTokenizer)(unsafe.Pointer(bp /* aBuiltin */)) = [4]BuiltinTokenizer{ - {FzName: ts + 38200, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { + {FzName: ts + 38165, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32 }{fts5UnicodeCreate})), FxDelete: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5UnicodeDelete})), FxTokenize: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr, int32, uintptr) int32 }{fts5UnicodeTokenize}))}}, - {FzName: ts + 38504, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { + {FzName: ts + 38469, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32 }{fts5AsciiCreate})), FxDelete: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5AsciiDelete})), FxTokenize: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr, int32, uintptr) int32 }{fts5AsciiTokenize}))}}, - {FzName: ts + 38510, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { + {FzName: ts + 38475, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32 }{fts5PorterCreate})), FxDelete: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5PorterDelete})), FxTokenize: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr, int32, uintptr) int32 }{fts5PorterTokenize}))}}, - {FzName: ts + 38517, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { + {FzName: ts + 38482, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32 }{fts5TriCreate})), FxDelete: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5TriDelete})), FxTokenize: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr, int32, uintptr) int32 @@ -239030,7 +241265,7 @@ func sqlite3Fts5TokenizerInit(tls *libc.TLS, pApi uintptr) int32 { /* testdata/s type BuiltinTokenizer = struct { FzName uintptr Fx Fts5_tokenizer -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237206:3 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239331:3 */ // 2012-05-25 // @@ -239053,7 +241288,7 @@ type BuiltinTokenizer = struct { // SMALL LETTER E WITH DIAERESIS" - return 65 ("LATIN SMALL LETTER // E"). The resuls of passing a codepoint that corresponds to an // uppercase letter are undefined. -func fts5_remove_diacritic(tls *libc.TLS, c int32, bComplex int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237261:12: */ +func fts5_remove_diacritic(tls *libc.TLS, c int32, bComplex int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239386:12: */ bp := tls.Alloc(378) defer tls.Free(378) @@ -239124,7 +241359,7 @@ func fts5_remove_diacritic(tls *libc.TLS, c int32, bComplex int32) int32 { /* te // Return true if the argument interpreted as a unicode codepoint // is a diacritical modifier character. -func sqlite3Fts5UnicodeIsdiacritic(tls *libc.TLS, c int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237328:12: */ +func sqlite3Fts5UnicodeIsdiacritic(tls *libc.TLS, c int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239453:12: */ var mask0 uint32 = uint32(0x08029FDF) var mask1 uint32 = uint32(0x000361F8) if c < 768 || c > 817 { @@ -239143,7 +241378,7 @@ func sqlite3Fts5UnicodeIsdiacritic(tls *libc.TLS, c int32) int32 { /* testdata/s // // The results are undefined if the value passed to this function // is less than zero. -func sqlite3Fts5UnicodeFold(tls *libc.TLS, c int32, eRemoveDiacritic int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237347:12: */ +func sqlite3Fts5UnicodeFold(tls *libc.TLS, c int32, eRemoveDiacritic int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239472:12: */ var ret int32 = c @@ -239204,7 +241439,7 @@ type TableEntry = struct { FiCode uint16 Fflags uint8 FnRange uint8 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237365:16 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239490:16 */ var aEntry = [163]TableEntry{ {FiCode: uint16(65), Fflags: uint8(14), FnRange: uint8(26)}, {FiCode: uint16(181), Fflags: uint8(64), FnRange: uint8(1)}, {FiCode: uint16(192), Fflags: uint8(14), FnRange: uint8(23)}, @@ -239262,7 +241497,7 @@ var aEntry = [163]TableEntry{ {FiCode: uint16(42878), Fflags: uint8(1), FnRange: uint8(10)}, {FiCode: uint16(42891), FnRange: uint8(1)}, {FiCode: uint16(42893), Fflags: uint8(74), FnRange: uint8(1)}, {FiCode: uint16(42896), Fflags: uint8(1), FnRange: uint8(4)}, {FiCode: uint16(42912), Fflags: uint8(1), FnRange: uint8(10)}, {FiCode: uint16(42922), Fflags: uint8(72), FnRange: uint8(1)}, {FiCode: uint16(65313), Fflags: uint8(14), FnRange: uint8(26)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237369:5 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239494:5 */ var aiOff = [77]uint16{ uint16(1), uint16(2), uint16(8), uint16(15), uint16(16), uint16(26), uint16(28), uint16(32), uint16(37), uint16(38), uint16(40), uint16(48), uint16(63), uint16(64), uint16(69), uint16(71), @@ -239274,9 +241509,9 @@ var aiOff = [77]uint16{ uint16(65408), uint16(65410), uint16(65415), uint16(65424), uint16(65436), uint16(65439), uint16(65450), uint16(65462), uint16(65472), uint16(65476), uint16(65478), uint16(65480), uint16(65482), uint16(65488), uint16(65506), uint16(65511), uint16(65514), uint16(65521), uint16(65527), uint16(65528), uint16(65529), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237426:31 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239551:31 */ -func sqlite3Fts5UnicodeCatParse(tls *libc.TLS, zCat uintptr, aArray uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237483:12: */ +func sqlite3Fts5UnicodeCatParse(tls *libc.TLS, zCat uintptr, aArray uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239608:12: */ *(*U8)(unsafe.Pointer(aArray)) = U8(1) switch int32(*(*int8)(unsafe.Pointer(zCat))) { case 'C': @@ -239473,7 +241708,7 @@ func sqlite3Fts5UnicodeCatParse(tls *libc.TLS, zCat uintptr, aArray uintptr) int var aFts5UnicodeBlock = [17]U16{ U16(0), U16(1471), U16(1753), U16(1760), U16(1760), U16(1760), U16(1760), U16(1760), U16(1760), U16(1760), U16(1760), U16(1760), U16(1760), U16(1760), U16(1760), U16(1763), U16(1765), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237601:12 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239726:12 */ var aFts5UnicodeMap = [1765]U16{ U16(0), U16(32), U16(33), U16(36), U16(37), U16(40), U16(41), U16(42), U16(43), U16(44), U16(45), U16(46), U16(48), U16(58), U16(60), U16(63), U16(65), U16(91), U16(92), U16(93), @@ -239652,7 +241887,7 @@ var aFts5UnicodeMap = [1765]U16{ U16(62406), U16(62432), U16(62464), U16(62528), U16(62530), U16(62713), U16(62720), U16(62784), U16(62800), U16(62971), U16(63045), U16(63104), U16(63232), U16(0), U16(42710), U16(42752), U16(46900), U16(46912), U16(47133), U16(63488), U16(1), U16(32), U16(256), U16(0), U16(65533), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237605:12 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239730:12 */ var aFts5UnicodeData = [1765]U16{ U16(1025), U16(61), U16(117), U16(55), U16(117), U16(54), U16(50), U16(53), U16(57), U16(53), U16(49), U16(85), U16(333), U16(85), U16(121), U16(85), U16(841), U16(54), U16(53), U16(50), @@ -239831,9 +242066,9 @@ var aFts5UnicodeData = [1765]U16{ U16(186), U16(570), U16(2042), U16(58), U16(5850), U16(154), U16(2010), U16(154), U16(794), U16(2266), U16(378), U16(2266), U16(3738), U16(39), U16(39), U16(39), U16(39), U16(39), U16(39), U16(17351), U16(34), U16(3074), U16(7692), U16(63), U16(63), -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237784:12 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:239909:12 */ -func sqlite3Fts5UnicodeCategory(tls *libc.TLS, iCode U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237964:12: */ +func sqlite3Fts5UnicodeCategory(tls *libc.TLS, iCode U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240089:12: */ var iRes int32 = -1 var iHi int32 var iLo int32 @@ -239873,7 +242108,7 @@ func sqlite3Fts5UnicodeCategory(tls *libc.TLS, iCode U32) int32 { /* testdata/sq return 9 } -func sqlite3Fts5UnicodeAscii(tls *libc.TLS, aArray uintptr, aAscii uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:237995:13: */ +func sqlite3Fts5UnicodeAscii(tls *libc.TLS, aArray uintptr, aAscii uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240120:13: */ var i int32 = 0 var iTbl int32 = 0 for i < 128 { @@ -239905,7 +242140,7 @@ func sqlite3Fts5UnicodeAscii(tls *libc.TLS, aArray uintptr, aAscii uintptr) { /* // This is a copy of the sqlite3GetVarint32() routine from the SQLite core. // Except, this version does handle the single byte case that the core // version depends on being handled before its function is called. -func sqlite3Fts5GetVarint32(tls *libc.TLS, p uintptr, v uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238033:12: */ +func sqlite3Fts5GetVarint32(tls *libc.TLS, p uintptr, v uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240158:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -239980,7 +242215,7 @@ func sqlite3Fts5GetVarint32(tls *libc.TLS, p uintptr, v uintptr) int32 { /* test // Read a 64-bit variable-length integer from memory starting at p[0]. // Return the number of bytes read. The value is stored in *v. -func sqlite3Fts5GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238111:11: */ +func sqlite3Fts5GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240236:11: */ var a U32 var b U32 var s U32 @@ -240156,7 +242391,7 @@ func sqlite3Fts5GetVarint(tls *libc.TLS, p uintptr, v uintptr) U8 { /* testdata/ // for all bytes that have the 8th bit set and one byte with the 8th // bit clear. Except, if we get to the 9th byte, it stores the full // 8 bits and is the last byte. -func fts5PutVarint64(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238305:26: */ +func fts5PutVarint64(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240430:26: */ bp := tls.Alloc(10) defer tls.Free(10) @@ -240202,7 +242437,7 @@ __3: return n } -func sqlite3Fts5PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238330:12: */ +func sqlite3Fts5PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240455:12: */ if v <= uint64(0x7f) { *(*uint8)(unsafe.Pointer(p)) = uint8(v & uint64(0x7f)) return 1 @@ -240215,7 +242450,7 @@ func sqlite3Fts5PutVarint(tls *libc.TLS, p uintptr, v U64) int32 { /* testdata/s return fts5PutVarint64(tls, p, v) } -func sqlite3Fts5GetVarintLen(tls *libc.TLS, iVal U32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238344:12: */ +func sqlite3Fts5GetVarintLen(tls *libc.TLS, iVal U32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240469:12: */ if iVal < U32(int32(1)<<14) { return 2 @@ -240275,7 +242510,7 @@ type Fts5VocabTable1 = struct { FpGlobal uintptr FeType int32 FbBusy uint32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238397:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240522:9 */ // 2015 May 08 // @@ -240315,7 +242550,7 @@ type Fts5VocabTable1 = struct { // #include "fts5Int.h" -type Fts5VocabTable = Fts5VocabTable1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238397:31 */ +type Fts5VocabTable = Fts5VocabTable1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240522:31 */ type Fts5VocabCursor1 = struct { Fbase Sqlite3_vtab_cursor FpStmt uintptr @@ -240336,9 +242571,9 @@ type Fts5VocabCursor1 = struct { FiInstPos I64 FiInstOff int32 F__ccgo_pad4 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238398:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240523:9 */ -type Fts5VocabCursor = Fts5VocabCursor1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238398:32 */ +type Fts5VocabCursor = Fts5VocabCursor1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240523:32 */ // Bits for the mask used as the idxNum value by xBestIndex/xFilter. @@ -240346,7 +242581,7 @@ type Fts5VocabCursor = Fts5VocabCursor1 /* testdata/sqlite-amalgamation-3380500/ // FTS5_VOCAB_XXX constant. If successful, set *peType to the output // value and return SQLITE_OK. Otherwise, set *pzErr to an error message // and return SQLITE_ERROR. -func fts5VocabTableType(tls *libc.TLS, zType uintptr, pzErr uintptr, peType uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238458:12: */ +func fts5VocabTableType(tls *libc.TLS, zType uintptr, pzErr uintptr, peType uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240583:12: */ bp := tls.Alloc(12) defer tls.Free(12) @@ -240354,14 +242589,14 @@ func fts5VocabTableType(tls *libc.TLS, zType uintptr, pzErr uintptr, peType uint var zCopy uintptr = sqlite3Fts5Strndup(tls, bp+8, zType, -1) if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK { sqlite3Fts5Dequote(tls, zCopy) - if Xsqlite3_stricmp(tls, zCopy, ts+38525) == 0 { + if Xsqlite3_stricmp(tls, zCopy, ts+38490) == 0 { *(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_COL - } else if Xsqlite3_stricmp(tls, zCopy, ts+38529) == 0 { + } else if Xsqlite3_stricmp(tls, zCopy, ts+38494) == 0 { *(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_ROW - } else if Xsqlite3_stricmp(tls, zCopy, ts+38533) == 0 { + } else if Xsqlite3_stricmp(tls, zCopy, ts+38498) == 0 { *(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_INSTANCE } else { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+38542, libc.VaList(bp, zCopy)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+38507, libc.VaList(bp, zCopy)) *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = SQLITE_ERROR } Xsqlite3_free(tls, zCopy) @@ -240371,14 +242606,14 @@ func fts5VocabTableType(tls *libc.TLS, zType uintptr, pzErr uintptr, peType uint } // The xDisconnect() virtual table method. -func fts5VocabDisconnectMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238487:12: */ +func fts5VocabDisconnectMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240612:12: */ var pTab uintptr = pVtab Xsqlite3_free(tls, pTab) return SQLITE_OK } // The xDestroy() virtual table method. -func fts5VocabDestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238496:12: */ +func fts5VocabDestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240621:12: */ var pTab uintptr = pVtab Xsqlite3_free(tls, pTab) return SQLITE_OK @@ -240389,38 +242624,38 @@ func fts5VocabDestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sq // // The argv[] array contains the following: // -// argv[0] -> module name ("fts5vocab") -// argv[1] -> database name -// argv[2] -> table name +// argv[0] -> module name ("fts5vocab") +// argv[1] -> database name +// argv[2] -> table name // // then: // -// argv[3] -> name of fts5 table -// argv[4] -> type of fts5vocab table +// argv[3] -> name of fts5 table +// argv[4] -> type of fts5vocab table // // or, for tables in the TEMP schema only. // -// argv[3] -> name of fts5 tables database -// argv[4] -> name of fts5 table -// argv[5] -> type of fts5vocab table -func fts5VocabInitVtab(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238523:12: */ +// argv[3] -> name of fts5 tables database +// argv[4] -> name of fts5 table +// argv[5] -> type of fts5vocab table +func fts5VocabInitVtab(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240648:12: */ bp := tls.Alloc(36) defer tls.Free(36) *(*[3]uintptr)(unsafe.Pointer(bp + 8 /* azSchema */)) = [3]uintptr{ - ts + 38576, + ts + 38541, + ts + 38581, ts + 38616, - ts + 38651, } var pRet uintptr = uintptr(0) *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_OK // Return code var bDb int32 - bDb = libc.Bool32(argc == 6 && libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8))) == uint64(4) && libc.Xmemcmp(tls, ts+24543, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uint64(4)) == 0) + bDb = libc.Bool32(argc == 6 && libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + 1*8))) == uint64(4) && libc.Xmemcmp(tls, ts+24508, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uint64(4)) == 0) if argc != 5 && bDb == 0 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+38694, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+38659, 0) *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_ERROR } else { var nByte int32 // Bytes of space to allocate @@ -240473,11 +242708,11 @@ func fts5VocabInitVtab(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv // The xConnect() and xCreate() methods for the virtual table. All the // work is done in function fts5VocabInitVtab(). -func fts5VocabConnectMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238585:12: */ +func fts5VocabConnectMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240710:12: */ return fts5VocabInitVtab(tls, db, pAux, argc, argv, ppVtab, pzErr) } -func fts5VocabCreateMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238595:12: */ +func fts5VocabCreateMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240720:12: */ return fts5VocabInitVtab(tls, db, pAux, argc, argv, ppVtab, pzErr) } @@ -240485,13 +242720,13 @@ func fts5VocabCreateMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, // // Only constraints of the form: // -// term <= ? -// term == ? -// term >= ? +// term <= ? +// term == ? +// term >= ? // // are interpreted. Less-than and less-than-or-equal are treated // identically, as are greater-than and greater-than-or-equal. -func fts5VocabBestIndexMethod(tls *libc.TLS, pUnused uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238618:12: */ +func fts5VocabBestIndexMethod(tls *libc.TLS, pUnused uintptr, pInfo uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240743:12: */ var i int32 var iTermEq int32 = -1 var iTermGe int32 = -1 @@ -240559,7 +242794,7 @@ func fts5VocabBestIndexMethod(tls *libc.TLS, pUnused uintptr, pInfo uintptr) int } // Implementation of xOpen method. -func fts5VocabOpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238680:12: */ +func fts5VocabOpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240805:12: */ bp := tls.Alloc(80) defer tls.Free(80) @@ -240572,11 +242807,11 @@ func fts5VocabOpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* if (*Fts5VocabTable)(unsafe.Pointer(pTab)).FbBusy != 0 { (*Sqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = Xsqlite3_mprintf(tls, - ts+38727, libc.VaList(bp, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl)) + ts+38692, libc.VaList(bp, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl)) return SQLITE_ERROR } zSql = sqlite3Fts5Mprintf(tls, bp+64, - ts+38758, + ts+38723, libc.VaList(bp+16, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl)) if zSql != 0 { *(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = Xsqlite3_prepare_v2(tls, (*Fts5VocabTable)(unsafe.Pointer(pTab)).Fdb, zSql, -1, bp+72, uintptr(0)) @@ -240600,7 +242835,7 @@ func fts5VocabOpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* *(*uintptr)(unsafe.Pointer(bp + 72 /* pStmt */)) = uintptr(0) if *(*int32)(unsafe.Pointer(bp + 64)) == SQLITE_OK { (*Sqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = Xsqlite3_mprintf(tls, - ts+38809, libc.VaList(bp+48, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl)) + ts+38774, libc.VaList(bp+48, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl)) *(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = SQLITE_ERROR } } else { @@ -240626,7 +242861,7 @@ func fts5VocabOpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* return *(*int32)(unsafe.Pointer(bp + 64 /* rc */)) } -func fts5VocabResetCursor(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238748:13: */ +func fts5VocabResetCursor(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240873:13: */ (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).Frowid = int64(0) sqlite3Fts5IterClose(tls, (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FpIter) sqlite3Fts5StructureRelease(tls, (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FpStruct) @@ -240640,7 +242875,7 @@ func fts5VocabResetCursor(tls *libc.TLS, pCsr uintptr) { /* testdata/sqlite-amal // Close the cursor. For additional information see the documentation // on the xClose method of the virtual table interface. -func fts5VocabCloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238764:12: */ +func fts5VocabCloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240889:12: */ var pCsr uintptr = pCursor fts5VocabResetCursor(tls, pCsr) sqlite3Fts5BufferFree(tls, pCsr+96) @@ -240649,7 +242884,7 @@ func fts5VocabCloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sq return SQLITE_OK } -func fts5VocabInstanceNewTerm(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238773:12: */ +func fts5VocabInstanceNewTerm(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240898:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -240680,7 +242915,7 @@ func fts5VocabInstanceNewTerm(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/s return *(*int32)(unsafe.Pointer(bp + 4 /* rc */)) } -func fts5VocabInstanceNext(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238795:12: */ +func fts5VocabInstanceNext(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240920:12: */ var eDetail int32 = (*Fts5Config)(unsafe.Pointer((*Fts5Table)(unsafe.Pointer((*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FpFts5)).FpConfig)).FeDetail var rc int32 = SQLITE_OK var pIter uintptr = (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FpIter @@ -240709,7 +242944,7 @@ func fts5VocabInstanceNext(tls *libc.TLS, pCsr uintptr) int32 { /* testdata/sqli } // Advance the cursor to the next row in the table. -func fts5VocabNextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238827:12: */ +func fts5VocabNextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:240952:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -240853,7 +243088,7 @@ func fts5VocabNextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sql } // This is the xFilter implementation for the virtual table. -func fts5VocabFilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, zUnused uintptr, nUnused int32, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:238955:12: */ +func fts5VocabFilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, zUnused uintptr, nUnused int32, apVal uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:241080:12: */ var pTab uintptr = (*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab var pCsr uintptr = pCursor var eType int32 = (*Fts5VocabTable)(unsafe.Pointer(pTab)).FeType @@ -240927,12 +243162,12 @@ func fts5VocabFilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, zUnused // This is the xEof method of the virtual table. SQLite calls this // routine to find out if it has reached the end of a result set. -func fts5VocabEofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239029:12: */ +func fts5VocabEofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:241154:12: */ var pCsr uintptr = pCursor return (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FbEof } -func fts5VocabColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239034:12: */ +func fts5VocabColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:241159:12: */ var pCsr uintptr = pCursor var eDetail int32 = (*Fts5Config)(unsafe.Pointer((*Fts5Table)(unsafe.Pointer((*Fts5VocabCursor)(unsafe.Pointer(pCsr)).FpFts5)).FpConfig)).FeDetail var eType int32 = (*Fts5VocabTable)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab)).FeType @@ -241005,16 +243240,16 @@ func fts5VocabColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol in // This is the xRowid method. The SQLite core calls this routine to // retrieve the rowid for the current row of the result set. The // rowid should be written to *pRowid. -func fts5VocabRowidMethod(tls *libc.TLS, pCursor uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239106:12: */ +func fts5VocabRowidMethod(tls *libc.TLS, pCursor uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:241231:12: */ var pCsr uintptr = pCursor *(*Sqlite_int64)(unsafe.Pointer(pRowid)) = (*Fts5VocabCursor)(unsafe.Pointer(pCsr)).Frowid return SQLITE_OK } -func sqlite3Fts5VocabInit(tls *libc.TLS, pGlobal uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239115:12: */ +func sqlite3Fts5VocabInit(tls *libc.TLS, pGlobal uintptr, db uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:241240:12: */ var p uintptr = pGlobal - return Xsqlite3_create_module_v2(tls, db, ts+38835, uintptr(unsafe.Pointer(&fts5Vocab)), p, uintptr(0)) + return Xsqlite3_create_module_v2(tls, db, ts+38800, uintptr(unsafe.Pointer(&fts5Vocab)), p, uintptr(0)) } var fts5Vocab = Sqlite3_module{ @@ -241031,7 +243266,7 @@ var fts5Vocab = Sqlite3_module{ /* xEof */ FxEof: 0, /* xColumn */ FxColumn: 0, /* xRowid */ FxRowid: 0, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239116:31 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:241241:31 */ //************* End of fts5.c *********************************************** //************* Begin file stmt.c ******************************************* @@ -241056,1058 +243291,1061 @@ var fts5Vocab = Sqlite3_module{ // .header on // SELECT * FROM stmt; -//************* End of stmt.c *********************************************** +// ************* End of stmt.c *********************************************** // Return the source-id for this library -func Xsqlite3_sourceid(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:239456:23: */ - return ts + 38845 /* "2022-05-06 15:25..." */ +func Xsqlite3_sourceid(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:241618:23: */ + return ts + 38810 /* "2022-07-21 15:24..." */ } //************************* End of sqlite3.c ***************************** func init() { - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aEQb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 210 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21691:51: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aGTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 216 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21692:51: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aLTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 204 // testdata/sqlite-amalgamation-3380500/sqlite3.c:21690:51: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 0)) = geopolyBBoxStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:202120:8: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 8)) = geopolyBBoxFinal // testdata/sqlite-amalgamation-3380500/sqlite3.c:202120:25: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 24)) = renameColumnFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:111122:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 96)) = renameTableFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:111123:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 168)) = renameTableTest // testdata/sqlite-amalgamation-3380500/sqlite3.c:111124:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 240)) = dropColumnFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:111125:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 312)) = renameQuotefixFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:111126:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 24)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123327:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 96)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123328:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 168)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123329:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 240)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123330:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 312)) = soundexFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123334:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 384)) = loadExt // testdata/sqlite-amalgamation-3380500/sqlite3.c:123337:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 456)) = loadExt // testdata/sqlite-amalgamation-3380500/sqlite3.c:123338:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 528)) = compileoptionusedFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123344:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 600)) = compileoptiongetFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123345:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 672)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123347:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 744)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123348:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 816)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123349:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 888)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123352:12: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 960)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123354:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1032)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123355:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1104)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123356:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1176)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123357:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1248)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123358:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1320)) = trimFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123359:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1392)) = minmaxFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123360:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1536)) = minmaxStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123362:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1544)) = minMaxFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123362:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1552)) = minMaxValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:123362:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1608)) = minmaxFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123364:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1752)) = minmaxStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123366:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1760)) = minMaxFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123366:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1768)) = minMaxValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:123366:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1824)) = typeofFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123368:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1896)) = subtypeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123369:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1968)) = lengthFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123370:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2040)) = instrFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123371:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2112)) = printfFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123372:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2184)) = printfFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123373:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2256)) = unicodeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123374:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2328)) = charFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123375:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2400)) = absFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123376:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2472)) = roundFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123378:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2544)) = roundFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123379:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2616)) = upperFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123381:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2688)) = lowerFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123382:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2760)) = hexFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123383:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2832)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123384:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2904)) = randomFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123385:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2976)) = randomBlob // testdata/sqlite-amalgamation-3380500/sqlite3.c:123386:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3048)) = nullifFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123387:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3120)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123388:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3192)) = sourceidFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123389:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3264)) = errlogFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123390:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3336)) = quoteFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123391:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3408)) = last_insert_rowid // testdata/sqlite-amalgamation-3380500/sqlite3.c:123392:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3480)) = changes // testdata/sqlite-amalgamation-3380500/sqlite3.c:123393:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3552)) = total_changes // testdata/sqlite-amalgamation-3380500/sqlite3.c:123394:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3624)) = replaceFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123395:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3696)) = zeroblobFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123396:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3768)) = substrFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123397:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3840)) = substrFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123398:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3912)) = substrFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123399:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3984)) = substrFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123400:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4056)) = sumStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123401:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4064)) = sumFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123401:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4072)) = sumFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123401:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4080)) = sumInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123401:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4128)) = sumStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123402:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4136)) = totalFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123402:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4144)) = totalFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123402:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4152)) = sumInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123402:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4200)) = sumStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123403:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4208)) = avgFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123403:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4216)) = avgFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123403:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4224)) = sumInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123403:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4272)) = countStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123404:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4280)) = countFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123404:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4288)) = countFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123404:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4296)) = countInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123404:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4344)) = countStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123407:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4352)) = countFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123407:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4360)) = countFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123407:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4368)) = countInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123407:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4416)) = groupConcatStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123409:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4424)) = groupConcatFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123409:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4432)) = groupConcatValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:123409:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4440)) = groupConcatInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123409:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4488)) = groupConcatStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:123411:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4496)) = groupConcatFinalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:123411:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4504)) = groupConcatValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:123411:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4512)) = groupConcatInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:123411:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4544 /* .pUserData */)) = uintptr(unsafe.Pointer(&globInfo)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:123414:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4560)) = likeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123414:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4616 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:123419:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4632)) = likeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123419:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4688 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:123420:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4704)) = likeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123420:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4904)) = xCeil // testdata/sqlite-amalgamation-3380500/sqlite3.c:123428:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4920)) = ceilingFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123428:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4976)) = xCeil // testdata/sqlite-amalgamation-3380500/sqlite3.c:123429:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4992)) = ceilingFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123429:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5048)) = xFloor // testdata/sqlite-amalgamation-3380500/sqlite3.c:123430:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5064)) = ceilingFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123430:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5120)) = libc.Xtrunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123432:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5136)) = ceilingFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123432:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5208)) = logFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123434:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5280)) = logFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123435:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5352)) = logFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123436:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5424)) = logFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123437:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5496)) = logFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123438:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5552)) = libc.Xexp // testdata/sqlite-amalgamation-3380500/sqlite3.c:123439:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5568)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123439:5: - *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5624)) = libc.Xpow // testdata/sqlite-amalgamation-3380500/sqlite3.c:123440:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5640)) = math2Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123440:5: - *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5696)) = libc.Xpow // testdata/sqlite-amalgamation-3380500/sqlite3.c:123441:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5712)) = math2Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123441:5: - *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5768)) = libc.Xfmod // testdata/sqlite-amalgamation-3380500/sqlite3.c:123442:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5784)) = math2Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123442:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5840)) = libc.Xacos // testdata/sqlite-amalgamation-3380500/sqlite3.c:123443:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5856)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123443:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5912)) = libc.Xasin // testdata/sqlite-amalgamation-3380500/sqlite3.c:123444:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5928)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123444:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5984)) = libc.Xatan // testdata/sqlite-amalgamation-3380500/sqlite3.c:123445:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6000)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123445:5: - *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6056)) = libc.Xatan2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:123446:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6072)) = math2Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123446:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6128)) = libc.Xcos // testdata/sqlite-amalgamation-3380500/sqlite3.c:123447:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6144)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123447:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6200)) = libc.Xsin // testdata/sqlite-amalgamation-3380500/sqlite3.c:123448:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6216)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123448:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6272)) = libc.Xtan // testdata/sqlite-amalgamation-3380500/sqlite3.c:123449:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6288)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123449:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6344)) = libc.Xcosh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123450:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6360)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123450:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6416)) = libc.Xsinh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123451:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6432)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123451:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6488)) = libc.Xtanh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123452:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6504)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123452:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6560)) = libc.Xacosh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123454:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6576)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123454:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6632)) = libc.Xasinh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123455:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6648)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123455:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6704)) = libc.Xatanh // testdata/sqlite-amalgamation-3380500/sqlite3.c:123456:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6720)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123456:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6776)) = libc.Xsqrt // testdata/sqlite-amalgamation-3380500/sqlite3.c:123458:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6792)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123458:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6848)) = degToRad // testdata/sqlite-amalgamation-3380500/sqlite3.c:123459:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6864)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123459:5: - *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6920)) = radToDeg // testdata/sqlite-amalgamation-3380500/sqlite3.c:123460:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6936)) = math1Func // testdata/sqlite-amalgamation-3380500/sqlite3.c:123460:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7008)) = piFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123461:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7080)) = signFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123463:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7152)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123464:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7224)) = versionFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:123465:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 8 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24403:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 24)) = juliandayFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24403:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 80 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24404:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 96)) = unixepochFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24404:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 152 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24405:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 168)) = dateFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24405:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 224 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24406:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 240)) = timeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24406:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 296 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24407:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 312)) = datetimeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24407:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 368 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:24408:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 384)) = strftimeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24408:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 456)) = ctimeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24409:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 528)) = ctimestampFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24410:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 600)) = cdateFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:24411:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 0)) = geopolyAreaFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202102:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 24)) = geopolyBlobFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202103:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 48)) = geopolyJsonFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202104:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 72)) = geopolySvgFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202105:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 96)) = geopolyWithinFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202106:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 120)) = geopolyContainsPointFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202107:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 144)) = geopolyOverlapFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202108:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 168)) = geopolyDebugFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202109:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 192)) = geopolyBBoxFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202110:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 216)) = geopolyXformFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202111:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 240)) = geopolyRegularFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202112:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 264)) = geopolyCcwFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:202113:8: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 24)) = jsonRemoveFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195871:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 96)) = jsonArrayFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195872:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 168)) = jsonArrayLengthFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195873:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 240)) = jsonArrayLengthFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195874:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 312)) = jsonExtractFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195875:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 384)) = jsonExtractFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195876:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 456)) = jsonExtractFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195877:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 528)) = jsonSetFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195878:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 600)) = jsonObjectFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195879:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 672)) = jsonPatchFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195880:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 744)) = jsonQuoteFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195881:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 816)) = jsonRemoveFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195882:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 888)) = jsonReplaceFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195883:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 960)) = jsonSetFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195884:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1032)) = jsonTypeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195885:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1104)) = jsonTypeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195886:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1176)) = jsonValidFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:195887:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1248)) = jsonArrayStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:195892:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1256)) = jsonArrayFinal // testdata/sqlite-amalgamation-3380500/sqlite3.c:195892:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1264)) = jsonArrayValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:195892:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1272)) = jsonGroupInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:195892:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1320)) = jsonObjectStep // testdata/sqlite-amalgamation-3380500/sqlite3.c:195895:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1328)) = jsonObjectFinal // testdata/sqlite-amalgamation-3380500/sqlite3.c:195895:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1336)) = jsonObjectValue // testdata/sqlite-amalgamation-3380500/sqlite3.c:195895:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1344)) = jsonGroupInverse // testdata/sqlite-amalgamation-3380500/sqlite3.c:195895:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 8 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonEachModule)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:195913:31: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 24 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonTreeModule)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:195914:31: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) WINBOOL }{libc.XAreFileApisANSI})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43432:32: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aEQb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 210 // testdata/sqlite-amalgamation-3390200/sqlite3.c:21833:51: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aGTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 216 // testdata/sqlite-amalgamation-3390200/sqlite3.c:21834:51: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&Xsqlite3aLTb)) + 0)) = uintptr(unsafe.Pointer(&Xsqlite3UpperToLower)) + 204 // testdata/sqlite-amalgamation-3390200/sqlite3.c:21832:51: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 0)) = geopolyBBoxStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:204242:8: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAgg)) + 8)) = geopolyBBoxFinal // testdata/sqlite-amalgamation-3390200/sqlite3.c:204242:25: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 24)) = renameColumnFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:112292:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 96)) = renameTableFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:112293:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 168)) = renameTableTest // testdata/sqlite-amalgamation-3390200/sqlite3.c:112294:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 240)) = dropColumnFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:112295:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aAlterTableFuncs)) + 312)) = renameQuotefixFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:112296:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 24)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124545:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 96)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124546:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 168)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124547:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 240)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124548:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 312)) = soundexFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124552:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 384)) = loadExt // testdata/sqlite-amalgamation-3390200/sqlite3.c:124555:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 456)) = loadExt // testdata/sqlite-amalgamation-3390200/sqlite3.c:124556:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 528)) = compileoptionusedFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124562:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 600)) = compileoptiongetFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124563:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 672)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124565:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 744)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124566:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 816)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124567:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 888)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124569:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 960)) = trimFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124571:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1032)) = trimFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124572:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1104)) = trimFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124573:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1176)) = trimFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124574:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1248)) = trimFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124575:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1320)) = trimFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124576:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1392)) = minmaxFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124577:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1536)) = minmaxStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:124579:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1544)) = minMaxFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124579:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1552)) = minMaxValue // testdata/sqlite-amalgamation-3390200/sqlite3.c:124579:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1608)) = minmaxFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124581:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1752)) = minmaxStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:124583:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1760)) = minMaxFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124583:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1768)) = minMaxValue // testdata/sqlite-amalgamation-3390200/sqlite3.c:124583:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1824)) = typeofFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124585:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1896)) = subtypeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124586:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 1968)) = lengthFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124587:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2040)) = instrFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124588:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2112)) = printfFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124589:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2184)) = printfFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124590:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2256)) = unicodeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124591:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2328)) = charFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124592:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2400)) = absFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124593:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2472)) = roundFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124595:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2544)) = roundFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124596:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2616)) = upperFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124598:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2688)) = lowerFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124599:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2760)) = hexFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124600:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2832)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124601:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2904)) = randomFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124602:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 2976)) = randomBlob // testdata/sqlite-amalgamation-3390200/sqlite3.c:124603:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3048)) = nullifFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124604:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3120)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124605:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3192)) = sourceidFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124606:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3264)) = errlogFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124607:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3336)) = quoteFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124608:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3408)) = last_insert_rowid // testdata/sqlite-amalgamation-3390200/sqlite3.c:124609:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3480)) = changes // testdata/sqlite-amalgamation-3390200/sqlite3.c:124610:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3552)) = total_changes // testdata/sqlite-amalgamation-3390200/sqlite3.c:124611:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3624)) = replaceFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124612:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3696)) = zeroblobFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124613:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3768)) = substrFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124614:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3840)) = substrFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124615:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3912)) = substrFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124616:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 3984)) = substrFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124617:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4056)) = sumStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:124618:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4064)) = sumFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124618:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4072)) = sumFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124618:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4080)) = sumInverse // testdata/sqlite-amalgamation-3390200/sqlite3.c:124618:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4128)) = sumStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:124619:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4136)) = totalFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124619:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4144)) = totalFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124619:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4152)) = sumInverse // testdata/sqlite-amalgamation-3390200/sqlite3.c:124619:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4200)) = sumStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:124620:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4208)) = avgFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124620:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4216)) = avgFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124620:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4224)) = sumInverse // testdata/sqlite-amalgamation-3390200/sqlite3.c:124620:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4272)) = countStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:124621:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4280)) = countFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124621:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4288)) = countFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124621:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4296)) = countInverse // testdata/sqlite-amalgamation-3390200/sqlite3.c:124621:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4344)) = countStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:124624:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4352)) = countFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124624:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4360)) = countFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124624:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4368)) = countInverse // testdata/sqlite-amalgamation-3390200/sqlite3.c:124624:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4416)) = groupConcatStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:124626:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4424)) = groupConcatFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124626:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4432)) = groupConcatValue // testdata/sqlite-amalgamation-3390200/sqlite3.c:124626:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4440)) = groupConcatInverse // testdata/sqlite-amalgamation-3390200/sqlite3.c:124626:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4488)) = groupConcatStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:124628:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4496)) = groupConcatFinalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:124628:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4504)) = groupConcatValue // testdata/sqlite-amalgamation-3390200/sqlite3.c:124628:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4512)) = groupConcatInverse // testdata/sqlite-amalgamation-3390200/sqlite3.c:124628:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4544 /* .pUserData */)) = uintptr(unsafe.Pointer(&globInfo)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:124631:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4560)) = likeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124631:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4616 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:124636:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4632)) = likeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124636:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4688 /* .pUserData */)) = uintptr(unsafe.Pointer(&likeInfoNorm)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:124637:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4704)) = likeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124637:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4904)) = xCeil // testdata/sqlite-amalgamation-3390200/sqlite3.c:124645:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4920)) = ceilingFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124645:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4976)) = xCeil // testdata/sqlite-amalgamation-3390200/sqlite3.c:124646:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 4992)) = ceilingFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124646:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5048)) = xFloor // testdata/sqlite-amalgamation-3390200/sqlite3.c:124647:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5064)) = ceilingFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124647:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5120)) = libc.Xtrunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124649:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5136)) = ceilingFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124649:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5208)) = logFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124651:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5280)) = logFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124652:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5352)) = logFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124653:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5424)) = logFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124654:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5496)) = logFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124655:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5552)) = libc.Xexp // testdata/sqlite-amalgamation-3390200/sqlite3.c:124656:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5568)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124656:5: + *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5624)) = libc.Xpow // testdata/sqlite-amalgamation-3390200/sqlite3.c:124657:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5640)) = math2Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124657:5: + *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5696)) = libc.Xpow // testdata/sqlite-amalgamation-3390200/sqlite3.c:124658:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5712)) = math2Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124658:5: + *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5768)) = libc.Xfmod // testdata/sqlite-amalgamation-3390200/sqlite3.c:124659:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5784)) = math2Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124659:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5840)) = libc.Xacos // testdata/sqlite-amalgamation-3390200/sqlite3.c:124660:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5856)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124660:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5912)) = libc.Xasin // testdata/sqlite-amalgamation-3390200/sqlite3.c:124661:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5928)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124661:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 5984)) = libc.Xatan // testdata/sqlite-amalgamation-3390200/sqlite3.c:124662:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6000)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124662:5: + *(*func(*libc.TLS, float64, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6056)) = libc.Xatan2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:124663:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6072)) = math2Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124663:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6128)) = libc.Xcos // testdata/sqlite-amalgamation-3390200/sqlite3.c:124664:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6144)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124664:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6200)) = libc.Xsin // testdata/sqlite-amalgamation-3390200/sqlite3.c:124665:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6216)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124665:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6272)) = libc.Xtan // testdata/sqlite-amalgamation-3390200/sqlite3.c:124666:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6288)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124666:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6344)) = libc.Xcosh // testdata/sqlite-amalgamation-3390200/sqlite3.c:124667:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6360)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124667:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6416)) = libc.Xsinh // testdata/sqlite-amalgamation-3390200/sqlite3.c:124668:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6432)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124668:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6488)) = libc.Xtanh // testdata/sqlite-amalgamation-3390200/sqlite3.c:124669:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6504)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124669:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6560)) = libc.Xacosh // testdata/sqlite-amalgamation-3390200/sqlite3.c:124671:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6576)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124671:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6632)) = libc.Xasinh // testdata/sqlite-amalgamation-3390200/sqlite3.c:124672:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6648)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124672:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6704)) = libc.Xatanh // testdata/sqlite-amalgamation-3390200/sqlite3.c:124673:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6720)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124673:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6776)) = libc.Xsqrt // testdata/sqlite-amalgamation-3390200/sqlite3.c:124675:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6792)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124675:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6848)) = degToRad // testdata/sqlite-amalgamation-3390200/sqlite3.c:124676:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6864)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124676:5: + *(*func(*libc.TLS, float64) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6920)) = radToDeg // testdata/sqlite-amalgamation-3390200/sqlite3.c:124677:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 6936)) = math1Func // testdata/sqlite-amalgamation-3390200/sqlite3.c:124677:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7008)) = piFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124678:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7080)) = signFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124680:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7152)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124681:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aBuiltinFunc)) + 7224)) = versionFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:124682:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 8 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:24597:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 24)) = juliandayFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:24597:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 80 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:24598:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 96)) = unixepochFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:24598:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 152 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:24599:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 168)) = dateFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:24599:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 224 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:24600:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 240)) = timeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:24600:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 296 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:24601:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 312)) = datetimeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:24601:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 368 /* .pUserData */)) = uintptr(unsafe.Pointer(&Xsqlite3Config)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:24602:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 384)) = strftimeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:24602:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 456)) = ctimeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:24603:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 528)) = ctimestampFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:24604:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aDateTimeFuncs)) + 600)) = cdateFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:24605:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 0)) = geopolyAreaFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204224:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 24)) = geopolyBlobFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204225:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 48)) = geopolyJsonFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204226:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 72)) = geopolySvgFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204227:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 96)) = geopolyWithinFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204228:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 120)) = geopolyContainsPointFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204229:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 144)) = geopolyOverlapFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204230:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 168)) = geopolyDebugFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204231:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 192)) = geopolyBBoxFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204232:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 216)) = geopolyXformFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204233:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 240)) = geopolyRegularFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204234:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 264)) = geopolyCcwFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:204235:8: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 24)) = jsonRemoveFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:197993:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 96)) = jsonArrayFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:197994:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 168)) = jsonArrayLengthFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:197995:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 240)) = jsonArrayLengthFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:197996:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 312)) = jsonExtractFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:197997:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 384)) = jsonExtractFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:197998:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 456)) = jsonExtractFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:197999:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 528)) = jsonSetFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:198000:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 600)) = jsonObjectFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:198001:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 672)) = jsonPatchFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:198002:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 744)) = jsonQuoteFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:198003:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 816)) = jsonRemoveFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:198004:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 888)) = jsonReplaceFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:198005:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 960)) = jsonSetFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:198006:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1032)) = jsonTypeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:198007:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1104)) = jsonTypeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:198008:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1176)) = jsonValidFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:198009:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1248)) = jsonArrayStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:198014:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1256)) = jsonArrayFinal // testdata/sqlite-amalgamation-3390200/sqlite3.c:198014:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1264)) = jsonArrayValue // testdata/sqlite-amalgamation-3390200/sqlite3.c:198014:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1272)) = jsonGroupInverse // testdata/sqlite-amalgamation-3390200/sqlite3.c:198014:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1320)) = jsonObjectStep // testdata/sqlite-amalgamation-3390200/sqlite3.c:198017:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1328)) = jsonObjectFinal // testdata/sqlite-amalgamation-3390200/sqlite3.c:198017:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1336)) = jsonObjectValue // testdata/sqlite-amalgamation-3390200/sqlite3.c:198017:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aJsonFunc)) + 1344)) = jsonGroupInverse // testdata/sqlite-amalgamation-3390200/sqlite3.c:198017:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 8 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonEachModule)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:198035:31: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aMod)) + 24 /* .pModule */)) = uintptr(unsafe.Pointer(&jsonTreeModule)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:198036:31: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) WINBOOL }{libc.XAreFileApisANSI})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44071:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 80 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE) WINBOOL - }{libc.XCloseHandle})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43457:32: + }{libc.XCloseHandle})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44096:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 104 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE) HANDLE - }{libc.XCreateFileA})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43462:32: + }{libc.XCreateFileA})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44101:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 128 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCWSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE) HANDLE - }{libc.XCreateFileW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43471:32: + }{libc.XCreateFileW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44110:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 152 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, LPSECURITY_ATTRIBUTES, DWORD, DWORD, DWORD, LPCSTR) HANDLE - }{libc.XCreateFileMappingA})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43482:32: + }{libc.XCreateFileMappingA})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44121:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 176 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, LPSECURITY_ATTRIBUTES, DWORD, DWORD, DWORD, LPCWSTR) HANDLE - }{libc.XCreateFileMappingW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43492:32: + }{libc.XCreateFileMappingW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44131:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 200 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPSECURITY_ATTRIBUTES, WINBOOL, LPCWSTR) HANDLE - }{libc.XCreateMutexW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43501:32: + }{libc.XCreateMutexW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44140:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 224 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCSTR) WINBOOL - }{libc.XDeleteFileA})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43510:32: + }{libc.XDeleteFileA})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44149:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 248 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCWSTR) WINBOOL - }{libc.XDeleteFileW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43518:32: + }{libc.XDeleteFileW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44157:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 320 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE) WINBOOL - }{libc.XFlushFileBuffers})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43543:32: + }{libc.XFlushFileBuffers})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44182:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 344 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, DWORD, LPCVOID, DWORD, DWORD, LPSTR, DWORD, uintptr) DWORD - }{libc.XFormatMessageA})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43548:32: + }{libc.XFormatMessageA})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44187:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 368 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, DWORD, LPCVOID, DWORD, DWORD, LPWSTR, DWORD, uintptr) DWORD - }{libc.XFormatMessageW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43557:32: + }{libc.XFormatMessageW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44196:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 392 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HMODULE) WINBOOL - }{libc.XFreeLibrary})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43566:32: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 416 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetCurrentProcessId})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43573:32: + }{libc.XFreeLibrary})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44205:32: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 416 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetCurrentProcessId})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44212:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 440 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCSTR, LPDWORD, LPDWORD, LPDWORD, LPDWORD) WINBOOL - }{libc.XGetDiskFreeSpaceA})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43578:32: + }{libc.XGetDiskFreeSpaceA})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44217:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 464 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCWSTR, LPDWORD, LPDWORD, LPDWORD, LPDWORD) WINBOOL - }{libc.XGetDiskFreeSpaceW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43587:32: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 488 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCSTR) DWORD }{libc.XGetFileAttributesA})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43596:32: + }{libc.XGetDiskFreeSpaceW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44226:32: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 488 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCSTR) DWORD }{libc.XGetFileAttributesA})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44235:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 512 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCWSTR) DWORD - }{libc.XGetFileAttributesW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43604:32: + }{libc.XGetFileAttributesW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44243:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 536 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCWSTR, GET_FILEEX_INFO_LEVELS, LPVOID) WINBOOL - }{libc.XGetFileAttributesExW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43612:32: + }{libc.XGetFileAttributesExW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44251:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 560 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, LPDWORD) DWORD - }{libc.XGetFileSize})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43621:32: + }{libc.XGetFileSize})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44260:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 584 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCSTR, DWORD, LPSTR, uintptr) DWORD - }{libc.XGetFullPathNameA})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43629:32: + }{libc.XGetFullPathNameA})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44268:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 608 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCWSTR, DWORD, LPWSTR, uintptr) DWORD - }{libc.XGetFullPathNameW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43638:32: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 632 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetLastError})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43646:32: + }{libc.XGetFullPathNameW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44277:32: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 632 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetLastError})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44285:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 656 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HMODULE, LPCSTR) FARPROC - }{libc.XGetProcAddress})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43657:32: + }{libc.XGetProcAddress})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44296:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 680 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPSYSTEM_INFO) - }{libc.XGetSystemInfo})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43667:32: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 704 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPSYSTEMTIME) }{libc.XGetSystemTime})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43674:32: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 728 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPFILETIME) }{libc.XGetSystemTimeAsFileTime})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43679:32: + }{libc.XGetSystemInfo})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44306:32: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 704 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPSYSTEMTIME) }{libc.XGetSystemTime})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44313:32: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 728 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPFILETIME) }{libc.XGetSystemTimeAsFileTime})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44318:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 752 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, DWORD, LPSTR) DWORD - }{libc.XGetTempPathA})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43688:32: + }{libc.XGetTempPathA})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44327:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 776 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, DWORD, LPWSTR) DWORD - }{libc.XGetTempPathW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43696:32: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 800 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetTickCount})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43704:32: + }{libc.XGetTempPathW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44335:32: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 800 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) DWORD }{libc.XGetTickCount})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44343:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 824 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPOSVERSIONINFOA) WINBOOL - }{libc.XGetVersionExA})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43712:32: + }{libc.XGetVersionExA})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44351:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 848 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPOSVERSIONINFOW) WINBOOL - }{libc.XGetVersionExW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43722:32: + }{libc.XGetVersionExW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44361:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 872 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD, SIZE_T) LPVOID - }{libc.XHeapAlloc})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43730:32: + }{libc.XHeapAlloc})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44369:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 896 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, DWORD, SIZE_T, SIZE_T) HANDLE - }{libc.XHeapCreate})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43736:32: + }{libc.XHeapCreate})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44375:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 920 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE) WINBOOL - }{libc.XHeapDestroy})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43745:32: + }{libc.XHeapDestroy})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44384:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 944 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD, LPVOID) WINBOOL - }{libc.XHeapFree})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43752:32: + }{libc.XHeapFree})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44391:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 968 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD, LPVOID, SIZE_T) LPVOID - }{libc.XHeapReAlloc})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43756:32: + }{libc.XHeapReAlloc})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44395:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 992 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD, LPCVOID) SIZE_T - }{libc.XHeapSize})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43761:32: + }{libc.XHeapSize})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44400:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1016 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD, LPCVOID) WINBOOL - }{libc.XHeapValidate})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43767:32: + }{libc.XHeapValidate})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44406:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1040 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD) SIZE_T - }{libc.XHeapCompact})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43776:32: + }{libc.XHeapCompact})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44415:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1064 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCSTR) HMODULE - }{libc.XLoadLibraryA})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43784:32: + }{libc.XLoadLibraryA})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44423:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1088 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCWSTR) HMODULE - }{libc.XLoadLibraryW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43793:32: + }{libc.XLoadLibraryW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44432:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1112 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HLOCAL) HLOCAL - }{libc.XLocalFree})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43801:32: + }{libc.XLocalFree})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44440:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1136 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD, DWORD, DWORD, DWORD) WINBOOL - }{libc.XLockFile})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43809:32: + }{libc.XLockFile})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44448:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1160 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED) WINBOOL - }{libc.XLockFileEx})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43820:32: + }{libc.XLockFileEx})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44459:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1184 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD, DWORD, DWORD, SIZE_T) LPVOID - }{libc.XMapViewOfFile})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43832:32: + }{libc.XMapViewOfFile})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44471:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1208 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, UINT, DWORD, LPCCH, int32, LPWSTR, int32) int32 - }{libc.XMultiByteToWideChar})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43840:32: + }{libc.XMultiByteToWideChar})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44479:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1232 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr) WINBOOL - }{libc.XQueryPerformanceCounter})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43845:32: + }{libc.XQueryPerformanceCounter})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44484:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1256 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, LPVOID, DWORD, LPDWORD, LPOVERLAPPED) WINBOOL - }{libc.XReadFile})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43850:32: + }{libc.XReadFile})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44489:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1280 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE) WINBOOL - }{libc.XSetEndOfFile})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43855:32: + }{libc.XSetEndOfFile})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44494:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1304 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, LONG, PLONG, DWORD) DWORD - }{libc.XSetFilePointer})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43860:32: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1328 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, DWORD) }{libc.XSleep})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43869:32: + }{libc.XSetFilePointer})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44499:32: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1328 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, DWORD) }{libc.XSleep})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44508:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1352 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, LPFILETIME) WINBOOL - }{libc.XSystemTimeToFileTime})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43876:32: + }{libc.XSystemTimeToFileTime})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44515:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1376 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD, DWORD, DWORD, DWORD) WINBOOL - }{libc.XUnlockFile})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43882:32: + }{libc.XUnlockFile})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44521:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1400 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD, DWORD, DWORD, LPOVERLAPPED) WINBOOL - }{libc.XUnlockFileEx})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43893:32: + }{libc.XUnlockFileEx})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44532:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1424 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCVOID) WINBOOL - }{libc.XUnmapViewOfFile})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43902:32: + }{libc.XUnmapViewOfFile})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44541:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1448 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, UINT, DWORD, LPCWCH, int32, LPSTR, int32, LPCCH, LPBOOL) int32 - }{libc.XWideCharToMultiByte})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43909:32: + }{libc.XWideCharToMultiByte})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44548:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1472 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, LPCVOID, DWORD, LPDWORD, LPOVERLAPPED) WINBOOL - }{libc.XWriteFile})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43914:32: + }{libc.XWriteFile})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44553:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1520 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD) DWORD - }{libc.XWaitForSingleObject})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43929:32: + }{libc.XWaitForSingleObject})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44568:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1544 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, HANDLE, DWORD, WINBOOL) DWORD - }{libc.XWaitForSingleObjectEx})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:43938:32: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1736 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCSTR) }{libc.XOutputDebugStringA})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:44009:32: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1760 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCWSTR) }{libc.XOutputDebugStringW})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:44017:32: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1784 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) HANDLE }{libc.XGetProcessHeap})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:44024:32: + }{libc.XWaitForSingleObjectEx})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44577:32: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1736 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCSTR) }{libc.XOutputDebugStringA})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44648:32: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1760 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, LPCWSTR) }{libc.XOutputDebugStringW})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44656:32: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1784 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) HANDLE }{libc.XGetProcessHeap})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44663:32: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1904 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, LPCVOID, SIZE_T) WINBOOL - }{libc.XFlushViewOfFile})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:44071:33: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 24)) = row_numberStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158907:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 32)) = row_numberValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158907:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 40)) = row_numberValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158907:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 48)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158907:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 56 /* .zName */)) = uintptr(unsafe.Pointer(&row_numberName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158907:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 96)) = dense_rankStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158908:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 104)) = dense_rankValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158908:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 112)) = dense_rankValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158908:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 120)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158908:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 128 /* .zName */)) = uintptr(unsafe.Pointer(&dense_rankName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158908:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 168)) = rankStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158909:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 176)) = rankValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158909:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 184)) = rankValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158909:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 192)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158909:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 200 /* .zName */)) = uintptr(unsafe.Pointer(&rankName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158909:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 240)) = percent_rankStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158910:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 248)) = percent_rankValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158910:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 256)) = percent_rankValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158910:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 264)) = percent_rankInvFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158910:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 272 /* .zName */)) = uintptr(unsafe.Pointer(&percent_rankName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158910:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 312)) = cume_distStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158911:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 320)) = cume_distValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158911:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 328)) = cume_distValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158911:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 336)) = cume_distInvFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158911:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 344 /* .zName */)) = uintptr(unsafe.Pointer(&cume_distName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158911:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 384)) = ntileStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158912:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 392)) = ntileValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158912:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 400)) = ntileValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158912:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 408)) = ntileInvFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158912:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 416 /* .zName */)) = uintptr(unsafe.Pointer(&ntileName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158912:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 456)) = last_valueStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158913:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 464)) = last_valueFinalizeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158913:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 472)) = last_valueValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158913:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 480)) = last_valueInvFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158913:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 488 /* .zName */)) = uintptr(unsafe.Pointer(&last_valueName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158913:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 528)) = nth_valueStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158914:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 536)) = nth_valueFinalizeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158914:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 544)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158914:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 552)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158914:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 560 /* .zName */)) = uintptr(unsafe.Pointer(&nth_valueName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158914:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 600)) = first_valueStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158915:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 608)) = first_valueFinalizeFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158915:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 616)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158915:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 624)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158915:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 632 /* .zName */)) = uintptr(unsafe.Pointer(&first_valueName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158915:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 672)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158916:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 680)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158916:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 688)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158916:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 696)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158916:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 704 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158916:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 744)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158917:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 752)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158917:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 760)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158917:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 768)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158917:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 776 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158917:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 816)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158918:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 824)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158918:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 832)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158918:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 840)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158918:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 848 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158918:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 888)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158919:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 896)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158919:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 904)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158919:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 912)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158919:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 920 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158919:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 960)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158920:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 968)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158920:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 976)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158920:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 984)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158920:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 992 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158920:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1032)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158921:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1040)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158921:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1048)) = noopValueFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158921:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1056)) = noopStepFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:158921:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1064 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:158921:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&attach_func)) + 24)) = attachFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:113493:5: - *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 0)) = sqlite3MemMalloc // testdata/sqlite-amalgamation-3380500/sqlite3.c:25300:6: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 8)) = sqlite3MemFree // testdata/sqlite-amalgamation-3380500/sqlite3.c:25301:6: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 16)) = sqlite3MemRealloc // testdata/sqlite-amalgamation-3380500/sqlite3.c:25302:6: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 24)) = sqlite3MemSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:25303:6: - *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 32)) = sqlite3MemRoundup // testdata/sqlite-amalgamation-3380500/sqlite3.c:25304:6: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 40)) = sqlite3MemInit // testdata/sqlite-amalgamation-3380500/sqlite3.c:25305:6: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 48)) = sqlite3MemShutdown // testdata/sqlite-amalgamation-3380500/sqlite3.c:25306:6: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 16)) = pcache1Init // testdata/sqlite-amalgamation-3380500/sqlite3.c:52465:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 24)) = pcache1Shutdown // testdata/sqlite-amalgamation-3380500/sqlite3.c:52466:5: - *(*func(*libc.TLS, int32, int32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 32)) = pcache1Create // testdata/sqlite-amalgamation-3380500/sqlite3.c:52467:5: - *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 40)) = pcache1Cachesize // testdata/sqlite-amalgamation-3380500/sqlite3.c:52468:5: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 48)) = pcache1Pagecount // testdata/sqlite-amalgamation-3380500/sqlite3.c:52469:5: - *(*func(*libc.TLS, uintptr, uint32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 56)) = pcache1Fetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:52470:5: - *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 64)) = pcache1Unpin // testdata/sqlite-amalgamation-3380500/sqlite3.c:52471:5: - *(*func(*libc.TLS, uintptr, uintptr, uint32, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 72)) = pcache1Rekey // testdata/sqlite-amalgamation-3380500/sqlite3.c:52472:5: - *(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 80)) = pcache1Truncate // testdata/sqlite-amalgamation-3380500/sqlite3.c:52473:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 88)) = pcache1Destroy // testdata/sqlite-amalgamation-3380500/sqlite3.c:52474:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 96)) = pcache1Shrink // testdata/sqlite-amalgamation-3380500/sqlite3.c:52475:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&detach_func)) + 24)) = detachFunc // testdata/sqlite-amalgamation-3380500/sqlite3.c:113473:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 8)) = fts5CreateMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234535:25: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 16)) = fts5ConnectMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234536:25: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 24)) = fts5BestIndexMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234537:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 32)) = fts5DisconnectMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234538:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 40)) = fts5DestroyMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234539:25: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 48)) = fts5OpenMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234540:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 56)) = fts5CloseMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234541:25: - *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 64)) = fts5FilterMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234542:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 72)) = fts5NextMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234543:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 80)) = fts5EofMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234544:25: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 88)) = fts5ColumnMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234545:25: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 96)) = fts5RowidMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234546:25: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 104)) = fts5UpdateMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234547:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 112)) = fts5BeginMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234548:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 120)) = fts5SyncMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234549:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 128)) = fts5CommitMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234550:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 136)) = fts5RollbackMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234551:25: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 144)) = fts5FindFunctionMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234552:25: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 152)) = fts5RenameMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234553:25: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 160)) = fts5SavepointMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234554:25: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 168)) = fts5ReleaseMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234555:25: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 176)) = fts5RollbackToMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:234556:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 184)) = fts5ShadowName // testdata/sqlite-amalgamation-3380500/sqlite3.c:234557:25: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 8)) = fts5VocabCreateMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239118:25: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 16)) = fts5VocabConnectMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239119:25: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 24)) = fts5VocabBestIndexMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239120:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 32)) = fts5VocabDisconnectMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239121:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 40)) = fts5VocabDestroyMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239122:25: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 48)) = fts5VocabOpenMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239123:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 56)) = fts5VocabCloseMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239124:25: - *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 64)) = fts5VocabFilterMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239125:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 72)) = fts5VocabNextMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239126:25: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 80)) = fts5VocabEofMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239127:25: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 88)) = fts5VocabColumnMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239128:25: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 96)) = fts5VocabRowidMethod // testdata/sqlite-amalgamation-3380500/sqlite3.c:239129:25: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 8)) = geopolyCreate // testdata/sqlite-amalgamation-3380500/sqlite3.c:202069:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 16)) = geopolyConnect // testdata/sqlite-amalgamation-3380500/sqlite3.c:202070:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 24)) = geopolyBestIndex // testdata/sqlite-amalgamation-3380500/sqlite3.c:202071:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 32)) = rtreeDisconnect // testdata/sqlite-amalgamation-3380500/sqlite3.c:202072:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 40)) = rtreeDestroy // testdata/sqlite-amalgamation-3380500/sqlite3.c:202073:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 48)) = rtreeOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:202074:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 56)) = rtreeClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:202075:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 64)) = geopolyFilter // testdata/sqlite-amalgamation-3380500/sqlite3.c:202076:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 72)) = rtreeNext // testdata/sqlite-amalgamation-3380500/sqlite3.c:202077:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 80)) = rtreeEof // testdata/sqlite-amalgamation-3380500/sqlite3.c:202078:3: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 88)) = geopolyColumn // testdata/sqlite-amalgamation-3380500/sqlite3.c:202079:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 96)) = rtreeRowid // testdata/sqlite-amalgamation-3380500/sqlite3.c:202080:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 104)) = geopolyUpdate // testdata/sqlite-amalgamation-3380500/sqlite3.c:202081:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 112)) = rtreeBeginTransaction // testdata/sqlite-amalgamation-3380500/sqlite3.c:202082:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 120)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3380500/sqlite3.c:202083:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 128)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3380500/sqlite3.c:202084:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 136)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3380500/sqlite3.c:202085:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 144)) = geopolyFindFunction // testdata/sqlite-amalgamation-3380500/sqlite3.c:202086:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 152)) = rtreeRename // testdata/sqlite-amalgamation-3380500/sqlite3.c:202087:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 160)) = rtreeSavepoint // testdata/sqlite-amalgamation-3380500/sqlite3.c:202088:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 184)) = rtreeShadowName // testdata/sqlite-amalgamation-3380500/sqlite3.c:202091:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 16)) = jsonEachConnect // testdata/sqlite-amalgamation-3380500/sqlite3.c:195811:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 24)) = jsonEachBestIndex // testdata/sqlite-amalgamation-3380500/sqlite3.c:195812:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 32)) = jsonEachDisconnect // testdata/sqlite-amalgamation-3380500/sqlite3.c:195813:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 48)) = jsonEachOpenEach // testdata/sqlite-amalgamation-3380500/sqlite3.c:195815:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 56)) = jsonEachClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:195816:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 64)) = jsonEachFilter // testdata/sqlite-amalgamation-3380500/sqlite3.c:195817:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 72)) = jsonEachNext // testdata/sqlite-amalgamation-3380500/sqlite3.c:195818:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 80)) = jsonEachEof // testdata/sqlite-amalgamation-3380500/sqlite3.c:195819:3: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 88)) = jsonEachColumn // testdata/sqlite-amalgamation-3380500/sqlite3.c:195820:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 96)) = jsonEachRowid // testdata/sqlite-amalgamation-3380500/sqlite3.c:195821:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 16)) = jsonEachConnect // testdata/sqlite-amalgamation-3380500/sqlite3.c:195839:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 24)) = jsonEachBestIndex // testdata/sqlite-amalgamation-3380500/sqlite3.c:195840:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 32)) = jsonEachDisconnect // testdata/sqlite-amalgamation-3380500/sqlite3.c:195841:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 48)) = jsonEachOpenTree // testdata/sqlite-amalgamation-3380500/sqlite3.c:195843:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 56)) = jsonEachClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:195844:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 64)) = jsonEachFilter // testdata/sqlite-amalgamation-3380500/sqlite3.c:195845:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 72)) = jsonEachNext // testdata/sqlite-amalgamation-3380500/sqlite3.c:195846:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 80)) = jsonEachEof // testdata/sqlite-amalgamation-3380500/sqlite3.c:195847:3: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 88)) = jsonEachColumn // testdata/sqlite-amalgamation-3380500/sqlite3.c:195848:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 96)) = jsonEachRowid // testdata/sqlite-amalgamation-3380500/sqlite3.c:195849:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 8)) = memdbClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:49245:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 16)) = memdbRead // testdata/sqlite-amalgamation-3380500/sqlite3.c:49246:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 24)) = memdbWrite // testdata/sqlite-amalgamation-3380500/sqlite3.c:49247:3: - *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 32)) = memdbTruncate // testdata/sqlite-amalgamation-3380500/sqlite3.c:49248:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 40)) = memdbSync // testdata/sqlite-amalgamation-3380500/sqlite3.c:49249:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 48)) = memdbFileSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:49250:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 56)) = memdbLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:49251:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 64)) = memdbLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:49252:3: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 80)) = memdbFileControl // testdata/sqlite-amalgamation-3380500/sqlite3.c:49254:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 96)) = memdbDeviceCharacteristics // testdata/sqlite-amalgamation-3380500/sqlite3.c:49256:3: - *(*func(*libc.TLS, uintptr, Sqlite3_int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 136)) = memdbFetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:49261:3: - *(*func(*libc.TLS, uintptr, Sqlite3_int64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 144)) = memdbUnfetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:49262:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 40)) = memdbOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:49225:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 56)) = memdbAccess // testdata/sqlite-amalgamation-3380500/sqlite3.c:49227:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 64)) = memdbFullPathname // testdata/sqlite-amalgamation-3380500/sqlite3.c:49228:3: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 72)) = memdbDlOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:49229:3: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 80)) = memdbDlError // testdata/sqlite-amalgamation-3380500/sqlite3.c:49230:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 88)) = memdbDlSym // testdata/sqlite-amalgamation-3380500/sqlite3.c:49231:3: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 96)) = memdbDlClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:49232:3: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 104)) = memdbRandomness // testdata/sqlite-amalgamation-3380500/sqlite3.c:49233:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 112)) = memdbSleep // testdata/sqlite-amalgamation-3380500/sqlite3.c:49234:3: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 128)) = memdbGetLastError // testdata/sqlite-amalgamation-3380500/sqlite3.c:49236:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 136)) = memdbCurrentTimeInt64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:49237:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 16)) = pragmaVtabConnect // testdata/sqlite-amalgamation-3380500/sqlite3.c:133161:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 24)) = pragmaVtabBestIndex // testdata/sqlite-amalgamation-3380500/sqlite3.c:133162:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 32)) = pragmaVtabDisconnect // testdata/sqlite-amalgamation-3380500/sqlite3.c:133163:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 48)) = pragmaVtabOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:133165:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 56)) = pragmaVtabClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:133166:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 64)) = pragmaVtabFilter // testdata/sqlite-amalgamation-3380500/sqlite3.c:133167:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 72)) = pragmaVtabNext // testdata/sqlite-amalgamation-3380500/sqlite3.c:133168:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 80)) = pragmaVtabEof // testdata/sqlite-amalgamation-3380500/sqlite3.c:133169:3: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 88)) = pragmaVtabColumn // testdata/sqlite-amalgamation-3380500/sqlite3.c:133170:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 96)) = pragmaVtabRowid // testdata/sqlite-amalgamation-3380500/sqlite3.c:133171:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 8)) = rbuVfsClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:208766:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 16)) = rbuVfsRead // testdata/sqlite-amalgamation-3380500/sqlite3.c:208767:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 24)) = rbuVfsWrite // testdata/sqlite-amalgamation-3380500/sqlite3.c:208768:5: - *(*func(*libc.TLS, uintptr, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 32)) = rbuVfsTruncate // testdata/sqlite-amalgamation-3380500/sqlite3.c:208769:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 40)) = rbuVfsSync // testdata/sqlite-amalgamation-3380500/sqlite3.c:208770:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 48)) = rbuVfsFileSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:208771:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 56)) = rbuVfsLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:208772:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 64)) = rbuVfsUnlock // testdata/sqlite-amalgamation-3380500/sqlite3.c:208773:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 72)) = rbuVfsCheckReservedLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:208774:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 80)) = rbuVfsFileControl // testdata/sqlite-amalgamation-3380500/sqlite3.c:208775:5: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 88)) = rbuVfsSectorSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:208776:5: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 96)) = rbuVfsDeviceCharacteristics // testdata/sqlite-amalgamation-3380500/sqlite3.c:208777:5: - *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 104)) = rbuVfsShmMap // testdata/sqlite-amalgamation-3380500/sqlite3.c:208778:5: - *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 112)) = rbuVfsShmLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:208779:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 120)) = rbuVfsShmBarrier // testdata/sqlite-amalgamation-3380500/sqlite3.c:208780:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 128)) = rbuVfsShmUnmap // testdata/sqlite-amalgamation-3380500/sqlite3.c:208781:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 8)) = rtreeCreate // testdata/sqlite-amalgamation-3380500/sqlite3.c:199407:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 16)) = rtreeConnect // testdata/sqlite-amalgamation-3380500/sqlite3.c:199408:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 24)) = rtreeBestIndex // testdata/sqlite-amalgamation-3380500/sqlite3.c:199409:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 32)) = rtreeDisconnect // testdata/sqlite-amalgamation-3380500/sqlite3.c:199410:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 40)) = rtreeDestroy // testdata/sqlite-amalgamation-3380500/sqlite3.c:199411:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 48)) = rtreeOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:199412:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 56)) = rtreeClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:199413:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 64)) = rtreeFilter // testdata/sqlite-amalgamation-3380500/sqlite3.c:199414:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 72)) = rtreeNext // testdata/sqlite-amalgamation-3380500/sqlite3.c:199415:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 80)) = rtreeEof // testdata/sqlite-amalgamation-3380500/sqlite3.c:199416:3: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 88)) = rtreeColumn // testdata/sqlite-amalgamation-3380500/sqlite3.c:199417:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 96)) = rtreeRowid // testdata/sqlite-amalgamation-3380500/sqlite3.c:199418:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 104)) = rtreeUpdate // testdata/sqlite-amalgamation-3380500/sqlite3.c:199419:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 112)) = rtreeBeginTransaction // testdata/sqlite-amalgamation-3380500/sqlite3.c:199420:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 120)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3380500/sqlite3.c:199421:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 128)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3380500/sqlite3.c:199422:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 136)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3380500/sqlite3.c:199423:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 152)) = rtreeRename // testdata/sqlite-amalgamation-3380500/sqlite3.c:199425:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 160)) = rtreeSavepoint // testdata/sqlite-amalgamation-3380500/sqlite3.c:199426:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 184)) = rtreeShadowName // testdata/sqlite-amalgamation-3380500/sqlite3.c:199429:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 8)) = fts5ApiUserData // testdata/sqlite-amalgamation-3380500/sqlite3.c:233994:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 16)) = fts5ApiColumnCount // testdata/sqlite-amalgamation-3380500/sqlite3.c:233995:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 24)) = fts5ApiRowCount // testdata/sqlite-amalgamation-3380500/sqlite3.c:233996:3: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 32)) = fts5ApiColumnTotalSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:233997:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 40)) = fts5ApiTokenize // testdata/sqlite-amalgamation-3380500/sqlite3.c:233998:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 48)) = fts5ApiPhraseCount // testdata/sqlite-amalgamation-3380500/sqlite3.c:233999:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 56)) = fts5ApiPhraseSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:234000:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 64)) = fts5ApiInstCount // testdata/sqlite-amalgamation-3380500/sqlite3.c:234001:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 72)) = fts5ApiInst // testdata/sqlite-amalgamation-3380500/sqlite3.c:234002:3: - *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 80)) = fts5ApiRowid // testdata/sqlite-amalgamation-3380500/sqlite3.c:234003:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 88)) = fts5ApiColumnText // testdata/sqlite-amalgamation-3380500/sqlite3.c:234004:3: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 96)) = fts5ApiColumnSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:234005:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 104)) = fts5ApiQueryPhrase // testdata/sqlite-amalgamation-3380500/sqlite3.c:234006:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 112)) = fts5ApiSetAuxdata // testdata/sqlite-amalgamation-3380500/sqlite3.c:234007:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 120)) = fts5ApiGetAuxdata // testdata/sqlite-amalgamation-3380500/sqlite3.c:234008:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 128)) = fts5ApiPhraseFirst // testdata/sqlite-amalgamation-3380500/sqlite3.c:234009:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 136)) = fts5ApiPhraseNext // testdata/sqlite-amalgamation-3380500/sqlite3.c:234010:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 144)) = fts5ApiPhraseFirstColumn // testdata/sqlite-amalgamation-3380500/sqlite3.c:234011:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 152)) = fts5ApiPhraseNextColumn // testdata/sqlite-amalgamation-3380500/sqlite3.c:234012:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 8)) = memjrnlClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:100046:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 16)) = memjrnlRead // testdata/sqlite-amalgamation-3380500/sqlite3.c:100047:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 24)) = memjrnlWrite // testdata/sqlite-amalgamation-3380500/sqlite3.c:100048:3: - *(*func(*libc.TLS, uintptr, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 32)) = memjrnlTruncate // testdata/sqlite-amalgamation-3380500/sqlite3.c:100049:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 40)) = memjrnlSync // testdata/sqlite-amalgamation-3380500/sqlite3.c:100050:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 48)) = memjrnlFileSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:100051:3: - *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 0)) = noopMutexInit // testdata/sqlite-amalgamation-3380500/sqlite3.c:27533:5: - *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 8)) = noopMutexEnd // testdata/sqlite-amalgamation-3380500/sqlite3.c:27534:5: - *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 16)) = noopMutexAlloc // testdata/sqlite-amalgamation-3380500/sqlite3.c:27535:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 24)) = noopMutexFree // testdata/sqlite-amalgamation-3380500/sqlite3.c:27536:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 32)) = noopMutexEnter // testdata/sqlite-amalgamation-3380500/sqlite3.c:27537:5: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 40)) = noopMutexTry // testdata/sqlite-amalgamation-3380500/sqlite3.c:27538:5: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 48)) = noopMutexLeave // testdata/sqlite-amalgamation-3380500/sqlite3.c:27539:5: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 0)) = Xsqlite3_aggregate_context // testdata/sqlite-amalgamation-3380500/sqlite3.c:129074:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 8)) = Xsqlite3_aggregate_count // testdata/sqlite-amalgamation-3380500/sqlite3.c:129076:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 16)) = Xsqlite3_bind_blob // testdata/sqlite-amalgamation-3380500/sqlite3.c:129080:3: - *(*func(*libc.TLS, uintptr, int32, float64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 24)) = Xsqlite3_bind_double // testdata/sqlite-amalgamation-3380500/sqlite3.c:129081:3: - *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 32)) = Xsqlite3_bind_int // testdata/sqlite-amalgamation-3380500/sqlite3.c:129082:3: - *(*func(*libc.TLS, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 40)) = Xsqlite3_bind_int64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129083:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 48)) = Xsqlite3_bind_null // testdata/sqlite-amalgamation-3380500/sqlite3.c:129084:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 56)) = Xsqlite3_bind_parameter_count // testdata/sqlite-amalgamation-3380500/sqlite3.c:129085:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 64)) = Xsqlite3_bind_parameter_index // testdata/sqlite-amalgamation-3380500/sqlite3.c:129086:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 72)) = Xsqlite3_bind_parameter_name // testdata/sqlite-amalgamation-3380500/sqlite3.c:129087:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 80)) = Xsqlite3_bind_text // testdata/sqlite-amalgamation-3380500/sqlite3.c:129088:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 88)) = Xsqlite3_bind_text16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129089:3: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 96)) = Xsqlite3_bind_value // testdata/sqlite-amalgamation-3380500/sqlite3.c:129090:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 104)) = Xsqlite3_busy_handler // testdata/sqlite-amalgamation-3380500/sqlite3.c:129091:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 112)) = Xsqlite3_busy_timeout // testdata/sqlite-amalgamation-3380500/sqlite3.c:129092:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 120)) = Xsqlite3_changes // testdata/sqlite-amalgamation-3380500/sqlite3.c:129093:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 128)) = Xsqlite3_close // testdata/sqlite-amalgamation-3380500/sqlite3.c:129094:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 136)) = Xsqlite3_collation_needed // testdata/sqlite-amalgamation-3380500/sqlite3.c:129095:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 144)) = Xsqlite3_collation_needed16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129096:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 152)) = Xsqlite3_column_blob // testdata/sqlite-amalgamation-3380500/sqlite3.c:129097:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 160)) = Xsqlite3_column_bytes // testdata/sqlite-amalgamation-3380500/sqlite3.c:129098:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 168)) = Xsqlite3_column_bytes16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129099:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 176)) = Xsqlite3_column_count // testdata/sqlite-amalgamation-3380500/sqlite3.c:129100:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 184)) = Xsqlite3_column_database_name // testdata/sqlite-amalgamation-3380500/sqlite3.c:129101:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 192)) = Xsqlite3_column_database_name16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129102:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 200)) = Xsqlite3_column_decltype // testdata/sqlite-amalgamation-3380500/sqlite3.c:129103:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 208)) = Xsqlite3_column_decltype16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129104:3: - *(*func(*libc.TLS, uintptr, int32) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 216)) = Xsqlite3_column_double // testdata/sqlite-amalgamation-3380500/sqlite3.c:129105:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 224)) = Xsqlite3_column_int // testdata/sqlite-amalgamation-3380500/sqlite3.c:129106:3: - *(*func(*libc.TLS, uintptr, int32) Sqlite_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 232)) = Xsqlite3_column_int64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129107:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 240)) = Xsqlite3_column_name // testdata/sqlite-amalgamation-3380500/sqlite3.c:129108:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 248)) = Xsqlite3_column_name16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129109:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 256)) = Xsqlite3_column_origin_name // testdata/sqlite-amalgamation-3380500/sqlite3.c:129110:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 264)) = Xsqlite3_column_origin_name16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129111:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 272)) = Xsqlite3_column_table_name // testdata/sqlite-amalgamation-3380500/sqlite3.c:129112:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 280)) = Xsqlite3_column_table_name16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129113:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 288)) = Xsqlite3_column_text // testdata/sqlite-amalgamation-3380500/sqlite3.c:129114:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 296)) = Xsqlite3_column_text16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129115:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 304)) = Xsqlite3_column_type // testdata/sqlite-amalgamation-3380500/sqlite3.c:129116:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 312)) = Xsqlite3_column_value // testdata/sqlite-amalgamation-3380500/sqlite3.c:129117:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 320)) = Xsqlite3_commit_hook // testdata/sqlite-amalgamation-3380500/sqlite3.c:129118:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 328)) = Xsqlite3_complete // testdata/sqlite-amalgamation-3380500/sqlite3.c:129119:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 336)) = Xsqlite3_complete16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129120:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 344)) = Xsqlite3_create_collation // testdata/sqlite-amalgamation-3380500/sqlite3.c:129121:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 352)) = Xsqlite3_create_collation16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129122:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, int32, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 360)) = Xsqlite3_create_function // testdata/sqlite-amalgamation-3380500/sqlite3.c:129123:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, int32, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 368)) = Xsqlite3_create_function16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129124:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 376)) = Xsqlite3_create_module // testdata/sqlite-amalgamation-3380500/sqlite3.c:129125:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 384)) = Xsqlite3_data_count // testdata/sqlite-amalgamation-3380500/sqlite3.c:129126:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 392)) = Xsqlite3_db_handle // testdata/sqlite-amalgamation-3380500/sqlite3.c:129127:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 400)) = Xsqlite3_declare_vtab // testdata/sqlite-amalgamation-3380500/sqlite3.c:129128:3: - *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 408)) = Xsqlite3_enable_shared_cache // testdata/sqlite-amalgamation-3380500/sqlite3.c:129129:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 416)) = Xsqlite3_errcode // testdata/sqlite-amalgamation-3380500/sqlite3.c:129130:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 424)) = Xsqlite3_errmsg // testdata/sqlite-amalgamation-3380500/sqlite3.c:129131:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 432)) = Xsqlite3_errmsg16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129132:3: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_callback, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 440)) = Xsqlite3_exec // testdata/sqlite-amalgamation-3380500/sqlite3.c:129133:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 448)) = Xsqlite3_expired // testdata/sqlite-amalgamation-3380500/sqlite3.c:129135:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 456)) = Xsqlite3_finalize // testdata/sqlite-amalgamation-3380500/sqlite3.c:129139:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 464)) = Xsqlite3_free // testdata/sqlite-amalgamation-3380500/sqlite3.c:129140:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 472)) = Xsqlite3_free_table // testdata/sqlite-amalgamation-3380500/sqlite3.c:129141:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 480)) = Xsqlite3_get_autocommit // testdata/sqlite-amalgamation-3380500/sqlite3.c:129142:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 488)) = Xsqlite3_get_auxdata // testdata/sqlite-amalgamation-3380500/sqlite3.c:129143:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 496)) = Xsqlite3_get_table // testdata/sqlite-amalgamation-3380500/sqlite3.c:129144:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 512)) = Xsqlite3_interrupt // testdata/sqlite-amalgamation-3380500/sqlite3.c:129146:3: - *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 520)) = Xsqlite3_last_insert_rowid // testdata/sqlite-amalgamation-3380500/sqlite3.c:129147:3: - *(*func(*libc.TLS) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 528)) = Xsqlite3_libversion // testdata/sqlite-amalgamation-3380500/sqlite3.c:129148:3: - *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 536)) = Xsqlite3_libversion_number // testdata/sqlite-amalgamation-3380500/sqlite3.c:129149:3: - *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 544)) = Xsqlite3_malloc // testdata/sqlite-amalgamation-3380500/sqlite3.c:129150:3: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 552)) = Xsqlite3_mprintf // testdata/sqlite-amalgamation-3380500/sqlite3.c:129151:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 560)) = Xsqlite3_open // testdata/sqlite-amalgamation-3380500/sqlite3.c:129152:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 568)) = Xsqlite3_open16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129153:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 576)) = Xsqlite3_prepare // testdata/sqlite-amalgamation-3380500/sqlite3.c:129154:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 584)) = Xsqlite3_prepare16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129155:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 592)) = Xsqlite3_profile // testdata/sqlite-amalgamation-3380500/sqlite3.c:129156:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 600)) = Xsqlite3_progress_handler // testdata/sqlite-amalgamation-3380500/sqlite3.c:129157:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 608)) = Xsqlite3_realloc // testdata/sqlite-amalgamation-3380500/sqlite3.c:129158:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 616)) = Xsqlite3_reset // testdata/sqlite-amalgamation-3380500/sqlite3.c:129159:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 624)) = Xsqlite3_result_blob // testdata/sqlite-amalgamation-3380500/sqlite3.c:129160:3: - *(*func(*libc.TLS, uintptr, float64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 632)) = Xsqlite3_result_double // testdata/sqlite-amalgamation-3380500/sqlite3.c:129161:3: - *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 640)) = Xsqlite3_result_error // testdata/sqlite-amalgamation-3380500/sqlite3.c:129162:3: - *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 648)) = Xsqlite3_result_error16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129163:3: - *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 656)) = Xsqlite3_result_int // testdata/sqlite-amalgamation-3380500/sqlite3.c:129164:3: - *(*func(*libc.TLS, uintptr, I64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 664)) = Xsqlite3_result_int64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129165:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 672)) = Xsqlite3_result_null // testdata/sqlite-amalgamation-3380500/sqlite3.c:129166:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 680)) = Xsqlite3_result_text // testdata/sqlite-amalgamation-3380500/sqlite3.c:129167:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 688)) = Xsqlite3_result_text16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129168:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 696)) = Xsqlite3_result_text16be // testdata/sqlite-amalgamation-3380500/sqlite3.c:129169:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 704)) = Xsqlite3_result_text16le // testdata/sqlite-amalgamation-3380500/sqlite3.c:129170:3: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 712)) = Xsqlite3_result_value // testdata/sqlite-amalgamation-3380500/sqlite3.c:129171:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 720)) = Xsqlite3_rollback_hook // testdata/sqlite-amalgamation-3380500/sqlite3.c:129172:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 728)) = Xsqlite3_set_authorizer // testdata/sqlite-amalgamation-3380500/sqlite3.c:129173:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 736)) = Xsqlite3_set_auxdata // testdata/sqlite-amalgamation-3380500/sqlite3.c:129174:3: - *(*func(*libc.TLS, int32, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 744)) = Xsqlite3_snprintf // testdata/sqlite-amalgamation-3380500/sqlite3.c:129175:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 752)) = Xsqlite3_step // testdata/sqlite-amalgamation-3380500/sqlite3.c:129176:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 760)) = Xsqlite3_table_column_metadata // testdata/sqlite-amalgamation-3380500/sqlite3.c:129177:3: - *(*func(*libc.TLS))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 768)) = Xsqlite3_thread_cleanup // testdata/sqlite-amalgamation-3380500/sqlite3.c:129179:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 776)) = Xsqlite3_total_changes // testdata/sqlite-amalgamation-3380500/sqlite3.c:129183:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 784)) = Xsqlite3_trace // testdata/sqlite-amalgamation-3380500/sqlite3.c:129184:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 792)) = Xsqlite3_transfer_bindings // testdata/sqlite-amalgamation-3380500/sqlite3.c:129186:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 800)) = Xsqlite3_update_hook // testdata/sqlite-amalgamation-3380500/sqlite3.c:129190:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 808)) = Xsqlite3_user_data // testdata/sqlite-amalgamation-3380500/sqlite3.c:129191:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 816)) = Xsqlite3_value_blob // testdata/sqlite-amalgamation-3380500/sqlite3.c:129192:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 824)) = Xsqlite3_value_bytes // testdata/sqlite-amalgamation-3380500/sqlite3.c:129193:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 832)) = Xsqlite3_value_bytes16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129194:3: - *(*func(*libc.TLS, uintptr) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 840)) = Xsqlite3_value_double // testdata/sqlite-amalgamation-3380500/sqlite3.c:129195:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 848)) = Xsqlite3_value_int // testdata/sqlite-amalgamation-3380500/sqlite3.c:129196:3: - *(*func(*libc.TLS, uintptr) Sqlite_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 856)) = Xsqlite3_value_int64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129197:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 864)) = Xsqlite3_value_numeric_type // testdata/sqlite-amalgamation-3380500/sqlite3.c:129198:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 872)) = Xsqlite3_value_text // testdata/sqlite-amalgamation-3380500/sqlite3.c:129199:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 880)) = Xsqlite3_value_text16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129200:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 888)) = Xsqlite3_value_text16be // testdata/sqlite-amalgamation-3380500/sqlite3.c:129201:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 896)) = Xsqlite3_value_text16le // testdata/sqlite-amalgamation-3380500/sqlite3.c:129202:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 904)) = Xsqlite3_value_type // testdata/sqlite-amalgamation-3380500/sqlite3.c:129203:3: - *(*func(*libc.TLS, uintptr, Va_list) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 912)) = Xsqlite3_vmprintf // testdata/sqlite-amalgamation-3380500/sqlite3.c:129204:3: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 920)) = Xsqlite3_overload_function // testdata/sqlite-amalgamation-3380500/sqlite3.c:129213:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 928)) = Xsqlite3_prepare_v2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129218:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 936)) = Xsqlite3_prepare16_v2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129219:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 944)) = Xsqlite3_clear_bindings // testdata/sqlite-amalgamation-3380500/sqlite3.c:129220:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 952)) = Xsqlite3_create_module_v2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129225:3: - *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 960)) = Xsqlite3_bind_zeroblob // testdata/sqlite-amalgamation-3380500/sqlite3.c:129230:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 968)) = Xsqlite3_blob_bytes // testdata/sqlite-amalgamation-3380500/sqlite3.c:129231:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 976)) = Xsqlite3_blob_close // testdata/sqlite-amalgamation-3380500/sqlite3.c:129232:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, Sqlite_int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 984)) = Xsqlite3_blob_open // testdata/sqlite-amalgamation-3380500/sqlite3.c:129233:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 992)) = Xsqlite3_blob_read // testdata/sqlite-amalgamation-3380500/sqlite3.c:129234:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1000)) = Xsqlite3_blob_write // testdata/sqlite-amalgamation-3380500/sqlite3.c:129235:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1008)) = Xsqlite3_create_collation_v2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129236:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1016)) = Xsqlite3_file_control // testdata/sqlite-amalgamation-3380500/sqlite3.c:129237:3: - *(*func(*libc.TLS, int32) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1024)) = Xsqlite3_memory_highwater // testdata/sqlite-amalgamation-3380500/sqlite3.c:129238:3: - *(*func(*libc.TLS) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1032)) = Xsqlite3_memory_used // testdata/sqlite-amalgamation-3380500/sqlite3.c:129239:3: - *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1040)) = Xsqlite3_mutex_alloc // testdata/sqlite-amalgamation-3380500/sqlite3.c:129247:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1048)) = Xsqlite3_mutex_enter // testdata/sqlite-amalgamation-3380500/sqlite3.c:129248:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1056)) = Xsqlite3_mutex_free // testdata/sqlite-amalgamation-3380500/sqlite3.c:129249:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1064)) = Xsqlite3_mutex_leave // testdata/sqlite-amalgamation-3380500/sqlite3.c:129250:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1072)) = Xsqlite3_mutex_try // testdata/sqlite-amalgamation-3380500/sqlite3.c:129251:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1080)) = Xsqlite3_open_v2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129253:3: - *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1088)) = Xsqlite3_release_memory // testdata/sqlite-amalgamation-3380500/sqlite3.c:129254:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1096)) = Xsqlite3_result_error_nomem // testdata/sqlite-amalgamation-3380500/sqlite3.c:129255:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1104)) = Xsqlite3_result_error_toobig // testdata/sqlite-amalgamation-3380500/sqlite3.c:129256:3: - *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1112)) = Xsqlite3_sleep // testdata/sqlite-amalgamation-3380500/sqlite3.c:129257:3: - *(*func(*libc.TLS, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1120)) = Xsqlite3_soft_heap_limit // testdata/sqlite-amalgamation-3380500/sqlite3.c:129258:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1128)) = Xsqlite3_vfs_find // testdata/sqlite-amalgamation-3380500/sqlite3.c:129259:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1136)) = Xsqlite3_vfs_register // testdata/sqlite-amalgamation-3380500/sqlite3.c:129260:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1144)) = Xsqlite3_vfs_unregister // testdata/sqlite-amalgamation-3380500/sqlite3.c:129261:3: - *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1152)) = Xsqlite3_threadsafe // testdata/sqlite-amalgamation-3380500/sqlite3.c:129266:3: - *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1160)) = Xsqlite3_result_zeroblob // testdata/sqlite-amalgamation-3380500/sqlite3.c:129267:3: - *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1168)) = Xsqlite3_result_error_code // testdata/sqlite-amalgamation-3380500/sqlite3.c:129268:3: - *(*func(*libc.TLS, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1176)) = Xsqlite3_test_control // testdata/sqlite-amalgamation-3380500/sqlite3.c:129269:3: - *(*func(*libc.TLS, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1184)) = Xsqlite3_randomness // testdata/sqlite-amalgamation-3380500/sqlite3.c:129270:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1192)) = Xsqlite3_context_db_handle // testdata/sqlite-amalgamation-3380500/sqlite3.c:129271:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1200)) = Xsqlite3_extended_result_codes // testdata/sqlite-amalgamation-3380500/sqlite3.c:129276:3: - *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1208)) = Xsqlite3_limit // testdata/sqlite-amalgamation-3380500/sqlite3.c:129277:3: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1216)) = Xsqlite3_next_stmt // testdata/sqlite-amalgamation-3380500/sqlite3.c:129278:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1224)) = Xsqlite3_sql // testdata/sqlite-amalgamation-3380500/sqlite3.c:129279:3: - *(*func(*libc.TLS, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1232)) = Xsqlite3_status // testdata/sqlite-amalgamation-3380500/sqlite3.c:129280:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1240)) = Xsqlite3_backup_finish // testdata/sqlite-amalgamation-3380500/sqlite3.c:129285:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1248)) = Xsqlite3_backup_init // testdata/sqlite-amalgamation-3380500/sqlite3.c:129286:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1256)) = Xsqlite3_backup_pagecount // testdata/sqlite-amalgamation-3380500/sqlite3.c:129287:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1264)) = Xsqlite3_backup_remaining // testdata/sqlite-amalgamation-3380500/sqlite3.c:129288:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1272)) = Xsqlite3_backup_step // testdata/sqlite-amalgamation-3380500/sqlite3.c:129289:3: - *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1280)) = Xsqlite3_compileoption_get // testdata/sqlite-amalgamation-3380500/sqlite3.c:129291:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1288)) = Xsqlite3_compileoption_used // testdata/sqlite-amalgamation-3380500/sqlite3.c:129292:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, int32, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1296)) = Xsqlite3_create_function_v2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129297:3: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1304)) = Xsqlite3_db_config // testdata/sqlite-amalgamation-3380500/sqlite3.c:129298:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1312)) = Xsqlite3_db_mutex // testdata/sqlite-amalgamation-3380500/sqlite3.c:129299:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1320)) = Xsqlite3_db_status // testdata/sqlite-amalgamation-3380500/sqlite3.c:129300:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1328)) = Xsqlite3_extended_errcode // testdata/sqlite-amalgamation-3380500/sqlite3.c:129301:3: - *(*func(*libc.TLS, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1336)) = Xsqlite3_log // testdata/sqlite-amalgamation-3380500/sqlite3.c:129302:3: - *(*func(*libc.TLS, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1344)) = Xsqlite3_soft_heap_limit64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129303:3: - *(*func(*libc.TLS) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1352)) = Xsqlite3_sourceid // testdata/sqlite-amalgamation-3380500/sqlite3.c:129304:3: - *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1360)) = Xsqlite3_stmt_status // testdata/sqlite-amalgamation-3380500/sqlite3.c:129305:3: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1368)) = Xsqlite3_strnicmp // testdata/sqlite-amalgamation-3380500/sqlite3.c:129306:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1376)) = Xsqlite3_unlock_notify // testdata/sqlite-amalgamation-3380500/sqlite3.c:129308:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1384)) = Xsqlite3_wal_autocheckpoint // testdata/sqlite-amalgamation-3380500/sqlite3.c:129313:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1392)) = Xsqlite3_wal_checkpoint // testdata/sqlite-amalgamation-3380500/sqlite3.c:129314:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1400)) = Xsqlite3_wal_hook // testdata/sqlite-amalgamation-3380500/sqlite3.c:129315:3: - *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1408)) = Xsqlite3_blob_reopen // testdata/sqlite-amalgamation-3380500/sqlite3.c:129321:3: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1416)) = Xsqlite3_vtab_config // testdata/sqlite-amalgamation-3380500/sqlite3.c:129322:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1424)) = Xsqlite3_vtab_on_conflict // testdata/sqlite-amalgamation-3380500/sqlite3.c:129323:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1432)) = Xsqlite3_close_v2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129324:3: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1440)) = Xsqlite3_db_filename // testdata/sqlite-amalgamation-3380500/sqlite3.c:129325:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1448)) = Xsqlite3_db_readonly // testdata/sqlite-amalgamation-3380500/sqlite3.c:129326:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1456)) = Xsqlite3_db_release_memory // testdata/sqlite-amalgamation-3380500/sqlite3.c:129327:3: - *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1464)) = Xsqlite3_errstr // testdata/sqlite-amalgamation-3380500/sqlite3.c:129328:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1472)) = Xsqlite3_stmt_busy // testdata/sqlite-amalgamation-3380500/sqlite3.c:129329:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1480)) = Xsqlite3_stmt_readonly // testdata/sqlite-amalgamation-3380500/sqlite3.c:129330:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1488)) = Xsqlite3_stricmp // testdata/sqlite-amalgamation-3380500/sqlite3.c:129331:3: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1496)) = Xsqlite3_uri_boolean // testdata/sqlite-amalgamation-3380500/sqlite3.c:129332:3: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1504)) = Xsqlite3_uri_int64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129333:3: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1512)) = Xsqlite3_uri_parameter // testdata/sqlite-amalgamation-3380500/sqlite3.c:129334:3: - *(*func(*libc.TLS, int32, uintptr, uintptr, Va_list) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1520)) = Xsqlite3_vsnprintf // testdata/sqlite-amalgamation-3380500/sqlite3.c:129335:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1528)) = Xsqlite3_wal_checkpoint_v2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129336:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1536)) = Xsqlite3_auto_extension // testdata/sqlite-amalgamation-3380500/sqlite3.c:129338:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, Sqlite3_uint64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1544)) = Xsqlite3_bind_blob64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129339:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, Sqlite3_uint64, uintptr, uint8) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1552)) = Xsqlite3_bind_text64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129340:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1560)) = Xsqlite3_cancel_auto_extension // testdata/sqlite-amalgamation-3380500/sqlite3.c:129341:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1568)) = Xsqlite3_load_extension // testdata/sqlite-amalgamation-3380500/sqlite3.c:129342:3: - *(*func(*libc.TLS, Sqlite3_uint64) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1576)) = Xsqlite3_malloc64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129343:3: - *(*func(*libc.TLS, uintptr) Sqlite3_uint64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1584)) = Xsqlite3_msize // testdata/sqlite-amalgamation-3380500/sqlite3.c:129344:3: - *(*func(*libc.TLS, uintptr, Sqlite3_uint64) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1592)) = Xsqlite3_realloc64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129345:3: - *(*func(*libc.TLS))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1600)) = Xsqlite3_reset_auto_extension // testdata/sqlite-amalgamation-3380500/sqlite3.c:129346:3: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_uint64, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1608)) = Xsqlite3_result_blob64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129347:3: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_uint64, uintptr, uint8))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1616)) = Xsqlite3_result_text64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129348:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1624)) = Xsqlite3_strglob // testdata/sqlite-amalgamation-3380500/sqlite3.c:129349:3: + }{libc.XFlushViewOfFile})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:44710:33: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 24)) = row_numberStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160931:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 32)) = row_numberValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160931:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 40)) = row_numberValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160931:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 48)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160931:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 56 /* .zName */)) = uintptr(unsafe.Pointer(&row_numberName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160931:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 96)) = dense_rankStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160932:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 104)) = dense_rankValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160932:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 112)) = dense_rankValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160932:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 120)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160932:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 128 /* .zName */)) = uintptr(unsafe.Pointer(&dense_rankName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160932:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 168)) = rankStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160933:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 176)) = rankValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160933:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 184)) = rankValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160933:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 192)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160933:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 200 /* .zName */)) = uintptr(unsafe.Pointer(&rankName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160933:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 240)) = percent_rankStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160934:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 248)) = percent_rankValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160934:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 256)) = percent_rankValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160934:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 264)) = percent_rankInvFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160934:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 272 /* .zName */)) = uintptr(unsafe.Pointer(&percent_rankName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160934:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 312)) = cume_distStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160935:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 320)) = cume_distValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160935:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 328)) = cume_distValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160935:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 336)) = cume_distInvFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160935:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 344 /* .zName */)) = uintptr(unsafe.Pointer(&cume_distName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160935:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 384)) = ntileStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160936:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 392)) = ntileValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160936:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 400)) = ntileValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160936:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 408)) = ntileInvFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160936:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 416 /* .zName */)) = uintptr(unsafe.Pointer(&ntileName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160936:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 456)) = last_valueStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160937:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 464)) = last_valueFinalizeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160937:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 472)) = last_valueValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160937:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 480)) = last_valueInvFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160937:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 488 /* .zName */)) = uintptr(unsafe.Pointer(&last_valueName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160937:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 528)) = nth_valueStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160938:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 536)) = nth_valueFinalizeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160938:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 544)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160938:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 552)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160938:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 560 /* .zName */)) = uintptr(unsafe.Pointer(&nth_valueName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160938:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 600)) = first_valueStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160939:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 608)) = first_valueFinalizeFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160939:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 616)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160939:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 624)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160939:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 632 /* .zName */)) = uintptr(unsafe.Pointer(&first_valueName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160939:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 672)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160940:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 680)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160940:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 688)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160940:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 696)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160940:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 704 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160940:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 744)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160941:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 752)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160941:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 760)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160941:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 768)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160941:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 776 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160941:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 816)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160942:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 824)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160942:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 832)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160942:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 840)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160942:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 848 /* .zName */)) = uintptr(unsafe.Pointer(&leadName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160942:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 888)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160943:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 896)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160943:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 904)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160943:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 912)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160943:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 920 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160943:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 960)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160944:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 968)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160944:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 976)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160944:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 984)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160944:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 992 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160944:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1032)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160945:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1040)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160945:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1048)) = noopValueFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160945:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1056)) = noopStepFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:160945:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aWindowFuncs)) + 1064 /* .zName */)) = uintptr(unsafe.Pointer(&lagName)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:160945:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&attach_func)) + 24)) = attachFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:114669:5: + *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 0)) = sqlite3MemMalloc // testdata/sqlite-amalgamation-3390200/sqlite3.c:25494:6: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 8)) = sqlite3MemFree // testdata/sqlite-amalgamation-3390200/sqlite3.c:25495:6: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 16)) = sqlite3MemRealloc // testdata/sqlite-amalgamation-3390200/sqlite3.c:25496:6: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 24)) = sqlite3MemSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:25497:6: + *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 32)) = sqlite3MemRoundup // testdata/sqlite-amalgamation-3390200/sqlite3.c:25498:6: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 40)) = sqlite3MemInit // testdata/sqlite-amalgamation-3390200/sqlite3.c:25499:6: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods)) + 48)) = sqlite3MemShutdown // testdata/sqlite-amalgamation-3390200/sqlite3.c:25500:6: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 16)) = pcache1Init // testdata/sqlite-amalgamation-3390200/sqlite3.c:53103:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 24)) = pcache1Shutdown // testdata/sqlite-amalgamation-3390200/sqlite3.c:53104:5: + *(*func(*libc.TLS, int32, int32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 32)) = pcache1Create // testdata/sqlite-amalgamation-3390200/sqlite3.c:53105:5: + *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 40)) = pcache1Cachesize // testdata/sqlite-amalgamation-3390200/sqlite3.c:53106:5: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 48)) = pcache1Pagecount // testdata/sqlite-amalgamation-3390200/sqlite3.c:53107:5: + *(*func(*libc.TLS, uintptr, uint32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 56)) = pcache1Fetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:53108:5: + *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 64)) = pcache1Unpin // testdata/sqlite-amalgamation-3390200/sqlite3.c:53109:5: + *(*func(*libc.TLS, uintptr, uintptr, uint32, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 72)) = pcache1Rekey // testdata/sqlite-amalgamation-3390200/sqlite3.c:53110:5: + *(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 80)) = pcache1Truncate // testdata/sqlite-amalgamation-3390200/sqlite3.c:53111:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 88)) = pcache1Destroy // testdata/sqlite-amalgamation-3390200/sqlite3.c:53112:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&defaultMethods1)) + 96)) = pcache1Shrink // testdata/sqlite-amalgamation-3390200/sqlite3.c:53113:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&detach_func)) + 24)) = detachFunc // testdata/sqlite-amalgamation-3390200/sqlite3.c:114649:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 8)) = fts5CreateMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236660:25: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 16)) = fts5ConnectMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236661:25: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 24)) = fts5BestIndexMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236662:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 32)) = fts5DisconnectMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236663:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 40)) = fts5DestroyMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236664:25: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 48)) = fts5OpenMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236665:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 56)) = fts5CloseMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236666:25: + *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 64)) = fts5FilterMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236667:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 72)) = fts5NextMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236668:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 80)) = fts5EofMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236669:25: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 88)) = fts5ColumnMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236670:25: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 96)) = fts5RowidMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236671:25: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 104)) = fts5UpdateMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236672:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 112)) = fts5BeginMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236673:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 120)) = fts5SyncMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236674:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 128)) = fts5CommitMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236675:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 136)) = fts5RollbackMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236676:25: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 144)) = fts5FindFunctionMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236677:25: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 152)) = fts5RenameMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236678:25: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 160)) = fts5SavepointMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236679:25: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 168)) = fts5ReleaseMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236680:25: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 176)) = fts5RollbackToMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:236681:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Mod)) + 184)) = fts5ShadowName // testdata/sqlite-amalgamation-3390200/sqlite3.c:236682:25: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 8)) = fts5VocabCreateMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241243:25: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 16)) = fts5VocabConnectMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241244:25: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 24)) = fts5VocabBestIndexMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241245:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 32)) = fts5VocabDisconnectMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241246:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 40)) = fts5VocabDestroyMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241247:25: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 48)) = fts5VocabOpenMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241248:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 56)) = fts5VocabCloseMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241249:25: + *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 64)) = fts5VocabFilterMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241250:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 72)) = fts5VocabNextMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241251:25: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 80)) = fts5VocabEofMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241252:25: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 88)) = fts5VocabColumnMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241253:25: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5Vocab)) + 96)) = fts5VocabRowidMethod // testdata/sqlite-amalgamation-3390200/sqlite3.c:241254:25: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 8)) = geopolyCreate // testdata/sqlite-amalgamation-3390200/sqlite3.c:204191:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 16)) = geopolyConnect // testdata/sqlite-amalgamation-3390200/sqlite3.c:204192:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 24)) = geopolyBestIndex // testdata/sqlite-amalgamation-3390200/sqlite3.c:204193:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 32)) = rtreeDisconnect // testdata/sqlite-amalgamation-3390200/sqlite3.c:204194:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 40)) = rtreeDestroy // testdata/sqlite-amalgamation-3390200/sqlite3.c:204195:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 48)) = rtreeOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:204196:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 56)) = rtreeClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:204197:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 64)) = geopolyFilter // testdata/sqlite-amalgamation-3390200/sqlite3.c:204198:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 72)) = rtreeNext // testdata/sqlite-amalgamation-3390200/sqlite3.c:204199:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 80)) = rtreeEof // testdata/sqlite-amalgamation-3390200/sqlite3.c:204200:3: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 88)) = geopolyColumn // testdata/sqlite-amalgamation-3390200/sqlite3.c:204201:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 96)) = rtreeRowid // testdata/sqlite-amalgamation-3390200/sqlite3.c:204202:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 104)) = geopolyUpdate // testdata/sqlite-amalgamation-3390200/sqlite3.c:204203:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 112)) = rtreeBeginTransaction // testdata/sqlite-amalgamation-3390200/sqlite3.c:204204:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 120)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3390200/sqlite3.c:204205:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 128)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3390200/sqlite3.c:204206:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 136)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3390200/sqlite3.c:204207:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 144)) = geopolyFindFunction // testdata/sqlite-amalgamation-3390200/sqlite3.c:204208:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 152)) = rtreeRename // testdata/sqlite-amalgamation-3390200/sqlite3.c:204209:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 160)) = rtreeSavepoint // testdata/sqlite-amalgamation-3390200/sqlite3.c:204210:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&geopolyModule)) + 184)) = rtreeShadowName // testdata/sqlite-amalgamation-3390200/sqlite3.c:204213:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 16)) = jsonEachConnect // testdata/sqlite-amalgamation-3390200/sqlite3.c:197933:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 24)) = jsonEachBestIndex // testdata/sqlite-amalgamation-3390200/sqlite3.c:197934:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 32)) = jsonEachDisconnect // testdata/sqlite-amalgamation-3390200/sqlite3.c:197935:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 48)) = jsonEachOpenEach // testdata/sqlite-amalgamation-3390200/sqlite3.c:197937:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 56)) = jsonEachClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:197938:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 64)) = jsonEachFilter // testdata/sqlite-amalgamation-3390200/sqlite3.c:197939:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 72)) = jsonEachNext // testdata/sqlite-amalgamation-3390200/sqlite3.c:197940:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 80)) = jsonEachEof // testdata/sqlite-amalgamation-3390200/sqlite3.c:197941:3: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 88)) = jsonEachColumn // testdata/sqlite-amalgamation-3390200/sqlite3.c:197942:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonEachModule)) + 96)) = jsonEachRowid // testdata/sqlite-amalgamation-3390200/sqlite3.c:197943:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 16)) = jsonEachConnect // testdata/sqlite-amalgamation-3390200/sqlite3.c:197961:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 24)) = jsonEachBestIndex // testdata/sqlite-amalgamation-3390200/sqlite3.c:197962:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 32)) = jsonEachDisconnect // testdata/sqlite-amalgamation-3390200/sqlite3.c:197963:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 48)) = jsonEachOpenTree // testdata/sqlite-amalgamation-3390200/sqlite3.c:197965:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 56)) = jsonEachClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:197966:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 64)) = jsonEachFilter // testdata/sqlite-amalgamation-3390200/sqlite3.c:197967:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 72)) = jsonEachNext // testdata/sqlite-amalgamation-3390200/sqlite3.c:197968:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 80)) = jsonEachEof // testdata/sqlite-amalgamation-3390200/sqlite3.c:197969:3: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 88)) = jsonEachColumn // testdata/sqlite-amalgamation-3390200/sqlite3.c:197970:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jsonTreeModule)) + 96)) = jsonEachRowid // testdata/sqlite-amalgamation-3390200/sqlite3.c:197971:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 8)) = memdbClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:49884:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 16)) = memdbRead // testdata/sqlite-amalgamation-3390200/sqlite3.c:49885:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 24)) = memdbWrite // testdata/sqlite-amalgamation-3390200/sqlite3.c:49886:3: + *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 32)) = memdbTruncate // testdata/sqlite-amalgamation-3390200/sqlite3.c:49887:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 40)) = memdbSync // testdata/sqlite-amalgamation-3390200/sqlite3.c:49888:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 48)) = memdbFileSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:49889:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 56)) = memdbLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:49890:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 64)) = memdbLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:49891:3: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 80)) = memdbFileControl // testdata/sqlite-amalgamation-3390200/sqlite3.c:49893:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 96)) = memdbDeviceCharacteristics // testdata/sqlite-amalgamation-3390200/sqlite3.c:49895:3: + *(*func(*libc.TLS, uintptr, Sqlite3_int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 136)) = memdbFetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:49900:3: + *(*func(*libc.TLS, uintptr, Sqlite3_int64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_io_methods)) + 144)) = memdbUnfetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:49901:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 40)) = memdbOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:49864:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 56)) = memdbAccess // testdata/sqlite-amalgamation-3390200/sqlite3.c:49866:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 64)) = memdbFullPathname // testdata/sqlite-amalgamation-3390200/sqlite3.c:49867:3: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 72)) = memdbDlOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:49868:3: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 80)) = memdbDlError // testdata/sqlite-amalgamation-3390200/sqlite3.c:49869:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 88)) = memdbDlSym // testdata/sqlite-amalgamation-3390200/sqlite3.c:49870:3: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 96)) = memdbDlClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:49871:3: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 104)) = memdbRandomness // testdata/sqlite-amalgamation-3390200/sqlite3.c:49872:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 112)) = memdbSleep // testdata/sqlite-amalgamation-3390200/sqlite3.c:49873:3: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 128)) = memdbGetLastError // testdata/sqlite-amalgamation-3390200/sqlite3.c:49875:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&memdb_vfs)) + 136)) = memdbCurrentTimeInt64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:49876:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 16)) = pragmaVtabConnect // testdata/sqlite-amalgamation-3390200/sqlite3.c:134416:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 24)) = pragmaVtabBestIndex // testdata/sqlite-amalgamation-3390200/sqlite3.c:134417:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 32)) = pragmaVtabDisconnect // testdata/sqlite-amalgamation-3390200/sqlite3.c:134418:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 48)) = pragmaVtabOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:134420:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 56)) = pragmaVtabClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:134421:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 64)) = pragmaVtabFilter // testdata/sqlite-amalgamation-3390200/sqlite3.c:134422:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 72)) = pragmaVtabNext // testdata/sqlite-amalgamation-3390200/sqlite3.c:134423:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 80)) = pragmaVtabEof // testdata/sqlite-amalgamation-3390200/sqlite3.c:134424:3: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 88)) = pragmaVtabColumn // testdata/sqlite-amalgamation-3390200/sqlite3.c:134425:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&pragmaVtabModule)) + 96)) = pragmaVtabRowid // testdata/sqlite-amalgamation-3390200/sqlite3.c:134426:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 8)) = rbuVfsClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:210888:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 16)) = rbuVfsRead // testdata/sqlite-amalgamation-3390200/sqlite3.c:210889:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 24)) = rbuVfsWrite // testdata/sqlite-amalgamation-3390200/sqlite3.c:210890:5: + *(*func(*libc.TLS, uintptr, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 32)) = rbuVfsTruncate // testdata/sqlite-amalgamation-3390200/sqlite3.c:210891:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 40)) = rbuVfsSync // testdata/sqlite-amalgamation-3390200/sqlite3.c:210892:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 48)) = rbuVfsFileSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:210893:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 56)) = rbuVfsLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:210894:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 64)) = rbuVfsUnlock // testdata/sqlite-amalgamation-3390200/sqlite3.c:210895:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 72)) = rbuVfsCheckReservedLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:210896:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 80)) = rbuVfsFileControl // testdata/sqlite-amalgamation-3390200/sqlite3.c:210897:5: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 88)) = rbuVfsSectorSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:210898:5: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 96)) = rbuVfsDeviceCharacteristics // testdata/sqlite-amalgamation-3390200/sqlite3.c:210899:5: + *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 104)) = rbuVfsShmMap // testdata/sqlite-amalgamation-3390200/sqlite3.c:210900:5: + *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 112)) = rbuVfsShmLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:210901:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 120)) = rbuVfsShmBarrier // testdata/sqlite-amalgamation-3390200/sqlite3.c:210902:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rbuvfs_io_methods)) + 128)) = rbuVfsShmUnmap // testdata/sqlite-amalgamation-3390200/sqlite3.c:210903:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 8)) = rtreeCreate // testdata/sqlite-amalgamation-3390200/sqlite3.c:201529:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 16)) = rtreeConnect // testdata/sqlite-amalgamation-3390200/sqlite3.c:201530:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 24)) = rtreeBestIndex // testdata/sqlite-amalgamation-3390200/sqlite3.c:201531:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 32)) = rtreeDisconnect // testdata/sqlite-amalgamation-3390200/sqlite3.c:201532:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 40)) = rtreeDestroy // testdata/sqlite-amalgamation-3390200/sqlite3.c:201533:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 48)) = rtreeOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:201534:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 56)) = rtreeClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:201535:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 64)) = rtreeFilter // testdata/sqlite-amalgamation-3390200/sqlite3.c:201536:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 72)) = rtreeNext // testdata/sqlite-amalgamation-3390200/sqlite3.c:201537:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 80)) = rtreeEof // testdata/sqlite-amalgamation-3390200/sqlite3.c:201538:3: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 88)) = rtreeColumn // testdata/sqlite-amalgamation-3390200/sqlite3.c:201539:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 96)) = rtreeRowid // testdata/sqlite-amalgamation-3390200/sqlite3.c:201540:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 104)) = rtreeUpdate // testdata/sqlite-amalgamation-3390200/sqlite3.c:201541:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 112)) = rtreeBeginTransaction // testdata/sqlite-amalgamation-3390200/sqlite3.c:201542:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 120)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3390200/sqlite3.c:201543:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 128)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3390200/sqlite3.c:201544:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 136)) = rtreeEndTransaction // testdata/sqlite-amalgamation-3390200/sqlite3.c:201545:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 152)) = rtreeRename // testdata/sqlite-amalgamation-3390200/sqlite3.c:201547:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 160)) = rtreeSavepoint // testdata/sqlite-amalgamation-3390200/sqlite3.c:201548:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&rtreeModule)) + 184)) = rtreeShadowName // testdata/sqlite-amalgamation-3390200/sqlite3.c:201551:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 8)) = fts5ApiUserData // testdata/sqlite-amalgamation-3390200/sqlite3.c:236119:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 16)) = fts5ApiColumnCount // testdata/sqlite-amalgamation-3390200/sqlite3.c:236120:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 24)) = fts5ApiRowCount // testdata/sqlite-amalgamation-3390200/sqlite3.c:236121:3: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 32)) = fts5ApiColumnTotalSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:236122:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 40)) = fts5ApiTokenize // testdata/sqlite-amalgamation-3390200/sqlite3.c:236123:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 48)) = fts5ApiPhraseCount // testdata/sqlite-amalgamation-3390200/sqlite3.c:236124:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 56)) = fts5ApiPhraseSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:236125:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 64)) = fts5ApiInstCount // testdata/sqlite-amalgamation-3390200/sqlite3.c:236126:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 72)) = fts5ApiInst // testdata/sqlite-amalgamation-3390200/sqlite3.c:236127:3: + *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 80)) = fts5ApiRowid // testdata/sqlite-amalgamation-3390200/sqlite3.c:236128:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 88)) = fts5ApiColumnText // testdata/sqlite-amalgamation-3390200/sqlite3.c:236129:3: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 96)) = fts5ApiColumnSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:236130:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 104)) = fts5ApiQueryPhrase // testdata/sqlite-amalgamation-3390200/sqlite3.c:236131:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 112)) = fts5ApiSetAuxdata // testdata/sqlite-amalgamation-3390200/sqlite3.c:236132:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 120)) = fts5ApiGetAuxdata // testdata/sqlite-amalgamation-3390200/sqlite3.c:236133:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 128)) = fts5ApiPhraseFirst // testdata/sqlite-amalgamation-3390200/sqlite3.c:236134:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 136)) = fts5ApiPhraseNext // testdata/sqlite-amalgamation-3390200/sqlite3.c:236135:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 144)) = fts5ApiPhraseFirstColumn // testdata/sqlite-amalgamation-3390200/sqlite3.c:236136:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sFts5Api)) + 152)) = fts5ApiPhraseNextColumn // testdata/sqlite-amalgamation-3390200/sqlite3.c:236137:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 8)) = memjrnlClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:101075:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 16)) = memjrnlRead // testdata/sqlite-amalgamation-3390200/sqlite3.c:101076:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 24)) = memjrnlWrite // testdata/sqlite-amalgamation-3390200/sqlite3.c:101077:3: + *(*func(*libc.TLS, uintptr, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 32)) = memjrnlTruncate // testdata/sqlite-amalgamation-3390200/sqlite3.c:101078:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 40)) = memjrnlSync // testdata/sqlite-amalgamation-3390200/sqlite3.c:101079:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMemJournalMethods)) + 48)) = memjrnlFileSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:101080:3: + *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 0)) = noopMutexInit // testdata/sqlite-amalgamation-3390200/sqlite3.c:27732:5: + *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 8)) = noopMutexEnd // testdata/sqlite-amalgamation-3390200/sqlite3.c:27733:5: + *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 16)) = noopMutexAlloc // testdata/sqlite-amalgamation-3390200/sqlite3.c:27734:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 24)) = noopMutexFree // testdata/sqlite-amalgamation-3390200/sqlite3.c:27735:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 32)) = noopMutexEnter // testdata/sqlite-amalgamation-3390200/sqlite3.c:27736:5: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 40)) = noopMutexTry // testdata/sqlite-amalgamation-3390200/sqlite3.c:27737:5: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sMutex)) + 48)) = noopMutexLeave // testdata/sqlite-amalgamation-3390200/sqlite3.c:27738:5: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 0)) = Xsqlite3_aggregate_context // testdata/sqlite-amalgamation-3390200/sqlite3.c:130313:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 8)) = Xsqlite3_aggregate_count // testdata/sqlite-amalgamation-3390200/sqlite3.c:130315:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 16)) = Xsqlite3_bind_blob // testdata/sqlite-amalgamation-3390200/sqlite3.c:130319:3: + *(*func(*libc.TLS, uintptr, int32, float64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 24)) = Xsqlite3_bind_double // testdata/sqlite-amalgamation-3390200/sqlite3.c:130320:3: + *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 32)) = Xsqlite3_bind_int // testdata/sqlite-amalgamation-3390200/sqlite3.c:130321:3: + *(*func(*libc.TLS, uintptr, int32, Sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 40)) = Xsqlite3_bind_int64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130322:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 48)) = Xsqlite3_bind_null // testdata/sqlite-amalgamation-3390200/sqlite3.c:130323:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 56)) = Xsqlite3_bind_parameter_count // testdata/sqlite-amalgamation-3390200/sqlite3.c:130324:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 64)) = Xsqlite3_bind_parameter_index // testdata/sqlite-amalgamation-3390200/sqlite3.c:130325:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 72)) = Xsqlite3_bind_parameter_name // testdata/sqlite-amalgamation-3390200/sqlite3.c:130326:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 80)) = Xsqlite3_bind_text // testdata/sqlite-amalgamation-3390200/sqlite3.c:130327:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 88)) = Xsqlite3_bind_text16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130328:3: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 96)) = Xsqlite3_bind_value // testdata/sqlite-amalgamation-3390200/sqlite3.c:130329:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 104)) = Xsqlite3_busy_handler // testdata/sqlite-amalgamation-3390200/sqlite3.c:130330:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 112)) = Xsqlite3_busy_timeout // testdata/sqlite-amalgamation-3390200/sqlite3.c:130331:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 120)) = Xsqlite3_changes // testdata/sqlite-amalgamation-3390200/sqlite3.c:130332:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 128)) = Xsqlite3_close // testdata/sqlite-amalgamation-3390200/sqlite3.c:130333:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 136)) = Xsqlite3_collation_needed // testdata/sqlite-amalgamation-3390200/sqlite3.c:130334:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 144)) = Xsqlite3_collation_needed16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130335:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 152)) = Xsqlite3_column_blob // testdata/sqlite-amalgamation-3390200/sqlite3.c:130336:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 160)) = Xsqlite3_column_bytes // testdata/sqlite-amalgamation-3390200/sqlite3.c:130337:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 168)) = Xsqlite3_column_bytes16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130338:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 176)) = Xsqlite3_column_count // testdata/sqlite-amalgamation-3390200/sqlite3.c:130339:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 184)) = Xsqlite3_column_database_name // testdata/sqlite-amalgamation-3390200/sqlite3.c:130340:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 192)) = Xsqlite3_column_database_name16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130341:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 200)) = Xsqlite3_column_decltype // testdata/sqlite-amalgamation-3390200/sqlite3.c:130342:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 208)) = Xsqlite3_column_decltype16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130343:3: + *(*func(*libc.TLS, uintptr, int32) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 216)) = Xsqlite3_column_double // testdata/sqlite-amalgamation-3390200/sqlite3.c:130344:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 224)) = Xsqlite3_column_int // testdata/sqlite-amalgamation-3390200/sqlite3.c:130345:3: + *(*func(*libc.TLS, uintptr, int32) Sqlite_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 232)) = Xsqlite3_column_int64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130346:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 240)) = Xsqlite3_column_name // testdata/sqlite-amalgamation-3390200/sqlite3.c:130347:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 248)) = Xsqlite3_column_name16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130348:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 256)) = Xsqlite3_column_origin_name // testdata/sqlite-amalgamation-3390200/sqlite3.c:130349:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 264)) = Xsqlite3_column_origin_name16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130350:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 272)) = Xsqlite3_column_table_name // testdata/sqlite-amalgamation-3390200/sqlite3.c:130351:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 280)) = Xsqlite3_column_table_name16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130352:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 288)) = Xsqlite3_column_text // testdata/sqlite-amalgamation-3390200/sqlite3.c:130353:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 296)) = Xsqlite3_column_text16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130354:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 304)) = Xsqlite3_column_type // testdata/sqlite-amalgamation-3390200/sqlite3.c:130355:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 312)) = Xsqlite3_column_value // testdata/sqlite-amalgamation-3390200/sqlite3.c:130356:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 320)) = Xsqlite3_commit_hook // testdata/sqlite-amalgamation-3390200/sqlite3.c:130357:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 328)) = Xsqlite3_complete // testdata/sqlite-amalgamation-3390200/sqlite3.c:130358:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 336)) = Xsqlite3_complete16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130359:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 344)) = Xsqlite3_create_collation // testdata/sqlite-amalgamation-3390200/sqlite3.c:130360:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 352)) = Xsqlite3_create_collation16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130361:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, int32, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 360)) = Xsqlite3_create_function // testdata/sqlite-amalgamation-3390200/sqlite3.c:130362:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, int32, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 368)) = Xsqlite3_create_function16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130363:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 376)) = Xsqlite3_create_module // testdata/sqlite-amalgamation-3390200/sqlite3.c:130364:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 384)) = Xsqlite3_data_count // testdata/sqlite-amalgamation-3390200/sqlite3.c:130365:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 392)) = Xsqlite3_db_handle // testdata/sqlite-amalgamation-3390200/sqlite3.c:130366:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 400)) = Xsqlite3_declare_vtab // testdata/sqlite-amalgamation-3390200/sqlite3.c:130367:3: + *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 408)) = Xsqlite3_enable_shared_cache // testdata/sqlite-amalgamation-3390200/sqlite3.c:130368:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 416)) = Xsqlite3_errcode // testdata/sqlite-amalgamation-3390200/sqlite3.c:130369:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 424)) = Xsqlite3_errmsg // testdata/sqlite-amalgamation-3390200/sqlite3.c:130370:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 432)) = Xsqlite3_errmsg16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130371:3: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_callback, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 440)) = Xsqlite3_exec // testdata/sqlite-amalgamation-3390200/sqlite3.c:130372:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 448)) = Xsqlite3_expired // testdata/sqlite-amalgamation-3390200/sqlite3.c:130374:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 456)) = Xsqlite3_finalize // testdata/sqlite-amalgamation-3390200/sqlite3.c:130378:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 464)) = Xsqlite3_free // testdata/sqlite-amalgamation-3390200/sqlite3.c:130379:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 472)) = Xsqlite3_free_table // testdata/sqlite-amalgamation-3390200/sqlite3.c:130380:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 480)) = Xsqlite3_get_autocommit // testdata/sqlite-amalgamation-3390200/sqlite3.c:130381:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 488)) = Xsqlite3_get_auxdata // testdata/sqlite-amalgamation-3390200/sqlite3.c:130382:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 496)) = Xsqlite3_get_table // testdata/sqlite-amalgamation-3390200/sqlite3.c:130383:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 512)) = Xsqlite3_interrupt // testdata/sqlite-amalgamation-3390200/sqlite3.c:130385:3: + *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 520)) = Xsqlite3_last_insert_rowid // testdata/sqlite-amalgamation-3390200/sqlite3.c:130386:3: + *(*func(*libc.TLS) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 528)) = Xsqlite3_libversion // testdata/sqlite-amalgamation-3390200/sqlite3.c:130387:3: + *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 536)) = Xsqlite3_libversion_number // testdata/sqlite-amalgamation-3390200/sqlite3.c:130388:3: + *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 544)) = Xsqlite3_malloc // testdata/sqlite-amalgamation-3390200/sqlite3.c:130389:3: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 552)) = Xsqlite3_mprintf // testdata/sqlite-amalgamation-3390200/sqlite3.c:130390:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 560)) = Xsqlite3_open // testdata/sqlite-amalgamation-3390200/sqlite3.c:130391:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 568)) = Xsqlite3_open16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130392:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 576)) = Xsqlite3_prepare // testdata/sqlite-amalgamation-3390200/sqlite3.c:130393:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 584)) = Xsqlite3_prepare16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130394:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 592)) = Xsqlite3_profile // testdata/sqlite-amalgamation-3390200/sqlite3.c:130395:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 600)) = Xsqlite3_progress_handler // testdata/sqlite-amalgamation-3390200/sqlite3.c:130396:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 608)) = Xsqlite3_realloc // testdata/sqlite-amalgamation-3390200/sqlite3.c:130397:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 616)) = Xsqlite3_reset // testdata/sqlite-amalgamation-3390200/sqlite3.c:130398:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 624)) = Xsqlite3_result_blob // testdata/sqlite-amalgamation-3390200/sqlite3.c:130399:3: + *(*func(*libc.TLS, uintptr, float64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 632)) = Xsqlite3_result_double // testdata/sqlite-amalgamation-3390200/sqlite3.c:130400:3: + *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 640)) = Xsqlite3_result_error // testdata/sqlite-amalgamation-3390200/sqlite3.c:130401:3: + *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 648)) = Xsqlite3_result_error16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130402:3: + *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 656)) = Xsqlite3_result_int // testdata/sqlite-amalgamation-3390200/sqlite3.c:130403:3: + *(*func(*libc.TLS, uintptr, I64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 664)) = Xsqlite3_result_int64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130404:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 672)) = Xsqlite3_result_null // testdata/sqlite-amalgamation-3390200/sqlite3.c:130405:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 680)) = Xsqlite3_result_text // testdata/sqlite-amalgamation-3390200/sqlite3.c:130406:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 688)) = Xsqlite3_result_text16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130407:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 696)) = Xsqlite3_result_text16be // testdata/sqlite-amalgamation-3390200/sqlite3.c:130408:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 704)) = Xsqlite3_result_text16le // testdata/sqlite-amalgamation-3390200/sqlite3.c:130409:3: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 712)) = Xsqlite3_result_value // testdata/sqlite-amalgamation-3390200/sqlite3.c:130410:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 720)) = Xsqlite3_rollback_hook // testdata/sqlite-amalgamation-3390200/sqlite3.c:130411:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 728)) = Xsqlite3_set_authorizer // testdata/sqlite-amalgamation-3390200/sqlite3.c:130412:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 736)) = Xsqlite3_set_auxdata // testdata/sqlite-amalgamation-3390200/sqlite3.c:130413:3: + *(*func(*libc.TLS, int32, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 744)) = Xsqlite3_snprintf // testdata/sqlite-amalgamation-3390200/sqlite3.c:130414:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 752)) = Xsqlite3_step // testdata/sqlite-amalgamation-3390200/sqlite3.c:130415:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 760)) = Xsqlite3_table_column_metadata // testdata/sqlite-amalgamation-3390200/sqlite3.c:130416:3: + *(*func(*libc.TLS))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 768)) = Xsqlite3_thread_cleanup // testdata/sqlite-amalgamation-3390200/sqlite3.c:130418:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 776)) = Xsqlite3_total_changes // testdata/sqlite-amalgamation-3390200/sqlite3.c:130422:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 784)) = Xsqlite3_trace // testdata/sqlite-amalgamation-3390200/sqlite3.c:130423:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 792)) = Xsqlite3_transfer_bindings // testdata/sqlite-amalgamation-3390200/sqlite3.c:130425:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 800)) = Xsqlite3_update_hook // testdata/sqlite-amalgamation-3390200/sqlite3.c:130429:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 808)) = Xsqlite3_user_data // testdata/sqlite-amalgamation-3390200/sqlite3.c:130430:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 816)) = Xsqlite3_value_blob // testdata/sqlite-amalgamation-3390200/sqlite3.c:130431:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 824)) = Xsqlite3_value_bytes // testdata/sqlite-amalgamation-3390200/sqlite3.c:130432:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 832)) = Xsqlite3_value_bytes16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130433:3: + *(*func(*libc.TLS, uintptr) float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 840)) = Xsqlite3_value_double // testdata/sqlite-amalgamation-3390200/sqlite3.c:130434:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 848)) = Xsqlite3_value_int // testdata/sqlite-amalgamation-3390200/sqlite3.c:130435:3: + *(*func(*libc.TLS, uintptr) Sqlite_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 856)) = Xsqlite3_value_int64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130436:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 864)) = Xsqlite3_value_numeric_type // testdata/sqlite-amalgamation-3390200/sqlite3.c:130437:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 872)) = Xsqlite3_value_text // testdata/sqlite-amalgamation-3390200/sqlite3.c:130438:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 880)) = Xsqlite3_value_text16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130439:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 888)) = Xsqlite3_value_text16be // testdata/sqlite-amalgamation-3390200/sqlite3.c:130440:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 896)) = Xsqlite3_value_text16le // testdata/sqlite-amalgamation-3390200/sqlite3.c:130441:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 904)) = Xsqlite3_value_type // testdata/sqlite-amalgamation-3390200/sqlite3.c:130442:3: + *(*func(*libc.TLS, uintptr, Va_list) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 912)) = Xsqlite3_vmprintf // testdata/sqlite-amalgamation-3390200/sqlite3.c:130443:3: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 920)) = Xsqlite3_overload_function // testdata/sqlite-amalgamation-3390200/sqlite3.c:130452:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 928)) = Xsqlite3_prepare_v2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130457:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 936)) = Xsqlite3_prepare16_v2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130458:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 944)) = Xsqlite3_clear_bindings // testdata/sqlite-amalgamation-3390200/sqlite3.c:130459:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 952)) = Xsqlite3_create_module_v2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130464:3: + *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 960)) = Xsqlite3_bind_zeroblob // testdata/sqlite-amalgamation-3390200/sqlite3.c:130469:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 968)) = Xsqlite3_blob_bytes // testdata/sqlite-amalgamation-3390200/sqlite3.c:130470:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 976)) = Xsqlite3_blob_close // testdata/sqlite-amalgamation-3390200/sqlite3.c:130471:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, Sqlite_int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 984)) = Xsqlite3_blob_open // testdata/sqlite-amalgamation-3390200/sqlite3.c:130472:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 992)) = Xsqlite3_blob_read // testdata/sqlite-amalgamation-3390200/sqlite3.c:130473:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1000)) = Xsqlite3_blob_write // testdata/sqlite-amalgamation-3390200/sqlite3.c:130474:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1008)) = Xsqlite3_create_collation_v2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130475:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1016)) = Xsqlite3_file_control // testdata/sqlite-amalgamation-3390200/sqlite3.c:130476:3: + *(*func(*libc.TLS, int32) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1024)) = Xsqlite3_memory_highwater // testdata/sqlite-amalgamation-3390200/sqlite3.c:130477:3: + *(*func(*libc.TLS) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1032)) = Xsqlite3_memory_used // testdata/sqlite-amalgamation-3390200/sqlite3.c:130478:3: + *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1040)) = Xsqlite3_mutex_alloc // testdata/sqlite-amalgamation-3390200/sqlite3.c:130486:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1048)) = Xsqlite3_mutex_enter // testdata/sqlite-amalgamation-3390200/sqlite3.c:130487:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1056)) = Xsqlite3_mutex_free // testdata/sqlite-amalgamation-3390200/sqlite3.c:130488:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1064)) = Xsqlite3_mutex_leave // testdata/sqlite-amalgamation-3390200/sqlite3.c:130489:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1072)) = Xsqlite3_mutex_try // testdata/sqlite-amalgamation-3390200/sqlite3.c:130490:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1080)) = Xsqlite3_open_v2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130492:3: + *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1088)) = Xsqlite3_release_memory // testdata/sqlite-amalgamation-3390200/sqlite3.c:130493:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1096)) = Xsqlite3_result_error_nomem // testdata/sqlite-amalgamation-3390200/sqlite3.c:130494:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1104)) = Xsqlite3_result_error_toobig // testdata/sqlite-amalgamation-3390200/sqlite3.c:130495:3: + *(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1112)) = Xsqlite3_sleep // testdata/sqlite-amalgamation-3390200/sqlite3.c:130496:3: + *(*func(*libc.TLS, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1120)) = Xsqlite3_soft_heap_limit // testdata/sqlite-amalgamation-3390200/sqlite3.c:130497:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1128)) = Xsqlite3_vfs_find // testdata/sqlite-amalgamation-3390200/sqlite3.c:130498:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1136)) = Xsqlite3_vfs_register // testdata/sqlite-amalgamation-3390200/sqlite3.c:130499:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1144)) = Xsqlite3_vfs_unregister // testdata/sqlite-amalgamation-3390200/sqlite3.c:130500:3: + *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1152)) = Xsqlite3_threadsafe // testdata/sqlite-amalgamation-3390200/sqlite3.c:130505:3: + *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1160)) = Xsqlite3_result_zeroblob // testdata/sqlite-amalgamation-3390200/sqlite3.c:130506:3: + *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1168)) = Xsqlite3_result_error_code // testdata/sqlite-amalgamation-3390200/sqlite3.c:130507:3: + *(*func(*libc.TLS, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1176)) = Xsqlite3_test_control // testdata/sqlite-amalgamation-3390200/sqlite3.c:130508:3: + *(*func(*libc.TLS, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1184)) = Xsqlite3_randomness // testdata/sqlite-amalgamation-3390200/sqlite3.c:130509:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1192)) = Xsqlite3_context_db_handle // testdata/sqlite-amalgamation-3390200/sqlite3.c:130510:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1200)) = Xsqlite3_extended_result_codes // testdata/sqlite-amalgamation-3390200/sqlite3.c:130515:3: + *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1208)) = Xsqlite3_limit // testdata/sqlite-amalgamation-3390200/sqlite3.c:130516:3: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1216)) = Xsqlite3_next_stmt // testdata/sqlite-amalgamation-3390200/sqlite3.c:130517:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1224)) = Xsqlite3_sql // testdata/sqlite-amalgamation-3390200/sqlite3.c:130518:3: + *(*func(*libc.TLS, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1232)) = Xsqlite3_status // testdata/sqlite-amalgamation-3390200/sqlite3.c:130519:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1240)) = Xsqlite3_backup_finish // testdata/sqlite-amalgamation-3390200/sqlite3.c:130524:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1248)) = Xsqlite3_backup_init // testdata/sqlite-amalgamation-3390200/sqlite3.c:130525:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1256)) = Xsqlite3_backup_pagecount // testdata/sqlite-amalgamation-3390200/sqlite3.c:130526:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1264)) = Xsqlite3_backup_remaining // testdata/sqlite-amalgamation-3390200/sqlite3.c:130527:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1272)) = Xsqlite3_backup_step // testdata/sqlite-amalgamation-3390200/sqlite3.c:130528:3: + *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1280)) = Xsqlite3_compileoption_get // testdata/sqlite-amalgamation-3390200/sqlite3.c:130530:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1288)) = Xsqlite3_compileoption_used // testdata/sqlite-amalgamation-3390200/sqlite3.c:130531:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, int32, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1296)) = Xsqlite3_create_function_v2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130536:3: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1304)) = Xsqlite3_db_config // testdata/sqlite-amalgamation-3390200/sqlite3.c:130537:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1312)) = Xsqlite3_db_mutex // testdata/sqlite-amalgamation-3390200/sqlite3.c:130538:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1320)) = Xsqlite3_db_status // testdata/sqlite-amalgamation-3390200/sqlite3.c:130539:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1328)) = Xsqlite3_extended_errcode // testdata/sqlite-amalgamation-3390200/sqlite3.c:130540:3: + *(*func(*libc.TLS, int32, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1336)) = Xsqlite3_log // testdata/sqlite-amalgamation-3390200/sqlite3.c:130541:3: + *(*func(*libc.TLS, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1344)) = Xsqlite3_soft_heap_limit64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130542:3: + *(*func(*libc.TLS) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1352)) = Xsqlite3_sourceid // testdata/sqlite-amalgamation-3390200/sqlite3.c:130543:3: + *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1360)) = Xsqlite3_stmt_status // testdata/sqlite-amalgamation-3390200/sqlite3.c:130544:3: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1368)) = Xsqlite3_strnicmp // testdata/sqlite-amalgamation-3390200/sqlite3.c:130545:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1376)) = Xsqlite3_unlock_notify // testdata/sqlite-amalgamation-3390200/sqlite3.c:130547:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1384)) = Xsqlite3_wal_autocheckpoint // testdata/sqlite-amalgamation-3390200/sqlite3.c:130552:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1392)) = Xsqlite3_wal_checkpoint // testdata/sqlite-amalgamation-3390200/sqlite3.c:130553:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1400)) = Xsqlite3_wal_hook // testdata/sqlite-amalgamation-3390200/sqlite3.c:130554:3: + *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1408)) = Xsqlite3_blob_reopen // testdata/sqlite-amalgamation-3390200/sqlite3.c:130560:3: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1416)) = Xsqlite3_vtab_config // testdata/sqlite-amalgamation-3390200/sqlite3.c:130561:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1424)) = Xsqlite3_vtab_on_conflict // testdata/sqlite-amalgamation-3390200/sqlite3.c:130562:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1432)) = Xsqlite3_close_v2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130563:3: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1440)) = Xsqlite3_db_filename // testdata/sqlite-amalgamation-3390200/sqlite3.c:130564:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1448)) = Xsqlite3_db_readonly // testdata/sqlite-amalgamation-3390200/sqlite3.c:130565:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1456)) = Xsqlite3_db_release_memory // testdata/sqlite-amalgamation-3390200/sqlite3.c:130566:3: + *(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1464)) = Xsqlite3_errstr // testdata/sqlite-amalgamation-3390200/sqlite3.c:130567:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1472)) = Xsqlite3_stmt_busy // testdata/sqlite-amalgamation-3390200/sqlite3.c:130568:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1480)) = Xsqlite3_stmt_readonly // testdata/sqlite-amalgamation-3390200/sqlite3.c:130569:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1488)) = Xsqlite3_stricmp // testdata/sqlite-amalgamation-3390200/sqlite3.c:130570:3: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1496)) = Xsqlite3_uri_boolean // testdata/sqlite-amalgamation-3390200/sqlite3.c:130571:3: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1504)) = Xsqlite3_uri_int64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130572:3: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1512)) = Xsqlite3_uri_parameter // testdata/sqlite-amalgamation-3390200/sqlite3.c:130573:3: + *(*func(*libc.TLS, int32, uintptr, uintptr, Va_list) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1520)) = Xsqlite3_vsnprintf // testdata/sqlite-amalgamation-3390200/sqlite3.c:130574:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1528)) = Xsqlite3_wal_checkpoint_v2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130575:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1536)) = Xsqlite3_auto_extension // testdata/sqlite-amalgamation-3390200/sqlite3.c:130577:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, Sqlite3_uint64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1544)) = Xsqlite3_bind_blob64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130578:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, Sqlite3_uint64, uintptr, uint8) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1552)) = Xsqlite3_bind_text64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130579:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1560)) = Xsqlite3_cancel_auto_extension // testdata/sqlite-amalgamation-3390200/sqlite3.c:130580:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1568)) = Xsqlite3_load_extension // testdata/sqlite-amalgamation-3390200/sqlite3.c:130581:3: + *(*func(*libc.TLS, Sqlite3_uint64) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1576)) = Xsqlite3_malloc64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130582:3: + *(*func(*libc.TLS, uintptr) Sqlite3_uint64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1584)) = Xsqlite3_msize // testdata/sqlite-amalgamation-3390200/sqlite3.c:130583:3: + *(*func(*libc.TLS, uintptr, Sqlite3_uint64) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1592)) = Xsqlite3_realloc64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130584:3: + *(*func(*libc.TLS))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1600)) = Xsqlite3_reset_auto_extension // testdata/sqlite-amalgamation-3390200/sqlite3.c:130585:3: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_uint64, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1608)) = Xsqlite3_result_blob64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130586:3: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_uint64, uintptr, uint8))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1616)) = Xsqlite3_result_text64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130587:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1624)) = Xsqlite3_strglob // testdata/sqlite-amalgamation-3390200/sqlite3.c:130588:3: *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1632 /* .value_dup */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr) uintptr - }{Xsqlite3_value_dup})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:129351:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1640)) = Xsqlite3_value_free // testdata/sqlite-amalgamation-3380500/sqlite3.c:129352:3: - *(*func(*libc.TLS, uintptr, U64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1648)) = Xsqlite3_result_zeroblob64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129353:3: - *(*func(*libc.TLS, uintptr, int32, Sqlite3_uint64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1656)) = Xsqlite3_bind_zeroblob64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129354:3: - *(*func(*libc.TLS, uintptr) uint32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1664)) = Xsqlite3_value_subtype // testdata/sqlite-amalgamation-3380500/sqlite3.c:129356:3: - *(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1672)) = Xsqlite3_result_subtype // testdata/sqlite-amalgamation-3380500/sqlite3.c:129357:3: - *(*func(*libc.TLS, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1680)) = Xsqlite3_status64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129359:3: - *(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1688)) = Xsqlite3_strlike // testdata/sqlite-amalgamation-3380500/sqlite3.c:129360:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1696)) = Xsqlite3_db_cacheflush // testdata/sqlite-amalgamation-3380500/sqlite3.c:129361:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1704)) = Xsqlite3_system_errno // testdata/sqlite-amalgamation-3380500/sqlite3.c:129363:3: - *(*func(*libc.TLS, uintptr, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1712)) = Xsqlite3_trace_v2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129365:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1720)) = Xsqlite3_expanded_sql // testdata/sqlite-amalgamation-3380500/sqlite3.c:129366:3: - *(*func(*libc.TLS, uintptr, Sqlite3_int64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1728)) = Xsqlite3_set_last_insert_rowid // testdata/sqlite-amalgamation-3380500/sqlite3.c:129368:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1736)) = Xsqlite3_prepare_v3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129370:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1744)) = Xsqlite3_prepare16_v3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129371:3: - *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1752)) = Xsqlite3_bind_pointer // testdata/sqlite-amalgamation-3380500/sqlite3.c:129372:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1760)) = Xsqlite3_result_pointer // testdata/sqlite-amalgamation-3380500/sqlite3.c:129373:3: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1768)) = Xsqlite3_value_pointer // testdata/sqlite-amalgamation-3380500/sqlite3.c:129374:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1776)) = Xsqlite3_vtab_nochange // testdata/sqlite-amalgamation-3380500/sqlite3.c:129376:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1784)) = Xsqlite3_value_nochange // testdata/sqlite-amalgamation-3380500/sqlite3.c:129377:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1792)) = Xsqlite3_vtab_collation // testdata/sqlite-amalgamation-3380500/sqlite3.c:129378:3: - *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1800)) = Xsqlite3_keyword_count // testdata/sqlite-amalgamation-3380500/sqlite3.c:129380:3: - *(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1808)) = Xsqlite3_keyword_name // testdata/sqlite-amalgamation-3380500/sqlite3.c:129381:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1816)) = Xsqlite3_keyword_check // testdata/sqlite-amalgamation-3380500/sqlite3.c:129382:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1824)) = Xsqlite3_str_new // testdata/sqlite-amalgamation-3380500/sqlite3.c:129383:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1832)) = Xsqlite3_str_finish // testdata/sqlite-amalgamation-3380500/sqlite3.c:129384:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1840)) = Xsqlite3_str_appendf // testdata/sqlite-amalgamation-3380500/sqlite3.c:129385:3: - *(*func(*libc.TLS, uintptr, uintptr, Va_list))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1848)) = Xsqlite3_str_vappendf // testdata/sqlite-amalgamation-3380500/sqlite3.c:129386:3: - *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1856)) = Xsqlite3_str_append // testdata/sqlite-amalgamation-3380500/sqlite3.c:129387:3: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1864)) = Xsqlite3_str_appendall // testdata/sqlite-amalgamation-3380500/sqlite3.c:129388:3: - *(*func(*libc.TLS, uintptr, int32, int8))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1872)) = Xsqlite3_str_appendchar // testdata/sqlite-amalgamation-3380500/sqlite3.c:129389:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1880)) = Xsqlite3_str_reset // testdata/sqlite-amalgamation-3380500/sqlite3.c:129390:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1888)) = Xsqlite3_str_errcode // testdata/sqlite-amalgamation-3380500/sqlite3.c:129391:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1896)) = Xsqlite3_str_length // testdata/sqlite-amalgamation-3380500/sqlite3.c:129392:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1904)) = Xsqlite3_str_value // testdata/sqlite-amalgamation-3380500/sqlite3.c:129393:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, int32, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1912)) = Xsqlite3_create_window_function // testdata/sqlite-amalgamation-3380500/sqlite3.c:129395:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1928)) = Xsqlite3_stmt_isexplain // testdata/sqlite-amalgamation-3380500/sqlite3.c:129403:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1936)) = Xsqlite3_value_frombind // testdata/sqlite-amalgamation-3380500/sqlite3.c:129404:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1944)) = Xsqlite3_drop_modules // testdata/sqlite-amalgamation-3380500/sqlite3.c:129407:3: - *(*func(*libc.TLS, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1952)) = Xsqlite3_hard_heap_limit64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129412:3: - *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1960)) = Xsqlite3_uri_key // testdata/sqlite-amalgamation-3380500/sqlite3.c:129413:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1968)) = Xsqlite3_filename_database // testdata/sqlite-amalgamation-3380500/sqlite3.c:129414:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1976)) = Xsqlite3_filename_journal // testdata/sqlite-amalgamation-3380500/sqlite3.c:129415:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1984)) = Xsqlite3_filename_wal // testdata/sqlite-amalgamation-3380500/sqlite3.c:129416:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1992)) = Xsqlite3_create_filename // testdata/sqlite-amalgamation-3380500/sqlite3.c:129418:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2000)) = Xsqlite3_free_filename // testdata/sqlite-amalgamation-3380500/sqlite3.c:129419:3: - *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2008)) = Xsqlite3_database_file_object // testdata/sqlite-amalgamation-3380500/sqlite3.c:129420:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2016)) = Xsqlite3_txn_state // testdata/sqlite-amalgamation-3380500/sqlite3.c:129422:3: - *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2024)) = Xsqlite3_changes64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129424:3: - *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2032)) = Xsqlite3_total_changes64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:129425:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2040)) = Xsqlite3_autovacuum_pages // testdata/sqlite-amalgamation-3380500/sqlite3.c:129427:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2048)) = Xsqlite3_error_offset // testdata/sqlite-amalgamation-3380500/sqlite3.c:129429:3: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2056)) = Xsqlite3_vtab_rhs_value // testdata/sqlite-amalgamation-3380500/sqlite3.c:129430:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2064)) = Xsqlite3_vtab_distinct // testdata/sqlite-amalgamation-3380500/sqlite3.c:129431:3: - *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2072)) = Xsqlite3_vtab_in // testdata/sqlite-amalgamation-3380500/sqlite3.c:129432:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2080)) = Xsqlite3_vtab_in_first // testdata/sqlite-amalgamation-3380500/sqlite3.c:129433:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2088)) = Xsqlite3_vtab_in_next // testdata/sqlite-amalgamation-3380500/sqlite3.c:129434:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 0)) = Xsqlite3Fts5Init // testdata/sqlite-amalgamation-3380500/sqlite3.c:168599:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 8)) = Xsqlite3RtreeInit // testdata/sqlite-amalgamation-3380500/sqlite3.c:168605:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 16)) = sqlite3TestExtInit // testdata/sqlite-amalgamation-3380500/sqlite3.c:168613:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 24)) = Xsqlite3JsonTableFunctions // testdata/sqlite-amalgamation-3380500/sqlite3.c:168615:3: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statGetFuncdef)) + 24)) = statGet // testdata/sqlite-amalgamation-3380500/sqlite3.c:112048:3: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statInitFuncdef)) + 24)) = statInit // testdata/sqlite-amalgamation-3380500/sqlite3.c:111624:3: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statPushFuncdef)) + 24)) = statPush // testdata/sqlite-amalgamation-3380500/sqlite3.c:111914:3: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 40)) = rbuVfsOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:209023:5: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 48)) = rbuVfsDelete // testdata/sqlite-amalgamation-3380500/sqlite3.c:209024:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 56)) = rbuVfsAccess // testdata/sqlite-amalgamation-3380500/sqlite3.c:209025:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 64)) = rbuVfsFullPathname // testdata/sqlite-amalgamation-3380500/sqlite3.c:209026:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 72)) = rbuVfsDlOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:209029:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 80)) = rbuVfsDlError // testdata/sqlite-amalgamation-3380500/sqlite3.c:209030:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 88)) = rbuVfsDlSym // testdata/sqlite-amalgamation-3380500/sqlite3.c:209031:5: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 96)) = rbuVfsDlClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:209032:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 104)) = rbuVfsRandomness // testdata/sqlite-amalgamation-3380500/sqlite3.c:209037:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 112)) = rbuVfsSleep // testdata/sqlite-amalgamation-3380500/sqlite3.c:209038:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 120)) = rbuVfsCurrentTime // testdata/sqlite-amalgamation-3380500/sqlite3.c:209039:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 128)) = rbuVfsGetLastError // testdata/sqlite-amalgamation-3380500/sqlite3.c:209040:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winAppData)) + 0 /* .pMethod */)) = uintptr(unsafe.Pointer(&winIoMethod)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:47561:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 8)) = winClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:47514:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 16)) = winRead // testdata/sqlite-amalgamation-3380500/sqlite3.c:47515:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 24)) = winWrite // testdata/sqlite-amalgamation-3380500/sqlite3.c:47516:3: - *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 32)) = winTruncate // testdata/sqlite-amalgamation-3380500/sqlite3.c:47517:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 40)) = winSync // testdata/sqlite-amalgamation-3380500/sqlite3.c:47518:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 48)) = winFileSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:47519:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 56)) = winLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:47520:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 64)) = winUnlock // testdata/sqlite-amalgamation-3380500/sqlite3.c:47521:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 72)) = winCheckReservedLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:47522:3: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 80)) = winFileControl // testdata/sqlite-amalgamation-3380500/sqlite3.c:47523:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 88)) = winSectorSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:47524:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 96)) = winDeviceCharacteristics // testdata/sqlite-amalgamation-3380500/sqlite3.c:47525:3: - *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 104)) = winShmMap // testdata/sqlite-amalgamation-3380500/sqlite3.c:47526:3: - *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 112)) = winShmLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:47527:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 120)) = winShmBarrier // testdata/sqlite-amalgamation-3380500/sqlite3.c:47528:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 128)) = winShmUnmap // testdata/sqlite-amalgamation-3380500/sqlite3.c:47529:3: - *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 136)) = winFetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:47530:3: - *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 144)) = winUnfetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:47531:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 8)) = winClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:47540:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 16)) = winRead // testdata/sqlite-amalgamation-3380500/sqlite3.c:47541:3: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 24)) = winWrite // testdata/sqlite-amalgamation-3380500/sqlite3.c:47542:3: - *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 32)) = winTruncate // testdata/sqlite-amalgamation-3380500/sqlite3.c:47543:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 40)) = winSync // testdata/sqlite-amalgamation-3380500/sqlite3.c:47544:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 48)) = winFileSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:47545:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 56)) = winNolockLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:47546:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 64)) = winNolockUnlock // testdata/sqlite-amalgamation-3380500/sqlite3.c:47547:3: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 72)) = winNolockCheckReservedLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:47548:3: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 80)) = winFileControl // testdata/sqlite-amalgamation-3380500/sqlite3.c:47549:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 88)) = winSectorSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:47550:3: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 96)) = winDeviceCharacteristics // testdata/sqlite-amalgamation-3380500/sqlite3.c:47551:3: - *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 104)) = winShmMap // testdata/sqlite-amalgamation-3380500/sqlite3.c:47552:3: - *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 112)) = winShmLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:47553:3: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 120)) = winShmBarrier // testdata/sqlite-amalgamation-3380500/sqlite3.c:47554:3: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 128)) = winShmUnmap // testdata/sqlite-amalgamation-3380500/sqlite3.c:47555:3: - *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 136)) = winFetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:47556:3: - *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 144)) = winUnfetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:47557:3: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winNolockAppData)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:49011:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 40)) = winOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:49012:5: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 48)) = winDelete // testdata/sqlite-amalgamation-3380500/sqlite3.c:49013:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 56)) = winAccess // testdata/sqlite-amalgamation-3380500/sqlite3.c:49014:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 64)) = winFullPathname // testdata/sqlite-amalgamation-3380500/sqlite3.c:49015:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 72)) = winDlOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:49016:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 80)) = winDlError // testdata/sqlite-amalgamation-3380500/sqlite3.c:49017:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 88)) = winDlSym // testdata/sqlite-amalgamation-3380500/sqlite3.c:49018:5: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 96)) = winDlClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:49019:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 104)) = winRandomness // testdata/sqlite-amalgamation-3380500/sqlite3.c:49020:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 112)) = winSleep // testdata/sqlite-amalgamation-3380500/sqlite3.c:49021:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 120)) = winCurrentTime // testdata/sqlite-amalgamation-3380500/sqlite3.c:49022:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 128)) = winGetLastError // testdata/sqlite-amalgamation-3380500/sqlite3.c:49023:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 136)) = winCurrentTimeInt64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:49024:5: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 144)) = winSetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:49025:5: - *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 152)) = winGetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:49026:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 160)) = winNextSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:49027:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winAppData)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:48961:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 40)) = winOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:48962:5: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 48)) = winDelete // testdata/sqlite-amalgamation-3380500/sqlite3.c:48963:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 56)) = winAccess // testdata/sqlite-amalgamation-3380500/sqlite3.c:48964:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 64)) = winFullPathname // testdata/sqlite-amalgamation-3380500/sqlite3.c:48965:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 72)) = winDlOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:48966:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 80)) = winDlError // testdata/sqlite-amalgamation-3380500/sqlite3.c:48967:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 88)) = winDlSym // testdata/sqlite-amalgamation-3380500/sqlite3.c:48968:5: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 96)) = winDlClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:48969:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 104)) = winRandomness // testdata/sqlite-amalgamation-3380500/sqlite3.c:48970:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 112)) = winSleep // testdata/sqlite-amalgamation-3380500/sqlite3.c:48971:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 120)) = winCurrentTime // testdata/sqlite-amalgamation-3380500/sqlite3.c:48972:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 128)) = winGetLastError // testdata/sqlite-amalgamation-3380500/sqlite3.c:48973:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 136)) = winCurrentTimeInt64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:48974:5: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 144)) = winSetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:48975:5: - *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 152)) = winGetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:48976:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 160)) = winNextSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:48977:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockAppData)) + 0 /* .pMethod */)) = uintptr(unsafe.Pointer(&winIoNolockMethod)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:47567:3: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winNolockAppData)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:48986:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 40)) = winOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:48987:5: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 48)) = winDelete // testdata/sqlite-amalgamation-3380500/sqlite3.c:48988:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 56)) = winAccess // testdata/sqlite-amalgamation-3380500/sqlite3.c:48989:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 64)) = winFullPathname // testdata/sqlite-amalgamation-3380500/sqlite3.c:48990:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 72)) = winDlOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:48991:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 80)) = winDlError // testdata/sqlite-amalgamation-3380500/sqlite3.c:48992:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 88)) = winDlSym // testdata/sqlite-amalgamation-3380500/sqlite3.c:48993:5: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 96)) = winDlClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:48994:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 104)) = winRandomness // testdata/sqlite-amalgamation-3380500/sqlite3.c:48995:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 112)) = winSleep // testdata/sqlite-amalgamation-3380500/sqlite3.c:48996:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 120)) = winCurrentTime // testdata/sqlite-amalgamation-3380500/sqlite3.c:48997:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 128)) = winGetLastError // testdata/sqlite-amalgamation-3380500/sqlite3.c:48998:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 136)) = winCurrentTimeInt64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:48999:5: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 144)) = winSetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:49000:5: - *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 152)) = winGetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:49001:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 160)) = winNextSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:49002:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winAppData)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:48936:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 40)) = winOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:48937:5: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 48)) = winDelete // testdata/sqlite-amalgamation-3380500/sqlite3.c:48938:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 56)) = winAccess // testdata/sqlite-amalgamation-3380500/sqlite3.c:48939:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 64)) = winFullPathname // testdata/sqlite-amalgamation-3380500/sqlite3.c:48940:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 72)) = winDlOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:48941:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 80)) = winDlError // testdata/sqlite-amalgamation-3380500/sqlite3.c:48942:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 88)) = winDlSym // testdata/sqlite-amalgamation-3380500/sqlite3.c:48943:5: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 96)) = winDlClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:48944:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 104)) = winRandomness // testdata/sqlite-amalgamation-3380500/sqlite3.c:48945:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 112)) = winSleep // testdata/sqlite-amalgamation-3380500/sqlite3.c:48946:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 120)) = winCurrentTime // testdata/sqlite-amalgamation-3380500/sqlite3.c:48947:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 128)) = winGetLastError // testdata/sqlite-amalgamation-3380500/sqlite3.c:48948:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 136)) = winCurrentTimeInt64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:48949:5: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 144)) = winSetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:48950:5: - *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 152)) = winGetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:48951:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 160)) = winNextSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:48952:5: -} - -var ts1 = "3.38.5\x00ATOMIC_INTRINSICS=1\x00COMPILER=msvc-1900\x00DEFAULT_AUTOVACUUM\x00DEFAULT_CACHE_SIZE=-2000\x00DEFAULT_FILE_FORMAT=4\x00DEFAULT_JOURNAL_SIZE_LIMIT=-1\x00DEFAULT_MMAP_SIZE=0\x00DEFAULT_PAGE_SIZE=4096\x00DEFAULT_PCACHE_INITSZ=20\x00DEFAULT_RECURSIVE_TRIGGERS\x00DEFAULT_SECTOR_SIZE=4096\x00DEFAULT_SYNCHRONOUS=2\x00DEFAULT_WAL_AUTOCHECKPOINT=1000\x00DEFAULT_WAL_SYNCHRONOUS=2\x00DEFAULT_WORKER_THREADS=0\x00ENABLE_COLUMN_METADATA\x00ENABLE_FTS5\x00ENABLE_GEOPOLY\x00ENABLE_MATH_FUNCTIONS\x00ENABLE_MEMORY_MANAGEMENT\x00ENABLE_OFFSET_SQL_FUNC\x00ENABLE_PREUPDATE_HOOK\x00ENABLE_RBU\x00ENABLE_RTREE\x00ENABLE_SESSION\x00ENABLE_SNAPSHOT\x00ENABLE_STAT4\x00ENABLE_UNLOCK_NOTIFY\x00LIKE_DOESNT_MATCH_BLOBS\x00MALLOC_SOFT_LIMIT=1024\x00MAX_ATTACHED=10\x00MAX_COLUMN=2000\x00MAX_COMPOUND_SELECT=500\x00MAX_DEFAULT_PAGE_SIZE=8192\x00MAX_EXPR_DEPTH=1000\x00MAX_FUNCTION_ARG=127\x00MAX_LENGTH=1000000000\x00MAX_LIKE_PATTERN_LENGTH=50000\x00MAX_MMAP_SIZE=0x7fff0000\x00MAX_PAGE_COUNT=1073741823\x00MAX_PAGE_SIZE=65536\x00MAX_SQL_LENGTH=1000000000\x00MAX_TRIGGER_DEPTH=1000\x00MAX_VARIABLE_NUMBER=32766\x00MAX_VDBE_OP=250000000\x00MAX_WORKER_THREADS=8\x00MUTEX_NOOP\x00SOUNDEX\x00SYSTEM_MALLOC\x00TEMP_STORE=1\x00THREADSAFE=1\x00BINARY\x00ANY\x00BLOB\x00INT\x00INTEGER\x00REAL\x00TEXT\x0020b:20e\x0020c:20e\x0020e\x0040f-21a-21d\x00now\x00local time unavailable\x00second\x00minute\x00hour\x00\x00\x00day\x00\x00\x00\x00month\x00\x00year\x00\x00\x00auto\x00julianday\x00localtime\x00unixepoch\x00utc\x00weekday \x00start of \x00month\x00year\x00day\x00%02d\x00%06.3f\x00%03d\x00%.16g\x00%lld\x00%04d\x00date\x00time\x00datetime\x00strftime\x00current_time\x00current_timestamp\x00current_date\x00failed to allocate %u bytes of memory\x00failed memory resize %u to %u bytes\x00out of memory\x000123456789ABCDEF0123456789abcdef\x00-x0\x00X0\x00%\x00NaN\x00Inf\x00\x00NULL\x00(NULL)\x00.\x00SUBQUERY %u\x00thstndrd\x00922337203685477580\x00API call with %s database connection pointer\x00unopened\x00invalid\x00Savepoint\x00AutoCommit\x00Transaction\x00SorterNext\x00Prev\x00Next\x00Checkpoint\x00JournalMode\x00Vacuum\x00VFilter\x00VUpdate\x00Goto\x00Gosub\x00InitCoroutine\x00Yield\x00MustBeInt\x00Jump\x00Once\x00If\x00Not\x00IfNot\x00IsNullOrType\x00IfNullRow\x00SeekLT\x00SeekLE\x00SeekGE\x00SeekGT\x00IfNotOpen\x00IfNoHope\x00NoConflict\x00NotFound\x00Found\x00SeekRowid\x00NotExists\x00Last\x00IfSmaller\x00SorterSort\x00Sort\x00Rewind\x00IdxLE\x00IdxGT\x00IdxLT\x00IdxGE\x00Or\x00And\x00RowSetRead\x00RowSetTest\x00Program\x00FkIfZero\x00IfPos\x00IsNull\x00NotNull\x00Ne\x00Eq\x00Gt\x00Le\x00Lt\x00Ge\x00ElseEq\x00IfNotZero\x00DecrJumpZero\x00IncrVacuum\x00VNext\x00Filter\x00Init\x00PureFunc\x00Function\x00Return\x00EndCoroutine\x00HaltIfNull\x00Halt\x00Integer\x00Int64\x00String\x00Null\x00SoftNull\x00Blob\x00Variable\x00Move\x00Copy\x00SCopy\x00IntCopy\x00FkCheck\x00ResultRow\x00CollSeq\x00AddImm\x00RealAffinity\x00Cast\x00Permutation\x00Compare\x00IsTrue\x00ZeroOrNull\x00Offset\x00Column\x00TypeCheck\x00Affinity\x00MakeRecord\x00Count\x00ReadCookie\x00SetCookie\x00ReopenIdx\x00OpenRead\x00BitAnd\x00BitOr\x00ShiftLeft\x00ShiftRight\x00Add\x00Subtract\x00Multiply\x00Divide\x00Remainder\x00Concat\x00OpenWrite\x00OpenDup\x00BitNot\x00OpenAutoindex\x00OpenEphemeral\x00String8\x00SorterOpen\x00SequenceTest\x00OpenPseudo\x00Close\x00ColumnsUsed\x00SeekScan\x00SeekHit\x00Sequence\x00NewRowid\x00Insert\x00RowCell\x00Delete\x00ResetCount\x00SorterCompare\x00SorterData\x00RowData\x00Rowid\x00NullRow\x00SeekEnd\x00IdxInsert\x00SorterInsert\x00IdxDelete\x00DeferredSeek\x00IdxRowid\x00FinishSeek\x00Destroy\x00Clear\x00ResetSorter\x00CreateBtree\x00SqlExec\x00ParseSchema\x00LoadAnalysis\x00DropTable\x00DropIndex\x00DropTrigger\x00Real\x00IntegrityCk\x00RowSetAdd\x00Param\x00FkCounter\x00MemMax\x00OffsetLimit\x00AggInverse\x00AggStep\x00AggStep1\x00AggValue\x00AggFinal\x00Expire\x00CursorLock\x00CursorUnlock\x00TableLock\x00VBegin\x00VCreate\x00VDestroy\x00VOpen\x00VInitIn\x00VColumn\x00VRename\x00Pagecount\x00MaxPgcnt\x00FilterAdd\x00Trace\x00CursorHint\x00ReleaseReg\x00Noop\x00Explain\x00Abortable\x00AreFileApisANSI\x00CharLowerW\x00CharUpperW\x00CloseHandle\x00CreateFileA\x00CreateFileW\x00CreateFileMappingA\x00CreateFileMappingW\x00CreateMutexW\x00DeleteFileA\x00DeleteFileW\x00FileTimeToLocalFileTime\x00FileTimeToSystemTime\x00FlushFileBuffers\x00FormatMessageA\x00FormatMessageW\x00FreeLibrary\x00GetCurrentProcessId\x00GetDiskFreeSpaceA\x00GetDiskFreeSpaceW\x00GetFileAttributesA\x00GetFileAttributesW\x00GetFileAttributesExW\x00GetFileSize\x00GetFullPathNameA\x00GetFullPathNameW\x00GetLastError\x00GetProcAddressA\x00GetSystemInfo\x00GetSystemTime\x00GetSystemTimeAsFileTime\x00GetTempPathA\x00GetTempPathW\x00GetTickCount\x00GetVersionExA\x00GetVersionExW\x00HeapAlloc\x00HeapCreate\x00HeapDestroy\x00HeapFree\x00HeapReAlloc\x00HeapSize\x00HeapValidate\x00HeapCompact\x00LoadLibraryA\x00LoadLibraryW\x00LocalFree\x00LockFile\x00LockFileEx\x00MapViewOfFile\x00MultiByteToWideChar\x00QueryPerformanceCounter\x00ReadFile\x00SetEndOfFile\x00SetFilePointer\x00Sleep\x00SystemTimeToFileTime\x00UnlockFile\x00UnlockFileEx\x00UnmapViewOfFile\x00WideCharToMultiByte\x00WriteFile\x00CreateEventExW\x00WaitForSingleObject\x00WaitForSingleObjectEx\x00SetFilePointerEx\x00GetFileInformationByHandleEx\x00MapViewOfFileFromApp\x00CreateFile2\x00LoadPackagedLibrary\x00GetTickCount64\x00GetNativeSystemInfo\x00OutputDebugStringA\x00OutputDebugStringW\x00GetProcessHeap\x00CreateFileMappingFromApp\x00InterlockedCompareExchange\x00UuidCreate\x00UuidCreateSequential\x00FlushViewOfFile\x00%s\x00OsError 0x%lx (%lu)\x00os_win.c:%d: (%lu) %s(%s) - %s\x00delayed %dms for lock/sharing conflict at line %d\x00winSeekFile\x00winClose\x00winRead\x00winWrite1\x00winWrite2\x00winTruncate1\x00winTruncate2\x00winSync1\x00winSync2\x00winFileSize\x00winUnlockReadLock\x00winUnlock\x00winLockSharedMemory\x00%s-shm\x00readonly_shm\x00winOpenShm\x00winShmMap1\x00winShmMap2\x00winShmMap3\x00winUnmapfile1\x00winUnmapfile2\x00winMapfile1\x00winMapfile2\x00etilqs_\x00winGetTempname1\x00winGetTempname2\x00winGetTempname3\x00winGetTempname4\x00winGetTempname5\x00abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\x00exclusive\x00winOpen\x00psow\x00winDelete\x00winAccess\x00%s%c%s\x00winFullPathname1\x00winFullPathname2\x00winFullPathname3\x00winFullPathname4\x00win32\x00win32-longpath\x00win32-none\x00win32-longpath-none\x00memdb\x00memdb(%p,%lld)\x00PRAGMA \"%w\".page_count\x00ATTACH x AS %Q\x00recovered %d pages from %s\x00-journal\x00-wal\x00nolock\x00immutable\x00PRAGMA table_list\x00recovered %d frames from WAL file %s\x00cannot limit WAL size: %s\x00SQLite format 3\x00:memory:\x00@ \x00\n\x00invalid page number %d\x002nd reference to page %d\x00Failed to read ptrmap key=%d\x00Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)\x00failed to get page %d\x00freelist leaf count too big on page %d\x00%s is %d but should be %d\x00size\x00overflow list length\x00Page %u: \x00unable to get the page. error code=%d\x00btreeInitPage() returns error code %d\x00free space corruption\x00On tree page %u cell %d: \x00On page %u at right child: \x00Offset %d out of range %d..%d\x00Extends off end of page\x00Rowid %lld out of order\x00Child page depth differs\x00Multiple uses for byte %u of page %u\x00Fragmentation of %d bytes reported as %d on page %u\x00Main freelist: \x00max rootpage (%d) disagrees with header (%d)\x00incremental_vacuum enabled with a max rootpage of zero\x00Page %d is never used\x00Pointer map page %d is referenced\x00unknown database %s\x00destination database is in use\x00source and destination must be distinct\x00%!.15g\x00-\x00%s%s\x00k(%d\x00B\x00,%s%s%s\x00N.\x00)\x00%.18s-%s\x00%s(%d)\x00%d\x00(blob)\x00vtab:%p\x00%c%u\x00]\x00program\x00?\x008\x0016LE\x0016BE\x00addr\x00opcode\x00p1\x00p2\x00p3\x00p4\x00p5\x00comment\x00id\x00parent\x00notused\x00detail\x00%.4c%s%.16c\x00MJ delete: %s\x00MJ collide: %s\x00-mj%06X9%02X\x00FOREIGN KEY constraint failed\x00a CHECK constraint\x00a generated column\x00an index\x00non-deterministic use of %s() in %s\x00API called with finalized prepared statement\x00API called with NULL prepared statement\x00string or blob too big\x00ValueList\x00bind on a busy prepared statement: [%s]\x00-- \x00'%.*q'\x00zeroblob(%d)\x00x'\x00%02x\x00'\x00%s constraint failed\x00%z: %s\x00abort at %d in [%s]: %s\x00cannot store %s value in %s column %s.%s\x00cannot open savepoint - SQL statements in progress\x00no such savepoint: %s\x00cannot release savepoint - SQL statements in progress\x00cannot commit transaction - SQL statements in progress\x00cannot start a transaction within a transaction\x00cannot rollback - no transaction is active\x00cannot commit - no transaction is active\x00database schema has changed\x00index corruption\x00sqlite_master\x00SELECT*FROM\"%w\".%s WHERE %s ORDER BY rowid\x00too many levels of trigger recursion\x00cannot change %s wal mode from within a transaction\x00into\x00out of\x00database table is locked: %s\x00-- %s\x00statement aborts at %d: [%s] %s\x00NOT NULL\x00UNIQUE\x00CHECK\x00FOREIGN KEY\x00cannot open value of type %s\x00null\x00real\x00integer\x00no such rowid: %lld\x00cannot open virtual table: %s\x00cannot open table without rowid: %s\x00cannot open view: %s\x00no such column: \"%s\"\x00foreign key\x00indexed\x00cannot open %s column for writing\x00main\x00*\x00new\x00old\x00excluded\x00misuse of aliased aggregate %s\x00misuse of aliased window function %s\x00row value misused\x00double-quoted string literal: \"%w\"\x00no such column\x00ambiguous column name\x00%s: %s.%s.%s\x00%s: %s.%s\x00%s: %s\x00partial index WHERE clauses\x00index expressions\x00CHECK constraints\x00generated columns\x00%s prohibited in %s\x00true\x00false\x00the \".\" operator\x00second argument to %#T() must be a constant between 0.0 and 1.0\x00not authorized to use function: %#T\x00non-deterministic functions\x00%#T() may not be used as a window function\x00window\x00aggregate\x00misuse of %s function %#T()\x00no such function: %#T\x00wrong number of arguments to function %#T()\x00FILTER may not be used with non-aggregate %#T()\x00subqueries\x00parameters\x00%r %s BY term out of range - should be between 1 and %d\x00too many terms in ORDER BY clause\x00ORDER\x00%r ORDER BY term does not match any column in the result set\x00too many terms in %s BY clause\x00a GROUP BY clause is required before HAVING\x00GROUP\x00aggregate functions are not allowed in the GROUP BY clause\x00Expression tree is too large (maximum depth %d)\x00IN(...) element has %d term%s - expected %d\x00s\x000\x00too many arguments on function %T\x00unsafe use of %#T()\x00variable number must be between ?1 and ?%d\x00too many SQL variables\x00%d columns assigned %d values\x00too many columns in %s\x00_ROWID_\x00ROWID\x00OID\x00USING ROWID SEARCH ON TABLE %s FOR IN-OPERATOR\x00USING INDEX %s FOR IN-OPERATOR\x00sub-select returns %d columns - expected %d\x00REUSE LIST SUBQUERY %d\x00%sLIST SUBQUERY %d\x00CORRELATED \x00REUSE SUBQUERY %d\x00%sSCALAR SUBQUERY %d\x001\x000x\x00hex literal too big: %s%#T\x00generated column loop on \"%s\"\x00blob\x00text\x00numeric\x00none\x00misuse of aggregate: %#T()\x00unknown function: %#T()\x00RAISE() may only be used within a trigger-program\x00B\x00C\x00D\x00E\x00sqlite_\x00table %s may not be altered\x00SELECT 1 FROM \"%w\".sqlite_master WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%' AND sqlite_rename_test(%Q, sql, type, name, %d, %Q, %d)=NULL \x00SELECT 1 FROM temp.sqlite_master WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%' AND sqlite_rename_test(%Q, sql, type, name, 1, %Q, %d)=NULL \x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_quotefix(%Q, sql)WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%'\x00UPDATE temp.sqlite_master SET sql = sqlite_rename_quotefix('temp', sql)WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%'\x00there is already another table or index with this name: %s\x00table\x00view %s may not be altered\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_table(%Q, type, name, sql, %Q, %Q, %d) WHERE (type!='index' OR tbl_name=%Q COLLATE nocase)AND name NOT LIKE 'sqliteX_%%' ESCAPE 'X'\x00UPDATE %Q.sqlite_master SET tbl_name = %Q, name = CASE WHEN type='table' THEN %Q WHEN name LIKE 'sqliteX_autoindex%%' ESCAPE 'X' AND type='index' THEN 'sqlite_autoindex_' || %Q || substr(name,%d+18) ELSE name END WHERE tbl_name=%Q COLLATE nocase AND (type='table' OR type='index' OR type='trigger');\x00sqlite_sequence\x00UPDATE \"%w\".sqlite_sequence set name = %Q WHERE name = %Q\x00UPDATE sqlite_temp_schema SET sql = sqlite_rename_table(%Q, type, name, sql, %Q, %Q, 1), tbl_name = CASE WHEN tbl_name=%Q COLLATE nocase AND sqlite_rename_test(%Q, sql, type, name, 1, 'after rename', 0) THEN %Q ELSE tbl_name END WHERE type IN ('view', 'trigger')\x00after rename\x00SELECT raise(ABORT,%Q) FROM \"%w\".\"%w\"\x00Cannot add a PRIMARY KEY column\x00Cannot add a UNIQUE column\x00Cannot add a REFERENCES column with non-NULL default value\x00Cannot add a NOT NULL column with default value NULL\x00Cannot add a column with non-constant default\x00cannot add a STORED column\x00UPDATE \"%w\".sqlite_master SET sql = printf('%%.%ds, ',sql) || %Q || substr(sql,1+length(printf('%%.%ds',sql))) WHERE type = 'table' AND name = %Q\x00SELECT CASE WHEN quick_check GLOB 'CHECK*' THEN raise(ABORT,'CHECK constraint failed') ELSE raise(ABORT,'NOT NULL constraint failed') END FROM pragma_quick_check(%Q,%Q) WHERE quick_check GLOB 'CHECK*' OR quick_check GLOB 'NULL*'\x00virtual tables may not be altered\x00Cannot add a column to a view\x00sqlite_altertab_%s\x00view\x00virtual table\x00cannot %s %s \"%s\"\x00drop column from\x00rename columns of\x00no such column: \"%T\"\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_column(sql, type, name, %Q, %Q, %d, %Q, %d, %d) WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND (type != 'index' OR tbl_name = %Q)\x00UPDATE temp.sqlite_master SET sql = sqlite_rename_column(sql, type, name, %Q, %Q, %d, %Q, %d, 1) WHERE type IN ('trigger', 'view')\x00error in %s %s%s%s: %s\x00 \x00CREATE \x00\"%w\" \x00%Q%s\x00%.*s%s\x00cannot drop %s column: \"%s\"\x00PRIMARY KEY\x00cannot drop column \"%s\": no other columns exist\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_drop_column(%d, sql, %d) WHERE (type=='table' AND tbl_name=%Q COLLATE nocase)\x00after drop column\x00sqlite_rename_column\x00sqlite_rename_table\x00sqlite_rename_test\x00sqlite_drop_column\x00sqlite_rename_quotefix\x00CREATE TABLE %Q.%s(%s)\x00DELETE FROM %Q.%s WHERE %s=%Q\x00DELETE FROM %Q.%s\x00sqlite_stat1\x00tbl,idx,stat\x00sqlite_stat4\x00tbl,idx,neq,nlt,ndlt,sample\x00sqlite_stat3\x00stat_init\x00stat_push\x00%llu\x00 %llu\x00%llu \x00stat_get\x00sqlite\\_%\x00BBB\x00idx\x00tbl\x00unordered*\x00sz=[0-9]*\x00noskipscan*\x00SELECT idx,count(*) FROM %Q.sqlite_stat4 GROUP BY idx\x00SELECT idx,neq,nlt,ndlt,sample FROM %Q.sqlite_stat4\x00SELECT tbl,idx,stat FROM %Q.sqlite_stat1\x00x\x00\x00too many attached databases - max %d\x00database %s is already in use\x00database is already attached\x00attached databases must use the same text encoding as main database\x00unable to open database: %s\x00no such database: %s\x00cannot detach database %s\x00database %s is locked\x00sqlite_detach\x00sqlite_attach\x00%s cannot use variables\x00%s %T cannot reference objects in database %s\x00authorizer malfunction\x00%s.%s\x00%s.%z\x00access to %z is prohibited\x00not authorized\x00sqlite_temp_schema\x00sqlite_schema\x00sqlite_temp_master\x00pragma_\x00no such view\x00no such table\x00corrupt database\x00unknown database %T\x00object name reserved for internal use: %s\x00temporary table name must be unqualified\x00%s %T already exists\x00there is already an index named %s\x00sqlite_returning\x00cannot use RETURNING in a trigger\x00too many columns on %s\x00always\x00generated\x00duplicate column name: %s\x00default value of column [%s] is not constant\x00cannot use DEFAULT on a generated column\x00generated columns cannot be part of the PRIMARY KEY\x00table \"%s\" has more than one primary key\x00AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY\x00virtual tables cannot use computed columns\x00virtual\x00stored\x00error in generated column \"%s\"\x00,\x00\n \x00,\n \x00\n)\x00CREATE TABLE \x00 TEXT\x00 NUM\x00 INT\x00 REAL\x00unknown datatype for %s.%s: \"%s\"\x00missing datatype for %s.%s\x00AUTOINCREMENT not allowed on WITHOUT ROWID tables\x00PRIMARY KEY missing on table %s\x00must have at least one non-generated column\x00TABLE\x00VIEW\x00CREATE %s %.*s\x00UPDATE %Q.sqlite_master SET type='%s', name=%Q, tbl_name=%Q, rootpage=#%d, sql=%Q WHERE rowid=#%d\x00CREATE TABLE %Q.sqlite_sequence(name,seq)\x00tbl_name='%q' AND type!='trigger'\x00parameters are not allowed in views\x00view %s is circularly defined\x00corrupt schema\x00UPDATE %Q.sqlite_master SET rootpage=%d WHERE #%d AND rootpage=#%d\x00sqlite_stat%d\x00DELETE FROM %Q.sqlite_sequence WHERE name=%Q\x00DELETE FROM %Q.sqlite_master WHERE tbl_name=%Q and type!='trigger'\x00stat\x00table %s may not be dropped\x00use DROP TABLE to delete table %s\x00use DROP VIEW to delete view %s\x00foreign key on %s should reference only one column of table %T\x00number of columns in foreign key does not match the number of columns in the referenced table\x00unknown column \"%s\" in foreign key definition\x00unsupported use of NULLS %s\x00FIRST\x00LAST\x00index\x00cannot create a TEMP index on non-TEMP table \"%s\"\x00table %s may not be indexed\x00views may not be indexed\x00virtual tables may not be indexed\x00there is already a table named %s\x00index %s already exists\x00sqlite_autoindex_%s_%d\x00expressions prohibited in PRIMARY KEY and UNIQUE constraints\x00conflicting ON CONFLICT clauses specified\x00invalid rootpage\x00CREATE%s INDEX %.*s\x00 UNIQUE\x00INSERT INTO %Q.sqlite_master VALUES('index',%Q,%Q,#%d,%Q);\x00name='%q' AND type='index'\x00no such index: %S\x00index associated with UNIQUE or PRIMARY KEY constraint cannot be dropped\x00DELETE FROM %Q.sqlite_master WHERE name=%Q AND type='index'\x00too many FROM clause terms, max: %d\x00a JOIN clause is required before %s\x00ON\x00USING\x00BEGIN\x00ROLLBACK\x00COMMIT\x00RELEASE\x00unable to open a temporary database file for storing temporary tables\x00index '%q'\x00, \x00%s.rowid\x00unable to identify the object to be reindexed\x00duplicate WITH table name: %s\x00no such collation sequence: %s\x00table %s may not be modified\x00cannot modify %s because it is a view\x00rows deleted\x00integer overflow\x00%.*f\x00LIKE or GLOB pattern too complex\x00ESCAPE expression must be a single character\x00%!.20e\x00%Q\x00?000\x00MATCH\x00like\x00implies_nonnull_row\x00expr_compare\x00expr_implies_expr\x00affinity\x00soundex\x00load_extension\x00sqlite_compileoption_used\x00sqlite_compileoption_get\x00unlikely\x00likelihood\x00likely\x00sqlite_offset\x00ltrim\x00rtrim\x00trim\x00min\x00max\x00typeof\x00subtype\x00length\x00instr\x00printf\x00format\x00unicode\x00char\x00abs\x00round\x00upper\x00lower\x00hex\x00ifnull\x00random\x00randomblob\x00nullif\x00sqlite_version\x00sqlite_source_id\x00sqlite_log\x00quote\x00last_insert_rowid\x00changes\x00total_changes\x00replace\x00zeroblob\x00substr\x00substring\x00sum\x00total\x00avg\x00count\x00group_concat\x00glob\x00coalesce\x00ceil\x00ceiling\x00floor\x00trunc\x00ln\x00log\x00log10\x00log2\x00exp\x00pow\x00power\x00mod\x00acos\x00asin\x00atan\x00atan2\x00cos\x00sin\x00tan\x00cosh\x00sinh\x00tanh\x00acosh\x00asinh\x00atanh\x00sqrt\x00radians\x00degrees\x00pi\x00sign\x00iif\x00foreign key mismatch - \"%w\" referencing \"%w\"\x00cannot INSERT into generated column \"%s\"\x00table %S has no column named %s\x00table %S has %d columns but %d values were supplied\x00%d values for %d columns\x00UPSERT not implemented for virtual table \"%s\"\x00cannot UPSERT a view\x00rows inserted\x00sqlite3_extension_init\x00sqlite3_\x00lib\x00_init\x00no entry point [%s] in shared library [%s]\x00error during initialization: %s\x00unable to open shared library [%.*s]\x00dll\x00automatic extension loading failed: %s\x00seq\x00from\x00to\x00on_update\x00on_delete\x00match\x00cid\x00name\x00type\x00notnull\x00dflt_value\x00pk\x00hidden\x00schema\x00ncol\x00wr\x00strict\x00seqno\x00desc\x00coll\x00key\x00builtin\x00enc\x00narg\x00flags\x00wdth\x00hght\x00flgs\x00unique\x00origin\x00partial\x00rowid\x00fkid\x00file\x00busy\x00checkpointed\x00database\x00status\x00cache_size\x00timeout\x00analysis_limit\x00application_id\x00auto_vacuum\x00automatic_index\x00busy_timeout\x00cache_spill\x00case_sensitive_like\x00cell_size_check\x00checkpoint_fullfsync\x00collation_list\x00compile_options\x00count_changes\x00data_store_directory\x00data_version\x00database_list\x00default_cache_size\x00defer_foreign_keys\x00empty_result_callbacks\x00encoding\x00foreign_key_check\x00foreign_key_list\x00foreign_keys\x00freelist_count\x00full_column_names\x00fullfsync\x00function_list\x00hard_heap_limit\x00ignore_check_constraints\x00incremental_vacuum\x00index_info\x00index_list\x00index_xinfo\x00integrity_check\x00journal_mode\x00journal_size_limit\x00legacy_alter_table\x00locking_mode\x00max_page_count\x00mmap_size\x00module_list\x00optimize\x00page_count\x00page_size\x00pragma_list\x00query_only\x00quick_check\x00read_uncommitted\x00recursive_triggers\x00reverse_unordered_selects\x00schema_version\x00secure_delete\x00short_column_names\x00shrink_memory\x00soft_heap_limit\x00synchronous\x00table_info\x00table_list\x00table_xinfo\x00temp_store\x00temp_store_directory\x00threads\x00trusted_schema\x00user_version\x00wal_autocheckpoint\x00wal_checkpoint\x00writable_schema\x00onoffalseyestruextrafull\x00normal\x00full\x00incremental\x00memory\x00temporary storage cannot be changed from within a transaction\x00SET NULL\x00SET DEFAULT\x00CASCADE\x00RESTRICT\x00NO ACTION\x00delete\x00persist\x00off\x00truncate\x00wal\x00w\x00a\x00sissii\x00utf8\x00utf16le\x00utf16be\x00-%T\x00fast\x00not a writable directory\x00Safety level may not be changed inside a transaction\x00reset\x00issisii\x00issisi\x00SELECT*FROM\"%w\"\x00shadow\x00sssiii\x00iisX\x00isiX\x00c\x00u\x00isisi\x00iss\x00is\x00iissssss\x00NONE\x00siX\x00*** in database %s ***\n\x00NULL value in %s.%s\x00non-%s value in %s.%s\x00CHECK constraint failed in %s\x00row \x00 missing from index \x00non-unique entry in index \x00wrong # of entries in index \x00ok\x00unsupported encoding: %s\x00restart\x00ANALYZE \"%w\".\"%w\"\x00UTF8\x00UTF-8\x00UTF-16le\x00UTF-16be\x00UTF16le\x00UTF16be\x00UTF-16\x00UTF16\x00CREATE TABLE x\x00%c\"%s\"\x00(\"%s\"\x00,arg HIDDEN\x00,schema HIDDEN\x00PRAGMA \x00%Q.\x00=%Q\x00error in %s %s after %s: %s\x00malformed database schema (%s)\x00%z - %s\x00rename\x00drop column\x00add column\x00orphan index\x00CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)\x00unsupported file format\x00SELECT*FROM\"%w\".%s ORDER BY rowid\x00database schema is locked: %s\x00statement too long\x00unknown or unsupported join type: %T %T%s%T\x00RIGHT and FULL OUTER JOINs are not currently supported\x00naturaleftouterightfullinnercross\x00a NATURAL join may not have an ON or USING clause\x00cannot have both ON and USING clauses in the same join\x00cannot join using column %s - column not present in both tables\x00UNION ALL\x00INTERSECT\x00EXCEPT\x00UNION\x00USE TEMP B-TREE FOR %s\x00column%d\x00%.*z:%u\x00cannot use window functions in recursive queries\x00recursive aggregate queries not supported\x00SETUP\x00RECURSIVE STEP\x00SCAN %d CONSTANT ROW%s\x00S\x00COMPOUND QUERY\x00LEFT-MOST SUBQUERY\x00%s USING TEMP B-TREE\x00all VALUES must have the same number of terms\x00SELECTs to the left and right of %s do not have the same number of result columns\x00MERGE (%s)\x00LEFT\x00RIGHT\x00no such index: %s\x00'%s' is not a function\x00no such index: \"%s\"\x00multiple references to recursive table: %s\x00circular reference: %s\x00table %s has %d values for %d columns\x00multiple recursive references: %s\x00recursive reference in a subquery: %s\x00subquery_%u\x00too many references to \"%s\": max 65535\x00access to view \"%s\" prohibited\x00unsafe use of virtual table \"%s\"\x00%s.%s.%s\x00no such table: %s\x00no tables specified\x00too many columns in result set\x00DISTINCT aggregates must have exactly one argument\x00USE TEMP B-TREE FOR %s(DISTINCT)\x00SCAN %s%s%s\x00 USING COVERING INDEX \x00target object/alias may not appear in FROM clause: %s\x00expected %d columns for '%s' but got %d\x00CO-ROUTINE %!S\x00MATERIALIZE %!S\x00DISTINCT\x00GROUP BY\x00RIGHT PART OF ORDER BY\x00ORDER BY\x00sqlite3_get_table() called with two or more incompatible queries\x00temporary trigger may not have qualified name\x00trigger\x00cannot create triggers on virtual tables\x00trigger %T already exists\x00cannot create trigger on system table\x00cannot create %s trigger on view: %S\x00BEFORE\x00AFTER\x00cannot create INSTEAD OF trigger on table: %S\x00INSERT INTO %Q.sqlite_master VALUES('trigger',%Q,%Q,0,'CREATE TRIGGER %q')\x00type='trigger' AND name='%q'\x00no such trigger: %S\x00DELETE FROM %Q.sqlite_master WHERE name=%Q AND type='trigger'\x00%s RETURNING is not available on virtual tables\x00DELETE\x00UPDATE\x00RETURNING may not use \"TABLE.*\" wildcards\x00-- TRIGGER %s\x00cannot UPDATE generated column \"%s\"\x00no such column: %s\x00rows updated\x00%r \x00%sON CONFLICT clause does not match any PRIMARY KEY or UNIQUE constraint\x00CRE\x00INS\x00cannot VACUUM from within a transaction\x00cannot VACUUM - SQL statements in progress\x00non-text filename\x00ATTACH %Q AS vacuum_db\x00output file already exists\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='table'AND name<>'sqlite_sequence' AND coalesce(rootpage,1)>0\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='index'\x00SELECT'INSERT INTO vacuum_db.'||quote(name)||' SELECT*FROM\"%w\".'||quote(name)FROM vacuum_db.sqlite_schema WHERE type='table'AND coalesce(rootpage,1)>0\x00INSERT INTO vacuum_db.sqlite_schema SELECT*FROM \"%w\".sqlite_schema WHERE type IN('view','trigger') OR(type='table'AND rootpage=0)\x00CREATE VIRTUAL TABLE %T\x00UPDATE %Q.sqlite_master SET type='table', name=%Q, tbl_name=%Q, rootpage=0, sql=%Q WHERE rowid=#%d\x00name=%Q AND sql=%Q\x00vtable constructor called recursively: %s\x00vtable constructor failed: %s\x00vtable constructor did not declare schema: %s\x00no such module: %s\x00<expr>\x00 AND \x00(\x00 (\x00%s=?\x00ANY(%s)\x00>\x00<\x00%s %S\x00SEARCH\x00SCAN\x00AUTOMATIC PARTIAL COVERING INDEX\x00AUTOMATIC COVERING INDEX\x00COVERING INDEX %s\x00INDEX %s\x00 USING \x00 USING INTEGER PRIMARY KEY (%s\x00>? AND %s\x00%c?)\x00 VIRTUAL TABLE INDEX %d:%s\x00BLOOM FILTER ON %S (\x00rowid=?\x00MULTI-INDEX OR\x00INDEX %d\x00regexp\x00ON clause references tables to its right\x00NOCASE\x00too many arguments on %s() - max %d\x00automatic index on %s(%s)\x00auto-index\x00%s.xBestIndex malfunction\x00abbreviated query algorithm search\x00no query solution\x00at most %d tables in a join\x00SCAN CONSTANT ROW\x00second argument to nth_value must be a positive integer\x00argument of ntile must be a positive integer\x00row_number\x00dense_rank\x00rank\x00percent_rank\x00cume_dist\x00ntile\x00last_value\x00nth_value\x00first_value\x00lead\x00lag\x00no such window: %s\x00RANGE with offset PRECEDING/FOLLOWING requires one ORDER BY expression\x00FILTER clause may only be used with aggregate window functions\x00misuse of aggregate: %s()\x00unsupported frame specification\x00PARTITION clause\x00ORDER BY clause\x00frame specification\x00cannot override %s of window: %s\x00DISTINCT is not supported for window functions\x00frame starting offset must be a non-negative integer\x00frame ending offset must be a non-negative integer\x00frame starting offset must be a non-negative number\x00frame ending offset must be a non-negative number\x00%s clause should come after %s not before\x00LIMIT\x00too many terms in compound SELECT\x00syntax error after column name \"%.*s\"\x00parser stack overflow\x00unknown table option: %.*s\x00set list\x00near \"%T\": syntax error\x00qualified table names are not allowed on INSERT, UPDATE, and DELETE statements within triggers\x00the INDEXED BY clause is not allowed on UPDATE or DELETE statements within triggers\x00the NOT INDEXED clause is not allowed on UPDATE or DELETE statements within triggers\x00incomplete input\x00unrecognized token: \"%T\"\x00%s in \"%s\"\x00create\x00temp\x00temporary\x00end\x00explain\x00unable to close due to unfinalized statements or unfinished backups\x00unknown error\x00abort due to ROLLBACK\x00another row available\x00no more rows available\x00not an error\x00SQL logic error\x00access permission denied\x00query aborted\x00database is locked\x00database table is locked\x00attempt to write a readonly database\x00interrupted\x00disk I/O error\x00database disk image is malformed\x00unknown operation\x00database or disk is full\x00unable to open database file\x00locking protocol\x00constraint failed\x00datatype mismatch\x00bad parameter or other API misuse\x00authorization denied\x00column index out of range\x00file is not a database\x00notification message\x00warning message\x00unable to delete/modify user-function due to active statements\x00unable to use function %s in the requested context\x00unknown database: %s\x00unable to delete/modify collation sequence due to active statements\x00file:\x00localhost\x00invalid uri authority: %.*s\x00vfs\x00cache\x00mode\x00access\x00no such %s mode: %s\x00%s mode not allowed: %s\x00no such vfs: %s\x00shared\x00private\x00ro\x00rw\x00rwc\x00RTRIM\x00\x00\x00\x00%s at line %d of [%.10s]\x00database corruption\x00misuse\x00cannot open file\x00no such table column: %s.%s\x00SQLITE_\x00database is deadlocked\x00array\x00object\x000123456789abcdef\x00JSON cannot hold BLOB values\x00malformed JSON\x00[0]\x00JSON path error near '%q'\x00json_%s() needs an odd number of arguments\x00$[\x00$.\x00json_object() requires an even number of arguments\x00json_object() labels must be TEXT\x00set\x00insert\x00[]\x00{}\x00CREATE TABLE x(key,value,type,atom,id,parent,fullkey,path,json HIDDEN,root HIDDEN)\x00.%.*s\x00[%d]\x00$\x00json\x00json_array\x00json_array_length\x00json_extract\x00->\x00->>\x00json_insert\x00json_object\x00json_patch\x00json_quote\x00json_remove\x00json_replace\x00json_set\x00json_type\x00json_valid\x00json_group_array\x00json_group_object\x00json_each\x00json_tree\x00%s_node\x00data\x00DROP TABLE '%q'.'%q_node';DROP TABLE '%q'.'%q_rowid';DROP TABLE '%q'.'%q_parent';\x00RtreeMatchArg\x00SELECT * FROM %Q.%Q\x00UNIQUE constraint failed: %s.%s\x00rtree constraint failed: %s.(%s<=%s)\x00ALTER TABLE %Q.'%q_node' RENAME TO \"%w_node\";ALTER TABLE %Q.'%q_parent' RENAME TO \"%w_parent\";ALTER TABLE %Q.'%q_rowid' RENAME TO \"%w_rowid\";\x00SELECT stat FROM %Q.sqlite_stat1 WHERE tbl = '%q_rowid'\x00node\x00CREATE TABLE \"%w\".\"%w_rowid\"(rowid INTEGER PRIMARY KEY,nodeno\x00,a%d\x00);CREATE TABLE \"%w\".\"%w_node\"(nodeno INTEGER PRIMARY KEY,data);\x00CREATE TABLE \"%w\".\"%w_parent\"(nodeno INTEGER PRIMARY KEY,parentnode);\x00INSERT INTO \"%w\".\"%w_node\"VALUES(1,zeroblob(%d))\x00INSERT INTO\"%w\".\"%w_rowid\"(rowid,nodeno)VALUES(?1,?2)ON CONFLICT(rowid)DO UPDATE SET nodeno=excluded.nodeno\x00SELECT * FROM \"%w\".\"%w_rowid\" WHERE rowid=?1\x00UPDATE \"%w\".\"%w_rowid\"SET \x00a%d=coalesce(?%d,a%d)\x00a%d=?%d\x00 WHERE rowid=?1\x00INSERT OR REPLACE INTO '%q'.'%q_node' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_node' WHERE nodeno = ?1\x00SELECT nodeno FROM '%q'.'%q_rowid' WHERE rowid = ?1\x00INSERT OR REPLACE INTO '%q'.'%q_rowid' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_rowid' WHERE rowid = ?1\x00SELECT parentnode FROM '%q'.'%q_parent' WHERE nodeno = ?1\x00INSERT OR REPLACE INTO '%q'.'%q_parent' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_parent' WHERE nodeno = ?1\x00PRAGMA %Q.page_size\x00SELECT length(data) FROM '%q'.'%q_node' WHERE nodeno = 1\x00undersize RTree blobs in \"%q_node\"\x00Wrong number of columns for an rtree table\x00Too few columns for an rtree table\x00Too many columns for an rtree table\x00Auxiliary rtree columns must be last\x00CREATE TABLE x(%.*s INT\x00,%.*s\x00);\x00,%.*s REAL\x00,%.*s INT\x00{%lld\x00 %g\x00}\x00Invalid argument to rtreedepth()\x00%z%s%z\x00SELECT data FROM %Q.'%q_node' WHERE nodeno=?\x00Node %lld missing from database\x00SELECT parentnode FROM %Q.'%q_parent' WHERE nodeno=?1\x00SELECT nodeno FROM %Q.'%q_rowid' WHERE rowid=?1\x00Mapping (%lld -> %lld) missing from %s table\x00%_rowid\x00%_parent\x00Found (%lld -> %lld) in %s table, expected (%lld -> %lld)\x00Dimension %d of cell %d on node %lld is corrupt\x00Dimension %d of cell %d on node %lld is corrupt relative to parent\x00Node %lld is too small (%d bytes)\x00Rtree depth out of range (%d)\x00Node %lld is too small for cell count of %d (%d bytes)\x00SELECT count(*) FROM %Q.'%q%s'\x00Wrong number of entries in %%%s table - expected %lld, actual %lld\x00SELECT * FROM %Q.'%q_rowid'\x00Schema corrupt or not an rtree\x00_rowid\x00_parent\x00END\x00wrong number of arguments to function rtreecheck()\x00[\x00[%!g,%!g],\x00[%!g,%!g]]\x00<polyline points=\x00%c%g,%g\x00 %g,%g'\x00 %s\x00></polyline>\x00CREATE TABLE x(_shape\x00,%s\x00rtree\x00fullscan\x00_shape does not contain a valid polygon\x00geopoly_overlap\x00geopoly_within\x00geopoly\x00geopoly_area\x00geopoly_blob\x00geopoly_json\x00geopoly_svg\x00geopoly_contains_point\x00geopoly_debug\x00geopoly_bbox\x00geopoly_xform\x00geopoly_regular\x00geopoly_ccw\x00geopoly_group_bbox\x00rtreenode\x00rtreedepth\x00rtreecheck\x00rtree_i32\x00corrupt fossil delta\x00DROP TRIGGER IF EXISTS temp.rbu_insert_tr;DROP TRIGGER IF EXISTS temp.rbu_update1_tr;DROP TRIGGER IF EXISTS temp.rbu_update2_tr;DROP TRIGGER IF EXISTS temp.rbu_delete_tr;\x00SELECT rbu_target_name(name, type='view') AS target, name FROM sqlite_schema WHERE type IN ('table', 'view') AND target IS NOT NULL %s ORDER BY name\x00AND rootpage!=0 AND rootpage IS NOT NULL\x00SELECT name, rootpage, sql IS NULL OR substr(8, 6)=='UNIQUE' FROM main.sqlite_schema WHERE type='index' AND tbl_name = ?\x00SELECT (sql COLLATE nocase BETWEEN 'CREATE VIRTUAL' AND 'CREATE VIRTUAM'), rootpage FROM sqlite_schema WHERE name=%Q\x00PRAGMA index_list=%Q\x00SELECT rootpage FROM sqlite_schema WHERE name = %Q\x00PRAGMA table_info=%Q\x00PRAGMA main.index_list = %Q\x00PRAGMA main.index_xinfo = %Q\x00SELECT * FROM '%q'\x00rbu_\x00rbu_rowid\x00table %q %s rbu_rowid column\x00may not have\x00requires\x00PRAGMA table_info(%Q)\x00column missing from %q: %s\x00%z%s\"%w\"\x00%z%s%s\"%w\"%s\x00SELECT max(_rowid_) FROM \"%s%w\"\x00 WHERE _rowid_ > %lld \x00 DESC\x00quote(\x00||','||\x00SELECT %s FROM \"%s%w\" ORDER BY %s LIMIT 1\x00 WHERE (%s) > (%s) \x00_rowid_\x00%z%s \"%w\" COLLATE %Q\x00%z%s \"rbu_imp_%d%w\" COLLATE %Q DESC\x00%z%s quote(\"rbu_imp_%d%w\")\x00SELECT %s FROM \"rbu_imp_%w\" ORDER BY %s LIMIT 1\x00%z%s%s\x00(%s) > (%s)\x00%z%s(%.*s) COLLATE %Q\x00%z%s\"%w\" COLLATE %Q\x00%z%s\"rbu_imp_%d%w\"%s\x00%z%s\"rbu_imp_%d%w\" %s COLLATE %Q\x00%z%s\"rbu_imp_%d%w\" IS ?\x00%z%s%s.\"%w\"\x00%z%sNULL\x00%z, %s._rowid_\x00_rowid_ = ?%d\x00%z%sc%d=?%d\x00_rowid_ = (SELECT id FROM rbu_imposter2 WHERE %z)\x00%z%s\"%w\"=?%d\x00invalid rbu_control value\x00%z%s\"%w\"=rbu_delta(\"%w\", ?%d)\x00%z%s\"%w\"=rbu_fossil_delta(\"%w\", ?%d)\x00PRIMARY KEY(\x00%z%s\"%w\"%s\x00%z)\x00SELECT name FROM sqlite_schema WHERE rootpage = ?\x00%z%sc%d %s COLLATE %Q\x00%z%sc%d%s\x00%z, id INTEGER\x00CREATE TABLE rbu_imposter2(%z, PRIMARY KEY(%z)) WITHOUT ROWID\x00PRIMARY KEY \x00%z%s\"%w\" %s %sCOLLATE %Q%s\x00 NOT NULL\x00%z, %z\x00CREATE TABLE \"rbu_imp_%w\"(%z)%s\x00 WITHOUT ROWID\x00INSERT INTO %s.'rbu_tmp_%q'(rbu_control,%s%s) VALUES(%z)\x00SELECT trim(sql) FROM sqlite_schema WHERE type='index' AND name=?\x00 LIMIT -1 OFFSET %d\x00CREATE TABLE \"rbu_imp_%w\"( %s, PRIMARY KEY( %s ) ) WITHOUT ROWID\x00INSERT INTO \"rbu_imp_%w\" VALUES(%s)\x00DELETE FROM \"rbu_imp_%w\" WHERE %s\x00SELECT %s, 0 AS rbu_control FROM '%q' %s %s %s ORDER BY %s%s\x00AND\x00WHERE\x00SELECT %s, rbu_control FROM %s.'rbu_tmp_%q' %s ORDER BY %s%s\x00SELECT %s, rbu_control FROM %s.'rbu_tmp_%q' %s UNION ALL SELECT %s, rbu_control FROM '%q' %s %s typeof(rbu_control)='integer' AND rbu_control!=1 ORDER BY %s%s\x00rbu_imp_\x00INSERT INTO \"%s%w\"(%s%s) VALUES(%s)\x00, _rowid_\x00DELETE FROM \"%s%w\" WHERE %s\x00, rbu_rowid\x00CREATE TABLE IF NOT EXISTS %s.'rbu_tmp_%q' AS SELECT *%s FROM '%q' WHERE 0;\x00, 0 AS rbu_rowid\x00CREATE TEMP TRIGGER rbu_delete_tr BEFORE DELETE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(3, %s);END;CREATE TEMP TRIGGER rbu_update1_tr BEFORE UPDATE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(3, %s);END;CREATE TEMP TRIGGER rbu_update2_tr AFTER UPDATE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(4, %s);END;\x00CREATE TEMP TRIGGER rbu_insert_tr AFTER INSERT ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(0, %s);END;\x00,_rowid_ \x00,rbu_rowid\x00SELECT %s,%s rbu_control%s FROM '%q'%s %s %s %s\x000 AS \x00UPDATE \"%s%w\" SET %s WHERE %s\x00SELECT k, v FROM %s.rbu_state\x00file://%s-vacuum?modeof=%s\x00ATTACH %Q AS stat\x00CREATE TABLE IF NOT EXISTS %s.rbu_state(k INTEGER PRIMARY KEY, v)\x00cannot vacuum wal mode database\x00file:%s-vactmp?rbu_memory=1%s%s\x00&\x00rbu_tmp_insert\x00rbu_fossil_delta\x00rbu_target_name\x00SELECT * FROM sqlite_schema\x00rbu vfs not found\x00PRAGMA main.wal_checkpoint=restart\x00rbu_exclusive_checkpoint\x00%s-oal\x00%s-wal\x00PRAGMA schema_version\x00PRAGMA schema_version = %d\x00INSERT OR REPLACE INTO %s.rbu_state(k, v) VALUES (%d, %d), (%d, %Q), (%d, %Q), (%d, %d), (%d, %d), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %Q) \x00PRAGMA main.%s\x00PRAGMA main.%s = %d\x00PRAGMA writable_schema=1\x00SELECT sql FROM sqlite_schema WHERE sql!='' AND rootpage!=0 AND name!='sqlite_sequence' ORDER BY type DESC\x00SELECT * FROM sqlite_schema WHERE rootpage=0 OR rootpage IS NULL\x00INSERT INTO sqlite_schema VALUES(?,?,?,?,?)\x00PRAGMA writable_schema=0\x00DELETE FROM %s.'rbu_tmp_%q'\x00rbu_state mismatch error\x00rbu_vfs_%d\x00SELECT count(*) FROM sqlite_schema WHERE type='index' AND tbl_name = %Q\x00rbu_index_cnt\x00SELECT 1 FROM sqlite_schema WHERE tbl_name = 'rbu_count'\x00SELECT sum(cnt * (1 + rbu_index_cnt(rbu_target_name(tbl))))FROM rbu_count\x00cannot update wal mode database\x00database modified during rbu %s\x00vacuum\x00update\x00BEGIN IMMEDIATE\x00PRAGMA journal_mode=off\x00-vactmp\x00DELETE FROM stat.rbu_state\x00rbu/zipvfs setup error\x00rbu(%s)/%z\x00rbu_memory\x00SELECT 0, 'tbl', '', 0, '', 1 UNION ALL SELECT 1, 'idx', '', 0, '', 2 UNION ALL SELECT 2, 'stat', '', 0, '', 0\x00PRAGMA '%q'.table_info('%q')\x00%z%s\"%w\".\"%w\".\"%w\"=\"%w\".\"%w\".\"%w\"\x00%z%s\"%w\".\"%w\".\"%w\" IS NOT \"%w\".\"%w\".\"%w\"\x00 OR \x00SELECT * FROM \"%w\".\"%w\" WHERE NOT EXISTS ( SELECT 1 FROM \"%w\".\"%w\" WHERE %s)\x00SELECT * FROM \"%w\".\"%w\", \"%w\".\"%w\" WHERE %s AND (%z)\x00table schemas do not match\x00SELECT tbl, ?2, stat FROM %Q.sqlite_stat1 WHERE tbl IS ?1 AND idx IS (CASE WHEN ?2=X'' THEN NULL ELSE ?2 END)\x00SELECT * FROM \x00 WHERE \x00 IS ?\x00SAVEPOINT changeset\x00RELEASE changeset\x00UPDATE main.\x00 SET \x00 = ?\x00idx IS CASE WHEN length(?4)=0 AND typeof(?4)='blob' THEN NULL ELSE ?4 END \x00DELETE FROM main.\x00 AND (?\x00AND \x00INSERT INTO main.\x00) VALUES(?\x00, ?\x00INSERT INTO main.sqlite_stat1 VALUES(?1, CASE WHEN length(?2)=0 AND typeof(?2)='blob' THEN NULL ELSE ?2 END, ?3)\x00DELETE FROM main.sqlite_stat1 WHERE tbl=?1 AND idx IS CASE WHEN length(?2)=0 AND typeof(?2)='blob' THEN NULL ELSE ?2 END AND (?4 OR stat IS ?3)\x00SAVEPOINT replace_op\x00RELEASE replace_op\x00SAVEPOINT changeset_apply\x00PRAGMA defer_foreign_keys = 1\x00sqlite3changeset_apply(): no such table: %s\x00sqlite3changeset_apply(): table %s has %d columns, expected %d or more\x00sqlite3changeset_apply(): primary key mismatch for table %s\x00PRAGMA defer_foreign_keys = 0\x00RELEASE changeset_apply\x00ROLLBACK TO changeset_apply\x00fts5: parser stack overflow\x00fts5: syntax error near \"%.*s\"\x00%z%.*s\x00wrong number of arguments to function highlight()\x00wrong number of arguments to function snippet()\x00snippet\x00highlight\x00bm25\x00prefix\x00malformed prefix=... directive\x00too many prefix indexes (max %d)\x00prefix length out of range (max 999)\x00tokenize\x00multiple tokenize=... directives\x00parse error in tokenize directive\x00content\x00multiple content=... directives\x00%Q.%Q\x00content_rowid\x00multiple content_rowid=... directives\x00columnsize\x00malformed columnsize=... directive\x00columns\x00malformed detail=... directive\x00unrecognized option: \"%.*s\"\x00reserved fts5 column name: %s\x00unindexed\x00unrecognized column option: %s\x00T.%Q\x00, T.%Q\x00, T.c%d\x00reserved fts5 table name: %s\x00parse error in \"%s\"\x00docsize\x00%Q.'%q_%s'\x00CREATE TABLE x(\x00%z%s%Q\x00%z, %Q HIDDEN, %s HIDDEN)\x00pgsz\x00hashsize\x00automerge\x00usermerge\x00crisismerge\x00SELECT k, v FROM %Q.'%q_config'\x00version\x00invalid fts5 file format (found %d, expected %d) - run 'rebuild'\x00unterminated string\x00fts5: syntax error near \"%.1s\"\x00OR\x00NOT\x00NEAR\x00expected integer, got \"%.*s\"\x00fts5: column queries are not supported (detail=none)\x00fts5: %s queries are not supported (detail!=full)\x00phrase\x00block\x00REPLACE INTO '%q'.'%q_data'(id, block) VALUES(?,?)\x00DELETE FROM '%q'.'%q_data' WHERE id>=? AND id<=?\x00DELETE FROM '%q'.'%q_idx' WHERE segid=?\x00PRAGMA %Q.data_version\x00SELECT pgno FROM '%q'.'%q_idx' WHERE segid=? AND term<=? ORDER BY term DESC LIMIT 1\x00INSERT INTO '%q'.'%q_idx'(segid,term,pgno) VALUES(?,?,?)\x00%s_data\x00id INTEGER PRIMARY KEY, block BLOB\x00segid, term, pgno, PRIMARY KEY(segid, term)\x00SELECT segid, term, (pgno>>1), (pgno&1) FROM %Q.'%q_idx' WHERE segid=%d ORDER BY 1, 2\x00\x00\x00\x00\x00\x00recursively defined fts5 content table\x00SELECT rowid, rank FROM %Q.%Q ORDER BY %s(\"%w\"%s%s) %s\x00DESC\x00ASC\x00reads\x00unknown special query: %.*s\x00SELECT %s\x00no such function: %s\x00parse error in rank function: %s\x00%s: table does not support scanning\x00delete-all\x00'delete-all' may only be used with a contentless or external content fts5 table\x00rebuild\x00'rebuild' may not be used with a contentless fts5 table\x00merge\x00integrity-check\x00cannot %s contentless fts5 table: %s\x00DELETE from\x00no such cursor: %lld\x00no such tokenizer: %s\x00error in tokenizer constructor\x00fts5_api_ptr\x00fts5: 2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe\x00config\x00fts5\x00fts5_source_id\x00SELECT %s FROM %s T WHERE T.%Q >= ? AND T.%Q <= ? ORDER BY T.%Q ASC\x00SELECT %s FROM %s T WHERE T.%Q <= ? AND T.%Q >= ? ORDER BY T.%Q DESC\x00SELECT %s FROM %s T WHERE T.%Q=?\x00INSERT INTO %Q.'%q_content' VALUES(%s)\x00REPLACE INTO %Q.'%q_content' VALUES(%s)\x00DELETE FROM %Q.'%q_content' WHERE id=?\x00REPLACE INTO %Q.'%q_docsize' VALUES(?,?)\x00DELETE FROM %Q.'%q_docsize' WHERE id=?\x00SELECT sz FROM %Q.'%q_docsize' WHERE id=?\x00REPLACE INTO %Q.'%q_config' VALUES(?,?)\x00SELECT %s FROM %s AS T\x00DROP TABLE IF EXISTS %Q.'%q_data';DROP TABLE IF EXISTS %Q.'%q_idx';DROP TABLE IF EXISTS %Q.'%q_config';\x00DROP TABLE IF EXISTS %Q.'%q_docsize';\x00DROP TABLE IF EXISTS %Q.'%q_content';\x00ALTER TABLE %Q.'%q_%s' RENAME TO '%q_%s';\x00CREATE TABLE %Q.'%q_%q'(%s)%s\x00fts5: error creating shadow table %q_%s: %s\x00id INTEGER PRIMARY KEY\x00, c%d\x00id INTEGER PRIMARY KEY, sz BLOB\x00k PRIMARY KEY, v\x00DELETE FROM %Q.'%q_data';DELETE FROM %Q.'%q_idx';\x00DELETE FROM %Q.'%q_docsize';\x00SELECT count(*) FROM %Q.'%q_%s'\x00tokenchars\x00separators\x00L* N* Co\x00categories\x00remove_diacritics\x00unicode61\x00al\x00ance\x00ence\x00er\x00ic\x00able\x00ible\x00ant\x00ement\x00ment\x00ent\x00ion\x00ou\x00ism\x00ate\x00iti\x00ous\x00ive\x00ize\x00at\x00bl\x00ble\x00iz\x00ational\x00tional\x00tion\x00enci\x00anci\x00izer\x00logi\x00bli\x00alli\x00entli\x00eli\x00e\x00ousli\x00ization\x00ation\x00ator\x00alism\x00iveness\x00fulness\x00ful\x00ousness\x00aliti\x00iviti\x00biliti\x00ical\x00ness\x00icate\x00iciti\x00ative\x00alize\x00eed\x00ee\x00ed\x00ing\x00case_sensitive\x00ascii\x00porter\x00trigram\x00col\x00row\x00instance\x00fts5vocab: unknown table type: %Q\x00CREATE TABlE vocab(term, col, doc, cnt)\x00CREATE TABlE vocab(term, doc, cnt)\x00CREATE TABlE vocab(term, doc, col, offset)\x00wrong number of vtable arguments\x00recursive definition for %s.%s\x00SELECT t.%Q FROM %Q.%Q AS t WHERE t.%Q MATCH '*id'\x00no such fts5 table: %s.%s\x00fts5vocab\x002022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe\x00" + }{Xsqlite3_value_dup})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:130590:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1640)) = Xsqlite3_value_free // testdata/sqlite-amalgamation-3390200/sqlite3.c:130591:3: + *(*func(*libc.TLS, uintptr, U64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1648)) = Xsqlite3_result_zeroblob64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130592:3: + *(*func(*libc.TLS, uintptr, int32, Sqlite3_uint64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1656)) = Xsqlite3_bind_zeroblob64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130593:3: + *(*func(*libc.TLS, uintptr) uint32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1664)) = Xsqlite3_value_subtype // testdata/sqlite-amalgamation-3390200/sqlite3.c:130595:3: + *(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1672)) = Xsqlite3_result_subtype // testdata/sqlite-amalgamation-3390200/sqlite3.c:130596:3: + *(*func(*libc.TLS, int32, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1680)) = Xsqlite3_status64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130598:3: + *(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1688)) = Xsqlite3_strlike // testdata/sqlite-amalgamation-3390200/sqlite3.c:130599:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1696)) = Xsqlite3_db_cacheflush // testdata/sqlite-amalgamation-3390200/sqlite3.c:130600:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1704)) = Xsqlite3_system_errno // testdata/sqlite-amalgamation-3390200/sqlite3.c:130602:3: + *(*func(*libc.TLS, uintptr, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1712)) = Xsqlite3_trace_v2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130604:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1720)) = Xsqlite3_expanded_sql // testdata/sqlite-amalgamation-3390200/sqlite3.c:130605:3: + *(*func(*libc.TLS, uintptr, Sqlite3_int64))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1728)) = Xsqlite3_set_last_insert_rowid // testdata/sqlite-amalgamation-3390200/sqlite3.c:130607:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1736)) = Xsqlite3_prepare_v3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130609:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, uint32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1744)) = Xsqlite3_prepare16_v3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130610:3: + *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1752)) = Xsqlite3_bind_pointer // testdata/sqlite-amalgamation-3390200/sqlite3.c:130611:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1760)) = Xsqlite3_result_pointer // testdata/sqlite-amalgamation-3390200/sqlite3.c:130612:3: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1768)) = Xsqlite3_value_pointer // testdata/sqlite-amalgamation-3390200/sqlite3.c:130613:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1776)) = Xsqlite3_vtab_nochange // testdata/sqlite-amalgamation-3390200/sqlite3.c:130615:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1784)) = Xsqlite3_value_nochange // testdata/sqlite-amalgamation-3390200/sqlite3.c:130616:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1792)) = Xsqlite3_vtab_collation // testdata/sqlite-amalgamation-3390200/sqlite3.c:130617:3: + *(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1800)) = Xsqlite3_keyword_count // testdata/sqlite-amalgamation-3390200/sqlite3.c:130619:3: + *(*func(*libc.TLS, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1808)) = Xsqlite3_keyword_name // testdata/sqlite-amalgamation-3390200/sqlite3.c:130620:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1816)) = Xsqlite3_keyword_check // testdata/sqlite-amalgamation-3390200/sqlite3.c:130621:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1824)) = Xsqlite3_str_new // testdata/sqlite-amalgamation-3390200/sqlite3.c:130622:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1832)) = Xsqlite3_str_finish // testdata/sqlite-amalgamation-3390200/sqlite3.c:130623:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1840)) = Xsqlite3_str_appendf // testdata/sqlite-amalgamation-3390200/sqlite3.c:130624:3: + *(*func(*libc.TLS, uintptr, uintptr, Va_list))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1848)) = Xsqlite3_str_vappendf // testdata/sqlite-amalgamation-3390200/sqlite3.c:130625:3: + *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1856)) = Xsqlite3_str_append // testdata/sqlite-amalgamation-3390200/sqlite3.c:130626:3: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1864)) = Xsqlite3_str_appendall // testdata/sqlite-amalgamation-3390200/sqlite3.c:130627:3: + *(*func(*libc.TLS, uintptr, int32, int8))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1872)) = Xsqlite3_str_appendchar // testdata/sqlite-amalgamation-3390200/sqlite3.c:130628:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1880)) = Xsqlite3_str_reset // testdata/sqlite-amalgamation-3390200/sqlite3.c:130629:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1888)) = Xsqlite3_str_errcode // testdata/sqlite-amalgamation-3390200/sqlite3.c:130630:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1896)) = Xsqlite3_str_length // testdata/sqlite-amalgamation-3390200/sqlite3.c:130631:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1904)) = Xsqlite3_str_value // testdata/sqlite-amalgamation-3390200/sqlite3.c:130632:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, int32, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1912)) = Xsqlite3_create_window_function // testdata/sqlite-amalgamation-3390200/sqlite3.c:130634:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1928)) = Xsqlite3_stmt_isexplain // testdata/sqlite-amalgamation-3390200/sqlite3.c:130642:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1936)) = Xsqlite3_value_frombind // testdata/sqlite-amalgamation-3390200/sqlite3.c:130643:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1944)) = Xsqlite3_drop_modules // testdata/sqlite-amalgamation-3390200/sqlite3.c:130646:3: + *(*func(*libc.TLS, Sqlite3_int64) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1952)) = Xsqlite3_hard_heap_limit64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130651:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1960)) = Xsqlite3_uri_key // testdata/sqlite-amalgamation-3390200/sqlite3.c:130652:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1968)) = Xsqlite3_filename_database // testdata/sqlite-amalgamation-3390200/sqlite3.c:130653:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1976)) = Xsqlite3_filename_journal // testdata/sqlite-amalgamation-3390200/sqlite3.c:130654:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1984)) = Xsqlite3_filename_wal // testdata/sqlite-amalgamation-3390200/sqlite3.c:130655:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 1992)) = Xsqlite3_create_filename // testdata/sqlite-amalgamation-3390200/sqlite3.c:130657:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2000)) = Xsqlite3_free_filename // testdata/sqlite-amalgamation-3390200/sqlite3.c:130658:3: + *(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2008)) = Xsqlite3_database_file_object // testdata/sqlite-amalgamation-3390200/sqlite3.c:130659:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2016)) = Xsqlite3_txn_state // testdata/sqlite-amalgamation-3390200/sqlite3.c:130661:3: + *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2024)) = Xsqlite3_changes64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130663:3: + *(*func(*libc.TLS, uintptr) Sqlite3_int64)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2032)) = Xsqlite3_total_changes64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:130664:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2040)) = Xsqlite3_autovacuum_pages // testdata/sqlite-amalgamation-3390200/sqlite3.c:130666:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2048)) = Xsqlite3_error_offset // testdata/sqlite-amalgamation-3390200/sqlite3.c:130668:3: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2056)) = Xsqlite3_vtab_rhs_value // testdata/sqlite-amalgamation-3390200/sqlite3.c:130670:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2064)) = Xsqlite3_vtab_distinct // testdata/sqlite-amalgamation-3390200/sqlite3.c:130671:3: + *(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2072)) = Xsqlite3_vtab_in // testdata/sqlite-amalgamation-3390200/sqlite3.c:130672:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2080)) = Xsqlite3_vtab_in_first // testdata/sqlite-amalgamation-3390200/sqlite3.c:130673:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2088)) = Xsqlite3_vtab_in_next // testdata/sqlite-amalgamation-3390200/sqlite3.c:130674:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, Sqlite3_int64, Sqlite3_int64, uint32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2096)) = Xsqlite3_deserialize // testdata/sqlite-amalgamation-3390200/sqlite3.c:130684:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, uint32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2104)) = Xsqlite3_serialize // testdata/sqlite-amalgamation-3390200/sqlite3.c:130685:3: + *(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3Apis)) + 2112)) = Xsqlite3_db_name // testdata/sqlite-amalgamation-3390200/sqlite3.c:130690:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 0)) = Xsqlite3Fts5Init // testdata/sqlite-amalgamation-3390200/sqlite3.c:170674:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 8)) = Xsqlite3RtreeInit // testdata/sqlite-amalgamation-3390200/sqlite3.c:170680:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 16)) = sqlite3TestExtInit // testdata/sqlite-amalgamation-3390200/sqlite3.c:170688:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&sqlite3BuiltinExtensions)) + 24)) = Xsqlite3JsonTableFunctions // testdata/sqlite-amalgamation-3390200/sqlite3.c:170690:3: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statGetFuncdef)) + 24)) = statGet // testdata/sqlite-amalgamation-3390200/sqlite3.c:113224:3: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statInitFuncdef)) + 24)) = statInit // testdata/sqlite-amalgamation-3390200/sqlite3.c:112794:3: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&statPushFuncdef)) + 24)) = statPush // testdata/sqlite-amalgamation-3390200/sqlite3.c:113084:3: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 40)) = rbuVfsOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:211145:5: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 48)) = rbuVfsDelete // testdata/sqlite-amalgamation-3390200/sqlite3.c:211146:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 56)) = rbuVfsAccess // testdata/sqlite-amalgamation-3390200/sqlite3.c:211147:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 64)) = rbuVfsFullPathname // testdata/sqlite-amalgamation-3390200/sqlite3.c:211148:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 72)) = rbuVfsDlOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:211151:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 80)) = rbuVfsDlError // testdata/sqlite-amalgamation-3390200/sqlite3.c:211152:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 88)) = rbuVfsDlSym // testdata/sqlite-amalgamation-3390200/sqlite3.c:211153:5: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 96)) = rbuVfsDlClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:211154:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 104)) = rbuVfsRandomness // testdata/sqlite-amalgamation-3390200/sqlite3.c:211159:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 112)) = rbuVfsSleep // testdata/sqlite-amalgamation-3390200/sqlite3.c:211160:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 120)) = rbuVfsCurrentTime // testdata/sqlite-amalgamation-3390200/sqlite3.c:211161:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfs_template)) + 128)) = rbuVfsGetLastError // testdata/sqlite-amalgamation-3390200/sqlite3.c:211162:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winAppData)) + 0 /* .pMethod */)) = uintptr(unsafe.Pointer(&winIoMethod)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:48200:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 8)) = winClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:48153:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 16)) = winRead // testdata/sqlite-amalgamation-3390200/sqlite3.c:48154:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 24)) = winWrite // testdata/sqlite-amalgamation-3390200/sqlite3.c:48155:3: + *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 32)) = winTruncate // testdata/sqlite-amalgamation-3390200/sqlite3.c:48156:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 40)) = winSync // testdata/sqlite-amalgamation-3390200/sqlite3.c:48157:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 48)) = winFileSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:48158:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 56)) = winLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:48159:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 64)) = winUnlock // testdata/sqlite-amalgamation-3390200/sqlite3.c:48160:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 72)) = winCheckReservedLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:48161:3: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 80)) = winFileControl // testdata/sqlite-amalgamation-3390200/sqlite3.c:48162:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 88)) = winSectorSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:48163:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 96)) = winDeviceCharacteristics // testdata/sqlite-amalgamation-3390200/sqlite3.c:48164:3: + *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 104)) = winShmMap // testdata/sqlite-amalgamation-3390200/sqlite3.c:48165:3: + *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 112)) = winShmLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:48166:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 120)) = winShmBarrier // testdata/sqlite-amalgamation-3390200/sqlite3.c:48167:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 128)) = winShmUnmap // testdata/sqlite-amalgamation-3390200/sqlite3.c:48168:3: + *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 136)) = winFetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:48169:3: + *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoMethod)) + 144)) = winUnfetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:48170:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 8)) = winClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:48179:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 16)) = winRead // testdata/sqlite-amalgamation-3390200/sqlite3.c:48180:3: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 24)) = winWrite // testdata/sqlite-amalgamation-3390200/sqlite3.c:48181:3: + *(*func(*libc.TLS, uintptr, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 32)) = winTruncate // testdata/sqlite-amalgamation-3390200/sqlite3.c:48182:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 40)) = winSync // testdata/sqlite-amalgamation-3390200/sqlite3.c:48183:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 48)) = winFileSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:48184:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 56)) = winNolockLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:48185:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 64)) = winNolockUnlock // testdata/sqlite-amalgamation-3390200/sqlite3.c:48186:3: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 72)) = winNolockCheckReservedLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:48187:3: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 80)) = winFileControl // testdata/sqlite-amalgamation-3390200/sqlite3.c:48188:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 88)) = winSectorSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:48189:3: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 96)) = winDeviceCharacteristics // testdata/sqlite-amalgamation-3390200/sqlite3.c:48190:3: + *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 104)) = winShmMap // testdata/sqlite-amalgamation-3390200/sqlite3.c:48191:3: + *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 112)) = winShmLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:48192:3: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 120)) = winShmBarrier // testdata/sqlite-amalgamation-3390200/sqlite3.c:48193:3: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 128)) = winShmUnmap // testdata/sqlite-amalgamation-3390200/sqlite3.c:48194:3: + *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 136)) = winFetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:48195:3: + *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winIoNolockMethod)) + 144)) = winUnfetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:48196:3: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winNolockAppData)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:49650:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 40)) = winOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:49651:5: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 48)) = winDelete // testdata/sqlite-amalgamation-3390200/sqlite3.c:49652:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 56)) = winAccess // testdata/sqlite-amalgamation-3390200/sqlite3.c:49653:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 64)) = winFullPathname // testdata/sqlite-amalgamation-3390200/sqlite3.c:49654:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 72)) = winDlOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:49655:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 80)) = winDlError // testdata/sqlite-amalgamation-3390200/sqlite3.c:49656:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 88)) = winDlSym // testdata/sqlite-amalgamation-3390200/sqlite3.c:49657:5: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 96)) = winDlClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:49658:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 104)) = winRandomness // testdata/sqlite-amalgamation-3390200/sqlite3.c:49659:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 112)) = winSleep // testdata/sqlite-amalgamation-3390200/sqlite3.c:49660:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 120)) = winCurrentTime // testdata/sqlite-amalgamation-3390200/sqlite3.c:49661:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 128)) = winGetLastError // testdata/sqlite-amalgamation-3390200/sqlite3.c:49662:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 136)) = winCurrentTimeInt64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:49663:5: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 144)) = winSetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49664:5: + *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 152)) = winGetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49665:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathNolockVfs)) + 160)) = winNextSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49666:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winAppData)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:49600:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 40)) = winOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:49601:5: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 48)) = winDelete // testdata/sqlite-amalgamation-3390200/sqlite3.c:49602:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 56)) = winAccess // testdata/sqlite-amalgamation-3390200/sqlite3.c:49603:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 64)) = winFullPathname // testdata/sqlite-amalgamation-3390200/sqlite3.c:49604:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 72)) = winDlOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:49605:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 80)) = winDlError // testdata/sqlite-amalgamation-3390200/sqlite3.c:49606:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 88)) = winDlSym // testdata/sqlite-amalgamation-3390200/sqlite3.c:49607:5: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 96)) = winDlClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:49608:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 104)) = winRandomness // testdata/sqlite-amalgamation-3390200/sqlite3.c:49609:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 112)) = winSleep // testdata/sqlite-amalgamation-3390200/sqlite3.c:49610:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 120)) = winCurrentTime // testdata/sqlite-amalgamation-3390200/sqlite3.c:49611:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 128)) = winGetLastError // testdata/sqlite-amalgamation-3390200/sqlite3.c:49612:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 136)) = winCurrentTimeInt64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:49613:5: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 144)) = winSetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49614:5: + *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 152)) = winGetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49615:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winLongPathVfs)) + 160)) = winNextSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49616:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockAppData)) + 0 /* .pMethod */)) = uintptr(unsafe.Pointer(&winIoNolockMethod)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:48206:3: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winNolockAppData)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:49625:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 40)) = winOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:49626:5: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 48)) = winDelete // testdata/sqlite-amalgamation-3390200/sqlite3.c:49627:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 56)) = winAccess // testdata/sqlite-amalgamation-3390200/sqlite3.c:49628:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 64)) = winFullPathname // testdata/sqlite-amalgamation-3390200/sqlite3.c:49629:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 72)) = winDlOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:49630:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 80)) = winDlError // testdata/sqlite-amalgamation-3390200/sqlite3.c:49631:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 88)) = winDlSym // testdata/sqlite-amalgamation-3390200/sqlite3.c:49632:5: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 96)) = winDlClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:49633:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 104)) = winRandomness // testdata/sqlite-amalgamation-3390200/sqlite3.c:49634:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 112)) = winSleep // testdata/sqlite-amalgamation-3390200/sqlite3.c:49635:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 120)) = winCurrentTime // testdata/sqlite-amalgamation-3390200/sqlite3.c:49636:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 128)) = winGetLastError // testdata/sqlite-amalgamation-3390200/sqlite3.c:49637:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 136)) = winCurrentTimeInt64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:49638:5: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 144)) = winSetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49639:5: + *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 152)) = winGetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49640:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winNolockVfs)) + 160)) = winNextSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49641:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&winAppData)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:49575:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 40)) = winOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:49576:5: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 48)) = winDelete // testdata/sqlite-amalgamation-3390200/sqlite3.c:49577:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 56)) = winAccess // testdata/sqlite-amalgamation-3390200/sqlite3.c:49578:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 64)) = winFullPathname // testdata/sqlite-amalgamation-3390200/sqlite3.c:49579:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 72)) = winDlOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:49580:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 80)) = winDlError // testdata/sqlite-amalgamation-3390200/sqlite3.c:49581:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 88)) = winDlSym // testdata/sqlite-amalgamation-3390200/sqlite3.c:49582:5: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 96)) = winDlClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:49583:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 104)) = winRandomness // testdata/sqlite-amalgamation-3390200/sqlite3.c:49584:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 112)) = winSleep // testdata/sqlite-amalgamation-3390200/sqlite3.c:49585:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 120)) = winCurrentTime // testdata/sqlite-amalgamation-3390200/sqlite3.c:49586:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 128)) = winGetLastError // testdata/sqlite-amalgamation-3390200/sqlite3.c:49587:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 136)) = winCurrentTimeInt64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:49588:5: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 144)) = winSetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49589:5: + *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 152)) = winGetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49590:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&winVfs)) + 160)) = winNextSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:49591:5: +} + +var ts1 = "3.39.2\x00ATOMIC_INTRINSICS=1\x00COMPILER=msvc-1900\x00DEFAULT_AUTOVACUUM\x00DEFAULT_CACHE_SIZE=-2000\x00DEFAULT_FILE_FORMAT=4\x00DEFAULT_JOURNAL_SIZE_LIMIT=-1\x00DEFAULT_MMAP_SIZE=0\x00DEFAULT_PAGE_SIZE=4096\x00DEFAULT_PCACHE_INITSZ=20\x00DEFAULT_RECURSIVE_TRIGGERS\x00DEFAULT_SECTOR_SIZE=4096\x00DEFAULT_SYNCHRONOUS=2\x00DEFAULT_WAL_AUTOCHECKPOINT=1000\x00DEFAULT_WAL_SYNCHRONOUS=2\x00DEFAULT_WORKER_THREADS=0\x00ENABLE_COLUMN_METADATA\x00ENABLE_FTS5\x00ENABLE_GEOPOLY\x00ENABLE_MATH_FUNCTIONS\x00ENABLE_MEMORY_MANAGEMENT\x00ENABLE_OFFSET_SQL_FUNC\x00ENABLE_PREUPDATE_HOOK\x00ENABLE_RBU\x00ENABLE_RTREE\x00ENABLE_SESSION\x00ENABLE_SNAPSHOT\x00ENABLE_STAT4\x00ENABLE_UNLOCK_NOTIFY\x00LIKE_DOESNT_MATCH_BLOBS\x00MALLOC_SOFT_LIMIT=1024\x00MAX_ATTACHED=10\x00MAX_COLUMN=2000\x00MAX_COMPOUND_SELECT=500\x00MAX_DEFAULT_PAGE_SIZE=8192\x00MAX_EXPR_DEPTH=1000\x00MAX_FUNCTION_ARG=127\x00MAX_LENGTH=1000000000\x00MAX_LIKE_PATTERN_LENGTH=50000\x00MAX_MMAP_SIZE=0x7fff0000\x00MAX_PAGE_COUNT=1073741823\x00MAX_PAGE_SIZE=65536\x00MAX_SQL_LENGTH=1000000000\x00MAX_TRIGGER_DEPTH=1000\x00MAX_VARIABLE_NUMBER=32766\x00MAX_VDBE_OP=250000000\x00MAX_WORKER_THREADS=8\x00MUTEX_NOOP\x00SOUNDEX\x00SYSTEM_MALLOC\x00TEMP_STORE=1\x00THREADSAFE=1\x00BINARY\x00ANY\x00BLOB\x00INT\x00INTEGER\x00REAL\x00TEXT\x0020b:20e\x0020c:20e\x0020e\x0040f-21a-21d\x00now\x00local time unavailable\x00second\x00minute\x00hour\x00\x00\x00day\x00\x00\x00\x00month\x00\x00year\x00\x00\x00auto\x00julianday\x00localtime\x00unixepoch\x00utc\x00weekday \x00start of \x00month\x00year\x00day\x00%02d\x00%06.3f\x00%03d\x00%.16g\x00%lld\x00%04d\x00date\x00time\x00datetime\x00strftime\x00current_time\x00current_timestamp\x00current_date\x00failed to allocate %u bytes of memory\x00failed memory resize %u to %u bytes\x00out of memory\x000123456789ABCDEF0123456789abcdef\x00-x0\x00X0\x00%\x00NaN\x00Inf\x00\x00NULL\x00(NULL)\x00.\x00(join-%u)\x00(subquery-%u)\x00thstndrd\x00922337203685477580\x00API call with %s database connection pointer\x00unopened\x00invalid\x00Savepoint\x00AutoCommit\x00Transaction\x00Checkpoint\x00JournalMode\x00Vacuum\x00VFilter\x00VUpdate\x00Goto\x00Gosub\x00InitCoroutine\x00Yield\x00MustBeInt\x00Jump\x00Once\x00If\x00IfNot\x00IsNullOrType\x00IfNullRow\x00Not\x00SeekLT\x00SeekLE\x00SeekGE\x00SeekGT\x00IfNotOpen\x00IfNoHope\x00NoConflict\x00NotFound\x00Found\x00SeekRowid\x00NotExists\x00Last\x00IfSmaller\x00SorterSort\x00Sort\x00Rewind\x00SorterNext\x00Prev\x00Next\x00IdxLE\x00IdxGT\x00IdxLT\x00IdxGE\x00Or\x00And\x00RowSetRead\x00RowSetTest\x00Program\x00FkIfZero\x00IfPos\x00IsNull\x00NotNull\x00Ne\x00Eq\x00Gt\x00Le\x00Lt\x00Ge\x00ElseEq\x00IfNotZero\x00DecrJumpZero\x00IncrVacuum\x00VNext\x00Filter\x00Init\x00PureFunc\x00Function\x00Return\x00EndCoroutine\x00HaltIfNull\x00Halt\x00Integer\x00Int64\x00String\x00BeginSubrtn\x00Null\x00SoftNull\x00Blob\x00Variable\x00Move\x00Copy\x00SCopy\x00IntCopy\x00FkCheck\x00ResultRow\x00CollSeq\x00AddImm\x00RealAffinity\x00Cast\x00Permutation\x00Compare\x00IsTrue\x00ZeroOrNull\x00Offset\x00Column\x00TypeCheck\x00Affinity\x00MakeRecord\x00Count\x00ReadCookie\x00SetCookie\x00ReopenIdx\x00BitAnd\x00BitOr\x00ShiftLeft\x00ShiftRight\x00Add\x00Subtract\x00Multiply\x00Divide\x00Remainder\x00Concat\x00OpenRead\x00OpenWrite\x00BitNot\x00OpenDup\x00OpenAutoindex\x00String8\x00OpenEphemeral\x00SorterOpen\x00SequenceTest\x00OpenPseudo\x00Close\x00ColumnsUsed\x00SeekScan\x00SeekHit\x00Sequence\x00NewRowid\x00Insert\x00RowCell\x00Delete\x00ResetCount\x00SorterCompare\x00SorterData\x00RowData\x00Rowid\x00NullRow\x00SeekEnd\x00IdxInsert\x00SorterInsert\x00IdxDelete\x00DeferredSeek\x00IdxRowid\x00FinishSeek\x00Destroy\x00Clear\x00ResetSorter\x00CreateBtree\x00SqlExec\x00ParseSchema\x00LoadAnalysis\x00DropTable\x00DropIndex\x00Real\x00DropTrigger\x00IntegrityCk\x00RowSetAdd\x00Param\x00FkCounter\x00MemMax\x00OffsetLimit\x00AggInverse\x00AggStep\x00AggStep1\x00AggValue\x00AggFinal\x00Expire\x00CursorLock\x00CursorUnlock\x00TableLock\x00VBegin\x00VCreate\x00VDestroy\x00VOpen\x00VInitIn\x00VColumn\x00VRename\x00Pagecount\x00MaxPgcnt\x00ClrSubtype\x00FilterAdd\x00Trace\x00CursorHint\x00ReleaseReg\x00Noop\x00Explain\x00Abortable\x00AreFileApisANSI\x00CharLowerW\x00CharUpperW\x00CloseHandle\x00CreateFileA\x00CreateFileW\x00CreateFileMappingA\x00CreateFileMappingW\x00CreateMutexW\x00DeleteFileA\x00DeleteFileW\x00FileTimeToLocalFileTime\x00FileTimeToSystemTime\x00FlushFileBuffers\x00FormatMessageA\x00FormatMessageW\x00FreeLibrary\x00GetCurrentProcessId\x00GetDiskFreeSpaceA\x00GetDiskFreeSpaceW\x00GetFileAttributesA\x00GetFileAttributesW\x00GetFileAttributesExW\x00GetFileSize\x00GetFullPathNameA\x00GetFullPathNameW\x00GetLastError\x00GetProcAddressA\x00GetSystemInfo\x00GetSystemTime\x00GetSystemTimeAsFileTime\x00GetTempPathA\x00GetTempPathW\x00GetTickCount\x00GetVersionExA\x00GetVersionExW\x00HeapAlloc\x00HeapCreate\x00HeapDestroy\x00HeapFree\x00HeapReAlloc\x00HeapSize\x00HeapValidate\x00HeapCompact\x00LoadLibraryA\x00LoadLibraryW\x00LocalFree\x00LockFile\x00LockFileEx\x00MapViewOfFile\x00MultiByteToWideChar\x00QueryPerformanceCounter\x00ReadFile\x00SetEndOfFile\x00SetFilePointer\x00Sleep\x00SystemTimeToFileTime\x00UnlockFile\x00UnlockFileEx\x00UnmapViewOfFile\x00WideCharToMultiByte\x00WriteFile\x00CreateEventExW\x00WaitForSingleObject\x00WaitForSingleObjectEx\x00SetFilePointerEx\x00GetFileInformationByHandleEx\x00MapViewOfFileFromApp\x00CreateFile2\x00LoadPackagedLibrary\x00GetTickCount64\x00GetNativeSystemInfo\x00OutputDebugStringA\x00OutputDebugStringW\x00GetProcessHeap\x00CreateFileMappingFromApp\x00InterlockedCompareExchange\x00UuidCreate\x00UuidCreateSequential\x00FlushViewOfFile\x00%s\x00OsError 0x%lx (%lu)\x00os_win.c:%d: (%lu) %s(%s) - %s\x00delayed %dms for lock/sharing conflict at line %d\x00winSeekFile\x00winClose\x00winRead\x00winWrite1\x00winWrite2\x00winTruncate1\x00winTruncate2\x00winSync1\x00winSync2\x00winFileSize\x00winUnlockReadLock\x00winUnlock\x00winLockSharedMemory\x00%s-shm\x00readonly_shm\x00winOpenShm\x00winShmMap1\x00winShmMap2\x00winShmMap3\x00winUnmapfile1\x00winUnmapfile2\x00winMapfile1\x00winMapfile2\x00etilqs_\x00winGetTempname1\x00winGetTempname2\x00winGetTempname3\x00winGetTempname4\x00winGetTempname5\x00abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\x00exclusive\x00winOpen\x00psow\x00winDelete\x00winAccess\x00%s%c%s\x00winFullPathname1\x00winFullPathname2\x00winFullPathname3\x00winFullPathname4\x00win32\x00win32-longpath\x00win32-none\x00win32-longpath-none\x00memdb\x00memdb(%p,%lld)\x00PRAGMA \"%w\".page_count\x00ATTACH x AS %Q\x00recovered %d pages from %s\x00-journal\x00-wal\x00nolock\x00immutable\x00PRAGMA table_list\x00recovered %d frames from WAL file %s\x00cannot limit WAL size: %s\x00SQLite format 3\x00:memory:\x00@ \x00\n\x00invalid page number %d\x002nd reference to page %d\x00Failed to read ptrmap key=%d\x00Bad ptr map entry key=%d expected=(%d,%d) got=(%d,%d)\x00failed to get page %d\x00freelist leaf count too big on page %d\x00%s is %d but should be %d\x00size\x00overflow list length\x00Page %u: \x00unable to get the page. error code=%d\x00btreeInitPage() returns error code %d\x00free space corruption\x00On tree page %u cell %d: \x00On page %u at right child: \x00Offset %d out of range %d..%d\x00Extends off end of page\x00Rowid %lld out of order\x00Child page depth differs\x00Multiple uses for byte %u of page %u\x00Fragmentation of %d bytes reported as %d on page %u\x00Main freelist: \x00max rootpage (%d) disagrees with header (%d)\x00incremental_vacuum enabled with a max rootpage of zero\x00Page %d is never used\x00Pointer map page %d is referenced\x00unknown database %s\x00destination database is in use\x00source and destination must be distinct\x00%!.15g\x00-\x00%s%s\x00k(%d\x00B\x00,%s%s%s\x00N.\x00)\x00%.18s-%s\x00%s(%d)\x00%d\x00(blob)\x00vtab:%p\x00%c%u\x00]\x00program\x00?\x008\x0016LE\x0016BE\x00addr\x00opcode\x00p1\x00p2\x00p3\x00p4\x00p5\x00comment\x00id\x00parent\x00notused\x00detail\x00%.4c%s%.16c\x00MJ delete: %s\x00MJ collide: %s\x00-mj%06X9%02X\x00FOREIGN KEY constraint failed\x00a CHECK constraint\x00a generated column\x00an index\x00non-deterministic use of %s() in %s\x00API called with finalized prepared statement\x00API called with NULL prepared statement\x00string or blob too big\x00ValueList\x00bind on a busy prepared statement: [%s]\x00-- \x00'%.*q'\x00zeroblob(%d)\x00x'\x00%02x\x00'\x00%s constraint failed\x00%z: %s\x00abort at %d in [%s]: %s\x00cannot store %s value in %s column %s.%s\x00cannot open savepoint - SQL statements in progress\x00no such savepoint: %s\x00cannot release savepoint - SQL statements in progress\x00cannot commit transaction - SQL statements in progress\x00cannot start a transaction within a transaction\x00cannot rollback - no transaction is active\x00cannot commit - no transaction is active\x00database schema has changed\x00index corruption\x00sqlite_master\x00SELECT*FROM\"%w\".%s WHERE %s ORDER BY rowid\x00too many levels of trigger recursion\x00cannot change %s wal mode from within a transaction\x00into\x00out of\x00database table is locked: %s\x00-- %s\x00statement aborts at %d: [%s] %s\x00NOT NULL\x00UNIQUE\x00CHECK\x00FOREIGN KEY\x00cannot open value of type %s\x00null\x00real\x00integer\x00no such rowid: %lld\x00cannot open virtual table: %s\x00cannot open table without rowid: %s\x00cannot open view: %s\x00no such column: \"%s\"\x00foreign key\x00indexed\x00cannot open %s column for writing\x00main\x00*\x00new\x00old\x00excluded\x00misuse of aliased aggregate %s\x00misuse of aliased window function %s\x00row value misused\x00double-quoted string literal: \"%w\"\x00coalesce\x00no such column\x00ambiguous column name\x00%s: %s.%s.%s\x00%s: %s.%s\x00%s: %s\x00partial index WHERE clauses\x00index expressions\x00CHECK constraints\x00generated columns\x00%s prohibited in %s\x00true\x00false\x00the \".\" operator\x00second argument to %#T() must be a constant between 0.0 and 1.0\x00not authorized to use function: %#T\x00non-deterministic functions\x00%#T() may not be used as a window function\x00window\x00aggregate\x00misuse of %s function %#T()\x00no such function: %#T\x00wrong number of arguments to function %#T()\x00FILTER may not be used with non-aggregate %#T()\x00subqueries\x00parameters\x00%r %s BY term out of range - should be between 1 and %d\x00too many terms in ORDER BY clause\x00ORDER\x00%r ORDER BY term does not match any column in the result set\x00too many terms in %s BY clause\x00HAVING clause on a non-aggregate query\x00GROUP\x00aggregate functions are not allowed in the GROUP BY clause\x00Expression tree is too large (maximum depth %d)\x00IN(...) element has %d term%s - expected %d\x00s\x000\x00too many arguments on function %T\x00unsafe use of %#T()\x00variable number must be between ?1 and ?%d\x00too many SQL variables\x00%d columns assigned %d values\x00too many columns in %s\x00_ROWID_\x00ROWID\x00OID\x00USING ROWID SEARCH ON TABLE %s FOR IN-OPERATOR\x00USING INDEX %s FOR IN-OPERATOR\x00sub-select returns %d columns - expected %d\x00REUSE LIST SUBQUERY %d\x00%sLIST SUBQUERY %d\x00CORRELATED \x00REUSE SUBQUERY %d\x00%sSCALAR SUBQUERY %d\x001\x000x\x00hex literal too big: %s%#T\x00generated column loop on \"%s\"\x00blob\x00text\x00numeric\x00none\x00misuse of aggregate: %#T()\x00unknown function: %#T()\x00RAISE() may only be used within a trigger-program\x00B\x00C\x00D\x00E\x00sqlite_\x00table %s may not be altered\x00SELECT 1 FROM \"%w\".sqlite_master WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%' AND sqlite_rename_test(%Q, sql, type, name, %d, %Q, %d)=NULL \x00SELECT 1 FROM temp.sqlite_master WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%' AND sqlite_rename_test(%Q, sql, type, name, 1, %Q, %d)=NULL \x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_quotefix(%Q, sql)WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%'\x00UPDATE temp.sqlite_master SET sql = sqlite_rename_quotefix('temp', sql)WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND sql NOT LIKE 'create virtual%%'\x00there is already another table or index with this name: %s\x00table\x00view %s may not be altered\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_table(%Q, type, name, sql, %Q, %Q, %d) WHERE (type!='index' OR tbl_name=%Q COLLATE nocase)AND name NOT LIKE 'sqliteX_%%' ESCAPE 'X'\x00UPDATE %Q.sqlite_master SET tbl_name = %Q, name = CASE WHEN type='table' THEN %Q WHEN name LIKE 'sqliteX_autoindex%%' ESCAPE 'X' AND type='index' THEN 'sqlite_autoindex_' || %Q || substr(name,%d+18) ELSE name END WHERE tbl_name=%Q COLLATE nocase AND (type='table' OR type='index' OR type='trigger');\x00sqlite_sequence\x00UPDATE \"%w\".sqlite_sequence set name = %Q WHERE name = %Q\x00UPDATE sqlite_temp_schema SET sql = sqlite_rename_table(%Q, type, name, sql, %Q, %Q, 1), tbl_name = CASE WHEN tbl_name=%Q COLLATE nocase AND sqlite_rename_test(%Q, sql, type, name, 1, 'after rename', 0) THEN %Q ELSE tbl_name END WHERE type IN ('view', 'trigger')\x00after rename\x00SELECT raise(ABORT,%Q) FROM \"%w\".\"%w\"\x00Cannot add a PRIMARY KEY column\x00Cannot add a UNIQUE column\x00Cannot add a REFERENCES column with non-NULL default value\x00Cannot add a NOT NULL column with default value NULL\x00Cannot add a column with non-constant default\x00cannot add a STORED column\x00UPDATE \"%w\".sqlite_master SET sql = printf('%%.%ds, ',sql) || %Q || substr(sql,1+length(printf('%%.%ds',sql))) WHERE type = 'table' AND name = %Q\x00SELECT CASE WHEN quick_check GLOB 'CHECK*' THEN raise(ABORT,'CHECK constraint failed') ELSE raise(ABORT,'NOT NULL constraint failed') END FROM pragma_quick_check(%Q,%Q) WHERE quick_check GLOB 'CHECK*' OR quick_check GLOB 'NULL*'\x00virtual tables may not be altered\x00Cannot add a column to a view\x00sqlite_altertab_%s\x00view\x00virtual table\x00cannot %s %s \"%s\"\x00drop column from\x00rename columns of\x00no such column: \"%T\"\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_rename_column(sql, type, name, %Q, %Q, %d, %Q, %d, %d) WHERE name NOT LIKE 'sqliteX_%%' ESCAPE 'X' AND (type != 'index' OR tbl_name = %Q)\x00UPDATE temp.sqlite_master SET sql = sqlite_rename_column(sql, type, name, %Q, %Q, %d, %Q, %d, 1) WHERE type IN ('trigger', 'view')\x00error in %s %s%s%s: %s\x00 \x00CREATE \x00\"%w\" \x00%Q%s\x00%.*s%s\x00cannot drop %s column: \"%s\"\x00PRIMARY KEY\x00cannot drop column \"%s\": no other columns exist\x00UPDATE \"%w\".sqlite_master SET sql = sqlite_drop_column(%d, sql, %d) WHERE (type=='table' AND tbl_name=%Q COLLATE nocase)\x00after drop column\x00sqlite_rename_column\x00sqlite_rename_table\x00sqlite_rename_test\x00sqlite_drop_column\x00sqlite_rename_quotefix\x00CREATE TABLE %Q.%s(%s)\x00DELETE FROM %Q.%s WHERE %s=%Q\x00DELETE FROM %Q.%s\x00sqlite_stat1\x00tbl,idx,stat\x00sqlite_stat4\x00tbl,idx,neq,nlt,ndlt,sample\x00sqlite_stat3\x00stat_init\x00stat_push\x00%llu\x00 %llu\x00%llu \x00stat_get\x00sqlite\\_%\x00BBB\x00idx\x00tbl\x00unordered*\x00sz=[0-9]*\x00noskipscan*\x00SELECT idx,count(*) FROM %Q.sqlite_stat4 GROUP BY idx\x00SELECT idx,neq,nlt,ndlt,sample FROM %Q.sqlite_stat4\x00SELECT tbl,idx,stat FROM %Q.sqlite_stat1\x00x\x00\x00too many attached databases - max %d\x00database %s is already in use\x00database is already attached\x00attached databases must use the same text encoding as main database\x00unable to open database: %s\x00no such database: %s\x00cannot detach database %s\x00database %s is locked\x00sqlite_detach\x00sqlite_attach\x00%s cannot use variables\x00%s %T cannot reference objects in database %s\x00authorizer malfunction\x00%s.%s\x00%s.%z\x00access to %z is prohibited\x00not authorized\x00sqlite_temp_schema\x00sqlite_schema\x00sqlite_temp_master\x00pragma_\x00no such view\x00no such table\x00corrupt database\x00unknown database %T\x00object name reserved for internal use: %s\x00temporary table name must be unqualified\x00%s %T already exists\x00there is already an index named %s\x00sqlite_returning\x00cannot use RETURNING in a trigger\x00too many columns on %s\x00always\x00generated\x00duplicate column name: %s\x00default value of column [%s] is not constant\x00cannot use DEFAULT on a generated column\x00generated columns cannot be part of the PRIMARY KEY\x00table \"%s\" has more than one primary key\x00AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY\x00virtual tables cannot use computed columns\x00virtual\x00stored\x00error in generated column \"%s\"\x00,\x00\n \x00,\n \x00\n)\x00CREATE TABLE \x00 TEXT\x00 NUM\x00 INT\x00 REAL\x00unknown datatype for %s.%s: \"%s\"\x00missing datatype for %s.%s\x00AUTOINCREMENT not allowed on WITHOUT ROWID tables\x00PRIMARY KEY missing on table %s\x00must have at least one non-generated column\x00TABLE\x00VIEW\x00CREATE %s %.*s\x00UPDATE %Q.sqlite_master SET type='%s', name=%Q, tbl_name=%Q, rootpage=#%d, sql=%Q WHERE rowid=#%d\x00CREATE TABLE %Q.sqlite_sequence(name,seq)\x00tbl_name='%q' AND type!='trigger'\x00parameters are not allowed in views\x00view %s is circularly defined\x00corrupt schema\x00UPDATE %Q.sqlite_master SET rootpage=%d WHERE #%d AND rootpage=#%d\x00sqlite_stat%d\x00DELETE FROM %Q.sqlite_sequence WHERE name=%Q\x00DELETE FROM %Q.sqlite_master WHERE tbl_name=%Q and type!='trigger'\x00stat\x00table %s may not be dropped\x00use DROP TABLE to delete table %s\x00use DROP VIEW to delete view %s\x00foreign key on %s should reference only one column of table %T\x00number of columns in foreign key does not match the number of columns in the referenced table\x00unknown column \"%s\" in foreign key definition\x00unsupported use of NULLS %s\x00FIRST\x00LAST\x00index\x00cannot create a TEMP index on non-TEMP table \"%s\"\x00table %s may not be indexed\x00views may not be indexed\x00virtual tables may not be indexed\x00there is already a table named %s\x00index %s already exists\x00sqlite_autoindex_%s_%d\x00expressions prohibited in PRIMARY KEY and UNIQUE constraints\x00conflicting ON CONFLICT clauses specified\x00invalid rootpage\x00CREATE%s INDEX %.*s\x00 UNIQUE\x00INSERT INTO %Q.sqlite_master VALUES('index',%Q,%Q,#%d,%Q);\x00name='%q' AND type='index'\x00no such index: %S\x00index associated with UNIQUE or PRIMARY KEY constraint cannot be dropped\x00DELETE FROM %Q.sqlite_master WHERE name=%Q AND type='index'\x00too many FROM clause terms, max: %d\x00a JOIN clause is required before %s\x00ON\x00USING\x00BEGIN\x00ROLLBACK\x00COMMIT\x00RELEASE\x00unable to open a temporary database file for storing temporary tables\x00index '%q'\x00, \x00%s.rowid\x00unable to identify the object to be reindexed\x00duplicate WITH table name: %s\x00no such collation sequence: %s\x00table %s may not be modified\x00cannot modify %s because it is a view\x00rows deleted\x00integer overflow\x00%.*f\x00LIKE or GLOB pattern too complex\x00ESCAPE expression must be a single character\x00%!.20e\x00%Q\x00?000\x00MATCH\x00like\x00implies_nonnull_row\x00expr_compare\x00expr_implies_expr\x00affinity\x00soundex\x00load_extension\x00sqlite_compileoption_used\x00sqlite_compileoption_get\x00unlikely\x00likelihood\x00likely\x00sqlite_offset\x00ltrim\x00rtrim\x00trim\x00min\x00max\x00typeof\x00subtype\x00length\x00instr\x00printf\x00format\x00unicode\x00char\x00abs\x00round\x00upper\x00lower\x00hex\x00ifnull\x00random\x00randomblob\x00nullif\x00sqlite_version\x00sqlite_source_id\x00sqlite_log\x00quote\x00last_insert_rowid\x00changes\x00total_changes\x00replace\x00zeroblob\x00substr\x00substring\x00sum\x00total\x00avg\x00count\x00group_concat\x00glob\x00ceil\x00ceiling\x00floor\x00trunc\x00ln\x00log\x00log10\x00log2\x00exp\x00pow\x00power\x00mod\x00acos\x00asin\x00atan\x00atan2\x00cos\x00sin\x00tan\x00cosh\x00sinh\x00tanh\x00acosh\x00asinh\x00atanh\x00sqrt\x00radians\x00degrees\x00pi\x00sign\x00iif\x00foreign key mismatch - \"%w\" referencing \"%w\"\x00cannot INSERT into generated column \"%s\"\x00table %S has no column named %s\x00table %S has %d columns but %d values were supplied\x00%d values for %d columns\x00UPSERT not implemented for virtual table \"%s\"\x00cannot UPSERT a view\x00rows inserted\x00sqlite3_extension_init\x00sqlite3_\x00lib\x00_init\x00no entry point [%s] in shared library [%s]\x00error during initialization: %s\x00unable to open shared library [%.*s]\x00dll\x00automatic extension loading failed: %s\x00seq\x00from\x00to\x00on_update\x00on_delete\x00match\x00cid\x00name\x00type\x00notnull\x00dflt_value\x00pk\x00hidden\x00schema\x00ncol\x00wr\x00strict\x00seqno\x00desc\x00coll\x00key\x00builtin\x00enc\x00narg\x00flags\x00wdth\x00hght\x00flgs\x00unique\x00origin\x00partial\x00rowid\x00fkid\x00file\x00busy\x00checkpointed\x00database\x00status\x00cache_size\x00timeout\x00analysis_limit\x00application_id\x00auto_vacuum\x00automatic_index\x00busy_timeout\x00cache_spill\x00case_sensitive_like\x00cell_size_check\x00checkpoint_fullfsync\x00collation_list\x00compile_options\x00count_changes\x00data_store_directory\x00data_version\x00database_list\x00default_cache_size\x00defer_foreign_keys\x00empty_result_callbacks\x00encoding\x00foreign_key_check\x00foreign_key_list\x00foreign_keys\x00freelist_count\x00full_column_names\x00fullfsync\x00function_list\x00hard_heap_limit\x00ignore_check_constraints\x00incremental_vacuum\x00index_info\x00index_list\x00index_xinfo\x00integrity_check\x00journal_mode\x00journal_size_limit\x00legacy_alter_table\x00locking_mode\x00max_page_count\x00mmap_size\x00module_list\x00optimize\x00page_count\x00page_size\x00pragma_list\x00query_only\x00quick_check\x00read_uncommitted\x00recursive_triggers\x00reverse_unordered_selects\x00schema_version\x00secure_delete\x00short_column_names\x00shrink_memory\x00soft_heap_limit\x00synchronous\x00table_info\x00table_list\x00table_xinfo\x00temp_store\x00temp_store_directory\x00threads\x00trusted_schema\x00user_version\x00wal_autocheckpoint\x00wal_checkpoint\x00writable_schema\x00onoffalseyestruextrafull\x00normal\x00full\x00incremental\x00memory\x00temporary storage cannot be changed from within a transaction\x00SET NULL\x00SET DEFAULT\x00CASCADE\x00RESTRICT\x00NO ACTION\x00delete\x00persist\x00off\x00truncate\x00wal\x00w\x00a\x00sissii\x00utf8\x00utf16le\x00utf16be\x00-%T\x00fast\x00not a writable directory\x00Safety level may not be changed inside a transaction\x00reset\x00issisii\x00issisi\x00SELECT*FROM\"%w\"\x00shadow\x00sssiii\x00iisX\x00isiX\x00c\x00u\x00isisi\x00iss\x00is\x00iissssss\x00NONE\x00siX\x00*** in database %s ***\n\x00NULL value in %s.%s\x00non-%s value in %s.%s\x00CHECK constraint failed in %s\x00row \x00 missing from index \x00non-unique entry in index \x00wrong # of entries in index \x00ok\x00unsupported encoding: %s\x00restart\x00ANALYZE \"%w\".\"%w\"\x00UTF8\x00UTF-8\x00UTF-16le\x00UTF-16be\x00UTF16le\x00UTF16be\x00UTF-16\x00UTF16\x00CREATE TABLE x\x00%c\"%s\"\x00(\"%s\"\x00,arg HIDDEN\x00,schema HIDDEN\x00PRAGMA \x00%Q.\x00=%Q\x00error in %s %s after %s: %s\x00malformed database schema (%s)\x00%z - %s\x00rename\x00drop column\x00add column\x00orphan index\x00CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)\x00unsupported file format\x00SELECT*FROM\"%w\".%s ORDER BY rowid\x00database schema is locked: %s\x00statement too long\x00unknown join type: %T%s%T%s%T\x00naturaleftouterightfullinnercross\x00a NATURAL join may not have an ON or USING clause\x00cannot join using column %s - column not present in both tables\x00ambiguous reference to %s in USING()\x00UNION ALL\x00INTERSECT\x00EXCEPT\x00UNION\x00USE TEMP B-TREE FOR %s\x00column%d\x00%.*z:%u\x00cannot use window functions in recursive queries\x00recursive aggregate queries not supported\x00SETUP\x00RECURSIVE STEP\x00SCAN %d CONSTANT ROW%s\x00S\x00COMPOUND QUERY\x00LEFT-MOST SUBQUERY\x00%s USING TEMP B-TREE\x00all VALUES must have the same number of terms\x00SELECTs to the left and right of %s do not have the same number of result columns\x00MERGE (%s)\x00LEFT\x00RIGHT\x00no such index: %s\x00'%s' is not a function\x00no such index: \"%s\"\x00multiple references to recursive table: %s\x00circular reference: %s\x00table %s has %d values for %d columns\x00multiple recursive references: %s\x00recursive reference in a subquery: %s\x00%!S\x00too many references to \"%s\": max 65535\x00access to view \"%s\" prohibited\x00unsafe use of virtual table \"%s\"\x00..%s\x00%s.%s.%s\x00no such table: %s\x00no tables specified\x00too many columns in result set\x00DISTINCT aggregates must have exactly one argument\x00USE TEMP B-TREE FOR %s(DISTINCT)\x00SCAN %s%s%s\x00 USING COVERING INDEX \x00target object/alias may not appear in FROM clause: %s\x00expected %d columns for '%s' but got %d\x00CO-ROUTINE %!S\x00MATERIALIZE %!S\x00DISTINCT\x00GROUP BY\x00RIGHT PART OF ORDER BY\x00ORDER BY\x00sqlite3_get_table() called with two or more incompatible queries\x00temporary trigger may not have qualified name\x00trigger\x00cannot create triggers on virtual tables\x00trigger %T already exists\x00cannot create trigger on system table\x00cannot create %s trigger on view: %S\x00BEFORE\x00AFTER\x00cannot create INSTEAD OF trigger on table: %S\x00INSERT INTO %Q.sqlite_master VALUES('trigger',%Q,%Q,0,'CREATE TRIGGER %q')\x00type='trigger' AND name='%q'\x00no such trigger: %S\x00DELETE FROM %Q.sqlite_master WHERE name=%Q AND type='trigger'\x00%s RETURNING is not available on virtual tables\x00DELETE\x00UPDATE\x00RETURNING may not use \"TABLE.*\" wildcards\x00-- TRIGGER %s\x00cannot UPDATE generated column \"%s\"\x00no such column: %s\x00rows updated\x00%r \x00%sON CONFLICT clause does not match any PRIMARY KEY or UNIQUE constraint\x00CRE\x00INS\x00cannot VACUUM from within a transaction\x00cannot VACUUM - SQL statements in progress\x00non-text filename\x00ATTACH %Q AS vacuum_db\x00output file already exists\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='table'AND name<>'sqlite_sequence' AND coalesce(rootpage,1)>0\x00SELECT sql FROM \"%w\".sqlite_schema WHERE type='index'\x00SELECT'INSERT INTO vacuum_db.'||quote(name)||' SELECT*FROM\"%w\".'||quote(name)FROM vacuum_db.sqlite_schema WHERE type='table'AND coalesce(rootpage,1)>0\x00INSERT INTO vacuum_db.sqlite_schema SELECT*FROM \"%w\".sqlite_schema WHERE type IN('view','trigger') OR(type='table'AND rootpage=0)\x00CREATE VIRTUAL TABLE %T\x00UPDATE %Q.sqlite_master SET type='table', name=%Q, tbl_name=%Q, rootpage=0, sql=%Q WHERE rowid=#%d\x00name=%Q AND sql=%Q\x00vtable constructor called recursively: %s\x00vtable constructor failed: %s\x00vtable constructor did not declare schema: %s\x00no such module: %s\x00<expr>\x00 AND \x00(\x00 (\x00%s=?\x00ANY(%s)\x00>\x00<\x00%s %S\x00SEARCH\x00SCAN\x00AUTOMATIC PARTIAL COVERING INDEX\x00AUTOMATIC COVERING INDEX\x00COVERING INDEX %s\x00INDEX %s\x00 USING \x00 USING INTEGER PRIMARY KEY (%s\x00>? AND %s\x00%c?)\x00 VIRTUAL TABLE INDEX %d:%s\x00 LEFT-JOIN\x00BLOOM FILTER ON %S (\x00rowid=?\x00MULTI-INDEX OR\x00INDEX %d\x00RIGHT-JOIN %s\x00regexp\x00ON clause references tables to its right\x00NOCASE\x00too many arguments on %s() - max %d\x00automatic index on %s(%s)\x00auto-index\x00%s.xBestIndex malfunction\x00abbreviated query algorithm search\x00no query solution\x00at most %d tables in a join\x00SCAN CONSTANT ROW\x00second argument to nth_value must be a positive integer\x00argument of ntile must be a positive integer\x00row_number\x00dense_rank\x00rank\x00percent_rank\x00cume_dist\x00ntile\x00last_value\x00nth_value\x00first_value\x00lead\x00lag\x00no such window: %s\x00RANGE with offset PRECEDING/FOLLOWING requires one ORDER BY expression\x00FILTER clause may only be used with aggregate window functions\x00misuse of aggregate: %s()\x00unsupported frame specification\x00PARTITION clause\x00ORDER BY clause\x00frame specification\x00cannot override %s of window: %s\x00DISTINCT is not supported for window functions\x00frame starting offset must be a non-negative integer\x00frame ending offset must be a non-negative integer\x00frame starting offset must be a non-negative number\x00frame ending offset must be a non-negative number\x00%s clause should come after %s not before\x00LIMIT\x00too many terms in compound SELECT\x00syntax error after column name \"%.*s\"\x00parser stack overflow\x00unknown table option: %.*s\x00set list\x00near \"%T\": syntax error\x00qualified table names are not allowed on INSERT, UPDATE, and DELETE statements within triggers\x00the INDEXED BY clause is not allowed on UPDATE or DELETE statements within triggers\x00the NOT INDEXED clause is not allowed on UPDATE or DELETE statements within triggers\x00incomplete input\x00unrecognized token: \"%T\"\x00%s in \"%s\"\x00create\x00temp\x00temporary\x00end\x00explain\x00unable to close due to unfinalized statements or unfinished backups\x00unknown error\x00abort due to ROLLBACK\x00another row available\x00no more rows available\x00not an error\x00SQL logic error\x00access permission denied\x00query aborted\x00database is locked\x00database table is locked\x00attempt to write a readonly database\x00interrupted\x00disk I/O error\x00database disk image is malformed\x00unknown operation\x00database or disk is full\x00unable to open database file\x00locking protocol\x00constraint failed\x00datatype mismatch\x00bad parameter or other API misuse\x00authorization denied\x00column index out of range\x00file is not a database\x00notification message\x00warning message\x00unable to delete/modify user-function due to active statements\x00unable to use function %s in the requested context\x00unknown database: %s\x00unable to delete/modify collation sequence due to active statements\x00file:\x00localhost\x00invalid uri authority: %.*s\x00vfs\x00cache\x00mode\x00access\x00no such %s mode: %s\x00%s mode not allowed: %s\x00no such vfs: %s\x00shared\x00private\x00ro\x00rw\x00rwc\x00RTRIM\x00\x00\x00\x00%s at line %d of [%.10s]\x00database corruption\x00misuse\x00cannot open file\x00no such table column: %s.%s\x00SQLITE_\x00database is deadlocked\x00array\x00object\x000123456789abcdef\x00JSON cannot hold BLOB values\x00malformed JSON\x00[0]\x00JSON path error near '%q'\x00json_%s() needs an odd number of arguments\x00$[\x00$.\x00json_object() requires an even number of arguments\x00json_object() labels must be TEXT\x00set\x00insert\x00[]\x00{}\x00CREATE TABLE x(key,value,type,atom,id,parent,fullkey,path,json HIDDEN,root HIDDEN)\x00.%.*s\x00[%d]\x00$\x00json\x00json_array\x00json_array_length\x00json_extract\x00->\x00->>\x00json_insert\x00json_object\x00json_patch\x00json_quote\x00json_remove\x00json_replace\x00json_set\x00json_type\x00json_valid\x00json_group_array\x00json_group_object\x00json_each\x00json_tree\x00%s_node\x00data\x00DROP TABLE '%q'.'%q_node';DROP TABLE '%q'.'%q_rowid';DROP TABLE '%q'.'%q_parent';\x00RtreeMatchArg\x00SELECT * FROM %Q.%Q\x00UNIQUE constraint failed: %s.%s\x00rtree constraint failed: %s.(%s<=%s)\x00ALTER TABLE %Q.'%q_node' RENAME TO \"%w_node\";ALTER TABLE %Q.'%q_parent' RENAME TO \"%w_parent\";ALTER TABLE %Q.'%q_rowid' RENAME TO \"%w_rowid\";\x00SELECT stat FROM %Q.sqlite_stat1 WHERE tbl = '%q_rowid'\x00node\x00CREATE TABLE \"%w\".\"%w_rowid\"(rowid INTEGER PRIMARY KEY,nodeno\x00,a%d\x00);CREATE TABLE \"%w\".\"%w_node\"(nodeno INTEGER PRIMARY KEY,data);\x00CREATE TABLE \"%w\".\"%w_parent\"(nodeno INTEGER PRIMARY KEY,parentnode);\x00INSERT INTO \"%w\".\"%w_node\"VALUES(1,zeroblob(%d))\x00INSERT INTO\"%w\".\"%w_rowid\"(rowid,nodeno)VALUES(?1,?2)ON CONFLICT(rowid)DO UPDATE SET nodeno=excluded.nodeno\x00SELECT * FROM \"%w\".\"%w_rowid\" WHERE rowid=?1\x00UPDATE \"%w\".\"%w_rowid\"SET \x00a%d=coalesce(?%d,a%d)\x00a%d=?%d\x00 WHERE rowid=?1\x00INSERT OR REPLACE INTO '%q'.'%q_node' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_node' WHERE nodeno = ?1\x00SELECT nodeno FROM '%q'.'%q_rowid' WHERE rowid = ?1\x00INSERT OR REPLACE INTO '%q'.'%q_rowid' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_rowid' WHERE rowid = ?1\x00SELECT parentnode FROM '%q'.'%q_parent' WHERE nodeno = ?1\x00INSERT OR REPLACE INTO '%q'.'%q_parent' VALUES(?1, ?2)\x00DELETE FROM '%q'.'%q_parent' WHERE nodeno = ?1\x00PRAGMA %Q.page_size\x00SELECT length(data) FROM '%q'.'%q_node' WHERE nodeno = 1\x00undersize RTree blobs in \"%q_node\"\x00Wrong number of columns for an rtree table\x00Too few columns for an rtree table\x00Too many columns for an rtree table\x00Auxiliary rtree columns must be last\x00CREATE TABLE x(%.*s INT\x00,%.*s\x00);\x00,%.*s REAL\x00,%.*s INT\x00{%lld\x00 %g\x00}\x00Invalid argument to rtreedepth()\x00%z%s%z\x00SELECT data FROM %Q.'%q_node' WHERE nodeno=?\x00Node %lld missing from database\x00SELECT parentnode FROM %Q.'%q_parent' WHERE nodeno=?1\x00SELECT nodeno FROM %Q.'%q_rowid' WHERE rowid=?1\x00Mapping (%lld -> %lld) missing from %s table\x00%_rowid\x00%_parent\x00Found (%lld -> %lld) in %s table, expected (%lld -> %lld)\x00Dimension %d of cell %d on node %lld is corrupt\x00Dimension %d of cell %d on node %lld is corrupt relative to parent\x00Node %lld is too small (%d bytes)\x00Rtree depth out of range (%d)\x00Node %lld is too small for cell count of %d (%d bytes)\x00SELECT count(*) FROM %Q.'%q%s'\x00Wrong number of entries in %%%s table - expected %lld, actual %lld\x00SELECT * FROM %Q.'%q_rowid'\x00Schema corrupt or not an rtree\x00_rowid\x00_parent\x00END\x00wrong number of arguments to function rtreecheck()\x00[\x00[%!g,%!g],\x00[%!g,%!g]]\x00<polyline points=\x00%c%g,%g\x00 %g,%g'\x00 %s\x00></polyline>\x00CREATE TABLE x(_shape\x00,%s\x00rtree\x00fullscan\x00_shape does not contain a valid polygon\x00geopoly_overlap\x00geopoly_within\x00geopoly\x00geopoly_area\x00geopoly_blob\x00geopoly_json\x00geopoly_svg\x00geopoly_contains_point\x00geopoly_debug\x00geopoly_bbox\x00geopoly_xform\x00geopoly_regular\x00geopoly_ccw\x00geopoly_group_bbox\x00rtreenode\x00rtreedepth\x00rtreecheck\x00rtree_i32\x00corrupt fossil delta\x00DROP TRIGGER IF EXISTS temp.rbu_insert_tr;DROP TRIGGER IF EXISTS temp.rbu_update1_tr;DROP TRIGGER IF EXISTS temp.rbu_update2_tr;DROP TRIGGER IF EXISTS temp.rbu_delete_tr;\x00SELECT rbu_target_name(name, type='view') AS target, name FROM sqlite_schema WHERE type IN ('table', 'view') AND target IS NOT NULL %s ORDER BY name\x00AND rootpage!=0 AND rootpage IS NOT NULL\x00SELECT name, rootpage, sql IS NULL OR substr(8, 6)=='UNIQUE' FROM main.sqlite_schema WHERE type='index' AND tbl_name = ?\x00SELECT (sql COLLATE nocase BETWEEN 'CREATE VIRTUAL' AND 'CREATE VIRTUAM'), rootpage FROM sqlite_schema WHERE name=%Q\x00PRAGMA index_list=%Q\x00SELECT rootpage FROM sqlite_schema WHERE name = %Q\x00PRAGMA table_info=%Q\x00PRAGMA main.index_list = %Q\x00PRAGMA main.index_xinfo = %Q\x00SELECT * FROM '%q'\x00rbu_\x00rbu_rowid\x00table %q %s rbu_rowid column\x00may not have\x00requires\x00PRAGMA table_info(%Q)\x00column missing from %q: %s\x00%z%s\"%w\"\x00%z%s%s\"%w\"%s\x00SELECT max(_rowid_) FROM \"%s%w\"\x00 WHERE _rowid_ > %lld \x00 DESC\x00quote(\x00||','||\x00SELECT %s FROM \"%s%w\" ORDER BY %s LIMIT 1\x00 WHERE (%s) > (%s) \x00_rowid_\x00%z%s \"%w\" COLLATE %Q\x00%z%s \"rbu_imp_%d%w\" COLLATE %Q DESC\x00%z%s quote(\"rbu_imp_%d%w\")\x00SELECT %s FROM \"rbu_imp_%w\" ORDER BY %s LIMIT 1\x00%z%s%s\x00(%s) > (%s)\x00%z%s(%.*s) COLLATE %Q\x00%z%s\"%w\" COLLATE %Q\x00%z%s\"rbu_imp_%d%w\"%s\x00%z%s\"rbu_imp_%d%w\" %s COLLATE %Q\x00%z%s\"rbu_imp_%d%w\" IS ?\x00%z%s%s.\"%w\"\x00%z%sNULL\x00%z, %s._rowid_\x00_rowid_ = ?%d\x00%z%sc%d=?%d\x00_rowid_ = (SELECT id FROM rbu_imposter2 WHERE %z)\x00%z%s\"%w\"=?%d\x00invalid rbu_control value\x00%z%s\"%w\"=rbu_delta(\"%w\", ?%d)\x00%z%s\"%w\"=rbu_fossil_delta(\"%w\", ?%d)\x00PRIMARY KEY(\x00%z%s\"%w\"%s\x00%z)\x00SELECT name FROM sqlite_schema WHERE rootpage = ?\x00%z%sc%d %s COLLATE %Q\x00%z%sc%d%s\x00%z, id INTEGER\x00CREATE TABLE rbu_imposter2(%z, PRIMARY KEY(%z)) WITHOUT ROWID\x00PRIMARY KEY \x00%z%s\"%w\" %s %sCOLLATE %Q%s\x00 NOT NULL\x00%z, %z\x00CREATE TABLE \"rbu_imp_%w\"(%z)%s\x00 WITHOUT ROWID\x00INSERT INTO %s.'rbu_tmp_%q'(rbu_control,%s%s) VALUES(%z)\x00SELECT trim(sql) FROM sqlite_schema WHERE type='index' AND name=?\x00 LIMIT -1 OFFSET %d\x00CREATE TABLE \"rbu_imp_%w\"( %s, PRIMARY KEY( %s ) ) WITHOUT ROWID\x00INSERT INTO \"rbu_imp_%w\" VALUES(%s)\x00DELETE FROM \"rbu_imp_%w\" WHERE %s\x00SELECT %s, 0 AS rbu_control FROM '%q' %s %s %s ORDER BY %s%s\x00AND\x00WHERE\x00SELECT %s, rbu_control FROM %s.'rbu_tmp_%q' %s ORDER BY %s%s\x00SELECT %s, rbu_control FROM %s.'rbu_tmp_%q' %s UNION ALL SELECT %s, rbu_control FROM '%q' %s %s typeof(rbu_control)='integer' AND rbu_control!=1 ORDER BY %s%s\x00rbu_imp_\x00INSERT INTO \"%s%w\"(%s%s) VALUES(%s)\x00, _rowid_\x00DELETE FROM \"%s%w\" WHERE %s\x00, rbu_rowid\x00CREATE TABLE IF NOT EXISTS %s.'rbu_tmp_%q' AS SELECT *%s FROM '%q' WHERE 0;\x00, 0 AS rbu_rowid\x00CREATE TEMP TRIGGER rbu_delete_tr BEFORE DELETE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(3, %s);END;CREATE TEMP TRIGGER rbu_update1_tr BEFORE UPDATE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(3, %s);END;CREATE TEMP TRIGGER rbu_update2_tr AFTER UPDATE ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(4, %s);END;\x00CREATE TEMP TRIGGER rbu_insert_tr AFTER INSERT ON \"%s%w\" BEGIN SELECT rbu_tmp_insert(0, %s);END;\x00,_rowid_ \x00,rbu_rowid\x00SELECT %s,%s rbu_control%s FROM '%q'%s %s %s %s\x000 AS \x00UPDATE \"%s%w\" SET %s WHERE %s\x00SELECT k, v FROM %s.rbu_state\x00file://%s-vacuum?modeof=%s\x00ATTACH %Q AS stat\x00CREATE TABLE IF NOT EXISTS %s.rbu_state(k INTEGER PRIMARY KEY, v)\x00cannot vacuum wal mode database\x00file:%s-vactmp?rbu_memory=1%s%s\x00&\x00rbu_tmp_insert\x00rbu_fossil_delta\x00rbu_target_name\x00SELECT * FROM sqlite_schema\x00rbu vfs not found\x00PRAGMA main.wal_checkpoint=restart\x00rbu_exclusive_checkpoint\x00%s-oal\x00%s-wal\x00PRAGMA schema_version\x00PRAGMA schema_version = %d\x00INSERT OR REPLACE INTO %s.rbu_state(k, v) VALUES (%d, %d), (%d, %Q), (%d, %Q), (%d, %d), (%d, %d), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %lld), (%d, %Q) \x00PRAGMA main.%s\x00PRAGMA main.%s = %d\x00PRAGMA writable_schema=1\x00SELECT sql FROM sqlite_schema WHERE sql!='' AND rootpage!=0 AND name!='sqlite_sequence' ORDER BY type DESC\x00SELECT * FROM sqlite_schema WHERE rootpage=0 OR rootpage IS NULL\x00INSERT INTO sqlite_schema VALUES(?,?,?,?,?)\x00PRAGMA writable_schema=0\x00DELETE FROM %s.'rbu_tmp_%q'\x00rbu_state mismatch error\x00rbu_vfs_%d\x00SELECT count(*) FROM sqlite_schema WHERE type='index' AND tbl_name = %Q\x00rbu_index_cnt\x00SELECT 1 FROM sqlite_schema WHERE tbl_name = 'rbu_count'\x00SELECT sum(cnt * (1 + rbu_index_cnt(rbu_target_name(tbl))))FROM rbu_count\x00cannot update wal mode database\x00database modified during rbu %s\x00vacuum\x00update\x00BEGIN IMMEDIATE\x00PRAGMA journal_mode=off\x00-vactmp\x00DELETE FROM stat.rbu_state\x00rbu/zipvfs setup error\x00rbu(%s)/%z\x00rbu_memory\x00SELECT 0, 'tbl', '', 0, '', 1 UNION ALL SELECT 1, 'idx', '', 0, '', 2 UNION ALL SELECT 2, 'stat', '', 0, '', 0\x00PRAGMA '%q'.table_info('%q')\x00%z%s\"%w\".\"%w\".\"%w\"=\"%w\".\"%w\".\"%w\"\x00%z%s\"%w\".\"%w\".\"%w\" IS NOT \"%w\".\"%w\".\"%w\"\x00 OR \x00SELECT * FROM \"%w\".\"%w\" WHERE NOT EXISTS ( SELECT 1 FROM \"%w\".\"%w\" WHERE %s)\x00SELECT * FROM \"%w\".\"%w\", \"%w\".\"%w\" WHERE %s AND (%z)\x00table schemas do not match\x00SELECT tbl, ?2, stat FROM %Q.sqlite_stat1 WHERE tbl IS ?1 AND idx IS (CASE WHEN ?2=X'' THEN NULL ELSE ?2 END)\x00SELECT * FROM \x00 WHERE \x00 IS ?\x00SAVEPOINT changeset\x00RELEASE changeset\x00UPDATE main.\x00 SET \x00 = ?\x00idx IS CASE WHEN length(?4)=0 AND typeof(?4)='blob' THEN NULL ELSE ?4 END \x00DELETE FROM main.\x00 AND (?\x00AND \x00INSERT INTO main.\x00) VALUES(?\x00, ?\x00INSERT INTO main.sqlite_stat1 VALUES(?1, CASE WHEN length(?2)=0 AND typeof(?2)='blob' THEN NULL ELSE ?2 END, ?3)\x00DELETE FROM main.sqlite_stat1 WHERE tbl=?1 AND idx IS CASE WHEN length(?2)=0 AND typeof(?2)='blob' THEN NULL ELSE ?2 END AND (?4 OR stat IS ?3)\x00SAVEPOINT replace_op\x00RELEASE replace_op\x00SAVEPOINT changeset_apply\x00PRAGMA defer_foreign_keys = 1\x00sqlite3changeset_apply(): no such table: %s\x00sqlite3changeset_apply(): table %s has %d columns, expected %d or more\x00sqlite3changeset_apply(): primary key mismatch for table %s\x00PRAGMA defer_foreign_keys = 0\x00RELEASE changeset_apply\x00ROLLBACK TO changeset_apply\x00fts5: parser stack overflow\x00fts5: syntax error near \"%.*s\"\x00%z%.*s\x00wrong number of arguments to function highlight()\x00wrong number of arguments to function snippet()\x00snippet\x00highlight\x00bm25\x00prefix\x00malformed prefix=... directive\x00too many prefix indexes (max %d)\x00prefix length out of range (max 999)\x00tokenize\x00multiple tokenize=... directives\x00parse error in tokenize directive\x00content\x00multiple content=... directives\x00%Q.%Q\x00content_rowid\x00multiple content_rowid=... directives\x00columnsize\x00malformed columnsize=... directive\x00columns\x00malformed detail=... directive\x00unrecognized option: \"%.*s\"\x00reserved fts5 column name: %s\x00unindexed\x00unrecognized column option: %s\x00T.%Q\x00, T.%Q\x00, T.c%d\x00reserved fts5 table name: %s\x00parse error in \"%s\"\x00docsize\x00%Q.'%q_%s'\x00CREATE TABLE x(\x00%z%s%Q\x00%z, %Q HIDDEN, %s HIDDEN)\x00pgsz\x00hashsize\x00automerge\x00usermerge\x00crisismerge\x00SELECT k, v FROM %Q.'%q_config'\x00version\x00invalid fts5 file format (found %d, expected %d) - run 'rebuild'\x00unterminated string\x00fts5: syntax error near \"%.1s\"\x00OR\x00NOT\x00NEAR\x00expected integer, got \"%.*s\"\x00fts5: column queries are not supported (detail=none)\x00fts5: %s queries are not supported (detail!=full)\x00phrase\x00block\x00REPLACE INTO '%q'.'%q_data'(id, block) VALUES(?,?)\x00DELETE FROM '%q'.'%q_data' WHERE id>=? AND id<=?\x00DELETE FROM '%q'.'%q_idx' WHERE segid=?\x00PRAGMA %Q.data_version\x00SELECT pgno FROM '%q'.'%q_idx' WHERE segid=? AND term<=? ORDER BY term DESC LIMIT 1\x00INSERT INTO '%q'.'%q_idx'(segid,term,pgno) VALUES(?,?,?)\x00%s_data\x00id INTEGER PRIMARY KEY, block BLOB\x00segid, term, pgno, PRIMARY KEY(segid, term)\x00SELECT segid, term, (pgno>>1), (pgno&1) FROM %Q.'%q_idx' WHERE segid=%d ORDER BY 1, 2\x00\x00\x00\x00\x00\x00recursively defined fts5 content table\x00SELECT rowid, rank FROM %Q.%Q ORDER BY %s(\"%w\"%s%s) %s\x00DESC\x00ASC\x00reads\x00unknown special query: %.*s\x00SELECT %s\x00no such function: %s\x00parse error in rank function: %s\x00%s: table does not support scanning\x00delete-all\x00'delete-all' may only be used with a contentless or external content fts5 table\x00rebuild\x00'rebuild' may not be used with a contentless fts5 table\x00merge\x00integrity-check\x00cannot %s contentless fts5 table: %s\x00DELETE from\x00no such cursor: %lld\x00no such tokenizer: %s\x00error in tokenizer constructor\x00fts5_api_ptr\x00fts5: 2022-07-21 15:24:47 698edb77537b67c41adc68f9b892db56bcf9a55e00371a61420f3ddd668e6603\x00config\x00fts5\x00fts5_source_id\x00SELECT %s FROM %s T WHERE T.%Q >= ? AND T.%Q <= ? ORDER BY T.%Q ASC\x00SELECT %s FROM %s T WHERE T.%Q <= ? AND T.%Q >= ? ORDER BY T.%Q DESC\x00SELECT %s FROM %s T WHERE T.%Q=?\x00INSERT INTO %Q.'%q_content' VALUES(%s)\x00REPLACE INTO %Q.'%q_content' VALUES(%s)\x00DELETE FROM %Q.'%q_content' WHERE id=?\x00REPLACE INTO %Q.'%q_docsize' VALUES(?,?)\x00DELETE FROM %Q.'%q_docsize' WHERE id=?\x00SELECT sz FROM %Q.'%q_docsize' WHERE id=?\x00REPLACE INTO %Q.'%q_config' VALUES(?,?)\x00SELECT %s FROM %s AS T\x00DROP TABLE IF EXISTS %Q.'%q_data';DROP TABLE IF EXISTS %Q.'%q_idx';DROP TABLE IF EXISTS %Q.'%q_config';\x00DROP TABLE IF EXISTS %Q.'%q_docsize';\x00DROP TABLE IF EXISTS %Q.'%q_content';\x00ALTER TABLE %Q.'%q_%s' RENAME TO '%q_%s';\x00CREATE TABLE %Q.'%q_%q'(%s)%s\x00fts5: error creating shadow table %q_%s: %s\x00id INTEGER PRIMARY KEY\x00, c%d\x00id INTEGER PRIMARY KEY, sz BLOB\x00k PRIMARY KEY, v\x00DELETE FROM %Q.'%q_data';DELETE FROM %Q.'%q_idx';\x00DELETE FROM %Q.'%q_docsize';\x00SELECT count(*) FROM %Q.'%q_%s'\x00tokenchars\x00separators\x00L* N* Co\x00categories\x00remove_diacritics\x00unicode61\x00al\x00ance\x00ence\x00er\x00ic\x00able\x00ible\x00ant\x00ement\x00ment\x00ent\x00ion\x00ou\x00ism\x00ate\x00iti\x00ous\x00ive\x00ize\x00at\x00bl\x00ble\x00iz\x00ational\x00tional\x00tion\x00enci\x00anci\x00izer\x00logi\x00bli\x00alli\x00entli\x00eli\x00e\x00ousli\x00ization\x00ation\x00ator\x00alism\x00iveness\x00fulness\x00ful\x00ousness\x00aliti\x00iviti\x00biliti\x00ical\x00ness\x00icate\x00iciti\x00ative\x00alize\x00eed\x00ee\x00ed\x00ing\x00case_sensitive\x00ascii\x00porter\x00trigram\x00col\x00row\x00instance\x00fts5vocab: unknown table type: %Q\x00CREATE TABlE vocab(term, col, doc, cnt)\x00CREATE TABlE vocab(term, doc, cnt)\x00CREATE TABlE vocab(term, doc, col, offset)\x00wrong number of vtable arguments\x00recursive definition for %s.%s\x00SELECT t.%Q FROM %Q.%Q AS t WHERE t.%Q MATCH '*id'\x00no such fts5 table: %s.%s\x00fts5vocab\x002022-07-21 15:24:47 698edb77537b67c41adc68f9b892db56bcf9a55e00371a61420f3ddd668e6603\x00" var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data |