From 6a3fc713978a0c1c9290a4afd08b47886b49b635 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 13 Aug 2022 16:14:26 +0200 Subject: Update dependencies and go1.18 (#1873) * Update dependencies and go1.18 * Exclude unnecessary linters and update build to go1.18 --- .../modernc.org/sqlite/lib/sqlite_openbsd_amd64.go | 35332 ++++++++++--------- 1 file changed, 18725 insertions(+), 16607 deletions(-) (limited to 'vendor/modernc.org/sqlite/lib/sqlite_openbsd_amd64.go') diff --git a/vendor/modernc.org/sqlite/lib/sqlite_openbsd_amd64.go b/vendor/modernc.org/sqlite/lib/sqlite_openbsd_amd64.go index da5a311d..762f6338 100644 --- a/vendor/modernc.org/sqlite/lib/sqlite_openbsd_amd64.go +++ b/vendor/modernc.org/sqlite/lib/sqlite_openbsd_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_openbsd_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_UNIX=1', 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_openbsd_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_UNIX=1', DO NOT EDIT. package sqlite3 @@ -28,95 +28,95 @@ const ( AT_SYMLINK_FOLLOW = 0x04 // /usr/include/fcntl.h:202:1: AT_SYMLINK_NOFOLLOW = 0x02 // /usr/include/fcntl.h:201:1: BIG_ENDIAN = 4321 // /usr/include/sys/endian.h:45:1: - BITVEC_SZ = 512 // testdata/sqlite-amalgamation-3380500/sqlite3.c:50003:1: - BITVEC_SZELEM = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:50016: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: + BITVEC_SZ = 512 // testdata/sqlite-amalgamation-3390200/sqlite3.c:50642:1: + BITVEC_SZELEM = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:50655: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 = 1024 // /usr/include/stdio.h:168:1: BYTE_ORDER = 1234 // /usr/include/sys/endian.h:47:1: - CACHE_STALE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22170:1: - CC_AND = 24 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166852:1: - CC_BANG = 15 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166843:1: - CC_BOM = 30 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166858: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_EQ = 14 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166842: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_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_NUL = 29 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166857:1: - CC_PERCENT = 22 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166850:1: - CC_PIPE = 10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166838:1: - CC_PLUS = 20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166848:1: - CC_QUOTE = 8 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166836:1: - CC_QUOTE2 = 9 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166837:1: - CC_RP = 18 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166846:1: - CC_SEMI = 19 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166847:1: - CC_SLASH = 16 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166844:1: - CC_SPACE = 7 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166835:1: - CC_STAR = 21 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166849: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_X = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166828:1: + CACHE_STALE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22320:1: + CC_AND = 24 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168926:1: + CC_BANG = 15 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168917:1: + CC_BOM = 30 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168932: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_EQ = 14 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168916: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_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_NUL = 29 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168931:1: + CC_PERCENT = 22 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168924:1: + CC_PIPE = 10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168912:1: + CC_PLUS = 20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168922:1: + CC_QUOTE = 8 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168910:1: + CC_QUOTE2 = 9 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168911:1: + CC_RP = 18 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168920:1: + CC_SEMI = 19 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168921:1: + CC_SLASH = 16 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168918:1: + CC_SPACE = 7 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168909:1: + CC_STAR = 21 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168923: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_X = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:168902:1: CHAR_BIT = 8 // /usr/include/sys/limits.h:36:1: CHAR_MAX = 0x7f // /usr/include/sys/limits.h:46:1: CHAR_MIN = -128 // /usr/include/sys/limits.h:47: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: CLK_TCK = 100 // /usr/include/time.h:68:1: CLOCKS_PER_SEC = 100 // /usr/include/time.h:71:1: CLOCK_BOOTTIME = 6 // /usr/include/sys/_time.h:40:1: @@ -125,58 +125,59 @@ const ( CLOCK_REALTIME = 0 // /usr/include/sys/_time.h:35:1: CLOCK_THREAD_CPUTIME_ID = 4 // /usr/include/sys/_time.h:38:1: CLOCK_UPTIME = 5 // /usr/include/sys/_time.h:39: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: - 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: - 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_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: - 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: + 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: + 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: + 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_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: + 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: DEFFILEMODE = 438 // /usr/include/sys/stat.h:155:1: - DIRECT_MODE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:59477:1: + DIRECT_MODE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:60118:1: DL_GETERRNO = 1 // /usr/include/dlfcn.h:69:1: DL_LAZY = 1 // /usr/include/dlfcn.h:78:1: DL_REFERENCE = 4 // /usr/include/dlfcn.h:76:1: DL_SETBINDLCK = 3 // /usr/include/dlfcn.h:75:1: DL_SETTHREADLCK = 2 // /usr/include/dlfcn.h:74:1: - DOTLOCK_SUFFIX = ".lock" // testdata/sqlite-amalgamation-3380500/sqlite3.c:37010:1: + DOTLOCK_SUFFIX = ".lock" // testdata/sqlite-amalgamation-3390200/sqlite3.c:37692:1: DST_AUST = 2 // /usr/include/sys/time.h:78:1: DST_CAN = 6 // /usr/include/sys/time.h:82:1: DST_EET = 5 // /usr/include/sys/time.h:81:1: @@ -227,9 +228,9 @@ const ( EMLINK = 31 // /usr/include/sys/errno.h:75:1: EMSGSIZE = 40 // /usr/include/sys/errno.h:91:1: ENAMETOOLONG = 63 // /usr/include/sys/errno.h:123: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: ENDRUNDISC = 9 // /usr/include/sys/ttycom.h:149:1: ENEEDAUTH = 81 // /usr/include/sys/errno.h:156:1: ENETDOWN = 50 // /usr/include/sys/errno.h:107:1: @@ -271,39 +272,40 @@ const ( EPROTO = 95 // /usr/include/sys/errno.h:173:1: EPROTONOSUPPORT = 43 // /usr/include/sys/errno.h:94:1: EPROTOTYPE = 41 // /usr/include/sys/errno.h:92: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/include/sys/errno.h:80:1: EREMOTE = 71 // /usr/include/sys/errno.h:142:1: EROFS = 30 // /usr/include/sys/errno.h:74:1: @@ -316,22 +318,25 @@ const ( ETIMEDOUT = 60 // /usr/include/sys/errno.h:119:1: ETOOMANYREFS = 59 // /usr/include/sys/errno.h:117:1: ETXTBSY = 26 // /usr/include/sys/errno.h:70: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: EUSERS = 68 // /usr/include/sys/errno.h:135:1: EWOULDBLOCK = 35 // /usr/include/sys/errno.h:84: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/include/sys/errno.h:62:1: EXIT_FAILURE = 1 // /usr/include/stdlib.h:80:1: EXIT_SUCCESS = 0 // /usr/include/stdlib.h:81:1: - EXPRDUP_REDUCE = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:18207:1: + EXPRDUP_REDUCE = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:18268:1: FAPPEND = 8 // /usr/include/fcntl.h:130:1: FASYNC = 64 // /usr/include/fcntl.h:131:1: FD_CLOEXEC = 1 // /usr/include/fcntl.h:163:1: FD_SETSIZE = 1024 // /usr/include/sys/select.h:62:1: FFSYNC = 128 // /usr/include/fcntl.h:132:1: FILENAME_MAX = 1024 // /usr/include/stdio.h:178: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: FNDELAY = 4 // /usr/include/fcntl.h:134:1: FNONBLOCK = 4 // /usr/include/fcntl.h:133:1: FOPEN_MAX = 20 // /usr/include/stdio.h:177:1: @@ -343,119 +348,119 @@ const ( FP_SUBNORMAL = 0x08 // /usr/include/math.h:57:1: FP_ZERO = 0x10 // /usr/include/math.h:58:1: FREAD = 0x0001 // /usr/include/fcntl.h:76: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: FWRITE = 0x0002 // /usr/include/fcntl.h:77:1: F_DUPFD = 0 // /usr/include/fcntl.h:143:1: F_DUPFD_CLOEXEC = 10 // /usr/include/fcntl.h:156:1: @@ -477,101 +482,103 @@ const ( F_ULOCK = 0 // /usr/include/unistd.h:47:1: F_UNLCK = 2 // /usr/include/fcntl.h:167:1: F_WRLCK = 3 // /usr/include/fcntl.h:168:1: - GCC_VERSION = 4002001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:218:1: - GEOPOLY_PI = 3.1415926535897932385 // testdata/sqlite-amalgamation-3380500/sqlite3.c:200887:1: + GCC_VERSION = 4002001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:218:1: + GEOPOLY_PI = 3.1415926535897932385 // testdata/sqlite-amalgamation-3390200/sqlite3.c:203009:1: GID_MAX = 4294967295 // /usr/include/sys/limits.h:84: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_FULLFSYNC = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:38357:1: - HAVE_GETHOSTUUID = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:34904:1: - HAVE_LSTAT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:166:1: - HAVE_MREMAP = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35119: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_FULLFSYNC = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:39039:1: + HAVE_GETHOSTUUID = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35586:1: + HAVE_LSTAT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:166:1: + HAVE_MREMAP = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35801:1: + HAVE_READLINK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:165:1: HAVE_USLEEP = 1 // :3: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: - 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: - 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: - INTERFACE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:161872: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: + 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: + 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: + INTERFACE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163896:1: INT_MAX = 0x7fffffff // /usr/include/sys/limits.h:57:1: INT_MIN = -2147483648 // /usr/include/sys/limits.h:58: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 = 0x1fff // /usr/include/sys/ioccom.h:43:1: ITIMER_PROF = 2 // /usr/include/sys/time.h:146:1: ITIMER_REAL = 0 // /usr/include/sys/time.h:144:1: ITIMER_VIRTUAL = 1 // /usr/include/sys/time.h:145: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: - 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: + 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: + 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: KBIND_BLOCK_MAX = 2 // /usr/include/sys/unistd.h:77:1: KBIND_DATA_MAX = 24 // /usr/include/sys/unistd.h:78: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: - 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: + KEYINFO_ORDER_BIGNULL = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17803:1: + KEYINFO_ORDER_DESC = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17802: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: LITTLE_ENDIAN = 1234 // /usr/include/sys/endian.h:44:1: LLONG_MAX = 0x7fffffffffffffff // /usr/include/sys/limits.h:76:1: LLONG_MIN = -9223372036854775808 // /usr/include/sys/limits.h:78: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: LOCK_EX = 0x02 // /usr/include/fcntl.h:192:1: LOCK_NB = 0x04 // /usr/include/fcntl.h:193:1: LOCK_SH = 0x01 // /usr/include/fcntl.h:191:1: @@ -579,15 +586,15 @@ const ( LONG_BIT = 64 // /usr/include/sys/limits.h:89:1: LONG_MAX = 0x7fffffffffffffff // /usr/include/sys/limits.h:63:1: LONG_MIN = -9223372036854775808 // /usr/include/sys/limits.h:65:1: - LOOKASIDE_SMALL = 128 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16708:1: + LOOKASIDE_SMALL = 128 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16759:1: L_INCR = 1 // /usr/include/sys/unistd.h:62:1: L_SET = 0 // /usr/include/sys/unistd.h:61:1: L_XTND = 2 // /usr/include/sys/unistd.h:63:1: L_ctermid = 1024 // /usr/include/stdio.h:306:1: L_tmpnam = 1024 // /usr/include/stdio.h:184: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: MADV_DONTNEED = 4 // /usr/include/sys/mman.h:106:1: MADV_FREE = 6 // /usr/include/sys/mman.h:108:1: MADV_NORMAL = 0 // /usr/include/sys/mman.h:102:1: @@ -617,300 +624,302 @@ const ( MAP_TRYFIXED = 0 // /usr/include/sys/mman.h:79:1: MATH_ERREXCEPT = 2 // /usr/include/math.h:76:1: MATH_ERRNO = 1 // /usr/include/math.h:75:1: - MAX_PATHNAME = 512 // testdata/sqlite-amalgamation-3380500/sqlite3.c:34962:1: - MAX_SECTOR_SIZE = 0x10000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53632:1: + MAX_PATHNAME = 512 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35644:1: + MAX_SECTOR_SIZE = 0x10000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54270:1: MB_LEN_MAX = 4 // /usr/include/sys/limits.h:50:1: MCL_CURRENT = 0x01 // /usr/include/sys/mman.h:129:1: MCL_FUTURE = 0x02 // /usr/include/sys/mman.h:130:1: - MEMJOURNAL_DFLT_FILECHUNKSIZE = 1024 // testdata/sqlite-amalgamation-3380500/sqlite3.c:99772: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: - 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_Cleared = 0x0100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22285:1: - MEM_Dyn = 0x0400 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22295:1: - MEM_Ephem = 0x1000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22297:1: - MEM_FromBind = 0x0040 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22283:1: - MEM_Int = 0x0004 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22278:1: - MEM_IntReal = 0x0020 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22281:1: - MEM_Null = 0x0001 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22276: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_Term = 0x0200 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22294:1: - MEM_TypeMask = 0xc1bf // testdata/sqlite-amalgamation-3380500/sqlite3.c:22286:1: - MEM_Undefined = 0x0080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22284:1: - MEM_Zero = 0x4000 // testdata/sqlite-amalgamation-3380500/sqlite3.c:22299:1: + MEMJOURNAL_DFLT_FILECHUNKSIZE = 1024 // testdata/sqlite-amalgamation-3390200/sqlite3.c:100801: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_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_Cleared = 0x0100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22471:1: + MEM_Dyn = 0x1000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22480:1: + MEM_Ephem = 0x4000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22482:1: + MEM_FromBind = 0x0040 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22469:1: + MEM_Int = 0x0004 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22461:1: + MEM_IntReal = 0x0020 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22464:1: + MEM_Null = 0x0001 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22459: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_Term = 0x0200 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22472:1: + MEM_TypeMask = 0x0dbf // testdata/sqlite-amalgamation-3390200/sqlite3.c:22475:1: + MEM_Undefined = 0x0000 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22458:1: + MEM_Zero = 0x0400 // testdata/sqlite-amalgamation-3390200/sqlite3.c:22473:1: MSTSDISC = 8 // /usr/include/sys/ttycom.h:148:1: - MSVC_VERSION = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:225:1: + MSVC_VERSION = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:225:1: MS_ASYNC = 0x01 // /usr/include/sys/mman.h:122:1: MS_INVALIDATE = 0x04 // /usr/include/sys/mman.h:124:1: MS_SYNC = 0x02 // /usr/include/sys/mman.h:123:1: - NB = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:73163:1: + NB = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:73971:1: NBBY = 8 // /usr/include/sys/select.h:111: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 // :2:1: NMEADISC = 7 // /usr/include/sys/ttycom.h:147:1: - NN = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:73162:1: - NOT_WITHIN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10801:1: - NO_LOCK = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16319: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: - 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: - OMIT_TEMPDB = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14060: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: - 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: - 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: - OS_VXWORKS = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:163:1: + NN = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:73970:1: + NOT_WITHIN = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10831:1: + NO_LOCK = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16370:1: + 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: + 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: + OMIT_TEMPDB = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14090: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: + 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: + 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: + OS_VXWORKS = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:163:1: O_ACCMODE = 0x0003 // /usr/include/fcntl.h:65:1: O_APPEND = 0x0008 // /usr/include/fcntl.h:80:1: O_ASYNC = 0x0040 // /usr/include/fcntl.h:84:1: - O_BINARY = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35099:1: + O_BINARY = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35781:1: O_CLOEXEC = 0x10000 // /usr/include/fcntl.h:107:1: O_CREAT = 0x0200 // /usr/include/fcntl.h:91:1: O_DIRECTORY = 0x20000 // /usr/include/fcntl.h:108:1: @@ -918,7 +927,7 @@ const ( O_EXCL = 0x0800 // /usr/include/fcntl.h:93:1: O_EXLOCK = 0x0020 // /usr/include/fcntl.h:83:1: O_FSYNC = 0x0080 // /usr/include/fcntl.h:85:1: - O_LARGEFILE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35089:1: + O_LARGEFILE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35771:1: O_NDELAY = 4 // /usr/include/fcntl.h:135:1: O_NOCTTY = 0x8000 // /usr/include/fcntl.h:104:1: O_NOFOLLOW = 0x0100 // /usr/include/fcntl.h:86:1: @@ -930,504 +939,500 @@ const ( O_SYNC = 0x0080 // /usr/include/fcntl.h:89:1: O_TRUNC = 0x0400 // /usr/include/fcntl.h:92:1: O_WRONLY = 0x0001 // /usr/include/fcntl.h:63: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: - 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: - PARTLY_WITHIN = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:10802: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: + 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: + 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: + PARTLY_WITHIN = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:10832: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: PDP_ENDIAN = 3412 // /usr/include/sys/endian.h:46:1: - PENDING_LOCK = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16322: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: + PENDING_LOCK = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16373: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: POSIX_MADV_DONTNEED = 4 // /usr/include/sys/mman.h:95:1: POSIX_MADV_NORMAL = 0 // /usr/include/sys/mman.h:91:1: POSIX_MADV_RANDOM = 1 // /usr/include/sys/mman.h:92:1: POSIX_MADV_SEQUENTIAL = 2 // /usr/include/sys/mman.h:93:1: POSIX_MADV_WILLNEED = 3 // /usr/include/sys/mman.h:94:1: PPPDISC = 5 // /usr/include/sys/ttycom.h:145: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: PROT_EXEC = 0x04 // /usr/include/sys/mman.h:45:1: PROT_NONE = 0x00 // /usr/include/sys/mman.h:42:1: PROT_READ = 0x01 // /usr/include/sys/mman.h:43:1: PROT_WRITE = 0x02 // /usr/include/sys/mman.h:44: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: P_tmpdir = "/tmp/" // /usr/include/stdio.h:182: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: QUAD_MAX = 0x7fffffffffffffff // /usr/include/machine/limits.h:47:1: QUAD_MIN = -9223372036854775808 // /usr/include/machine/limits.h:48:1: RAND_MAX = 0x7fffffff // /usr/include/stdlib.h:83: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: - READMARK_NOT_USED = 0xffffffff // testdata/sqlite-amalgamation-3380500/sqlite3.c:61354:1: - READ_LOCK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65451:1: - RESERVED_LOCK = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16321:1: - RETURNING_TRIGGER_NAME = "sqlite_returning" // testdata/sqlite-amalgamation-3380500/sqlite3.c:115363:1: - RNDAWAY = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:199067:1: - RNDTOWARDS = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:199066: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: + 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: + READMARK_NOT_USED = 0xffffffff // testdata/sqlite-amalgamation-3390200/sqlite3.c:61995:1: + READ_LOCK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66092:1: + RESERVED_LOCK = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16372:1: + RETURNING_TRIGGER_NAME = "sqlite_returning" // testdata/sqlite-amalgamation-3390200/sqlite3.c:116539:1: + RNDAWAY = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:201189:1: + RNDTOWARDS = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:201188: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: RTLD_GLOBAL = 0x100 // /usr/include/dlfcn.h:42:1: RTLD_LAZY = 1 // /usr/include/dlfcn.h:40:1: RTLD_LOCAL = 0x000 // /usr/include/dlfcn.h:43:1: RTLD_NODELETE = 0x400 // /usr/include/dlfcn.h:45:1: RTLD_NOW = 2 // /usr/include/dlfcn.h:41:1: RTLD_TRACE = 0x200 // /usr/include/dlfcn.h:44: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: R_OK = 0x04 // /usr/include/sys/unistd.h:52: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: SCHAR_MAX = 0x7f // /usr/include/sys/limits.h:38:1: SCHAR_MIN = -128 // /usr/include/sys/limits.h:39:1: - SCHEMA_ROOT = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14497:1: + SCHEMA_ROOT = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14539:1: SEEK_CUR = 1 // /usr/include/sys/unistd.h:56:1: SEEK_END = 2 // /usr/include/sys/unistd.h:57:1: SEEK_SET = 0 // /usr/include/sys/unistd.h:55:1: - SELECTTRACE_ENABLED = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14439:1: - SESSIONS_STRM_CHUNK_SIZE = 1024 // testdata/sqlite-amalgamation-3380500/sqlite3.c:210455:1: - SESSION_MAX_BUFFER_SZ = 2147483391 // testdata/sqlite-amalgamation-3380500/sqlite3.c:212429:1: - SESSION_UPDATE_CACHE_SZ = 12 // testdata/sqlite-amalgamation-3380500/sqlite3.c:214201:1: + SESSIONS_STRM_CHUNK_SIZE = 1024 // testdata/sqlite-amalgamation-3390200/sqlite3.c:212577:1: + SESSION_MAX_BUFFER_SZ = 2147483391 // testdata/sqlite-amalgamation-3390200/sqlite3.c:214551:1: + SESSION_UPDATE_CACHE_SZ = 12 // testdata/sqlite-amalgamation-3390200/sqlite3.c:216323:1: SF_APPEND = 0x00040000 // /usr/include/sys/stat.h:175:1: SF_ARCHIVED = 0x00010000 // /usr/include/sys/stat.h:173: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_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_IMMUTABLE = 0x00020000 // /usr/include/sys/stat.h:174: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_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_SETTABLE = 0xffff0000 // /usr/include/sys/stat.h:172: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: - SHARED_LOCK = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16320:1: - SHARED_SIZE = 510 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16387: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: + SHARED_LOCK = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16371:1: + SHARED_SIZE = 510 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16438:1: SHRT_MAX = 0x7fff // /usr/include/sys/limits.h:53:1: SHRT_MIN = -32768 // /usr/include/sys/limits.h:54:1: - SIOCBRDGS = 0 // /usr/include/sys/sockio.h:112:1: SIZE_T_MAX = 18446744073709551615 // /usr/include/machine/limits.h:44:1: SLIPDISC = 4 // /usr/include/sys/ttycom.h:144: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: - 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: - 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: - 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 = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:13363: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_FILE_PERMISSIONS = 0644 // testdata/sqlite-amalgamation-3380500/sqlite3.c:34949: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_PROXYDIR_PERMISSIONS = 0755 // testdata/sqlite-amalgamation-3380500/sqlite3.c:34956: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: + 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: + 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: + 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: + 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 = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:13393: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_FILE_PERMISSIONS = 0644 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35631: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_PROXYDIR_PERMISSIONS = 0755 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35638: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 // :6:1: SQLITE_ENABLE_FTS5 = 1 // :7:1: SQLITE_ENABLE_GEOPOLY = 1 // :8:1: - SQLITE_ENABLE_LOCKING_STYLE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:34853:1: + SQLITE_ENABLE_LOCKING_STYLE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35535:1: SQLITE_ENABLE_MATH_FUNCTIONS = 1 // :9:1: SQLITE_ENABLE_MEMORY_MANAGEMENT = 1 // :10:1: SQLITE_ENABLE_OFFSET_SQL_FUNC = 1 // :11:1: @@ -1438,527 +1443,529 @@ const ( SQLITE_ENABLE_SNAPSHOT = 1 // :16:1: SQLITE_ENABLE_STAT4 = 1 // :17:1: SQLITE_ENABLE_UNLOCK_NOTIFY = 1 // :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_FSFLAGS_IS_MSDOS = 0x1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:34936: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_FSFLAGS_IS_MSDOS = 0x1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35618: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 // :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_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 = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:14388: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 = 1024 // 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_SYMLINKS = 100 // testdata/sqlite-amalgamation-3380500/sqlite3.c:34967: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_MINIMUM_FILE_DESCRIPTOR = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35438: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_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 = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:14429: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 = 1024 // 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_SYMLINKS = 100 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35649: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_MINIMUM_FILE_DESCRIPTOR = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:36120: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 // :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 // :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_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_SETUP_H = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16212: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_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_SETUP_H = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16256:1: SQLITE_OS_UNIX = 1 // :24:1: - SQLITE_OS_WIN = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:16248: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_WIN = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:16292: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 // :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 // :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 // :23: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_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_DATA_DIRECTORY_TYPE = 1 // testdata/sqlite-amalgamation-3380500/sqlite3.c:6544:1: - SQLITE_WIN32_TEMP_DIRECTORY_TYPE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:6545: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_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_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_DATA_DIRECTORY_TYPE = 1 // testdata/sqlite-amalgamation-3390200/sqlite3.c:6545:1: + SQLITE_WIN32_TEMP_DIRECTORY_TYPE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:6546: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: SSIZE_MAX = 9223372036854775807 // /usr/include/machine/limits.h:40: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: STDERR_FILENO = 2 // /usr/include/unistd.h:44:1: STDIN_FILENO = 0 // /usr/include/unistd.h:42:1: STDOUT_FILENO = 1 // /usr/include/unistd.h:43:1: @@ -1992,47 +1999,47 @@ const ( S_IXOTH = 0000001 // /usr/include/sys/stat.h:119:1: S_IXUSR = 0000100 // /usr/include/sys/stat.h:103:1: TABLDISC = 3 // /usr/include/sys/ttycom.h:143: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: - 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: - TF_Autoincrement = 0x00000008 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17571: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_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_WithoutRowid = 0x00000080 // testdata/sqlite-amalgamation-3380500/sqlite3.c:17576: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: + 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: + TF_Autoincrement = 0x00000008 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17627: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_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_WithoutRowid = 0x00000080 // testdata/sqlite-amalgamation-3390200/sqlite3.c:17632:1: TIMER_ABSTIME = 0x1 // /usr/include/sys/_time.h:62:1: - TIMER_END = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20757:1: + TIMER_END = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20899:1: TIMER_RELTIME = 0x0 // /usr/include/sys/_time.h:61:1: - TIMER_START = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20756:1: + TIMER_START = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20898:1: TIME_UTC = 1 // /usr/include/time.h:179:1: TIOCFLAG_CLOCAL = 0x02 // /usr/include/sys/ttycom.h:131:1: TIOCFLAG_CRTSCTS = 0x04 // /usr/include/sys/ttycom.h:132:1: @@ -2058,196 +2065,197 @@ const ( TIOCPKT_NOSTOP = 0x10 // /usr/include/sys/ttycom.h:105:1: TIOCPKT_START = 0x08 // /usr/include/sys/ttycom.h:104:1: TIOCPKT_STOP = 0x04 // /usr/include/sys/ttycom.h:103: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: TMP_MAX = 0x7fffffff // /usr/include/stdio.h:185: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: TTYDISC = 0 // /usr/include/sys/ttycom.h:142:1: UCHAR_MAX = 0xff // /usr/include/sys/limits.h:41:1: UF_APPEND = 0x00000004 // /usr/include/sys/stat.h:167:1: @@ -2259,155 +2267,156 @@ const ( UINT_MAX = 0xffffffff // /usr/include/sys/limits.h:56:1: ULLONG_MAX = 0xffffffffffffffff // /usr/include/sys/limits.h:74:1: ULONG_MAX = 0xffffffffffffffff // /usr/include/sys/limits.h:61:1: - UNIXFILE_DELETE = 0x20 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35076:1: - UNIXFILE_DIRSYNC = 0x08 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35071:1: - UNIXFILE_EXCL = 0x01 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35067:1: - UNIXFILE_NOLOCK = 0x80 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35078:1: - UNIXFILE_PERSIST_WAL = 0x04 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35069:1: - UNIXFILE_PSOW = 0x10 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35075:1: - UNIXFILE_RDONLY = 0x02 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35068:1: - UNIXFILE_URI = 0x40 // testdata/sqlite-amalgamation-3380500/sqlite3.c:35077:1: - UNIX_SHM_BASE = 120 // testdata/sqlite-amalgamation-3380500/sqlite3.c:39107:1: - UNIX_SHM_DMS = 128 // testdata/sqlite-amalgamation-3380500/sqlite3.c:39108:1: - UNKNOWN_LOCK = 5 // testdata/sqlite-amalgamation-3380500/sqlite3.c:53624:1: + UNIXFILE_DELETE = 0x20 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35758:1: + UNIXFILE_DIRSYNC = 0x08 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35753:1: + UNIXFILE_EXCL = 0x01 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35749:1: + UNIXFILE_NOLOCK = 0x80 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35760:1: + UNIXFILE_PERSIST_WAL = 0x04 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35751:1: + UNIXFILE_PSOW = 0x10 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35757:1: + UNIXFILE_RDONLY = 0x02 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35750:1: + UNIXFILE_URI = 0x40 // testdata/sqlite-amalgamation-3390200/sqlite3.c:35759:1: + UNIX_SHM_BASE = 120 // testdata/sqlite-amalgamation-3390200/sqlite3.c:39789:1: + UNIX_SHM_DMS = 128 // testdata/sqlite-amalgamation-3390200/sqlite3.c:39790:1: + UNKNOWN_LOCK = 5 // testdata/sqlite-amalgamation-3390200/sqlite3.c:54262:1: UQUAD_MAX = 0xffffffffffffffff // /usr/include/machine/limits.h:46:1: USHRT_MAX = 0xffff // /usr/include/sys/limits.h:52:1: UTIME_NOW = -2 // /usr/include/sys/stat.h:188:1: UTIME_OMIT = -1 // /usr/include/sys/stat.h:189: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: - 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: - 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: - WINDOW_AGGINVERSE = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:160055:1: - WINDOW_AGGSTEP = 3 // testdata/sqlite-amalgamation-3380500/sqlite3.c:160056: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: + 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: + 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: + 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: + WINDOW_AGGINVERSE = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:162079:1: + WINDOW_AGGSTEP = 3 // testdata/sqlite-amalgamation-3390200/sqlite3.c:162080: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: WORD_BIT = 32 // /usr/include/sys/limits.h:93: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: - 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: - WRITE_LOCK = 2 // testdata/sqlite-amalgamation-3380500/sqlite3.c:65452: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: + 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_LOCK = 2 // testdata/sqlite-amalgamation-3390200/sqlite3.c:66093:1: W_OK = 0x02 // /usr/include/sys/unistd.h:51: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: X_OK = 0x01 // /usr/include/sys/unistd.h:50: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: X_ASSERT_H_ = 0 // /usr/include/assert.h:63:1: X_BIG_ENDIAN = 4321 // /usr/include/sys/_endian.h:43:1: - X_BSD_SOURCE = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:246:1: + X_BSD_SOURCE = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:246:1: X_BYTE_ORDER = 1234 // /usr/include/machine/endian.h:58:1: - X_CLOCKID_T_DEFINED_ = 0 // /usr/include/sys/types.h:163:1: - X_CLOCK_T_DEFINED_ = 0 // /usr/include/sys/types.h:158:1: + X_CLOCKID_T_DEFINED_ = 0 // /usr/include/sys/types.h:162:1: + X_CLOCK_T_DEFINED_ = 0 // /usr/include/sys/types.h:157:1: X_CS_PATH = 1 // /usr/include/unistd.h:286:1: X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 // /usr/include/unistd.h:287:1: X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 // /usr/include/unistd.h:288:1: @@ -2443,11 +2452,11 @@ const ( X_ERRNO_H_ = 0 // /usr/include/errno.h:40:1: X_FILE_OFFSET_BITS = 64 // :25:1: X_FSTDIO = 0 // /usr/include/stdio.h:59: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_GETOPT_DEFINED_ = 0 // /usr/include/unistd.h:385: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_INT16_T_DEFINED_ = 0 // /usr/include/sys/types.h:84:1: X_INT32_T_DEFINED_ = 0 // /usr/include/sys/types.h:94:1: X_INT64_T_DEFINED_ = 0 // /usr/include/sys/types.h:104:1: @@ -2456,8 +2465,8 @@ const ( X_IOFBF = 0 // /usr/include/stdio.h:164:1: X_IOLBF = 1 // /usr/include/stdio.h:165:1: X_IONBF = 2 // /usr/include/stdio.h:166: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_LITTLE_ENDIAN = 1234 // /usr/include/sys/_endian.h:42:1: X_LOCALE_T_DEFINED_ = 0 // /usr/include/strings.h:52:1: X_LP64 = 1 // :1:1: @@ -2468,8 +2477,8 @@ const ( X_MATH_H_ = 0 // /usr/include/math.h:18:1: X_MAX_PAGE_SHIFT = 12 // /usr/include/machine/_types.h:52:1: X_MBSTATE_T_DEFINED_ = 0 // /usr/include/stddef.h:64:1: - X_OFF_T_DEFINED_ = 0 // /usr/include/sys/types.h:193:1: - X_OS_COMMON_H_ = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:20638:1: + X_OFF_T_DEFINED_ = 0 // /usr/include/sys/types.h:192:1: + X_OS_COMMON_H_ = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:20780:1: X_PC_2_SYMLINKS = 10 // /usr/include/sys/unistd.h:93:1: X_PC_ALLOC_SIZE_MIN = 11 // /usr/include/sys/unistd.h:94:1: X_PC_ASYNC_IO = 12 // /usr/include/sys/unistd.h:95:1: @@ -2492,7 +2501,7 @@ const ( X_PC_TIMESTAMP_RESOLUTION = 21 // /usr/include/sys/unistd.h:104:1: X_PC_VDISABLE = 9 // /usr/include/sys/unistd.h:92:1: X_PDP_ENDIAN = 3412 // /usr/include/sys/_endian.h:44:1: - X_PID_T_DEFINED_ = 0 // /usr/include/sys/types.h:168:1: + X_PID_T_DEFINED_ = 0 // /usr/include/sys/types.h:167:1: X_POSIX2_CHAR_TERM = 1 // /usr/include/unistd.h:116:1: X_POSIX2_C_BIND = 200112 // /usr/include/unistd.h:114:1: X_POSIX2_C_DEV = -1 // /usr/include/unistd.h:115:1: @@ -2706,11 +2715,11 @@ const ( X_SC_XOPEN_VERSION = 125 // /usr/include/unistd.h:278:1: X_SELECT_DEFINED_ = 0 // /usr/include/sys/select.h:126:1: X_SIGSET_T_DEFINED_ = 0 // /usr/include/sys/select.h:121:1: - X_SIZE_T_DEFINED_ = 0 // /usr/include/sys/types.h:173: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_SSIZE_T_DEFINED_ = 0 // /usr/include/sys/types.h:178:1: + X_SIZE_T_DEFINED_ = 0 // /usr/include/sys/types.h:172: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/include/sys/types.h:177:1: X_STACKALIGNBYTES = 15 // /usr/include/machine/_types.h:49:1: X_STDARG_H_ = 0 // /usr/include/stdarg.h:19:1: X_STDDEF_H_ = 0 // /usr/include/stddef.h:36:1: @@ -2735,11 +2744,11 @@ const ( X_SYS__ENDIAN_H_ = 0 // /usr/include/sys/_endian.h:34:1: X_SYS__TIME_H_ = 0 // /usr/include/sys/_time.h:33:1: X_SYS__TYPES_H_ = 0 // /usr/include/sys/_types.h:35:1: - X_TIMER_T_DEFINED_ = 0 // /usr/include/sys/types.h:188:1: + X_TIMER_T_DEFINED_ = 0 // /usr/include/sys/types.h:187:1: X_TIMESPEC_DECLARED = 0 // /usr/include/time.h:75:1: X_TIMEVAL_DECLARED = 0 // /usr/include/sys/select.h:40:1: X_TIME_H_ = 0 // /usr/include/time.h:42:1: - X_TIME_T_DEFINED_ = 0 // /usr/include/sys/types.h:183:1: + X_TIME_T_DEFINED_ = 0 // /usr/include/sys/types.h:182:1: X_UINT16_T_DEFINED_ = 0 // /usr/include/sys/types.h:89:1: X_UINT32_T_DEFINED_ = 0 // /usr/include/sys/types.h:99:1: X_UINT64_T_DEFINED_ = 0 // /usr/include/sys/types.h:109:1: @@ -2753,78 +2762,78 @@ const ( X_XOPEN_REALTIME = -1 // /usr/include/unistd.h:140:1: X_XOPEN_REALTIME_THREADS = -1 // /usr/include/unistd.h:141:1: X_XOPEN_SHM = 1 // /usr/include/unistd.h:142: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_XOPEN_STREAMS = -1 // /usr/include/unistd.h:143:1: X_XOPEN_UNIX = -1 // /usr/include/unistd.h:145:1: X_XOPEN_UUCP = -1 // /usr/include/unistd.h:144:1: - BBatch = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:59671:1: - Deliberate_fall_through = 0 // testdata/sqlite-amalgamation-3380500/sqlite3.c:255: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: - 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: + BBatch = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:60312:1: + Deliberate_fall_through = 0 // testdata/sqlite-amalgamation-3390200/sqlite3.c:255: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: + 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: Math_errhandling = 2 // /usr/include/math.h:77: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: - 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: - Unix = 1 // :340: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: + 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: + 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: + Unix = 1 // :344: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: ) type Ptrdiff_t = int64 /* :3:26 */ @@ -2848,7 +2857,7 @@ type X__float128 = float64 /* :47:21 */ // ***************************************************************************** // // 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 @@ -3336,7 +3345,7 @@ type Va_list = X__gnuc_va_list /* /usr/include/stdarg.h:39:24 */ // 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} @@ -3461,7 +3470,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} @@ -3475,7 +3484,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 @@ -3491,15 +3500,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:607:25 */ -type Sqlite_uint64 = uint64 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:608:34 */ -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:607:25 */ +type Sqlite_uint64 = uint64 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:608:34 */ +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} @@ -3623,7 +3632,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} @@ -3747,7 +3756,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 @@ -3769,7 +3778,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 // @@ -3863,7 +3872,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 // @@ -4134,7 +4143,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 // @@ -4142,7 +4154,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 // @@ -4335,7 +4347,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 // @@ -4504,8 +4516,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 // @@ -4577,7 +4589,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 // @@ -4640,7 +4652,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} @@ -4684,17 +4696,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} @@ -4736,7 +4748,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 // @@ -4755,11 +4767,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 // @@ -4771,7 +4784,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 // @@ -4785,7 +4798,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. @@ -4800,7 +4813,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. @@ -4810,7 +4823,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 @@ -4829,12 +4842,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 @@ -4861,9 +4874,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 @@ -4971,7 +4984,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 @@ -5077,7 +5090,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 @@ -5183,7 +5196,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 // @@ -5258,7 +5271,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 // @@ -5323,7 +5336,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} @@ -5348,7 +5361,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} @@ -5364,7 +5377,7 @@ type sqlite3_str = struct { //
  • ^The sqlite3_str object is destroyed and the string it created // is returned using the [sqlite3_str_finish()] interface. // -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 // @@ -5377,7 +5390,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 // @@ -5387,7 +5400,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} @@ -5561,7 +5574,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} @@ -5720,7 +5733,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 @@ -5737,12 +5750,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 // @@ -5766,7 +5779,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 // @@ -5776,7 +5789,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} @@ -5796,7 +5809,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} @@ -5816,7 +5829,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() // @@ -5860,7 +5873,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() // @@ -5897,7 +5910,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 @@ -5917,13 +5930,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. @@ -5953,7 +5966,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. @@ -5966,7 +5979,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 // @@ -5987,13 +6000,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 // @@ -6003,13 +6016,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 // @@ -6211,7 +6224,7 @@ type Sqlite3_changegroup = sqlite3_changegroup /* testdata/sqlite-amalgamation-3 //
  • The sqlite3_rebaser object is deleted by calling // sqlite3rebaser_delete(). // -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 // @@ -6413,7 +6426,7 @@ type sqlite3_rebaser = struct{ Fgrp Sqlite3_changegroup } /* testdata/sqlite-ama //
  • The sqlite3_rebaser object is deleted by calling // sqlite3rebaser_delete(). // -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(). @@ -6467,7 +6480,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(). @@ -6499,22 +6512,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() @@ -6534,7 +6547,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() @@ -6548,7 +6561,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 */ // // END OF REGISTRATION API @@ -6861,7 +6874,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 */ // // END OF REGISTRATION API @@ -7169,15 +7182,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 @@ -7203,7 +7216,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: @@ -7227,7 +7240,7 @@ type _ht = struct { //************* End of parse.h ********************************************** //************* Continuing where we left off in sqliteInt.h ***************** -// $OpenBSD: stdio.h,v 1.54 2020/09/11 17:56:41 naddy Exp $ +// $OpenBSD: stdio.h,v 1.55 2022/01/05 20:57:27 millert Exp $ // $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ // - @@ -7303,7 +7316,7 @@ type _ht = struct { // Written by Todd C. Miller, September 9, 2016 // Public domain. -// $OpenBSD: _types.h,v 1.9 2014/08/22 23:05:15 krw Exp $ +// $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $ // - // Copyright (c) 1990, 1993 @@ -7463,18 +7476,17 @@ type X__sa_family_t = X__uint8_t /* /usr/include/sys/_types.h:59:19 */ // sockad type X__segsz_t = X__int32_t /* /usr/include/sys/_types.h:60:19 */ // segment size type X__socklen_t = X__uint32_t /* /usr/include/sys/_types.h:61:20 */ // length type for network syscalls type X__suseconds_t = int64 /* /usr/include/sys/_types.h:62:15 */ // microseconds (signed) -type X__swblk_t = X__int32_t /* /usr/include/sys/_types.h:63:19 */ // swap offset -type X__time_t = X__int64_t /* /usr/include/sys/_types.h:64:19 */ // epoch time -type X__timer_t = X__int32_t /* /usr/include/sys/_types.h:65:19 */ // POSIX timer identifiers -type X__uid_t = X__uint32_t /* /usr/include/sys/_types.h:66:20 */ // user id -type X__useconds_t = X__uint32_t /* /usr/include/sys/_types.h:67:20 */ // microseconds +type X__time_t = X__int64_t /* /usr/include/sys/_types.h:63:19 */ // epoch time +type X__timer_t = X__int32_t /* /usr/include/sys/_types.h:64:19 */ // POSIX timer identifiers +type X__uid_t = X__uint32_t /* /usr/include/sys/_types.h:65:20 */ // user id +type X__useconds_t = X__uint32_t /* /usr/include/sys/_types.h:66:20 */ // microseconds // mbstate_t is an opaque object to keep conversion state, during multibyte // stream conversions. The content must not be referenced by user programs. type X__mbstate_t = struct { F__ccgo_pad1 [0]uint64 F__mbstate8 [128]int8 -} /* /usr/include/sys/_types.h:76:3 */ +} /* /usr/include/sys/_types.h:75:3 */ // Tell sys/endian.h we have MD variants of the swap macros. @@ -7556,27 +7568,26 @@ type Mode_t = X__mode_t /* /usr/include/sys/types.h:143:18 */ // permi type Nlink_t = X__nlink_t /* /usr/include/sys/types.h:144:19 */ // link count type Rlim_t = X__rlim_t /* /usr/include/sys/types.h:145:18 */ // resource limit type Segsz_t = X__segsz_t /* /usr/include/sys/types.h:146:19 */ // segment size -type Swblk_t = X__swblk_t /* /usr/include/sys/types.h:147:19 */ // swap offset -type Uid_t = X__uid_t /* /usr/include/sys/types.h:148:18 */ // user id -type Useconds_t = X__useconds_t /* /usr/include/sys/types.h:149:22 */ // microseconds -type Suseconds_t = X__suseconds_t /* /usr/include/sys/types.h:150:23 */ // microseconds (signed) -type Fsblkcnt_t = X__fsblkcnt_t /* /usr/include/sys/types.h:151:22 */ // file system block count -type Fsfilcnt_t = X__fsfilcnt_t /* /usr/include/sys/types.h:152:22 */ // file system file count +type Uid_t = X__uid_t /* /usr/include/sys/types.h:147:18 */ // user id +type Useconds_t = X__useconds_t /* /usr/include/sys/types.h:148:22 */ // microseconds +type Suseconds_t = X__suseconds_t /* /usr/include/sys/types.h:149:23 */ // microseconds (signed) +type Fsblkcnt_t = X__fsblkcnt_t /* /usr/include/sys/types.h:150:22 */ // file system block count +type Fsfilcnt_t = X__fsfilcnt_t /* /usr/include/sys/types.h:151:22 */ // file system file count // The following types may be defined in multiple header files. -type Clock_t = X__clock_t /* /usr/include/sys/types.h:159:19 */ +type Clock_t = X__clock_t /* /usr/include/sys/types.h:158:19 */ -type Clockid_t = X__clockid_t /* /usr/include/sys/types.h:164:21 */ +type Clockid_t = X__clockid_t /* /usr/include/sys/types.h:163:21 */ -type Pid_t = X__pid_t /* /usr/include/sys/types.h:169:18 */ +type Pid_t = X__pid_t /* /usr/include/sys/types.h:168:18 */ -type Ssize_t = X__ssize_t /* /usr/include/sys/types.h:179:19 */ +type Ssize_t = X__ssize_t /* /usr/include/sys/types.h:178:19 */ -type Time_t = X__time_t /* /usr/include/sys/types.h:184:18 */ +type Time_t = X__time_t /* /usr/include/sys/types.h:183:18 */ -type Timer_t = X__timer_t /* /usr/include/sys/types.h:189:19 */ +type Timer_t = X__timer_t /* /usr/include/sys/types.h:188:19 */ -type Off_t = X__off_t /* /usr/include/sys/types.h:194:18 */ +type Off_t = X__off_t /* /usr/include/sys/types.h:193:18 */ // Major, minor numbers, dev_t's. @@ -7978,13 +7989,13 @@ type Max_align_t = struct { // 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 +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 @@ -7995,7 +8006,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 @@ -8018,12 +8029,12 @@ type TRowcnt = U32 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14242:14 */ // Examples: // // 0.5 -> -10 0.1 -> -33 0.0625 -> -40 -type LogEst = int16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14268:20 */ +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. @@ -8037,7 +8048,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. @@ -8046,7 +8057,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. // @@ -8125,7 +8136,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. // @@ -8188,21 +8199,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 @@ -8212,9 +8223,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 @@ -8222,9 +8233,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 */ @@ -8236,9 +8247,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 @@ -8247,9 +8258,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 @@ -8258,9 +8269,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 @@ -8268,9 +8279,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 @@ -8280,9 +8291,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 @@ -8295,9 +8306,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 @@ -8312,34 +8323,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 @@ -8356,17 +8370,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 @@ -8379,19 +8393,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 @@ -8420,9 +8442,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 @@ -8430,9 +8452,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 @@ -8443,9 +8465,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 @@ -8462,12 +8484,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 @@ -8476,9 +8498,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 @@ -8489,9 +8511,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-3390200/sqlite3.c:14641:28 */ +type OnOrUsing1 = struct { + FpOn uintptr + FpUsing uintptr +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14642:9 */ -type NameContext = NameContext1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:14599:28 */ +type OnOrUsing = OnOrUsing1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:14642:26 */ type Parse1 = struct { Fdb uintptr FzErrMsg uintptr @@ -8507,7 +8535,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 @@ -8571,16 +8600,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 @@ -8597,23 +8626,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 @@ -8623,9 +8652,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 @@ -8636,17 +8665,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 @@ -8669,16 +8698,16 @@ 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 { 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 @@ -8689,9 +8718,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 @@ -8706,26 +8735,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 @@ -8752,26 +8780,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 @@ -8785,9 +8813,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 @@ -8795,9 +8823,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 @@ -8813,22 +8841,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 @@ -8844,9 +8874,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 @@ -8858,18 +8888,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 @@ -8879,9 +8909,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 @@ -8906,13 +8936,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 @@ -8929,7 +8960,7 @@ type Window1 = struct { FppThis uintptr FpNextWin uintptr FpFilter uintptr - FpFunc uintptr + FpWFunc uintptr FiEphCsr int32 FregAccum int32 FregResult int32 @@ -8944,24 +8975,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". @@ -8972,7 +9003,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 @@ -8999,7 +9030,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 { @@ -9054,6 +9085,8 @@ type Pager1 = struct { FvfsFlags U32 FsectorSize U32 FmxPgno Pgno + FlckPgno Pgno + F__ccgo_pad3 [4]byte FpageSize I64 FjournalSizeLimit I64 FzFilename uintptr @@ -9067,10 +9100,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 { @@ -9085,10 +9118,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. @@ -9130,7 +9163,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. @@ -9159,7 +9192,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 @@ -9182,9 +9215,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 @@ -9221,9 +9254,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 @@ -9234,9 +9267,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 ***************** @@ -9269,16 +9302,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 @@ -9299,10 +9330,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 @@ -9314,7 +9345,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 ***************** @@ -9340,11 +9371,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 @@ -9354,9 +9385,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 @@ -9373,7 +9404,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 @@ -9382,9 +9413,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. @@ -9393,11 +9424,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. @@ -9462,7 +9493,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 @@ -9478,12 +9509,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() @@ -9500,7 +9531,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. // @@ -9559,7 +9590,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. @@ -9580,7 +9611,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. @@ -9600,7 +9631,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 @@ -9610,14 +9641,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 @@ -9666,21 +9696,24 @@ type YnVar = I16 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:17979:13 */ // 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 @@ -9698,13 +9731,16 @@ type ExprList_item = struct { // // 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. @@ -9717,7 +9753,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 @@ -9782,7 +9818,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: @@ -9805,7 +9841,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: @@ -9827,7 +9863,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: @@ -9853,7 +9889,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: @@ -9877,7 +9913,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: @@ -9901,9 +9937,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: @@ -9927,7 +9963,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 ************************************** @@ -10056,9 +10092,9 @@ var sqlite3azCompileOpt = [51]uintptr{ ts + 1023, ts + 1037, ts + 1050, -} /* 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))) } @@ -10125,10 +10161,10 @@ 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: @@ -10192,7 +10228,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 @@ -10251,12 +10287,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 @@ -10274,21 +10310,21 @@ 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 + 1063)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:21966:27 */ +var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1063)) /* 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. @@ -10304,7 +10340,7 @@ var Xsqlite3StrBINARY = *(*[7]int8)(unsafe.Pointer(ts + 1063)) /* testdata/sqlit // 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 */ +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), @@ -10312,7 +10348,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), @@ -10320,7 +10356,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 + 1070, ts + 1074, @@ -10328,7 +10364,7 @@ var Xsqlite3StdType = [6]uintptr{ ts + 1083, ts + 1091, ts + 1096, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:22001:27 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:22146:27 */ //************* End of global.c ********************************************* //************* Begin file status.c ***************************************** @@ -10373,10 +10409,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 { @@ -10399,10 +10435,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 { @@ -10411,10 +10447,10 @@ 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 @@ -10433,7 +10469,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 @@ -10456,7 +10492,7 @@ 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 @@ -10468,7 +10504,9 @@ type VdbeCursor1 = struct { // * 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 */ +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. @@ -10510,7 +10548,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. @@ -10533,7 +10573,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 @@ -10543,11 +10583,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. @@ -10559,13 +10599,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 @@ -10576,7 +10616,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 @@ -10584,7 +10624,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 @@ -10599,7 +10639,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 @@ -10611,20 +10651,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. @@ -10639,7 +10679,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, @@ -10649,7 +10689,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)) } @@ -10663,7 +10703,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)) { @@ -10671,14 +10711,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) @@ -10689,12 +10729,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) @@ -10712,7 +10752,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) @@ -10728,7 +10768,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 @@ -10738,7 +10778,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) @@ -10750,7 +10790,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) @@ -10879,8 +10919,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) @@ -11068,7 +11107,7 @@ func Xsqlite3_db_status(tls *libc.TLS, db uintptr, op int32, pCurrent uintptr, p // Written by Todd C. Miller, September 9, 2016 // Public domain. -// $OpenBSD: _types.h,v 1.9 2014/08/22 23:05:15 krw Exp $ +// $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $ // - // Copyright (c) 1990, 1993 @@ -11190,14 +11229,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. @@ -11224,7 +11263,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 @@ -11281,7 +11320,7 @@ 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: @@ -11297,7 +11336,7 @@ var aMx = [6]U16{U16(12), U16(14), U16(24), U16(31), U16(59), U16(9999)} /* test // 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) @@ -11371,7 +11410,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) @@ -11424,7 +11463,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) } @@ -11433,7 +11472,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 @@ -11489,7 +11528,7 @@ func computeJD(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-33805 // 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) @@ -11540,7 +11579,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) @@ -11555,7 +11594,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 { @@ -11578,7 +11617,7 @@ func setRawDateNumber(tls *libc.TLS, p uintptr, r float64) { /* testdata/sqlite- // (":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) @@ -11607,12 +11646,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 @@ -11657,7 +11696,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 @@ -11676,13 +11715,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) @@ -11712,7 +11751,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) @@ -11737,7 +11776,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(112) defer tls.Free(112) @@ -11805,7 +11844,7 @@ var aXformType = [6]struct { {FnName: U8(3), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1181 /* "day\x00\x00\x00" */)), FrLimit: 5373485.0, FrXform: 86400.0}, {FnName: U8(5), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1188 /* "month\x00" */)), FrLimit: 176546.0, FrXform: 2592000.0}, {FnName: U8(4), FzName: *(*[7]int8)(unsafe.Pointer(ts + 1195 /* "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: @@ -11829,7 +11868,7 @@ var aXformType = [6]struct { // 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) @@ -12155,7 +12194,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 @@ -12196,7 +12235,7 @@ func isDate(tls *libc.TLS, context uintptr, argc int32, argv uintptr, p uintptr) // 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) @@ -12212,7 +12251,7 @@ func juliandayFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { / // // 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) @@ -12227,7 +12266,7 @@ func unixepochFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { / // 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) @@ -12276,7 +12315,7 @@ func datetimeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* // 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) @@ -12304,7 +12343,7 @@ func timeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* tes // 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) @@ -12356,7 +12395,7 @@ func dateFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* tes // %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: */ +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) @@ -12500,7 +12539,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)) @@ -12509,7 +12548,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)) @@ -12518,7 +12557,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)) @@ -12527,7 +12566,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{})))) } @@ -12540,7 +12579,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 + 1327}, {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1336}, {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1349}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1367}} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24401:18 */ + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 1367}} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24595:18 */ //************* End of date.c *********************************************** //************* Begin file os.c ********************************************* @@ -12592,7 +12631,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 @@ -12601,27 +12640,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 { @@ -12631,27 +12670,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 @@ -12664,7 +12703,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 } @@ -12673,7 +12712,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 @@ -12681,7 +12720,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 { @@ -12693,7 +12732,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 } @@ -12702,23 +12741,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 @@ -12726,18 +12765,18 @@ func Xsqlite3OsShmMap(tls *libc.TLS, id uintptr, iPage int32, pgsz int32, bExten } // No-op stubs to use when memory-mapped I/O is disabled -func Xsqlite3OsFetch(tls *libc.TLS, id uintptr, iOff I64, iAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24622:20: */ +func Xsqlite3OsFetch(tls *libc.TLS, id uintptr, iOff I64, iAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24816:20: */ *(*uintptr)(unsafe.Pointer(pp)) = uintptr(0) return SQLITE_OK } -func Xsqlite3OsUnfetch(tls *libc.TLS, id uintptr, iOff I64, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:24626:20: */ +func Xsqlite3OsUnfetch(tls *libc.TLS, id uintptr, iOff I64, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:24820:20: */ return SQLITE_OK } // 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 @@ -12751,7 +12790,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 { @@ -12761,14 +12800,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 { @@ -12776,7 +12815,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 { @@ -12784,25 +12823,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))) { @@ -12819,13 +12858,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 @@ -12834,7 +12873,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) @@ -12859,7 +12898,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)) @@ -12879,7 +12918,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) @@ -12889,7 +12928,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 @@ -12899,11 +12938,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) @@ -12925,7 +12964,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 @@ -12945,7 +12984,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 { @@ -12968,7 +13007,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 { @@ -13013,7 +13052,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 ****************************************** @@ -13044,8 +13083,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, @@ -13055,7 +13094,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 @@ -13064,14 +13103,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) @@ -13169,7 +13208,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) @@ -13192,7 +13231,7 @@ 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: */ var p uintptr = pPrior p -= 8 @@ -13201,7 +13240,7 @@ func sqlite3MemFree(tls *libc.TLS, pPrior uintptr) { /* testdata/sqlite-amalgama // 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: */ var p uintptr p = pPrior @@ -13217,7 +13256,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) @@ -13239,18 +13278,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 } @@ -13259,7 +13298,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) @@ -13274,7 +13313,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 ******************************************* @@ -13408,7 +13447,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 @@ -13442,7 +13481,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) @@ -13452,7 +13491,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) } @@ -13465,7 +13504,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) } @@ -13476,7 +13515,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) @@ -13485,7 +13524,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) @@ -13494,7 +13533,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 { @@ -13509,7 +13548,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) @@ -13548,40 +13587,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)) } @@ -13594,11 +13633,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) } @@ -13661,7 +13700,7 @@ func Xsqlite3DefaultMutex(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamati // 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) } @@ -13674,22 +13713,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 @@ -13705,7 +13744,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 @@ -13733,7 +13772,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 } @@ -13750,7 +13789,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 { @@ -13769,7 +13808,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) @@ -13792,12 +13831,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 *(*int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&mem0)) + 24)) } // 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) } @@ -13805,7 +13844,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) @@ -13820,7 +13859,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) @@ -13833,7 +13872,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 } @@ -13844,7 +13883,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 @@ -13891,7 +13930,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) @@ -13920,7 +13959,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) } @@ -13930,7 +13969,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) } @@ -13938,27 +13977,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) { @@ -13977,7 +14016,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 { @@ -13988,7 +14027,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 @@ -14006,14 +14045,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 { @@ -14039,7 +14078,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) @@ -14047,7 +14086,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 @@ -14108,7 +14147,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) } @@ -14118,7 +14157,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) } @@ -14126,7 +14165,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, Size_t(n)) @@ -14136,7 +14175,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) @@ -14148,7 +14187,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) @@ -14179,7 +14218,7 @@ func dbMallocRawFinish(tls *libc.TLS, db uintptr, n U64) uintptr { /* testdata/s // // 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) @@ -14189,7 +14228,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) { @@ -14227,7 +14266,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) @@ -14247,7 +14286,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 { @@ -14271,7 +14310,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) { @@ -14285,7 +14324,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) { @@ -14299,7 +14338,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 { @@ -14317,7 +14356,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++ @@ -14330,7 +14369,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 @@ -14347,7 +14386,7 @@ func Xsqlite3SetString(tls *libc.TLS, pz uintptr, db uintptr, zNew uintptr) { /* // // 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 { @@ -14368,7 +14407,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) *(*int32)(unsafe.Pointer(db + 432)) = 0 @@ -14384,7 +14423,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) @@ -14403,7 +14442,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(). @@ -14432,7 +14471,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 @@ -14443,18 +14482,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 + 1468)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29498:19 */ -var aPrefix = *(*[7]int8)(unsafe.Pointer(ts + 1501)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29499:19 */ +var aDigits = *(*[33]int8)(unsafe.Pointer(ts + 1468)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:29697:19 */ +var aPrefix = *(*[7]int8)(unsafe.Pointer(ts + 1501)) /* 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)}, @@ -14481,7 +14520,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: // @@ -14492,7 +14531,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. @@ -14507,7 +14546,7 @@ var arRound = [10]float64{ // 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 { @@ -14522,7 +14561,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 { @@ -14534,21 +14573,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) } @@ -14562,7 +14601,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) @@ -14584,9 +14623,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 @@ -14606,7 +14645,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 @@ -14614,13 +14653,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 @@ -14633,9 +14672,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 @@ -14648,12 +14687,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 @@ -14661,6 +14700,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) @@ -15110,7 +15150,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) @@ -15232,10 +15272,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) { @@ -15250,10 +15290,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: @@ -15281,21 +15321,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 + 1510 /* "NaN" */ @@ -15303,12 +15343,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 @@ -15317,7 +15357,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 @@ -15326,7 +15366,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 @@ -15334,21 +15374,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: @@ -15356,26 +15396,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+1514, 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+1514, 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: ; @@ -15430,7 +15470,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 @@ -15456,7 +15496,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-- @@ -15495,7 +15535,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: ; @@ -15604,8 +15644,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: @@ -15617,7 +15657,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 } @@ -15625,7 +15665,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: ; @@ -15633,7 +15673,7 @@ __183: ; goto __182 __181: - *(*int8)(unsafe.Pointer(bp + 8)) = int8(0) + *(*int8)(unsafe.Pointer(bp + 16)) = int8(0) __182: ; goto __180 @@ -15642,31 +15682,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: ; @@ -15691,13 +15731,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: @@ -15854,10 +15894,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)) { @@ -15870,7 +15910,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++ @@ -15888,11 +15928,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 } @@ -15901,27 +15941,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 @@ -15934,11 +15974,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: @@ -16011,11 +16051,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+1533, libc.VaList(bp, (*Select)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pItem)).FpSelect)).FselId)) + Xsqlite3_str_appendf(tls, pAccum, ts+1533, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId)) + goto __251 __250: + Xsqlite3_str_appendf(tls, pAccum, ts+1543, libc.VaList(bp+8, (*Select)(unsafe.Pointer(pSel)).FselId)) +__251: ; __249: ; @@ -16040,33 +16085,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: @@ -16077,7 +16122,7 @@ __5: // End for loop over the format string } -var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1545)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:29904:29 */ +var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1557)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:30103:29 */ // End of function @@ -16085,7 +16130,7 @@ var zOrd = *(*[9]int8)(unsafe.Pointer(ts + 1545)) /* 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 @@ -16112,8 +16157,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) { @@ -16127,7 +16173,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 { @@ -16181,7 +16227,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 @@ -16197,7 +16243,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)) @@ -16207,7 +16253,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) @@ -16219,14 +16265,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))) @@ -16240,7 +16286,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) { @@ -16252,14 +16298,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+1518, 0, uintptr(0)) Xsqlite3_str_reset(tls, p) @@ -16270,10 +16314,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) @@ -16285,7 +16329,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) } @@ -16293,7 +16337,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) } @@ -16301,7 +16345,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) } @@ -16310,7 +16354,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)) @@ -16332,7 +16376,7 @@ func Xsqlite3_str_reset(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamat // 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: */ +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) @@ -16343,7 +16387,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, @@ -16361,7 +16405,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) @@ -16383,7 +16427,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 @@ -16395,7 +16439,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) @@ -16415,7 +16459,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 @@ -16439,7 +16483,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) @@ -16454,7 +16498,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 @@ -16476,7 +16520,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) @@ -16494,7 +16538,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 { @@ -16506,7 +16550,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 @@ -16561,7 +16605,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 *************************************** @@ -16605,10 +16649,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) @@ -16687,16 +16731,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)), @@ -16704,7 +16748,7 @@ func Xsqlite3PrngRestoreState(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3 } // Create a new thread -func Xsqlite3ThreadCreate(tls *libc.TLS, ppThread uintptr, xTask uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32000:20: */ +func Xsqlite3ThreadCreate(tls *libc.TLS, ppThread uintptr, xTask uintptr, pIn uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32680:20: */ var p uintptr *(*uintptr)(unsafe.Pointer(ppThread)) = uintptr(0) @@ -16726,7 +16770,7 @@ func Xsqlite3ThreadCreate(tls *libc.TLS, ppThread uintptr, xTask uintptr, pIn ui } // Get the results of the thread -func Xsqlite3ThreadJoin(tls *libc.TLS, p uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:32024:20: */ +func Xsqlite3ThreadJoin(tls *libc.TLS, p uintptr, ppOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:32704:20: */ if p == uintptr(0) { return SQLITE_NOMEM @@ -16795,7 +16839,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. // @@ -16822,7 +16866,7 @@ var sqlite3Utf8Trans1 = [64]uint8{ // * 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. @@ -16849,7 +16893,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 @@ -16901,7 +16945,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: @@ -17174,7 +17218,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) @@ -17192,11 +17236,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 } } @@ -17208,7 +17252,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 @@ -17240,7 +17284,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) @@ -17261,7 +17305,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 @@ -17302,7 +17346,7 @@ type Float_t = X__float_t /* /usr/include/math.h:39:19 */ // 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) @@ -17314,7 +17358,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 @@ -17334,7 +17378,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 } @@ -17346,7 +17390,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 { @@ -17361,7 +17405,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) } @@ -17371,7 +17415,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 { @@ -17383,7 +17427,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 @@ -17394,7 +17438,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 } @@ -17414,7 +17458,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) @@ -17427,9 +17471,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}))) } } @@ -17441,7 +17483,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 @@ -17472,7 +17514,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 @@ -17497,7 +17539,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 @@ -17529,7 +17571,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))))) == '"' { @@ -17549,7 +17591,7 @@ func Xsqlite3DequoteExpr(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgama // 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 @@ -17567,7 +17609,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)) } @@ -17582,7 +17624,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 @@ -17594,7 +17636,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 @@ -17620,7 +17662,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) { @@ -17644,7 +17686,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) @@ -17660,7 +17702,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 x float64 = 10.0 var r float64 = 1.0 for 1 != 0 { @@ -17703,7 +17745,7 @@ func sqlite3Pow10(tls *libc.TLS, E int32) float64 { /* testdata/sqlite-amalgamat // 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)) @@ -18083,7 +18125,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) @@ -18124,11 +18166,11 @@ func Xsqlite3Int64ToText(tls *libc.TLS, v I64, zOut uintptr) { /* testdata/sqlit // 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 + 1554 /* "9223372036854775..." */ + var pow63 uintptr = ts + 1566 /* "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 } @@ -18153,7 +18195,7 @@ func compare2pow63(tls *libc.TLS, zNum uintptr, incr int32) int32 { /* testdata/ // 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 @@ -18275,7 +18317,7 @@ func Xsqlite3Atoi64(tls *libc.TLS, zNum uintptr, pNum uintptr, length int32, enc // 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: */ +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) @@ -18308,7 +18350,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) @@ -18370,7 +18412,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) @@ -18383,7 +18425,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++ { @@ -18426,7 +18468,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) @@ -18472,7 +18514,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 @@ -18495,7 +18537,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 @@ -18648,7 +18690,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) @@ -18716,7 +18758,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++ { } @@ -18724,12 +18766,12 @@ 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: */ return uint32(*(*U8)(unsafe.Pointer(p)))<<24 | uint32(int32(*(*U8)(unsafe.Pointer(p + 1)))<<16) | uint32(int32(*(*U8)(unsafe.Pointer(p + 2)))<<8) | uint32(*(*U8)(unsafe.Pointer(p + 3))) } -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: */ *(*uint8)(unsafe.Pointer(p)) = U8(v >> 24) *(*uint8)(unsafe.Pointer(p + 1)) = U8(v >> 16) *(*uint8)(unsafe.Pointer(p + 2)) = U8(v >> 8) @@ -18739,7 +18781,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) @@ -18749,7 +18791,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 @@ -18767,12 +18809,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+1573, + ts+1585, libc.VaList(bp, zType)) } @@ -18788,7 +18830,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+1519) @@ -18798,7 +18840,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+1618) + logBadConnection(tls, ts+1630) } return 0 } else { @@ -18807,12 +18849,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+1627) + logBadConnection(tls, ts+1639) return 0 } else { return 1 @@ -18824,7 +18866,7 @@ 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: */ var iA I64 = *(*I64)(unsafe.Pointer(pA)) if iB >= int64(0) { @@ -18842,7 +18884,7 @@ func Xsqlite3AddInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sql return 0 } -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: */ if iB == int64(-1)-(int64(0xffffffff)|I64(int64(0x7fffffff))<<32) { @@ -18857,7 +18899,7 @@ func Xsqlite3SubInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sql return int32(0) } -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: */ var iA I64 = *(*I64)(unsafe.Pointer(pA)) if iB > int64(0) { if iA > (int64(0xffffffff)|I64(int64(0x7fffffff))<<32)/iB { @@ -18889,7 +18931,7 @@ func Xsqlite3MulInt64(tls *libc.TLS, pA uintptr, iB I64) int32 { /* testdata/sql // 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 } @@ -18903,7 +18945,7 @@ func Xsqlite3AbsInt32(tls *libc.TLS, x int32) int32 { /* testdata/sqlite-amalgam // 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 @@ -18934,11 +18976,11 @@ var x = [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) { @@ -18961,11 +19003,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 @@ -18986,7 +19028,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) @@ -19038,7 +19080,7 @@ func Xsqlite3LogEstToInt(tls *libc.TLS, x LogEst) U64 { /* testdata/sqlite-amalg // 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 @@ -19077,7 +19119,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) { @@ -19096,7 +19138,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) { @@ -19135,7 +19177,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) @@ -19146,7 +19188,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 @@ -19163,7 +19205,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 @@ -19178,7 +19220,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 { @@ -19215,7 +19257,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 @@ -19259,7 +19301,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 @@ -19288,11 +19330,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 @@ -19321,7 +19363,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 } @@ -19339,7 +19381,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) @@ -19388,197 +19430,199 @@ func Xsqlite3HashInsert(tls *libc.TLS, pH uintptr, pKey uintptr, data uintptr) u //************* 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 + 1635, - ts + 1645, - ts + 1656, +var azName = [187]uintptr{ + ts + 1647, + ts + 1657, ts + 1668, - ts + 1679, - ts + 1684, - ts + 1689, - ts + 1700, - ts + 1712, - ts + 1719, - ts + 1727, - ts + 1735, - ts + 1740, - ts + 1746, - ts + 1760, - ts + 1766, - ts + 1776, - ts + 1781, + ts + 1680, + ts + 1691, + ts + 1703, + ts + 1710, + ts + 1718, + ts + 1726, + ts + 1731, + ts + 1737, + ts + 1751, + ts + 1757, + ts + 1767, + ts + 1772, + ts + 1777, + ts + 1780, ts + 1786, - ts + 1789, - ts + 1793, ts + 1799, - ts + 1812, - ts + 1822, - ts + 1829, - ts + 1836, - ts + 1843, - ts + 1850, + ts + 1809, + ts + 1813, + ts + 1820, + ts + 1827, + ts + 1834, + ts + 1841, + ts + 1851, ts + 1860, - ts + 1869, + ts + 1871, ts + 1880, - ts + 1889, - ts + 1895, - ts + 1905, - ts + 1915, - ts + 1920, - ts + 1930, - ts + 1941, - ts + 1946, - ts + 1953, - ts + 1959, + ts + 1886, + ts + 1896, + ts + 1906, + ts + 1911, + ts + 1921, + ts + 1932, + ts + 1937, + ts + 1944, + ts + 1955, + ts + 1960, ts + 1965, ts + 1971, ts + 1977, - ts + 1980, - ts + 1984, - ts + 1995, - ts + 2006, - ts + 2014, - ts + 2023, - ts + 2029, - ts + 2036, - ts + 2044, - ts + 2047, - ts + 2050, - ts + 2053, + ts + 1983, + ts + 1989, + ts + 1992, + ts + 1996, + ts + 2007, + ts + 2018, + ts + 2026, + ts + 2035, + ts + 2041, + ts + 2048, ts + 2056, ts + 2059, ts + 2062, - ts + 2069, - ts + 2079, - ts + 2092, - ts + 2103, - ts + 2109, - ts + 2116, + ts + 2065, + ts + 2068, + ts + 2071, + ts + 2074, + ts + 2081, + ts + 2091, + ts + 2104, + ts + 2115, ts + 2121, - ts + 2130, - ts + 2139, - ts + 2146, - ts + 2159, - ts + 2170, - ts + 2175, - ts + 2183, - ts + 2189, - ts + 2196, + ts + 2128, + ts + 2133, + ts + 2142, + ts + 2151, + ts + 2158, + ts + 2171, + ts + 2182, + ts + 2187, + ts + 2195, ts + 2201, - ts + 2210, - ts + 2215, - ts + 2224, - ts + 2229, + ts + 2208, + ts + 2220, + ts + 2225, ts + 2234, - ts + 2240, + ts + 2239, ts + 2248, - ts + 2256, - ts + 2266, - ts + 2274, - ts + 2281, - ts + 2294, - ts + 2299, - ts + 2311, - ts + 2319, - ts + 2326, - ts + 2337, - ts + 2344, - ts + 2351, + ts + 2253, + ts + 2258, + ts + 2264, + ts + 2272, + ts + 2280, + ts + 2290, + ts + 2298, + ts + 2305, + ts + 2318, + ts + 2323, + ts + 2335, + ts + 2343, + ts + 2350, ts + 2361, - ts + 2370, - ts + 2381, - ts + 2387, - ts + 2398, - ts + 2408, - ts + 2418, - ts + 2427, - ts + 2434, - ts + 2440, - ts + 2450, - ts + 2461, + ts + 2368, + ts + 2375, + ts + 2385, + ts + 2394, + ts + 2405, + ts + 2411, + ts + 2422, + ts + 2432, + ts + 2442, + ts + 2449, + ts + 2455, ts + 2465, - ts + 2474, - ts + 2483, - ts + 2490, - ts + 2500, - ts + 2507, - ts + 2517, - ts + 2525, - ts + 2532, - ts + 2546, - ts + 2560, - ts + 2568, - ts + 2579, + ts + 2476, + ts + 2480, + ts + 2489, + ts + 2498, + ts + 2505, + ts + 2515, + ts + 2522, + ts + 2531, + ts + 2541, + ts + 2548, + ts + 2556, + ts + 2570, + ts + 2578, ts + 2592, ts + 2603, - ts + 2609, - ts + 2621, - ts + 2630, - ts + 2638, - ts + 2647, - ts + 2656, - ts + 2663, + ts + 2616, + ts + 2627, + ts + 2633, + ts + 2645, + ts + 2654, + ts + 2662, ts + 2671, - ts + 2678, - ts + 2689, - ts + 2703, - ts + 2714, - ts + 2722, - ts + 2728, - ts + 2736, - ts + 2744, - ts + 2754, - ts + 2767, - ts + 2777, - ts + 2790, - ts + 2799, - ts + 2810, - ts + 2818, - ts + 2824, - ts + 2836, + ts + 2680, + ts + 2687, + ts + 2695, + ts + 2702, + ts + 2713, + ts + 2727, + ts + 2738, + ts + 2746, + ts + 2752, + ts + 2760, + ts + 2768, + ts + 2778, + ts + 2791, + ts + 2801, + ts + 2814, + ts + 2823, + ts + 2834, + ts + 2842, ts + 2848, - ts + 2856, - ts + 2868, - ts + 2881, - ts + 2891, - ts + 2901, - ts + 2913, - ts + 2918, + ts + 2860, + ts + 2872, + ts + 2880, + ts + 2892, + ts + 2905, + ts + 2915, + ts + 2925, ts + 2930, - ts + 2940, - ts + 2946, - ts + 2956, - ts + 2963, - ts + 2975, - ts + 2986, - ts + 2994, - ts + 3003, - ts + 3012, - ts + 3021, - ts + 3028, - ts + 3039, + ts + 2942, + ts + 2954, + ts + 2964, + ts + 2970, + ts + 2980, + ts + 2987, + ts + 2999, + ts + 3010, + ts + 3018, + ts + 3027, + ts + 3036, + ts + 3045, ts + 3052, - ts + 3062, - ts + 3069, - ts + 3077, + ts + 3063, + ts + 3076, ts + 3086, - ts + 3092, - ts + 3100, - ts + 3108, + ts + 3093, + ts + 3101, + ts + 3110, ts + 3116, - ts + 3126, - ts + 3135, - ts + 3145, - ts + 3151, - ts + 3162, - ts + 3173, - ts + 3178, + ts + 3124, + ts + 3132, + ts + 3140, + ts + 3150, + ts + 3159, + ts + 3170, + ts + 3180, ts + 3186, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34591:20 */ + ts + 3197, + ts + 3208, + ts + 3213, + ts + 3221, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35271:20 */ //************* End of opcodes.c ******************************************** //************* Begin file os_unix.c **************************************** @@ -19646,7 +19690,7 @@ var azName = [185]uintptr{ // Use pread() and pwrite() if they are available // standard include files. -// $OpenBSD: types.h,v 1.48 2019/02/09 04:54:11 guenther Exp $ +// $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $ // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $ // - @@ -19684,7 +19728,7 @@ var azName = [185]uintptr{ // // @(#)types.h 8.4 (Berkeley) 1/21/94 -// $OpenBSD: stat.h,v 1.28 2015/04/04 18:06:08 jca Exp $ +// $OpenBSD: stat.h,v 1.29 2022/01/11 23:59:55 jsg Exp $ // $NetBSD: stat.h,v 1.20 1996/05/16 22:17:49 cgd Exp $ // - @@ -19722,7 +19766,7 @@ var azName = [185]uintptr{ // // @(#)stat.h 8.9 (Berkeley) 8/17/94 -// $OpenBSD: time.h,v 1.61 2021/06/19 13:49:39 cheloha Exp $ +// $OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $ // $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $ // Copyright (c) 1982, 1986, 1993 @@ -19786,7 +19830,7 @@ var azName = [185]uintptr{ // // @(#)select.h 8.2 (Berkeley) 1/4/94 -// $OpenBSD: types.h,v 1.48 2019/02/09 04:54:11 guenther Exp $ +// $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $ // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $ // - @@ -19984,7 +20028,7 @@ type stat = struct { // // @(#)cdefs.h 8.7 (Berkeley) 1/21/94 -// $OpenBSD: types.h,v 1.48 2019/02/09 04:54:11 guenther Exp $ +// $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $ // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $ // - @@ -20241,7 +20285,7 @@ type tstamps = struct { // Written by Todd C. Miller, September 9, 2016 // Public domain. -// $OpenBSD: types.h,v 1.48 2019/02/09 04:54:11 guenther Exp $ +// $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $ // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $ // - @@ -20431,7 +20475,7 @@ type unixShm = struct { FsharedMask U16 FexclMask U16 F__ccgo_pad1 [2]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35662:9 */ // Try to determine if gethostuuid() is available based on standard // macros. This might sometimes compute the wrong value for some @@ -20464,7 +20508,7 @@ type unixShm = struct { // a normal expected return code of SQLITE_BUSY or SQLITE_OK // Forward references -type UnixShm = unixShm /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:24 */ // Connection shared memory +type UnixShm = unixShm /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35662:24 */ // Connection shared memory type unixShmNode = struct { FpInode uintptr FpShmMutex uintptr @@ -20480,10 +20524,10 @@ type unixShmNode = struct { F__ccgo_pad2 [4]byte FpFirst uintptr FaLock [8]int32 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35662:9 */ // Connection shared memory -type UnixShmNode = unixShmNode /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34981:28 */ // Shared memory instance +type UnixShmNode = unixShmNode /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35663:28 */ // Shared memory instance type unixInodeInfo = struct { FfileId struct { Fdev Dev_t @@ -20502,18 +20546,18 @@ type unixInodeInfo = struct { FpShmNode uintptr FpNext uintptr FpPrev uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35662:9 */ // Shared memory instance -type UnixInodeInfo = unixInodeInfo /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34982:30 */ // An i-node +type UnixInodeInfo = unixInodeInfo /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35664:30 */ // An i-node type UnixUnusedFd1 = struct { Ffd int32 Fflags int32 FpNext uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35662:9 */ // An i-node -type UnixUnusedFd = UnixUnusedFd1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34983:29 */ +type UnixUnusedFd = UnixUnusedFd1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35665:29 */ // The unixFile structure is subclass of sqlite3_file specific to the unix // VFS implementations. @@ -20535,16 +20579,16 @@ type unixFile = struct { FsectorSize int32 FdeviceCharacteristics int32 F__ccgo_pad3 [4]byte -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35001:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35683:9 */ // The unixFile structure is subclass of sqlite3_file specific to the unix // VFS implementations. -type UnixFile = unixFile /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35001:25 */ +type UnixFile = unixFile /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35683:25 */ // This variable holds the process id (pid) from when the xRandomness() // method was called. If xOpen() is called from a different process id, // indicating that a fork() has occurred, the PRNG will be reset. -var randomnessPid Pid_t = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35062:14 */ +var randomnessPid Pid_t = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35744:14 */ // Allowed values for the unixFile.ctrlFlags bitmask: @@ -20567,7 +20611,7 @@ var randomnessPid Pid_t = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35 // // The safest way to deal with the problem is to always use this wrapper // which always has the same well-defined interface. -func posixOpen(tls *libc.TLS, zFile uintptr, flags int32, mode int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35153:12: */ +func posixOpen(tls *libc.TLS, zFile uintptr, flags int32, mode int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35835:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -20582,82 +20626,82 @@ type unix_syscall = struct { FzName uintptr FpCurrent Sqlite3_syscall_ptr FpDefault Sqlite3_syscall_ptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35167:8 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35849:8 */ // Many system calls are accessed through pointer-to-functions so that // they may be overridden at runtime to facilitate fault injection during // testing and sandboxing. The following array holds the names and pointers // to all overrideable system calls. var aSyscall = [29]unix_syscall{ - {FzName: ts + 3196, FpCurrent: 0}, + {FzName: ts + 3231, FpCurrent: 0}, - {FzName: ts + 3201, FpCurrent: 0}, + {FzName: ts + 3236, FpCurrent: 0}, - {FzName: ts + 3207, FpCurrent: 0}, + {FzName: ts + 3242, FpCurrent: 0}, - {FzName: ts + 3214, FpCurrent: 0}, + {FzName: ts + 3249, FpCurrent: 0}, - {FzName: ts + 3221, FpCurrent: 0}, + {FzName: ts + 3256, FpCurrent: 0}, // The DJGPP compiler environment looks mostly like Unix, but it // lacks the fcntl() system call. So redefine fcntl() to be something // that always succeeds. This means that locking does not occur under // DJGPP. But it is DOS - what did you expect? - {FzName: ts + 3226, FpCurrent: 0}, + {FzName: ts + 3261, FpCurrent: 0}, - {FzName: ts + 3232, FpCurrent: 0}, + {FzName: ts + 3267, FpCurrent: 0}, - {FzName: ts + 3242, FpCurrent: 0}, + {FzName: ts + 3277, FpCurrent: 0}, - {FzName: ts + 3248, FpCurrent: 0}, + {FzName: ts + 3283, FpCurrent: 0}, - {FzName: ts + 3253}, + {FzName: ts + 3288}, - {FzName: ts + 3259}, + {FzName: ts + 3294}, - {FzName: ts + 3267, FpCurrent: 0}, + {FzName: ts + 3302, FpCurrent: 0}, - {FzName: ts + 3273}, + {FzName: ts + 3308}, - {FzName: ts + 3280}, + {FzName: ts + 3315}, - {FzName: ts + 3289, FpCurrent: 0}, + {FzName: ts + 3324, FpCurrent: 0}, - {FzName: ts + 3296}, + {FzName: ts + 3331}, - {FzName: ts + 3306, FpCurrent: 0}, + {FzName: ts + 3341, FpCurrent: 0}, - {FzName: ts + 3313, FpCurrent: 0}, + {FzName: ts + 3348, FpCurrent: 0}, - {FzName: ts + 3327, FpCurrent: 0}, + {FzName: ts + 3362, FpCurrent: 0}, - {FzName: ts + 3333, FpCurrent: 0}, + {FzName: ts + 3368, FpCurrent: 0}, - {FzName: ts + 3339, FpCurrent: 0}, + {FzName: ts + 3374, FpCurrent: 0}, - {FzName: ts + 3346, FpCurrent: 0}, + {FzName: ts + 3381, FpCurrent: 0}, - {FzName: ts + 3354, FpCurrent: 0}, + {FzName: ts + 3389, FpCurrent: 0}, - {FzName: ts + 3359, FpCurrent: 0}, + {FzName: ts + 3394, FpCurrent: 0}, - {FzName: ts + 3366}, + {FzName: ts + 3401}, - {FzName: ts + 3373, FpCurrent: 0}, + {FzName: ts + 3408, FpCurrent: 0}, - {FzName: ts + 3385, FpCurrent: 0}, + {FzName: ts + 3420, FpCurrent: 0}, - {FzName: ts + 3394, FpCurrent: 0}, + {FzName: ts + 3429, FpCurrent: 0}, - {FzName: ts + 3400}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35171:3 */ + {FzName: ts + 3435}, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35853:3 */ // End of the overrideable system calls // On some systems, calls to fchown() will trigger a message in a security // log if they come from non-root processes. So avoid calling fchown() if // we are not running as root. -func robustFchown(tls *libc.TLS, fd int32, uid Uid_t, gid Gid_t) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35341:12: */ +func robustFchown(tls *libc.TLS, fd int32, uid Uid_t, gid Gid_t) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36023:12: */ if (*(*func(*libc.TLS) Uid_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 21*24 + 8)))(tls) != 0 { return 0 } @@ -20668,7 +20712,7 @@ func robustFchown(tls *libc.TLS, fd int32, uid Uid_t, gid Gid_t) int32 { /* test // "unix" VFSes. Return SQLITE_OK opon successfully updating the // system call pointer, or SQLITE_NOTFOUND if there is no configurable // system call named zName. -func unixSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc Sqlite3_syscall_ptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35355:12: */ +func unixSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc Sqlite3_syscall_ptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36037:12: */ var i uint32 var rc int32 = SQLITE_NOTFOUND @@ -20705,7 +20749,7 @@ func unixSetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr, pNewFunc // 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 unixGetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr) Sqlite3_syscall_ptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35398:28: */ +func unixGetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr) Sqlite3_syscall_ptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36080:28: */ var i uint32 _ = pNotUsed @@ -20721,7 +20765,7 @@ func unixGetSystemCall(tls *libc.TLS, pNotUsed uintptr, zName uintptr) Sqlite3_s // 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 unixNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35417:19: */ +func unixNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36099:19: */ var i int32 = -1 _ = p @@ -20759,7 +20803,7 @@ func unixNextSystemCall(tls *libc.TLS, p uintptr, zName uintptr) uintptr { /* te // transaction crashes and leaves behind hot journals, then any // process that is able to write to the database will also be able to // recover the hot journals. -func robust_open(tls *libc.TLS, z uintptr, f int32, m Mode_t) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35458:12: */ +func robust_open(tls *libc.TLS, z uintptr, f int32, m Mode_t) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36140:12: */ bp := tls.Alloc(144) defer tls.Free(144) @@ -20783,9 +20827,9 @@ func robust_open(tls *libc.TLS, z uintptr, f int32, m Mode_t) int32 { /* testdat } (*(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1*24 + 8)))(tls, fd) Xsqlite3_log(tls, SQLITE_WARNING, - ts+3406, libc.VaList(bp, z, fd)) + ts+3441, libc.VaList(bp, z, fd)) fd = -1 - if (*(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8)))(tls, ts+3449, O_RDONLY, int32(m)) < 0 { + if (*(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8)))(tls, ts+3484, O_RDONLY, int32(m)) < 0 { break } } @@ -20826,14 +20870,14 @@ func robust_open(tls *libc.TLS, z uintptr, f int32, m Mode_t) int32 { /* testdat // OK: enter(unixBigLock) // OK: enter(pLockInfo) // ERROR: enter(pLockInfo), enter(unixBigLock) -var unixBigLock uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35520:22 */ +var unixBigLock uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36202:22 */ -func unixEnterMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35521:13: */ +func unixEnterMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36203:13: */ // Not a recursive mutex Xsqlite3_mutex_enter(tls, unixBigLock) } -func unixLeaveMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35525:13: */ +func unixLeaveMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36207:13: */ Xsqlite3_mutex_leave(tls, unixBigLock) } @@ -20843,7 +20887,7 @@ func unixLeaveMutex(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sql // All calls to ftruncate() within this file should be made through // this wrapper. On the Android platform, bypassing the logic below // could lead to a corrupt database. -func robust_ftruncate(tls *libc.TLS, h int32, sz Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35621:12: */ +func robust_ftruncate(tls *libc.TLS, h int32, sz Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36303:12: */ var rc int32 for __ccgo := true; __ccgo; __ccgo = rc < 0 && *(*int32)(unsafe.Pointer(libc.X__errno(tls))) == EINTR { rc = (*(*func(*libc.TLS, int32, Off_t) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 6*24 + 8)))(tls, h, sz) @@ -20859,7 +20903,7 @@ func robust_ftruncate(tls *libc.TLS, h int32, sz Sqlite3_int64) int32 { /* testd // // Errors during initialization of locks, or file system support for locks, // should handle ENOLCK, ENOTSUP, EOPNOTSUPP separately. -func sqliteErrorFromPosixError(tls *libc.TLS, posixError int32, sqliteIOErr int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35646:12: */ +func sqliteErrorFromPosixError(tls *libc.TLS, posixError int32, sqliteIOErr int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36328:12: */ switch posixError { case EACCES: @@ -20908,7 +20952,7 @@ type vxworksFileId = struct { FnRef int32 FnName int32 FzCanonicalName uintptr -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35688:1 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36370:1 */ // ************** End of Unique File ID Utility Used By VxWorks **************** // @@ -21010,12 +21054,12 @@ type unixFileId = struct { Fdev Dev_t F__ccgo_pad1 [4]byte Fino U64 -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:34980:9 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:35662:9 */ // A lists of all unixInodeInfo objects. // // Must hold unixBigLock in order to read or write this variable. -var inodeList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:35970:22 */ +var inodeList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36652:22 */ // All unixInodeInfo objects @@ -21033,7 +21077,7 @@ var inodeList uintptr = uintptr(0) /* testdata/sqlite-amalgamation-3380500/sqlit // The two subsequent arguments should be the name of the OS function that // failed (e.g. "unlink", "open") and the associated file-system path, // if any. -func unixLogErrorAtLine(tls *libc.TLS, errcode int32, zFunc uintptr, zPath uintptr, iLine int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36005:12: */ +func unixLogErrorAtLine(tls *libc.TLS, errcode int32, zFunc uintptr, zPath uintptr, iLine int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36687:12: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -21050,7 +21094,7 @@ func unixLogErrorAtLine(tls *libc.TLS, errcode int32, zFunc uintptr, zPath uintp zPath = ts + 1518 /* "" */ } Xsqlite3_log(tls, errcode, - ts+3459, + ts+3494, libc.VaList(bp, iLine, iErrno, zFunc, zPath, zErr)) return errcode @@ -21067,9 +21111,9 @@ func unixLogErrorAtLine(tls *libc.TLS, errcode int32, zFunc uintptr, zPath uintp // file descriptor might have already been reused by another thread. // So we don't even try to recover from an EINTR. Just log the error // and move on. -func robust_close(tls *libc.TLS, pFile uintptr, h int32, lineno int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36070:13: */ +func robust_close(tls *libc.TLS, pFile uintptr, h int32, lineno int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36752:13: */ if (*(*func(*libc.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 1*24 + 8)))(tls, h) != 0 { - unixLogErrorAtLine(tls, SQLITE_IOERR|int32(16)<<8, ts+3201, + unixLogErrorAtLine(tls, SQLITE_IOERR|int32(16)<<8, ts+3236, func() uintptr { if pFile != 0 { return (*UnixFile)(unsafe.Pointer(pFile)).FzPath @@ -21081,19 +21125,19 @@ func robust_close(tls *libc.TLS, pFile uintptr, h int32, lineno int32) { /* test // Set the pFile->lastErrno. Do this in a subroutine as that provides // a convenient place to set a breakpoint. -func storeLastErrno(tls *libc.TLS, pFile uintptr, error int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36081:13: */ +func storeLastErrno(tls *libc.TLS, pFile uintptr, error int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36763:13: */ (*UnixFile)(unsafe.Pointer(pFile)).FlastErrno = error } // Close all file descriptors accumuated in the unixInodeInfo->pUnused list. -func closePendingFds(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36088:13: */ +func closePendingFds(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36770:13: */ var pInode uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpInode var p uintptr var pNext uintptr for p = (*UnixInodeInfo)(unsafe.Pointer(pInode)).FpUnused; p != 0; p = pNext { pNext = (*UnixUnusedFd)(unsafe.Pointer(p)).FpNext - robust_close(tls, pFile, (*UnixUnusedFd)(unsafe.Pointer(p)).Ffd, 36095) + robust_close(tls, pFile, (*UnixUnusedFd)(unsafe.Pointer(p)).Ffd, 36777) Xsqlite3_free(tls, p) } (*UnixInodeInfo)(unsafe.Pointer(pInode)).FpUnused = uintptr(0) @@ -21103,7 +21147,7 @@ func closePendingFds(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgama // // The global mutex must be held when this routine is called, but the mutex // on the inode being deleted must NOT be held. -func releaseInodeInfo(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36107:13: */ +func releaseInodeInfo(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36789:13: */ var pInode uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpInode if pInode != 0 { @@ -21137,7 +21181,7 @@ func releaseInodeInfo(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgam // The global mutex must held when calling this routine. // // Return an appropriate error code. -func findInodeInfo(tls *libc.TLS, pFile uintptr, ppInode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36144:12: */ +func findInodeInfo(tls *libc.TLS, pFile uintptr, ppInode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36826:12: */ bp := tls.Alloc(144) defer tls.Free(144) @@ -21196,7 +21240,7 @@ func findInodeInfo(tls *libc.TLS, pFile uintptr, ppInode uintptr) int32 { /* tes } // Return TRUE if pFile has been renamed or unlinked since it was first opened. -func fileHasMoved(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36236:12: */ +func fileHasMoved(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36918:12: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -21213,7 +21257,7 @@ func fileHasMoved(tls *libc.TLS, pFile uintptr) int32 { /* testdata/sqlite-amalg // (3) The file has not been renamed or unlinked // // Issue sqlite3_log(SQLITE_WARNING,...) messages if anything is not right. -func verifyDbFile(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36257:13: */ +func verifyDbFile(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36939:13: */ bp := tls.Alloc(160) defer tls.Free(160) @@ -21228,19 +21272,19 @@ func verifyDbFile(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamatio rc = (*(*func(*libc.TLS, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 5*24 + 8)))(tls, (*UnixFile)(unsafe.Pointer(pFile)).Fh, bp+32) if rc != 0 { - Xsqlite3_log(tls, SQLITE_WARNING, ts+3490, libc.VaList(bp, (*UnixFile)(unsafe.Pointer(pFile)).FzPath)) + Xsqlite3_log(tls, SQLITE_WARNING, ts+3525, libc.VaList(bp, (*UnixFile)(unsafe.Pointer(pFile)).FzPath)) return } if (*stat)(unsafe.Pointer(bp+32)).Fst_nlink == Nlink_t(0) { - Xsqlite3_log(tls, SQLITE_WARNING, ts+3514, libc.VaList(bp+8, (*UnixFile)(unsafe.Pointer(pFile)).FzPath)) + Xsqlite3_log(tls, SQLITE_WARNING, ts+3549, libc.VaList(bp+8, (*UnixFile)(unsafe.Pointer(pFile)).FzPath)) return } if (*stat)(unsafe.Pointer(bp+32)).Fst_nlink > Nlink_t(1) { - Xsqlite3_log(tls, SQLITE_WARNING, ts+3543, libc.VaList(bp+16, (*UnixFile)(unsafe.Pointer(pFile)).FzPath)) + Xsqlite3_log(tls, SQLITE_WARNING, ts+3578, libc.VaList(bp+16, (*UnixFile)(unsafe.Pointer(pFile)).FzPath)) return } if fileHasMoved(tls, pFile) != 0 { - Xsqlite3_log(tls, SQLITE_WARNING, ts+3570, libc.VaList(bp+24, (*UnixFile)(unsafe.Pointer(pFile)).FzPath)) + Xsqlite3_log(tls, SQLITE_WARNING, ts+3605, libc.VaList(bp+24, (*UnixFile)(unsafe.Pointer(pFile)).FzPath)) return } } @@ -21249,7 +21293,7 @@ func verifyDbFile(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamatio // file by this or any other process. If such a lock is held, set *pResOut // to a non-zero value otherwise *pResOut is set to zero. The return value // is set to SQLITE_OK unless an I/O error occurs during lock checking. -func unixCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36290:12: */ +func unixCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:36972:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -21315,7 +21359,7 @@ func unixCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { / // // Zero is returned if the call completes successfully, or -1 if a call // to fcntl() fails. In this case, errno is set appropriately (by fcntl()). -func unixFileLock(tls *libc.TLS, pFile uintptr, pLock uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36391:12: */ +func unixFileLock(tls *libc.TLS, pFile uintptr, pLock uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37073:12: */ bp := tls.Alloc(40) defer tls.Free(40) @@ -21367,7 +21411,7 @@ func unixFileLock(tls *libc.TLS, pFile uintptr, pLock uintptr) int32 { /* testda // // This routine will only increase a lock. Use the sqlite3OsUnlock() // routine to lower a locking level. -func unixLock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36441:12: */ +func unixLock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37123:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -21614,7 +21658,7 @@ end_lock: // Add the file descriptor used by file handle pFile to the corresponding // pUnused list. -func setPendingFd(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36668:13: */ +func setPendingFd(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37350:13: */ var pInode uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpInode var p uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpPreallocatedUnused @@ -21635,7 +21679,7 @@ func setPendingFd(tls *libc.TLS, pFile uintptr) { /* testdata/sqlite-amalgamatio // set to a read lock, then the other part is simply unlocked. This works // around a bug in BSD NFS lockd (also seen on MacOSX 10.3+) that fails to // remove the write lock on a region when a read lock is set. -func posixUnlock(tls *libc.TLS, id uintptr, eFileLock int32, handleNFSUnlock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36691:12: */ +func posixUnlock(tls *libc.TLS, id uintptr, eFileLock int32, handleNFSUnlock int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37373:12: */ bp := tls.Alloc(24) defer tls.Free(24) @@ -21769,7 +21813,7 @@ __12: // // If the locking level of the file descriptor is already at or below // the requested locking level, this routine is a no-op. -func unixUnlock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36851:12: */ +func unixUnlock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37533:12: */ return posixUnlock(tls, id, eFileLock, 0) } @@ -21781,10 +21825,10 @@ func unixUnlock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/ // It is *not* necessary to hold the mutex when this routine is called, // even on VxWorks. A mutex will be acquired on VxWorks by the // vxworksReleaseFileId() routine. -func closeUnixFile(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36873:12: */ +func closeUnixFile(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37555:12: */ var pFile uintptr = id if (*UnixFile)(unsafe.Pointer(pFile)).Fh >= 0 { - robust_close(tls, pFile, (*UnixFile)(unsafe.Pointer(pFile)).Fh, 36879) + robust_close(tls, pFile, (*UnixFile)(unsafe.Pointer(pFile)).Fh, 37561) (*UnixFile)(unsafe.Pointer(pFile)).Fh = -1 } @@ -21794,7 +21838,7 @@ func closeUnixFile(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgam } // Close a file. -func unixClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36908:12: */ +func unixClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37590:12: */ var rc int32 = SQLITE_OK var pFile uintptr = id var pInode uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FpInode @@ -21844,26 +21888,26 @@ func unixClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamatio // database connections are accessing the same database file at the same // time and one or more of those connections are writing. -func nolockCheckReservedLock(tls *libc.TLS, NotUsed uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36960:12: */ +func nolockCheckReservedLock(tls *libc.TLS, NotUsed uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37642:12: */ _ = NotUsed *(*int32)(unsafe.Pointer(pResOut)) = 0 return SQLITE_OK } -func nolockLock(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36965:12: */ +func nolockLock(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37647:12: */ _ = NotUsed _ = NotUsed2 return SQLITE_OK } -func nolockUnlock(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36969:12: */ +func nolockUnlock(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37651:12: */ _ = NotUsed _ = NotUsed2 return SQLITE_OK } // Close the file. -func nolockClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:36977:12: */ +func nolockClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37659:12: */ return closeUnixFile(tls, id) } @@ -21904,7 +21948,7 @@ func nolockClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamat // In dotfile locking, either a lock exists or it does not. So in this // variation of CheckReservedLock(), *pResOut is set to true if any lock // is held on the file and false if the file is unlocked. -func dotlockCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:37022:12: */ +func dotlockCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37704:12: */ var rc int32 = SQLITE_OK var reserved int32 = 0 var pFile uintptr = id @@ -21940,7 +21984,7 @@ func dotlockCheckReservedLock(tls *libc.TLS, id uintptr, pResOut uintptr) int32 // // With dotfile locking, we really only support state (4): EXCLUSIVE. // But we track the other locking levels internally. -func dotlockLock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:37063:12: */ +func dotlockLock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37745:12: */ var pFile uintptr = id var zLockFile uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FlockingContext var rc int32 = SQLITE_OK @@ -21982,7 +22026,7 @@ func dotlockLock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata // the requested locking level, this routine is a no-op. // // When the locking level reaches NO_LOCK, delete the lock file. -func dotlockUnlock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:37113:12: */ +func dotlockUnlock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37795:12: */ var pFile uintptr = id var zLockFile uintptr = (*UnixFile)(unsafe.Pointer(pFile)).FlockingContext var rc int32 @@ -22017,7 +22061,7 @@ func dotlockUnlock(tls *libc.TLS, id uintptr, eFileLock int32) int32 { /* testda } // Close a file. Make sure the lock has been released before closing. -func dotlockClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:37156:12: */ +func dotlockClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:37838:12: */ var pFile uintptr = id dotlockUnlock(tls, id, NO_LOCK) @@ -22116,7 +22160,7 @@ func dotlockClose(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgama // // To avoid stomping the errno value on a failed read the lastErrno value // is set before returning. -func seekAndRead(tls *libc.TLS, id uintptr, offset Sqlite3_int64, pBuf uintptr, cnt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38070:12: */ +func seekAndRead(tls *libc.TLS, id uintptr, offset Sqlite3_int64, pBuf uintptr, cnt int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:38752:12: */ var got int32 var prior int32 = 0 var newOffset I64 @@ -22154,7 +22198,7 @@ func seekAndRead(tls *libc.TLS, id uintptr, offset Sqlite3_int64, pBuf uintptr, // 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 unixRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38119:12: */ +func unixRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:38801:12: */ var pFile uintptr = id var got int32 @@ -22194,7 +22238,7 @@ func unixRead(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3 // pBuf to it. If an error occurs, return -1 and set *piErrno. Otherwise, // return the actual number of bytes written (which may be less than // nBuf). -func seekAndWriteFd(tls *libc.TLS, fd int32, iOff I64, pBuf uintptr, nBuf int32, piErrno uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38195:12: */ +func seekAndWriteFd(tls *libc.TLS, fd int32, iOff I64, pBuf uintptr, nBuf int32, piErrno uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:38877:12: */ var rc int32 = 0 // Value returned by system call nBuf = nBuf & 0x1ffff @@ -22220,13 +22264,13 @@ func seekAndWriteFd(tls *libc.TLS, fd int32, iOff I64, pBuf uintptr, nBuf int32, // // To avoid stomping the errno value on a failed write the lastErrno value // is set before returning. -func seekAndWrite(tls *libc.TLS, id uintptr, offset I64, pBuf uintptr, cnt int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38241:12: */ +func seekAndWrite(tls *libc.TLS, id uintptr, offset I64, pBuf uintptr, cnt int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:38923:12: */ return seekAndWriteFd(tls, (*UnixFile)(unsafe.Pointer(id)).Fh, offset, pBuf, cnt, id+32) } // Write data from a buffer into a file. Return SQLITE_OK on success // or some other error code on failure. -func unixWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38250:12: */ +func unixWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite3_int64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:38932:12: */ var pFile uintptr = id var wrote int32 = 0 @@ -22283,7 +22327,7 @@ func unixWrite(tls *libc.TLS, id uintptr, pBuf uintptr, amt int32, offset Sqlite // as far as SQLite is concerned, an fdatasync() is always adequate. // So, we always use fdatasync() if it is available, regardless of // the value of the dataOnly flag. -func full_fsync(tls *libc.TLS, fd int32, fullSync int32, dataOnly int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38385:12: */ +func full_fsync(tls *libc.TLS, fd int32, fullSync int32, dataOnly int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39067:12: */ var rc int32 // The following "ifdef/elif/else/" block has the same structure as @@ -22329,7 +22373,7 @@ func full_fsync(tls *libc.TLS, fd int32, fullSync int32, dataOnly int32) int32 { // // If SQLITE_OK is returned, the caller is responsible for closing // the file descriptor *pFd using close(). -func openDirectory(tls *libc.TLS, zFilename uintptr, pFd uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38481:12: */ +func openDirectory(tls *libc.TLS, zFilename uintptr, pFd uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39163:12: */ bp := tls.Alloc(521) defer tls.Free(521) @@ -22337,7 +22381,7 @@ func openDirectory(tls *libc.TLS, zFilename uintptr, pFd uintptr) int32 { /* tes var fd int32 = -1 // var zDirname [513]int8 at bp+8, 513 - Xsqlite3_snprintf(tls, MAX_PATHNAME, bp+8, ts+3598, libc.VaList(bp, zFilename)) + Xsqlite3_snprintf(tls, MAX_PATHNAME, bp+8, ts+3633, libc.VaList(bp, zFilename)) for ii = int32(libc.Xstrlen(tls, bp+8)); ii > 0 && int32(*(*int8)(unsafe.Pointer(bp + 8 /* &zDirname[0] */ + uintptr(ii)))) != '/'; ii-- { } if ii > 0 { @@ -22356,7 +22400,7 @@ func openDirectory(tls *libc.TLS, zFilename uintptr, pFd uintptr) int32 { /* tes if fd >= 0 { return SQLITE_OK } - return unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 38500), ts+3313, bp+8, 38500) + return unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 39182), ts+3348, bp+8, 39182) } // Make sure all writes to a particular file are committed to disk. @@ -22372,7 +22416,7 @@ func openDirectory(tls *libc.TLS, zFilename uintptr, pFd uintptr) int32 { /* tes // SQLite to access the file will not know that the journal exists (because // the directory entry for the journal was never created) and the transaction // will not roll back - possibly leading to database corruption. -func unixSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38518:12: */ +func unixSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39200:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -22391,7 +22435,7 @@ func unixSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite if rc != 0 { storeLastErrno(tls, pFile, *(*int32)(unsafe.Pointer(libc.X__errno(tls)))) - return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(4)<<8, ts+3601, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 38541) + return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(4)<<8, ts+3636, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 39223) } // Also fsync the directory containing the file if the DIRSYNC flag @@ -22403,7 +22447,7 @@ func unixSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 17*24 + 8)))(tls, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, bp) if rc == SQLITE_OK { full_fsync(tls, *(*int32)(unsafe.Pointer(bp /* dirfd */)), 0, 0) - robust_close(tls, pFile, *(*int32)(unsafe.Pointer(bp /* dirfd */)), 38555) + robust_close(tls, pFile, *(*int32)(unsafe.Pointer(bp /* dirfd */)), 39237) } else { rc = SQLITE_OK @@ -22414,7 +22458,7 @@ func unixSync(tls *libc.TLS, id uintptr, flags int32) int32 { /* testdata/sqlite } // Truncate an open file to a specified size -func unixTruncate(tls *libc.TLS, id uintptr, nByte I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38568:12: */ +func unixTruncate(tls *libc.TLS, id uintptr, nByte I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39250:12: */ var pFile uintptr = id var rc int32 @@ -22429,7 +22473,7 @@ func unixTruncate(tls *libc.TLS, id uintptr, nByte I64) int32 { /* testdata/sqli rc = robust_ftruncate(tls, (*UnixFile)(unsafe.Pointer(pFile)).Fh, nByte) if rc != 0 { storeLastErrno(tls, pFile, *(*int32)(unsafe.Pointer(libc.X__errno(tls)))) - return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, ts+3232, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 38586) + return unixLogErrorAtLine(tls, SQLITE_IOERR|int32(6)<<8, ts+3267, (*UnixFile)(unsafe.Pointer(pFile)).FzPath, 39268) } else { return SQLITE_OK @@ -22438,7 +22482,7 @@ func unixTruncate(tls *libc.TLS, id uintptr, nByte I64) int32 { /* testdata/sqli } // Determine the current size of a file in bytes -func unixFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38618:12: */ +func unixFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39300:12: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -22469,7 +22513,7 @@ func unixFileSize(tls *libc.TLS, id uintptr, pSize uintptr) int32 { /* testdata/ // file-control operation. Enlarge the database to nBytes in size // (rounded up to the next chunk-size). If the database is already // nBytes or larger, this routine is a no-op. -func fcntlSizeHint(tls *libc.TLS, pFile uintptr, nByte I64) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38656:12: */ +func fcntlSizeHint(tls *libc.TLS, pFile uintptr, nByte I64) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39338:12: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -22516,7 +22560,7 @@ func fcntlSizeHint(tls *libc.TLS, pFile uintptr, nByte I64) int32 { /* testdata/ // 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 unixModeBit(tls *libc.TLS, pFile uintptr, mask uint8, pArg uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38725:13: */ +func unixModeBit(tls *libc.TLS, pFile uintptr, mask uint8, pArg uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39407:13: */ if *(*int32)(unsafe.Pointer(pArg)) < 0 { *(*int32)(unsafe.Pointer(pArg)) = libc.Bool32(int32((*UnixFile)(unsafe.Pointer(pFile)).FctrlFlags)&int32(mask) != 0) } else if *(*int32)(unsafe.Pointer(pArg)) == 0 { @@ -22527,7 +22571,7 @@ func unixModeBit(tls *libc.TLS, pFile uintptr, mask uint8, pArg uintptr) { /* te } // Information and control of an open file handle. -func unixFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38744:12: */ +func unixFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39426:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -22575,7 +22619,7 @@ func unixFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { } case SQLITE_FCNTL_VFSNAME: { - *(*uintptr)(unsafe.Pointer(pArg)) = Xsqlite3_mprintf(tls, ts+3598, libc.VaList(bp, (*Sqlite3_vfs)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pFile)).FpVfs)).FzName)) + *(*uintptr)(unsafe.Pointer(pArg)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp, (*Sqlite3_vfs)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pFile)).FpVfs)).FzName)) return SQLITE_OK } @@ -22612,7 +22656,7 @@ func unixFileControl(tls *libc.TLS, id uintptr, op int32, pArg uintptr) int32 { // // There are two versions of this function. One for QNX and one for all // other systems. -func setDeviceCharacteristics(tls *libc.TLS, pFd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38879:13: */ +func setDeviceCharacteristics(tls *libc.TLS, pFd uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39561:13: */ if (*UnixFile)(unsafe.Pointer(pFd)).FsectorSize == 0 { @@ -22633,7 +22677,7 @@ func setDeviceCharacteristics(tls *libc.TLS, pFd uintptr) { /* testdata/sqlite-a // 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 unixSectorSize(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:38986:12: */ +func unixSectorSize(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39668:12: */ var pFd uintptr = id setDeviceCharacteristics(tls, pFd) return (*UnixFile)(unsafe.Pointer(pFd)).FsectorSize @@ -22650,7 +22694,7 @@ func unixSectorSize(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalga // of required I/O for journaling, since a lot of padding is eliminated. // Hence, while POWERSAFE_OVERWRITE is on by default, there is a file-control // available to turn it off and URI query parameter available to turn it off. -func unixDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39005:12: */ +func unixDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39687:12: */ var pFd uintptr = id setDeviceCharacteristics(tls, pFd) return (*UnixFile)(unsafe.Pointer(pFd)).FdeviceCharacteristics @@ -22660,7 +22704,7 @@ func unixDeviceCharacteristics(tls *libc.TLS, id uintptr) int32 { /* testdata/sq // // This function should not be called directly by other code in this file. // Instead, it should be called via macro osGetpagesize(). -func unixGetpagesize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39019:12: */ +func unixGetpagesize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39701:12: */ return libc.Xgetpagesize(tls) } @@ -22672,7 +22716,7 @@ func unixGetpagesize(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380 // such transactions, or 0 otherwise. If an error occurs, return an // SQLite error code. The final value of *piOut is undefined in this // case. -func unixFcntlExternalReader(tls *libc.TLS, pFile uintptr, piOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39118:12: */ +func unixFcntlExternalReader(tls *libc.TLS, pFile uintptr, piOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39800:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -22704,7 +22748,7 @@ func unixFcntlExternalReader(tls *libc.TLS, pFile uintptr, piOut uintptr) int32 // // Locks block if the mask is exactly UNIX_SHM_C and are non-blocking // otherwise. -func unixShmSystemLock(tls *libc.TLS, pFile uintptr, lockType int32, ofst int32, n int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39150:12: */ +func unixShmSystemLock(tls *libc.TLS, pFile uintptr, lockType int32, ofst int32, n int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39832:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -22745,7 +22789,7 @@ func unixShmSystemLock(tls *libc.TLS, pFile uintptr, lockType int32, ofst int32, // Usually, this is 1. The exception seems to be systems that are configured // to use 64KB pages - in this case each mapping must cover at least two // shm regions. -func unixShmRegionPerMap(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39235:12: */ +func unixShmRegionPerMap(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39917:12: */ var shmsz int32 = 32 * 1024 // SHM region size var pgsz int32 = (*(*func(*libc.TLS) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 25*24 + 8)))(tls) // System page size // Page size must be a power of 2 @@ -22759,7 +22803,7 @@ func unixShmRegionPerMap(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation- // // This is not a VFS shared-memory method; it is a utility function called // by VFS shared-memory methods. -func unixShmPurge(tls *libc.TLS, pFd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39249:13: */ +func unixShmPurge(tls *libc.TLS, pFd uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39931:13: */ var p uintptr = (*UnixInodeInfo)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pFd)).FpInode)).FpShmNode if p != 0 && (*UnixShmNode)(unsafe.Pointer(p)).FnRef == 0 { @@ -22776,7 +22820,7 @@ func unixShmPurge(tls *libc.TLS, pFd uintptr) { /* testdata/sqlite-amalgamation- } Xsqlite3_free(tls, (*UnixShmNode)(unsafe.Pointer(p)).FapRegion) if (*UnixShmNode)(unsafe.Pointer(p)).FhShm >= 0 { - robust_close(tls, pFd, (*UnixShmNode)(unsafe.Pointer(p)).FhShm, 39266) + robust_close(tls, pFd, (*UnixShmNode)(unsafe.Pointer(p)).FhShm, 39948) (*UnixShmNode)(unsafe.Pointer(p)).FhShm = -1 } (*UnixInodeInfo)(unsafe.Pointer((*UnixShmNode)(unsafe.Pointer(p)).FpInode)).FpShmNode = uintptr(0) @@ -22791,7 +22835,7 @@ func unixShmPurge(tls *libc.TLS, pFd uintptr) { /* testdata/sqlite-amalgamation- // 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 unixLockSharedMemory(tls *libc.TLS, pDbFd uintptr, pShmNode uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39283:12: */ +func unixLockSharedMemory(tls *libc.TLS, pDbFd uintptr, pShmNode uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:39965:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -22835,7 +22879,7 @@ func unixLockSharedMemory(tls *libc.TLS, pDbFd uintptr, pShmNode uintptr) int32 // help detect if a -shm file truncation is legitimate or is the work // or a rogue process. if rc == SQLITE_OK && robust_ftruncate(tls, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FhShm, int64(3)) != 0 { - rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(18)<<8, ts+3232, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 39323) + rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(18)<<8, ts+3267, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 40005) } } } else if int32((*flock)(unsafe.Pointer(bp+8)).Fl_type) == F_WRLCK { @@ -22882,7 +22926,7 @@ func unixLockSharedMemory(tls *libc.TLS, pDbFd uintptr, pShmNode uintptr) int32 // that no other processes are able to read or write the database. In // that case, we do not really need shared memory. No shared memory // file is created. The shared memory will be simulated with heap memory. -func unixOpenSharedMemory(tls *libc.TLS, pDbFd uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39372:12: */ +func unixOpenSharedMemory(tls *libc.TLS, pDbFd uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40054:12: */ bp := tls.Alloc(136) defer tls.Free(136) @@ -22941,7 +22985,7 @@ __4: ; libc.Xmemset(tls, pShmNode, 0, uint64(unsafe.Sizeof(unixShmNode{}))+uint64(nShmFilename)) zShm = libc.AssignPtrUintptr(pShmNode+16, pShmNode+1*96) - Xsqlite3_snprintf(tls, nShmFilename, zShm, ts+3612, libc.VaList(bp, zBasePath)) + Xsqlite3_snprintf(tls, nShmFilename, zShm, ts+3647, libc.VaList(bp, zBasePath)) (*unixShmNode)(unsafe.Pointer(pShmNode)).FhShm = -1 (*UnixInodeInfo)(unsafe.Pointer((*UnixFile)(unsafe.Pointer(pDbFd)).FpInode)).FpShmNode = pShmNode @@ -22963,7 +23007,7 @@ __5: if !(int32((*UnixInodeInfo)(unsafe.Pointer(pInode)).FbProcessLock) == 0) { goto __7 } - if !(0 == Xsqlite3_uri_boolean(tls, (*UnixFile)(unsafe.Pointer(pDbFd)).FzPath, ts+3619, 0)) { + if !(0 == Xsqlite3_uri_boolean(tls, (*UnixFile)(unsafe.Pointer(pDbFd)).FzPath, ts+3654, 0)) { goto __8 } (*unixShmNode)(unsafe.Pointer(pShmNode)).FhShm = robust_open(tls, zShm, O_RDWR|O_CREAT|O_NOFOLLOW, @@ -22978,7 +23022,7 @@ __8: if !((*unixShmNode)(unsafe.Pointer(pShmNode)).FhShm < 0) { goto __10 } - rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 39448), ts+3196, zShm, 39448) + rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 40130), ts+3231, zShm, 40130) goto shm_open_err __10: ; @@ -23046,7 +23090,7 @@ shm_open_err: // 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 unixShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, bExtend int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39514:12: */ +func unixShmMap(tls *libc.TLS, fd uintptr, iRegion int32, szRegion int32, bExtend int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40196:12: */ bp := tls.Alloc(132) defer tls.Free(132) @@ -23149,7 +23193,7 @@ __11: goto __14 } zFile = (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename - rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, ts+3267, zFile, 39592) + rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(19)<<8, ts+3302, zFile, 40274) goto shmpage_out __14: ; @@ -23197,7 +23241,7 @@ __16: if !(pMem == libc.UintptrFromInt32(-1)) { goto __20 } - rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(21)<<8, ts+3354, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 39619) + rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(21)<<8, ts+3389, (*UnixShmNode)(unsafe.Pointer(pShmNode)).FzFilename, 40301) goto shmpage_out __20: ; @@ -23255,7 +23299,7 @@ __27: return rc } -var pgsz int32 = 4096 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39583:28 */ +var pgsz int32 = 4096 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40265:28 */ // Check that the pShmNode->aLock[] array comports with the locking bitmasks // held by each client. Return true if it does, or false otherwise. This @@ -23269,7 +23313,7 @@ var pgsz int32 = 4096 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39583:28 // different here than in posix. In xShmLock(), one can go from unlocked // to shared and back or from unlocked to exclusive and back. But one may // not go from shared to exclusive or from exclusive to shared. -func unixShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39689:12: */ +func unixShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40371:12: */ var pDbFd uintptr = fd // Connection holding shared memory var p uintptr // The shared memory being locked var pShmNode uintptr // The underlying file iNode @@ -23386,7 +23430,7 @@ func unixShmLock(tls *libc.TLS, fd uintptr, ofst int32, n int32, flags int32) in // // All loads and stores begun before the barrier must complete before // any load or store begun after the barrier. -func unixShmBarrier(tls *libc.TLS, fd uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39827:13: */ +func unixShmBarrier(tls *libc.TLS, fd uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40509:13: */ _ = fd // compiler-defined memory barrier @@ -23399,7 +23443,7 @@ func unixShmBarrier(tls *libc.TLS, fd uintptr) { /* testdata/sqlite-amalgamation // // If there is no shared memory associated with the connection then this // routine is a harmless no-op. -func unixShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:39846:12: */ +func unixShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40528:12: */ var p uintptr // The connection to be closed var pShmNode uintptr // The underlying shared-memory file var pp uintptr // For looping over sibling connections @@ -23451,7 +23495,7 @@ func unixShmUnmap(tls *libc.TLS, fd uintptr, deleteFlag int32) int32 { /* testda // // If this function does return a pointer, the caller must eventually // release the reference by calling unixUnfetch(). -func unixFetch(tls *libc.TLS, fd uintptr, iOff I64, nAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40057:12: */ +func unixFetch(tls *libc.TLS, fd uintptr, iOff I64, nAmt int32, pp uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40739:12: */ *(*uintptr)(unsafe.Pointer(pp)) = uintptr(0) return SQLITE_OK @@ -23465,7 +23509,7 @@ func unixFetch(tls *libc.TLS, fd uintptr, iOff I64, nAmt int32, pp uintptr) int3 // 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 unixUnfetch(tls *libc.TLS, fd uintptr, iOff I64, p uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40088:12: */ +func unixUnfetch(tls *libc.TLS, fd uintptr, iOff I64, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40770:12: */ _ = fd _ = p _ = iOff @@ -23514,33 +23558,33 @@ func unixUnfetch(tls *libc.TLS, fd uintptr, iOff I64, p uintptr) int32 { /* test // Here are all of the sqlite3_io_methods objects for each of the // locking strategies. Functions that return pointers to these methods // are also created. -var posixIoMethods = Sqlite3_io_methods{FiVersion: 3 /* iVersion */, FxClose: 0 /* xClose */, FxRead: 0 /* xRead */, FxWrite: 0 /* xWrite */, FxTruncate: 0 /* xTruncate */, FxSync: 0 /* xSync */, FxFileSize: 0 /* xFileSize */, FxLock: 0 /* xLock */, FxUnlock: 0 /* xUnlock */, FxCheckReservedLock: 0 /* xCheckReservedLock */, FxFileControl: 0 /* xFileControl */, FxSectorSize: 0 /* xSectorSize */, FxDeviceCharacteristics: 0 /* xDeviceCapabilities */, FxShmMap: 0 /* xShmMap */, FxShmLock: 0 /* xShmLock */, FxShmBarrier: 0 /* xShmBarrier */, FxShmUnmap: 0 /* xShmUnmap */, FxFetch: 0 /* xFetch */, FxUnfetch: 0 /* xUnfetch */} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1 */ +var posixIoMethods = Sqlite3_io_methods{FiVersion: 3 /* iVersion */, FxClose: 0 /* xClose */, FxRead: 0 /* xRead */, FxWrite: 0 /* xWrite */, FxTruncate: 0 /* xTruncate */, FxSync: 0 /* xSync */, FxFileSize: 0 /* xFileSize */, FxLock: 0 /* xLock */, FxUnlock: 0 /* xUnlock */, FxCheckReservedLock: 0 /* xCheckReservedLock */, FxFileControl: 0 /* xFileControl */, FxSectorSize: 0 /* xSectorSize */, FxDeviceCharacteristics: 0 /* xDeviceCapabilities */, FxShmMap: 0 /* xShmMap */, FxShmLock: 0 /* xShmLock */, FxShmBarrier: 0 /* xShmBarrier */, FxShmUnmap: 0 /* xShmUnmap */, FxFetch: 0 /* xFetch */, FxUnfetch: 0 /* xUnfetch */} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1 */ -func posixIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: */ +func posixIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: */ _ = z _ = p return uintptr(unsafe.Pointer(&posixIoMethods)) } -var posixIoFinder uintptr = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1 */ -var nolockIoMethods = Sqlite3_io_methods{FiVersion: 3 /* iVersion */, FxClose: 0 /* xClose */, FxRead: 0 /* xRead */, FxWrite: 0 /* xWrite */, FxTruncate: 0 /* xTruncate */, FxSync: 0 /* xSync */, FxFileSize: 0 /* xFileSize */, FxLock: 0 /* xLock */, FxUnlock: 0 /* xUnlock */, FxCheckReservedLock: 0 /* xCheckReservedLock */, FxFileControl: 0 /* xFileControl */, FxSectorSize: 0 /* xSectorSize */, FxDeviceCharacteristics: 0 /* xShmMap */, FxShmLock: 0 /* xShmLock */, FxShmBarrier: 0 /* xShmBarrier */, FxShmUnmap: 0 /* xShmUnmap */, FxFetch: 0 /* xFetch */, FxUnfetch: 0 /* xUnfetch */} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1 */ +var posixIoFinder uintptr = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1 */ +var nolockIoMethods = Sqlite3_io_methods{FiVersion: 3 /* iVersion */, FxClose: 0 /* xClose */, FxRead: 0 /* xRead */, FxWrite: 0 /* xWrite */, FxTruncate: 0 /* xTruncate */, FxSync: 0 /* xSync */, FxFileSize: 0 /* xFileSize */, FxLock: 0 /* xLock */, FxUnlock: 0 /* xUnlock */, FxCheckReservedLock: 0 /* xCheckReservedLock */, FxFileControl: 0 /* xFileControl */, FxSectorSize: 0 /* xSectorSize */, FxDeviceCharacteristics: 0 /* xShmMap */, FxShmLock: 0 /* xShmLock */, FxShmBarrier: 0 /* xShmBarrier */, FxShmUnmap: 0 /* xShmUnmap */, FxFetch: 0 /* xFetch */, FxUnfetch: 0 /* xUnfetch */} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1 */ -func nolockIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: */ +func nolockIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: */ _ = z _ = p return uintptr(unsafe.Pointer(&nolockIoMethods)) } -var nolockIoFinder uintptr = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1 */ -var dotlockIoMethods = Sqlite3_io_methods{FiVersion: 1 /* iVersion */, FxClose: 0 /* xClose */, FxRead: 0 /* xRead */, FxWrite: 0 /* xWrite */, FxTruncate: 0 /* xTruncate */, FxSync: 0 /* xSync */, FxFileSize: 0 /* xFileSize */, FxLock: 0 /* xLock */, FxUnlock: 0 /* xUnlock */, FxCheckReservedLock: 0 /* xCheckReservedLock */, FxFileControl: 0 /* xFileControl */, FxSectorSize: 0 /* xSectorSize */, FxDeviceCharacteristics: 0 /* xShmMap */, FxShmLock: 0 /* xShmLock */, FxShmBarrier: 0 /* xShmBarrier */, FxShmUnmap: 0 /* xShmUnmap */, FxFetch: 0 /* xFetch */, FxUnfetch: 0 /* xUnfetch */} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1 */ +var nolockIoFinder uintptr = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1 */ +var dotlockIoMethods = Sqlite3_io_methods{FiVersion: 1 /* iVersion */, FxClose: 0 /* xClose */, FxRead: 0 /* xRead */, FxWrite: 0 /* xWrite */, FxTruncate: 0 /* xTruncate */, FxSync: 0 /* xSync */, FxFileSize: 0 /* xFileSize */, FxLock: 0 /* xLock */, FxUnlock: 0 /* xUnlock */, FxCheckReservedLock: 0 /* xCheckReservedLock */, FxFileControl: 0 /* xFileControl */, FxSectorSize: 0 /* xSectorSize */, FxDeviceCharacteristics: 0 /* xShmMap */, FxShmLock: 0 /* xShmLock */, FxShmBarrier: 0 /* xShmBarrier */, FxShmUnmap: 0 /* xShmUnmap */, FxFetch: 0 /* xFetch */, FxUnfetch: 0 /* xUnfetch */} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1 */ -func dotlockIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: */ +func dotlockIoFinderImpl(tls *libc.TLS, z uintptr, p uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: */ _ = z _ = p return uintptr(unsafe.Pointer(&dotlockIoMethods)) } -var dotlockIoFinder uintptr = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1 */ +var dotlockIoFinder uintptr = 0 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1 */ // The proxy locking method is a "super-method" in the sense that it // opens secondary file descriptors for the conch and lock files and @@ -23553,7 +23597,7 @@ var dotlockIoFinder uintptr = 0 /* testdata/sqlite-amalgamation-3380500/sqlite3. // nfs lockd on OSX 10.3+ doesn't clear write locks when a read lock is set // An abstract type for a pointer to an IO method finder function: -type Finder_type = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40405:34 */ +type Finder_type = uintptr /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41087:34 */ // *************************************************************************** // @@ -23563,7 +23607,7 @@ type Finder_type = uintptr /* testdata/sqlite-amalgamation-3380500/sqlite3.c:404 // sqlite3_vfs object. // Initialize the contents of the unixFile structure pointed to by pId. -func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename uintptr, ctrlFlags int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40418:12: */ +func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename uintptr, ctrlFlags int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41100:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -23583,10 +23627,10 @@ func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename } return uintptr(0) }(), - ts+3632, SQLITE_POWERSAFE_OVERWRITE) != 0 { + ts+3667, SQLITE_POWERSAFE_OVERWRITE) != 0 { *(*uint16)(unsafe.Pointer(pNew + 30)) |= uint16(UNIXFILE_PSOW) } - if libc.Xstrcmp(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FzName, ts+3637) == 0 { + if libc.Xstrcmp(tls, (*Sqlite3_vfs)(unsafe.Pointer(pVfs)).FzName, ts+3672) == 0 { *(*uint16)(unsafe.Pointer(pNew + 30)) |= uint16(UNIXFILE_EXCL) } @@ -23619,7 +23663,7 @@ func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename // If scenario (a) caused the error then things are not so safe. The // implicit assumption here is that if fstat() fails, things are in // such bad shape that dropping a lock or two doesn't matter much. - robust_close(tls, pNew, h, 40496) + robust_close(tls, pNew, h, 41178) h = -1 } unixLeaveMutex(tls) @@ -23634,7 +23678,7 @@ func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename if zLockFile == uintptr(0) { rc = SQLITE_NOMEM } else { - Xsqlite3_snprintf(tls, nFilename, zLockFile, ts+3647, libc.VaList(bp, zFilename)) + Xsqlite3_snprintf(tls, nFilename, zLockFile, ts+3682, libc.VaList(bp, zFilename)) } (*UnixFile)(unsafe.Pointer(pNew)).FlockingContext = zLockFile } @@ -23642,7 +23686,7 @@ func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename storeLastErrno(tls, pNew, 0) if rc != SQLITE_OK { if h >= 0 { - robust_close(tls, pNew, h, 40581) + robust_close(tls, pNew, h, 41263) } } else { (*Sqlite3_file)(unsafe.Pointer(pId)).FpMethods = pLockingStyle @@ -23656,21 +23700,21 @@ func fillInUnixFile(tls *libc.TLS, pVfs uintptr, h int32, pId uintptr, zFilename var azTempDirs = [6]uintptr{ uintptr(0), uintptr(0), - ts + 3655, - ts + 3664, - ts + 3673, + ts + 3690, + ts + 3699, + ts + 3708, ts + 1531, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40593:19 */ +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41275:19 */ // Initialize first two members of azTempDirs[] array. -func unixTempFileInit(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40605:13: */ - azTempDirs[0] = libc.Xgetenv(tls, ts+3678) - azTempDirs[1] = libc.Xgetenv(tls, ts+3692) +func unixTempFileInit(tls *libc.TLS) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41287:13: */ + azTempDirs[0] = libc.Xgetenv(tls, ts+3713) + azTempDirs[1] = libc.Xgetenv(tls, ts+3727) } // Return the name of a directory in which to put temporary files. // If no suitable temporary file directory can be found, return NULL. -func unixTempFileDir(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40614:19: */ +func unixTempFileDir(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41296:19: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -23697,7 +23741,7 @@ func unixTempFileDir(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-33 // Create a temporary file name in zBuf. zBuf must be allocated // by the calling process and must be big enough to hold at least // pVfs->mxPathname bytes. -func unixGetTempname(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40638:12: */ +func unixGetTempname(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41320:12: */ bp := tls.Alloc(32) defer tls.Free(32) @@ -23718,7 +23762,7 @@ func unixGetTempname(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* testdat Xsqlite3_randomness(tls, int32(unsafe.Sizeof(U64(0))), bp+24) *(*int8)(unsafe.Pointer(zBuf + uintptr(nBuf-2))) = int8(0) - Xsqlite3_snprintf(tls, nBuf, zBuf, ts+3699, + Xsqlite3_snprintf(tls, nBuf, zBuf, ts+3734, libc.VaList(bp, zDir, *(*U64)(unsafe.Pointer(bp + 24 /* r */)), 0)) if int32(*(*int8)(unsafe.Pointer(zBuf + uintptr(nBuf-2)))) != 0 || libc.PostIncInt32(&iLimit, 1) > 10 { return SQLITE_ERROR @@ -23741,7 +23785,7 @@ func unixGetTempname(tls *libc.TLS, nBuf int32, zBuf uintptr) int32 { /* testdat // // If a suitable file descriptor is found, then it is returned. If no // such file descriptor is located, -1 is returned. -func findReusableFd(tls *libc.TLS, zPath uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40688:21: */ +func findReusableFd(tls *libc.TLS, zPath uintptr, flags int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41370:21: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -23792,7 +23836,7 @@ func findReusableFd(tls *libc.TLS, zPath uintptr, flags int32) uintptr { /* test } // Find the mode, uid and gid of file zFile. -func getFileMode(tls *libc.TLS, zFile uintptr, pMode uintptr, pUid uintptr, pGid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40738:12: */ +func getFileMode(tls *libc.TLS, zFile uintptr, pMode uintptr, pUid uintptr, pGid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41420:12: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -23828,7 +23872,7 @@ func getFileMode(tls *libc.TLS, zFile uintptr, pMode uintptr, pUid uintptr, pGid // original filename is unavailable. But 8_3_NAMES is only used for // FAT filesystems and permissions do not matter there, so just use // the default permissions. In 8_3_NAMES mode, leave *pMode set to zero. -func findCreateFileMode(tls *libc.TLS, zPath uintptr, flags int32, pMode uintptr, pUid uintptr, pGid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40777:12: */ +func findCreateFileMode(tls *libc.TLS, zPath uintptr, flags int32, pMode uintptr, pUid uintptr, pGid uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41459:12: */ bp := tls.Alloc(513) defer tls.Free(513) @@ -23852,21 +23896,22 @@ func findCreateFileMode(tls *libc.TLS, zPath uintptr, flags int32, pMode uintptr // // where NN is a decimal number. The NN naming schemes are // used by the test_multiplex.c module. + // + // In normal operation, the journal file name will always contain + // a '-' character. However in 8+3 filename mode, or if a corrupt + // rollback journal specifies a super-journal with a goofy name, then + // the '-' might be missing or the '-' might be the first character in + // the filename. In that case, just return SQLITE_OK with *pMode==0. nDb = Xsqlite3Strlen30(tls, zPath) - 1 - for int32(*(*int8)(unsafe.Pointer(zPath + uintptr(nDb)))) != '-' { - // In normal operation, the journal file name will always contain - // a '-' character. However in 8+3 filename mode, or if a corrupt - // rollback journal specifies a super-journal with a goofy name, then - // the '-' might be missing. - if nDb == 0 || int32(*(*int8)(unsafe.Pointer(zPath + uintptr(nDb)))) == '.' { - return SQLITE_OK + for nDb > 0 && int32(*(*int8)(unsafe.Pointer(zPath + uintptr(nDb)))) != '.' { + if int32(*(*int8)(unsafe.Pointer(zPath + uintptr(nDb)))) == '-' { + libc.Xmemcpy(tls, bp, zPath, uint64(nDb)) + *(*int8)(unsafe.Pointer(bp + uintptr(nDb))) = int8(0) + rc = getFileMode(tls, bp, pMode, pUid, pGid) + break } nDb-- } - libc.Xmemcpy(tls, bp, zPath, uint64(nDb)) - *(*int8)(unsafe.Pointer(bp + uintptr(nDb))) = int8(0) - - rc = getFileMode(tls, bp, pMode, pUid, pGid) } else if flags&SQLITE_OPEN_DELETEONCLOSE != 0 { *(*Mode_t)(unsafe.Pointer(pMode)) = Mode_t(0600) } else if flags&SQLITE_OPEN_URI != 0 { @@ -23874,7 +23919,7 @@ func findCreateFileMode(tls *libc.TLS, zPath uintptr, flags int32, pMode uintptr // filename, check for the "modeof" parameter. If present, interpret // its value as a filename and try to copy the mode, uid and gid from // that file. - var z uintptr = Xsqlite3_uri_parameter(tls, zPath, ts+3716) + var z uintptr = Xsqlite3_uri_parameter(tls, zPath, ts+3751) if z != 0 { rc = getFileMode(tls, z, pMode, pUid, pGid) } @@ -23902,7 +23947,7 @@ func findCreateFileMode(tls *libc.TLS, zPath uintptr, flags int32, pMode uintptr // file handle closed. To achieve the same effect using this new // interface, add the DELETEONCLOSE flag to those specified above for // OpenExclusive(). -func unixOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:40854:12: */ +func unixOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41539:12: */ bp := tls.Alloc(528) defer tls.Free(528) @@ -24100,7 +24145,7 @@ __15: if !(fd < 0) { goto __19 } - rc2 = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41010), ts+3196, zName, 41010) + rc2 = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41695), ts+3231, zName, 41695) if !(rc == SQLITE_OK) { goto __20 } @@ -24200,7 +24245,7 @@ __30: // Delete the file at zPath. If the dirSync argument is true, fsync() // the directory after deleting the file. -func unixDelete(tls *libc.TLS, NotUsed uintptr, zPath uintptr, dirSync int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41133:12: */ +func unixDelete(tls *libc.TLS, NotUsed uintptr, zPath uintptr, dirSync int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41818:12: */ bp := tls.Alloc(4) defer tls.Free(4) @@ -24211,7 +24256,7 @@ func unixDelete(tls *libc.TLS, NotUsed uintptr, zPath uintptr, dirSync int32) in if *(*int32)(unsafe.Pointer(libc.X__errno(tls))) == ENOENT { rc = SQLITE_IOERR | int32(23)<<8 } else { - rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(10)<<8, ts+3306, zPath, 41149) + rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(10)<<8, ts+3341, zPath, 41834) } return rc } @@ -24221,9 +24266,9 @@ func unixDelete(tls *libc.TLS, NotUsed uintptr, zPath uintptr, dirSync int32) in rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 17*24 + 8)))(tls, zPath, bp) if rc == SQLITE_OK { if full_fsync(tls, *(*int32)(unsafe.Pointer(bp)), 0, 0) != 0 { - rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(5)<<8, ts+3723, zPath, 41159) + rc = unixLogErrorAtLine(tls, SQLITE_IOERR|int32(5)<<8, ts+3758, zPath, 41844) } - robust_close(tls, uintptr(0), *(*int32)(unsafe.Pointer(bp /* fd */)), 41161) + robust_close(tls, uintptr(0), *(*int32)(unsafe.Pointer(bp /* fd */)), 41846) } else { rc = SQLITE_OK @@ -24240,7 +24285,7 @@ func unixDelete(tls *libc.TLS, NotUsed uintptr, zPath uintptr, dirSync int32) in // SQLITE_ACCESS_READONLY: Return 1 if the file is readable. // // Otherwise return 0. -func unixAccess(tls *libc.TLS, NotUsed uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41181:12: */ +func unixAccess(tls *libc.TLS, NotUsed uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41866:12: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -24259,94 +24304,92 @@ func unixAccess(tls *libc.TLS, NotUsed uintptr, zPath uintptr, flags int32, pRes return SQLITE_OK } -// If the last component of the pathname in z[0]..z[j-1] is something -// other than ".." then back it out and return true. If the last -// component is empty or if it is ".." then return false. -func unixBackupDir(tls *libc.TLS, z uintptr, pJ uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41210:12: */ - var j int32 = *(*int32)(unsafe.Pointer(pJ)) - var i int32 - if j <= 0 { - return 0 - } - for i = j - 1; i > 0 && int32(*(*int8)(unsafe.Pointer(z + uintptr(i-1)))) != '/'; i-- { - } - if i == 0 { - return 0 - } - if int32(*(*int8)(unsafe.Pointer(z + uintptr(i)))) == '.' && i == j-2 && int32(*(*int8)(unsafe.Pointer(z + uintptr(i+1)))) == '.' { - return 0 - } - *(*int32)(unsafe.Pointer(pJ)) = i - 1 - return 1 -} +// A pathname under construction +type DbPath1 = struct { + Frc int32 + FnSymlink int32 + FzOut uintptr + FnOut int32 + FnUsed int32 +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41893:9 */ -// Convert a relative pathname into a full pathname. Also -// simplify the pathname as follows: -// -// Remove all instances of /./ -// Remove all isntances of /X/../ for any X -func mkFullPathname(tls *libc.TLS, zPath uintptr, zOut uintptr, nOut int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41228:12: */ - bp := tls.Alloc(12) - defer tls.Free(12) +// A pathname under construction +type DbPath = DbPath1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41893:23 */ - var nPath int32 = Xsqlite3Strlen30(tls, zPath) - var iOff int32 = 0 - var i int32 - // var j int32 at bp+8, 4 +// Append a single path element to the DbPath under construction +func appendOnePathElement(tls *libc.TLS, pPath uintptr, zName uintptr, nName int32) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41908:13: */ + bp := tls.Alloc(1154) + defer tls.Free(1154) - if int32(*(*int8)(unsafe.Pointer(zPath))) != '/' { - if (*(*func(*libc.TLS, uintptr, Size_t) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 3*24 + 8)))(tls, zOut, uint64(nOut-2)) == uintptr(0) { - return unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41238), ts+3214, zPath, 41238) + if int32(*(*int8)(unsafe.Pointer(zName))) == '.' { + if nName == 1 { + return } - iOff = Xsqlite3Strlen30(tls, zOut) - *(*int8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&iOff, 1)))) = int8('/') - } - if iOff+nPath+1 > nOut { - // SQLite assumes that xFullPathname() nul-terminates the output buffer - // even if it returns an error. - *(*int8)(unsafe.Pointer(zOut + uintptr(iOff))) = int8(0) - return Xsqlite3CantopenError(tls, 41247) - } - Xsqlite3_snprintf(tls, nOut-iOff, zOut+uintptr(iOff), ts+3598, libc.VaList(bp, zPath)) + if int32(*(*int8)(unsafe.Pointer(zName + 1))) == '.' && nName == 2 { + if (*DbPath)(unsafe.Pointer(pPath)).FnUsed <= 1 { + (*DbPath)(unsafe.Pointer(pPath)).Frc = SQLITE_ERROR + return + } - // Remove duplicate '/' characters. Except, two // at the beginning - // of a pathname is allowed since this is important on windows. - for i = libc.AssignPtrInt32(bp+8 /* j */, 1); *(*int8)(unsafe.Pointer(zOut + uintptr(i))) != 0; i++ { - *(*int8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&*(*int32)(unsafe.Pointer(bp + 8 /* j */)), 1)))) = *(*int8)(unsafe.Pointer(zOut + uintptr(i))) - for int32(*(*int8)(unsafe.Pointer(zOut + uintptr(i)))) == '/' && int32(*(*int8)(unsafe.Pointer(zOut + uintptr(i+1)))) == '/' { - i++ + for int32(*(*int8)(unsafe.Pointer((*DbPath)(unsafe.Pointer(pPath)).FzOut + uintptr(libc.PreDecInt32(&(*DbPath)(unsafe.Pointer(pPath)).FnUsed, 1))))) != '/' { + } + return } } - *(*int8)(unsafe.Pointer(zOut + uintptr(*(*int32)(unsafe.Pointer(bp + 8 /* j */))))) = int8(0) + if (*DbPath)(unsafe.Pointer(pPath)).FnUsed+nName+2 >= (*DbPath)(unsafe.Pointer(pPath)).FnOut { + (*DbPath)(unsafe.Pointer(pPath)).Frc = SQLITE_ERROR + return + } + *(*int8)(unsafe.Pointer((*DbPath)(unsafe.Pointer(pPath)).FzOut + uintptr(libc.PostIncInt32(&(*DbPath)(unsafe.Pointer(pPath)).FnUsed, 1)))) = int8('/') + libc.Xmemcpy(tls, (*DbPath)(unsafe.Pointer(pPath)).FzOut+uintptr((*DbPath)(unsafe.Pointer(pPath)).FnUsed), zName, uint64(nName)) + *(*int32)(unsafe.Pointer(pPath + 20)) += nName + if (*DbPath)(unsafe.Pointer(pPath)).Frc == SQLITE_OK { + var zIn uintptr + // var buf stat at bp, 128 - for i = libc.AssignPtrInt32(bp+8 /* j */, 0); *(*int8)(unsafe.Pointer(zOut + uintptr(i))) != 0; i++ { - if int32(*(*int8)(unsafe.Pointer(zOut + uintptr(i)))) == '/' { - // Skip over internal "/." directory components - if int32(*(*int8)(unsafe.Pointer(zOut + uintptr(i+1)))) == '.' && int32(*(*int8)(unsafe.Pointer(zOut + uintptr(i+2)))) == '/' { - i = i + 1 - continue + *(*int8)(unsafe.Pointer((*DbPath)(unsafe.Pointer(pPath)).FzOut + uintptr((*DbPath)(unsafe.Pointer(pPath)).FnUsed))) = int8(0) + zIn = (*DbPath)(unsafe.Pointer(pPath)).FzOut + if (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 27*24 + 8)))(tls, zIn, bp) != 0 { + if *(*int32)(unsafe.Pointer(libc.X__errno(tls))) != ENOENT { + (*DbPath)(unsafe.Pointer(pPath)).Frc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41942), ts+3429, zIn, 41942) } + } else if (*stat)(unsafe.Pointer(bp)).Fst_mode&Mode_t(0170000) == Mode_t(0120000) { + var got Ssize_t + // var zLnk [1026]int8 at bp+128, 1026 - // If this is a "/.." directory component then back out the - // previous term of the directory if it is something other than "..". - if int32(*(*int8)(unsafe.Pointer(zOut + uintptr(i+1)))) == '.' && - int32(*(*int8)(unsafe.Pointer(zOut + uintptr(i+2)))) == '.' && - int32(*(*int8)(unsafe.Pointer(zOut + uintptr(i+3)))) == '/' && - unixBackupDir(tls, zOut, bp+8) != 0 { - i = i + 2 - continue + if libc.PostIncInt32(&(*DbPath)(unsafe.Pointer(pPath)).FnSymlink, 1) > SQLITE_MAX_SYMLINK { + (*DbPath)(unsafe.Pointer(pPath)).Frc = Xsqlite3CantopenError(tls, 41948) + return } + got = (*(*func(*libc.TLS, uintptr, uintptr, Size_t) Ssize_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls, zIn, bp+128, uint64(unsafe.Sizeof([1026]int8{}))-uint64(2)) + if got <= int64(0) || got >= Ssize_t(unsafe.Sizeof([1026]int8{}))-int64(2) { + (*DbPath)(unsafe.Pointer(pPath)).Frc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41953), ts+3420, zIn, 41953) + return + } + *(*int8)(unsafe.Pointer(bp + 128 + uintptr(got))) = int8(0) + if int32(*(*int8)(unsafe.Pointer(bp + 128))) == '/' { + (*DbPath)(unsafe.Pointer(pPath)).FnUsed = 0 + } else { + *(*int32)(unsafe.Pointer(pPath + 20)) -= nName + 1 + } + appendAllPathElements(tls, pPath, bp+128) } - if *(*int32)(unsafe.Pointer(bp + 8)) >= 0 { - *(*int8)(unsafe.Pointer(zOut + uintptr(*(*int32)(unsafe.Pointer(bp + 8 /* j */))))) = *(*int8)(unsafe.Pointer(zOut + uintptr(i))) - } - *(*int32)(unsafe.Pointer(bp + 8 /* j */))++ } - if *(*int32)(unsafe.Pointer(bp + 8)) == 0 { - *(*int8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&*(*int32)(unsafe.Pointer(bp + 8 /* j */)), 1)))) = int8('/') +} + +// Append all path elements in zPath to the DbPath under construction. +func appendAllPathElements(tls *libc.TLS, pPath uintptr, zPath uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41971:13: */ + var i int32 = 0 + var j int32 = 0 + for __ccgo := true; __ccgo; __ccgo = *(*int8)(unsafe.Pointer(zPath + uintptr(libc.PostIncInt32(&i, 1)))) != 0 { + for *(*int8)(unsafe.Pointer(zPath + uintptr(i))) != 0 && int32(*(*int8)(unsafe.Pointer(zPath + uintptr(i)))) != '/' { + i++ + } + if i > j { + appendOnePathElement(tls, pPath, zPath+uintptr(j), i-j) + } + j = i + 1 } - *(*int8)(unsafe.Pointer(zOut + uintptr(*(*int32)(unsafe.Pointer(bp + 8 /* j */))))) = int8(0) - return SQLITE_OK } // Turn a relative pathname into a full pathname. The relative path @@ -24356,87 +24399,35 @@ func mkFullPathname(tls *libc.TLS, zPath uintptr, zOut uintptr, nOut int32) int3 // zOut points to a buffer of at least sqlite3_vfs.mxPathname bytes // (in this case, MAX_PATHNAME bytes). The full-path is written to // this buffer before returning. -func unixFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41297:12: */ - bp := tls.Alloc(128) - defer tls.Free(128) +func unixFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:41995:12: */ + bp := tls.Alloc(1056) + defer tls.Free(1056) - var rc int32 = SQLITE_OK - var nByte int32 - var nLink int32 = 0 // Number of symbolic links followed so far - var zIn uintptr = zPath // Input path for each iteration of loop - var zDel uintptr = uintptr(0) + // var path DbPath at bp+1032, 24 _ = pVfs + (*DbPath)(unsafe.Pointer(bp + 1032 /* &path */)).Frc = 0 + (*DbPath)(unsafe.Pointer(bp + 1032 /* &path */)).FnUsed = 0 + (*DbPath)(unsafe.Pointer(bp + 1032 /* &path */)).FnSymlink = 0 + (*DbPath)(unsafe.Pointer(bp + 1032 /* &path */)).FnOut = nOut + (*DbPath)(unsafe.Pointer(bp + 1032 /* &path */)).FzOut = zOut + if int32(*(*int8)(unsafe.Pointer(zPath))) != '/' { + // var zPwd [1026]int8 at bp, 1026 - // It's odd to simulate an io-error here, but really this is just - // using the io-error infrastructure to test that SQLite handles this - // function failing. This function could fail if, for example, the - // current working directory has been unlinked. - - for __ccgo := true; __ccgo; __ccgo = rc == SQLITE_OK { - - // Call stat() on path zIn. Set bLink to true if the path is a symbolic - // link, or false otherwise. - var bLink int32 = 0 - // var buf stat at bp, 128 - - if (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 27*24 + 8)))(tls, zIn, bp) != 0 { - if *(*int32)(unsafe.Pointer(libc.X__errno(tls))) != ENOENT { - rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41330), ts+3394, zIn, 41330) - } - } else { - bLink = libc.Bool32((*stat)(unsafe.Pointer(bp)).Fst_mode&Mode_t(0170000) == Mode_t(0120000)) - } - - if bLink != 0 { - nLink++ - if zDel == uintptr(0) { - zDel = Xsqlite3_malloc(tls, nOut) - if zDel == uintptr(0) { - rc = SQLITE_NOMEM - } - } else if nLink >= SQLITE_MAX_SYMLINKS { - rc = Xsqlite3CantopenError(tls, 41342) - } - - if rc == SQLITE_OK { - nByte = int32((*(*func(*libc.TLS, uintptr, uintptr, Size_t) Ssize_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 26*24 + 8)))(tls, zIn, zDel, uint64(nOut-1))) - if nByte < 0 { - rc = unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 41348), ts+3385, zIn, 41348) - } else { - if int32(*(*int8)(unsafe.Pointer(zDel))) != '/' { - var n int32 - for n = Xsqlite3Strlen30(tls, zIn); n > 0 && int32(*(*int8)(unsafe.Pointer(zIn + uintptr(n-1)))) != '/'; n-- { - } - if nByte+n+1 > nOut { - rc = Xsqlite3CantopenError(tls, 41354) - } else { - libc.Xmemmove(tls, zDel+uintptr(n), zDel, uint64(nByte+1)) - libc.Xmemcpy(tls, zDel, zIn, uint64(n)) - nByte = nByte + n - } - } - *(*int8)(unsafe.Pointer(zDel + uintptr(nByte))) = int8(0) - } - } - - zIn = zDel - } - - if rc == SQLITE_OK && zIn != zOut { - rc = mkFullPathname(tls, zIn, zOut, nOut) + if (*(*func(*libc.TLS, uintptr, Size_t) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 3*24 + 8)))(tls, bp, uint64(unsafe.Sizeof([1026]int8{}))-uint64(2)) == uintptr(0) { + return unixLogErrorAtLine(tls, Xsqlite3CantopenError(tls, 42011), ts+3249, zPath, 42011) } - if bLink == 0 { - break - } - zIn = zOut + appendAllPathElements(tls, bp+1032, bp) } - - Xsqlite3_free(tls, zDel) - if rc == SQLITE_OK && nLink != 0 { - rc = SQLITE_OK | int32(2)<<8 + appendAllPathElements(tls, bp+1032, zPath) + *(*int8)(unsafe.Pointer(zOut + uintptr((*DbPath)(unsafe.Pointer(bp+1032 /* &path */)).FnUsed))) = int8(0) + if (*DbPath)(unsafe.Pointer(bp+1032)).Frc != 0 || (*DbPath)(unsafe.Pointer(bp+1032)).FnUsed < 2 { + return Xsqlite3CantopenError(tls, 42017) } - return rc + if (*DbPath)(unsafe.Pointer(bp+1032)).FnSymlink != 0 { + return SQLITE_OK | int32(2)<<8 + } + return SQLITE_OK } // Interfaces for opening a shared library, finding entry points @@ -24594,7 +24585,7 @@ type dl_info = struct { // Structure filled in by dladdr(). type Dl_info = dl_info /* /usr/include/dlfcn.h:64:3 */ -func unixDlOpen(tls *libc.TLS, NotUsed uintptr, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41389:13: */ +func unixDlOpen(tls *libc.TLS, NotUsed uintptr, zFilename uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:42028:13: */ _ = NotUsed return libc.Xdlopen(tls, zFilename, RTLD_NOW|RTLD_GLOBAL) } @@ -24604,7 +24595,7 @@ func unixDlOpen(tls *libc.TLS, NotUsed uintptr, zFilename uintptr) uintptr { /* // message is available, it is written to zBufOut. If no error message // is available, zBufOut is left unmodified and SQLite uses a default // error message. -func unixDlError(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBufOut uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41401:13: */ +func unixDlError(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBufOut uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:42040:13: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -24613,12 +24604,12 @@ func unixDlError(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBufOut uintptr) { unixEnterMutex(tls) zErr = libc.Xdlerror(tls) if zErr != 0 { - Xsqlite3_snprintf(tls, nBuf, zBufOut, ts+3598, libc.VaList(bp, zErr)) + Xsqlite3_snprintf(tls, nBuf, zBufOut, ts+3633, libc.VaList(bp, zErr)) } unixLeaveMutex(tls) } -func unixDlSym(tls *libc.TLS, NotUsed uintptr, p uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41411:13: */ +func unixDlSym(tls *libc.TLS, NotUsed uintptr, p uintptr, zSym uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:42050:13: */ // GCC with -pedantic-errors says that C90 does not allow a void* to be // cast into a pointer to a function. And yet the library dlsym() routine // returns a void* which is really a pointer to a function. So how do we @@ -24644,13 +24635,13 @@ func unixDlSym(tls *libc.TLS, NotUsed uintptr, p uintptr, zSym uintptr) uintptr })(unsafe.Pointer(&struct{ uintptr }{x})).f(tls, p, zSym) } -func unixDlClose(tls *libc.TLS, NotUsed uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41434:13: */ +func unixDlClose(tls *libc.TLS, NotUsed uintptr, pHandle uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:42073:13: */ _ = NotUsed libc.Xdlclose(tls, pHandle) } // Write nBuf bytes of random data to the supplied buffer zBuf. -func unixRandomness(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41448:12: */ +func unixRandomness(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBuf uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:42087:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -24672,7 +24663,7 @@ func unixRandomness(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBuf uintptr) in { var fd int32 var got int32 - fd = robust_open(tls, ts+3729, O_RDONLY, uint32(0)) + fd = robust_open(tls, ts+3764, O_RDONLY, uint32(0)) if fd < 0 { // var t Time_t at bp, 8 @@ -24685,7 +24676,7 @@ func unixRandomness(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBuf uintptr) in for __ccgo := true; __ccgo; __ccgo = got < 0 && *(*int32)(unsafe.Pointer(libc.X__errno(tls))) == EINTR { got = int32((*(*func(*libc.TLS, int32, uintptr, Size_t) Ssize_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8*24 + 8)))(tls, fd, zBuf, uint64(nBuf))) } - robust_close(tls, uintptr(0), fd, 41479) + robust_close(tls, uintptr(0), fd, 42118) } } @@ -24698,7 +24689,7 @@ func unixRandomness(tls *libc.TLS, NotUsed uintptr, nBuf int32, zBuf uintptr) in // requested from the underlying operating system, a number which // might be greater than or equal to the argument, but not less // than the argument. -func unixSleep(tls *libc.TLS, NotUsed uintptr, microseconds int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41495:12: */ +func unixSleep(tls *libc.TLS, NotUsed uintptr, microseconds int32) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:42134:12: */ if microseconds >= 1000000 { libc.Xsleep(tls, uint32(microseconds/1000000)) } @@ -24721,7 +24712,7 @@ func unixSleep(tls *libc.TLS, NotUsed uintptr, microseconds int32) int32 { /* te // // On success, return SQLITE_OK. Return SQLITE_ERROR if the time and date // cannot be found. -func unixCurrentTimeInt64(tls *libc.TLS, NotUsed uintptr, piNow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41536:12: */ +func unixCurrentTimeInt64(tls *libc.TLS, NotUsed uintptr, piNow uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:42175:12: */ bp := tls.Alloc(16) defer tls.Free(16) @@ -24735,12 +24726,12 @@ func unixCurrentTimeInt64(tls *libc.TLS, NotUsed uintptr, piNow uintptr) int32 { return rc } -var unixEpoch Sqlite3_int64 = int64(24405875) * int64(8640000) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41537:30 */ +var unixEpoch Sqlite3_int64 = int64(24405875) * int64(8640000) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:42176: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 unixCurrentTime(tls *libc.TLS, NotUsed uintptr, prNow uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41568:12: */ +func unixCurrentTime(tls *libc.TLS, NotUsed uintptr, prNow uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:42207:12: */ bp := tls.Alloc(8) defer tls.Free(8) @@ -24756,7 +24747,7 @@ func unixCurrentTime(tls *libc.TLS, NotUsed uintptr, prNow uintptr) int32 { /* t // low-level error message when operating-system problems come up // during SQLite operation. Only the integer return code is currently // used. -func unixGetLastError(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32, NotUsed3 uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:41586:12: */ +func unixGetLastError(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32, NotUsed3 uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:42225:12: */ _ = NotUsed _ = NotUsed2 _ = NotUsed3 @@ -24938,7 +24929,7 @@ func unixGetLastError(tls *libc.TLS, NotUsed uintptr, NotUsed2 int32, NotUsed3 u // single thread. The memory allocation and mutex subsystems have not // necessarily been initialized when this routine is called, and so they // should not be used. -func Xsqlite3_os_init(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:42791:16: */ +func Xsqlite3_os_init(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43430:16: */ var i uint32 // Loop counter // Double-check that the aSyscall[] array has been constructed @@ -24972,18 +24963,18 @@ func Xsqlite3_os_init(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-338 } var aVfs = [4]Sqlite3_vfs{ - {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3742, FpAppData: 0 /* pAppData */, FxOpen: 0 /* xOpen */, FxDelete: 0 /* xDelete */, FxAccess: 0 /* xAccess */, FxFullPathname: 0 /* xFullPathname */, FxDlOpen: 0 /* xDlOpen */, FxDlError: 0 /* xDlError */, FxDlSym: 0 /* xDlSym */, FxDlClose: 0 /* xDlClose */, FxRandomness: 0 /* xRandomness */, FxSleep: 0 /* xSleep */, FxCurrentTime: 0 /* xCurrentTime */, FxGetLastError: 0 /* xGetLastError */, FxCurrentTimeInt64: 0 /* xCurrentTimeInt64 */, FxSetSystemCall: 0 /* xSetSystemCall */, FxGetSystemCall: 0 /* xGetSystemCall */, FxNextSystemCall: 0 /* xNextSystemCall */}, - {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3747, FpAppData: 0 /* pAppData */, FxOpen: 0 /* xOpen */, FxDelete: 0 /* xDelete */, FxAccess: 0 /* xAccess */, FxFullPathname: 0 /* xFullPathname */, FxDlOpen: 0 /* xDlOpen */, FxDlError: 0 /* xDlError */, FxDlSym: 0 /* xDlSym */, FxDlClose: 0 /* xDlClose */, FxRandomness: 0 /* xRandomness */, FxSleep: 0 /* xSleep */, FxCurrentTime: 0 /* xCurrentTime */, FxGetLastError: 0 /* xGetLastError */, FxCurrentTimeInt64: 0 /* xCurrentTimeInt64 */, FxSetSystemCall: 0 /* xSetSystemCall */, FxGetSystemCall: 0 /* xGetSystemCall */, FxNextSystemCall: 0 /* xNextSystemCall */}, - {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3757, FpAppData: 0 /* pAppData */, FxOpen: 0 /* xOpen */, FxDelete: 0 /* xDelete */, FxAccess: 0 /* xAccess */, FxFullPathname: 0 /* xFullPathname */, FxDlOpen: 0 /* xDlOpen */, FxDlError: 0 /* xDlError */, FxDlSym: 0 /* xDlSym */, FxDlClose: 0 /* xDlClose */, FxRandomness: 0 /* xRandomness */, FxSleep: 0 /* xSleep */, FxCurrentTime: 0 /* xCurrentTime */, FxGetLastError: 0 /* xGetLastError */, FxCurrentTimeInt64: 0 /* xCurrentTimeInt64 */, FxSetSystemCall: 0 /* xSetSystemCall */, FxGetSystemCall: 0 /* xGetSystemCall */, FxNextSystemCall: 0 /* xNextSystemCall */}, - {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3637, FpAppData: 0 /* pAppData */, FxOpen: 0 /* xOpen */, FxDelete: 0 /* xDelete */, FxAccess: 0 /* xAccess */, FxFullPathname: 0 /* xFullPathname */, FxDlOpen: 0 /* xDlOpen */, FxDlError: 0 /* xDlError */, FxDlSym: 0 /* xDlSym */, FxDlClose: 0 /* xDlClose */, FxRandomness: 0 /* xRandomness */, FxSleep: 0 /* xSleep */, FxCurrentTime: 0 /* xCurrentTime */, FxGetLastError: 0 /* xGetLastError */, FxCurrentTimeInt64: 0 /* xCurrentTimeInt64 */, FxSetSystemCall: 0 /* xSetSystemCall */, FxGetSystemCall: 0 /* xGetSystemCall */, FxNextSystemCall: 0 /* xNextSystemCall */}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:42844:22 */ + {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3777, FpAppData: 0 /* pAppData */, FxOpen: 0 /* xOpen */, FxDelete: 0 /* xDelete */, FxAccess: 0 /* xAccess */, FxFullPathname: 0 /* xFullPathname */, FxDlOpen: 0 /* xDlOpen */, FxDlError: 0 /* xDlError */, FxDlSym: 0 /* xDlSym */, FxDlClose: 0 /* xDlClose */, FxRandomness: 0 /* xRandomness */, FxSleep: 0 /* xSleep */, FxCurrentTime: 0 /* xCurrentTime */, FxGetLastError: 0 /* xGetLastError */, FxCurrentTimeInt64: 0 /* xCurrentTimeInt64 */, FxSetSystemCall: 0 /* xSetSystemCall */, FxGetSystemCall: 0 /* xGetSystemCall */, FxNextSystemCall: 0 /* xNextSystemCall */}, + {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3782, FpAppData: 0 /* pAppData */, FxOpen: 0 /* xOpen */, FxDelete: 0 /* xDelete */, FxAccess: 0 /* xAccess */, FxFullPathname: 0 /* xFullPathname */, FxDlOpen: 0 /* xDlOpen */, FxDlError: 0 /* xDlError */, FxDlSym: 0 /* xDlSym */, FxDlClose: 0 /* xDlClose */, FxRandomness: 0 /* xRandomness */, FxSleep: 0 /* xSleep */, FxCurrentTime: 0 /* xCurrentTime */, FxGetLastError: 0 /* xGetLastError */, FxCurrentTimeInt64: 0 /* xCurrentTimeInt64 */, FxSetSystemCall: 0 /* xSetSystemCall */, FxGetSystemCall: 0 /* xGetSystemCall */, FxNextSystemCall: 0 /* xNextSystemCall */}, + {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3792, FpAppData: 0 /* pAppData */, FxOpen: 0 /* xOpen */, FxDelete: 0 /* xDelete */, FxAccess: 0 /* xAccess */, FxFullPathname: 0 /* xFullPathname */, FxDlOpen: 0 /* xDlOpen */, FxDlError: 0 /* xDlError */, FxDlSym: 0 /* xDlSym */, FxDlClose: 0 /* xDlClose */, FxRandomness: 0 /* xRandomness */, FxSleep: 0 /* xSleep */, FxCurrentTime: 0 /* xCurrentTime */, FxGetLastError: 0 /* xGetLastError */, FxCurrentTimeInt64: 0 /* xCurrentTimeInt64 */, FxSetSystemCall: 0 /* xSetSystemCall */, FxGetSystemCall: 0 /* xGetSystemCall */, FxNextSystemCall: 0 /* xNextSystemCall */}, + {FiVersion: 3 /* iVersion */, FszOsFile: int32(unsafe.Sizeof(UnixFile{})) /* szOsFile */, FmxPathname: MAX_PATHNAME /* pNext */, FzName: ts + 3672, FpAppData: 0 /* pAppData */, FxOpen: 0 /* xOpen */, FxDelete: 0 /* xDelete */, FxAccess: 0 /* xAccess */, FxFullPathname: 0 /* xFullPathname */, FxDlOpen: 0 /* xDlOpen */, FxDlError: 0 /* xDlError */, FxDlSym: 0 /* xDlSym */, FxDlClose: 0 /* xDlClose */, FxRandomness: 0 /* xRandomness */, FxSleep: 0 /* xSleep */, FxCurrentTime: 0 /* xCurrentTime */, FxGetLastError: 0 /* xGetLastError */, FxCurrentTimeInt64: 0 /* xCurrentTimeInt64 */, FxSetSystemCall: 0 /* xSetSystemCall */, FxGetSystemCall: 0 /* xGetSystemCall */, FxNextSystemCall: 0 /* xNextSystemCall */}, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43483:22 */ // Shutdown the operating system interface. // // Some operating systems might need to do some cleanup in this routine, // to release dynamically allocated objects. But not on unix. // This routine is a no-op for unix. -func Xsqlite3_os_end(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:42913:16: */ +func Xsqlite3_os_end(tls *libc.TLS) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:43552:16: */ unixBigLock = uintptr(0) return SQLITE_OK } @@ -25025,15 +25016,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 @@ -25047,9 +25038,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. @@ -25059,18 +25050,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 + 3770, + FzName: ts + 3805, FxOpen: 0, /* memdbDelete, */ // xDelete FxAccess: 0, // xAccess FxFullPathname: 0, // xFullPathname @@ -25082,7 +25073,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 @@ -25098,21 +25089,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 @@ -25150,7 +25141,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 { @@ -25167,7 +25158,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 @@ -25189,7 +25180,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 { @@ -25220,7 +25211,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) @@ -25235,14 +25226,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 @@ -25251,7 +25242,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 @@ -25295,7 +25286,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) @@ -25303,7 +25294,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+3776, libc.VaList(bp, (*MemStore)(unsafe.Pointer(p)).FaData, (*MemStore)(unsafe.Pointer(p)).Fsz)) + *(*uintptr)(unsafe.Pointer(pArg)) = Xsqlite3_mprintf(tls, ts+3811, libc.VaList(bp, (*MemStore)(unsafe.Pointer(p)).FaData, (*MemStore)(unsafe.Pointer(p)).Fsz)) rc = SQLITE_OK } if op == SQLITE_FCNTL_SIZE_LIMIT { @@ -25324,13 +25315,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) { @@ -25344,7 +25335,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 @@ -25355,7 +25346,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 @@ -25430,7 +25421,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 @@ -25441,17 +25432,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+3598, libc.VaList(bp, zPath)) + Xsqlite3_snprintf(tls, nOut, zOut, ts+3633, 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) @@ -25460,21 +25451,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) @@ -25482,7 +25473,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) @@ -25490,19 +25481,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) @@ -25510,7 +25501,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) @@ -25533,7 +25524,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) @@ -25579,7 +25570,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+3791, libc.VaList(bp, zSchema)) + zSql = Xsqlite3_mprintf(tls, ts+3826, libc.VaList(bp, zSchema)) if zSql != 0 { rc = Xsqlite3_prepare_v2(tls, db, zSql, -1, bp+8, uintptr(0)) } else { @@ -25624,7 +25615,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) @@ -25653,7 +25644,7 @@ __1: goto end_deserialize __2: ; - zSql = Xsqlite3_mprintf(tls, ts+3814, libc.VaList(bp, zSchema)) + zSql = Xsqlite3_mprintf(tls, ts+3849, libc.VaList(bp, zSchema)) if !(zSql == uintptr(0)) { goto __3 } @@ -25719,7 +25710,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) { @@ -25741,7 +25732,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{}))) @@ -25754,7 +25745,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 { @@ -25783,7 +25774,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) } @@ -25797,7 +25788,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 @@ -25934,7 +25925,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 } @@ -25973,7 +25964,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 } @@ -25988,7 +25979,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 } @@ -26025,7 +26016,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) @@ -26188,7 +26179,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 { @@ -26250,7 +26241,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 { @@ -26262,7 +26253,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. @@ -26287,7 +26278,7 @@ func numberOfCachePages(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-ama // // 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 @@ -26300,7 +26291,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) @@ -26308,7 +26299,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{})) } @@ -26322,7 +26313,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 @@ -26339,7 +26330,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 @@ -26386,7 +26377,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 @@ -26414,7 +26405,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 @@ -26465,7 +26456,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 @@ -26485,7 +26476,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 @@ -26501,7 +26492,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 { @@ -26514,7 +26505,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++ @@ -26523,7 +26514,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)) @@ -26536,7 +26527,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)) @@ -26551,7 +26542,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)) @@ -26563,7 +26554,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) { @@ -26572,7 +26563,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 { @@ -26582,7 +26573,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)) @@ -26591,7 +26582,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 { @@ -26610,7 +26601,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 @@ -26644,19 +26635,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) @@ -26695,7 +26686,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) @@ -26738,7 +26729,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 @@ -26750,17 +26741,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 @@ -26768,7 +26759,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 { @@ -26780,7 +26771,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 { @@ -26797,20 +26788,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) @@ -26925,7 +26916,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 **************************************** @@ -27011,7 +27002,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 @@ -27021,12 +27012,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 @@ -27034,9 +27025,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 { @@ -27053,10 +27044,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 @@ -27074,7 +27065,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) { @@ -27107,7 +27098,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 { @@ -27152,7 +27143,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 { @@ -27185,7 +27176,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 } @@ -27215,7 +27206,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 { @@ -27229,7 +27220,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 @@ -27267,7 +27258,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 @@ -27284,13 +27275,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) } @@ -27308,7 +27299,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 { @@ -27324,7 +27315,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 @@ -27365,7 +27356,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 @@ -27382,7 +27373,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 @@ -27400,7 +27391,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 @@ -27421,7 +27412,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 @@ -27469,7 +27460,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))) @@ -27507,7 +27498,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))) @@ -27516,7 +27507,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 @@ -27566,7 +27557,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 @@ -27589,7 +27580,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 @@ -27604,7 +27595,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) @@ -27619,7 +27610,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) @@ -27737,7 +27728,7 @@ func pcache1FetchStage2(tls *libc.TLS, pCache uintptr, iKey uint32, createFlag i // 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) @@ -27766,7 +27757,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 @@ -27777,7 +27768,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 { @@ -27791,7 +27782,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 @@ -27816,7 +27807,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 @@ -27847,7 +27838,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 { @@ -27860,7 +27851,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 @@ -27883,7 +27874,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) @@ -27903,16 +27894,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 } @@ -27923,7 +27914,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) { @@ -28021,7 +28012,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 @@ -28034,13 +28025,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) @@ -28060,7 +28051,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 @@ -28079,7 +28070,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) } @@ -28090,7 +28081,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 @@ -28113,7 +28104,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 @@ -28143,7 +28134,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) @@ -28178,7 +28169,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) @@ -28214,7 +28205,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) @@ -28245,7 +28236,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 @@ -28276,7 +28267,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 @@ -28309,7 +28300,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() @@ -28342,7 +28333,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) @@ -28481,7 +28472,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 ****************************************** @@ -28527,7 +28518,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 ********************* @@ -28916,7 +28907,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 ********************* @@ -29296,7 +29287,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 @@ -29329,11 +29320,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 @@ -29352,7 +29343,7 @@ func setGetterMethod(tls *libc.TLS, pPager uintptr) { /* testdata/sqlite-amalgam // * 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 @@ -29374,7 +29365,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) @@ -29391,7 +29382,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) @@ -29408,7 +29399,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) { @@ -29435,7 +29426,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 { @@ -29469,7 +29460,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 @@ -29503,7 +29494,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) @@ -29562,7 +29553,7 @@ func readSuperJournal(tls *libc.TLS, pJrnl uintptr, zSuper uintptr, nSuper U32) // 100 512 // 2000 2048 // -func journalHdrOffset(tls *libc.TLS, pPager uintptr) I64 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:54573:12: */ +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 { @@ -29591,7 +29582,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) @@ -29626,7 +29617,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 @@ -29641,7 +29632,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 @@ -29751,7 +29742,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) @@ -29850,7 +29841,7 @@ 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. +// + 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. @@ -29861,7 +29852,7 @@ func readJournalHdr(tls *libc.TLS, pPager uintptr, isHot int32, journalSize I64, // // 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) @@ -29894,7 +29885,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)) || @@ -29921,21 +29912,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) @@ -29952,7 +29943,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 @@ -29981,7 +29972,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) @@ -30073,7 +30064,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 { @@ -30098,7 +30089,7 @@ func pager_error(tls *libc.TLS, pPager uintptr, rc int32) int32 { /* testdata/sq // 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: */ +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 } @@ -30162,7 +30153,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 @@ -30289,7 +30280,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 { @@ -30321,7 +30312,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 { @@ -30357,7 +30348,7 @@ 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 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. // @@ -30366,7 +30357,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) @@ -30416,7 +30407,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 } @@ -30600,7 +30591,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) @@ -30766,9 +30757,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 @@ -30776,20 +30767,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 @@ -30801,7 +30794,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 @@ -30833,7 +30826,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 { @@ -30901,7 +30894,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) @@ -31170,7 +31163,7 @@ __27: if !(isHot != 0 && nPlayback != 0) { goto __28 } - Xsqlite3_log(tls, SQLITE_NOTICE|int32(2)<<8, ts+3829, + Xsqlite3_log(tls, SQLITE_NOTICE|int32(2)<<8, ts+3864, libc.VaList(bp, nPlayback, (*Pager)(unsafe.Pointer(pPager)).FzJournal)) __28: ; @@ -31192,7 +31185,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) @@ -31246,7 +31239,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 @@ -31273,7 +31266,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 @@ -31304,7 +31297,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 @@ -31335,7 +31328,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 @@ -31361,7 +31354,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 */))) @@ -31383,7 +31376,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) @@ -31414,7 +31407,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) @@ -31468,7 +31461,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) @@ -31536,7 +31529,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) @@ -31645,28 +31638,28 @@ 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: */ } // 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) } @@ -31719,7 +31712,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) @@ -31783,7 +31776,7 @@ func Xsqlite3PagerSetFlags(tls *libc.TLS, pPager uintptr, pgFlags uint32) { /* t // 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: */ +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) @@ -31811,11 +31804,11 @@ func pagerOpentemp(tls *libc.TLS, pPager uintptr, pFile uintptr, vfsFlags int32) // 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) } @@ -31848,7 +31841,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) @@ -31894,6 +31887,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) } @@ -31917,7 +31911,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 } @@ -31926,7 +31920,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 } @@ -31957,7 +31951,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)) @@ -31980,7 +31974,7 @@ func Xsqlite3PagerReadFileheader(tls *libc.TLS, pPager uintptr, N int32, pDest u // // However, if the file is between 1 and 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) } @@ -31997,7 +31991,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 @@ -32042,7 +32036,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 @@ -32069,7 +32063,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) @@ -32082,7 +32076,7 @@ func pagerSyncHotJournal(tls *libc.TLS, pPager uintptr) int32 { /* testdata/sqli // 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 @@ -32092,7 +32086,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 { @@ -32105,7 +32099,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) @@ -32143,7 +32137,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) @@ -32192,7 +32186,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) } @@ -32229,7 +32223,7 @@ func Xsqlite3PagerRef(tls *libc.TLS, pPg uintptr) { /* testdata/sqlite-amalgamat // 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) @@ -32343,7 +32337,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 @@ -32375,7 +32369,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) @@ -32434,7 +32428,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) @@ -32455,7 +32449,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 | @@ -32479,7 +32473,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 { @@ -32510,7 +32504,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 { @@ -32536,7 +32530,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 @@ -32565,7 +32559,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. @@ -32598,7 +32592,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) @@ -32645,7 +32639,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) @@ -32771,7 +32765,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) { @@ -32879,7 +32873,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+3856, uint64(8)) + libc.Xmemcpy(tls, pPtr, ts+3891, uint64(8)) pPtr += uintptr(8 + 1) goto __19 __18: @@ -32894,7 +32888,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+3865, uint64(4)) + libc.Xmemcpy(tls, pPtr, ts+3900, uint64(4)) pPtr += uintptr(4 + 1) goto __21 __20: @@ -32954,9 +32948,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+3870, 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+3905, 0)) if !(iDc&SQLITE_IOCAP_IMMUTABLE != 0 || - Xsqlite3_uri_boolean(tls, (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, ts+3877, 0) != 0) { + Xsqlite3_uri_boolean(tls, (*Pager)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp)))).FzFilename, ts+3912, 0) != 0) { goto __30 } vfsFlags = vfsFlags | SQLITE_OPEN_READONLY @@ -33090,7 +33084,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-- @@ -33128,7 +33122,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) @@ -33239,7 +33233,7 @@ func hasHotJournal(tls *libc.TLS, pPager uintptr, pExists uintptr) int32 { /* te // 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) @@ -33365,7 +33359,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: ; @@ -33514,7 +33508,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) @@ -33576,7 +33570,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) @@ -33589,7 +33583,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) @@ -33622,7 +33616,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 @@ -33632,10 +33626,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: ; @@ -33678,7 +33672,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 @@ -33707,7 +33701,7 @@ __14: } // 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 @@ -33716,7 +33710,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 @@ -33732,7 +33726,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) @@ -33753,7 +33747,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 @@ -33765,13 +33759,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 @@ -33800,7 +33794,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 @@ -33882,7 +33876,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 { @@ -33942,7 +33936,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 @@ -33992,7 +33986,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 @@ -34066,7 +34060,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) @@ -34104,7 +34098,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 */))) @@ -34154,7 +34148,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 { @@ -34195,7 +34189,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 { @@ -34225,7 +34219,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) @@ -34269,7 +34263,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 @@ -34295,7 +34289,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) @@ -34318,7 +34312,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 { @@ -34354,7 +34348,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) @@ -34496,7 +34490,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) { @@ -34544,7 +34538,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. @@ -34601,7 +34595,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 @@ -34645,13 +34639,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)+ @@ -34660,7 +34654,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) } @@ -34673,17 +34667,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) } @@ -34695,7 +34689,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 @@ -34735,7 +34729,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) @@ -34773,7 +34767,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 { @@ -34834,30 +34828,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) } @@ -34865,7 +34859,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 } @@ -34892,7 +34886,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) @@ -34954,7 +34948,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 { @@ -35014,21 +35008,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 } @@ -35040,7 +35034,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) @@ -35066,7 +35060,7 @@ func Xsqlite3PagerLockingMode(tls *libc.TLS, pPager uintptr, eMode int32) int32 // * 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 @@ -35136,14 +35130,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 @@ -35158,7 +35152,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) @@ -35170,12 +35164,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) @@ -35187,7 +35181,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 @@ -35198,7 +35192,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+3887, uintptr(0), uintptr(0), uintptr(0)) + Xsqlite3_exec(tls, db, ts+3922, uintptr(0), uintptr(0), uintptr(0)) } if (*Pager)(unsafe.Pointer(pPager)).FpWal != 0 { rc = Xsqlite3WalCheckpoint(tls, (*Pager)(unsafe.Pointer(pPager)).FpWal, db, eMode, @@ -35215,13 +35209,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 @@ -35231,7 +35225,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) @@ -35248,7 +35242,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 @@ -35264,7 +35258,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) @@ -35284,7 +35278,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) { @@ -35314,7 +35308,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) @@ -35354,7 +35348,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) @@ -35365,7 +35359,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) @@ -35377,7 +35371,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) @@ -35397,7 +35391,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) @@ -35409,7 +35403,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) } @@ -35706,7 +35700,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 ******************************************** @@ -35988,7 +35982,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 @@ -36000,18 +35994,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. @@ -36019,7 +36013,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 @@ -36041,7 +36035,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 @@ -36072,7 +36066,7 @@ type WalSegment = struct { // (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 @@ -36118,7 +36112,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) } @@ -36126,13 +36120,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)) } @@ -36150,7 +36144,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 @@ -36182,7 +36176,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) } @@ -36197,7 +36191,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) @@ -36221,7 +36215,7 @@ func walIndexWriteHdr(tls *libc.TLS, pWal uintptr) { /* testdata/sqlite-amalgama // 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: */ +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 @@ -36244,7 +36238,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 @@ -36286,7 +36280,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 @@ -36297,7 +36291,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 } @@ -36306,7 +36300,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 @@ -36317,7 +36311,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 } @@ -36329,12 +36323,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) } @@ -36346,12 +36340,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 @@ -36365,7 +36359,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) @@ -36388,14 +36382,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)) @@ -36413,7 +36407,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) @@ -36456,7 +36450,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) @@ -36497,7 +36491,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 @@ -36516,7 +36510,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) @@ -36631,7 +36625,7 @@ __6: if !(version != U32(WAL_MAX_VERSION)) { goto __7 } - rc = Xsqlite3CantopenError(tls, 62258) + rc = Xsqlite3CantopenError(tls, 62899) goto finished __7: ; @@ -36821,7 +36815,7 @@ __24: goto __30 } Xsqlite3_log(tls, SQLITE_NOTICE|int32(1)<<8, - ts+3905, + ts+3940, libc.VaList(bp, (*Wal)(unsafe.Pointer(pWal)).Fhdr.FmxFrame, (*Wal)(unsafe.Pointer(pWal)).FzWalName)) __30: ; @@ -36835,7 +36829,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++ { @@ -36861,7 +36855,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) @@ -36933,7 +36927,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 } @@ -36947,7 +36941,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 @@ -36994,7 +36988,7 @@ func walIteratorNext(tls *libc.TLS, p uintptr, piPage uintptr, piFrame uintptr) // 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 @@ -37040,7 +37034,7 @@ func walMerge(tls *libc.TLS, aContent uintptr, aLeft uintptr, nLeft int32, paRig // // 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) @@ -37086,10 +37080,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) } @@ -37104,7 +37098,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) @@ -37188,7 +37182,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 @@ -37200,7 +37194,7 @@ 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 } @@ -37219,7 +37213,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 @@ -37270,7 +37264,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) @@ -37401,7 +37395,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) @@ -37562,7 +37556,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) @@ -37576,12 +37570,12 @@ func walLimitSize(tls *libc.TLS, pWal uintptr, nMax I64) { /* testdata/sqlite-am } Xsqlite3EndBenignMalloc(tls) if rx != 0 { - Xsqlite3_log(tls, rx, ts+3942, libc.VaList(bp, (*Wal)(unsafe.Pointer(pWal)).FzWalName)) + Xsqlite3_log(tls, rx, ts+3977, 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) @@ -37653,7 +37647,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) @@ -37722,7 +37716,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) @@ -37802,7 +37796,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 { @@ -37847,7 +37841,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) @@ -38113,7 +38107,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 @@ -38330,7 +38324,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) @@ -38404,7 +38398,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 @@ -38492,7 +38486,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)) @@ -38506,7 +38500,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) @@ -38573,7 +38567,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) } @@ -38589,7 +38583,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) @@ -38606,7 +38600,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 } @@ -38624,7 +38618,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 @@ -38656,7 +38650,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) @@ -38676,7 +38670,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 @@ -38713,7 +38707,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)) @@ -38725,7 +38719,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 { @@ -38756,7 +38750,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) @@ -38810,12 +38804,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. @@ -38823,7 +38817,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) @@ -38845,7 +38839,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) @@ -38870,7 +38864,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) @@ -38924,7 +38918,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) @@ -39157,7 +39151,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) @@ -39222,7 +39216,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) } @@ -39266,7 +39260,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 @@ -39297,7 +39291,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 @@ -39331,14 +39325,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 @@ -39357,16 +39351,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 @@ -39396,7 +39390,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 { @@ -39412,13 +39406,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 } @@ -39694,7 +39688,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 **************************************** @@ -39939,25 +39933,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 @@ -40067,7 +40061,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 @@ -40163,7 +40157,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. @@ -40177,7 +40171,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 @@ -40186,7 +40180,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) @@ -40207,7 +40201,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 @@ -40235,7 +40229,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 @@ -40266,7 +40260,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 { @@ -40289,7 +40283,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 @@ -40304,13 +40298,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 @@ -40322,7 +40316,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) } @@ -40333,11 +40327,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) } @@ -40360,7 +40354,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 + 3968)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:66179:19 */ +var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 4003)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:66820:19 */ // Set this global variable to 1 to enable tracing using the TRACE // macro. @@ -40386,14 +40380,14 @@ var zMagicHeader = *(*[16]int8)(unsafe.Pointer(ts + 3968)) /* 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 } @@ -40410,7 +40404,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 @@ -40467,7 +40461,7 @@ func querySharedCacheTableLock(tls *libc.TLS, p uintptr, iTab Pgno, eLock U8) in // // 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 @@ -40518,7 +40512,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 @@ -40553,7 +40547,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 @@ -40577,7 +40571,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 { @@ -40596,7 +40590,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) @@ -40643,7 +40637,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) { @@ -40663,20 +40657,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++ { @@ -40698,7 +40692,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 { @@ -40735,7 +40729,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 { @@ -40776,7 +40770,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 { @@ -40797,7 +40791,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 { @@ -40816,7 +40810,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) @@ -40825,8 +40819,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 @@ -40839,7 +40833,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) } @@ -40856,7 +40850,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) @@ -40896,7 +40890,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)))) } @@ -40904,12 +40898,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 @@ -40922,7 +40916,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 { @@ -40944,7 +40938,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) } @@ -40956,7 +40950,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 @@ -40981,7 +40975,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) @@ -41004,7 +40998,7 @@ __1: if !(key == Pgno(0)) { goto __2 } - *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67167) + *(*int32)(unsafe.Pointer(pRC)) = Xsqlite3CorruptError(tls, 67808) return __2: ; @@ -41023,7 +41017,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: ; @@ -41031,7 +41025,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: ; @@ -41062,7 +41056,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) @@ -41083,7 +41077,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))) @@ -41093,7 +41087,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 } @@ -41111,7 +41105,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 @@ -41138,7 +41132,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) { @@ -41168,7 +41162,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))) @@ -41178,7 +41172,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) @@ -41255,7 +41249,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 @@ -41286,7 +41280,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(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*iCell))))<<8|int32(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*iCell) + 1))))), pInfo) @@ -41301,8 +41295,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 @@ -41316,14 +41311,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) @@ -41343,7 +41330,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 @@ -41356,11 +41343,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) @@ -41377,7 +41410,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)) @@ -41395,7 +41428,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 @@ -41440,7 +41473,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) { @@ -41450,7 +41483,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) { @@ -41463,7 +41496,7 @@ __4: if !(top >= iFree) { goto __6 } - return Xsqlite3CorruptError(tls, 67654) + return Xsqlite3CorruptError(tls, 68341) __6: ; if !(iFree2 != 0) { @@ -41472,14 +41505,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))) @@ -41489,7 +41522,7 @@ __7: if !(iFree+sz > usableSize) { goto __11 } - return Xsqlite3CorruptError(tls, 67663) + return Xsqlite3CorruptError(tls, 68350) __11: ; __8: @@ -41551,7 +41584,7 @@ __18: if !(pc < iCellStart || pc > iCellLast) { goto __21 } - return Xsqlite3CorruptError(tls, 67692) + return Xsqlite3CorruptError(tls, 68379) __21: ; @@ -41562,7 +41595,7 @@ __21: if !(cbrk < iCellStart || pc+size > usableSize) { goto __22 } - return Xsqlite3CorruptError(tls, 67698) + return Xsqlite3CorruptError(tls, 68385) __22: ; @@ -41597,7 +41630,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: ; @@ -41622,20 +41655,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 { @@ -41653,7 +41688,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 @@ -41664,18 +41699,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) } @@ -41691,7 +41727,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) @@ -41699,6 +41735,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 @@ -41710,13 +41747,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) } } @@ -41731,7 +41769,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 } @@ -41782,7 +41820,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 @@ -41791,6 +41829,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 @@ -41806,12 +41845,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: @@ -41822,11 +41861,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)))) @@ -41839,7 +41878,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)) @@ -41847,20 +41886,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) @@ -41894,15 +41934,12 @@ func freeSpace(tls *libc.TLS, pPage uintptr, iStart U16, iSize U16) int32 { /* t // 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: */ +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 @@ -41914,6 +41951,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})) @@ -41937,6 +41977,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})) @@ -41945,7 +41988,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 @@ -41953,7 +42004,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 @@ -41985,12 +42036,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)))) @@ -42002,11 +42053,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) } } @@ -42017,7 +42068,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 @@ -42025,7 +42076,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 @@ -42047,14 +42098,14 @@ func btreeCellSizeCheck(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite pc = int32(*(*U8)(unsafe.Pointer(data + uintptr(cellOffset+i*2))))<<8 | int32(*(*U8)(unsafe.Pointer(data + uintptr(cellOffset+i*2) + 1))) 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 @@ -42067,7 +42118,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 @@ -42076,7 +42127,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)) @@ -42090,7 +42141,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 @@ -42108,7 +42159,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 @@ -42143,7 +42194,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) @@ -42170,7 +42221,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) @@ -42188,7 +42239,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) @@ -42200,11 +42251,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) } @@ -42220,7 +42271,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) @@ -42230,7 +42281,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: ; @@ -42261,7 +42312,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: ; @@ -42285,18 +42336,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) } @@ -42308,13 +42359,13 @@ func releasePageOne(tls *libc.TLS, pPage uintptr) { /* testdata/sqlite-amalgamat // * 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: */ +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 { @@ -42329,7 +42380,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) @@ -42349,7 +42400,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) @@ -42374,7 +42425,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) @@ -42406,7 +42457,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+3984) == 0 || + isMemdb = libc.Bool32(zFilename != 0 && libc.Xstrcmp(tls, zFilename, ts+4019) == 0 || isTempDb != 0 && Xsqlite3TempInMemory(tls, db) != 0 || vfsFlags&SQLITE_OPEN_MEMORY != 0) @@ -42795,7 +42846,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 @@ -42827,7 +42878,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 @@ -42860,7 +42911,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) @@ -42869,7 +42920,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. @@ -42919,7 +42970,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) @@ -42936,7 +42987,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 @@ -42952,7 +43003,7 @@ func Xsqlite3BtreeSetSpillSize(tls *libc.TLS, p uintptr, mxPage int32) int32 { / // 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) @@ -42979,7 +43030,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 @@ -43013,7 +43064,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) } @@ -43026,7 +43077,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) @@ -43040,7 +43091,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) @@ -43056,7 +43107,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) @@ -43080,7 +43131,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 @@ -43100,7 +43151,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) @@ -43133,7 +43184,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 { @@ -43158,7 +43209,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) @@ -43274,7 +43325,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+3993, uint64(3)) != 0) { + if !(libc.Xmemcmp(tls, page1+21, ts+4028, uint64(3)) != 0) { goto __14 } goto page1_init_failed @@ -43327,7 +43378,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: @@ -43404,7 +43455,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 @@ -43417,7 +43468,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 @@ -43457,7 +43508,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) @@ -43499,7 +43550,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 @@ -43763,7 +43814,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) @@ -43815,14 +43866,14 @@ func setChildPtrmaps(tls *libc.TLS, pPage uintptr) int32 { /* testdata/sqlite-am // // 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: */ +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 { @@ -43850,7 +43901,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) @@ -43867,7 +43918,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) } @@ -43882,7 +43933,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) @@ -43893,7 +43944,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 @@ -43963,7 +44014,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) @@ -43985,7 +44036,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 { @@ -44031,12 +44082,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) @@ -44060,7 +44116,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 @@ -44084,7 +44140,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 @@ -44098,7 +44154,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 { @@ -44119,7 +44175,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 @@ -44142,7 +44198,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) @@ -44173,7 +44229,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)) @@ -44223,7 +44279,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 @@ -44246,7 +44302,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 @@ -44302,7 +44358,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 @@ -44331,7 +44387,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)) @@ -44366,7 +44422,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 @@ -44395,7 +44451,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) @@ -44417,7 +44473,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) @@ -44483,7 +44539,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) @@ -44507,7 +44563,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 @@ -44575,7 +44631,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 @@ -44588,7 +44644,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) @@ -44626,7 +44682,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) @@ -44634,7 +44690,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 { @@ -44649,7 +44705,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))) } @@ -44659,13 +44715,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 @@ -44706,7 +44762,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) @@ -44715,7 +44771,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) } @@ -44724,26 +44780,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)) + I64((int64((*BtCursor)(unsafe.Pointer(pCur)).Finfo.FpPayload)-int64((*MemPage)(unsafe.Pointer((*BtCursor)(unsafe.Pointer(pCur)).FpPage)).FaData))/1) @@ -44756,7 +44812,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 @@ -44773,7 +44829,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) } @@ -44795,7 +44851,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) @@ -44863,7 +44919,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) @@ -44905,7 +44961,7 @@ func copyPayload(tls *libc.TLS, pPayload uintptr, pBuf uintptr, nByte int32, eOp // * 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: */ +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) @@ -44916,7 +44972,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) @@ -44927,7 +44983,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. @@ -44984,7 +45040,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 */)) @@ -45044,7 +45100,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 } @@ -45064,7 +45120,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) } @@ -45072,7 +45128,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 @@ -45085,7 +45141,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) @@ -45112,7 +45168,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) @@ -45143,7 +45199,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) } @@ -45154,11 +45210,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)) @@ -45175,7 +45231,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) @@ -45205,7 +45261,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 @@ -45284,7 +45340,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: ; @@ -45305,7 +45361,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)) @@ -45327,7 +45383,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 @@ -45348,7 +45404,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) @@ -45369,7 +45425,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) @@ -45388,7 +45444,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. @@ -45437,7 +45493,7 @@ func Xsqlite3BtreeLast(tls *libc.TLS, pCur uintptr, pRes uintptr) int32 { /* tes // // *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: */ +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) @@ -45552,7 +45608,7 @@ __19: if !(pCell >= (*MemPage)(unsafe.Pointer(pPage)).FaDataEnd) { goto __21 } - return Xsqlite3CorruptError(tls, 71747) + return Xsqlite3CorruptError(tls, 72453) __21: ; goto __19 @@ -45656,6 +45712,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(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*idx))))<<8|int32(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*idx) + 1))))) + + 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. // @@ -45681,9 +45796,10 @@ moveto_table_finish: // // 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 @@ -45700,7 +45816,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 @@ -45708,23 +45824,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 @@ -45737,7 +45899,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(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*idx))))<<8|int32(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*idx) + 1))))) // The maximum supported page-size is 65536 bytes. This means that @@ -45749,29 +45911,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 { @@ -45783,112 +45945,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(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*lwr))))<<8|int32(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*lwr) + 1)))))) -__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) @@ -45901,7 +46063,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. @@ -45911,7 +46073,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 @@ -45950,7 +46112,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 @@ -45987,7 +46149,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) { @@ -46020,7 +46182,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 @@ -46060,7 +46222,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 @@ -46114,7 +46276,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)) @@ -46148,7 +46310,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) @@ -46215,7 +46377,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)) { @@ -46296,7 +46458,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) @@ -46338,7 +46500,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: @@ -46383,7 +46545,7 @@ __27: if !(iNewTrunk > mxPage) { goto __32 } - rc = Xsqlite3CorruptError(tls, 72382) + rc = Xsqlite3CorruptError(tls, 73190) goto end_allocate_page __32: ; @@ -46497,7 +46659,7 @@ __40: if !(iPage > mxPage || iPage < Pgno(2)) { goto __51 } - rc = Xsqlite3CorruptError(tls, 72447) + rc = Xsqlite3CorruptError(tls, 73255) goto end_allocate_page __51: ; @@ -46672,7 +46834,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) @@ -46693,7 +46855,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) { @@ -46763,7 +46925,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: ; @@ -46780,7 +46942,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: ; @@ -46861,14 +47023,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) @@ -46880,7 +47042,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 @@ -46895,7 +47057,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) @@ -46915,7 +47077,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) } @@ -46947,7 +47109,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) @@ -47129,7 +47291,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[] @@ -47147,7 +47309,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)) @@ -47183,7 +47345,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) @@ -47344,7 +47506,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 @@ -47421,11 +47583,11 @@ type CellArray1 = struct { // 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 { @@ -47442,7 +47604,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 @@ -47450,7 +47612,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)) @@ -47469,7 +47631,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) @@ -47500,12 +47662,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) @@ -47513,7 +47675,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)) @@ -47563,7 +47725,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) @@ -47601,7 +47763,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)) @@ -47628,7 +47790,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)) @@ -47680,7 +47842,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) @@ -47714,7 +47876,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)) @@ -47854,7 +48016,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) @@ -47867,7 +48029,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 @@ -47965,7 +48127,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 @@ -48045,7 +48207,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) @@ -48347,7 +48509,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: ; @@ -48375,7 +48537,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: ; @@ -48554,7 +48716,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: ; @@ -48628,7 +48790,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: ; @@ -48701,7 +48863,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: ; @@ -48738,7 +48900,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) { @@ -48822,7 +48984,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: ; @@ -49075,7 +49237,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: ; @@ -49297,7 +49459,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) @@ -49348,13 +49510,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 @@ -49368,12 +49530,11 @@ func anotherValidCursor(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite- // balance_quick() // balance_deeper() // balance_nonroot() -func balance(tls *libc.TLS, pCur uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:74743:12: */ +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) @@ -49385,7 +49546,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 { @@ -49487,7 +49652,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 @@ -49529,7 +49694,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) @@ -49543,7 +49708,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, @@ -49567,7 +49732,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) @@ -49601,7 +49766,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 @@ -49614,15 +49779,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 @@ -49630,16 +49795,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) @@ -49657,11 +49822,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) { @@ -49672,20 +49837,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: @@ -49739,12 +49907,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: @@ -49774,17 +49942,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: @@ -49800,10 +49968,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: @@ -49819,16 +49987,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: @@ -49839,35 +50008,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 @@ -49882,11 +50051,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 @@ -49901,20 +50070,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. @@ -49930,21 +50099,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 @@ -49965,7 +50134,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 @@ -49992,7 +50161,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. @@ -50000,7 +50169,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) @@ -50012,7 +50181,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)) @@ -50028,7 +50197,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 @@ -50044,7 +50213,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) @@ -50056,22 +50225,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) { @@ -50094,7 +50259,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)) } @@ -50176,7 +50341,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) @@ -50200,7 +50365,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) } } @@ -50208,11 +50373,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(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*iCellIdx))))<<8|int32(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pPage)).FaCellIdx + uintptr(2*iCellIdx) + 1))))) 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 @@ -50233,7 +50398,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. @@ -50321,7 +50488,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(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pLeaf)).FaCellIdx + uintptr(2*(int32((*MemPage)(unsafe.Pointer(pLeaf)).FnCell)-1)))))<<8|int32(*(*U8)(unsafe.Pointer((*MemPage)(unsafe.Pointer(pLeaf)).FaCellIdx + uintptr(2*(int32((*MemPage)(unsafe.Pointer(pLeaf)).FnCell)-1)) + 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 @@ -50354,7 +50521,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-- @@ -50398,7 +50572,7 @@ func Xsqlite3BtreeDelete(tls *libc.TLS, pCur uintptr, flags U8) int32 { /* testd // // 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: */ +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) @@ -50428,7 +50602,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 */))++ @@ -50471,7 +50645,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 */))) @@ -50534,7 +50708,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) @@ -50544,7 +50718,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) @@ -50560,7 +50734,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) @@ -50574,7 +50748,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: ; @@ -50678,7 +50852,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) @@ -50701,7 +50875,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)) } @@ -50723,7 +50897,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) @@ -50733,7 +50907,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)) @@ -50805,7 +50979,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) @@ -50831,7 +51005,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) @@ -50850,7 +51024,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 @@ -50876,7 +51050,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 @@ -50939,12 +51113,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) @@ -50957,7 +51131,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+3997, 1) + Xsqlite3_str_append(tls, pCheck+56, ts+4032, 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)) @@ -50971,13 +51145,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))) } @@ -50988,16 +51162,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+3999, libc.VaList(bp, iPage)) + checkAppendMsg(tls, pCheck, ts+4034, libc.VaList(bp, iPage)) return 1 } if getPageReferenced(tls, pCheck, iPage) != 0 { - checkAppendMsg(tls, pCheck, ts+4022, libc.VaList(bp+8, iPage)) + checkAppendMsg(tls, pCheck, ts+4057, libc.VaList(bp+8, iPage)) return 1 } if *(*int32)(unsafe.Pointer((*IntegrityCk)(unsafe.Pointer(pCheck)).Fdb + 432)) != 0 { @@ -51010,7 +51184,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) @@ -51024,20 +51198,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+4047, libc.VaList(bp, iChild)) + checkAppendMsg(tls, pCheck, ts+4082, libc.VaList(bp, iChild)) return } if int32(*(*U8)(unsafe.Pointer(bp + 48))) != int32(eType) || *(*Pgno)(unsafe.Pointer(bp + 52)) != iParent { checkAppendMsg(tls, pCheck, - ts+4076, + ts+4111, 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) @@ -51053,7 +51227,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+4130, libc.VaList(bp, iPage)) + checkAppendMsg(tls, pCheck, ts+4165, libc.VaList(bp, iPage)) break } pOvflData = Xsqlite3PagerGetData(tls, *(*uintptr)(unsafe.Pointer(bp + 40 /* pOvflPage */))) @@ -51064,7 +51238,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+4152, libc.VaList(bp+8, iPage)) + ts+4187, libc.VaList(bp+8, iPage)) N-- } else { for i = 0; i < int32(n); i++ { @@ -51090,12 +51264,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+4191, + ts+4226, libc.VaList(bp+16, func() uintptr { if isFreeList != 0 { - return ts + 4217 /* "size" */ + return ts + 4252 /* "size" */ } - return ts + 4222 /* "overflow list le..." */ + return ts + 4257 /* "overflow list le..." */ }(), expected-N, expected)) } @@ -51121,7 +51295,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 @@ -51133,7 +51307,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 @@ -51172,7 +51346,7 @@ func btreeHeapPull(tls *libc.TLS, aHeap uintptr, pOut uintptr) int32 { /* testda // 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: */ +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 @@ -51239,13 +51413,13 @@ __1: return 0 __2: ; - (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4243 /* "Page %u: " */ + (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4278 /* "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+4253, libc.VaList(bp, rc)) + ts+4288, libc.VaList(bp, rc)) goto end_of_check __3: ; @@ -51259,7 +51433,7 @@ __3: } // The only possible error from InitPage checkAppendMsg(tls, pCheck, - ts+4291, libc.VaList(bp+8, rc)) + ts+4326, libc.VaList(bp+8, rc)) goto end_of_check __4: ; @@ -51267,7 +51441,7 @@ __4: goto __5 } - checkAppendMsg(tls, pCheck, ts+4329, libc.VaList(bp+16, rc)) + checkAppendMsg(tls, pCheck, ts+4364, libc.VaList(bp+16, rc)) goto end_of_check __5: ; @@ -51275,7 +51449,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 + 4351 /* "On tree page %u ..." */ + (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4386 /* "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() @@ -51297,7 +51471,7 @@ __5: if !((*BtShared)(unsafe.Pointer(pBt)).FautoVacuum != 0) { goto __8 } - (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4377 /* "On page %u at ri..." */ + (*IntegrityCk)(unsafe.Pointer(pCheck)).FzPfx = ts + 4412 /* "On page %u at ri..." */ checkPtrmap(tls, pCheck, uint32(pgno), uint8(PTRMAP_BTREE), iPage) __8: ; @@ -51328,7 +51502,7 @@ __9: if !(pc < contentOffset || pc > usableSize-U32(4)) { goto __12 } - checkAppendMsg(tls, pCheck, ts+4405, + checkAppendMsg(tls, pCheck, ts+4440, libc.VaList(bp+24, pc, contentOffset, usableSize-U32(4))) doCoverageCheck = 0 goto __10 @@ -51341,7 +51515,7 @@ __12: if !(pc+U32((*CellInfo)(unsafe.Pointer(bp+112)).FnSize) > usableSize) { goto __13 } - checkAppendMsg(tls, pCheck, ts+4435, 0) + checkAppendMsg(tls, pCheck, ts+4470, 0) doCoverageCheck = 0 goto __10 __13: @@ -51359,7 +51533,7 @@ __13: }() != 0) { goto __15 } - checkAppendMsg(tls, pCheck, ts+4459, libc.VaList(bp+48, (*CellInfo)(unsafe.Pointer(bp+112 /* &info */)).FnKey)) + checkAppendMsg(tls, pCheck, ts+4494, 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 @@ -51400,7 +51574,7 @@ __20: if !(d2 != depth) { goto __21 } - checkAppendMsg(tls, pCheck, ts+4483, 0) + checkAppendMsg(tls, pCheck, ts+4518, 0) depth = d2 __21: ; @@ -51500,7 +51674,7 @@ __29: goto __31 } checkAppendMsg(tls, pCheck, - ts+4508, libc.VaList(bp+56, *(*U32)(unsafe.Pointer(bp + 136))>>16, iPage)) + ts+4543, libc.VaList(bp+56, *(*U32)(unsafe.Pointer(bp + 136))>>16, iPage)) goto __30 goto __32 __31: @@ -51520,7 +51694,7 @@ __30: goto __33 } checkAppendMsg(tls, pCheck, - ts+4545, + ts+4580, libc.VaList(bp+72, nFrag, int32(*(*U8)(unsafe.Pointer(data + uintptr(hdr+7)))), iPage)) __33: ; @@ -51561,7 +51735,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) @@ -51649,7 +51823,7 @@ __6: if !(bCkFreelist != 0) { goto __7 } - (*IntegrityCk)(unsafe.Pointer(bp + 32 /* &sCheck */)).FzPfx = ts + 4597 /* "Main freelist: " */ + (*IntegrityCk)(unsafe.Pointer(bp + 32 /* &sCheck */)).FzPfx = ts + 4632 /* "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) @@ -51687,7 +51861,7 @@ __13: goto __15 } checkAppendMsg(tls, bp+32, - ts+4613, + ts+4648, libc.VaList(bp, mx, mxInHdr)) __15: ; @@ -51697,7 +51871,7 @@ __9: goto __16 } checkAppendMsg(tls, bp+32, - ts+4658, 0) + ts+4693, 0) __16: ; __10: @@ -51747,13 +51921,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+4713, libc.VaList(bp+16, i)) + checkAppendMsg(tls, bp+32, ts+4748, 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+4735, libc.VaList(bp+24, i)) + checkAppendMsg(tls, bp+32, ts+4770, libc.VaList(bp+24, i)) __27: ; goto __24 @@ -51795,7 +51969,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) } @@ -51806,14 +51980,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) @@ -51827,7 +52001,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 @@ -51843,7 +52017,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) } @@ -51866,7 +52040,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 { @@ -51880,7 +52054,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) @@ -51893,7 +52067,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 { @@ -51917,7 +52091,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 { @@ -51957,7 +52131,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) } @@ -51965,7 +52139,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 @@ -51997,29 +52171,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 } @@ -52059,7 +52233,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) @@ -52071,7 +52245,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+3598, libc.VaList(bp, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg)) + Xsqlite3ErrorWithMsg(tls, pErrorDb, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).Frc, ts+3633, libc.VaList(bp, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg)) rc = SQLITE_ERROR } Xsqlite3DbFree(tls, pErrorDb, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg) @@ -52082,7 +52256,7 @@ func findBtree(tls *libc.TLS, pErrorDb uintptr, pDb uintptr, zDb uintptr) uintpt } if i < 0 { - Xsqlite3ErrorWithMsg(tls, pErrorDb, SQLITE_ERROR, ts+4769, libc.VaList(bp+8, zDb)) + Xsqlite3ErrorWithMsg(tls, pErrorDb, SQLITE_ERROR, ts+4804, libc.VaList(bp+8, zDb)) return uintptr(0) } @@ -52091,7 +52265,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 @@ -52101,9 +52275,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+4789, 0) + Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+4824, 0) return SQLITE_ERROR } return SQLITE_OK @@ -52115,7 +52289,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 @@ -52130,7 +52304,7 @@ func Xsqlite3_backup_init(tls *libc.TLS, pDestDb uintptr, zDestDb uintptr, pSrcD if pSrcDb == pDestDb { Xsqlite3ErrorWithMsg(tls, - pDestDb, SQLITE_ERROR, ts+4820, 0) + pDestDb, SQLITE_ERROR, ts+4855, 0) p = uintptr(0) } else { // Allocate space for a new sqlite3_backup object... @@ -52175,14 +52349,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) @@ -52244,7 +52418,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) @@ -52259,7 +52433,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)) @@ -52269,7 +52443,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) @@ -52507,7 +52681,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 @@ -52565,13 +52739,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) } @@ -52585,7 +52759,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) { @@ -52606,7 +52780,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) } @@ -52621,7 +52795,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 { @@ -52635,7 +52809,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) @@ -52729,7 +52903,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(40) defer tls.Free(40) @@ -52739,7 +52913,7 @@ func vdbeMemRenderNum(tls *libc.TLS, sz int32, zBuf uintptr, p uintptr) { /* tes Xsqlite3Int64ToText(tls, *(*I64)(unsafe.Pointer(p)), zBuf) } else { Xsqlite3StrAccumInit(tls, bp+8, uintptr(0), zBuf, sz, 0) - Xsqlite3_str_appendf(tls, bp+8, ts+4860, + Xsqlite3_str_appendf(tls, bp+8, ts+4895, libc.VaList(bp, func() float64 { if int32((*Mem)(unsafe.Pointer(p)).Fflags)&MEM_IntReal != 0 { return float64(*(*I64)(unsafe.Pointer(p))) @@ -52762,7 +52936,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) { @@ -52786,14 +52960,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) { @@ -52827,7 +53001,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 } @@ -52842,14 +53016,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 } @@ -52860,14 +53034,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 } @@ -52875,7 +53049,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 { @@ -52893,14 +53067,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. @@ -52916,13 +53090,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 @@ -52944,7 +53118,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 { @@ -52956,9 +53130,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 @@ -52970,7 +53144,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) @@ -52985,6 +53159,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 { @@ -53000,7 +53175,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) @@ -53011,6 +53186,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 } @@ -53022,7 +53198,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))) @@ -53041,7 +53217,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) } @@ -53060,17 +53236,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 @@ -53082,8 +53267,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. @@ -53094,7 +53279,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) @@ -53103,7 +53288,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) @@ -53124,7 +53309,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) @@ -53134,7 +53319,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)) @@ -53152,7 +53337,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)) @@ -53165,7 +53350,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))) @@ -53186,7 +53371,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) @@ -53195,7 +53380,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) @@ -53210,7 +53395,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 @@ -53227,7 +53412,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) @@ -53245,7 +53430,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 } @@ -53254,7 +53439,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 } @@ -53268,7 +53453,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 @@ -53294,10 +53479,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)) } @@ -53308,7 +53493,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 @@ -53325,7 +53510,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 { @@ -53333,13 +53518,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 @@ -53354,7 +53539,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) @@ -53362,7 +53547,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 { @@ -53372,13 +53557,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 { @@ -53400,7 +53585,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 @@ -53413,7 +53598,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 @@ -53430,7 +53615,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 @@ -53446,13 +53631,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) @@ -53460,25 +53645,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) } } @@ -53490,7 +53675,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{}))) @@ -53511,10 +53696,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) { @@ -53527,12 +53719,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 { @@ -53541,7 +53727,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 @@ -53557,9 +53759,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) { @@ -53573,9 +53772,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 { @@ -53591,23 +53788,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 } @@ -53624,11 +53810,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) @@ -53643,7 +53829,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) @@ -53668,7 +53854,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 { @@ -53679,7 +53865,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)) } @@ -53713,7 +53899,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) } @@ -53729,7 +53915,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) @@ -53746,7 +53932,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 @@ -53757,7 +53943,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)) @@ -53813,7 +53999,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) @@ -53896,6 +54082,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) @@ -53903,7 +54090,7 @@ __9: goto __10 } rc = (*Sqlite3_context)(unsafe.Pointer(bp + 8 /* &ctx */)).FisError - Xsqlite3ErrorMsg(tls, (*ValueNewStat4Ctx)(unsafe.Pointer(pCtx)).FpParse, ts+3598, libc.VaList(bp, Xsqlite3_value_text(tls, pVal))) + Xsqlite3ErrorMsg(tls, (*ValueNewStat4Ctx)(unsafe.Pointer(pCtx)).FpParse, ts+3633, libc.VaList(bp, Xsqlite3_value_text(tls, pVal))) goto __11 __10: Xsqlite3ValueApplyAffinity(tls, pVal, aff, uint8(SQLITE_UTF8)) @@ -53959,7 +54146,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) @@ -54008,8 +54195,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 @@ -54025,7 +54212,7 @@ __4: pExpr = (*Expr)(unsafe.Pointer(pExpr)).FpLeft op = int32((*Expr)(unsafe.Pointer(pExpr)).Fop) negInt = -1 - zNeg = ts + 4867 /* "-" */ + zNeg = ts + 4902 /* "-" */ __6: ; @@ -54045,16 +54232,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+4869, libc.VaList(bp, zNeg, *(*uintptr)(unsafe.Pointer(pExpr + 8)))) + zVal = Xsqlite3MPrintf(tls, db, ts+4904, 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) { @@ -54071,7 +54256,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) { @@ -54142,9 +54327,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)) { @@ -54207,7 +54390,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)) } @@ -54230,7 +54413,7 @@ func Xsqlite3ValueFromExpr(tls *libc.TLS, db uintptr, pExpr uintptr, enc U8, aff // // 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) @@ -54298,7 +54481,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) @@ -54343,7 +54526,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) } @@ -54353,7 +54536,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) @@ -54374,7 +54557,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++ { @@ -54389,14 +54572,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)) @@ -54412,7 +54595,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) @@ -54427,14 +54610,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 } @@ -54445,14 +54628,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) { @@ -54472,14 +54655,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 @@ -54487,7 +54670,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 @@ -54496,12 +54679,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) @@ -54511,7 +54694,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 } @@ -54524,7 +54707,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 @@ -54543,8 +54726,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 @@ -54555,7 +54738,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 @@ -54608,7 +54791,7 @@ func growOpArray(tls *libc.TLS, v uintptr, nOp int32) int32 { /* testdata/sqlite // 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 @@ -54617,7 +54800,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 @@ -54640,26 +54823,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) } @@ -54672,7 +54855,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 @@ -54720,7 +54903,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 @@ -54734,7 +54917,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 @@ -54759,14 +54942,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)) @@ -54776,7 +54959,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 @@ -54792,7 +54975,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 { @@ -54807,7 +54990,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 @@ -54816,7 +54999,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) } @@ -54827,9 +55010,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) @@ -54838,7 +55021,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 @@ -54849,7 +55032,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 @@ -54884,14 +55067,14 @@ func Xsqlite3VdbeEndCoroutine(tls *libc.TLS, v uintptr, regYield int32) { /* tes // 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: */ +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(uint64(nNewSize)*uint64(unsafe.Sizeof(int32(0))))) @@ -54903,7 +55086,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 @@ -54916,13 +55099,19 @@ 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 @@ -54937,20 +55126,20 @@ func Xsqlite3VdbeReusable(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgam // (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. +// (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 { @@ -54966,7 +55155,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) } /* no break */ @@ -54976,7 +55165,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 } @@ -54987,38 +55176,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 } @@ -55068,15 +55227,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 } @@ -55107,7 +55268,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 @@ -55123,7 +55284,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 @@ -55161,29 +55322,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 @@ -55192,7 +55353,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) } @@ -55207,7 +55368,7 @@ func Xsqlite3VdbeJumpHere(tls *libc.TLS, p uintptr, addr int32) { /* testdata/sq // // 7 Once 0 8 0 // 8 ... -func Xsqlite3VdbeJumpHereOrPopInst(tls *libc.TLS, p uintptr, addr int32) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:80888:21: */ +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-- @@ -55218,49 +55379,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) @@ -55268,13 +55427,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) @@ -55284,7 +55443,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) @@ -55298,13 +55457,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) } @@ -55313,18 +55477,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 @@ -55340,7 +55504,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 { @@ -55364,7 +55528,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) @@ -55377,11 +55541,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 @@ -55392,7 +55556,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 @@ -55415,7 +55579,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 */))) } } @@ -55428,7 +55592,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 { @@ -55444,13 +55608,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) } } @@ -55465,7 +55629,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 @@ -55479,11 +55643,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) @@ -55492,12 +55656,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+4874, libc.VaList(bp, int32((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnKeyField))) + Xsqlite3_str_appendf(tls, bp+144, ts+4909, 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 @@ -55507,24 +55671,24 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* zColl = ts + 1518 /* "" */ } if libc.Xstrcmp(tls, zColl, ts+1063) == 0 { - zColl = ts + 4879 /* "B" */ + zColl = ts + 4914 /* "B" */ } - Xsqlite3_str_appendf(tls, bp+144, ts+4881, + Xsqlite3_str_appendf(tls, bp+144, ts+4916, libc.VaList(bp+8, func() uintptr { if int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(j))))&KEYINFO_ORDER_DESC != 0 { - return ts + 4867 /* "-" */ + return ts + 4902 /* "-" */ } return ts + 1518 /* "" */ }(), func() uintptr { if int32(*(*U8)(unsafe.Pointer((*KeyInfo)(unsafe.Pointer(pKeyInfo)).FaSortFlags + uintptr(j))))&KEYINFO_ORDER_BIGNULL != 0 { - return ts + 4889 /* "N." */ + return ts + 4924 /* "N." */ } return ts + 1518 /* "" */ }(), zColl)) } - Xsqlite3_str_append(tls, bp+144, ts+4892, 1) + Xsqlite3_str_append(tls, bp+144, ts+4927, 1) break } @@ -55532,26 +55696,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+4894, libc.VaList(bp+32, (*CollSeq)(unsafe.Pointer(pColl)).FzName, + Xsqlite3_str_appendf(tls, bp+144, ts+4929, 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+4903, libc.VaList(bp+48, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg))) + Xsqlite3_str_appendf(tls, bp+144, ts+4938, 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+4903, libc.VaList(bp+64, (*FuncDef)(unsafe.Pointer(pDef)).FzName, int32((*FuncDef)(unsafe.Pointer(pDef)).FnArg))) + Xsqlite3_str_appendf(tls, bp+144, ts+4938, 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+1298, libc.VaList(bp+80, *(*I64)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))))) break @@ -55559,17 +55723,17 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* } case -3: { - Xsqlite3_str_appendf(tls, bp+144, ts+4910, libc.VaList(bp+88, *(*int32)(unsafe.Pointer(pOp + 16)))) + Xsqlite3_str_appendf(tls, bp+144, ts+4945, libc.VaList(bp+88, *(*int32)(unsafe.Pointer(pOp + 16)))) break } - case -13: + case -12: { Xsqlite3_str_appendf(tls, bp+144, ts+1292, 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 { @@ -55582,50 +55746,43 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* zP4 = ts + 1519 /* "NULL" */ } else { - zP4 = ts + 4913 /* "(blob)" */ + zP4 = ts + 4948 /* "(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+4920, libc.VaList(bp+120, pVtab)) + Xsqlite3_str_appendf(tls, bp+144, ts+4955, 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+4928, libc.VaList(bp+128, func() int32 { + Xsqlite3_str_appendf(tls, bp+144, ts+4963, 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+4933, 1) + Xsqlite3_str_append(tls, bp+144, ts+4968, 1) break } case -4: { - zP4 = ts + 4935 /* "program" */ + zP4 = ts + 4970 /* "program" */ break } - case -17: - fallthrough case -5: - { - break - - } - case -6: { zP4 = (*Table)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pOp + 16)))).FzName break @@ -55646,7 +55803,7 @@ func Xsqlite3VdbeDisplayP4(tls *libc.TLS, db uintptr, pOp uintptr) uintptr { /* return Xsqlite3StrAccumFinish(tls, bp+144) } -var encnames = [4]uintptr{ts + 4943, ts + 4945, ts + 4947, ts + 4952} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:81465:25 */ +var encnames = [4]uintptr{ts + 4978, ts + 4980, ts + 4982, ts + 4987} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:82397:25 */ // Declare to the Vdbe that the BTree object at db->aDb[i] is used. // @@ -55654,11 +55811,11 @@ var encnames = [4]uintptr{ts + 4943, ts + 4945, ts + 4947, ts + 4952} /* 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 } } @@ -55681,7 +55838,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 @@ -55700,7 +55857,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 @@ -55715,7 +55872,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 @@ -55723,17 +55880,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 @@ -55762,12 +55938,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) } } } @@ -55777,7 +55953,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 @@ -55789,7 +55965,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 @@ -55888,13 +56064,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) @@ -55917,7 +56095,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) @@ -55927,7 +56105,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 @@ -55957,7 +56135,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 @@ -55967,7 +56145,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)) @@ -56006,7 +56184,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 @@ -56021,10 +56199,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) @@ -56038,12 +56216,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 @@ -56071,7 +56248,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) @@ -56106,13 +56283,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 @@ -56120,7 +56297,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 @@ -56135,7 +56312,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 @@ -56152,7 +56329,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{})))) @@ -56178,16 +56355,19 @@ func Xsqlite3VdbeMakeReady(tls *libc.TLS, p uintptr, pParse uintptr) { /* testda } var azColName = [12]uintptr{ - ts + 4957, ts + 4962, ts + 4969, ts + 4972, ts + 4975, ts + 4978, ts + 4981, ts + 4984, - ts + 4992, ts + 4995, ts + 5002, ts + 5010, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:82193:23 */ + ts + 4992, ts + 4997, ts + 5004, ts + 5007, ts + 5010, ts + 5013, ts + 5016, ts + 5019, + ts + 5027, ts + 5030, ts + 5037, ts + 5045, +} /* 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: { @@ -56218,15 +56398,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) } } } @@ -56234,7 +56412,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 @@ -56246,7 +56424,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 @@ -56258,7 +56436,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 { @@ -56269,9 +56447,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 @@ -56280,7 +56456,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) } } @@ -56289,7 +56465,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 @@ -56314,7 +56490,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 @@ -56333,7 +56509,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) @@ -56430,7 +56606,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+5017, libc.VaList(bp, 0, zMainFile, 0)) + zSuper = Xsqlite3MPrintf(tls, db, ts+5052, libc.VaList(bp, 0, zMainFile, 0)) if zSuper == uintptr(0) { return SQLITE_NOMEM } @@ -56440,16 +56616,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+5029, libc.VaList(bp+24, zSuper)) + Xsqlite3_log(tls, SQLITE_FULL, ts+5064, libc.VaList(bp+24, zSuper)) Xsqlite3OsDelete(tls, pVfs, zSuper, 0) break } else if retryCount == 1 { - Xsqlite3_log(tls, SQLITE_FULL, ts+5043, libc.VaList(bp+32, zSuper)) + Xsqlite3_log(tls, SQLITE_FULL, ts+5078, libc.VaList(bp+32, zSuper)) } } retryCount++ Xsqlite3_randomness(tls, int32(unsafe.Sizeof(U32(0))), bp+56) - Xsqlite3_snprintf(tls, 13, zSuper+uintptr(nMainFile), ts+5058, + Xsqlite3_snprintf(tls, 13, zSuper+uintptr(nMainFile), ts+5093, 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. @@ -56561,7 +56737,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 @@ -56579,7 +56755,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 @@ -56622,7 +56798,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) } @@ -56637,14 +56813,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+5071, 0) - return SQLITE_ERROR + Xsqlite3VdbeError(tls, p, ts+5106, 0) + if int32((*Vdbe)(unsafe.Pointer(p)).FprepFlags)&SQLITE_PREPARE_SAVESQL == 0 { + return SQLITE_ERROR + } + return SQLITE_CONSTRAINT | int32(3)<<8 } return SQLITE_OK } @@ -56660,7 +56839,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 @@ -56679,9 +56858,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 } @@ -56689,7 +56865,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 @@ -56719,8 +56895,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 @@ -56745,11 +56921,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 } @@ -56764,7 +56940,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 { @@ -56817,7 +56993,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 { @@ -56831,17 +57007,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-- } - (*Vdbe)(unsafe.Pointer(p)).FiVdbeMagic = U32(VDBE_MAGIC_HALT) + if Bft(int32(*(*uint8)(unsafe.Pointer(p + 200))&0x80>>7)) != 0 { + (*Sqlite3)(unsafe.Pointer(db)).FnVdbeRead-- + } + + (*Vdbe)(unsafe.Pointer(p)).FeVdbeState = U8(VDBE_HALT_STATE) if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { (*Vdbe)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM @@ -56864,7 +57038,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 } @@ -56874,7 +57048,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 { @@ -56901,19 +57075,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 @@ -56926,19 +57099,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 + 3598 /* "%s" */ - } - return uintptr(0) - }(), libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg)) } // Reset register contents and reclaim error message memory. @@ -56949,15 +57109,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) } @@ -56979,7 +57139,7 @@ func Xsqlite3VdbeFinalize(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-a // // * 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: */ +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 || @@ -57004,51 +57164,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) @@ -57061,7 +57227,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) @@ -57073,7 +57239,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) @@ -57091,40 +57257,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 -} +func Xsqlite3VdbeCursorRestore(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:84292:20: */ -// 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)) - - 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 } @@ -57134,7 +57270,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 @@ -57170,7 +57306,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), @@ -57185,22 +57321,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 @@ -57236,58 +57372,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 @@ -57298,7 +57382,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) @@ -57325,7 +57409,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 @@ -57428,7 +57512,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 @@ -57442,15 +57526,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) @@ -57460,7 +57544,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) @@ -57521,7 +57605,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) @@ -57555,8 +57639,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) @@ -57564,7 +57648,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 { @@ -57577,7 +57661,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 @@ -57617,7 +57701,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) @@ -57663,7 +57747,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 @@ -57757,7 +57841,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) @@ -57820,7 +57904,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) @@ -57839,30 +57923,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 } @@ -57927,7 +58008,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 @@ -57935,7 +58016,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 { @@ -57962,7 +58043,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) { @@ -58023,7 +58104,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) } @@ -58034,7 +58115,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) @@ -58116,7 +58197,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 { @@ -58139,61 +58220,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 } @@ -58201,7 +58333,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() @@ -58230,6 +58362,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})) @@ -58238,6 +58371,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})) @@ -58255,7 +58390,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) @@ -58320,7 +58455,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 @@ -58332,15 +58467,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 @@ -58352,7 +58487,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) @@ -58368,7 +58503,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) @@ -58376,13 +58511,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 @@ -58390,8 +58525,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 @@ -58410,20 +58545,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 } @@ -58433,7 +58568,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 @@ -58453,12 +58588,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) } } @@ -58469,7 +58604,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) @@ -58482,13 +58617,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 + 5101 /* "a CHECK constrai..." */ + zContext = ts + 5136 /* "a CHECK constrai..." */ } else if int32((*VdbeOp)(unsafe.Pointer(pOp)).Fp5)&NC_GenCol != 0 { - zContext = ts + 5120 /* "a generated colu..." */ + zContext = ts + 5155 /* "a generated colu..." */ } else { - zContext = ts + 5139 /* "an index" */ + zContext = ts + 5174 /* "an index" */ } - zMsg = Xsqlite3_mprintf(tls, ts+5148, + zMsg = Xsqlite3_mprintf(tls, ts+5183, 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) @@ -58500,7 +58635,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) @@ -58516,13 +58651,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) @@ -58533,7 +58668,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) @@ -58585,7 +58720,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 **************************************** @@ -58611,17 +58746,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+5184, 0) + Xsqlite3_log(tls, SQLITE_MISUSE, ts+5219, 0) return 1 } else { return 0 @@ -58629,9 +58764,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+5229, 0) + Xsqlite3_log(tls, SQLITE_MISUSE, ts+5264, 0) return 1 } else { return vdbeSafety(tls, p) @@ -58641,7 +58776,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) @@ -58674,7 +58809,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 @@ -58684,7 +58819,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) { @@ -58704,7 +58839,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 @@ -58726,7 +58861,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 @@ -58738,7 +58873,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 @@ -58748,7 +58883,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 { @@ -58760,7 +58895,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 } @@ -58771,27 +58906,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 { @@ -58801,7 +58936,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) && @@ -58814,26 +58949,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]) } @@ -58902,20 +59037,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) @@ -58926,22 +59061,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) } @@ -58956,8 +59094,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) @@ -58967,10 +59106,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 @@ -58983,12 +59127,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) @@ -58997,39 +59141,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) @@ -59037,19 +59181,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) @@ -59061,42 +59205,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 @@ -59104,21 +59258,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+5269, int64(-1), + Xsqlite3VdbeMemSetStr(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx)).FpOut, ts+5304, 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 @@ -59128,17 +59282,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++ { @@ -59165,62 +59319,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. @@ -59235,7 +59364,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: ; @@ -59243,84 +59372,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 @@ -59332,18 +59496,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 @@ -59369,7 +59532,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) } } @@ -59379,7 +59546,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 } @@ -59392,7 +59559,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 } @@ -59409,14 +59576,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) @@ -59427,7 +59594,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+5292) + pRhs = Xsqlite3_value_pointer(tls, pVal, ts+5327) if pRhs == uintptr(0) { return SQLITE_MISUSE } @@ -59474,13 +59641,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) } @@ -59489,7 +59656,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) @@ -59497,7 +59664,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 */ } @@ -59512,7 +59679,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 { @@ -59532,7 +59699,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) @@ -59550,7 +59717,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) { @@ -59573,7 +59740,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 @@ -59653,13 +59820,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) @@ -59669,7 +59836,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 @@ -59678,19 +59845,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 @@ -59725,7 +59892,7 @@ func columnMem(tls *libc.TLS, pStmt uintptr, i int32) uintptr { /* testdata/sqli // sqlite3_column_bytes() // sqlite3_column_bytes16() // sqiite3_column_blob() -func columnMallocFailure(tls *libc.TLS, pStmt uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:86230:13: */ +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 @@ -59742,7 +59909,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 @@ -59752,59 +59919,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 @@ -59824,7 +59991,7 @@ func Xsqlite3_column_type(tls *libc.TLS, pStmt uintptr, i int32) int32 { /* test // // 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 @@ -59856,11 +60023,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) } @@ -59869,44 +60036,44 @@ 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) } @@ -59923,21 +60090,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+5302, libc.VaList(bp, (*Vdbe)(unsafe.Pointer(p)).FzSql)) - return Xsqlite3MisuseError(tls, 86481) + ts+5337, 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) @@ -59965,13 +60132,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 @@ -59997,16 +60164,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) @@ -60017,11 +60184,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) @@ -60032,7 +60199,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) @@ -60042,7 +60209,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) @@ -60055,11 +60222,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) @@ -60067,11 +60234,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: @@ -60120,7 +60287,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) @@ -60131,7 +60298,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) @@ -60148,7 +60315,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) @@ -60160,7 +60327,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) @@ -60171,19 +60338,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 @@ -60206,7 +60373,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) { @@ -60214,11 +60381,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) } @@ -60227,7 +60394,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 } @@ -60236,33 +60403,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) { @@ -60275,7 +60442,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) @@ -60287,21 +60454,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 @@ -60316,7 +60482,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 { @@ -60331,7 +60497,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) @@ -60344,7 +60510,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 @@ -60358,7 +60524,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: ; @@ -60450,7 +60616,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 { @@ -60469,7 +60635,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 { @@ -60481,7 +60647,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 { @@ -60493,7 +60659,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 @@ -60507,7 +60673,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: ; @@ -60648,7 +60814,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) @@ -60693,7 +60859,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) @@ -60717,7 +60883,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+5342, 3) + Xsqlite3_str_append(tls, bp+48, ts+5377, 3) Xsqlite3_str_append(tls, bp+48, zStart, int32((int64(zRawSql)-int64(zStart))/1)) } @@ -60759,7 +60925,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+1298, 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+4860, libc.VaList(bp+8, *(*float64)(unsafe.Pointer(pVar)))) + Xsqlite3_str_appendf(tls, bp+48, ts+4895, 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 @@ -60774,21 +60940,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+5346, libc.VaList(bp+16, nOut, (*Mem)(unsafe.Pointer(pVar)).Fz)) + Xsqlite3_str_appendf(tls, bp+48, ts+5381, 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+5353, libc.VaList(bp+32, *(*int32)(unsafe.Pointer(pVar)))) + Xsqlite3_str_appendf(tls, bp+48, ts+5388, 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+5366, 2) + Xsqlite3_str_append(tls, bp+48, ts+5401, 2) nOut = (*Mem)(unsafe.Pointer(pVar)).Fn for i = 0; i < nOut; i++ { - Xsqlite3_str_appendf(tls, bp+48, ts+5369, libc.VaList(bp+40, int32(*(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pVar)).Fz + uintptr(i))))&0xff)) + Xsqlite3_str_appendf(tls, bp+48, ts+5404, libc.VaList(bp+40, int32(*(*int8)(unsafe.Pointer((*Mem)(unsafe.Pointer(pVar)).Fz + uintptr(i))))&0xff)) } - Xsqlite3_str_append(tls, bp+48, ts+5374, 1) + Xsqlite3_str_append(tls, bp+48, ts+5409, 1) } } } @@ -60916,7 +61082,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 @@ -60942,7 +61108,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)) } @@ -60950,7 +61116,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) } @@ -60963,7 +61129,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) @@ -60977,7 +61143,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 @@ -60987,7 +61153,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 @@ -61009,7 +61175,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) @@ -61023,10 +61189,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) } @@ -61035,7 +61201,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: @@ -61055,7 +61221,7 @@ func applyNumericAffinity(tls *libc.TLS, pRec uintptr, bTryForInt int32) { /* te // 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: */ +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 @@ -61079,7 +61245,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)) } } @@ -61087,7 +61253,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 @@ -61099,7 +61265,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) } @@ -61107,7 +61273,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) @@ -61143,7 +61309,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)) @@ -61157,13 +61323,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 @@ -61179,7 +61345,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) @@ -61203,7 +61369,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] } @@ -61213,13 +61379,13 @@ var azTypes = [5]uintptr{ ts + 1096, ts + 1074, ts + 1519, -} /* 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 @@ -61246,9 +61412,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 @@ -61272,7 +61436,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 @@ -61287,31 +61451,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 @@ -61323,11 +61489,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 @@ -61347,13 +61512,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 @@ -61361,7 +61527,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 @@ -61372,52 +61538,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 @@ -61425,7 +61587,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 @@ -61435,7 +61597,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 @@ -61443,76 +61605,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 @@ -61520,18 +61682,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 @@ -61544,11 +61706,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 @@ -61562,18 +61724,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 @@ -61583,7 +61745,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 @@ -61617,7 +61779,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 @@ -61723,10 +61885,27 @@ __5: case OP_Gosub: goto __10 - // 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. // - // Jump to the next instruction after the address in register P1. After - // the jump, register P1 becomes undefined. + // 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 @@ -61857,6 +62036,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 // @@ -61868,8 +62068,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 @@ -61879,7 +62081,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) @@ -61888,7 +62090,7 @@ __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) @@ -61898,7 +62100,7 @@ __5: // 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] @@ -61909,17 +62111,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] @@ -61934,7 +62141,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] @@ -61944,7 +62151,7 @@ __5: // This is an optimized version of SCopy that works only for integer // values. case OP_IntCopy: - goto __29 + goto __30 // Opcode: FkCheck * * * * * // @@ -61957,7 +62164,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] @@ -61968,7 +62175,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] @@ -61983,7 +62190,7 @@ __5: // 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] @@ -62019,15 +62226,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 // @@ -62044,7 +62251,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] @@ -62073,13 +62280,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 @@ -62089,7 +62296,7 @@ __5: // // To force any register to be an integer, just add 0. case OP_AddImm: - goto __43 + goto __44 // Opcode: MustBeInt P1 P2 * * * // @@ -62098,7 +62305,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 * * * * // @@ -62109,7 +62316,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]) @@ -62126,7 +62333,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] @@ -62215,17 +62422,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 * * * // @@ -62239,21 +62446,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] @@ -62274,16 +62480,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]) @@ -62304,9 +62514,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 @@ -62328,7 +62538,7 @@ __5: //
  • If P3==1 and P4==0 then r[P2] := r[P1] IS NOT FALSE // case OP_IsTrue: - goto __59 + goto __60 // Opcode: Not P1 P2 * * * // Synopsis: r[P2]= !r[P1] @@ -62337,7 +62547,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] @@ -62346,7 +62556,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 * * * // @@ -62365,7 +62575,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 * * // @@ -62373,7 +62583,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 * * // @@ -62381,14 +62591,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 @@ -62397,7 +62607,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 @@ -62406,14 +62616,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 @@ -62423,7 +62633,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) @@ -62440,10 +62650,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 @@ -62462,7 +62672,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]) @@ -62490,7 +62700,7 @@ __5: // // 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]) @@ -62501,7 +62711,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]) @@ -62530,7 +62740,7 @@ __5: // 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() @@ -62542,7 +62752,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 * // @@ -62551,7 +62761,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 * * * // @@ -62562,7 +62772,7 @@ __5: // // This instruction causes the VM to halt. case OP_AutoCommit: - goto __77 + goto __78 // Opcode: Transaction P1 P2 P3 P4 P5 // @@ -62599,7 +62809,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 * * // @@ -62613,7 +62823,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 // @@ -62630,7 +62840,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 @@ -62714,13 +62924,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 * * * // @@ -62730,7 +62940,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 @@ -62764,9 +62974,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 * // @@ -62778,7 +62988,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 @@ -62787,7 +62997,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] @@ -62805,14 +63015,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] @@ -62901,13 +63111,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 @@ -62955,7 +63165,7 @@ __5: // row does not exist in the btree) then jump to SeekOP.P2. // case OP_SeekScan: - goto __95 + goto __96 // Opcode: SeekHit P1 P2 P3 * * // Synopsis: set P2<=seekHit<=P3 @@ -62971,14 +63181,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] @@ -63067,13 +63277,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] @@ -63121,11 +63331,11 @@ __5: // // See also: Found, NotFound, NoConflict, SeekRowid case OP_SeekRowid: - goto __102 + goto __103 // Fall through into OP_NotExists /* no break */ case OP_NotExists: - goto __103 + goto __104 // Opcode: Sequence P1 P2 * * * // Synopsis: r[P2]=cursor[P1].ctr++ @@ -63135,7 +63345,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 @@ -63152,7 +63362,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] @@ -63191,7 +63401,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 * * // @@ -63204,7 +63414,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 // @@ -63241,7 +63451,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 @@ -63249,7 +63459,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 @@ -63266,7 +63476,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 @@ -63280,7 +63490,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 @@ -63310,10 +63520,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. @@ -63322,7 +63532,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 * * * * // @@ -63330,11 +63540,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 * * * * // @@ -63357,16 +63566,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 * * * // @@ -63388,9 +63597,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 @@ -63403,9 +63612,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 @@ -63424,14 +63633,11 @@ __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 @@ -63451,9 +63657,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 @@ -63463,12 +63666,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] // @@ -63497,7 +63702,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] @@ -63506,7 +63711,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] @@ -63523,7 +63728,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 @@ -63552,9 +63757,9 @@ __5: // // See also: Rowid, MakeRecord. case OP_DeferredSeek: - goto __127 - case OP_IdxRowid: goto __128 + case OP_IdxRowid: + goto __129 // Opcode: FinishSeek P1 * * * * // @@ -63562,7 +63767,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] @@ -63605,13 +63810,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 * * // @@ -63640,7 +63845,7 @@ __5: // // See also: Clear case OP_Destroy: - goto __134 + goto __135 // Opcode: Clear P1 P2 P3 // @@ -63659,7 +63864,7 @@ __5: // // See also: Destroy case OP_Clear: - goto __135 + goto __136 // Opcode: ResetSorter P1 * * * * // @@ -63669,7 +63874,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 @@ -63680,13 +63885,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 * // @@ -63697,7 +63902,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 * * * * // @@ -63705,7 +63910,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 * // @@ -63715,7 +63920,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 * // @@ -63725,7 +63930,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 * // @@ -63735,7 +63940,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 // @@ -63756,7 +63961,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] @@ -63766,7 +63971,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) @@ -63776,7 +63981,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 @@ -63801,7 +64006,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 // @@ -63818,7 +64023,7 @@ __5: // // If P5 is non-zero, then recursive program invocation is enabled. case OP_Program: - goto __148 + goto __149 // Opcode: Param P1 P2 * * * // @@ -63832,7 +64037,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 @@ -63842,7 +64047,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 @@ -63856,7 +64061,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]) @@ -63869,7 +64074,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 @@ -63881,7 +64086,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) @@ -63901,7 +64106,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 @@ -63911,7 +64116,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 @@ -63919,7 +64124,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]) @@ -63958,11 +64163,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 @@ -63989,9 +64194,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 * * // @@ -64004,7 +64209,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 * * // @@ -64017,7 +64222,7 @@ __5: // // Write a string containing the final journal-mode to register P2. case OP_JournalMode: - goto __163 + goto __164 // Opcode: Vacuum P1 P2 * * * // @@ -64028,7 +64233,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 * * * // @@ -64036,7 +64241,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 * * * // @@ -64054,21 +64259,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 @@ -64085,7 +64290,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 * // @@ -64096,21 +64301,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 * // @@ -64118,7 +64323,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) @@ -64130,7 +64335,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' @@ -64151,7 +64356,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) @@ -64167,7 +64372,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 * * * // @@ -64175,7 +64380,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 * // @@ -64183,7 +64388,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] @@ -64212,13 +64417,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 * * // @@ -64228,7 +64433,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]) @@ -64275,9 +64480,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) @@ -64285,7 +64497,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 @@ -64301,7 +64513,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 * // @@ -64327,9 +64539,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 * * * * * // @@ -64340,7 +64552,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 @@ -64408,34 +64620,34 @@ jump_to_p2_and_check_for_interrupt: // faster according to "valgrind --tool=cachegrind" check_for_interrupt: if !(*(*int32)(unsafe.Pointer(db + 432)) != 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 @@ -64451,23 +64663,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. // - // Jump to the next instruction after the address in register P1. After - // the jump, register P1 becomes undefined. + // 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. __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 * * @@ -64487,12 +64726,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 * * * * @@ -64543,10 +64789,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: ; // Fall through into OP_Halt /* no break */ @@ -64582,9 +64828,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 @@ -64593,7 +64838,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 @@ -64601,48 +64846,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+5376, libc.VaList(bp, azType[int32((*Op)(unsafe.Pointer(pOp)).Fp5)-1])) + Xsqlite3VdbeError(tls, p, ts+5411, 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+5397, libc.VaList(bp+8, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg, *(*uintptr)(unsafe.Pointer(pOp + 16)))) -__200: + (*Vdbe)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3MPrintf(tls, db, ts+5432, libc.VaList(bp+8, (*Vdbe)(unsafe.Pointer(p)).FzErrMsg, *(*uintptr)(unsafe.Pointer(pOp + 16)))) +__206: ; - goto __199 -__198: - Xsqlite3VdbeError(tls, p, ts+3598, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(pOp + 16)))) -__199: + goto __205 +__204: + Xsqlite3VdbeError(tls, p, ts+3633, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(pOp + 16)))) +__205: ; - Xsqlite3_log(tls, (*Op)(unsafe.Pointer(pOp)).Fp1, ts+5404, 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+5439, 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 { @@ -64650,7 +64895,7 @@ __201: } else { rc = SQLITE_DONE } -__202: +__208: ; goto vdbe_return @@ -64699,41 +64944,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) @@ -64761,6 +65006,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 // @@ -64773,6 +65039,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 @@ -64783,9 +65050,9 @@ __22: return uint16(MEM_Null) }()) (*Mem)(unsafe.Pointer(pOut)).Fn = 0 -__208: +__214: if !(cnt > 0) { - goto __209 + goto __215 } pOut += 56 @@ -64793,8 +65060,8 @@ __208: (*Mem)(unsafe.Pointer(pOut)).Fflags = nullFlag (*Mem)(unsafe.Pointer(pOut)).Fn = 0 cnt-- - goto __208 -__209: + goto __214 +__215: ; goto __8 @@ -64805,7 +65072,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) @@ -64817,23 +65084,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 @@ -64846,27 +65113,27 @@ __211: // // 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 @@ -64878,7 +65145,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 @@ -64886,65 +65153,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 @@ -64960,7 +65239,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 @@ -64974,7 +65253,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 @@ -64991,12 +65270,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 @@ -65008,55 +65287,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 @@ -65073,7 +65322,7 @@ __229: // 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 @@ -65082,94 +65331,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 @@ -65208,11 +65462,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) @@ -65221,158 +65475,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 @@ -65394,13 +65648,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 @@ -65430,43 +65684,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)) @@ -65475,44 +65729,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) @@ -65525,7 +65779,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) @@ -65538,29 +65792,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) @@ -65574,15 +65828,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 @@ -65600,7 +65854,7 @@ __288: // // // 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 @@ -65612,17 +65866,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 @@ -65713,70 +65967,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 @@ -65784,98 +66038,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 @@ -65886,21 +66140,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 @@ -65911,10 +66165,10 @@ __316: (*Mem)(unsafe.Pointer(pIn1)).Fflags = flags11 if !(res2 != 0) { - goto __319 + goto __323 } goto jump_to_p2 -__319: +__323: ; goto __8 @@ -65929,14 +66183,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 @@ -65945,13 +66199,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 @@ -65975,65 +66228,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 * * @@ -66041,24 +66297,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 @@ -66080,30 +66339,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 @@ -66126,7 +66385,7 @@ __336: //
  • If P3==0 and P4==1 then r[P2] := r[P1] IS NOT TRUE //
  • If P3==1 and P4==0 then r[P2] := r[P1] IS NOT FALSE // -__59: // in1, out2 +__60: // in1, out2 ; Xsqlite3VdbeMemSetInt64(tls, aMem+uintptr((*Op)(unsafe.Pointer(pOp)).Fp2)*56, @@ -66139,17 +66398,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 @@ -66159,16 +66418,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 @@ -66188,30 +66447,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 @@ -66222,14 +66481,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 @@ -66238,14 +66497,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 @@ -66253,14 +66512,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 @@ -66270,15 +66529,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 @@ -66288,16 +66547,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 @@ -66305,14 +66564,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 @@ -66323,15 +66582,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 @@ -66349,43 +66608,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 @@ -66403,87 +66662,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. @@ -66493,14 +66773,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. @@ -66513,193 +66793,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, @@ -66713,21 +67018,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: @@ -66737,15 +67048,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 * @@ -66773,88 +67084,88 @@ __400: // // // 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 @@ -66862,53 +67173,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+5428, - 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+5463, + 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 @@ -66920,19 +67231,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 @@ -66940,30 +67251,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 @@ -66993,7 +67304,7 @@ __424: // 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: @@ -67018,7 +67329,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 @@ -67027,31 +67337,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 @@ -67080,13 +67390,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 @@ -67096,158 +67406,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 @@ -67256,22 +67566,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) @@ -67280,71 +67590,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 @@ -67358,28 +67739,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 * @@ -67388,7 +67769,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)) @@ -67397,17 +67778,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+5469, 0) + Xsqlite3VdbeError(tls, p, ts+5504, 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 @@ -67418,16 +67799,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(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)) @@ -67435,14 +67816,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. @@ -67450,163 +67831,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+5520, libc.VaList(bp+88, zName)) + Xsqlite3VdbeError(tls, p, ts+5555, 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+5542, 0) + ts+5577, 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 @@ -67614,50 +67995,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 * * * @@ -67668,7 +68055,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 @@ -67676,78 +68063,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+5596, 0) + ts+5631, 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 + 5651 /* "cannot start a t..." */ + return ts + 5686 /* "cannot start a t..." */ } return func() uintptr { if iRollback != 0 { - return ts + 5699 /* "cannot rollback ..." */ + return ts + 5734 /* "cannot rollback ..." */ } - return ts + 5742 /* "cannot commit - ..." */ + return ts + 5777 /* "cannot commit - ..." */ }() }(), 0) rc = SQLITE_ERROR goto abort_due_to_error -__522: +__553: ; /*NOTREACHED*/ @@ -67785,70 +68172,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 @@ -67856,22 +68244,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+5783) + (*Vdbe)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3DbStrDup(tls, db, ts+5818) // 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. @@ -67884,21 +68271,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 @@ -67913,14 +68305,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 @@ -67937,45 +68329,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 @@ -68060,31 +68452,31 @@ __548: // 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 @@ -68092,28 +68484,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 @@ -68125,32 +68517,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) @@ -68162,7 +68554,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: ; @@ -68170,10 +68562,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 @@ -68184,7 +68576,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)) @@ -68192,10 +68584,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) @@ -68245,12 +68637,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. @@ -68258,11 +68650,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 + 1518 /* "" */ -__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 @@ -68271,71 +68663,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 @@ -68349,24 +68741,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 @@ -68376,15 +68768,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 @@ -68403,15 +68795,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 @@ -68428,7 +68820,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) @@ -68520,10 +68912,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 ; @@ -68536,7 +68928,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 @@ -68546,10 +68938,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 @@ -68558,29 +68950,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))) @@ -68591,59 +68983,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 ){ @@ -68651,108 +69043,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 @@ -68801,7 +69193,7 @@ __606: //
  • 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. // -__95: +__96: ; // pOp->p2 points to the first instruction past the OP_IdxGT that @@ -68810,72 +69202,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 @@ -68893,23 +69285,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 @@ -68917,14 +69309,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 @@ -69014,135 +69406,131 @@ __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: ; // Fall through into OP_NotFound /* no break */ -__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 @@ -69191,33 +69579,33 @@ __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: ; // Fall through into OP_NotExists /* no break */ -__103: // jump, in3 +__104: // jump, in3 pIn3 = aMem + uintptr((*Op)(unsafe.Pointer(pOp)).Fp3)*56 iKey1 = U64(*(*I64)(unsafe.Pointer(pIn3))) @@ -69226,35 +69614,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 @@ -69265,7 +69653,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) @@ -69286,10 +69674,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)) @@ -69312,89 +69700,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 @@ -69403,41 +69791,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 @@ -69476,7 +69864,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 @@ -69484,63 +69872,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 @@ -69548,16 +69936,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) @@ -69565,13 +69953,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 { @@ -69583,8 +69971,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 @@ -69598,7 +69986,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)) @@ -69610,10 +69998,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 @@ -69651,7 +70039,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 @@ -69662,29 +70050,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, @@ -69696,13 +70084,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 @@ -69711,28 +70099,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 @@ -69743,7 +70131,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 @@ -69762,26 +70150,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 @@ -69796,7 +70184,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)) @@ -69804,10 +70192,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 @@ -69839,7 +70227,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) @@ -69857,35 +70245,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. @@ -69893,27 +70281,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 @@ -69921,40 +70309,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 * * * * @@ -69963,21 +70351,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 @@ -70001,48 +70405,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 @@ -70050,37 +70454,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 @@ -70103,9 +70507,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))++ // Fall through into OP_Rewind /* no break */ @@ -70120,43 +70524,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 @@ -70175,14 +70579,11 @@ __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 @@ -70202,9 +70603,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 @@ -70213,40 +70611,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) @@ -70279,17 +70681,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 { @@ -70299,16 +70701,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 { @@ -70319,10 +70721,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 @@ -70332,7 +70734,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)) @@ -70345,17 +70747,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 @@ -70373,44 +70775,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+5811) + rc = Xsqlite3ReportError(tls, SQLITE_CORRUPT|int32(3)<<8, 94557, ts+5846) goto abort_due_to_error -__727: +__759: ; -__725: +__757: ; (*VdbeCursor)(unsafe.Pointer(pC23)).FcacheStatus = U32(CACHE_STALE) @@ -70443,8 +70845,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)) @@ -70457,47 +70859,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 @@ -70506,21 +70909,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 @@ -70564,27 +70967,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() */ @@ -70596,42 +70999,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 @@ -70661,41 +71064,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 @@ -70715,29 +71118,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 @@ -70748,26 +71151,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 @@ -70779,36 +71182,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 @@ -70820,7 +71223,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 @@ -70829,72 +71232,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 + 5828 /* "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 + 5863 /* "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+5842, + ts+5877, 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 @@ -70903,14 +71306,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 @@ -70921,7 +71324,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 @@ -70933,7 +71336,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 @@ -70945,7 +71348,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 @@ -70968,7 +71371,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 @@ -70979,25 +71382,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)) @@ -71010,20 +71413,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))) @@ -71036,24 +71439,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 @@ -71079,7 +71482,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 @@ -71088,35 +71491,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 @@ -71134,7 +71537,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 @@ -71151,37 +71554,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+5885, 0) + Xsqlite3VdbeError(tls, p, ts+5920, 0) goto abort_due_to_error -__782: +__814: ; // Register pRt is used to store the memory required to save the state @@ -71189,7 +71592,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 @@ -71198,10 +71601,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{})) + @@ -71209,10 +71612,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) @@ -71233,25 +71636,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++ @@ -71286,7 +71689,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 @@ -71300,23 +71703,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 @@ -71331,27 +71734,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 @@ -71365,37 +71768,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 @@ -71408,15 +71811,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 @@ -71437,19 +71840,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 @@ -71459,10 +71862,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 @@ -71473,20 +71876,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 @@ -71495,21 +71898,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 @@ -71549,17 +71952,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(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 @@ -71569,8 +71972,9 @@ __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 @@ -71579,85 +71983,85 @@ __811: // Fall through into OP_AggStep /* no break */ -__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+3598, libc.VaList(bp+120, Xsqlite3_value_text(tls, (*Sqlite3_context)(unsafe.Pointer(pCtx1)).FpOut))) + Xsqlite3VdbeError(tls, p, ts+3633, 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 @@ -71686,40 +72090,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+3598, libc.VaList(bp+128, Xsqlite3_value_text(tls, pMem4))) + Xsqlite3VdbeError(tls, p, ts+3633, 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 * * @@ -71732,40 +72130,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 @@ -71779,7 +72177,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 @@ -71788,17 +72186,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) @@ -71808,34 +72206,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+5922, + ts+5957, libc.VaList(bp+136, func() uintptr { if eNew == PAGER_JOURNALMODE_WAL { - return ts + 5974 /* "into" */ + return ts + 6009 /* "into" */ } - return ts + 5979 /* "out of" */ + return ts + 6014 /* "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 @@ -71843,29 +72241,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 { @@ -71873,18 +72271,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) @@ -71894,10 +72292,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 @@ -71909,9 +72307,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 @@ -71919,10 +72317,10 @@ __164: return uintptr(0) }()) if !(rc != 0) { - goto __845 + goto __876 } goto abort_due_to_error -__845: +__876: ; goto __8 @@ -71931,24 +72329,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 @@ -71967,16 +72365,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 @@ -71984,7 +72382,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)) @@ -71995,7 +72393,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)) @@ -72016,28 +72414,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+5986, libc.VaList(bp+144, z1)) -__852: + Xsqlite3VdbeError(tls, p, ts+6021, libc.VaList(bp+144, z1)) +__883: ; goto abort_due_to_error -__851: +__882: ; -__850: +__881: ; goto __8 @@ -72049,20 +72447,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 @@ -72070,29 +72468,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 @@ -72100,16 +72498,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 @@ -72118,48 +72516,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 @@ -72172,21 +72570,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+5292, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free}))) + Xsqlite3VdbeMemSetPointer(tls, pOut, pRhs, ts+5327, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free}))) goto __8 // Opcode: VFilter P1 P2 P3 P4 * @@ -72207,7 +72605,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 @@ -72225,38 +72623,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 @@ -72273,60 +72671,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+3598, libc.VaList(bp+152, Xsqlite3_value_text(tls, pDest2))) - rc = (*Sqlite3_context)(unsafe.Pointer(bp + 912 /* &sContext */)).FisError -__871: + Xsqlite3VdbeError(tls, p, ts+3633, 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 @@ -72335,15 +72729,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 @@ -72358,21 +72752,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 @@ -72381,7 +72775,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) @@ -72390,27 +72784,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 @@ -72440,97 +72834,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 @@ -72542,22 +72936,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 @@ -72606,8 +73000,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)) @@ -72617,24 +73011,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) @@ -72645,40 +73040,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+3598, libc.VaList(bp+160, Xsqlite3_value_text(tls, pOut))) + Xsqlite3VdbeError(tls, p, ts+3633, 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 * @@ -72686,7 +73076,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 @@ -72708,23 +73098,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 @@ -72751,8 +73141,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. @@ -72767,77 +73157,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+6015, libc.VaList(bp+168, zTrace)) + z3 = Xsqlite3MPrintf(tls, db, ts+6050, 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 * * * * * @@ -72848,7 +73238,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 @@ -72879,75 +73269,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+3598, libc.VaList(bp+176, Xsqlite3ErrStr(tls, rc))) -__919: + Xsqlite3VdbeError(tls, p, ts+3633, libc.VaList(bp+176, Xsqlite3ErrStr(tls, rc))) +__947: ; (*Vdbe)(unsafe.Pointer(p)).Frc = rc Xsqlite3SystemError(tls, db, rc) - Xsqlite3_log(tls, rc, ts+6021, + Xsqlite3_log(tls, rc, ts+6056, 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 @@ -72955,7 +73350,7 @@ __924: // Jump to here if a string or blob larger than SQLITE_MAX_LENGTH // is encountered. too_big: - Xsqlite3VdbeError(tls, p, ts+5269, 0) + Xsqlite3VdbeError(tls, p, ts+5304, 0) rc = SQLITE_TOOBIG goto abort_due_to_error @@ -72975,12 +73370,12 @@ abort_due_to_interrupt: return int32(0) } -var azType = [4]uintptr{ts + 6053, ts + 6062, ts + 6069, - ts + 6075} /* 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 + 6088, ts + 6097, ts + 6104, + ts + 6110} /* 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 *************************************** @@ -73011,7 +73406,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 *************************************** @@ -73032,7 +73427,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. @@ -73049,7 +73444,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) @@ -73084,16 +73479,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+6087, + zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+6122, libc.VaList(bp, func() uintptr { if type1 == U32(0) { - return ts + 6116 /* "null" */ + return ts + 6151 /* "null" */ } return func() uintptr { if type1 == U32(7) { - return ts + 6121 /* "real" */ + return ts + 6156 /* "real" */ } - return ts + 6126 /* "integer" */ + return ts + 6161 /* "integer" */ }() }())) rc = SQLITE_ERROR @@ -73113,10 +73508,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+6134, libc.VaList(bp+8, iRow)) + zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+6169, libc.VaList(bp+8, iRow)) rc = SQLITE_ERROR } else { - zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+3598, libc.VaList(bp+16, Xsqlite3_errmsg(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb))) + zErr = Xsqlite3MPrintf(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb, ts+3633, libc.VaList(bp+16, Xsqlite3_errmsg(tls, (*Incrblob)(unsafe.Pointer(p)).Fdb))) } } @@ -73125,7 +73520,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) @@ -73181,21 +73576,21 @@ __3: goto __4 } pTab = uintptr(0) - Xsqlite3ErrorMsg(tls, bp+48, ts+6154, libc.VaList(bp, zTable)) + Xsqlite3ErrorMsg(tls, bp+48, ts+6189, 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+6184, libc.VaList(bp+8, zTable)) + Xsqlite3ErrorMsg(tls, bp+48, ts+6219, 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+6220, libc.VaList(bp+16, zTable)) + Xsqlite3ErrorMsg(tls, bp+48, ts+6255, libc.VaList(bp+16, zTable)) __6: ; if !!(pTab != 0) { @@ -73240,7 +73635,7 @@ __11: goto __13 } Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */))) - *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+6241, libc.VaList(bp+24, zColumn)) + *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+6276, libc.VaList(bp+24, zColumn)) rc = SQLITE_ERROR Xsqlite3BtreeLeaveAll(tls, db) goto blob_open_out @@ -73270,7 +73665,7 @@ __19: if !((*sColMap)(unsafe.Pointer(pFKey+64+uintptr(j)*16)).FiFrom == iCol) { goto __22 } - zFault = ts + 6262 /* "foreign key" */ + zFault = ts + 6297 /* "foreign key" */ __22: ; goto __20 @@ -73303,7 +73698,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 + 6274 /* "indexed" */ + zFault = ts + 6309 /* "indexed" */ __29: ; goto __27 @@ -73324,7 +73719,7 @@ __25: goto __30 } Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */))) - *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+6282, libc.VaList(bp+32, zFault)) + *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)) = Xsqlite3MPrintf(tls, db, ts+6317, libc.VaList(bp+32, zFault)) rc = SQLITE_ERROR Xsqlite3BtreeLeaveAll(tls, db) goto blob_open_out @@ -73435,7 +73830,7 @@ __38: ; Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr { if *(*uintptr)(unsafe.Pointer(bp + 456)) != 0 { - return ts + 3598 /* "%s" */ + return ts + 3633 /* "%s" */ } return uintptr(0) }(), libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 456 /* zErr */)))) @@ -73446,7 +73841,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 @@ -73455,11 +73850,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 @@ -73478,14 +73873,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) @@ -73544,14 +73939,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}))) @@ -73561,7 +73956,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 @@ -73577,7 +73972,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) @@ -73586,7 +73981,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) @@ -73603,7 +73998,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 + 3598 /* "%s" */ + return ts + 3633 /* "%s" */ } return uintptr(0) }(), libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */)))) @@ -73773,7 +74168,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 *************************************** @@ -73924,7 +74319,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 @@ -73938,10 +74333,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 @@ -73952,18 +74347,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 @@ -73976,26 +74371,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 @@ -74005,10 +74400,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 @@ -74039,11 +74434,11 @@ type IncrMerger = IncrMerger1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c: // 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 { @@ -74060,7 +74455,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) @@ -74164,7 +74559,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) @@ -74204,7 +74599,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 @@ -74219,7 +74614,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 { @@ -74260,7 +74655,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) @@ -74306,7 +74701,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) @@ -74329,7 +74724,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) @@ -74349,7 +74744,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) @@ -74361,7 +74756,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) @@ -74411,7 +74806,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 @@ -74471,7 +74866,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. // @@ -74490,7 +74885,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 @@ -74586,7 +74981,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 { @@ -74597,7 +74992,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 @@ -74617,7 +75012,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) @@ -74636,14 +75031,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 @@ -74669,7 +75064,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 @@ -74694,7 +75089,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++ { @@ -74706,7 +75101,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) @@ -74723,7 +75118,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) @@ -74752,7 +75147,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)) @@ -74767,7 +75162,7 @@ func Xsqlite3VdbeSorterClose(tls *libc.TLS, db uintptr, pCsr uintptr) { /* testd // 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) @@ -74791,7 +75186,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) { @@ -74804,7 +75199,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) @@ -74843,7 +75238,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 @@ -74861,7 +75256,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) @@ -74918,7 +75313,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) { @@ -74933,7 +75328,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 @@ -74962,7 +75357,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, @@ -74978,7 +75373,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) @@ -75001,7 +75396,7 @@ func vdbePmaWriteVarint(tls *libc.TLS, p uintptr, iVal U64) { /* testdata/sqlite // * 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: */ +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) @@ -75056,7 +75451,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) @@ -75132,7 +75527,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 @@ -75143,7 +75538,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 @@ -75207,7 +75602,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) @@ -75323,7 +75718,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) @@ -75369,7 +75764,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 @@ -75377,7 +75772,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 { @@ -75400,7 +75795,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 { @@ -75434,7 +75829,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 { @@ -75461,7 +75856,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) } @@ -75469,7 +75864,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) @@ -75529,7 +75924,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 @@ -75599,7 +75994,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 @@ -75656,7 +76051,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 @@ -75672,7 +76067,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 { @@ -75699,7 +76094,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) @@ -75736,7 +76131,7 @@ func vdbeMergeEngineLevel0(tls *libc.TLS, pTask uintptr, nPMA int32, piOffset ui // 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: */ +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) { @@ -75752,7 +76147,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) @@ -75803,7 +76198,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) @@ -75884,7 +76279,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) @@ -75959,7 +76354,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 @@ -76004,7 +76399,7 @@ func Xsqlite3VdbeSorterRewind(tls *libc.TLS, pCsr uintptr, pbEof uintptr) int32 // 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: */ +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) @@ -76046,7 +76441,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 @@ -76065,7 +76460,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) @@ -76100,7 +76495,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) @@ -76192,7 +76587,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 *************************************** @@ -76239,23 +76634,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 @@ -76302,7 +76697,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 { @@ -76312,7 +76707,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)) @@ -76350,7 +76745,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 @@ -76416,7 +76811,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 { @@ -76444,7 +76839,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 @@ -76454,14 +76849,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 @@ -76476,7 +76871,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. // @@ -76488,7 +76883,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 @@ -76516,20 +76911,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 @@ -76558,7 +76953,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 @@ -76606,7 +77001,7 @@ func walkWindowList(tls *libc.TLS, pWalker uintptr, pList uintptr, bOneOnly int3 // // 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 { @@ -76648,7 +77043,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) } @@ -76657,7 +77052,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 { @@ -76686,7 +77081,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 @@ -76696,7 +77091,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 } @@ -76738,7 +77133,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 @@ -76756,7 +77151,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 } @@ -76764,7 +77159,7 @@ func Xsqlite3WalkSelectFrom(tls *libc.TLS, pWalker uintptr, p uintptr) int32 { / goto __2 __2: i-- - pItem += 112 + pItem += 104 goto __1 goto __3 __3: @@ -76787,7 +77182,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 @@ -76818,13 +77213,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-- } @@ -76836,7 +77231,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 @@ -76844,7 +77239,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 @@ -76879,14 +77274,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) @@ -76919,7 +77314,10 @@ func incrAggFunctionDepth(tls *libc.TLS, pExpr uintptr, N int32) { /* testdata/s // 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 @@ -76932,49 +77330,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 @@ -76982,10 +77358,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 @@ -77008,7 +77384,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 @@ -77027,7 +77403,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 @@ -77052,6 +77428,22 @@ 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 @@ -77077,9 +77469,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 @@ -77092,8 +77484,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 @@ -77114,7 +77513,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 @@ -77159,7 +77559,7 @@ __5: goto __6 __6: ; - if !(i == (*Sqlite3)(unsafe.Pointer(db)).FnDb && Xsqlite3StrICmp(tls, ts+6316, zDb) == 0) { + if !(i == (*Sqlite3)(unsafe.Pointer(db)).FnDb && Xsqlite3StrICmp(tls, ts+6351, zDb) == 0) { goto __8 } // This branch is taken when the main database has been renamed @@ -77189,25 +77589,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: @@ -77217,33 +77672,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+6321) != 0) { - goto __24 + if !(pSchema == uintptr(0) && libc.Xstrcmp(tls, zDb, ts+6356) != 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 { @@ -77251,50 +77707,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 @@ -77305,48 +77781,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 ) @@ -77356,144 +77836,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+6323, zTab) == 0) { - goto __43 + goto __54 +__53: + if !(op != TK_DELETE && zTab != 0 && Xsqlite3StrICmp(tls, ts+6358, 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+6327, zTab) == 0) { - goto __45 + goto __57 +__56: + if !(op != TK_INSERT && zTab != 0 && Xsqlite3StrICmp(tls, ts+6362, 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+6331, zTab) == 0) { - goto __47 + if !(pUpsert != 0 && Xsqlite3StrICmp(tls, ts+6366, 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 { @@ -77502,8 +77982,8 @@ __62: } return U32(U32(1)) << iCol }() - goto __65 -__64: + goto __78 +__77: ; *(*U32)(unsafe.Pointer(pParse + 208)) |= func() uint32 { @@ -77512,19 +77992,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 @@ -77534,12 +78014,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 @@ -77561,74 +78041,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+6340, libc.VaList(bp, zAs)) + Xsqlite3ErrorMsg(tls, pParse, ts+6375, 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+6371, libc.VaList(bp+8, zAs)) + Xsqlite3ErrorMsg(tls, pParse, ts+6406, libc.VaList(bp+8, zAs)) return WRC_Abort -__73: +__86: ; if !(Xsqlite3ExprVectorSize(tls, pOrig) != 1) { - goto __74 + goto __87 } - Xsqlite3ErrorMsg(tls, pParse, ts+6408, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+6443, 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++ @@ -77650,12 +78130,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. @@ -77671,52 +78151,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+6426, libc.VaList(bp+16, zCol)) + ts+6461, 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 + 6496 /* "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 + 6461 /* "no such column" */ + zErr = ts + 6505 /* "no such column" */ } else { - zErr = ts + 6476 /* "ambiguous column..." */ + zErr = ts + 6520 /* "ambiguous column..." */ } if !(zDb != 0) { - goto __81 + goto __99 } - Xsqlite3ErrorMsg(tls, pParse, ts+6498, libc.VaList(bp+24, zErr, zDb, zTab, zCol)) - goto __82 -__81: + Xsqlite3ErrorMsg(tls, pParse, ts+6542, libc.VaList(bp+24, zErr, zDb, zTab, zCol)) + goto __100 +__99: if !(zTab != 0) { - goto __83 + goto __101 } - Xsqlite3ErrorMsg(tls, pParse, ts+6511, libc.VaList(bp+56, zErr, zTab, zCol)) - goto __84 -__83: - Xsqlite3ErrorMsg(tls, pParse, ts+6521, libc.VaList(bp+80, zErr, zCol)) -__84: + Xsqlite3ErrorMsg(tls, pParse, ts+6555, libc.VaList(bp+56, zErr, zTab, zCol)) + goto __102 +__101: + Xsqlite3ErrorMsg(tls, pParse, ts+6565, 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 @@ -77733,69 +78261,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) @@ -77815,7 +78332,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 } @@ -77841,19 +78358,19 @@ func Xsqlite3CreateColumnExpr(tls *libc.TLS, db uintptr, pSrc uintptr, iSrc int3 // 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 + 6528 /* "partial index WH..." */ + var zIn uintptr = ts + 6572 /* "partial index WH..." */ if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_IdxExpr != 0 { - zIn = ts + 6556 /* "index expression..." */ + zIn = ts + 6600 /* "index expression..." */ } else if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_IsCheck != 0 { - zIn = ts + 6574 /* "CHECK constraint..." */ + zIn = ts + 6618 /* "CHECK constraint..." */ } else if (*NameContext)(unsafe.Pointer(pNC)).FncFlags&NC_GenCol != 0 { - zIn = ts + 6592 /* "generated column..." */ + zIn = ts + 6636 /* "generated column..." */ } - Xsqlite3ErrorMsg(tls, pParse, ts+6610, libc.VaList(bp, zMsg, zIn)) + Xsqlite3ErrorMsg(tls, pParse, ts+6654, libc.VaList(bp, zMsg, zIn)) if pExpr != 0 { (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_NULL) } @@ -77863,7 +78380,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) @@ -77889,7 +78406,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) @@ -77965,10 +78482,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 + 6630 /* "true" */ + *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6674 /* "true" */ *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsTrue) } else { - *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6635 /* "false" */ + *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6679 /* "false" */ *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsFalse) } (*Expr)(unsafe.Pointer(pExpr)).Fop = U8(TK_TRUEFALSE) @@ -78022,7 +78539,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+6641, uintptr(0), pExpr) + notValidImpl(tls, pParse, pNC, ts+6685, uintptr(0), pExpr) } pRight = (*Expr)(unsafe.Pointer(pExpr)).FpRight @@ -78089,7 +78606,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t if (*Expr)(unsafe.Pointer(pExpr)).FiTable < 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+6658, libc.VaList(bp, pExpr)) + ts+6702, libc.VaList(bp, pExpr)) (*NameContext)(unsafe.Pointer(pNC)).FnNcErr++ } } else { @@ -78114,7 +78631,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+6722, + Xsqlite3ErrorMsg(tls, pParse, ts+6766, libc.VaList(bp+8, pExpr)) (*NameContext)(unsafe.Pointer(pNC)).FnNcErr++ } @@ -78138,7 +78655,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+6758, uintptr(0), pExpr) + notValidImpl(tls, pParse, pNC, ts+6802, uintptr(0), pExpr) } } else { @@ -78167,30 +78684,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+6786, libc.VaList(bp+16, pExpr)) + ts+6830, 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 + 6829 /* "window" */ + zType = ts + 6873 /* "window" */ } else { - zType = ts + 6836 /* "aggregate" */ + zType = ts + 6880 /* "aggregate" */ } - Xsqlite3ErrorMsg(tls, pParse, ts+6846, libc.VaList(bp+24, zType, pExpr)) + Xsqlite3ErrorMsg(tls, pParse, ts+6890, 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+6874, libc.VaList(bp+40, pExpr)) + Xsqlite3ErrorMsg(tls, pParse, ts+6918, libc.VaList(bp+40, pExpr)) (*NameContext)(unsafe.Pointer(pNC)).FnNcErr++ } else if wrong_num_args != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+6896, + Xsqlite3ErrorMsg(tls, pParse, ts+6940, 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+6940, + ts+6984, libc.VaList(bp+56, pExpr)) (*NameContext)(unsafe.Pointer(pNC)).FnNcErr++ } @@ -78268,7 +78785,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+6988, pExpr, pExpr) + notValidImpl(tls, pParse, pNC, ts+7032, pExpr, pExpr) } else { Xsqlite3WalkSelect(tls, pWalker, *(*uintptr)(unsafe.Pointer(pExpr + 32))) } @@ -78285,7 +78802,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+6999, pExpr, pExpr) + notValidImpl(tls, pParse, pNC, ts+7043, pExpr, pExpr) } break @@ -78347,7 +78864,7 @@ func resolveExprStep(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* t } if nLeft != nRight { - Xsqlite3ErrorMsg(tls, pParse, ts+6408, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+6443, 0) Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr) } break @@ -78371,7 +78888,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 @@ -78381,7 +78898,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 } @@ -78406,7 +78923,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) @@ -78450,13 +78967,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+7010, libc.VaList(bp, i, zType, mx)) + ts+7054, libc.VaList(bp, i, zType, mx)) Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pError) } @@ -78473,7 +78990,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) @@ -78489,11 +79006,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+7066, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+7110, 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 { @@ -78515,7 +79032,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) @@ -78524,7 +79041,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+7100, i+1, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, pE) + resolveOutOfRangeError(tls, pParse, ts+7144, i+1, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, pE) return 1 } } else { @@ -78576,7 +79093,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 } @@ -78593,9 +79110,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+7106, libc.VaList(bp, i+1)) + ts+7150, libc.VaList(bp, i+1)) return 1 } } @@ -78610,7 +79127,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) @@ -78623,7 +79140,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+7167, libc.VaList(bp, zType)) + Xsqlite3ErrorMsg(tls, pParse, ts+7211, libc.VaList(bp, zType)) return 1 } pEList = (*Select)(unsafe.Pointer(pSelect)).FpEList @@ -78656,7 +79173,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)) @@ -78667,7 +79184,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) @@ -78699,7 +79216,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) @@ -78776,7 +79293,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) @@ -78845,7 +79362,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 { @@ -78911,8 +79428,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+7198, 0) + if (*Select)(unsafe.Pointer(p)).FselFlags&U32(SF_Aggregate) == U32(0) { + Xsqlite3ErrorMsg(tls, pParse, ts+7242, 0) return WRC_Abort } if Xsqlite3ResolveExprNames(tls, bp, (*Select)(unsafe.Pointer(p)).FpHaving) != 0 { @@ -78925,9 +79442,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 } } @@ -78969,7 +79486,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+7100) != 0 { + resolveOrderGroupBy(tls, bp, p, (*Select)(unsafe.Pointer(p)).FpOrderBy, ts+7144) != 0 { return WRC_Abort } if (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { @@ -78982,7 +79499,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+7242) != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { + if resolveOrderGroupBy(tls, bp, p, pGroupBy, ts+7281) != 0 || (*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0 { return WRC_Abort } i = 0 @@ -78994,7 +79511,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+7248, 0) + ts+7287, 0) return WRC_Abort } @@ -79075,7 +79592,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) @@ -79116,7 +79633,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) @@ -79173,7 +79690,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) @@ -79207,11 +79724,11 @@ func Xsqlite3ResolveSelectNames(tls *libc.TLS, pParse uintptr, p uintptr, pOuter // 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 @@ -79243,7 +79760,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) } @@ -79264,7 +79781,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) { @@ -79307,7 +79824,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 { @@ -79319,7 +79836,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) @@ -79330,7 +79847,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 @@ -79341,7 +79858,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) { @@ -79366,7 +79883,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 @@ -79438,7 +79955,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 @@ -79448,7 +79965,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) @@ -79457,7 +79974,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 @@ -79482,7 +79999,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) @@ -79500,7 +80017,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 @@ -79513,7 +80030,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 @@ -79529,7 +80046,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 { @@ -79552,7 +80069,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 { @@ -79562,7 +80079,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 @@ -79589,7 +80106,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) } @@ -79597,7 +80114,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 @@ -79627,7 +80144,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 { @@ -79661,7 +80178,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 { @@ -79709,7 +80226,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) @@ -79733,7 +80250,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 { @@ -79762,7 +80279,7 @@ func exprVectorRegister(tls *libc.TLS, pParse uintptr, pVector uintptr, iField i // 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: */ +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) @@ -79782,7 +80299,7 @@ func codeVectorCompare(tls *libc.TLS, pParse uintptr, pExpr uintptr, dest int32, return } if nLeft != Xsqlite3ExprVectorSize(tls, pRight) { - Xsqlite3ErrorMsg(tls, pParse, ts+6408, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+6443, 0) return } @@ -79850,7 +80367,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) @@ -79858,7 +80375,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+7307, libc.VaList(bp, mxHeight)) + ts+7346, libc.VaList(bp, mxHeight)) rc = SQLITE_ERROR } return rc @@ -79872,7 +80389,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 @@ -79880,7 +80397,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++ { @@ -79889,7 +80406,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) @@ -79909,7 +80426,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) @@ -79936,7 +80453,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 } @@ -79946,7 +80463,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) @@ -79973,7 +80490,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) @@ -80021,7 +80538,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) @@ -80036,7 +80553,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) @@ -80059,7 +80576,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 { @@ -80077,7 +80594,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) @@ -80105,7 +80622,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) @@ -80123,10 +80640,10 @@ func Xsqlite3ExprListToValues(tls *libc.TLS, pParse uintptr, nElem int32, pEList nExprElem = 1 } if nExprElem != nElem { - Xsqlite3ErrorMsg(tls, pParse, ts+7355, + Xsqlite3ErrorMsg(tls, pParse, ts+7394, libc.VaList(bp, nExprElem, func() uintptr { if nExprElem > 1 { - return ts + 7399 /* "s" */ + return ts + 7438 /* "s" */ } return ts + 1518 /* "" */ }(), nElem)) @@ -80157,17 +80674,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+7401) + return Xsqlite3Expr(tls, db, TK_INTEGER, ts+7440) } else { return Xsqlite3PExpr(tls, pParse, TK_AND, pLeft, pRight) } @@ -80176,7 +80693,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) @@ -80188,11 +80705,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+7403, libc.VaList(bp, pToken)) + Xsqlite3ErrorMsg(tls, pParse, ts+7442, libc.VaList(bp, pToken)) } *(*uintptr)(unsafe.Pointer(pNew + 32)) = pList *(*U32)(unsafe.Pointer(pNew + 4)) |= U32(EP_HasFunc) @@ -80213,7 +80731,7 @@ func Xsqlite3ExprFunction(tls *libc.TLS, pParse uintptr, pList uintptr, pToken u // 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) @@ -80226,7 +80744,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+7437, libc.VaList(bp, pExpr)) + Xsqlite3ErrorMsg(tls, pParse, ts+7476, libc.VaList(bp, pExpr)) } } } @@ -80245,7 +80763,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) @@ -80279,7 +80797,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+7457, + Xsqlite3ErrorMsg(tls, pParse, ts+7496, libc.VaList(bp, *(*int32)(unsafe.Pointer(db + 136 + 9*4)))) Xsqlite3RecordErrorOffsetOfExpr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr) return @@ -80307,13 +80825,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+7500, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+7539, 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 @@ -80343,12 +80861,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. @@ -80357,13 +80886,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) @@ -80375,7 +80904,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) } @@ -80417,7 +80946,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 @@ -80439,7 +80968,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))) @@ -80458,7 +80987,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) @@ -80475,7 +81004,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) @@ -80585,7 +81114,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)) @@ -80597,6 +81126,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 } } } @@ -80607,7 +81137,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)) @@ -80617,14 +81147,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) @@ -80657,7 +81187,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)) @@ -80665,7 +81195,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 @@ -80710,11 +81240,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 } @@ -80734,7 +81261,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 @@ -80754,8 +81281,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) @@ -80766,57 +81293,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(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(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) @@ -80882,9 +81407,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 @@ -80901,7 +81426,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 @@ -80920,7 +81445,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) @@ -80943,7 +81468,7 @@ func Xsqlite3ExprListAppend(tls *libc.TLS, pParse uintptr, pList uintptr, pExpr // 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) @@ -80981,7 +81506,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+7523, + Xsqlite3ErrorMsg(tls, pParse, ts+7562, libc.VaList(bp, (*IdList)(unsafe.Pointer(pColumns)).FnId, n)) goto vector_append_error __3: @@ -81005,8 +81530,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 @@ -81040,7 +81565,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 @@ -81051,10 +81576,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) } @@ -81067,7 +81592,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 @@ -81093,7 +81618,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 { @@ -81101,26 +81626,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+7553, libc.VaList(bp, zObject)) + Xsqlite3ErrorMsg(tls, pParse, ts+7592, 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 */ @@ -81132,7 +81657,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) } @@ -81140,7 +81665,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) @@ -81157,7 +81682,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 @@ -81169,11 +81694,11 @@ func Xsqlite3SelectWalkFail(tls *libc.TLS, pWalker uintptr, NotUsed uintptr) int // "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+6630) == 0 { +func Xsqlite3IsTrueOrFalse(tls *libc.TLS, zIn uintptr) U32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:105675:20: */ + if Xsqlite3StrICmp(tls, zIn, ts+6674) == 0 { return U32(EP_IsTrue) } - if Xsqlite3StrICmp(tls, zIn, ts+6635) == 0 { + if Xsqlite3StrICmp(tls, zIn, ts+6679) == 0 { return U32(EP_IsFalse) } return U32(0) @@ -81182,7 +81707,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)) && @@ -81196,7 +81721,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) @@ -81213,18 +81738,18 @@ func Xsqlite3ExprTruthValue(tls *libc.TLS, pExpr uintptr) int32 { /* testdata/sq // (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: */ +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 { @@ -81259,12 +81784,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 } @@ -81337,7 +81862,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) @@ -81361,7 +81886,7 @@ 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) } @@ -81376,7 +81901,7 @@ func Xsqlite3ExprIsConstant(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite // 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) } @@ -81384,40 +81909,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. // -// To be an invariant constraint, the following must be true: +// 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. // -// (1) pExpr cannot refer to any table other than pSrc->iCursor. +// To be an invariant constraint, the following must be true: // -// (2) pExpr cannot use subqueries or non-deterministic functions. +// (1) pExpr cannot refer to any table other than pSrc->iCursor. // -// (*) ** Not applicable to this branch ** +// (2) pExpr cannot use subqueries or non-deterministic functions. // -// (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. +// (3) pSrc cannot be part of the left operand for a RIGHT JOIN. +// (Is there some way to relax this constraint?) // -// (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: */ +// (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-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) } @@ -81425,7 +81955,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 @@ -81467,7 +81997,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) @@ -81503,7 +82033,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) } @@ -81512,7 +82042,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) @@ -81564,7 +82094,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 { @@ -81603,7 +82133,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 { @@ -81656,14 +82186,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+7576) == 0 { +func Xsqlite3IsRowid(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:106155:20: */ + if Xsqlite3StrICmp(tls, z, ts+7615) == 0 { return 1 } - if Xsqlite3StrICmp(tls, z, ts+7584) == 0 { + if Xsqlite3StrICmp(tls, z, ts+7623) == 0 { return 1 } - if Xsqlite3StrICmp(tls, z, ts+7590) == 0 { + if Xsqlite3StrICmp(tls, z, ts+7629) == 0 { return 1 } return 0 @@ -81674,7 +82204,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 @@ -81732,7 +82262,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) @@ -81744,7 +82274,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 @@ -81764,7 +82294,7 @@ 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: // @@ -81784,7 +82314,10 @@ func sqlite3InRhsIsConstant(tls *libc.TLS, pIn uintptr) int32 { /* testdata/sqli // 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 @@ -81833,17 +82366,18 @@ func sqlite3InRhsIsConstant(tls *libc.TLS, pIn uintptr) int32 { /* testdata/sqli // 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 @@ -81891,7 +82425,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+7594, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+7633, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) Xsqlite3VdbeJumpHere(tls, v, iAddr) } else { var pIdx uintptr // Iterator variable @@ -81982,7 +82516,7 @@ func Xsqlite3FindInIndex(tls *libc.TLS, pParse uintptr, pX uintptr, inFlags U32, if colUsed == Bitmask(uint64(1))<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+7401) + pLimit = Xsqlite3Expr(tls, db, TK_INTEGER, ts+7440) if pLimit != 0 { (*Expr)(unsafe.Pointer(pLimit)).FaffExpr = int8(SQLITE_AFF_NUMERIC) pLimit = Xsqlite3PExpr(tls, pParse, TK_NE, @@ -82421,7 +82960,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+7809) + pLimit = Xsqlite3Expr(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, TK_INTEGER, ts+7848) (*Select)(unsafe.Pointer(pSel)).FpLimit = Xsqlite3PExpr(tls, pParse, TK_LIMIT, pLimit, uintptr(0)) } (*Select)(unsafe.Pointer(pSel)).FiLimit = 0 @@ -82438,8 +82977,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 } @@ -82448,7 +82988,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 { @@ -82485,7 +83025,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) @@ -82866,7 +83406,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) @@ -82878,7 +83418,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) } } @@ -82886,7 +83426,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) @@ -82906,11 +83446,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+7811, 2) == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+7814, + if Xsqlite3_strnicmp(tls, z, ts+7850, 2) == 0 { + Xsqlite3ErrorMsg(tls, pParse, ts+7853, libc.VaList(bp, func() uintptr { if negFlag != 0 { - return ts + 4867 /* "-" */ + return ts + 4902 /* "-" */ } return ts + 1518 /* "" */ }(), pExpr)) @@ -82925,14 +83465,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 { @@ -82947,7 +83487,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 @@ -82966,7 +83506,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) @@ -82978,6 +83518,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 @@ -82987,7 +83528,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+7841, + Xsqlite3ErrorMsg(tls, pParse, ts+7880, libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName)) } else { var savedSelfTab int32 = (*Parse)(unsafe.Pointer(pParse)).FiSelfTab @@ -83017,7 +83558,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 { @@ -83031,14 +83572,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 @@ -83057,7 +83598,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 { @@ -83081,7 +83622,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 } @@ -83089,7 +83630,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) @@ -83128,7 +83669,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 @@ -83187,14 +83738,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 + 7871, ts + 7876, ts + 7881, ts + 6126, ts + 6121} + *(*[5]uintptr)(unsafe.Pointer(bp + 72 /* azAff */)) = [5]uintptr{ts + 7910, ts + 7915, ts + 7920, ts + 6161, ts + 6156} 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 + 7889 /* "none" */ + return ts + 7928 /* "none" */ } return *(*uintptr)(unsafe.Pointer(bp + 72 /* &azAff[0] */ + uintptr(int32(aff)-SQLITE_AFF_BLOB)*8)) }()) @@ -83214,7 +83765,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) @@ -83261,7 +83812,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 @@ -83273,6 +83823,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 @@ -83433,9 +83984,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 @@ -83571,7 +84122,7 @@ __69: if !(int32((*Column)(unsafe.Pointer(pCol1)).FcolFlags)&COLFLAG_BUSY != 0) { goto __72 } - Xsqlite3ErrorMsg(tls, pParse, ts+7841, + Xsqlite3ErrorMsg(tls, pParse, ts+7880, libc.VaList(bp, (*Column)(unsafe.Pointer(pCol1)).FzCnName)) return 0 __72: @@ -83655,7 +84206,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: @@ -83825,7 +84376,7 @@ __41: goto __87 } - Xsqlite3ErrorMsg(tls, pParse, ts+7894, libc.VaList(bp+8, pExpr)) + Xsqlite3ErrorMsg(tls, pParse, ts+7933, 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 @@ -83867,7 +84418,7 @@ __90: if !(pDef == uintptr(0) || (*FuncDef)(unsafe.Pointer(pDef)).FxFinalize != uintptr(0)) { goto __91 } - Xsqlite3ErrorMsg(tls, pParse, ts+7921, libc.VaList(bp+16, pExpr)) + Xsqlite3ErrorMsg(tls, pParse, ts+7960, libc.VaList(bp+16, pExpr)) goto __3 __91: ; @@ -83990,39 +84541,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 @@ -84031,43 +84564,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+7523, + Xsqlite3ErrorMsg(tls, pParse, ts+7562, 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) @@ -84094,6 +84629,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 @@ -84114,15 +84671,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+6408, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+6443, 0) goto __3 // TK_IF_NULL_ROW Expr nodes are inserted ahead of expressions @@ -84173,15 +84730,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)) @@ -84195,22 +84752,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) @@ -84219,21 +84776,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) @@ -84243,28 +84800,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+7945, 0) + ts+7984, 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 { @@ -84273,7 +84830,7 @@ __136: return SQLITE_ERROR }(), int32((*Expr)(unsafe.Pointer(pExpr)).FaffExpr), *(*uintptr)(unsafe.Pointer(pExpr + 8)), int8(0), uint8(0)) -__137: +__136: ; goto __3 @@ -84285,7 +84842,7 @@ __3: return inReg } -var zAff = *(*[8]int8)(unsafe.Pointer(ts + 7995)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:106563:29 */ +var zAff = *(*[8]int8)(unsafe.Pointer(ts + 8034)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:107708:29 */ // Generate code that will evaluate expression pExpr just one time // per prepared statement execution. @@ -84302,7 +84859,7 @@ var zAff = *(*[8]int8)(unsafe.Pointer(ts + 7995)) /* 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 @@ -84316,7 +84873,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)) } @@ -84349,7 +84907,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) } @@ -84371,7 +84929,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 && @@ -84396,7 +84954,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) { @@ -84417,7 +84975,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) { @@ -84430,7 +84988,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 { @@ -84456,7 +85014,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 @@ -84538,7 +85096,7 @@ __3: // 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) @@ -84577,8 +85135,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 */))) @@ -84601,7 +85159,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) @@ -84799,13 +85357,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 @@ -84833,7 +85391,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) @@ -85053,13 +85611,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 @@ -85083,7 +85641,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 { @@ -85103,7 +85661,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) @@ -85157,7 +85715,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 { @@ -85261,7 +85819,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 @@ -85276,7 +85834,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 { @@ -85288,7 +85846,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), @@ -85299,7 +85857,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) @@ -85427,7 +85985,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 } @@ -85450,9 +86008,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) { @@ -85552,15 +86110,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) @@ -85594,7 +86152,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 { @@ -85612,7 +86170,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) @@ -85637,7 +86195,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 @@ -85661,7 +86219,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 @@ -85675,7 +86233,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 { @@ -85691,7 +86249,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 @@ -85704,7 +86262,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 } @@ -85731,7 +86289,7 @@ func exprRefToSrcList(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* // // 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) @@ -85780,7 +86338,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 @@ -85813,7 +86371,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 { @@ -85826,7 +86384,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) @@ -85843,7 +86401,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) @@ -85861,7 +86419,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 @@ -85969,7 +86527,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 @@ -86052,7 +86610,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) @@ -86078,7 +86636,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 { @@ -86103,7 +86661,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) } @@ -86112,7 +86670,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)))) { @@ -86122,7 +86680,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 { @@ -86140,7 +86698,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 @@ -86158,7 +86716,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 } @@ -86192,15 +86750,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+8003, 7) || + if 0 == Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+8042, 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+8011, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+8050, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) return 1 } return 0 @@ -86211,21 +86769,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+8039, + ts+8078, libc.VaList(bp, zDb, zDb, bTemp, zWhen, bNoDQS)) if bTemp == 0 { Xsqlite3NestedParse(tls, pParse, - ts+8214, + ts+8253, libc.VaList(bp+40, zDb, zWhen, bNoDQS)) } } @@ -86235,23 +86793,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+8388, libc.VaList(bp, zDb, zDb)) + ts+8427, libc.VaList(bp, zDb, zDb)) if bTemp == 0 { Xsqlite3NestedParse(tls, pParse, - ts+8535, 0) + ts+8574, 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) @@ -86264,7 +86822,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) @@ -86316,7 +86874,7 @@ __3: goto __4 } Xsqlite3ErrorMsg(tls, pParse, - ts+8686, libc.VaList(bp, zName)) + ts+8725, libc.VaList(bp, zName)) goto exit_rename_table __4: ; @@ -86329,7 +86887,7 @@ __4: goto exit_rename_table __5: ; - if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+8745, zName)) { + if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+8784, zName)) { goto __6 } goto exit_rename_table @@ -86339,7 +86897,7 @@ __6: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) { goto __7 } - Xsqlite3ErrorMsg(tls, pParse, ts+8751, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+8790, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) goto exit_rename_table __7: ; @@ -86392,24 +86950,24 @@ __12: // the schema to use the new table name. Xsqlite3NestedParse(tls, pParse, - ts+8778, libc.VaList(bp+16, zDb, zDb, zTabName, zName, libc.Bool32(iDb == 1), zTabName)) + ts+8817, 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+8962, + ts+9001, 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+9267, zDb) != 0) { + if !(Xsqlite3FindTable(tls, db, ts+9306, zDb) != 0) { goto __13 } Xsqlite3NestedParse(tls, pParse, - ts+9283, + ts+9322, libc.VaList(bp+112, zDb, zName, (*Table)(unsafe.Pointer(pTab)).FzName)) __13: ; @@ -86422,7 +86980,7 @@ __13: } Xsqlite3NestedParse(tls, pParse, - ts+9341, libc.VaList(bp+136, zDb, zTabName, zName, zTabName, zDb, zName)) + ts+9380, libc.VaList(bp+136, zDb, zTabName, zName, zTabName, zDb, zName)) __14: ; @@ -86435,12 +86993,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+9606, 0) + renameTestSchema(tls, pParse, zDb, libc.Bool32(iDb == 1), ts+9645, 0) exit_rename_table: Xsqlite3SrcListDelete(tls, db, pSrc) @@ -86449,12 +87007,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+9619, + ts+9658, libc.VaList(bp, zErr, zDb, zTab)) } @@ -86464,7 +87022,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) @@ -86504,12 +87062,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+9657, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+9696, 0) return } if (*Table)(unsafe.Pointer(pNew)).FpIndex != 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+9689, 0) + ts+9728, 0) return } if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED == 0 { @@ -86523,11 +87081,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+9716) + ts+9755) } if uint32(int32(*(*uint8)(unsafe.Pointer(pCol + 8))&0xf>>0)) != 0 && !(pDflt != 0) { sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, - ts+9775) + ts+9814) } // Ensure the default expression is something that sqlite3ValueFromExpr() @@ -86543,12 +87101,12 @@ func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr } if !(*(*uintptr)(unsafe.Pointer(bp + 56)) != 0) { sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, - ts+9828) + ts+9867) } 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+9874) + sqlite3ErrorIfNotEmpty(tls, pParse, zDb, zTab, ts+9913) } // Modify the CREATE TABLE statement. @@ -86563,7 +87121,7 @@ func Xsqlite3AlterFinishAddColumn(tls *libc.TLS, pParse uintptr, pColDef uintptr Xsqlite3NestedParse(tls, pParse, - ts+9901, + ts+9940, libc.VaList(bp, zDb, *(*int32)(unsafe.Pointer(pNew + 64)), zCol, *(*int32)(unsafe.Pointer(pNew + 64)), zTab)) Xsqlite3DbFree(tls, db, zCol) @@ -86591,7 +87149,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+10047, + ts+10086, libc.VaList(bp+40, zTab, zDb)) } } @@ -86610,7 +87168,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) @@ -86642,7 +87200,7 @@ __2: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { goto __3 } - Xsqlite3ErrorMsg(tls, pParse, ts+10277, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+10316, 0) goto exit_begin_add_column __3: ; @@ -86651,7 +87209,7 @@ __3: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) { goto __4 } - Xsqlite3ErrorMsg(tls, pParse, ts+10311, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+10350, 0) goto exit_begin_add_column __4: ; @@ -86686,7 +87244,7 @@ __6: nAlloc = (int32((*Table)(unsafe.Pointer(pNew)).FnCol)-1)/8*8 + 8 (*Table)(unsafe.Pointer(pNew)).FaCol = Xsqlite3DbMallocZero(tls, db, uint64(uint64(unsafe.Sizeof(Column{}))*uint64(nAlloc))) - (*Table)(unsafe.Pointer(pNew)).FzName = Xsqlite3MPrintf(tls, db, ts+10341, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + (*Table)(unsafe.Pointer(pNew)).FzName = Xsqlite3MPrintf(tls, db, ts+10380, 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 } @@ -86727,24 +87285,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 + 10360 /* "view" */ + zType = ts + 10399 /* "view" */ } if int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB { - zType = ts + 10365 /* "virtual table" */ + zType = ts + 10404 /* "virtual table" */ } if zType != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+10379, + Xsqlite3ErrorMsg(tls, pParse, ts+10418, libc.VaList(bp, func() uintptr { if bDrop != 0 { - return ts + 10397 /* "drop column from" */ + return ts + 10436 /* "drop column from" */ } - return ts + 10414 /* "rename columns o..." */ + return ts + 10453 /* "rename columns o..." */ }(), zType, (*Table)(unsafe.Pointer(pTab)).FzName)) return 1 @@ -86755,7 +87313,7 @@ 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: */ +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) @@ -86837,7 +87395,7 @@ __8: if !(iCol == int32((*Table)(unsafe.Pointer(pTab)).FnCol)) { goto __10 } - Xsqlite3ErrorMsg(tls, pParse, ts+10432, libc.VaList(bp, pOld)) + Xsqlite3ErrorMsg(tls, pParse, ts+10471, libc.VaList(bp, pOld)) goto exit_rename_column __10: ; @@ -86861,19 +87419,19 @@ __11: bQuote = int32(Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer((*Token)(unsafe.Pointer(pNew)).Fz)))]) & 0x80 Xsqlite3NestedParse(tls, pParse, - ts+10453, + ts+10492, 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+10635, + ts+10674, 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+9606, 1) + renameTestSchema(tls, pParse, zDb, libc.Bool32(iSchema == 1), ts+9645, 1) exit_rename_column: Xsqlite3SrcListDelete(tls, db, pSrc) @@ -86884,7 +87442,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. @@ -86896,7 +87454,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 { @@ -86915,7 +87473,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 { @@ -86927,7 +87485,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) { @@ -86938,7 +87496,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) @@ -86979,17 +87537,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 { @@ -87002,7 +87559,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) } } @@ -87010,9 +87567,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))) + } } } @@ -87021,7 +87581,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) @@ -87043,7 +87603,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) @@ -87058,7 +87618,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) } } @@ -87066,7 +87626,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 { @@ -87082,7 +87642,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) @@ -87105,7 +87665,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 @@ -87121,7 +87681,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 && @@ -87143,7 +87703,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 @@ -87165,7 +87725,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) @@ -87173,10 +87733,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+10766, + zErr = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+10805, libc.VaList(bp, zT, zN, func() uintptr { if *(*int8)(unsafe.Pointer(zWhen)) != 0 { - return ts + 10789 /* " " */ + return ts + 10828 /* " " */ } return ts + 1518 /* "" */ }(), zWhen, @@ -87189,12 +87749,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) @@ -87206,11 +87766,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) } @@ -87220,15 +87780,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+10791, 7) != 0 { - return Xsqlite3CorruptError(tls, 110009) + if Xsqlite3_strnicmp(tls, zSql, ts+10830, 7) != 0 { + return Xsqlite3CorruptError(tls, 111164) } (*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = func() uint8 { if bTemp != 0 { @@ -87245,7 +87805,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) @@ -87259,7 +87819,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) @@ -87279,7 +87839,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+10799, libc.VaList(bp, zNew)) + zQuot = Xsqlite3MPrintf(tls, db, ts+10838, libc.VaList(bp, zNew)) if zQuot == uintptr(0) { return SQLITE_NOMEM } else { @@ -87329,10 +87889,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+10805, libc.VaList(bp+8, zBuf1, + Xsqlite3_snprintf(tls, int32(nSql*int64(2)), zBuf2, ts+10844, 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 + 10789 /* " " */ + return ts + 10828 /* " " */ } return ts + 1518 /* "" */ }())) @@ -87365,7 +87925,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) @@ -87403,26 +87963,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 @@ -87463,7 +88034,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 @@ -87484,7 +88055,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) } } } @@ -87492,7 +88063,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 { @@ -87531,7 +88102,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) @@ -87874,7 +88445,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) && @@ -87885,7 +88456,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 @@ -87898,7 +88469,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) } @@ -87925,7 +88496,7 @@ func renameTableSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr) int32 // // 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: */ +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) @@ -88031,6 +88602,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) + } + } + } } } } @@ -88059,7 +88639,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) } @@ -88092,7 +88672,7 @@ func renameQuotefixExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { // 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) @@ -88206,7 +88786,7 @@ func renameQuotefixFunc(tls *libc.TLS, context uintptr, NotUsed int32, argv uint // 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: */ +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) @@ -88278,7 +88858,7 @@ func renameTableTest(tls *libc.TLS, context uintptr, NotUsed int32, argv uintptr // // 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) @@ -88318,7 +88898,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: ; @@ -88344,7 +88924,7 @@ __6: __4: ; - zNew = Xsqlite3MPrintf(tls, db, ts+10810, libc.VaList(bp, (int64((*RenameToken)(unsafe.Pointer(pCol)).Ft.Fz)-int64(zSql))/1, zSql, zEnd)) + zNew = Xsqlite3MPrintf(tls, db, ts+10849, 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) @@ -88364,7 +88944,7 @@ __7: // // 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) @@ -88432,7 +89012,7 @@ __5: if !(iCol < 0) { goto __6 } - Xsqlite3ErrorMsg(tls, pParse, ts+10432, libc.VaList(bp, pName)) + Xsqlite3ErrorMsg(tls, pParse, ts+10471, libc.VaList(bp, pName)) goto exit_drop_column __6: ; @@ -88442,12 +89022,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+10817, + Xsqlite3ErrorMsg(tls, pParse, ts+10856, 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 + 10845 /* "PRIMARY KEY" */ + return ts + 10884 /* "PRIMARY KEY" */ } - return ts + 6062 /* "UNIQUE" */ + return ts + 6097 /* "UNIQUE" */ }(), zCol)) goto exit_drop_column @@ -88458,7 +89038,7 @@ __7: if !(int32((*Table)(unsafe.Pointer(pTab)).FnCol) <= 1) { goto __8 } - Xsqlite3ErrorMsg(tls, pParse, ts+10857, libc.VaList(bp+24, zCol)) + Xsqlite3ErrorMsg(tls, pParse, ts+10896, libc.VaList(bp+24, zCol)) goto exit_drop_column __8: ; @@ -88478,11 +89058,11 @@ __9: renameFixQuotes(tls, pParse, zDb, libc.Bool32(iDb == 1)) Xsqlite3NestedParse(tls, pParse, - ts+10905, libc.VaList(bp+32, zDb, iDb, iCol, (*Table)(unsafe.Pointer(pTab)).FzName)) + ts+10944, 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+11026, 1) + renameTestSchema(tls, pParse, zDb, libc.Bool32(iDb == 1), ts+11065, 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) { @@ -88597,16 +89177,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 + 11044}, - {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11065}, - {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11085}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11104}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11123}} /* 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 + 11083}, + {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11104}, + {FnArg: int8(7), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11124}, + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11143}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_INTERNAL | SQLITE_UTF8 | SQLITE_FUNC_CONSTANT), FxSFunc: 0, FzName: ts + 11162}} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112291:18 */ //************* End of alter.c ********************************************** //************* Begin file analyze.c **************************************** @@ -88762,7 +89342,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) @@ -88803,7 +89383,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+11146, libc.VaList(bp, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab, aTable[i].FzCols)) + ts+11185, 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) } @@ -88815,10 +89395,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+11169, + ts+11208, libc.VaList(bp+24, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab, zWhereType, zWhere)) } else if (*Sqlite3)(unsafe.Pointer(db)).FxPreUpdateCallback != 0 { - Xsqlite3NestedParse(tls, pParse, ts+11199, libc.VaList(bp+56, (*Db)(unsafe.Pointer(pDb)).FzDbSName, zTab)) + Xsqlite3NestedParse(tls, pParse, ts+11238, 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) @@ -88839,10 +89419,10 @@ var aTable = [3]struct { FzName uintptr FzCols uintptr }{ - {FzName: ts + 11217 /* "sqlite_stat1" */, FzCols: ts + 11230 /* "tbl,idx,stat" */}, - {FzName: ts + 11243 /* "sqlite_stat4" */, FzCols: ts + 11256 /* "tbl,idx,neq,nlt,..." */}, - {FzName: ts + 11284 /* "sqlite_stat3" */}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111309:5 */ + {FzName: ts + 11256 /* "sqlite_stat1" */, FzCols: ts + 11269 /* "tbl,idx,stat" */}, + {FzName: ts + 11282 /* "sqlite_stat4" */, FzCols: ts + 11295 /* "tbl,idx,neq,nlt,..." */}, + {FzName: ts + 11323 /* "sqlite_stat3" */}, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:112479:5 */ // Recommended number of samples for sqlite_stat4 @@ -88869,14 +89449,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 @@ -88887,12 +89467,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))) @@ -88901,7 +89481,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))) @@ -88916,7 +89496,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))) @@ -88926,7 +89506,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 @@ -88941,7 +89521,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 @@ -88976,7 +89556,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 @@ -89071,7 +89651,7 @@ var statInitFuncdef = FuncDef{ FnArg: int8(4), // nArg FfuncFlags: U32(SQLITE_UTF8), // pNext FxSFunc: 0, // xValue, xInverse - FzName: ts + 11297} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111619:22 */ + FzName: ts + 11336} /* 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 @@ -89082,7 +89662,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 @@ -89104,7 +89684,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)) @@ -89122,7 +89702,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 @@ -89265,7 +89845,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 @@ -89317,7 +89897,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 @@ -89389,7 +89969,7 @@ var statPushFuncdef = FuncDef{ FnArg: int8(2 + IsStat4), FfuncFlags: U32(SQLITE_UTF8), // pNext FxSFunc: 0, // xValue, xInverse - FzName: ts + 11307} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:111909:22 */ + FzName: ts + 11346} /* 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 @@ -89408,7 +89988,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) @@ -89434,15 +90014,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+11317, + Xsqlite3_str_appendf(tls, bp+24, ts+11356, libc.VaList(bp, func() uint64 { if (*StatAccum)(unsafe.Pointer(p)).FnSkipAhead != 0 { return U64((*StatAccum)(unsafe.Pointer(p)).FnEst) @@ -89452,7 +90037,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+11322, 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+11361, libc.VaList(bp+8, iVal)) } Xsqlite3ResultStrAccum(tls, context, bp+24) @@ -89495,7 +90083,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+11328, libc.VaList(bp+16, U64(*(*TRowcnt)(unsafe.Pointer(aCnt + uintptr(i)*4))))) + Xsqlite3_str_appendf(tls, bp+56, ts+11367, 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-- @@ -89509,9 +90097,9 @@ var statGetFuncdef = FuncDef{ FnArg: int8(1 + IsStat4), FfuncFlags: U32(SQLITE_UTF8), // pNext FxSFunc: 0, // xValue, xInverse - FzName: ts + 11334} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:112043:22 */ + FzName: ts + 11373} /* 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, @@ -89520,7 +90108,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 @@ -89556,7 +90144,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+11343, (*Table)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 { + if Xsqlite3_strlike(tls, ts+11382, (*Table)(unsafe.Pointer(pTab)).FzName, uint32('\\')) == 0 { // Do not gather statistics on system tables return } @@ -89574,10 +90162,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+11217, uint64(13)) + libc.Xmemcpy(tls, (*Table)(unsafe.Pointer(pStat1)).FzName, ts+11256, 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. @@ -89807,10 +90395,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+11353, 0) + Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+11392, 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. @@ -89869,18 +90457,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+11353, 0) + Xsqlite3VdbeAddOp4(tls, v, OP_MakeRecord, regTabname, 3, regTemp, ts+11392, 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) @@ -89888,7 +90476,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 @@ -89913,7 +90501,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 @@ -89922,9 +90510,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+11357) + openStatTable(tls, pParse, iDb, iStatCur, (*Index)(unsafe.Pointer(pOnlyIdx)).FzName, ts+11396) } else { - openStatTable(tls, pParse, iDb, iStatCur, (*Table)(unsafe.Pointer(pTab)).FzName, ts+11361) + openStatTable(tls, pParse, iDb, iStatCur, (*Table)(unsafe.Pointer(pTab)).FzName, ts+11400) } analyzeOneTable(tls, pParse, pTab, pOnlyIdx, iStatCur, (*Parse)(unsafe.Pointer(pParse)).FnMem+1, (*Parse)(unsafe.Pointer(pParse)).FnTab) loadAnalysis(tls, pParse, iDb) @@ -89940,7 +90528,7 @@ func analyzeTable(tls *libc.TLS, pParse uintptr, pTab uintptr, pOnlyIdx uintptr) // 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) @@ -90003,16 +90591,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 @@ -90041,15 +90629,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+11365, z) == 0 { + if Xsqlite3_strglob(tls, ts+11404, z) == 0 { libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(1), 2, 0x4) - } else if Xsqlite3_strglob(tls, ts+11376, z) == 0 { + } else if Xsqlite3_strglob(tls, ts+11415, 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+11386, z) == 0 { + } else if Xsqlite3_strglob(tls, ts+11425, z) == 0 { libc.SetBitFieldPtr16Uint32(pIndex+100, uint32(1), 6, 0x40) } for int32(*(*int8)(unsafe.Pointer(z))) != 0 && int32(*(*int8)(unsafe.Pointer(z))) != ' ' { @@ -90071,7 +90659,7 @@ func decodeIntArray(tls *libc.TLS, zIntArray uintptr, nOut int32, aOut uintptr, // // 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) @@ -90133,7 +90721,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++ { @@ -90150,7 +90738,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 @@ -90208,7 +90796,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) @@ -90229,7 +90817,7 @@ func findIndexOrPrimaryKey(tls *libc.TLS, db uintptr, zName uintptr, zDb uintptr // 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) @@ -90365,15 +90953,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+11243, zDb)) != uintptr(0) && + if libc.AssignUintptr(&pStat4, Xsqlite3FindTable(tls, db, ts+11282, zDb)) != uintptr(0) && int32((*Table)(unsafe.Pointer(pStat4)).FeTabType) == TABTYP_NORM { rc = loadStatTbl(tls, db, - ts+11398, - ts+11452, + ts+11437, + ts+11491, zDb) } return rc @@ -90397,7 +90985,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) @@ -90425,10 +91013,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+11217, (*AnalysisInfo)(unsafe.Pointer(bp+8)).FzDatabase)) != 0 && + if libc.AssignUintptr(&pStat1, Xsqlite3FindTable(tls, db, ts+11256, (*AnalysisInfo)(unsafe.Pointer(bp+8)).FzDatabase)) != 0 && int32((*Table)(unsafe.Pointer(pStat1)).FeTabType) == TABTYP_NORM { zSql = Xsqlite3MPrintf(tls, db, - ts+11504, libc.VaList(bp, (*AnalysisInfo)(unsafe.Pointer(bp+8 /* &sInfo */)).FzDatabase)) + ts+11543, libc.VaList(bp, (*AnalysisInfo)(unsafe.Pointer(bp+8 /* &sInfo */)).FzDatabase)) if zSql == uintptr(0) { rc = SQLITE_NOMEM } else { @@ -90504,7 +91092,7 @@ func Xsqlite3AnalysisLoad(tls *libc.TLS, db uintptr, iDb int32) int32 { /* testd // 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 { @@ -90518,9 +91106,9 @@ 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+6316, zName) == 0) + iDb == 0 && Xsqlite3StrICmp(tls, ts+6351, zName) == 0) } // An SQL user-function registered to do the work of an ATTACH statement. The @@ -90536,7 +91124,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) @@ -90587,7 +91175,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+3770) + *(*uintptr)(unsafe.Pointer(bp + 32 /* pVfs */)) = Xsqlite3_vfs_find(tls, ts+3805) if !(*(*uintptr)(unsafe.Pointer(bp + 32)) == uintptr(0)) { goto __5 } @@ -90603,7 +91191,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+11545, db, pNew+8, 0, SQLITE_OPEN_MAIN_DB) + rc = Xsqlite3BtreeOpen(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pVfs */)), ts+11584, db, pNew+8, 0, SQLITE_OPEN_MAIN_DB) goto __4 __3: // This is a real ATTACH @@ -90616,7 +91204,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+11548, + *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11587, libc.VaList(bp, *(*int32)(unsafe.Pointer(db + 136 + 7*4)))) goto attach_error __7: @@ -90630,7 +91218,7 @@ __8: if !(Xsqlite3DbIsNamed(tls, db, i, zName) != 0) { goto __11 } - *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11585, libc.VaList(bp+8, zName)) + *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11624, libc.VaList(bp+8, zName)) goto attach_error __11: ; @@ -90701,7 +91289,7 @@ __4: goto __18 } rc = SQLITE_ERROR - *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11615, 0) + *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11654, 0) goto __19 __18: if !(rc == SQLITE_OK) { @@ -90718,7 +91306,7 @@ __21: goto __23 } *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, - ts+11644, 0) + ts+11683, 0) rc = SQLITE_ERROR __23: ; @@ -90794,7 +91382,7 @@ __30: if !(*(*uintptr)(unsafe.Pointer(bp + 56)) == uintptr(0)) { goto __32 } - *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11712, libc.VaList(bp+16, zFile)) + *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrDyn */)) = Xsqlite3MPrintf(tls, db, ts+11751, libc.VaList(bp+16, zFile)) __32: ; __31: @@ -90829,7 +91417,7 @@ __34: // 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: */ +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) @@ -90882,14 +91470,14 @@ __4: if !(i >= (*Sqlite3)(unsafe.Pointer(db)).FnDb) { goto __7 } - Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11740, libc.VaList(bp, zName)) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11779, libc.VaList(bp, zName)) goto detach_error __7: ; if !(i < 2) { goto __8 } - Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11761, libc.VaList(bp+8, zName)) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11800, libc.VaList(bp+8, zName)) goto detach_error __8: ; @@ -90897,7 +91485,7 @@ __8: Xsqlite3BtreeIsInBackup(tls, (*Db)(unsafe.Pointer(pDb)).FpBt) != 0) { goto __9 } - Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11787, libc.VaList(bp+16, zName)) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([128]int8{})), bp+24, ts+11826, libc.VaList(bp+16, zName)) goto detach_error __9: ; @@ -90934,7 +91522,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) @@ -91013,7 +91601,7 @@ 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: */ +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) } @@ -91021,12 +91609,12 @@ var detach_func = FuncDef{ FnArg: int8(1), // nArg FfuncFlags: U32(SQLITE_UTF8), // pNext FxSFunc: 0, // xValue, xInverse - FzName: ts + 11809} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113468:24 */ + FzName: ts + 11848} /* 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: */ +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) } @@ -91034,10 +91622,10 @@ var attach_func = FuncDef{ FnArg: int8(3), // nArg FfuncFlags: U32(SQLITE_UTF8), // pNext FxSFunc: 0, // xValue, xInverse - FzName: ts + 11823} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:113488:24 */ + FzName: ts + 11862} /* 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) @@ -91049,7 +91637,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+11837, libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType)) + Xsqlite3ErrorMsg(tls, (*DbFixer)(unsafe.Pointer(pFix)).FpParse, ts+11876, libc.VaList(bp, (*DbFixer)(unsafe.Pointer(pFix)).FzType)) return WRC_Abort } } @@ -91057,7 +91645,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) @@ -91082,18 +91670,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+11861, + ts+11900, 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 } @@ -91101,7 +91690,7 @@ __1: goto __2 __2: i++ - pItem += 112 + pItem += 104 goto __1 goto __3 __3: @@ -91118,7 +91707,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 @@ -91154,7 +91743,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) @@ -91169,15 +91758,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 || @@ -91267,7 +91856,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 @@ -91280,8 +91869,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+11907, 0) +func sqliteAuthBadReturnCode(tls *libc.TLS, pParse uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:114937:13: */ + Xsqlite3ErrorMsg(tls, pParse, ts+11946, 0) (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR } @@ -91292,7 +91881,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) @@ -91307,11 +91896,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+11930, libc.VaList(bp, zTab, zCol)) + var z uintptr = Xsqlite3_mprintf(tls, ts+11969, libc.VaList(bp, zTab, zCol)) if (*Sqlite3)(unsafe.Pointer(db)).FnDb > 2 || iDb != 0 { - z = Xsqlite3_mprintf(tls, ts+11936, libc.VaList(bp+16, zDb, z)) + z = Xsqlite3_mprintf(tls, ts+11975, libc.VaList(bp+16, zDb, z)) } - Xsqlite3ErrorMsg(tls, pParse, ts+11942, libc.VaList(bp+32, z)) + Xsqlite3ErrorMsg(tls, pParse, ts+11981, libc.VaList(bp+32, z)) (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_AUTH } else if rc != SQLITE_IGNORE && rc != SQLITE_OK { sqliteAuthBadReturnCode(tls, pParse) @@ -91326,7 +91915,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 @@ -91345,8 +91934,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 } } @@ -91363,7 +91952,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 + 7584 /* "ROWID" */ + zCol = ts + 7623 /* "ROWID" */ } if SQLITE_IGNORE == Xsqlite3AuthReadCol(tls, pParse, (*Table)(unsafe.Pointer(pTab)).FzName, zCol, iDb) { @@ -91375,7 +91964,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 @@ -91397,7 +91986,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+11969, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+12008, 0) (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_AUTH } else if rc != SQLITE_OK && rc != SQLITE_IGNORE { rc = SQLITE_DENY @@ -91409,7 +91998,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 @@ -91418,7 +92007,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) @@ -91433,7 +92022,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 @@ -91467,7 +92056,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 } @@ -91479,7 +92068,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 @@ -91503,7 +92092,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 @@ -91540,9 +92129,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) @@ -91569,7 +92156,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))<= (*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+6316) == 0 { + if Xsqlite3StrICmp(tls, zDatabase, ts+6351) == 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+8003, 7) == 0 { + if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+8042, 7) == 0 { if i == 1 { - if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11984+7) == 0 || - Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12003+7) == 0 || - Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5828+7) == 0 { + if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12023+7) == 0 || + Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12042+7) == 0 || + Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5863+7) == 0 { p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema+8, - ts+12017) + ts+12056) } } else { - if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12003+7) == 0 { + if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12042+7) == 0 { p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i)*32)).FpSchema+8, - ts+5828) + ts+5863) } } } @@ -91763,12 +92348,12 @@ func Xsqlite3FindTable(tls *libc.TLS, db uintptr, zName uintptr, zDatabase uintp break } } - if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+8003, 7) == 0 { - if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12003+7) == 0 { - p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FpSchema+8, ts+5828) - } else if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+11984+7) == 0 { + if p == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+8042, 7) == 0 { + if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12042+7) == 0 { + p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FpSchema+8, ts+5863) + } else if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12023+7) == 0 { p = Xsqlite3HashFind(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpSchema+8, - ts+12017) + ts+12056) } } } @@ -91783,7 +92368,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) @@ -91804,7 +92389,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+12036, 7) == 0 { + if pMod == uintptr(0) && Xsqlite3_strnicmp(tls, zName, ts+12075, 7) == 0 { pMod = Xsqlite3PragmaVtabRegister(tls, db, zName) } if pMod != 0 && Xsqlite3VtabEponymousTableInit(tls, pParse, pMod) != 0 { @@ -91823,14 +92408,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 + 12044 /* "no such view" */ + zMsg = ts + 12083 /* "no such view" */ } else { - zMsg = ts + 12057 /* "no such table" */ + zMsg = ts + 12096 /* "no such table" */ } if zDbase != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+6511, libc.VaList(bp, zMsg, zDbase, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+6555, libc.VaList(bp, zMsg, zDbase, zName)) } else { - Xsqlite3ErrorMsg(tls, pParse, ts+6521, libc.VaList(bp+24, zMsg, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+6565, libc.VaList(bp+24, zMsg, zName)) } } else { @@ -91846,7 +92431,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 { @@ -91860,13 +92445,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+8003, 7) == 0 { - if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5828+7) == 0 { - return ts + 12003 /* "sqlite_schema" */ +func Xsqlite3PreferredTableName(tls *libc.TLS, zName uintptr) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:115641:27: */ + if Xsqlite3_strnicmp(tls, zName, ts+8042, 7) == 0 { + if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+5863+7) == 0 { + return ts + 12042 /* "sqlite_schema" */ } - if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12017+7) == 0 { - return ts + 11984 /* "sqlite_temp_sche..." */ + if Xsqlite3StrICmp(tls, zName+uintptr(7), ts+12056+7) == 0 { + return ts + 12023 /* "sqlite_temp_sche..." */ } } return zName @@ -91882,7 +92467,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. @@ -91909,7 +92494,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) @@ -91925,7 +92510,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 @@ -91957,7 +92542,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++ { @@ -91983,7 +92568,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 { @@ -92004,7 +92589,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++ { @@ -92026,14 +92611,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 */)) @@ -92056,7 +92641,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) } @@ -92073,7 +92658,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 @@ -92092,7 +92677,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) @@ -92111,7 +92696,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 @@ -92161,7 +92746,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 @@ -92198,7 +92783,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 @@ -92211,7 +92796,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 @@ -92233,7 +92818,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)) @@ -92246,9 +92831,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+5828) + Xsqlite3TableLock(tls, p, iDb, uint32(SCHEMA_ROOT), uint8(1), ts+5863) Xsqlite3VdbeAddOp4Int(tls, v, OP_OpenWrite, 0, SCHEMA_ROOT, iDb, 5) if (*Parse)(unsafe.Pointer(p)).FnTab == 0 { (*Parse)(unsafe.Pointer(p)).FnTab = 1 @@ -92259,7 +92844,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 @@ -92275,7 +92860,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+6316, zName) { + if i == 0 && 0 == Xsqlite3_stricmp(tls, ts+6351, zName) { goto __3 } @@ -92295,7 +92880,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) @@ -92319,7 +92904,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) @@ -92328,13 +92913,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+12071, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+12110, 0) return -1 } *(*uintptr)(unsafe.Pointer(pUnqual)) = pName2 iDb = Xsqlite3FindDb(tls, db, pName1) if iDb < 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+12088, libc.VaList(bp, pName1)) + Xsqlite3ErrorMsg(tls, pParse, ts+12127, libc.VaList(bp, pName1)) return -1 } } else { @@ -92346,7 +92931,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)) } @@ -92360,7 +92945,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) @@ -92379,9 +92964,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+8003, 7) || + if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 && 0 == Xsqlite3_strnicmp(tls, zName, ts+8042, 7) || Xsqlite3ReadOnlyShadowTables(tls, db) != 0 && Xsqlite3ShadowTableName(tls, db, zName) != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+12108, + Xsqlite3ErrorMsg(tls, pParse, ts+12147, libc.VaList(bp, zName)) return SQLITE_ERROR } @@ -92391,7 +92976,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 { } @@ -92402,7 +92987,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))) { @@ -92422,7 +93007,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++ { @@ -92469,7 +93054,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 @@ -92499,7 +93084,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 { @@ -92522,7 +93107,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) @@ -92550,9 +93135,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 + 12017 /* "sqlite_temp_mast..." */ + return ts + 12056 /* "sqlite_temp_mast..." */ } - return ts + 5828 /* "sqlite_master" */ + return ts + 5863 /* "sqlite_master" */ }()) *(*uintptr)(unsafe.Pointer(bp + 24 /* pName */)) = pName1 goto __2 @@ -92570,7 +93155,7 @@ __3: } // If creating a temp table, the name may not be qualified. Unless // the database name is "temp" anyway. - Xsqlite3ErrorMsg(tls, pParse, ts+12150, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+12189, 0) return __4: ; @@ -92598,9 +93183,9 @@ __7: ; if !(Xsqlite3CheckObjectName(tls, pParse, zName, func() uintptr { if isView != 0 { - return ts + 10360 + return ts + 10399 } - return ts + 8745 + return ts + 8784 }(), zName) != 0) { goto __8 } @@ -92617,9 +93202,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 + 12017 + return ts + 12056 } - return ts + 5828 + return ts + 5863 }(), uintptr(0), zDb) != 0) { goto __10 } @@ -92657,12 +93242,12 @@ __13: if !!(noErr != 0) { goto __15 } - Xsqlite3ErrorMsg(tls, pParse, ts+12191, + Xsqlite3ErrorMsg(tls, pParse, ts+12230, libc.VaList(bp, func() uintptr { if int32((*Table)(unsafe.Pointer(pTable)).FeTabType) == TABTYP_VIEW { - return ts + 10360 /* "view" */ + return ts + 10399 /* "view" */ } - return ts + 8745 /* "table" */ + return ts + 8784 /* "table" */ }(), *(*uintptr)(unsafe.Pointer(bp + 24 /* pName */)))) goto __16 __15: @@ -92677,7 +93262,7 @@ __14: if !(Xsqlite3FindIndex(tls, db, zName, zDb1) != uintptr(0)) { goto __17 } - Xsqlite3ErrorMsg(tls, pParse, ts+12212, libc.VaList(bp+16, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+12251, libc.VaList(bp+16, zName)) goto begin_table_error __17: ; @@ -92780,8 +93365,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. @@ -92791,10 +93376,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+12247, uintptr(0)) + Xsqlite3HashInsert(tls, pHash, ts+12286, uintptr(0)) Xsqlite3ExprListDelete(tls, db, (*Returning)(unsafe.Pointer(pRet)).FpReturnEL) Xsqlite3DbFree(tls, db, pRet) } @@ -92813,12 +93398,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+12264, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+12303, 0) } else { } @@ -92839,7 +93424,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 + 12247 /* "sqlite_returning" */ + (*Returning)(unsafe.Pointer(pRet)).FretTrig.FzName = ts + 12286 /* "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) @@ -92851,7 +93436,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+12247, pRet+16) == + if Xsqlite3HashInsert(tls, pHash, ts+12286, pRet+16) == pRet+16 { Xsqlite3OomFault(tls, db) } @@ -92863,7 +93448,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 @@ -92885,7 +93470,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+12298, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+12337, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName)) return } if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) >= PARSE_MODE_RENAME) { @@ -92897,13 +93482,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+12321, 6) == 0 { + Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(6)), ts+12360, 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+12328, 9) == 0 { + Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(bp+32)).Fz+uintptr((*Token)(unsafe.Pointer(bp+32)).Fn-uint32(9)), ts+12367, 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-- @@ -92943,7 +93528,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+12338, libc.VaList(bp+8, z)) + Xsqlite3ErrorMsg(tls, pParse, ts+12377, libc.VaList(bp+8, z)) Xsqlite3DbFree(tls, db, z) return } @@ -92982,7 +93567,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 @@ -93029,7 +93614,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) @@ -93103,7 +93688,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) @@ -93115,11 +93700,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+12364, + Xsqlite3ErrorMsg(tls, pParse, ts+12403, libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName)) } else if int32((*Column)(unsafe.Pointer(pCol)).FcolFlags)&COLFLAG_GENERATED != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+12409, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+12448, 0) } else { // A copy of pExpr is used instead of the original, as pExpr contains // tokens that point to volatile memory. @@ -93156,7 +93741,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 { @@ -93165,12 +93750,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+12450, 0) + ts+12489, 0) } } @@ -93190,7 +93775,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) @@ -93215,7 +93800,7 @@ __1: goto __2 } Xsqlite3ErrorMsg(tls, pParse, - ts+12502, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + ts+12541, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) goto primary_key_exit __2: ; @@ -93294,7 +93879,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) @@ -93304,7 +93889,7 @@ __13: goto __17 } Xsqlite3ErrorMsg(tls, pParse, - ts+12543, 0) + ts+12582, 0) goto __18 __17: Xsqlite3CreateIndex(tls, pParse, uintptr(0), uintptr(0), uintptr(0), pList, onError, uintptr(0), @@ -93321,7 +93906,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) @@ -93351,7 +93936,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 @@ -93386,7 +93971,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) @@ -93406,7 +93991,7 @@ __1: if !(int32((*Parse)(unsafe.Pointer(pParse)).FeParseMode) == PARSE_MODE_DECLARE_VTAB) { goto __2 } - Xsqlite3ErrorMsg(tls, pParse, ts+12599, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+12638, 0) goto generated_done __2: ; @@ -93419,13 +94004,13 @@ __3: if !(pType != 0) { goto __4 } - if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, ts+12642, (*Token)(unsafe.Pointer(pType)).Fz, 7) == 0) { + if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(7) && Xsqlite3_strnicmp(tls, ts+12681, (*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+12650, (*Token)(unsafe.Pointer(pType)).Fz, 6) == 0) { + if !((*Token)(unsafe.Pointer(pType)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, ts+12689, (*Token)(unsafe.Pointer(pType)).Fz, 6) == 0) { goto __7 } eType = U8(COLFLAG_STORED) @@ -93458,7 +94043,7 @@ __10: goto generated_done generated_error: - Xsqlite3ErrorMsg(tls, pParse, ts+12657, + Xsqlite3ErrorMsg(tls, pParse, ts+12696, libc.VaList(bp, (*Column)(unsafe.Pointer(pCol)).FzCnName)) generated_done: Xsqlite3ExprDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pExpr) @@ -93481,7 +94066,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 @@ -93495,7 +94080,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: @@ -93530,7 +94115,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 @@ -93566,7 +94151,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) @@ -93601,12 +94186,12 @@ __3: n = n + identLength(tls, (*Table)(unsafe.Pointer(p)).FzName) if n < 50 { zSep = ts + 1518 /* "" */ - zSep2 = ts + 12688 /* "," */ - zEnd = ts + 4892 /* ")" */ + zSep2 = ts + 12727 /* "," */ + zEnd = ts + 4927 /* ")" */ } else { - zSep = ts + 12690 /* "\n " */ - zSep2 = ts + 12694 /* ",\n " */ - zEnd = ts + 12699 /* "\n)" */ + zSep = ts + 12729 /* "\n " */ + zSep2 = ts + 12733 /* ",\n " */ + zEnd = ts + 12738 /* "\n)" */ } n = n + (35 + 6*int32((*Table)(unsafe.Pointer(p)).FnCol)) zStmt = Xsqlite3DbMallocRaw(tls, uintptr(0), uint64(n)) @@ -93614,7 +94199,7 @@ __3: Xsqlite3OomFault(tls, db) return uintptr(0) } - Xsqlite3_snprintf(tls, n, zStmt, ts+12702, 0) + Xsqlite3_snprintf(tls, n, zStmt, ts+12741, 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('(') @@ -93648,21 +94233,21 @@ __5: goto __6 __6: ; - Xsqlite3_snprintf(tls, n-*(*int32)(unsafe.Pointer(bp + 8)), zStmt+uintptr(*(*int32)(unsafe.Pointer(bp + 8))), ts+3598, libc.VaList(bp, zEnd)) + Xsqlite3_snprintf(tls, n-*(*int32)(unsafe.Pointer(bp + 8)), zStmt+uintptr(*(*int32)(unsafe.Pointer(bp + 8))), ts+3633, libc.VaList(bp, zEnd)) return zStmt } var azType1 = [5]uintptr{ ts + 1518, - ts + 12716, - ts + 12722, - ts + 12727, - ts + 12732, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:116084:23 */ + ts + 12755, + ts + 12761, + ts + 12766, + ts + 12771, +} /* 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 { @@ -93691,7 +94276,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 @@ -93720,7 +94305,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 @@ -93740,7 +94325,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 @@ -93760,7 +94345,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 @@ -93793,7 +94378,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 @@ -93832,7 +94417,7 @@ func recomputeColumnsNotIndexed(tls *libc.TLS, pIdx uintptr) { /* testdata/sqlit // 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) @@ -93880,7 +94465,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, @@ -93995,7 +94580,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 @@ -94028,7 +94613,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 @@ -94072,7 +94657,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, '_') @@ -94109,7 +94694,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) @@ -94165,10 +94750,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+12738, + ts+12777, libc.VaList(bp, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName, Xsqlite3ColumnType(tls, pCol, ts+1518))) } else { - Xsqlite3ErrorMsg(tls, pParse, ts+12771, + Xsqlite3ErrorMsg(tls, pParse, ts+12810, libc.VaList(bp+24, (*Table)(unsafe.Pointer(p)).FzName, (*Column)(unsafe.Pointer(pCol)).FzCnName)) } return @@ -94188,11 +94773,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+12798, 0) + ts+12837, 0) return } if (*Table)(unsafe.Pointer(p)).FtabFlags&U32(TF_HasPrimaryKey) == U32(0) { - Xsqlite3ErrorMsg(tls, pParse, ts+12848, libc.VaList(bp+40, (*Table)(unsafe.Pointer(p)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+12887, libc.VaList(bp+40, (*Table)(unsafe.Pointer(p)).FzName)) return } *(*U32)(unsafe.Pointer(p + 48)) |= U32(TF_WithoutRowid | TF_NoVisibleRowid) @@ -94236,7 +94821,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr } } if nNG == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+12880, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+12919, 0) return } } @@ -94269,12 +94854,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 + 8745 /* "table" */ - zType2 = ts + 12924 /* "TABLE" */ + zType = ts + 8784 /* "table" */ + zType2 = ts + 12963 /* "TABLE" */ } else { // A view - zType = ts + 10360 /* "view" */ - zType2 = ts + 12930 /* "VIEW" */ + zType = ts + 10399 /* "view" */ + zType2 = ts + 12969 /* "VIEW" */ } // If this is a CREATE TABLE xx AS SELECT ..., execute the SELECT @@ -94360,7 +94945,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+12935, libc.VaList(bp+48, zType2, n, (*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fz)) + ts+12974, libc.VaList(bp+48, zType2, n, (*Parse)(unsafe.Pointer(pParse)).FsNameToken.Fz)) } // A slot for the record has already been allocated in the @@ -94368,7 +94953,7 @@ func Xsqlite3EndTable(tls *libc.TLS, pParse uintptr, pCons uintptr, pEnd uintptr // the information we've collected. Xsqlite3NestedParse(tls, pParse, - ts+12950, + ts+12989, libc.VaList(bp+72, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, zType, (*Table)(unsafe.Pointer(p)).FzName, @@ -94386,14 +94971,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+13048, + ts+13087, 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+13090, libc.VaList(bp+136, (*Table)(unsafe.Pointer(p)).FzName)), uint16(0)) + Xsqlite3MPrintf(tls, db, ts+13129, libc.VaList(bp+136, (*Table)(unsafe.Pointer(p)).FzName)), uint16(0)) } // Add the table to the in-memory representation of the database. @@ -94414,7 +94999,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+9267) == 0 { + if libc.Xstrcmp(tls, (*Table)(unsafe.Pointer(p)).FzName, ts+9306) == 0 { (*Schema)(unsafe.Pointer((*Table)(unsafe.Pointer(p)).FpSchema)).FpSeqTab = p } @@ -94430,7 +95015,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) @@ -94451,7 +95036,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+13124, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+13163, 0) goto create_view_fail __1: ; @@ -94473,7 +95058,7 @@ __2: Xsqlite3TwoPartName(tls, pParse, pName1, pName2, bp) iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(p)).FpSchema) - Xsqlite3FixInit(tls, bp+8, pParse, iDb, ts+10360, *(*uintptr)(unsafe.Pointer(bp /* pName */))) + Xsqlite3FixInit(tls, bp+8, pParse, iDb, ts+10399, *(*uintptr)(unsafe.Pointer(bp /* pName */))) if !(Xsqlite3FixSelect(tls, bp+8, pSelect) != 0) { goto __3 } @@ -94548,14 +95133,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 @@ -94588,7 +95172,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+13160, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+13199, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName)) return 1 } @@ -94602,8 +95186,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++ @@ -94612,7 +95197,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++ @@ -94663,7 +95249,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) { @@ -94693,7 +95279,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 @@ -94719,14 +95305,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+13190, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+13229, 0) } Xsqlite3VdbeAddOp3(tls, v, OP_Destroy, iTable, r1, iDb) Xsqlite3MayAbort(tls, pParse) @@ -94740,7 +95326,7 @@ func destroyRootPage(tls *libc.TLS, pParse uintptr, iTable int32, iDb int32) { / // token for additional information. Xsqlite3NestedParse(tls, pParse, - ts+13205, + ts+13244, 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) } @@ -94749,7 +95335,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 @@ -94795,7 +95381,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) @@ -94804,17 +95390,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+13272, libc.VaList(bp, i)) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([24]int8{})), bp+40, ts+13311, libc.VaList(bp, i)) if Xsqlite3FindTable(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, bp+40, zDbName) != 0 { Xsqlite3NestedParse(tls, pParse, - ts+11169, + ts+11208, 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) @@ -94847,7 +95433,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+13286, + ts+13325, libc.VaList(bp, (*Db)(unsafe.Pointer(pDb)).FzDbSName, (*Table)(unsafe.Pointer(pTab)).FzName)) } @@ -94859,7 +95445,7 @@ func Xsqlite3CodeDropTable(tls *libc.TLS, pParse uintptr, pTab uintptr, iDb int3 // database. Xsqlite3NestedParse(tls, pParse, - ts+13331, + ts+13370, 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) @@ -94878,7 +95464,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 && @@ -94889,12 +95475,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+8003, 7) == 0 { - if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+3221, 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+8042, 7) == 0 { + if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+3256, 4) == 0 { return 0 } - if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+6999, 10) == 0 { + if Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName+uintptr(7), ts+7043, 10) == 0 { return 0 } return 1 @@ -94910,7 +95496,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) @@ -94978,9 +95564,9 @@ __7: zTab = func() uintptr { if !(0 != 0) && iDb == 1 { - return ts + 12017 + return ts + 12056 } - return ts + 5828 + return ts + 5863 }() zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FzDbSName zArg2 = uintptr(0) @@ -95040,7 +95626,7 @@ __18: if !(tableMayNotBeDropped(tls, db, pTab) != 0) { goto __19 } - Xsqlite3ErrorMsg(tls, pParse, ts+13398, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+13437, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) goto exit_drop_table __19: ; @@ -95050,14 +95636,14 @@ __19: if !(isView != 0 && !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW)) { goto __20 } - Xsqlite3ErrorMsg(tls, pParse, ts+13426, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+13465, 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+13460, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+13499, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName)) goto exit_drop_table __21: ; @@ -95072,7 +95658,7 @@ __21: if !!(isView != 0) { goto __23 } - sqlite3ClearStatTables(tls, pParse, iDb, ts+11361, (*Table)(unsafe.Pointer(pTab)).FzName) + sqlite3ClearStatTables(tls, pParse, iDb, ts+11400, (*Table)(unsafe.Pointer(pTab)).FzName) Xsqlite3FkDropTable(tls, pParse, pName, pTab) __23: ; @@ -95098,7 +95684,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) @@ -95137,7 +95723,7 @@ __4: goto __5 } Xsqlite3ErrorMsg(tls, pParse, - ts+13492, + ts+13531, libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(p)).FaCol+uintptr(iCol)*24)).FzCnName, pTo)) goto fk_end __5: @@ -95150,7 +95736,7 @@ __2: } Xsqlite3ErrorMsg(tls, pParse, - ts+13555, 0) + ts+13594, 0) goto fk_end goto __7 __6: @@ -95235,7 +95821,7 @@ __21: goto __23 } Xsqlite3ErrorMsg(tls, pParse, - ts+13649, + ts+13688, libc.VaList(bp+16, (*ExprList_item)(unsafe.Pointer(pFromCol+8+uintptr(i)*32)).FzEName)) goto fk_end __23: @@ -95321,7 +95907,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) { @@ -95346,7 +95932,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) @@ -95386,7 +95972,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. @@ -95404,7 +95990,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 @@ -95458,7 +96044,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 @@ -95483,21 +96069,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+13695, + 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+13734, libc.VaList(bp, func() uintptr { if int32(sf) == 0 || int32(sf) == 3 { - return ts + 13723 /* "FIRST" */ + return ts + 13762 /* "FIRST" */ } - return ts + 13729 /* "LAST" */ + return ts + 13768 /* "LAST" */ }())) return 1 } @@ -95516,7 +96102,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) @@ -95656,7 +96242,7 @@ __9: __8: ; - Xsqlite3FixInit(tls, bp+136, pParse, iDb, ts+13734, *(*uintptr)(unsafe.Pointer(bp + 128 /* pName */))) + Xsqlite3FixInit(tls, bp+136, pParse, iDb, ts+13773, *(*uintptr)(unsafe.Pointer(bp + 128 /* pName */))) if !(Xsqlite3FixSrcList(tls, bp+136, pTblName) != 0) { goto __10 } @@ -95677,7 +96263,7 @@ __11: goto __12 } Xsqlite3ErrorMsg(tls, pParse, - ts+13740, + ts+13779, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) goto exit_create_index __12: @@ -95704,26 +96290,26 @@ __6: ; pDb = (*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32 - if !(Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+8003, 7) == 0 && + if !(Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+8042, 7) == 0 && int32((*Sqlite3)(unsafe.Pointer(db)).Finit.Fbusy) == 0 && pTblName != uintptr(0)) { goto __15 } - Xsqlite3ErrorMsg(tls, pParse, ts+13790, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+13829, 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+13818, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+13857, 0) goto exit_create_index __16: ; if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { goto __17 } - Xsqlite3ErrorMsg(tls, pParse, ts+13843, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+13882, 0) goto exit_create_index __17: ; @@ -95750,7 +96336,7 @@ __17: __20: ; - if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+13734, (*Table)(unsafe.Pointer(pTab)).FzName)) { + if !(SQLITE_OK != Xsqlite3CheckObjectName(tls, pParse, zName, ts+13773, (*Table)(unsafe.Pointer(pTab)).FzName)) { goto __21 } goto exit_create_index @@ -95765,7 +96351,7 @@ __21: if !(Xsqlite3FindTable(tls, db, zName, uintptr(0)) != uintptr(0)) { goto __24 } - Xsqlite3ErrorMsg(tls, pParse, ts+13877, libc.VaList(bp+16, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+13916, libc.VaList(bp+16, zName)) goto exit_create_index __24: ; @@ -95777,7 +96363,7 @@ __23: if !!(ifNotExist != 0) { goto __26 } - Xsqlite3ErrorMsg(tls, pParse, ts+13911, libc.VaList(bp+24, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+13950, libc.VaList(bp+24, zName)) goto __27 __26: ; @@ -95806,7 +96392,7 @@ __29: goto __30 __30: ; - zName = Xsqlite3MPrintf(tls, db, ts+13935, libc.VaList(bp+32, (*Table)(unsafe.Pointer(pTab)).FzName, n)) + zName = Xsqlite3MPrintf(tls, db, ts+13974, libc.VaList(bp+32, (*Table)(unsafe.Pointer(pTab)).FzName, n)) if !(zName == uintptr(0)) { goto __31 } @@ -95835,9 +96421,9 @@ __19: zDb = (*Db)(unsafe.Pointer(pDb)).FzDbSName if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_INSERT, func() uintptr { if !(0 != 0) && iDb == 1 { - return ts + 12017 + return ts + 12056 } - return ts + 5828 + return ts + 5863 }(), uintptr(0), zDb) != 0) { goto __34 } @@ -95881,7 +96467,7 @@ __39: Xsqlite3ExprListSetSortOrder(tls, pList, sortOrder, -1) goto __38 __37: - Xsqlite3ExprListCheckLength(tls, pParse, pList, ts+13734) + Xsqlite3ExprListCheckLength(tls, pParse, pList, ts+13773) if !((*Parse)(unsafe.Pointer(pParse)).FnErr != 0) { goto __40 } @@ -95999,7 +96585,7 @@ __53: goto __56 } Xsqlite3ErrorMsg(tls, pParse, - ts+13958, 0) + ts+13997, 0) goto exit_create_index __56: ; @@ -96075,7 +96661,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: @@ -96229,7 +96815,7 @@ __88: goto __93 } Xsqlite3ErrorMsg(tls, pParse, - ts+14019, libc.VaList(bp+48, 0)) + ts+14058, libc.VaList(bp+48, 0)) __93: ; if !(int32((*Index)(unsafe.Pointer(pIdx)).FonError) == OE_Default) { @@ -96285,8 +96871,8 @@ __81: if !(Xsqlite3IndexHasDuplicateRootPage(tls, pIndex) != 0) { goto __101 } - Xsqlite3ErrorMsg(tls, pParse, ts+14061, 0) - (*Parse)(unsafe.Pointer(pParse)).Frc = Xsqlite3CorruptError(tls, 118294) + Xsqlite3ErrorMsg(tls, pParse, ts+14100, 0) + (*Parse)(unsafe.Pointer(pParse)).Frc = Xsqlite3CorruptError(tls, 119471) goto exit_create_index __101: ; @@ -96343,12 +96929,12 @@ __104: __107: ; // A named index with an explicit CREATE INDEX statement - zStmt = Xsqlite3MPrintf(tls, db, ts+14078, + zStmt = Xsqlite3MPrintf(tls, db, ts+14117, libc.VaList(bp+56, func() uintptr { if onError == OE_None { return ts + 1518 /* "" */ } - return ts + 14098 /* " UNIQUE" */ + return ts + 14137 /* " UNIQUE" */ }(), n1, (*Token)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 128 /* pName */)))).Fz)) goto __106 __105: @@ -96360,7 +96946,7 @@ __106: // Add an entry in sqlite_schema for this index Xsqlite3NestedParse(tls, pParse, - ts+14106, + ts+14145, 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, @@ -96376,7 +96962,7 @@ __106: sqlite3RefillIndex(tls, pParse, pIndex, iMem) Xsqlite3ChangeCookie(tls, pParse, iDb) Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb, - Xsqlite3MPrintf(tls, db, ts+14165, libc.VaList(bp+120, (*Index)(unsafe.Pointer(pIndex)).FzName)), uint16(0)) + Xsqlite3MPrintf(tls, db, ts+14204, libc.VaList(bp+120, (*Index)(unsafe.Pointer(pIndex)).FzName)), uint16(0)) Xsqlite3VdbeAddOp2(tls, v, OP_Expire, 0, 1) __108: ; @@ -96472,7 +97058,7 @@ __113: // 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 { @@ -96516,11 +97102,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) @@ -96555,7 +97141,7 @@ __2: if !!(ifExists != 0) { goto __4 } - Xsqlite3ErrorMsg(tls, pParse, ts+14192, libc.VaList(bp, pName+8)) + Xsqlite3ErrorMsg(tls, pParse, ts+14231, libc.VaList(bp, pName+8)) goto __5 __4: Xsqlite3CodeVerifyNamedSchema(tls, pParse, (*SrcItem)(unsafe.Pointer(pName+8)).FzDatabase) @@ -96570,7 +97156,7 @@ __3: goto __6 } Xsqlite3ErrorMsg(tls, pParse, - ts+14210, libc.VaList(bp+8, 0)) + ts+14249, libc.VaList(bp+8, 0)) goto exit_drop_index __6: ; @@ -96581,9 +97167,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 + 12017 + return ts + 12056 } - return ts + 5828 + return ts + 5863 }() if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_DELETE, zTab, uintptr(0), zDb) != 0) { goto __7 @@ -96611,9 +97197,9 @@ __9: } Xsqlite3BeginWriteOperation(tls, pParse, 1, iDb) Xsqlite3NestedParse(tls, pParse, - ts+14283, + ts+14322, 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+11357, (*Index)(unsafe.Pointer(pIndex)).FzName) + sqlite3ClearStatTables(tls, pParse, iDb, ts+11396, (*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) @@ -96639,7 +97225,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) { @@ -96666,58 +97252,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(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 } } @@ -96749,7 +97329,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) @@ -96764,7 +97344,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+14343, + Xsqlite3ErrorMsg(tls, pParse, ts+14382, libc.VaList(bp, SQLITE_MAX_SRCLIST)) return uintptr(0) } @@ -96784,14 +97364,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 @@ -96831,7 +97411,7 @@ func Xsqlite3SrcListEnlarge(tls *libc.TLS, pParse uintptr, pSrc uintptr, nExtra // // 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 @@ -96855,7 +97435,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) } @@ -96870,7 +97450,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 @@ -96894,7 +97474,7 @@ func Xsqlite3SrcListAssignCursors(tls *libc.TLS, pParse uintptr, pList uintptr) goto __2 __2: i++ - pItem += 112 + pItem += 104 goto __1 goto __3 __3: @@ -96902,7 +97482,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) { @@ -96923,27 +97503,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: @@ -96965,7 +97544,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) @@ -96973,15 +97552,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+14379, + Xsqlite3ErrorMsg(tls, pParse, ts+14418, libc.VaList(bp, func() uintptr { - if pOn != 0 { - return ts + 14415 /* "ON" */ + if (*OnOrUsing)(unsafe.Pointer(pOnUsing)).FpOn != 0 { + return ts + 14454 /* "ON" */ } - return ts + 14418 /* "USING" */ + return ts + 14457 /* "USING" */ }())) goto append_from_error __1: @@ -96994,7 +97573,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 @@ -97014,34 +97593,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 } @@ -97051,7 +97657,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) @@ -97059,8 +97665,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 @@ -97068,11 +97675,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) @@ -97092,25 +97699,46 @@ func Xsqlite3SrcListFuncArgs(tls *libc.TLS, pParse uintptr, p uintptr, pList uin // 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+14424, uintptr(0), uintptr(0)) != 0 { + if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION, ts+14463, uintptr(0), uintptr(0)) != 0 { return } v = Xsqlite3GetVdbe(tls, pParse) @@ -97138,7 +97766,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 @@ -97146,9 +97774,9 @@ func Xsqlite3EndTransaction(tls *libc.TLS, pParse uintptr, eType int32) { /* tes if Xsqlite3AuthCheck(tls, pParse, SQLITE_TRANSACTION, func() uintptr { if isRollback != 0 { - return ts + 14430 + return ts + 14469 } - return ts + 14439 + return ts + 14478 }(), uintptr(0), uintptr(0)) != 0 { return } @@ -97160,7 +97788,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) @@ -97169,15 +97797,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 + 14424, ts + 14446, ts + 14430} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:119074:23 */ +var az = [3]uintptr{ts + 14463, ts + 14485, ts + 14469} /* 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) @@ -97189,7 +97817,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+14454, 0) + ts+14493, 0) (*Parse)(unsafe.Pointer(pParse)).Frc = rc return 1 } @@ -97203,13 +97831,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))<= 0 { - zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+11930, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, + zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+11969, 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+14538, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName)) + zMsg = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+14577, 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++ { @@ -97393,7 +98021,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 @@ -97410,7 +98038,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 @@ -97452,7 +98080,7 @@ __3: // 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) @@ -97512,14 +98140,14 @@ func Xsqlite3Reindex(tls *libc.TLS, pParse uintptr, pName1 uintptr, pName2 uintp sqlite3RefillIndex(tls, pParse, pIndex, -1) return } - Xsqlite3ErrorMsg(tls, pParse, ts+14547, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+14586, 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) @@ -97565,7 +98193,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 @@ -97585,7 +98213,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) @@ -97593,7 +98221,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) @@ -97603,7 +98231,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) @@ -97622,7 +98250,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+14593, libc.VaList(bp, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+14632, libc.VaList(bp, zName)) } } } @@ -97646,7 +98274,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++ { @@ -97676,7 +98304,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) @@ -97707,7 +98335,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 @@ -97722,7 +98350,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 @@ -97733,7 +98361,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 @@ -97757,7 +98385,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) @@ -97802,7 +98430,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 { @@ -97818,7 +98446,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 @@ -97838,7 +98466,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) @@ -97860,7 +98488,7 @@ func Xsqlite3GetCollSeq(tls *libc.TLS, pParse uintptr, enc U8, pColl uintptr, zN } if p == uintptr(0) { - Xsqlite3ErrorMsg(tls, pParse, ts+14623, libc.VaList(bp, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+14662, libc.VaList(bp, zName)) (*Parse)(unsafe.Pointer(pParse)).Frc = SQLITE_ERROR | int32(1)<<8 } return p @@ -97884,7 +98512,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 @@ -97925,7 +98553,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" @@ -97961,7 +98589,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)) { @@ -97973,7 +98601,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 @@ -98011,7 +98639,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 @@ -98091,7 +98719,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) @@ -98126,7 +98754,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}))) @@ -98173,7 +98801,7 @@ func Xsqlite3SchemaGet(tls *libc.TLS, db uintptr, pBt uintptr) uintptr { /* test // 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: */ +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 @@ -98191,7 +98819,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) @@ -98212,7 +98840,7 @@ func Xsqlite3CodeChangeCount(tls *libc.TLS, v uintptr, regCounter int32, zColNam // 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: */ +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)) @@ -98231,16 +98859,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+14654, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+14693, 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+14683, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+14722, libc.VaList(bp+8, (*Table)(unsafe.Pointer(pTab)).FzName)) return 1 } return 0 @@ -98249,7 +98877,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) @@ -98281,7 +98909,7 @@ func Xsqlite3MaterializeView(tls *libc.TLS, pParse uintptr, pView uintptr, pWher // 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: */ +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) @@ -98781,7 +99409,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: @@ -98832,7 +99460,7 @@ __60: if !(memCnt != 0) { goto __61 } - Xsqlite3CodeChangeCount(tls, v, memCnt, ts+14721) + Xsqlite3CodeChangeCount(tls, v, memCnt, ts+14760) __61: ; @@ -98887,7 +99515,7 @@ delete_from_cleanup: // 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: */ +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 @@ -98977,8 +99605,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+11217) { - Xsqlite3VdbeAppendP4(tls, v, pTab, -6) + if int32((*Parse)(unsafe.Pointer(pParse)).Fnested) == 0 || 0 == Xsqlite3_stricmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+11256) { + Xsqlite3VdbeAppendP4(tls, v, pTab, -5) } if int32(eMode) != ONEPASS_OFF { Xsqlite3VdbeChangeP5(tls, v, uint16(OPFLAG_AUXDELETE)) @@ -99024,7 +99652,7 @@ func Xsqlite3GenerateRowDelete(tls *libc.TLS, pParse uintptr, pTab uintptr, pTri // // 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: */ +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) @@ -99113,7 +99741,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 @@ -99169,7 +99797,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) } @@ -99197,7 +99825,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 @@ -99207,14 +99835,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 @@ -99244,7 +99872,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 @@ -99255,18 +99883,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 + 6126, ts + 6121, ts + 7876, ts + 7871, ts + 6116} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:121191:21 */ +var azType2 = [5]uintptr{ts + 6161, ts + 6156, ts + 7915, ts + 7910, ts + 6151} /* 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))) { @@ -99315,7 +99943,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))) { @@ -99327,7 +99955,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+14734, -1) + Xsqlite3_result_error(tls, context, ts+14773, -1) return } iVal = -iVal @@ -99369,7 +99997,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 @@ -99484,7 +100112,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) @@ -99505,9 +100133,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}))) } } @@ -99521,7 +100147,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 @@ -99629,7 +100255,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) @@ -99667,7 +100293,7 @@ func roundFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* te return +0.5 }())) } else { - zBuf = Xsqlite3_mprintf(tls, ts+14751, libc.VaList(bp, n, *(*float64)(unsafe.Pointer(bp + 16 /* r */)))) + zBuf = Xsqlite3_mprintf(tls, ts+14790, libc.VaList(bp, n, *(*float64)(unsafe.Pointer(bp + 16 /* r */)))) if zBuf == uintptr(0) { Xsqlite3_result_error_nomem(tls, context) return @@ -99683,7 +100309,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) @@ -99700,7 +100326,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 @@ -99721,7 +100347,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 @@ -99750,7 +100376,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) @@ -99774,7 +100400,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 @@ -99792,7 +100418,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 @@ -99807,7 +100433,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 @@ -99816,7 +100442,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 @@ -99831,20 +100457,20 @@ 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() @@ -99884,7 +100510,7 @@ var likeInfoAlt = compareInfo{FmatchAll: U8('%'), FmatchOne: U8('_')} /* testdat // 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 @@ -100070,13 +100696,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) } @@ -100094,7 +100720,7 @@ func Xsqlite3_strlike(tls *libc.TLS, zPattern uintptr, zStr uintptr, esc uint32) // // 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) @@ -100117,7 +100743,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+14756, -1) + Xsqlite3_result_error(tls, context, ts+14795, -1) return } if argc == 3 { @@ -100129,7 +100755,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+14789, -1) + ts+14828, -1) return } escape = Xsqlite3Utf8Read(tls, bp) @@ -100157,7 +100783,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 { @@ -100167,7 +100793,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 @@ -100178,7 +100804,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 @@ -100189,19 +100815,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+3598, 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+3633, 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 @@ -100216,7 +100842,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 @@ -100231,11 +100857,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) @@ -100251,13 +100877,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+4860, libc.VaList(bp, r1)) + Xsqlite3_str_appendf(tls, pStr, ts+4895, 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+14834, libc.VaList(bp+8, r1)) + Xsqlite3_str_appendf(tls, pStr, ts+14873, libc.VaList(bp+8, r1)) } } break @@ -100294,7 +100920,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+14841, libc.VaList(bp+24, zArg)) + Xsqlite3_str_appendf(tls, pStr, ts+14880, libc.VaList(bp+24, zArg)) break } @@ -100316,7 +100942,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) @@ -100328,9 +100954,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)) @@ -100339,7 +100963,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) @@ -100353,7 +100977,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 @@ -100391,7 +101015,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 @@ -100429,7 +101053,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 @@ -100448,7 +101072,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 @@ -100537,7 +101161,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 @@ -100640,8 +101264,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 + 10789 /* " " */)} /* 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 + 10828 /* " " */)} /* 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 @@ -100650,7 +101274,7 @@ var azOne = [1]uintptr{uintptr(ts + 10789 /* " " */)} /* 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) @@ -100688,7 +101312,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+14844, 4, uintptr(0)) + Xsqlite3_result_text(tls, context, ts+14883, 4, uintptr(0)) } } @@ -100701,10 +101325,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) @@ -100716,7 +101340,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+11969, -1) + Xsqlite3_result_error(tls, context, ts+12008, -1) return } @@ -100740,11 +101364,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. // @@ -100754,7 +101378,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 @@ -100776,7 +101400,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 @@ -100799,12 +101423,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+14734, -1) + Xsqlite3_result_error(tls, context, ts+14773, -1) } else if (*SumCtx)(unsafe.Pointer(p)).Fapprox != 0 { Xsqlite3_result_double(tls, context, (*SumCtx)(unsafe.Pointer(p)).FrSum) } else { @@ -100813,7 +101437,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) { @@ -100821,7 +101445,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... @@ -100835,14 +101459,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 { @@ -100856,7 +101480,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 { @@ -100867,7 +101491,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 @@ -100877,7 +101501,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 @@ -100915,7 +101539,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 { @@ -100928,11 +101552,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) } @@ -100948,9 +101572,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 @@ -101015,7 +101639,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 @@ -101057,7 +101681,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) @@ -101065,7 +101689,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 @@ -101083,8 +101707,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+14849, 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+14888, 2) if rc == SQLITE_NOMEM { Xsqlite3OomFault(tls, db) @@ -101094,7 +101718,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 { @@ -101104,14 +101728,14 @@ func Xsqlite3RegisterLikeFunctions(tls *libc.TLS, db uintptr, caseSensitive int3 pInfo = uintptr(unsafe.Pointer(&likeInfoNorm)) flags = SQLITE_FUNC_LIKE } - Xsqlite3CreateFunc(tls, db, ts+14855, 2, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct { + Xsqlite3CreateFunc(tls, db, ts+14894, 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+14855, 3, SQLITE_UTF8, pInfo, *(*uintptr)(unsafe.Pointer(&struct { + Xsqlite3CreateFunc(tls, db, ts+14894, 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+14855, 2, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags) - *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+14855, 3, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags) + *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+14894, 2, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags) + *(*U32)(unsafe.Pointer(Xsqlite3FindFunction(tls, db, ts+14894, 3, uint8(SQLITE_UTF8), uint8(0)) + 4)) |= U32(flags) } // pExpr points to an expression which implements a function. If @@ -101129,7 +101753,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 @@ -101185,7 +101809,7 @@ func Xsqlite3IsLikeFunction(tls *libc.TLS, db uintptr, pExpr uintptr, pIsNocase // // 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: @@ -101214,11 +101838,11 @@ 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) } @@ -101228,7 +101852,7 @@ func xFloor(tls *libc.TLS, x float64) float64 { /* testdata/sqlite-amalgamation- // 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: */ +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 @@ -101269,12 +101893,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: @@ -101285,18 +101909,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: */ +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 @@ -101317,7 +101941,7 @@ 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: */ +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 @@ -101343,13 +101967,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 @@ -101377,7 +102001,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) @@ -101388,109 +102012,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 + 14860}, - {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 + 14880}, - {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 + 14893}, - {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 + 14911}, + {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 + 14899}, + {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 + 14919}, + {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 + 14932}, + {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 + 14950}, //**** Regular functions **** - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 14920}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14928}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14928}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 14943}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 14969}, - {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 + 14994}, - {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 + 15003}, - {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 + 15014}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_OFFSET | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15021}, - {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 + 15035}, - {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 + 15035}, - {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 + 15041}, - {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 + 15041}, - {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 + 15047}, - {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 + 15047}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15052}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15052}, - {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 + 15052}, - {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 + 15056}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FzName: ts + 15056}, - {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 + 15056}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15060}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15067}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_LENGTH), FxSFunc: 0, FzName: ts + 15075}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15082}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15088}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15095}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15102}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15110}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15115}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15119}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15119}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15125}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15131}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15137}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 15141}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15148}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15155}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15166}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15173}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15188}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15205}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15216}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15222}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15240}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15248}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15262}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15270}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15279}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15279}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15286}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15286}, - {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 + 15296}, - {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 + 15300}, - {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 + 15306}, - {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 + 15310}, - {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 + 15310}, - {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 + 15316}, - {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 + 15316}, - - {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 + 15329}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14855}, - {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14855}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15334}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15334}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15343}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15348}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15356}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15362}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15368}, - {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 + 15371}, - {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 + 15375}, - {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 + 15381}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15371}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 14959}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14967}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_DIRECTONLY | SQLITE_FUNC_UNSAFE), FxSFunc: 0, FzName: ts + 14967}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 14982}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15008}, + {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 + 15033}, + {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 + 15042}, + {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 + 15053}, + {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 + 15060}, + {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 + 15074}, + {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 + 15074}, + {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 + 15080}, + {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 + 15080}, + {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 + 15086}, + {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 + 15086}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15091}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FzName: ts + 15091}, + {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 + 15091}, + {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 + 15095}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FpUserData: uintptr(int64(1)), FzName: ts + 15095}, + {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 + 15095}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15099}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_TYPEOF), FxSFunc: 0, FzName: ts + 15106}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL | SQLITE_FUNC_LENGTH), FxSFunc: 0, FzName: ts + 15114}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15121}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15127}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15134}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15141}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15149}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15154}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15158}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15158}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15164}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15170}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15176}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 15180}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15187}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15194}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 1*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15205}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15212}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_SLOCHNG | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 15227}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15244}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15255}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15261}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15279}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15287}, + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15301}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15309}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15318}, + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15318}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15325}, + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15325}, + {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 + 15335}, + {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 + 15339}, + {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 + 15345}, + {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 + 15349}, + {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 + 15349}, + {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 + 15355}, + {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 + 15355}, + + {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 + 15368}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14894}, + {FnArg: int8(3), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | SQLITE_FUNC_LIKE), FpUserData: 0, FxSFunc: 0, FzName: ts + 14894}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 6496}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FzName: ts + 6496}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15373}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15378}, {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15386}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15390}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15394}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15400}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15404}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15409}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15414}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15419}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15425}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15429}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15433}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15437}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15442}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15447}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15452}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15458}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15464}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15470}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15475}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15483}, - {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15491}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15494}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 15334}, - {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 + 15499}} /* 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 + 15392}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15398}, + {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 + 15401}, + {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 + 15405}, + {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 + 15411}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15401}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15416}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15420}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15424}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15430}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15434}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15439}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15444}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15449}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15455}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15459}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15463}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15467}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15472}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15477}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15482}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15488}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15494}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15500}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15505}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FpUserData: 0, FxSFunc: 0, FzName: ts + 15513}, + {FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15521}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_FUNC_CONSTANT | SQLITE_UTF8 | 0*SQLITE_FUNC_NEEDCOLL), FxSFunc: 0, FzName: ts + 15524}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_UTF8 | SQLITE_FUNC_INLINE | SQLITE_FUNC_CONSTANT | 0), FxSFunc: 0, FzName: ts + 6496}, + {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 + 15529}} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:124542:18 */ //************* End of func.c *********************************************** //************* Begin file fkey.c ******************************************* @@ -101665,7 +102289,7 @@ var aBuiltinFunc = [101]FuncDef{ // 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) @@ -101776,7 +102400,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+15503, + ts+15533, 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) @@ -101811,7 +102435,7 @@ func Xsqlite3FkLocateIndex(tls *libc.TLS, pParse uintptr, pParent uintptr, pFKey // // 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 @@ -101867,7 +102491,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) @@ -101905,11 +102528,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) } } @@ -101941,7 +102563,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 @@ -101968,7 +102590,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 { @@ -101996,20 +102618,16 @@ func exprTableColumn(tls *libc.TLS, db uintptr, pTab uintptr, iCursor int32, iCo // 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. // // 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. // // 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) @@ -102133,7 +102751,7 @@ func fkScanChildren(tls *libc.TLS, pParse uintptr, pSrc uintptr, pTab uintptr, p // "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) } @@ -102143,7 +102761,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) @@ -102157,7 +102775,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 { @@ -102190,7 +102808,7 @@ func Xsqlite3FkClearTriggerCache(tls *libc.TLS, db uintptr, iDb int32) { /* test // then the equivalent of "DELETE FROM " 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 @@ -102253,7 +102871,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 @@ -102277,7 +102895,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 @@ -102301,7 +102919,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 @@ -102336,7 +102954,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) @@ -102538,7 +103156,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) @@ -102597,7 +103215,7 @@ func Xsqlite3FkOldmask(tls *libc.TLS, pParse uintptr, pTab uintptr) U32 { /* tes // 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 { @@ -102646,9 +103264,9 @@ 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: @@ -102665,9 +103283,9 @@ func Xsqlite3FkRequired(tls *libc.TLS, pParse uintptr, pTab uintptr, aChange uin // 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. @@ -102697,8 +103315,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 + 6327, Fn: uint32(3)} // Literal "old" token - *(*Token)(unsafe.Pointer(bp + 64 /* tNew */)) = Token{Fz: ts + 6323, Fn: uint32(3)} // Literal "new" token + *(*Token)(unsafe.Pointer(bp + 48 /* tOld */)) = Token{Fz: ts + 6362, Fn: uint32(3)} // Literal "old" token + *(*Token)(unsafe.Pointer(bp + 64 /* tNew */)) = Token{Fz: ts + 6358, 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 @@ -102780,19 +103398,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+5071) + (*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+5106) 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) @@ -102868,7 +103492,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 @@ -102889,7 +103513,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 @@ -102949,7 +103573,7 @@ func Xsqlite3FkDelete(tls *libc.TLS, db uintptr, pTab uintptr) { /* testdata/sql // // 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 @@ -102991,7 +103615,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 @@ -103070,7 +103694,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 @@ -103080,7 +103704,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) @@ -103088,7 +103712,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 } @@ -103128,7 +103752,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 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) @@ -103164,7 +103788,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)) @@ -103177,7 +103801,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) @@ -103264,7 +103888,7 @@ func Xsqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore in } } if pRedo != 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+7841, libc.VaList(bp, (*Column)(unsafe.Pointer(pRedo)).FzCnName)) + Xsqlite3ErrorMsg(tls, pParse, ts+7880, libc.VaList(bp, (*Column)(unsafe.Pointer(pRedo)).FzCnName)) } (*Parse)(unsafe.Pointer(pParse)).FiSelfTab = 0 } @@ -103290,7 +103914,7 @@ func Xsqlite3ComputeGeneratedColumns(tls *libc.TLS, pParse uintptr, iRegStore in // // 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) && @@ -103344,7 +103968,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 @@ -103384,7 +104008,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)}, @@ -103398,7 +104022,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. // @@ -103406,7 +104030,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) } @@ -103417,7 +104041,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 @@ -103448,16 +104072,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) } @@ -103558,7 +104182,7 @@ func Xsqlite3AutoincrementEnd(tls *libc.TLS, pParse uintptr) { /* testdata/sqlit // transfer values form intermediate table into // 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: */ +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) @@ -103790,12 +104414,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++ @@ -103813,10 +104439,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 } @@ -103833,7 +104459,7 @@ __23: goto __24 } Xsqlite3ErrorMsg(tls, pParse, - ts+15548, + ts+15578, libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName)) goto insert_cleanup __24: @@ -103851,15 +104477,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+15589, - libc.VaList(bp+8, pTabList+8, (*IdList_item)(unsafe.Pointer((*IdList)(unsafe.Pointer(pColumn)).Fa+uintptr(i)*16)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+15619, + 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: @@ -104030,7 +104656,7 @@ __42: goto __47 } Xsqlite3ErrorMsg(tls, pParse, - ts+15621, + ts+15651, libc.VaList(bp+24, pTabList+8, int32((*Table)(unsafe.Pointer(pTab)).FnCol)-nHidden, nColumn)) goto insert_cleanup __47: @@ -104040,7 +104666,7 @@ __36: if !(pColumn != uintptr(0) && nColumn != (*IdList)(unsafe.Pointer(pColumn)).FnId) { goto __48 } - Xsqlite3ErrorMsg(tls, pParse, ts+15673, libc.VaList(bp+48, nColumn, (*IdList)(unsafe.Pointer(pColumn)).FnId)) + Xsqlite3ErrorMsg(tls, pParse, ts+15703, libc.VaList(bp+48, nColumn, (*IdList)(unsafe.Pointer(pColumn)).FnId)) goto insert_cleanup __48: ; @@ -104096,7 +104722,7 @@ __50: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { goto __56 } - Xsqlite3ErrorMsg(tls, pParse, ts+15698, + Xsqlite3ErrorMsg(tls, pParse, ts+15728, libc.VaList(bp+64, (*Table)(unsafe.Pointer(pTab)).FzName)) goto insert_cleanup __56: @@ -104104,7 +104730,7 @@ __56: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW) { goto __57 } - Xsqlite3ErrorMsg(tls, pParse, ts+15744, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+15774, 0) goto insert_cleanup __57: ; @@ -104262,9 +104888,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 @@ -104501,7 +105128,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) @@ -104588,7 +105215,7 @@ __122: if !(regRowCount != 0) { goto __123 } - Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+15765) + Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+15795) __123: ; @@ -104612,7 +105239,7 @@ insert_cleanup: // 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 { @@ -104639,7 +105266,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) @@ -104673,7 +105300,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. @@ -104684,7 +105311,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 @@ -104692,12 +105319,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 @@ -104710,7 +105337,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)) { @@ -104816,7 +105443,7 @@ func indexIteratorNext(tls *libc.TLS, pIter uintptr, pIx uintptr) uintptr { /* t // 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) @@ -104934,11 +105561,11 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt fallthrough case OE_Fail: { - var zMsg uintptr = Xsqlite3MPrintf(tls, db, ts+11930, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, + var zMsg uintptr = Xsqlite3MPrintf(tls, db, ts+11969, 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 @@ -105145,6 +105772,7 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt goto __4 goto __6 __6: + } } @@ -105304,7 +105932,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) @@ -105479,7 +106107,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 @@ -105678,12 +106306,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) } @@ -105695,7 +106323,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 @@ -105774,7 +106402,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)) } @@ -105798,7 +106426,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 @@ -105876,7 +106504,7 @@ __3: // * 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: */ +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) { @@ -105934,7 +106562,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 @@ -106199,7 +106827,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)) @@ -106314,7 +106942,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) @@ -106335,7 +106963,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)) { @@ -106524,7 +107152,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. @@ -106858,7 +107486,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 @@ -106872,7 +107504,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) @@ -106916,7 +107548,7 @@ __1: if !(pzErrMsg != 0) { goto __3 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+11969, 0) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+12008, 0) __3: ; return SQLITE_ERROR @@ -106926,7 +107558,7 @@ __2: if zProc != 0 { zEntry = zProc } else { - zEntry = ts + 15779 /* "sqlite3_extensio..." */ + zEntry = ts + 15809 /* "sqlite3_extensio..." */ } // tag-20210611-1. Some dlopen() implementations will segfault if given @@ -106946,7 +107578,7 @@ __5: if !(ii < int32(uint64(unsafe.Sizeof(azEndings))/uint64(unsafe.Sizeof(uintptr(0)))) && handle == uintptr(0)) { goto __7 } - zAltFile = Xsqlite3_mprintf(tls, ts+11930, libc.VaList(bp, zFile, azEndings[ii])) + zAltFile = Xsqlite3_mprintf(tls, ts+11969, libc.VaList(bp, zFile, azEndings[ii])) if !(zAltFile == uintptr(0)) { goto __8 } @@ -106992,7 +107624,7 @@ __9: return SQLITE_NOMEM __11: ; - libc.Xmemcpy(tls, zAltEntry, ts+15802, uint64(8)) + libc.Xmemcpy(tls, zAltEntry, ts+15832, uint64(8)) iFile = ncFile - 1 __12: if !(iFile >= 0 && !(int32(*(*int8)(unsafe.Pointer(zFile + uintptr(iFile)))) == '/')) { @@ -107006,7 +107638,7 @@ __13: __14: ; iFile++ - if !(Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), ts+15811, 3) == 0) { + if !(Xsqlite3_strnicmp(tls, zFile+uintptr(iFile), ts+15841, 3) == 0) { goto __15 } iFile = iFile + 3 @@ -107030,7 +107662,7 @@ __17: goto __18 __18: ; - libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), ts+15815, uint64(6)) + libc.Xmemcpy(tls, zAltEntry+uintptr(iEntry), ts+15845, uint64(6)) zEntry = zAltEntry xInit = Xsqlite3OsDlSym(tls, pVfs, handle, zEntry) __10: @@ -107048,7 +107680,7 @@ __10: } // zErrmsg would be NULL if not so Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)), - ts+15821, libc.VaList(bp+16, zEntry, zFile)) + ts+15851, libc.VaList(bp+16, zEntry, zFile)) Xsqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))) __22: ; @@ -107075,7 +107707,7 @@ __24: if !(pzErrMsg != 0) { goto __25 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+15864, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+15894, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)))) __25: ; Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))) @@ -107115,7 +107747,7 @@ extension_not_found: } // zErrmsg would be NULL if not so Xsqlite3_snprintf(tls, int32(nMsg), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */)), - ts+15896, libc.VaList(bp+40, FILENAME_MAX, zFile)) + ts+15926, libc.VaList(bp+40, FILENAME_MAX, zFile)) Xsqlite3OsDlError(tls, pVfs, int32(nMsg-uint64(1)), *(*uintptr)(unsafe.Pointer(bp + 56 /* zErrmsg */))) __29: ; @@ -107125,10 +107757,10 @@ __28: } var azEndings = [1]uintptr{ - ts + 15933, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129475:21 */ + ts + 15963, +} /* 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) @@ -107139,7 +107771,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++ { @@ -107150,7 +107782,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) @@ -107170,15 +107802,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, @@ -107188,7 +107820,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 { @@ -107229,7 +107861,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 @@ -107248,7 +107880,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) @@ -107263,7 +107895,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) @@ -107294,7 +107926,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+15936, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */)))) + ts+15966, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */)))) go1 = 0 } Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErrmsg */))) @@ -107339,68 +107971,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 + 4992, - ts + 15975, - ts + 8745, - ts + 15979, - ts + 15984, - ts + 15987, - ts + 15997, - ts + 16007, - ts + 16013, + ts + 5027, + ts + 16005, + ts + 8784, + ts + 16009, + ts + 16014, ts + 16017, - ts + 16022, ts + 16027, - ts + 16035, - ts + 16046, - ts + 16049, - - ts + 16056, - ts + 16017, - ts + 16022, - ts + 16063, - ts + 16068, - ts + 16071, - ts + 16078, - ts + 16013, - ts + 16017, - ts + 16084, - ts + 16089, - ts + 16094, - ts + 16017, + ts + 16037, + ts + 16043, + ts + 16047, + ts + 16052, + ts + 16057, + ts + 16065, + ts + 16076, + ts + 16079, + + ts + 16086, + ts + 16047, + ts + 16052, + ts + 16093, ts + 16098, - ts + 16022, - ts + 16106, - ts + 16110, - ts + 16115, - ts + 11361, - ts + 11357, - ts + 16121, - ts + 16126, - ts + 16131, - ts + 15975, - ts + 16017, + ts + 16101, + ts + 16108, + ts + 16043, + ts + 16047, + ts + 16114, + ts + 16119, + ts + 16124, + ts + 16047, + ts + 16128, + ts + 16052, ts + 16136, - ts + 16143, - ts + 16150, - ts + 8745, - ts + 16158, - ts + 4995, - ts + 16164, - - ts + 15975, - ts + 16017, - ts + 16169, - ts + 16174, - ts + 15371, - ts + 16179, - - ts + 16192, - ts + 16201, - ts + 16208, - - ts + 16219, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:129920:19 */ + ts + 16140, + ts + 16145, + ts + 11400, + ts + 11396, + ts + 16151, + ts + 16156, + ts + 16161, + ts + 16005, + ts + 16047, + ts + 16166, + ts + 16173, + ts + 16180, + ts + 8784, + ts + 16188, + ts + 5030, + ts + 16194, + + ts + 16005, + ts + 16047, + ts + 16199, + ts + 16204, + ts + 15401, + ts + 16209, + + ts + 16222, + ts + 16231, + ts + 16238, + + ts + 16249, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:131176:19 */ // Definitions of all built-in pragmas type PragmaName1 = struct { @@ -107411,247 +108043,247 @@ 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 = [66]PragmaName{ - { /* zName: */ FzName: ts + 16227, + { /* zName: */ FzName: ts + 16257, /* ePragTyp: */ FePragTyp: U8(PragTyp_ANALYSIS_LIMIT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 16242, + { /* zName: */ FzName: ts + 16272, /* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0), /* iArg: */ FiArg: uint64(BTREE_APPLICATION_ID)}, - { /* zName: */ FzName: ts + 16257, + { /* zName: */ FzName: ts + 16287, /* ePragTyp: */ FePragTyp: U8(PragTyp_AUTO_VACUUM), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 16269, + { /* zName: */ FzName: ts + 16299, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_AutoIndex)}, - { /* zName: */ FzName: ts + 16285, + { /* zName: */ FzName: ts + 16315, /* ePragTyp: */ FePragTyp: U8(PragTyp_BUSY_TIMEOUT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0), /* ColNames: */ FiPragCName: U8(56), FnPragCName: U8(1)}, - { /* zName: */ FzName: ts + 16208, + { /* zName: */ FzName: ts + 16238, /* ePragTyp: */ FePragTyp: U8(PragTyp_CACHE_SIZE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 16298, + { /* zName: */ FzName: ts + 16328, /* ePragTyp: */ FePragTyp: U8(PragTyp_CACHE_SPILL), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 16310, + { /* zName: */ FzName: ts + 16340, /* ePragTyp: */ FePragTyp: U8(PragTyp_CASE_SENSITIVE_LIKE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns)}, - { /* zName: */ FzName: ts + 16330, + { /* zName: */ FzName: ts + 16360, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_CellSizeCk)}, - { /* zName: */ FzName: ts + 16346, + { /* zName: */ FzName: ts + 16376, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_CkptFullFSync)}, - { /* zName: */ FzName: ts + 16367, + { /* zName: */ FzName: ts + 16397, /* ePragTyp: */ FePragTyp: U8(PragTyp_COLLATION_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0), /* ColNames: */ FiPragCName: U8(38), FnPragCName: U8(2)}, - { /* zName: */ FzName: ts + 16382, + { /* zName: */ FzName: ts + 16412, /* ePragTyp: */ FePragTyp: U8(PragTyp_COMPILE_OPTIONS), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 16398, + { /* zName: */ FzName: ts + 16428, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: U64(uint64(0x00001)) << 32}, - { /* zName: */ FzName: ts + 16412, + { /* zName: */ FzName: ts + 16442, /* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_ReadOnly | PragFlg_Result0), /* iArg: */ FiArg: uint64(BTREE_DATA_VERSION)}, - { /* zName: */ FzName: ts + 16425, + { /* zName: */ FzName: ts + 16455, /* 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 + 16439, + { /* zName: */ FzName: ts + 16469, /* 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 + 16458, + { /* zName: */ FzName: ts + 16488, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_DeferFKs)}, - { /* zName: */ FzName: ts + 16477, + { /* zName: */ FzName: ts + 16507, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_NullCallback)}, - { /* zName: */ FzName: ts + 16500, + { /* zName: */ FzName: ts + 16530, /* ePragTyp: */ FePragTyp: U8(PragTyp_ENCODING), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 16509, + { /* zName: */ FzName: ts + 16539, /* 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 + 16527, + { /* zName: */ FzName: ts + 16557, /* ePragTyp: */ FePragTyp: U8(PragTyp_FOREIGN_KEY_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1 | PragFlg_SchemaOpt), FnPragCName: U8(8)}, - { /* zName: */ FzName: ts + 16544, + { /* zName: */ FzName: ts + 16574, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_ForeignKeys)}, - { /* zName: */ FzName: ts + 16557, + { /* zName: */ FzName: ts + 16587, /* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_ReadOnly | PragFlg_Result0)}, - { /* zName: */ FzName: ts + 16572, + { /* zName: */ FzName: ts + 16602, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_FullColNames)}, - { /* zName: */ FzName: ts + 16590, + { /* zName: */ FzName: ts + 16620, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_FullFSync)}, - { /* zName: */ FzName: ts + 16600, + { /* zName: */ FzName: ts + 16630, /* ePragTyp: */ FePragTyp: U8(PragTyp_FUNCTION_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0), /* ColNames: */ FiPragCName: U8(27), FnPragCName: U8(6)}, - { /* zName: */ FzName: ts + 16614, + { /* zName: */ FzName: ts + 16644, /* ePragTyp: */ FePragTyp: U8(PragTyp_HARD_HEAP_LIMIT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 16630, + { /* zName: */ FzName: ts + 16660, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_IgnoreChecks)}, - { /* zName: */ FzName: ts + 16655, + { /* zName: */ FzName: ts + 16685, /* ePragTyp: */ FePragTyp: U8(PragTyp_INCREMENTAL_VACUUM), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_NoColumns)}, - { /* zName: */ FzName: ts + 16674, + { /* zName: */ FzName: ts + 16704, /* 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 + 16685, + { /* zName: */ FzName: ts + 16715, /* 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 + 16696, + { /* zName: */ FzName: ts + 16726, /* 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 + 16708, + { /* zName: */ FzName: ts + 16738, /* ePragTyp: */ FePragTyp: U8(PragTyp_INTEGRITY_CHECK), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_Result1 | PragFlg_SchemaOpt)}, - { /* zName: */ FzName: ts + 16724, + { /* zName: */ FzName: ts + 16754, /* ePragTyp: */ FePragTyp: U8(PragTyp_JOURNAL_MODE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)}, - { /* zName: */ FzName: ts + 16737, + { /* zName: */ FzName: ts + 16767, /* ePragTyp: */ FePragTyp: U8(PragTyp_JOURNAL_SIZE_LIMIT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq)}, - { /* zName: */ FzName: ts + 16756, + { /* zName: */ FzName: ts + 16786, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_LegacyAlter)}, - { /* zName: */ FzName: ts + 16775, + { /* zName: */ FzName: ts + 16805, /* ePragTyp: */ FePragTyp: U8(PragTyp_LOCKING_MODE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq)}, - { /* zName: */ FzName: ts + 16788, + { /* zName: */ FzName: ts + 16818, /* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_COUNT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)}, - { /* zName: */ FzName: ts + 16803, + { /* zName: */ FzName: ts + 16833, /* ePragTyp: */ FePragTyp: U8(PragTyp_MMAP_SIZE)}, - { /* zName: */ FzName: ts + 16813, + { /* zName: */ FzName: ts + 16843, /* ePragTyp: */ FePragTyp: U8(PragTyp_MODULE_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0), /* ColNames: */ FiPragCName: U8(9), FnPragCName: U8(1)}, - { /* zName: */ FzName: ts + 16825, + { /* zName: */ FzName: ts + 16855, /* ePragTyp: */ FePragTyp: U8(PragTyp_OPTIMIZE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result1 | PragFlg_NeedSchema)}, - { /* zName: */ FzName: ts + 16834, + { /* zName: */ FzName: ts + 16864, /* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_COUNT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq)}, - { /* zName: */ FzName: ts + 16845, + { /* zName: */ FzName: ts + 16875, /* ePragTyp: */ FePragTyp: U8(PragTyp_PAGE_SIZE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 16855, + { /* zName: */ FzName: ts + 16885, /* ePragTyp: */ FePragTyp: U8(PragTyp_PRAGMA_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0), /* ColNames: */ FiPragCName: U8(9), FnPragCName: U8(1)}, - { /* zName: */ FzName: ts + 16867, + { /* zName: */ FzName: ts + 16897, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_QueryOnly)}, - { /* zName: */ FzName: ts + 16878, + { /* zName: */ FzName: ts + 16908, /* ePragTyp: */ FePragTyp: U8(PragTyp_INTEGRITY_CHECK), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_Result1 | PragFlg_SchemaOpt)}, - { /* zName: */ FzName: ts + 16890, + { /* zName: */ FzName: ts + 16920, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_ReadUncommit)}, - { /* zName: */ FzName: ts + 16907, + { /* zName: */ FzName: ts + 16937, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_RecTriggers)}, - { /* zName: */ FzName: ts + 16926, + { /* zName: */ FzName: ts + 16956, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_ReverseOrder)}, - { /* zName: */ FzName: ts + 16952, + { /* zName: */ FzName: ts + 16982, /* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0), /* iArg: */ FiArg: uint64(BTREE_SCHEMA_VERSION)}, - { /* zName: */ FzName: ts + 16967, + { /* zName: */ FzName: ts + 16997, /* ePragTyp: */ FePragTyp: U8(PragTyp_SECURE_DELETE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 16981, + { /* zName: */ FzName: ts + 17011, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_ShortColNames)}, - { /* zName: */ FzName: ts + 17000, + { /* zName: */ FzName: ts + 17030, /* ePragTyp: */ FePragTyp: U8(PragTyp_SHRINK_MEMORY), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns)}, - { /* zName: */ FzName: ts + 17014, + { /* zName: */ FzName: ts + 17044, /* ePragTyp: */ FePragTyp: U8(PragTyp_SOFT_HEAP_LIMIT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 17030, + { /* zName: */ FzName: ts + 17060, /* ePragTyp: */ FePragTyp: U8(PragTyp_SYNCHRONOUS), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result0 | PragFlg_SchemaReq | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 17042, + { /* zName: */ FzName: ts + 17072, /* 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 + 17053, + { /* zName: */ FzName: ts + 17083, /* ePragTyp: */ FePragTyp: U8(PragTyp_TABLE_LIST), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema | PragFlg_Result1), /* ColNames: */ FiPragCName: U8(15), FnPragCName: U8(6)}, - { /* zName: */ FzName: ts + 17064, + { /* zName: */ FzName: ts + 17094, /* 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 + 17076, + { /* zName: */ FzName: ts + 17106, /* ePragTyp: */ FePragTyp: U8(PragTyp_TEMP_STORE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 17087, + { /* zName: */ FzName: ts + 17117, /* ePragTyp: */ FePragTyp: U8(PragTyp_TEMP_STORE_DIRECTORY), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1)}, - { /* zName: */ FzName: ts + 17108, + { /* zName: */ FzName: ts + 17138, /* ePragTyp: */ FePragTyp: U8(PragTyp_THREADS), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0)}, - { /* zName: */ FzName: ts + 17116, + { /* zName: */ FzName: ts + 17146, /* ePragTyp: */ FePragTyp: U8(PragTyp_FLAG), /* ePragFlg: */ FmPragFlg: U8(PragFlg_Result0 | PragFlg_NoColumns1), /* iArg: */ FiArg: uint64(SQLITE_TrustedSchema)}, - { /* zName: */ FzName: ts + 17131, + { /* zName: */ FzName: ts + 17161, /* ePragTyp: */ FePragTyp: U8(PragTyp_HEADER_VALUE), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NoColumns1 | PragFlg_Result0), /* iArg: */ FiArg: uint64(BTREE_USER_VERSION)}, - { /* zName: */ FzName: ts + 17144, + { /* zName: */ FzName: ts + 17174, /* ePragTyp: */ FePragTyp: U8(PragTyp_WAL_AUTOCHECKPOINT)}, - { /* zName: */ FzName: ts + 17163, + { /* zName: */ FzName: ts + 17193, /* ePragTyp: */ FePragTyp: U8(PragTyp_WAL_CHECKPOINT), /* ePragFlg: */ FmPragFlg: U8(PragFlg_NeedSchema), /* ColNames: */ FiPragCName: U8(50), FnPragCName: U8(3)}, - { /* zName: */ FzName: ts + 17178, + { /* zName: */ FzName: ts + 17208, /* 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. @@ -107667,7 +108299,7 @@ var aPragmaName = [66]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 @@ -107684,13 +108316,13 @@ func getSafetyLevel(tls *libc.TLS, z uintptr, omitFull int32, dflt U8) U8 { /* t return dflt } -var zText = *(*[25]int8)(unsafe.Pointer(ts + 17194)) /* 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 + 17224)) /* 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)) } @@ -107699,12 +108331,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+17219) { + if 0 == Xsqlite3StrICmp(tls, z, ts+17249) { return PAGER_LOCKINGMODE_EXCLUSIVE } - if 0 == Xsqlite3StrICmp(tls, z, ts+17229) { + if 0 == Xsqlite3StrICmp(tls, z, ts+17259) { return PAGER_LOCKINGMODE_NORMAL } } @@ -107715,15 +108347,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+7889) { + if 0 == Xsqlite3StrICmp(tls, z, ts+7928) { return BTREE_AUTOVACUUM_NONE } - if 0 == Xsqlite3StrICmp(tls, z, ts+17236) { + if 0 == Xsqlite3StrICmp(tls, z, ts+17266) { return BTREE_AUTOVACUUM_FULL } - if 0 == Xsqlite3StrICmp(tls, z, ts+17241) { + if 0 == Xsqlite3StrICmp(tls, z, ts+17271) { return BTREE_AUTOVACUUM_INCR } i = Xsqlite3Atoi(tls, z) @@ -107738,12 +108370,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+16169) == 0 { + } else if Xsqlite3StrICmp(tls, z, ts+16199) == 0 { return 1 - } else if Xsqlite3StrICmp(tls, z, ts+17253) == 0 { + } else if Xsqlite3StrICmp(tls, z, ts+17283) == 0 { return 2 } else { return 0 @@ -107753,13 +108385,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+17260, 0) + ts+17290, 0) return SQLITE_ERROR } Xsqlite3BtreeClose(tls, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+1*32)).FpBt) @@ -107772,7 +108404,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 { @@ -107786,7 +108418,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 { @@ -107820,17 +108452,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) @@ -107839,7 +108471,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 @@ -107855,23 +108487,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 + 17322 /* "SET NULL" */ + zName = ts + 17352 /* "SET NULL" */ break case OE_SetDflt: - zName = ts + 17331 /* "SET DEFAULT" */ + zName = ts + 17361 /* "SET DEFAULT" */ break case OE_Cascade: - zName = ts + 17343 /* "CASCADE" */ + zName = ts + 17373 /* "CASCADE" */ break case OE_Restrict: - zName = ts + 17351 /* "RESTRICT" */ + zName = ts + 17381 /* "RESTRICT" */ break default: - zName = ts + 17360 /* "NO ACTION" */ + zName = ts + 17390 /* "NO ACTION" */ break } return zName @@ -107880,7 +108512,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) @@ -107889,11 +108521,11 @@ func Xsqlite3JournalModename(tls *libc.TLS, eMode int32) uintptr { /* testdata/s } var azModeName = [6]uintptr{ - ts + 17370, ts + 17377, ts + 17385, ts + 17389, ts + 17253, ts + 17398, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130745:15 */ + ts + 17400, ts + 17407, ts + 17415, ts + 17419, ts + 17283, ts + 17428, +} /* 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 @@ -107920,10 +108552,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 @@ -107935,13 +108571,13 @@ func pragmaFunclistLine(tls *libc.TLS, v uintptr, p uintptr, isBuiltin int32, sh continue } if (*FuncDef)(unsafe.Pointer(p)).FxValue != uintptr(0) { - zType = ts + 17402 /* "w" */ + zType = ts + 17432 /* "w" */ } else if (*FuncDef)(unsafe.Pointer(p)).FxFinalize != uintptr(0) { - zType = ts + 17404 /* "a" */ + zType = ts + 17434 /* "a" */ } else { - zType = ts + 7399 /* "s" */ + zType = ts + 7438 /* "s" */ } - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17406, + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17436, 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), @@ -107949,15 +108585,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 + 17413, ts + 17418, ts + 17426 /* "utf16be" */} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:130802:23 */ +var azEnc = [4]uintptr{uintptr(0), ts + 17443, ts + 17448, ts + 17456} /* 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) @@ -107979,7 +108614,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(608) defer tls.Free(608) @@ -108097,7 +108732,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 @@ -108224,7 +108858,7 @@ __4: if !(minusFlag != 0) { goto __5 } - zRight = Xsqlite3MPrintf(tls, db, ts+17434, libc.VaList(bp, pValue)) + zRight = Xsqlite3MPrintf(tls, db, ts+17464, libc.VaList(bp, pValue)) goto __6 __5: zRight = Xsqlite3NameFromToken(tls, db, pValue) @@ -108279,7 +108913,7 @@ __8: if !(*(*uintptr)(unsafe.Pointer(bp + 448)) != 0) { goto __10 } - Xsqlite3ErrorMsg(tls, pParse, ts+3598, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 448)))) + Xsqlite3ErrorMsg(tls, pParse, ts+3633, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 448)))) Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 448))) __10: ; @@ -108867,7 +109501,7 @@ __18: if !(zRight != 0) { goto __63 } - if !(Xsqlite3_stricmp(tls, zRight, ts+17438) == 0) { + if !(Xsqlite3_stricmp(tls, zRight, ts+17468) == 0) { goto __64 } b = 2 @@ -108956,7 +109590,7 @@ __71: // PRAGMA [schema.]locking_mode // PRAGMA [schema.]locking_mode = (normal|exclusive) __20: - zRet = ts + 17229 /* "normal" */ + zRet = ts + 17259 /* "normal" */ eMode = getLockingMode(tls, zRight) if !((*Token)(unsafe.Pointer(pId2)).Fn == uint32(0) && eMode == -1) { @@ -108997,7 +109631,7 @@ __78: if !(eMode == PAGER_LOCKINGMODE_EXCLUSIVE) { goto __83 } - zRet = ts + 17219 /* "exclusive" */ + zRet = ts + 17249 /* "exclusive" */ __83: ; returnSingleText(tls, v, zRet) @@ -109156,6 +109790,7 @@ __100: // // Do N steps of incremental vacuuming on a database. __24: + *(*int32)(unsafe.Pointer(bp + 496 /* iLimit1 */)) = 0 if !(zRight == uintptr(0) || !(Xsqlite3GetInt32(tls, zRight, bp+496) != 0) || *(*int32)(unsafe.Pointer(bp + 496)) <= 0) { goto __103 } @@ -109325,7 +109960,7 @@ __116: if !(rc != SQLITE_OK || *(*int32)(unsafe.Pointer(bp + 504)) == 0) { goto __119 } - Xsqlite3ErrorMsg(tls, pParse, ts+17443, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+17473, 0) goto pragma_out __119: ; @@ -109343,7 +109978,7 @@ __120: if !(*(*int8)(unsafe.Pointer(zRight)) != 0) { goto __121 } - Xsqlite3_temp_directory = Xsqlite3_mprintf(tls, ts+3598, libc.VaList(bp+16, zRight)) + Xsqlite3_temp_directory = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp+16, zRight)) goto __122 __121: Xsqlite3_temp_directory = uintptr(0) @@ -109371,7 +110006,7 @@ __123: goto __125 } Xsqlite3ErrorMsg(tls, pParse, - ts+17468, 0) + ts+17498, 0) goto __126 __125: if !(iDb != 1) { @@ -109427,7 +110062,7 @@ __132: __134: ; if !(mask&uint64(SQLITE_WriteSchema) != uint64(0) && - Xsqlite3_stricmp(tls, zRight, ts+17521) == 0) { + Xsqlite3_stricmp(tls, zRight, ts+17551) == 0) { goto __135 } // IMP: R-60817-01178 If the argument is "RESET" then schema @@ -109541,9 +110176,9 @@ __148: Xsqlite3VdbeMultiLoad(tls, v, 1, func() uintptr { if (*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0 { - return ts + 17527 /* "issisii" */ + return ts + 17557 /* "issisii" */ } - return ts + 17535 /* "issisi" */ + return ts + 17565 /* "issisi" */ }(), libc.VaList(bp+24, i-nHidden, (*Column)(unsafe.Pointer(pCol)).FzCnName, @@ -109628,7 +110263,7 @@ __163: if !(int32((*Table)(unsafe.Pointer(pTab1)).FnCol) == 0) { goto __164 } - zSql = Xsqlite3MPrintf(tls, db, ts+17542, libc.VaList(bp+80, (*Table)(unsafe.Pointer(pTab1)).FzName)) + zSql = Xsqlite3MPrintf(tls, db, ts+17572, libc.VaList(bp+80, (*Table)(unsafe.Pointer(pTab1)).FzName)) if !(zSql != 0) { goto __165 } @@ -109675,29 +110310,29 @@ __170: if !(int32((*Table)(unsafe.Pointer(pTab2)).FeTabType) == TABTYP_VIEW) { goto __171 } - zType = ts + 10360 /* "view" */ + zType = ts + 10399 /* "view" */ goto __172 __171: if !(int32((*Table)(unsafe.Pointer(pTab2)).FeTabType) == TABTYP_VTAB) { goto __173 } - zType = ts + 12642 /* "virtual" */ + zType = ts + 12681 /* "virtual" */ goto __174 __173: if !((*Table)(unsafe.Pointer(pTab2)).FtabFlags&U32(TF_Shadow) != 0) { goto __175 } - zType = ts + 17558 /* "shadow" */ + zType = ts + 17588 /* "shadow" */ goto __176 __175: - zType = ts + 8745 /* "table" */ + zType = ts + 8784 /* "table" */ __176: ; __174: ; __172: ; - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17565, + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17595, libc.VaList(bp+88, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(ii3)*32)).FzDbSName, Xsqlite3PreferredTableName(tls, (*Table)(unsafe.Pointer(pTab2)).FzName), zType, @@ -109767,7 +110402,7 @@ __183: goto __185 } cnum = *(*I16)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FaiColumn + uintptr(i1)*2)) - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17572, libc.VaList(bp+136, i1, int32(cnum), + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17602, libc.VaList(bp+136, i1, int32(cnum), func() uintptr { if int32(cnum) < 0 { return uintptr(0) @@ -109777,7 +110412,7 @@ __183: if !((*PragmaName)(unsafe.Pointer(pPragma)).FiArg != 0) { goto __186 } - Xsqlite3VdbeMultiLoad(tls, v, 4, ts+17577, + Xsqlite3VdbeMultiLoad(tls, v, 4, ts+17607, libc.VaList(bp+160, 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)))) @@ -109814,8 +110449,8 @@ __189: if !(pIdx1 != 0) { goto __191 } - *(*[3]uintptr)(unsafe.Pointer(bp + 520 /* azOrigin */)) = [3]uintptr{ts + 17582, ts + 17584, ts + 16046} - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17586, + *(*[3]uintptr)(unsafe.Pointer(bp + 520 /* azOrigin */)) = [3]uintptr{ts + 17612, ts + 17614, ts + 16076} + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17616, libc.VaList(bp+184, i2, (*Index)(unsafe.Pointer(pIdx1)).FzName, libc.Bool32(int32((*Index)(unsafe.Pointer(pIdx1)).FonError) != OE_None), @@ -109849,7 +110484,7 @@ __192: __195: ; - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17592, + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17622, libc.VaList(bp+224, 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))) @@ -109872,7 +110507,7 @@ __196: goto __198 } pColl = (*HashElem)(unsafe.Pointer(p)).Fdata - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17596, libc.VaList(bp+248, libc.PostIncInt32(&i4, 1), (*CollSeq)(unsafe.Pointer(pColl)).FzName)) + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17626, libc.VaList(bp+248, libc.PostIncInt32(&i4, 1), (*CollSeq)(unsafe.Pointer(pColl)).FzName)) goto __197 __197: p = (*HashElem)(unsafe.Pointer(p)).Fnext @@ -109938,7 +110573,7 @@ __208: goto __210 } pMod = (*HashElem)(unsafe.Pointer(j1)).Fdata - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7399, libc.VaList(bp+264, (*Module)(unsafe.Pointer(pMod)).FzName)) + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7438, libc.VaList(bp+264, (*Module)(unsafe.Pointer(pMod)).FzName)) goto __209 __209: j1 = (*HashElem)(unsafe.Pointer(j1)).Fnext @@ -109955,7 +110590,7 @@ __211: if !(i6 < int32(uint64(unsafe.Sizeof(aPragmaName))/uint64(unsafe.Sizeof(PragmaName{})))) { goto __213 } - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7399, libc.VaList(bp+272, aPragmaName[i6].FzName)) + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+7438, libc.VaList(bp+272, aPragmaName[i6].FzName)) goto __212 __212: i6++ @@ -109991,7 +110626,7 @@ __219: if !(j2 < (*FKey)(unsafe.Pointer(pFK)).FnCol) { goto __221 } - Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17599, + Xsqlite3VdbeMultiLoad(tls, v, 1, ts+17629, libc.VaList(bp+280, i7, j2, (*FKey)(unsafe.Pointer(pFK)).FzTo, @@ -109999,7 +110634,7 @@ __219: (*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+17608)) + ts+17638)) goto __220 __220: j2++ @@ -110024,7 +110659,6 @@ __42: // 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 __222: @@ -110172,9 +110806,9 @@ __245: if !(*(*uintptr)(unsafe.Pointer(bp + 544)) != 0) { goto __246 } - 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 + 544 /* 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 __247 __246: @@ -110200,7 +110834,7 @@ __249: Xsqlite3VdbeAddOp2(tls, v, OP_Null, 0, regResult+1) __250: ; - Xsqlite3VdbeMultiLoad(tls, v, regResult+2, ts+17613, libc.VaList(bp+344, (*FKey)(unsafe.Pointer(pFK1)).FzTo, i8-1)) + Xsqlite3VdbeMultiLoad(tls, v, regResult+2, ts+17643, libc.VaList(bp+344, (*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 + 552 /* aiCols */))) @@ -110462,12 +111096,12 @@ __277: 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+17617, libc.VaList(bp+360, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(i9)*32)).FzDbSName)), - -7) + Xsqlite3MPrintf(tls, db, ts+17647, libc.VaList(bp+360, (*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) @@ -110568,9 +111202,9 @@ __297: goto __298 } jmp2 = Xsqlite3VdbeAddOp1(tls, v, OP_NotNull, 3) - zErr = Xsqlite3MPrintf(tls, db, ts+17641, libc.VaList(bp+368, (*Table)(unsafe.Pointer(pTab9)).FzName, + zErr = Xsqlite3MPrintf(tls, db, ts+17671, libc.VaList(bp+368, (*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 __299 } @@ -110590,10 +111224,10 @@ __298: 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+17661, + zErr = Xsqlite3MPrintf(tls, db, ts+17691, libc.VaList(bp+384, 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) @@ -110634,9 +111268,9 @@ __306: SQLITE_JUMPIFNULL) Xsqlite3VdbeResolveLabel(tls, v, addrCkFault) (*Parse)(unsafe.Pointer(pParse)).FiSelfTab = 0 - zErr1 = Xsqlite3MPrintf(tls, db, ts+17683, + zErr1 = Xsqlite3MPrintf(tls, db, ts+17713, libc.VaList(bp+408, (*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) __303: @@ -110668,9 +111302,9 @@ __311: // Verify that an index entry exists for the current table row jmp21 = Xsqlite3VdbeAddOp4Int(tls, v, OP_Found, *(*int32)(unsafe.Pointer(bp + 568))+j4, ckUniq, r1, int32((*Index)(unsafe.Pointer(pIdx5)).FnColumn)) - Xsqlite3VdbeLoadString(tls, v, 3, ts+17713) + Xsqlite3VdbeLoadString(tls, v, 3, ts+17743) Xsqlite3VdbeAddOp3(tls, v, OP_Concat, 7, 3, 3) - Xsqlite3VdbeLoadString(tls, v, 4, ts+17718) + Xsqlite3VdbeLoadString(tls, v, 4, ts+17748) 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) @@ -110710,7 +111344,7 @@ __315: Xsqlite3VdbeJumpHere(tls, v, jmp6) Xsqlite3VdbeAddOp4Int(tls, v, OP_IdxGT, *(*int32)(unsafe.Pointer(bp + 568))+j4, uniqOk, r1, int32((*Index)(unsafe.Pointer(pIdx5)).FnKeyCol)) - Xsqlite3VdbeLoadString(tls, v, 3, ts+17739) + Xsqlite3VdbeLoadString(tls, v, 3, ts+17769) Xsqlite3VdbeGoto(tls, v, jmp5) Xsqlite3VdbeResolveLabel(tls, v, uniqOk) __312: @@ -110732,7 +111366,7 @@ __307: if !!(isQuick != 0) { goto __317 } - Xsqlite3VdbeLoadString(tls, v, 2, ts+17766) + Xsqlite3VdbeLoadString(tls, v, 2, ts+17796) j4 = 0 pIdx5 = (*Table)(unsafe.Pointer(pTab9)).FpIndex __318: @@ -110783,7 +111417,7 @@ __259: } (*VdbeOp)(unsafe.Pointer(aOp2)).Fp2 = 1 - *(*int32)(unsafe.Pointer(bp + 560)) (*VdbeOp)(unsafe.Pointer(aOp2 + 2*24)).Fp4type = int8(-1) - *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = ts + 17795 /* "ok" */ + *(*uintptr)(unsafe.Pointer(aOp2 + 2*24 + 16)) = ts + 17825 /* "ok" */ (*VdbeOp)(unsafe.Pointer(aOp2 + 5*24)).Fp4type = int8(-1) *(*uintptr)(unsafe.Pointer(aOp2 + 5*24 + 16)) = Xsqlite3ErrStr(tls, SQLITE_CORRUPT) __322: @@ -110861,7 +111495,7 @@ __329: if !!(int32((*EncName)(unsafe.Pointer(pEnc)).FzName) != 0) { goto __331 } - Xsqlite3ErrorMsg(tls, pParse, ts+17798, libc.VaList(bp+416, zRight)) + Xsqlite3ErrorMsg(tls, pParse, ts+17828, libc.VaList(bp+416, zRight)) __331: ; __326: @@ -110973,19 +111607,19 @@ __48: if !(zRight != 0) { goto __338 } - if !(Xsqlite3StrICmp(tls, zRight, ts+17236) == 0) { + if !(Xsqlite3StrICmp(tls, zRight, ts+17266) == 0) { goto __339 } eMode2 = SQLITE_CHECKPOINT_FULL goto __340 __339: - if !(Xsqlite3StrICmp(tls, zRight, ts+17823) == 0) { + if !(Xsqlite3StrICmp(tls, zRight, ts+17853) == 0) { goto __341 } eMode2 = SQLITE_CHECKPOINT_RESTART goto __342 __341: - if !(Xsqlite3StrICmp(tls, zRight, ts+17389) == 0) { + if !(Xsqlite3StrICmp(tls, zRight, ts+17419) == 0) { goto __343 } eMode2 = SQLITE_CHECKPOINT_TRUNCATE @@ -111172,17 +111806,17 @@ __358: __360: ; - zSubSql = Xsqlite3MPrintf(tls, db, ts+17831, + zSubSql = Xsqlite3MPrintf(tls, db, ts+17861, libc.VaList(bp+424, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, (*Table)(unsafe.Pointer(pTab10)).FzName)) if !(opMask&U32(0x01) != 0) { goto __361 } 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 __362 __361: - Xsqlite3VdbeAddOp4(tls, v, OP_SqlExec, 0, 0, 0, zSubSql, -7) + Xsqlite3VdbeAddOp4(tls, v, OP_SqlExec, 0, 0, 0, zSubSql, -6) __362: ; goto __353 @@ -111323,9 +111957,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 @@ -111336,16 +111970,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 @@ -111354,27 +111988,27 @@ 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 + 17849, Fenc: U8(SQLITE_UTF8)}, - {FzName: ts + 17854, Fenc: U8(SQLITE_UTF8)}, // Must be element [1] - {FzName: ts + 17860, Fenc: U8(SQLITE_UTF16LE)}, // Must be element [2] - {FzName: ts + 17869, Fenc: U8(SQLITE_UTF16BE)}, // Must be element [3] - {FzName: ts + 17878, Fenc: U8(SQLITE_UTF16LE)}, - {FzName: ts + 17886, Fenc: U8(SQLITE_UTF16BE)}, - {FzName: ts + 17894}, - {FzName: ts + 17901}, + {FzName: ts + 17879, Fenc: U8(SQLITE_UTF8)}, + {FzName: ts + 17884, Fenc: U8(SQLITE_UTF8)}, // Must be element [1] + {FzName: ts + 17890, Fenc: U8(SQLITE_UTF16LE)}, // Must be element [2] + {FzName: ts + 17899, Fenc: U8(SQLITE_UTF16BE)}, // Must be element [3] + {FzName: ts + 17908, Fenc: U8(SQLITE_UTF16LE)}, + {FzName: ts + 17916, Fenc: U8(SQLITE_UTF16BE)}, + {FzName: ts + 17924}, + {FzName: ts + 17931}, {}, -} /* 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. @@ -111386,24 +112020,24 @@ 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) @@ -111420,7 +112054,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+17907) + Xsqlite3_str_appendall(tls, bp+32, ts+17937) i = 0 j = int32((*PragmaName)(unsafe.Pointer(pPragma)).FiPragCName) __1: @@ -111428,7 +112062,7 @@ __1: goto __3 } { - Xsqlite3_str_appendf(tls, bp+32, ts+17922, libc.VaList(bp, int32(cSep), pragCName[j])) + Xsqlite3_str_appendf(tls, bp+32, ts+17952, libc.VaList(bp, int32(cSep), pragCName[j])) cSep = int8(',') } @@ -111441,19 +112075,19 @@ __2: __3: ; if i == 0 { - Xsqlite3_str_appendf(tls, bp+32, ts+17929, libc.VaList(bp+16, (*PragmaName)(unsafe.Pointer(pPragma)).FzName)) + Xsqlite3_str_appendf(tls, bp+32, ts+17959, 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+17935) + Xsqlite3_str_appendall(tls, bp+32, ts+17965) j++ } if int32((*PragmaName)(unsafe.Pointer(pPragma)).FmPragFlg)&(PragFlg_SchemaOpt|PragFlg_SchemaReq) != 0 { - Xsqlite3_str_appendall(tls, bp+32, ts+17947) + Xsqlite3_str_appendall(tls, bp+32, ts+17977) j++ } - Xsqlite3_str_append(tls, bp+32, ts+4892, 1) + Xsqlite3_str_append(tls, bp+32, ts+4927, 1) Xsqlite3StrAccumFinish(tls, bp+32) rc = Xsqlite3_declare_vtab(tls, db, bp+64) @@ -111469,7 +112103,7 @@ __3: (*PragmaVtab)(unsafe.Pointer(pTab)).FnHidden = U8(j) } } else { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3598, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db))) } *(*uintptr)(unsafe.Pointer(ppVtab)) = pTab @@ -111477,7 +112111,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 @@ -111489,7 +112123,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) @@ -111554,7 +112188,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) { @@ -111567,7 +112201,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) @@ -111578,7 +112212,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) @@ -111586,7 +112220,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 @@ -111602,7 +112236,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) @@ -111632,7 +112266,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+3598, libc.VaList(bp, zText)) + *(*uintptr)(unsafe.Pointer(pCsr + 24 + uintptr(j)*8)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp, zText)) if *(*uintptr)(unsafe.Pointer(pCsr + 24 + uintptr(j)*8)) == uintptr(0) { return SQLITE_NOMEM } @@ -111648,13 +112282,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+17962) + Xsqlite3_str_appendall(tls, bp+32, ts+17992) if *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8)) != 0 { - Xsqlite3_str_appendf(tls, bp+32, ts+17970, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pCsr + 24 + 1*8)))) + Xsqlite3_str_appendf(tls, bp+32, ts+18000, 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+17974, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pCsr + 24)))) + Xsqlite3_str_appendf(tls, bp+32, ts+18004, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(pCsr + 24)))) } zSql = Xsqlite3StrAccumFinish(tls, bp+32) if zSql == uintptr(0) { @@ -111663,21 +112297,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+3598, libc.VaList(bp+24, Xsqlite3_errmsg(tls, (*PragmaVtab)(unsafe.Pointer(pTab)).Fdb))) + (*PragmaVtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+3633, 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) { @@ -111689,7 +112323,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 @@ -111707,12 +112341,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)) @@ -111745,7 +112379,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) @@ -111756,39 +112390,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+17978, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azObj)), *(*uintptr)(unsafe.Pointer(azObj + 1*8)), + ts+18008, 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 + 4943 /* "?" */ + zObj = ts + 4978 /* "?" */ } - z = Xsqlite3MPrintf(tls, db, ts+18006, libc.VaList(bp+32, zObj)) + z = Xsqlite3MPrintf(tls, db, ts+18036, libc.VaList(bp+32, zObj)) if zExtra != 0 && *(*int8)(unsafe.Pointer(zExtra)) != 0 { - z = Xsqlite3MPrintf(tls, db, ts+18037, libc.VaList(bp+40, z, zExtra)) + z = Xsqlite3MPrintf(tls, db, ts+18067, 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 + 18045, - ts + 18052, - ts + 18064, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:133238:23 */ + ts + 18075, + ts + 18082, + ts + 18094, +} /* 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 { @@ -111810,7 +112444,7 @@ func Xsqlite3IndexHasDuplicateRootPage(tls *libc.TLS, pIndex uintptr) int32 { /* // 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: */ +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) @@ -111855,7 +112489,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+14061) + corruptSchema(tls, pData, argv, ts+14100) } } libc.SetBitFieldPtr8Uint32(db+192+8, uint32(0), 0, 0x1) @@ -111893,13 +112527,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+18075) + corruptSchema(tls, pData, argv, ts+18105) } 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+14061) + corruptSchema(tls, pData, argv, ts+14100) } } } @@ -111912,7 +112546,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) @@ -111942,16 +112576,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 + 8745 /* "table" */ + *(*uintptr)(unsafe.Pointer(bp + 16)) = ts + 8784 /* "table" */ *(*uintptr)(unsafe.Pointer(bp + 16 + 1*8)) = libc.AssignUintptr(&zSchemaTabName, func() uintptr { if !(0 != 0) && iDb == 1 { - return ts + 12017 + return ts + 12056 } - return ts + 5828 + return ts + 5863 }()) *(*uintptr)(unsafe.Pointer(bp + 16 + 2*8)) = *(*uintptr)(unsafe.Pointer(bp + 16 + 1*8)) - *(*uintptr)(unsafe.Pointer(bp + 16 + 3*8)) = ts + 7809 /* "1" */ - *(*uintptr)(unsafe.Pointer(bp + 16 + 4*8)) = ts + 18088 /* "CREATE TABLE x(t..." */ + *(*uintptr)(unsafe.Pointer(bp + 16 + 3*8)) = ts + 7848 /* "1" */ + *(*uintptr)(unsafe.Pointer(bp + 16 + 4*8)) = ts + 18118 /* "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 @@ -112064,7 +112698,7 @@ __10: goto __13 } Xsqlite3SetString(tls, pzErrMsg, db, - ts+11644) + ts+11683) rc = SQLITE_ERROR goto initone_error_out __13: @@ -112104,7 +112738,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+18160) + Xsqlite3SetString(tls, pzErrMsg, db, ts+18190) rc = SQLITE_ERROR goto initone_error_out __17: @@ -112126,7 +112760,7 @@ __18: (*InitData)(unsafe.Pointer(bp + 64 /* &initData */)).FmxPage = Xsqlite3BtreeLastPage(tls, (*Db)(unsafe.Pointer(pDb)).FpBt) zSql = Xsqlite3MPrintf(tls, db, - ts+18184, + ts+18214, libc.VaList(bp, (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb+uintptr(iDb)*32)).FzDbSName, zSchemaTabName)) xAuth = (*Sqlite3)(unsafe.Pointer(db)).FxAuth @@ -112213,7 +112847,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)) @@ -112245,7 +112879,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 @@ -112264,7 +112898,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) @@ -112317,7 +112951,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 @@ -112344,7 +112978,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) @@ -112400,7 +113034,7 @@ func Xsqlite3ParseObjectReset(tls *libc.TLS, pParse uintptr) { /* testdata/sqlit // 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: */ +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 @@ -112423,7 +113057,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)) @@ -112439,7 +113073,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) @@ -112521,7 +113155,7 @@ __4: goto __8 } zDb = (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + uintptr(i)*32)).FzDbSName - Xsqlite3ErrorWithMsg(tls, db, rc, ts+18218, libc.VaList(bp, zDb)) + Xsqlite3ErrorWithMsg(tls, db, rc, ts+18248, libc.VaList(bp, zDb)) goto end_prepare __8: @@ -112548,7 +113182,7 @@ __3: if !(nBytes > mxLen) { goto __11 } - Xsqlite3ErrorWithMsg(tls, db, SQLITE_TOOBIG, ts+18248, 0) + Xsqlite3ErrorWithMsg(tls, db, SQLITE_TOOBIG, ts+18278, 0) rc = Xsqlite3ApiExit(tls, db, SQLITE_TOOBIG) goto end_prepare __11: @@ -112611,7 +113245,7 @@ __20: if !((*Parse)(unsafe.Pointer(bp+16)).FzErrMsg != 0) { goto __21 } - Xsqlite3ErrorWithMsg(tls, db, rc, ts+3598, libc.VaList(bp+8, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg)) + Xsqlite3ErrorWithMsg(tls, db, rc, ts+3633, libc.VaList(bp+8, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg)) Xsqlite3DbFree(tls, db, (*Parse)(unsafe.Pointer(bp+16 /* &sParse */)).FzErrMsg) goto __22 __21: @@ -112645,13 +113279,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) @@ -112680,7 +113314,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) @@ -112719,14 +113353,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 @@ -112739,7 +113373,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, @@ -112756,7 +113390,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) @@ -112769,7 +113403,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 @@ -112804,21 +113438,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), @@ -112852,7 +113486,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 ***************************************** @@ -112873,7 +113507,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. @@ -112903,7 +113537,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. @@ -112921,19 +113555,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) @@ -112962,7 +113596,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 @@ -112973,7 +113607,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) @@ -113023,14 +113657,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 } @@ -113052,21 +113686,67 @@ func findRightmost(tls *libc.TLS, p uintptr) uintptr { /* testdata/sqlite-amalga // // 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 @@ -113088,42 +113768,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 + 10789 /* " " */ - + 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 + 10828 /* " " */ + var zSp2 uintptr = ts + 10828 /* " " */ + if pB == uintptr(0) { + zSp1++ + } if pC == uintptr(0) { - zSp++ + zSp2++ } Xsqlite3ErrorMsg(tls, pParse, - ts+18267, 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+18311, 0) + ts+18297, libc.VaList(bp, pA, zSp1, pB, zSp2, pC)) jointype = JT_INNER } return jointype } -var zKeyText = *(*[34]int8)(unsafe.Pointer(ts + 18366)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:134483:21 */ +var zKeyText = *(*[34]int8)(unsafe.Pointer(ts + 18327)) /* 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 @@ -113150,23 +113828,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 } @@ -113176,49 +113869,19 @@ 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: // @@ -113230,9 +113893,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 { @@ -113240,27 +113904,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 { @@ -113268,28 +113942,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) @@ -113301,7 +113982,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) { @@ -113309,54 +113990,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+18400, libc.VaList(bp, 0)) + ts+18361, 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+18450, 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 @@ -113365,8 +114041,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 @@ -113374,26 +114052,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+18505, libc.VaList(bp+8, zName)) + ts+18411, 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+18475, + 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: @@ -113401,13 +114129,15 @@ __3: return 0 } +var tkCoalesce = Token{Fz: ts + 6496, 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) } @@ -113416,7 +114146,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) @@ -113429,7 +114159,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 @@ -113507,7 +114237,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) @@ -113572,7 +114302,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) @@ -113620,7 +114350,7 @@ func codeOffset(tls *libc.TLS, v uintptr, iOffset int32, iContinue int32) { /* t // 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 @@ -113701,7 +114431,7 @@ func codeDistinct(tls *libc.TLS, pParse uintptr, eTnctType int32, iTab int32, ad // 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: */ +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 @@ -113729,7 +114459,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) @@ -114085,7 +114815,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(uint64(unsafe.Sizeof(KeyInfo{}))+uint64(nExtra))) if p != 0 { @@ -114103,7 +114833,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-- @@ -114114,7 +114844,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++ @@ -114134,7 +114864,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 @@ -114153,7 +114883,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 @@ -114168,20 +114898,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 + 18569 /* "UNION ALL" */ + z = ts + 18512 /* "UNION ALL" */ break case TK_INTERSECT: - z = ts + 18579 /* "INTERSECT" */ + z = ts + 18522 /* "INTERSECT" */ break case TK_EXCEPT: - z = ts + 18589 /* "EXCEPT" */ + z = ts + 18532 /* "EXCEPT" */ break default: - z = ts + 18596 /* "UNION" */ + z = ts + 18539 /* "UNION" */ break } return z @@ -114195,11 +114925,11 @@ func Xsqlite3SelectOpName(tls *libc.TLS, id int32) uintptr { /* testdata/sqlite- // // 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+18602, libc.VaList(bp, zUsage)) + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+18545, libc.VaList(bp, zUsage)) } // Assign expression b to lvalue a. A second, no-op, version of this macro @@ -114212,7 +114942,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 @@ -114391,7 +115121,7 @@ func generateSortTail(tls *libc.TLS, pParse uintptr, p uintptr, pSort uintptr, n // // 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) @@ -114412,11 +115142,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 } @@ -114469,7 +115199,7 @@ func columnTypeImpl(tls *libc.TLS, pNC uintptr, pExpr uintptr, pzOrigDb uintptr, if iCol < 0 { zType = ts + 1083 /* "INTEGER" */ - *(*uintptr)(unsafe.Pointer(bp + 72 /* zOrigCol */)) = ts + 16158 /* "rowid" */ + *(*uintptr)(unsafe.Pointer(bp + 72 /* zOrigCol */)) = ts + 16188 /* "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)) @@ -114515,7 +115245,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) @@ -114572,7 +115302,7 @@ func generateColumnTypes(tls *libc.TLS, pParse uintptr, pTabList uintptr, pEList // 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: */ +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) @@ -114610,7 +115340,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)) @@ -114624,29 +115354,25 @@ func Xsqlite3GenerateColumnNames(tls *libc.TLS, pParse uintptr, pSelect uintptr) } if iCol < 0 { - zCol = ts + 16158 /* "rowid" */ + zCol = ts + 16188 /* "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+11930, 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+11969, 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+18625, libc.VaList(bp+16, i+1)) + z = Xsqlite3MPrintf(tls, db, ts+18568, 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) @@ -114672,7 +115398,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) @@ -114713,46 +115439,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 " phrase, use 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 + 16158 /* "rowid" */ + zName = ts + 16188 /* "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+18625, libc.VaList(bp, i+1)) + zName = Xsqlite3MPrintf(tls, db, ts+18568, 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-- { @@ -114761,15 +115493,18 @@ __1: nName = j } } - zName = Xsqlite3MPrintf(tls, db, ts+18634, libc.VaList(bp+8, nName, zName, libc.PreIncUint32(&*(*U32)(unsafe.Pointer(bp + 56 /* cnt */)), 1))) + zName = Xsqlite3MPrintf(tls, db, ts+18577, 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) } @@ -114804,7 +115539,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) @@ -114873,7 +115608,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 @@ -114908,7 +115643,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 } @@ -114940,7 +115675,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) @@ -114997,7 +115732,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) @@ -115021,7 +115756,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) { @@ -115049,7 +115784,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 } } @@ -115090,7 +115825,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) @@ -115126,7 +115861,7 @@ func generateWithRecursiveQuery(tls *libc.TLS, pParse uintptr, p uintptr, pDest if !((*Select)(unsafe.Pointer(p)).FpWin != 0) { goto __1 } - Xsqlite3ErrorMsg(tls, pParse, ts+18642, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+18585, 0) return __1: ; @@ -115156,10 +115891,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: ; @@ -115203,7 +115938,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: @@ -115236,7 +115971,7 @@ __12: if !((*Select)(unsafe.Pointer(pFirstRec)).FselFlags&U32(SF_Aggregate) != 0) { goto __15 } - Xsqlite3ErrorMsg(tls, pParse, ts+18691, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+18634, 0) goto end_of_recursive_query __15: ; @@ -115258,7 +115993,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+18733, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18676, 0) rc = Xsqlite3Select(tls, pParse, pSetup, bp) (*Select)(unsafe.Pointer(pSetup)).FpNext = p if !(rc != 0) { @@ -115301,7 +116036,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+18739, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18682, 0) Xsqlite3Select(tls, pParse, p, bp) (*Select)(unsafe.Pointer(pFirstRec)).FpPrior = pSetup @@ -115330,8 +116065,8 @@ end_of_recursive_query: // 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) @@ -115351,11 +116086,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+18754, libc.VaList(bp, nRow, func() uintptr { + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+18697, libc.VaList(bp, nRow, func() uintptr { if nRow == 1 { return ts + 1518 /* "" */ } - return ts + 18777 /* "S" */ + return ts + 18720 /* "S" */ }())) for p != 0 { selectInnerLoop(tls, pParse, p, -1, uintptr(0), uintptr(0), pDest, 1, 1) @@ -115371,7 +116106,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 } @@ -115407,7 +116142,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) @@ -115507,8 +116242,8 @@ __6: if !((*Select)(unsafe.Pointer(pPrior)).FpPrior == uintptr(0)) { goto __8 } - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18779, 0) - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18794, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18722, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18737, 0) __8: ; @@ -115557,7 +116292,7 @@ __16: ; __15: ; - Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18569, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18512, 0) rc = Xsqlite3Select(tls, pParse, p, bp+16) @@ -115633,7 +116368,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+18813, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18756, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) rc = Xsqlite3Select(tls, pParse, p, bp+64) @@ -115705,7 +116440,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+18813, libc.VaList(bp+8, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18756, libc.VaList(bp+8, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) rc = Xsqlite3Select(tls, pParse, p, bp+104) @@ -115832,7 +116567,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: @@ -115870,15 +116605,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+18834, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+18777, 0) } else { Xsqlite3ErrorMsg(tls, pParse, - ts+18880, + ts+18823, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) } } @@ -115901,7 +116636,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 @@ -115915,7 +116650,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) @@ -116097,7 +116832,7 @@ func generateOutputSubroutine(tls *libc.TLS, pParse uintptr, p uintptr, pIn uint // 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) @@ -116275,8 +117010,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+7100) - Xsqlite3ResolveOrderGroupBy(tls, pParse, pPrior, (*Select)(unsafe.Pointer(pPrior)).FpOrderBy, ts+7100) + Xsqlite3ResolveOrderGroupBy(tls, pParse, p, (*Select)(unsafe.Pointer(p)).FpOrderBy, ts+7144) + Xsqlite3ResolveOrderGroupBy(tls, pParse, pPrior, (*Select)(unsafe.Pointer(pPrior)).FpOrderBy, ts+7144) // Compute the limit registers computeLimitRegisters(tls, pParse, p, labelEnd) @@ -116304,7 +117039,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+18962, libc.VaList(bp, Xsqlite3SelectOpName(tls, int32((*Select)(unsafe.Pointer(p)).Fop)))) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18905, 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. @@ -116312,7 +117047,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+18973, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18916, 0) Xsqlite3Select(tls, pParse, pPrior, bp+8) Xsqlite3VdbeEndCoroutine(tls, v, regAddrA) Xsqlite3VdbeJumpHere(tls, v, addr1) @@ -116326,7 +117061,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+18978, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+18921, 0) Xsqlite3Select(tls, pParse, p, bp+48) (*Select)(unsafe.Pointer(p)).FiLimit = savedLimit (*Select)(unsafe.Pointer(p)).FiOffset = savedOffset @@ -116410,9 +117145,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) @@ -116440,21 +117175,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 @@ -116467,15 +117258,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 && @@ -116490,7 +117282,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 @@ -116504,14 +117296,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. @@ -116550,7 +117348,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 @@ -116560,7 +117358,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 @@ -116584,14 +117382,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: @@ -116603,7 +117401,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 @@ -116615,11 +117413,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) @@ -116651,7 +117449,7 @@ func recomputeColumnsUsed(tls *libc.TLS, pSelect uintptr, pSrcItem uintptr) { /* // // 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 @@ -116664,7 +117462,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)) @@ -116677,14 +117475,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 { @@ -116694,12 +117492,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 @@ -116721,7 +117519,7 @@ func renumberCursorsCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { /* // * 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) @@ -116783,6 +117581,7 @@ func renumberCursors(tls *libc.TLS, pParse uintptr, p uintptr, iExcept int32, aC // 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. // @@ -116834,6 +117633,9 @@ func renumberCursors(tls *libc.TLS, pParse uintptr, p uintptr, iExcept int32, aC // (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, @@ -116881,6 +117683,23 @@ func renumberCursors(tls *libc.TLS, pParse uintptr, p uintptr, iExcept int32, aC // 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 @@ -116891,7 +117710,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) @@ -116903,7 +117722,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 @@ -116919,7 +117738,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 @@ -116986,12 +117805,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 } } @@ -117004,7 +117858,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 { @@ -117015,6 +117869,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) + } } @@ -117037,6 +117897,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 @@ -117180,6 +118043,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 @@ -117214,13 +118078,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. @@ -117254,8 +118123,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 { @@ -117270,7 +118139,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) } @@ -117292,7 +118161,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) } } @@ -117316,7 +118185,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. @@ -117324,7 +118193,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) { @@ -117366,13 +118235,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 { @@ -117401,7 +118271,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 @@ -117409,7 +118279,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 } @@ -117455,7 +118325,7 @@ func propagateConstantExprRewriteOne(tls *libc.TLS, pConst uintptr, pExpr uintpt // 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 { @@ -117522,7 +118392,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) @@ -117538,6 +118408,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{}))) @@ -117575,7 +118455,7 @@ func propagateConstants(tls *libc.TLS, pParse uintptr, p uintptr) int32 { /* tes // // * 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: */ +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) } @@ -117646,7 +118526,7 @@ func pushDownWindowCheck(tls *libc.TLS, pParse uintptr, pSubq uintptr, pExpr uin // // 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) @@ -117658,6 +118538,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 @@ -117687,11 +118570,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) { @@ -117725,7 +118608,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 @@ -117741,12 +118624,12 @@ func minMaxQuery(tls *libc.TLS, db uintptr, pFunc uintptr, ppMinMax uintptr) U8 } zFunc = *(*uintptr)(unsafe.Pointer(pFunc + 8)) - if Xsqlite3StrICmp(tls, zFunc, ts+15052) == 0 { + if Xsqlite3StrICmp(tls, zFunc, ts+15091) == 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+15056) == 0 { + } else if Xsqlite3StrICmp(tls, zFunc, ts+15095) == 0 { eRet = WHERE_ORDERBY_MAX sortFlags = U8(KEYINFO_ORDER_DESC) } else { @@ -117755,7 +118638,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) } @@ -117775,7 +118658,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 @@ -117815,23 +118698,23 @@ 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+18984, libc.VaList(bp, zIndexedBy, 0)) + Xsqlite3ErrorMsg(tls, pParse, ts+18927, 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 } @@ -117854,7 +118737,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) @@ -117905,7 +118788,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 } @@ -117933,12 +118816,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+19002, libc.VaList(bp, (*SrcItem)(unsafe.Pointer(pFrom)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+18945, libc.VaList(bp, (*SrcItem)(unsafe.Pointer(pFrom)).FzName)) return 1 } return 0 @@ -117952,7 +118835,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 @@ -117987,7 +118870,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, @@ -118020,7 +118903,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) @@ -118042,7 +118925,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(). @@ -118103,11 +118986,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+19025, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(pFrom + 96)))) + Xsqlite3ErrorMsg(tls, pParse, ts+18968, 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) @@ -118121,16 +119004,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+19045, libc.VaList(bp+16, (*Cte)(unsafe.Pointer(pCte)).FzName)) + ts+18988, libc.VaList(bp+16, (*Cte)(unsafe.Pointer(pCte)).FzName)) return 2 } *(*U32)(unsafe.Pointer(pRecTerm + 4)) |= U32(SF_Recursive) @@ -118146,7 +119029,7 @@ func resolveFromTermToCte(tls *libc.TLS, pParse uintptr, pWalker uintptr, pFrom pRecTerm = (*Select)(unsafe.Pointer(pRecTerm)).FpPrior } - (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19088 /* "circular referen..." */ + (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19031 /* "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 { @@ -118172,7 +119055,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+19111, + Xsqlite3ErrorMsg(tls, pParse, ts+19054, 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 @@ -118183,9 +119066,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 + 19149 /* "multiple recursi..." */ + (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19092 /* "multiple recursi..." */ } else { - (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19183 /* "recursive refere..." */ + (*Cte)(unsafe.Pointer(pCte)).FzCteErr = ts + 19126 /* "recursive refere..." */ } Xsqlite3WalkSelect(tls, pWalker, pSel) } @@ -118202,7 +119085,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 @@ -118218,7 +119101,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) @@ -118233,7 +119116,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+19221, libc.VaList(bp, (*Select)(unsafe.Pointer(pSel)).FselId)) + (*Table)(unsafe.Pointer(pTab)).FzName = Xsqlite3MPrintf(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, ts+19164, libc.VaList(bp, pFrom)) } for (*Select)(unsafe.Pointer(pSel)).FpPrior != 0 { pSel = (*Select)(unsafe.Pointer(pSel)).FpPrior @@ -118243,13 +119126,36 @@ 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: // @@ -118272,9 +119178,9 @@ func Xsqlite3ExpandSubquery(tls *libc.TLS, pParse uintptr, pFrom uintptr) int32 // 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) +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 @@ -118360,7 +119266,7 @@ __1: return WRC_Abort } if (*Table)(unsafe.Pointer(pTab)).FnTabRef >= U32(0xffff) { - Xsqlite3ErrorMsg(tls, pParse, ts+19233, + Xsqlite3ErrorMsg(tls, pParse, ts+19168, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) (*SrcItem)(unsafe.Pointer(pFrom)).FpTab = uintptr(0) return WRC_Abort @@ -118379,15 +119285,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+19272, + Xsqlite3ErrorMsg(tls, pParse, ts+19207, 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+19303, + Xsqlite3ErrorMsg(tls, pParse, ts+19238, libc.VaList(bp+16, (*Table)(unsafe.Pointer(pTab)).FzName)) } @@ -118409,7 +119315,7 @@ __1: goto __2 __2: i++ - pFrom += 112 + pFrom += 104 goto __1 goto __3 __3: @@ -118417,7 +119323,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 } @@ -118463,7 +119369,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) @@ -118483,38 +119389,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 + 6321 /* "*" */ + zSchemaName = ts + 6356 /* "*" */ + } + } + 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+19271, 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 } @@ -118525,72 +119456,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+11930, 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+19336, - libc.VaList(bp+40, zSchemaName, zTabName, zColname)) + (*ExprList_item)(unsafe.Pointer(pX)).FzEName = Xsqlite3MPrintf(tls, db, ts+19276, + 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+11969, 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+19345, libc.VaList(bp+64, zTName)) + Xsqlite3ErrorMsg(tls, pParse, ts+19285, libc.VaList(bp+72, zTName)) } else { - Xsqlite3ErrorMsg(tls, pParse, ts+19363, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+19303, 0) } } } @@ -118600,7 +119544,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+19383, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+19323, 0) return WRC_Abort } if elistFlags&U32(EP_HasFunc|EP_Subquery) != U32(0) { @@ -118621,7 +119565,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) @@ -118659,7 +119603,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 @@ -118696,7 +119640,7 @@ __1: goto __2 __2: i++ - pFrom += 112 + pFrom += 104 goto __1 goto __3 __3: @@ -118707,7 +119651,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) @@ -118736,7 +119680,7 @@ func sqlite3SelectAddTypeInfo(tls *libc.TLS, pParse uintptr, pSelect uintptr) { // * 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 @@ -118761,7 +119705,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) @@ -118789,13 +119733,13 @@ __1: if *(*uintptr)(unsafe.Pointer(pE + 32)) == uintptr(0) || (*ExprList)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(pE + 32)))).FnExpr != 1 { Xsqlite3ErrorMsg(tls, pParse, - ts+19414, 0) + ts+19354, 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+19465, 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+19405, libc.VaList(bp, (*FuncDef)(unsafe.Pointer((*AggInfo_func)(unsafe.Pointer(pFunc)).FpFunc)).FzName)) } } @@ -118811,7 +119755,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 @@ -118831,7 +119775,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 @@ -118850,7 +119794,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 @@ -118942,7 +119886,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 { @@ -118991,17 +119935,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+19498, + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+19438, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, func() uintptr { if bCover != 0 { - return ts + 19510 /* " USING COVERING ..." */ + return ts + 19450 /* " USING COVERING ..." */ } return ts + 1518 /* "" */ }(), @@ -119023,7 +119967,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 @@ -119034,10 +119978,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+7809) + var pNew uintptr = Xsqlite3Expr(tls, db, TK_INTEGER, ts+7848) if pNew != 0 { var pWhere uintptr = (*Select)(unsafe.Pointer(pS)).FpWhere { @@ -119069,7 +120013,7 @@ func havingToWhereExprCb(tls *libc.TLS, pWalker uintptr, pExpr uintptr) int32 { // 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) @@ -119087,18 +120031,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) { @@ -119128,12 +120072,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. @@ -119145,7 +120111,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) @@ -119170,7 +120136,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 @@ -119189,7 +120154,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 @@ -119197,6 +120161,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 @@ -119205,7 +120171,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 @@ -119336,17 +120302,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+19533, + ts+19473, libc.VaList(bp, func() uintptr { if (*SrcItem)(unsafe.Pointer(p0)).FzAlias != 0 { return (*SrcItem)(unsafe.Pointer(p0)).FzAlias @@ -119354,14 +120314,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, @@ -119373,18 +120326,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)) @@ -119394,11 +120347,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 @@ -119408,34 +120361,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+19587, + Xsqlite3ErrorMsg(tls, pParse, ts+19527, 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. @@ -119445,10 +120400,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 @@ -119476,12 +120431,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, @@ -119505,61 +120464,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 @@ -119570,23 +120529,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. @@ -119604,19 +120563,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+1518, (*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. @@ -119632,16 +120591,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 @@ -119649,18 +120608,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. @@ -119671,112 +120631,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+19627, libc.VaList(bp+32, pItem1)) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19567, 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+19642, libc.VaList(bp+40, pItem1)) + Xsqlite3VdbeExplain(tls, pParse, uint8(1), ts+19582, 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 @@ -119804,7 +120765,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)) @@ -119813,7 +120774,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 @@ -119824,64 +120787,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 { @@ -119893,10 +120894,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. @@ -119904,49 +120905,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) @@ -119964,8 +120965,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, @@ -119975,10 +120976,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 @@ -119986,45 +120987,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 @@ -120036,40 +121037,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 @@ -120080,20 +121081,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{}))) @@ -120112,33 +121113,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 @@ -120146,31 +121147,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) @@ -120181,7 +121182,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) @@ -120192,7 +121193,7 @@ __93: } else { distFlag = uint16(0) } -__96: +__101: ; // If there is a GROUP BY clause we might need a sorting index to @@ -120204,7 +121205,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) @@ -120228,37 +121229,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 + 19658 /* "DISTINCT" */ + return ts + 19598 /* "DISTINCT" */ } - return ts + 19667 /* "GROUP BY" */ + return ts + 19607 /* "GROUP BY" */ }()) groupBySort = 1 @@ -120266,48 +121273,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) @@ -120322,7 +121329,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 @@ -120334,11 +121341,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... @@ -120347,36 +121354,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) @@ -120403,16 +121410,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) @@ -120451,17 +121458,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: @@ -120493,58 +121500,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) @@ -120559,43 +121566,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)) @@ -120604,9 +121611,9 @@ __128: } else { distFlag1 = uint16(0) } -__136: +__141: ; -__129: +__134: ; // This case runs if the aggregate has no GROUP BY clause. The @@ -120623,73 +121630,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+19658) -__141: + explainTempTable(tls, pParse, ts+19598) +__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 + 19676 /* "RIGHT PART OF OR..." */ + return ts + 19616 /* "RIGHT PART OF OR..." */ } - return ts + 19699 /* "ORDER BY" */ + return ts + 19639 /* "ORDER BY" */ }()) generateSortTail(tls, pParse, p, bp+48, (*ExprList)(unsafe.Pointer(pEList)).FnExpr, pDest) -__142: +__148: ; // Jump here to skip this query @@ -120741,7 +121753,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 ****************************************** @@ -120765,12 +121777,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) @@ -120819,7 +121831,7 @@ __7: if !(i < nCol) { goto __9 } - z = Xsqlite3_mprintf(tls, ts+3598, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(colv + uintptr(i)*8)))) + z = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(colv + uintptr(i)*8)))) if !(z == uintptr(0)) { goto __10 } @@ -120841,7 +121853,7 @@ __5: } Xsqlite3_free(tls, (*TabResult)(unsafe.Pointer(p)).FzErrMsg) (*TabResult)(unsafe.Pointer(p)).FzErrMsg = Xsqlite3_mprintf(tls, - ts+19708, 0) + ts+19648, 0) (*TabResult)(unsafe.Pointer(p)).Frc = SQLITE_ERROR return 1 __11: @@ -120901,7 +121913,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) @@ -120940,7 +121952,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+3598, libc.VaList(bp, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg)) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg)) } Xsqlite3_free(tls, (*TabResult)(unsafe.Pointer(bp+8 /* &res */)).FzErrMsg) } @@ -120973,7 +121985,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 @@ -121004,7 +122016,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 @@ -121033,14 +122045,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 @@ -121052,8 +122061,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 @@ -121071,7 +122079,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) @@ -121101,7 +122109,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+19773, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+19713, 0) goto trigger_cleanup __3: ; @@ -121162,7 +122170,7 @@ __7: __8: ; - Xsqlite3FixInit(tls, bp+40, pParse, iDb, ts+19819, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */))) + Xsqlite3FixInit(tls, bp+40, pParse, iDb, ts+19759, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */))) if !(Xsqlite3FixSrcList(tls, bp+40, pTableName) != 0) { goto __9 } @@ -121180,7 +122188,7 @@ __10: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VTAB) { goto __11 } - Xsqlite3ErrorMsg(tls, pParse, ts+19827, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+19767, 0) goto trigger_orphan_error __11: ; @@ -121195,7 +122203,7 @@ __11: goto trigger_cleanup __12: ; - if !(Xsqlite3CheckObjectName(tls, pParse, zName, ts+19819, (*Table)(unsafe.Pointer(pTab)).FzName) != 0) { + if !(Xsqlite3CheckObjectName(tls, pParse, zName, ts+19759, (*Table)(unsafe.Pointer(pTab)).FzName) != 0) { goto __13 } goto trigger_cleanup @@ -121211,7 +122219,7 @@ __13: if !!(noErr != 0) { goto __16 } - Xsqlite3ErrorMsg(tls, pParse, ts+19868, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */)))) + Xsqlite3ErrorMsg(tls, pParse, ts+19808, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 32 /* pName */)))) goto __17 __16: ; @@ -121225,10 +122233,10 @@ __14: ; // Do not create a trigger on a system table - if !(Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+8003, 7) == 0) { + if !(Xsqlite3_strnicmp(tls, (*Table)(unsafe.Pointer(pTab)).FzName, ts+8042, 7) == 0) { goto __18 } - Xsqlite3ErrorMsg(tls, pParse, ts+19894, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+19834, 0) goto trigger_cleanup __18: ; @@ -121238,12 +122246,12 @@ __18: if !(int32((*Table)(unsafe.Pointer(pTab)).FeTabType) == TABTYP_VIEW && tr_tm != TK_INSTEAD) { goto __19 } - Xsqlite3ErrorMsg(tls, pParse, ts+19932, + Xsqlite3ErrorMsg(tls, pParse, ts+19872, libc.VaList(bp+8, func() uintptr { if tr_tm == TK_BEFORE { - return ts + 19969 /* "BEFORE" */ + return ts + 19909 /* "BEFORE" */ } - return ts + 19976 /* "AFTER" */ + return ts + 19916 /* "AFTER" */ }(), pTableName+8 /* &.a */)) goto trigger_orphan_error __19: @@ -121252,7 +122260,7 @@ __19: goto __20 } Xsqlite3ErrorMsg(tls, pParse, - ts+19982, libc.VaList(bp+24, pTableName+8)) + ts+19922, libc.VaList(bp+24, pTableName+8)) goto trigger_orphan_error __20: ; @@ -121282,9 +122290,9 @@ __23: ; if !(Xsqlite3AuthCheck(tls, pParse, SQLITE_INSERT, func() uintptr { if !(0 != 0) && iTabDb == 1 { - return ts + 12017 + return ts + 12056 } - return ts + 5828 + return ts + 5863 }(), uintptr(0), zDb) != 0) { goto __24 } @@ -121378,7 +122386,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) @@ -121418,7 +122426,7 @@ __2: __3: ; Xsqlite3TokenInit(tls, bp+40, (*Trigger)(unsafe.Pointer(pTrig)).FzName) - Xsqlite3FixInit(tls, bp+56, pParse, iDb, ts+19819, bp+40) + Xsqlite3FixInit(tls, bp+56, pParse, iDb, ts+19759, 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 @@ -121455,13 +122463,13 @@ __8: Xsqlite3NestedParse(tls, pParse, - ts+20028, + ts+19968, 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+20103, libc.VaList(bp+32, zName)), uint16(0)) + Xsqlite3MPrintf(tls, db, ts+20043, libc.VaList(bp+32, zName)), uint16(0)) __7: ; __6: @@ -121502,7 +122510,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 { @@ -121520,7 +122528,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) @@ -121537,7 +122545,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 @@ -121564,7 +122572,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 @@ -121596,7 +122604,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 @@ -121625,7 +122633,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 @@ -121644,7 +122652,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 } @@ -121664,7 +122672,7 @@ func Xsqlite3DeleteTrigger(tls *libc.TLS, db uintptr, pTrigger uintptr) { /* tes // 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) @@ -121730,7 +122738,7 @@ __5: if !!(noErr != 0) { goto __9 } - Xsqlite3ErrorMsg(tls, pParse, ts+20132, libc.VaList(bp, pName+8)) + Xsqlite3ErrorMsg(tls, pParse, ts+20072, libc.VaList(bp, pName+8)) goto __10 __9: Xsqlite3CodeVerifyNamedSchema(tls, pParse, zDb) @@ -121748,12 +122756,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) @@ -121771,9 +122779,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 + 12017 + return ts + 12056 } - return ts + 5828 + return ts + 5863 }() if iDb == 1 { code = SQLITE_DROP_TEMP_TRIGGER @@ -121786,7 +122794,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+20152, + ts+20092, 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) @@ -121794,7 +122802,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 @@ -121825,7 +122833,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 @@ -121838,11 +122846,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) @@ -121905,12 +122924,12 @@ __9: goto __15 } Xsqlite3ErrorMsg(tls, pParse, - ts+20214, + ts+20154, libc.VaList(bp, func() uintptr { if op == TK_DELETE { - return ts + 20262 /* "DELETE" */ + return ts + 20202 /* "DELETE" */ } - return ts + 20269 /* "UPDATE" */ + return ts + 20209 /* "UPDATE" */ }())) __15: ; @@ -121961,6 +122980,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. // @@ -121969,7 +123000,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) @@ -121983,6 +123017,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 { @@ -121994,7 +123037,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 @@ -122006,7 +123049,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+20276, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+20216, 0) return 1 } @@ -122015,7 +123058,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 @@ -122037,7 +123080,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 { @@ -122046,7 +123089,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) } } } @@ -122056,9 +123099,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 @@ -122066,7 +123109,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)) @@ -122085,19 +123128,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 @@ -122124,7 +123167,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) @@ -122154,8 +123197,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+6015, libc.VaList(bp, (*TriggerStep)(unsafe.Pointer(pStep)).FzSpan)), - -7) + Xsqlite3MPrintf(tls, db, ts+6050, libc.VaList(bp, (*TriggerStep)(unsafe.Pointer(pStep)).FzSpan)), + -6) } switch int32((*TriggerStep)(unsafe.Pointer(pStep)).Fop) { @@ -122211,7 +123254,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 @@ -122224,7 +123267,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) @@ -122281,7 +123324,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+20318, libc.VaList(bp, (*Trigger)(unsafe.Pointer(pTrigger)).FzName)), -7) + Xsqlite3MPrintf(tls, db, ts+20258, libc.VaList(bp, (*Trigger)(unsafe.Pointer(pTrigger)).FzName)), -6) } // If one was specified, code the WHEN clause. If it evaluates to false @@ -122330,7 +123373,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 @@ -122359,7 +123402,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) @@ -122419,7 +123462,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 { @@ -122467,7 +123510,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 @@ -122524,7 +123567,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) @@ -122537,7 +123580,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) { @@ -122554,7 +123597,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 { @@ -122575,7 +123618,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 } @@ -122587,7 +123630,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) @@ -122631,7 +123674,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 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) @@ -122656,7 +123699,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) @@ -122714,7 +123757,7 @@ func updateFromSelect(tls *libc.TLS, pParse uintptr, iEph int32, pPk uintptr, pC // 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: */ +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) @@ -122995,7 +124038,7 @@ __25: } Xsqlite3ErrorMsg(tls, pParse, - ts+20332, + ts+20272, libc.VaList(bp, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol+uintptr(j)*24)).FzCnName)) goto update_cleanup __27: @@ -123027,7 +124070,7 @@ __21: iRowidExpr = i goto __30 __29: - Xsqlite3ErrorMsg(tls, pParse, ts+20368, libc.VaList(bp+8, (*ExprList_item)(unsafe.Pointer(pChanges+8+uintptr(i)*32)).FzEName)) + Xsqlite3ErrorMsg(tls, pParse, ts+20308, 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: @@ -123038,7 +124081,7 @@ __28: rc = Xsqlite3AuthCheck(tls, pParse, SQLITE_UPDATE, (*Table)(unsafe.Pointer(pTab)).FzName, func() uintptr { if j < 0 { - return ts + 7584 /* "ROWID" */ + return ts + 7623 /* "ROWID" */ } return (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTab)).FaCol + uintptr(j)*24)).FzCnName }(), @@ -123351,7 +124394,7 @@ __69: goto __71 } (*KeyInfo)(unsafe.Pointer(pKeyInfo)).FnAllField = U16(nEphCol) - Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -9) + Xsqlite3VdbeAppendP4(tls, v, pKeyInfo, -8) __71: ; __70: @@ -123985,7 +125028,7 @@ __159: if !!(int32((*Parse)(unsafe.Pointer(pParse)).Fnested) != 0) { goto __160 } - Xsqlite3VdbeAppendP4(tls, v, pTab, -6) + Xsqlite3VdbeAppendP4(tls, v, pTab, -5) __160: ; @@ -124068,7 +125111,7 @@ __168: if !(regRowCount != 0) { goto __169 } - Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+20387) + Xsqlite3CodeChangeCount(tls, v, regRowCount, ts+20327) __169: ; @@ -124104,7 +125147,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) @@ -124240,7 +125283,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) @@ -124277,7 +125320,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) @@ -124290,14 +125333,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) } @@ -124310,7 +125353,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) { @@ -124336,7 +125379,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) @@ -124456,10 +125499,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+20400, libc.VaList(bp, nClause+1)) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([16]int8{})), bp+216, ts+20340, libc.VaList(bp, nClause+1)) } Xsqlite3ErrorMsg(tls, pParse, - ts+20404, libc.VaList(bp+8, bp+216)) + ts+20344, libc.VaList(bp+8, bp+216)) return SQLITE_ERROR } @@ -124478,7 +125521,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 @@ -124500,7 +125543,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 { @@ -124516,7 +125559,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 @@ -124550,7 +125593,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+12071, -1) + ts+12110, -1) Xsqlite3MayAbort(tls, pParse) Xsqlite3VdbeJumpHere(tls, v, i) } @@ -124596,7 +125639,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) @@ -124618,7 +125661,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+20477, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, ts+20481, uint64(3)) == 0) { + (libc.Xstrncmp(tls, zSubSql, ts+20417, uint64(3)) == 0 || libc.Xstrncmp(tls, zSubSql, ts+20421, uint64(3)) == 0) { rc = execSql(tls, db, pzErrMsg, zSubSql) if rc != SQLITE_OK { break @@ -124636,7 +125679,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 @@ -124680,7 +125723,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 @@ -124737,7 +125780,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) @@ -124768,14 +125811,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+20485) + Xsqlite3SetString(tls, pzErrMsg, db, ts+20425) return SQLITE_ERROR // IMP: R-12218-18073 __1: ; if !((*Sqlite3)(unsafe.Pointer(db)).FnVdbeActive > 1) { goto __2 } - Xsqlite3SetString(tls, pzErrMsg, db, ts+20525) + Xsqlite3SetString(tls, pzErrMsg, db, ts+20465) return SQLITE_ERROR // IMP: R-15610-35227 __2: ; @@ -124786,7 +125829,7 @@ __2: if !(Xsqlite3_value_type(tls, pOut) != SQLITE_TEXT) { goto __5 } - Xsqlite3SetString(tls, pzErrMsg, db, ts+20568) + Xsqlite3SetString(tls, pzErrMsg, db, ts+20508) return SQLITE_ERROR __5: ; @@ -124831,7 +125874,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+20586, libc.VaList(bp, zOut)) + rc = execSqlF(tls, db, pzErrMsg, ts+20526, libc.VaList(bp, zOut)) (*Sqlite3)(unsafe.Pointer(db)).FopenFlags = saved_openFlags if !(rc != SQLITE_OK) { goto __6 @@ -124852,7 +125895,7 @@ __6: goto __8 } rc = SQLITE_ERROR - Xsqlite3SetString(tls, pzErrMsg, db, ts+20609) + Xsqlite3SetString(tls, pzErrMsg, db, ts+20549) goto end_of_vacuum __8: ; @@ -124868,7 +125911,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+14424) + rc = execSql(tls, db, pzErrMsg, ts+14463) if !(rc != SQLITE_OK) { goto __9 } @@ -124920,7 +125963,7 @@ __12: (*Sqlite3)(unsafe.Pointer(db)).Finit.FiDb = U8(nDb) // force new CREATE statements into vacuum_db rc = execSqlF(tls, db, pzErrMsg, - ts+20636, + ts+20576, libc.VaList(bp+8, zDbMain)) if !(rc != SQLITE_OK) { goto __13 @@ -124930,7 +125973,7 @@ __13: ; rc = execSqlF(tls, db, pzErrMsg, - ts+20744, + ts+20684, libc.VaList(bp+16, zDbMain)) if !(rc != SQLITE_OK) { goto __14 @@ -124945,7 +125988,7 @@ __14: // the contents to the temporary database. rc = execSqlF(tls, db, pzErrMsg, - ts+20798, + ts+20738, libc.VaList(bp+24, zDbMain)) *(*U32)(unsafe.Pointer(db + 44)) &= libc.Uint32FromInt32(libc.CplInt32(DBFLAG_Vacuum)) @@ -124962,7 +126005,7 @@ __15: // from the schema table. rc = execSqlF(tls, db, pzErrMsg, - ts+20949, + ts+20889, libc.VaList(bp+32, zDbMain)) if !(rc != 0) { goto __16 @@ -125031,6 +126074,7 @@ __24: if !(pOut == uintptr(0)) { goto __25 } + nRes = Xsqlite3BtreeGetRequestedReserve(tls, pTemp) rc = Xsqlite3BtreeSetPageSize(tls, pMain, Xsqlite3BtreeGetPageSize(tls, pTemp), nRes, 1) __25: ; @@ -125075,7 +126119,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 @@ -125083,7 +126127,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 @@ -125123,7 +126167,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) @@ -125137,18 +126181,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 { @@ -125169,7 +126213,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 { @@ -125187,14 +126231,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 { @@ -125204,7 +126248,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-- @@ -125225,7 +126269,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 @@ -125262,7 +126306,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 { @@ -125293,7 +126337,7 @@ func Xsqlite3VtabDisconnect(tls *libc.TLS, db uintptr, p uintptr) { /* testdata/ // // 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 { @@ -125319,7 +126363,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) @@ -125339,7 +126383,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) @@ -125349,7 +126393,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+12298, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+12337, 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) { @@ -125365,7 +126409,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 @@ -125400,7 +126444,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) @@ -125411,7 +126455,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) @@ -125446,7 +126490,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+21079, libc.VaList(bp, pParse+256)) + zStmt = Xsqlite3MPrintf(tls, db, ts+21019, 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 @@ -125458,7 +126502,7 @@ func Xsqlite3VtabFinishParse(tls *libc.TLS, pParse uintptr, pEnd uintptr) { /* t iDb = Xsqlite3SchemaToIndex(tls, db, (*Table)(unsafe.Pointer(pTab)).FpSchema) Xsqlite3NestedParse(tls, pParse, - ts+21103, + ts+21043, 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, @@ -125468,7 +126512,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+21202, libc.VaList(bp+48, (*Table)(unsafe.Pointer(pTab)).FzName, zStmt)) + zWhere = Xsqlite3MPrintf(tls, db, ts+21142, libc.VaList(bp+48, (*Table)(unsafe.Pointer(pTab)).FzName, zStmt)) Xsqlite3VdbeAddParseSchemaOp(tls, v, iDb, zWhere, uint16(0)) Xsqlite3DbFree(tls, db, zStmt) @@ -125495,7 +126539,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) @@ -125503,7 +126547,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 @@ -125517,7 +126561,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) @@ -125538,7 +126582,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+21221, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) + ts+21161, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName)) return SQLITE_LOCKED } } @@ -125578,9 +126622,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+21263, libc.VaList(bp+8, zModuleName)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+21203, libc.VaList(bp+8, zModuleName)) } else { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+3598, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */)))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+3633, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */)))) Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* zErr */))) } Xsqlite3DbFree(tls, db, pVTable) @@ -125592,7 +126636,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 + 21293 /* "vtable construct..." */ + var zFormat uintptr = ts + 21233 /* "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 @@ -125613,7 +126657,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+16049, zType+uintptr(i), 6) && + if 0 == Xsqlite3_strnicmp(tls, ts+16079, 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 @@ -125653,7 +126697,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) @@ -125672,13 +126716,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+21339, libc.VaList(bp, zModule)) + Xsqlite3ErrorMsg(tls, pParse, ts+21279, 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+3598, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 16 /* zErr */)))) + Xsqlite3ErrorMsg(tls, pParse, ts+3633, 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 */))) @@ -125689,7 +126733,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 @@ -125709,7 +126753,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) @@ -125721,7 +126765,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) @@ -125740,7 +126784,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+21339, libc.VaList(bp, zMod)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3MPrintf(tls, db, ts+21279, 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) @@ -125761,7 +126805,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) @@ -125777,7 +126821,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 @@ -125826,7 +126870,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 + 3598 /* "%s" */ + return ts + 3633 /* "%s" */ } return uintptr(0) }(), libc.VaList(bp, (*Parse)(unsafe.Pointer(bp+8 /* &sParse */)).FzErrMsg)) @@ -125852,7 +126896,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 @@ -125897,7 +126941,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 @@ -125927,7 +126971,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 @@ -125949,14 +126993,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 } @@ -125967,7 +127011,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 @@ -126028,7 +127072,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 { @@ -126076,7 +127120,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) @@ -126143,7 +127187,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 @@ -126182,7 +127226,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) @@ -126218,7 +127262,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+3598, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */)))) + Xsqlite3ErrorMsg(tls, pParse, ts+3633, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */)))) Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 8 /* zErr */))) Xsqlite3VtabEponymousTableClear(tls, db, pMod) } @@ -126227,7 +127271,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 @@ -126244,19 +127288,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 @@ -126265,7 +127309,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 @@ -126293,7 +127337,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 } @@ -126357,7 +127401,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 ************************************** @@ -126397,23 +127441,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 @@ -126427,6 +127471,7 @@ type WhereLevel1 = struct { FregBignull int32 FaddrBignull int32 FregFilter int32 + FpRJ uintptr FiFrom U8 Fop U8 Fp3 U8 @@ -126443,9 +127488,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 @@ -126472,9 +127517,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 @@ -126484,9 +127529,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 @@ -126506,9 +127551,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 @@ -126521,9 +127566,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 @@ -126538,24 +127583,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-3380500/sqlite3.c:146925:27 */ +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 WhereRightJoin = WhereRightJoin1 /* testdata/sqlite-amalgamation-3390200/sqlite3.c:148563:31 */ // This object contains information needed to implement a single nested // loop in WHERE clause. @@ -126577,7 +127637,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 @@ -126603,7 +127663,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 @@ -126625,7 +127685,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 @@ -126647,13 +127707,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 + 21358 /* "" */ + return ts + 21298 /* "" */ } if i == -1 { - return ts + 16158 /* "rowid" */ + return ts + 16188 /* "rowid" */ } return (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer((*Index)(unsafe.Pointer(pIdx)).FpTable)).FaCol + uintptr(i)*24)).FzCnName } @@ -126664,39 +127724,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+21365, 5) + Xsqlite3_str_append(tls, pStr, ts+21305, 5) } if nTerm > 1 { - Xsqlite3_str_append(tls, pStr, ts+21371, 1) + Xsqlite3_str_append(tls, pStr, ts+21311, 1) } for i = 0; i < nTerm; i++ { if i != 0 { - Xsqlite3_str_append(tls, pStr, ts+12688, 1) + Xsqlite3_str_append(tls, pStr, ts+12727, 1) } Xsqlite3_str_appendall(tls, pStr, explainIndexColumnName(tls, pIdx, iTerm+i)) } if nTerm > 1 { - Xsqlite3_str_append(tls, pStr, ts+4892, 1) + Xsqlite3_str_append(tls, pStr, ts+4927, 1) } Xsqlite3_str_append(tls, pStr, zOp, 1) if nTerm > 1 { - Xsqlite3_str_append(tls, pStr, ts+21371, 1) + Xsqlite3_str_append(tls, pStr, ts+21311, 1) } for i = 0; i < nTerm; i++ { if i != 0 { - Xsqlite3_str_append(tls, pStr, ts+12688, 1) + Xsqlite3_str_append(tls, pStr, ts+12727, 1) } - Xsqlite3_str_append(tls, pStr, ts+4943, 1) + Xsqlite3_str_append(tls, pStr, ts+4978, 1) } if nTerm > 1 { - Xsqlite3_str_append(tls, pStr, ts+4892, 1) + Xsqlite3_str_append(tls, pStr, ts+4927, 1) } } @@ -126712,7 +127772,7 @@ func explainAppendTerm(tls *libc.TLS, pStr uintptr, pIdx uintptr, nTerm int32, i // string similar to: // // "a=? AND b>?" -func explainIndexRange(tls *libc.TLS, pStr uintptr, pLoop uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:147580:13: */ +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) @@ -126725,29 +127785,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+21373, 2) + Xsqlite3_str_append(tls, pStr, ts+21313, 2) for i = 0; i < int32(nEq); i++ { var z uintptr = explainIndexColumnName(tls, pIndex, i) if i != 0 { - Xsqlite3_str_append(tls, pStr, ts+21365, 5) + Xsqlite3_str_append(tls, pStr, ts+21305, 5) } Xsqlite3_str_appendf(tls, pStr, func() uintptr { if i >= int32(nSkip) { - return ts + 21376 /* "%s=?" */ + return ts + 21316 /* "%s=?" */ } - return ts + 21381 /* "ANY(%s)" */ + return ts + 21321 /* "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+21389) + explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 2 /* &.nBtm */))), j, i, ts+21329) 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+21391) + explainAppendTerm(tls, pStr, pIndex, int32(*(*U16)(unsafe.Pointer(pLoop + 24 + 4 /* &.nTop */))), j, i, ts+21331) } - Xsqlite3_str_append(tls, pStr, ts+4892, 1) + Xsqlite3_str_append(tls, pStr, ts+4927, 1) } // This function is a no-op unless currently processing an EXPLAIN QUERY PLAN @@ -126757,7 +127817,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) @@ -126768,7 +127828,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. @@ -126792,11 +127852,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+21393, libc.VaList(bp, func() uintptr { + Xsqlite3_str_appendf(tls, bp+64, ts+21333, libc.VaList(bp, func() uintptr { if isSearch != 0 { - return ts + 21399 /* "SEARCH" */ + return ts + 21339 /* "SEARCH" */ } - return ts + 21406 /* "SCAN" */ + return ts + 21346 /* "SCAN" */ }(), pItem)) if flags&U32(WHERE_IPK|WHERE_VIRTUALTABLE) == U32(0) { var zFmt uintptr = uintptr(0) @@ -126806,30 +127866,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 + 10845 /* "PRIMARY KEY" */ + zFmt = ts + 10884 /* "PRIMARY KEY" */ } } else if flags&U32(WHERE_PARTIALIDX) != 0 { - zFmt = ts + 21411 /* "AUTOMATIC PARTIA..." */ + zFmt = ts + 21351 /* "AUTOMATIC PARTIA..." */ } else if flags&U32(WHERE_AUTO_INDEX) != 0 { - zFmt = ts + 21444 /* "AUTOMATIC COVERI..." */ + zFmt = ts + 21384 /* "AUTOMATIC COVERI..." */ } else if flags&U32(WHERE_IDX_ONLY) != 0 { - zFmt = ts + 21469 /* "COVERING INDEX %..." */ + zFmt = ts + 21409 /* "COVERING INDEX %..." */ } else { - zFmt = ts + 21487 /* "INDEX %s" */ + zFmt = ts + 21427 /* "INDEX %s" */ } if zFmt != 0 { - Xsqlite3_str_append(tls, bp+64, ts+21496, 7) + Xsqlite3_str_append(tls, bp+64, ts+21436, 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 + 16158 /* "rowid" */ - Xsqlite3_str_appendf(tls, bp+64, ts+21504, libc.VaList(bp+24, zRowid)) + var zRowid uintptr = ts + 16188 /* "rowid" */ + Xsqlite3_str_appendf(tls, bp+64, ts+21444, 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+21535, libc.VaList(bp+32, zRowid)) + Xsqlite3_str_appendf(tls, bp+64, ts+21475, libc.VaList(bp+32, zRowid)) cRangeOp = int8('<') } else if flags&U32(WHERE_BTM_LIMIT) != 0 { cRangeOp = int8('>') @@ -126837,15 +127897,18 @@ func Xsqlite3WhereExplainOneScan(tls *libc.TLS, pParse uintptr, pTabList uintptr cRangeOp = int8('<') } - Xsqlite3_str_appendf(tls, bp+64, ts+21545, libc.VaList(bp+40, int32(cRangeOp))) + Xsqlite3_str_appendf(tls, bp+64, ts+21485, libc.VaList(bp+40, int32(cRangeOp))) } else if flags&U32(WHERE_VIRTUALTABLE) != U32(0) { - Xsqlite3_str_appendf(tls, bp+64, ts+21550, + Xsqlite3_str_appendf(tls, bp+64, ts+21490, 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+21517, 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 } @@ -126858,12 +127921,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 @@ -126876,28 +127939,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+21577, libc.VaList(bp, pItem)) + Xsqlite3_str_appendf(tls, bp+24, ts+21528, 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+21376, 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+21316, 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+21598, 0) + Xsqlite3_str_appendf(tls, bp+24, ts+21549, 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+21365, 5) + Xsqlite3_str_append(tls, bp+24, ts+21305, 5) } - Xsqlite3_str_appendf(tls, bp+24, ts+21376, libc.VaList(bp+16, z)) + Xsqlite3_str_appendf(tls, bp+24, ts+21316, libc.VaList(bp+16, z)) } } - Xsqlite3_str_append(tls, bp+24, ts+4892, 1) + Xsqlite3_str_append(tls, bp+24, ts+4927, 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 } @@ -126941,11 +128004,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) @@ -126974,7 +128037,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) { @@ -127007,7 +128070,7 @@ func codeApplyAffinity(tls *libc.TLS, pParse uintptr, base int32, n int32, zAff // // * 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: */ +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) @@ -127045,7 +128108,7 @@ func updateRangeAffinityStr(tls *libc.TLS, pRight uintptr, n int32, zAff uintptr // 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) @@ -127120,7 +128183,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) @@ -127169,16 +128232,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(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(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 { @@ -127193,18 +128261,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(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(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) @@ -127249,7 +128318,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) } @@ -127313,7 +128382,7 @@ func codeEqualityTerm(tls *libc.TLS, pParse uintptr, pTerm uintptr, pLevel uintp // 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 @@ -127427,20 +128496,28 @@ func codeAllEqualityTerms(tls *libc.TLS, pParse uintptr, pLevel uintptr, bRev in // // 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 @@ -127463,7 +128540,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) } } } @@ -127475,7 +128552,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) { @@ -127503,10 +128580,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) { @@ -127523,7 +128600,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) @@ -127544,7 +128621,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 { @@ -127566,7 +128643,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) @@ -127631,7 +128708,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 { @@ -127677,12 +128754,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 @@ -127725,34 +128802,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() + // 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: # Return data, whatever. + // + // Return 2 # Jump back to the Gosub + // + // B: + // + // 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 @@ -127771,996 +129008,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 + } + goto __4 +__5: + ; + if !((*WhereLevel)(unsafe.Pointer(pWInfo+872+uintptr(j)*104)).FpRJ != 0) { + goto __6 } - addrHalt = (*WhereLevel)(unsafe.Pointer(pWInfo + 864 + uintptr(j)*96)).FaddrBrk + 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() - // 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: # Return data, whatever. - // - // Return 2 # Jump back to the Gosub - // - // B: - // - // 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(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(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+21557, 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+21572, 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+21606, 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+21621, 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. @@ -128781,68 +130396,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. @@ -128853,95 +130520,199 @@ 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 } @@ -128955,24 +130726,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+21581, 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) } @@ -128994,14 +130855,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(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(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) @@ -129010,10 +130871,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 { @@ -129036,14 +130894,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) { @@ -129063,7 +130921,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 { @@ -129090,7 +130948,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) @@ -129262,7 +131120,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) @@ -129367,26 +131225,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 + 16007, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH)}, - {FzOp: ts + 15329, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB)}, - {FzOp: ts + 14855, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE)}, - {FzOp: ts + 21630, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_REGEXP)}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150582:7 */ + {FzOp: ts + 16037, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_MATCH)}, + {FzOp: ts + 15368, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_GLOB)}, + {FzOp: ts + 14894, FeOp2: uint8(SQLITE_INDEX_CONSTRAINT_LIKE)}, + {FzOp: ts + 21595, 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++ @@ -129395,7 +131253,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 @@ -129426,7 +131284,7 @@ func whereNthSubterm(tls *libc.TLS, pTerm uintptr, N int32) uintptr { /* testdat // The following is NOT generated: // // xy --> x!=y -func whereCombineDisjuncts(tls *libc.TLS, pSrc uintptr, pWC uintptr, pOne uintptr, pTwo uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:150734:13: */ +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 @@ -129559,7 +131417,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 @@ -129631,7 +131489,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) } } @@ -129650,10 +131508,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 { @@ -129742,7 +131600,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 @@ -129878,7 +131736,7 @@ __3: // 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 @@ -129888,7 +131746,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) @@ -129907,7 +131765,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 @@ -129919,10 +131777,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))) } } } @@ -129942,7 +131802,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 @@ -129961,8 +131821,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 } @@ -129980,7 +131840,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. @@ -130021,7 +131881,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) @@ -130046,7 +131906,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 @@ -130078,14 +131938,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+21637, 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+21602, 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+21602, 0) + return + } + *(*U32)(unsafe.Pointer(pExpr + 4)) &= libc.Uint32FromInt32(libc.CplInt32(EP_InnerON)) } } (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll = prereqAll @@ -130161,11 +132035,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 + 6635 /* "false" */ + *(*uintptr)(unsafe.Pointer(pExpr + 8)) = ts + 6679 /* "false" */ *(*U32)(unsafe.Pointer(pExpr + 4)) |= U32(EP_IsFalse) (*WhereTerm)(unsafe.Pointer(pTerm)).FprereqAll = uint64(0) (*WhereTerm)(unsafe.Pointer(pTerm)).FeOperator = U16(0) @@ -130196,7 +132070,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 @@ -130268,7 +132142,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 + 21678 /* "NOCASE" */ + return ts + 21643 /* "NOCASE" */ } return uintptr(unsafe.Pointer(&Xsqlite3StrBINARY)) }() @@ -130324,7 +132198,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 && @@ -130356,8 +132230,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)) @@ -130389,7 +132263,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 */ // ************************************************************************** // @@ -130412,7 +132286,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 @@ -130436,7 +132310,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) @@ -130488,7 +132362,7 @@ func whereAddLimitExpr(tls *libc.TLS, pWC uintptr, iReg int32, pExpr uintptr, iC // 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) && @@ -130520,7 +132394,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 } } @@ -130538,7 +132412,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) @@ -130551,7 +132425,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 { @@ -130577,9 +132451,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 @@ -130611,7 +132482,7 @@ func Xsqlite3WhereClauseClear(tls *libc.TLS, pWC uintptr) { /* testdata/sqlite-a // 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: */ +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) @@ -130641,7 +132512,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) { @@ -130651,14 +132522,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 { @@ -130675,7 +132546,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) @@ -130687,7 +132558,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) @@ -130702,17 +132573,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+21685, + Xsqlite3ErrorMsg(tls, pParse, ts+21650, libc.VaList(bp, (*Table)(unsafe.Pointer(pTab)).FzName, j)) return } @@ -130724,13 +132596,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)) } } @@ -130771,7 +132646,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 ****************************************** @@ -130801,16 +132676,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) } @@ -130820,7 +132695,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) } @@ -130845,15 +132720,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 } @@ -130866,7 +132744,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) { @@ -130876,7 +132754,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 @@ -130887,14 +132765,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 } @@ -130913,19 +132791,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{}))) } @@ -130935,7 +132813,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 @@ -131012,7 +132890,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 { @@ -131026,20 +132904,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, uint64((*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 @@ -131050,7 +132952,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 @@ -131076,7 +132978,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) { @@ -131154,7 +133056,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) } @@ -131176,7 +133078,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) @@ -131231,7 +133133,7 @@ func whereScanInit(tls *libc.TLS, pScan uintptr, pWC uintptr, iCur int32, iColum // the form "X Y" where Y is a column in another table if no terms of // the form "X " 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) @@ -131261,7 +133163,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)) @@ -131282,7 +133184,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))) @@ -131303,7 +133205,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 @@ -131373,7 +133275,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) } @@ -131390,7 +133292,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) @@ -131410,6 +133312,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 @@ -131433,7 +133336,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 @@ -131441,13 +133344,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 @@ -131467,7 +133370,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) @@ -131552,7 +133455,7 @@ __4: goto __6 } Xsqlite3_log(tls, SQLITE_WARNING|int32(1)<<8, - ts+21721, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName, + ts+21686, libc.VaList(bp, (*Table)(unsafe.Pointer(pTable)).FzName, (*Column)(unsafe.Pointer((*Table)(unsafe.Pointer(pTable)).FaCol+uintptr(iCol)*24)).FzCnName)) sentWarning = U8(1) __6: @@ -131633,7 +133536,7 @@ __13: __14: ; *(*uintptr)(unsafe.Pointer(pLoop + 24 + 8 /* &.pIndex */)) = pIdx - (*Index)(unsafe.Pointer(pIdx)).FzName = ts + 21747 /* "auto-index" */ + (*Index)(unsafe.Pointer(pIdx)).FzName = ts + 21712 /* "auto-index" */ (*Index)(unsafe.Pointer(pIdx)).FpTable = pTable n = 0 idxCols = uint64(0) @@ -131741,8 +133644,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 @@ -131781,7 +133684,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) @@ -131789,7 +133692,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) @@ -131824,7 +133727,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 @@ -131852,7 +133755,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 @@ -131901,9 +133804,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 @@ -131929,7 +133832,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 @@ -131974,11 +133877,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) @@ -132009,7 +133916,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 } @@ -132044,8 +133951,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 } } } @@ -132144,7 +134053,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 @@ -132155,7 +134064,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 @@ -132182,7 +134091,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) @@ -132199,9 +134108,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+3598, libc.VaList(bp, Xsqlite3ErrStr(tls, rc))) + Xsqlite3ErrorMsg(tls, pParse, ts+3633, libc.VaList(bp, Xsqlite3ErrStr(tls, rc))) } else { - Xsqlite3ErrorMsg(tls, pParse, ts+3598, libc.VaList(bp+8, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg)) + Xsqlite3ErrorMsg(tls, pParse, ts+3633, libc.VaList(bp+8, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg)) } } Xsqlite3_free(tls, (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg) @@ -132220,7 +134129,7 @@ func vtabBestIndex(tls *libc.TLS, pParse uintptr, pTab uintptr, p uintptr) int32 // 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 @@ -132276,7 +134185,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 { @@ -132359,7 +134273,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 { @@ -132372,7 +134286,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) { @@ -132416,7 +134330,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) @@ -132531,7 +134445,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>0)) != 0 { Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(p + 24 + 16 /* &.idxStr */))) @@ -132839,7 +134753,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) } @@ -132848,7 +134762,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 @@ -132868,7 +134782,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)) @@ -132885,34 +134799,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 @@ -132938,7 +134849,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) { @@ -132982,7 +134893,7 @@ func whereLoopCheaperProperSubset(tls *libc.TLS, pX uintptr, pY uintptr) int32 { // 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 } @@ -133041,7 +134952,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: @@ -133130,7 +135041,7 @@ __3: // (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: */ +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 @@ -133237,7 +135148,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) @@ -133286,9 +135197,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) } } @@ -133347,7 +135259,7 @@ __3: // // 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 @@ -133415,7 +135327,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) @@ -133490,11 +135402,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 { @@ -133775,7 +135699,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 @@ -133817,12 +135741,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 @@ -133839,8 +135768,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 @@ -133892,7 +135821,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) @@ -133916,14 +135845,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 { @@ -133955,13 +135884,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 @@ -134015,9 +135945,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 @@ -134116,7 +136045,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) { @@ -134138,7 +136067,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 @@ -134177,7 +136113,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) @@ -134201,7 +136137,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) @@ -134214,7 +136150,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 @@ -134303,7 +136239,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+21758, libc.VaList(bp, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+21723, libc.VaList(bp, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName)) return SQLITE_ERROR } @@ -134376,7 +136312,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+21758, libc.VaList(bp+8, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName)) + Xsqlite3ErrorMsg(tls, pParse, ts+21723, libc.VaList(bp+8, (*Table)(unsafe.Pointer((*SrcItem)(unsafe.Pointer(pSrc)).FpTab)).FzName)) return SQLITE_ERROR } @@ -134425,7 +136361,7 @@ __6: // 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: */ +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 { @@ -134448,7 +136384,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 { @@ -134471,7 +136407,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 @@ -134497,7 +136433,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 @@ -134526,7 +136462,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) @@ -134549,7 +136485,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) { @@ -134662,7 +136598,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) @@ -134687,9 +136623,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) { @@ -134787,16 +136728,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 @@ -134813,19 +136756,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) @@ -134839,7 +136794,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+21784, 0) + Xsqlite3_log(tls, SQLITE_WARNING, ts+21749, 0) rc = SQLITE_OK } else { goto __3 @@ -134850,7 +136805,7 @@ __1: goto __2 __2: iTab++ - pItem += 112 + pItem += 104 goto __1 goto __3 __3: @@ -134875,7 +136830,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 @@ -134952,14 +136907,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 @@ -134979,7 +136935,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 @@ -135143,18 +137099,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 { @@ -135192,7 +137149,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 } @@ -135243,7 +137200,7 @@ func wherePathSatisfiesOrderBy(tls *libc.TLS, pWInfo uintptr, pOrderBy uintptr, // // 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: */ +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) } @@ -135251,7 +137208,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: // @@ -135298,7 +137255,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) @@ -135613,7 +137570,7 @@ __3: } if nFrom == 0 { - Xsqlite3ErrorMsg(tls, pParse, ts+21819, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+21784, 0) Xsqlite3DbFreeNN(tls, db, pSpace) return SQLITE_ERROR } @@ -135628,10 +137585,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 && @@ -135647,12 +137604,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) @@ -135705,7 +137662,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) @@ -135730,11 +137687,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) @@ -135792,10 +137750,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) @@ -135812,7 +137770,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 @@ -135823,7 +137781,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) @@ -135869,7 +137827,7 @@ func exprIsDeterministic(tls *libc.TLS, p uintptr) int32 { /* testdata/sqlite-am // 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: */ +func whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady Bitmask) Bitmask { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:159173:32: */ var i int32 var tabUsed Bitmask @@ -135878,18 +137836,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 && @@ -135902,7 +137860,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 } @@ -135920,7 +137878,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-- @@ -135944,18 +137902,18 @@ func whereOmitNoopJoin(tls *libc.TLS, pWInfo uintptr, notReady Bitmask) Bitmask // 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) && @@ -136056,7 +138014,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) @@ -136090,12 +138048,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 @@ -136120,7 +138083,7 @@ __1: if !((*SrcList)(unsafe.Pointer(pTabList)).FnSrc > int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8))) { goto __2 } - Xsqlite3ErrorMsg(tls, pParse, ts+21837, libc.VaList(bp, int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8)))) + Xsqlite3ErrorMsg(tls, pParse, ts+21802, libc.VaList(bp, int32(uint64(unsafe.Sizeof(Bitmask(0)))*uint64(8)))) return uintptr(0) __2: ; @@ -136141,7 +138104,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(uint64(nByteWInfo)+uint64(unsafe.Sizeof(WhereLoop{})))) if !((*Sqlite3)(unsafe.Pointer(db)).FmallocFailed != 0) { goto __3 @@ -136164,24 +138127,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) { @@ -136200,7 +138163,7 @@ __6: (*WhereInfo)(unsafe.Pointer(pWInfo)).FeDistinct = U8(WHERE_DISTINCT_UNIQUE) __7: ; - Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+21865, 0) + Xsqlite3VdbeExplain(tls, pParse, uint8(0), ts+21830, 0) goto __5 __4: // Assign a bit from the bitmask to every term in the FROM clause. @@ -136218,8 +138181,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 { @@ -136232,9 +138195,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 @@ -136290,7 +138253,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. @@ -136444,7 +138407,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 && @@ -136467,7 +138430,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: @@ -136478,13 +138441,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 @@ -136499,7 +138462,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) { @@ -136509,7 +138472,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 @@ -136642,59 +138606,115 @@ __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) @@ -136702,17 +138722,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. @@ -136723,13 +138743,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) } @@ -136741,7 +138761,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 @@ -136750,12 +138770,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 @@ -136784,7 +138816,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)) @@ -136796,15 +138830,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 @@ -136856,6 +138890,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) @@ -136871,9 +138909,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) @@ -136890,12 +138928,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 @@ -136906,15 +138943,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) @@ -136934,7 +138979,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) { @@ -136990,18 +139035,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 } @@ -137145,7 +139192,7 @@ __6: // 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: */ +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))++ @@ -137154,7 +139201,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 { @@ -137170,13 +139217,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: */ +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 { @@ -137186,7 +139233,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 { @@ -137204,9 +139251,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 @@ -137269,10 +139316,10 @@ __1: error_out: Xsqlite3_result_error(tls, - pCtx, ts+21883, -1) + pCtx, ts+21848, -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 { @@ -137282,7 +139329,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) { @@ -137295,7 +139342,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 { @@ -137309,7 +139356,7 @@ func first_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-a // 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: */ +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 { @@ -137322,7 +139369,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 { @@ -137335,7 +139382,7 @@ func rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-amalgamatio // 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: */ +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 @@ -137345,7 +139392,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 @@ -137353,7 +139400,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 { @@ -137371,7 +139418,7 @@ func percent_rankValueFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-ama // 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: */ +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 @@ -137381,7 +139428,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 @@ -137389,7 +139436,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 { @@ -137403,13 +139450,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: */ +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{}))) @@ -137418,14 +139465,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+21939, -1) + pCtx, ts+21904, -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 @@ -137433,7 +139480,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) { @@ -137459,10 +139506,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{}))) @@ -137477,7 +139524,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 @@ -137491,7 +139538,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 { @@ -137499,7 +139546,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 { @@ -137515,17 +139562,17 @@ func last_valueFinalizeFunc(tls *libc.TLS, pCtx uintptr) { /* testdata/sqlite-am // comparison of the zName pointer. Example: // // if( pFuncDef->zName==row_valueName ){ ... } -var row_numberName = *(*[11]int8)(unsafe.Pointer(ts + 21984)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158843:19 */ -var dense_rankName = *(*[11]int8)(unsafe.Pointer(ts + 21995)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158844:19 */ -var rankName = *(*[5]int8)(unsafe.Pointer(ts + 22006)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158845:19 */ -var percent_rankName = *(*[13]int8)(unsafe.Pointer(ts + 22011)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158846:19 */ -var cume_distName = *(*[10]int8)(unsafe.Pointer(ts + 22024)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158847:19 */ -var ntileName = *(*[6]int8)(unsafe.Pointer(ts + 22034)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158848:19 */ -var last_valueName = *(*[11]int8)(unsafe.Pointer(ts + 22040)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158849:19 */ -var nth_valueName = *(*[10]int8)(unsafe.Pointer(ts + 22051)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158850:19 */ -var first_valueName = *(*[12]int8)(unsafe.Pointer(ts + 22061)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158851:19 */ -var leadName = *(*[5]int8)(unsafe.Pointer(ts + 22073)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158852:19 */ -var lagName = *(*[4]int8)(unsafe.Pointer(ts + 22078 /* "lag" */)) /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158853:19 */ +var row_numberName = *(*[11]int8)(unsafe.Pointer(ts + 21949)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160867:19 */ +var dense_rankName = *(*[11]int8)(unsafe.Pointer(ts + 21960)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160868:19 */ +var rankName = *(*[5]int8)(unsafe.Pointer(ts + 21971)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160869:19 */ +var percent_rankName = *(*[13]int8)(unsafe.Pointer(ts + 21976)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160870:19 */ +var cume_distName = *(*[10]int8)(unsafe.Pointer(ts + 21989)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160871:19 */ +var ntileName = *(*[6]int8)(unsafe.Pointer(ts + 21999)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160872:19 */ +var last_valueName = *(*[11]int8)(unsafe.Pointer(ts + 22005)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160873:19 */ +var nth_valueName = *(*[10]int8)(unsafe.Pointer(ts + 22016)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160874:19 */ +var first_valueName = *(*[12]int8)(unsafe.Pointer(ts + 22026)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160875:19 */ +var leadName = *(*[5]int8)(unsafe.Pointer(ts + 22038)) /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160876:19 */ +var lagName = *(*[4]int8)(unsafe.Pointer(ts + 22043 /* "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. @@ -137534,7 +139581,7 @@ var lagName = *(*[4]int8)(unsafe.Pointer(ts + 22078 /* "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 @@ -137542,7 +139589,7 @@ func noopStepFunc(tls *libc.TLS, p uintptr, n int32, a uintptr) { /* testdata/sq } //NO_TEST -func noopValueFunc(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:158874:13: */ +func noopValueFunc(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:160898:13: */ _ = p /*no-op*/ } @@ -137557,7 +139604,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{})))) } @@ -137576,9 +139623,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) @@ -137589,7 +139636,7 @@ func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uin } } if p == uintptr(0) { - Xsqlite3ErrorMsg(tls, pParse, ts+22082, libc.VaList(bp, zName)) + Xsqlite3ErrorMsg(tls, pParse, ts+22047, libc.VaList(bp, zName)) } return p } @@ -137609,7 +139656,7 @@ func windowFind(tls *libc.TLS, pParse uintptr, pList uintptr, zName uintptr) uin // * 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) @@ -137633,12 +139680,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+22101, 0) + ts+22066, 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+22172, 0) + ts+22137, 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}, @@ -137661,14 +139708,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+7809) + (*Window)(unsafe.Pointer(pWin)).FpStart = Xsqlite3Expr(tls, db, TK_INTEGER, ts+7848) } break } } } } - (*Window)(unsafe.Pointer(pWin)).FpFunc = pFunc + (*Window)(unsafe.Pointer(pWin)).FpWFunc = pFunc } type WindowUpdate = struct { @@ -137677,16 +139724,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 @@ -137702,7 +139749,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 } } @@ -137786,7 +139833,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 { @@ -137810,7 +139857,7 @@ func selectWindowRewriteSelectCb(tls *libc.TLS, pWalker uintptr, pSelect uintptr // 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) @@ -137842,7 +139889,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) @@ -137875,7 +139922,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 } } } @@ -137888,7 +139935,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++ @@ -137896,14 +139943,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+22235, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pExpr + 8)))) + ts+22200, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pExpr + 8)))) } return WRC_Continue } @@ -137913,7 +139960,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) @@ -138004,7 +140051,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 { @@ -138038,7 +140085,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+7401)) + Xsqlite3Expr(tls, db, TK_INTEGER, ts+7440)) } pSub = Xsqlite3SelectNew(tls, @@ -138097,7 +140144,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 { @@ -138108,7 +140155,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) @@ -138123,7 +140170,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) @@ -138136,7 +140183,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) @@ -138148,7 +140195,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) @@ -138181,7 +140228,7 @@ __1: eStart == TK_FOLLOWING && (eEnd == TK_PRECEDING || eEnd == TK_CURRENT)) { goto __2 } - Xsqlite3ErrorMsg(tls, pParse, ts+22261, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+22226, 0) goto windowAllocErr __2: ; @@ -138217,7 +140264,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 @@ -138236,7 +140283,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) @@ -138247,15 +140294,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 + 22293 /* "PARTITION clause" */ + zErr = ts + 22258 /* "PARTITION clause" */ } else if (*Window)(unsafe.Pointer(pExist)).FpOrderBy != 0 && (*Window)(unsafe.Pointer(pWin)).FpOrderBy != 0 { - zErr = ts + 22310 /* "ORDER BY clause" */ + zErr = ts + 22275 /* "ORDER BY clause" */ } else if int32((*Window)(unsafe.Pointer(pExist)).FbImplicitFrame) == 0 { - zErr = ts + 22326 /* "frame specificat..." */ + zErr = ts + 22291 /* "frame specificat..." */ } if zErr != 0 { Xsqlite3ErrorMsg(tls, pParse, - ts+22346, libc.VaList(bp, zErr, (*Window)(unsafe.Pointer(pWin)).FzBase)) + ts+22311, 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 { @@ -138270,7 +140317,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 @@ -138278,7 +140325,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+22379, 0) + ts+22344, 0) } } else { Xsqlite3WindowDelete(tls, (*Parse)(unsafe.Pointer(pParse)).Fdb, pWin) @@ -138289,7 +140336,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 @@ -138309,7 +140356,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 @@ -138349,7 +140396,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 @@ -138383,7 +140430,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: @@ -138399,12 +140446,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 @@ -138425,7 +140472,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) @@ -138454,17 +140501,17 @@ func windowCheckValue(tls *libc.TLS, pParse uintptr, reg int32, eCond int32) { / } var azErr = [5]uintptr{ - ts + 22426, - ts + 22479, - ts + 21883, - ts + 22530, - ts + 22582, -} /* 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 + 22391, + ts + 22444, + ts + 21848, + ts + 22495, + ts + 22547, +} /* 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)) @@ -138489,19 +140536,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 { @@ -138537,12 +140584,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 { @@ -138626,7 +140673,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) @@ -138644,7 +140691,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) @@ -138652,7 +140699,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) @@ -138665,12 +140712,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) } } } @@ -138680,7 +140727,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 @@ -138746,7 +140793,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) @@ -138787,7 +140834,7 @@ func windowFullScan(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation- // first_value() // lag() // lead() -func windowReturnOneRow(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:160209:13: */ +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 @@ -138798,7 +140845,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)) { @@ -138870,13 +140917,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 { @@ -138905,13 +140952,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)) || @@ -138930,13 +140977,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) @@ -138967,7 +141014,7 @@ func windowIfNewPeer(tls *libc.TLS, pParse uintptr, pOrderBy uintptr, regNew int // 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 @@ -138983,7 +141030,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 @@ -139019,7 +141066,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 { @@ -139090,7 +141137,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 @@ -139238,7 +141285,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{}))) @@ -139246,7 +141293,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 @@ -139269,7 +141316,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) @@ -139294,7 +141341,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) @@ -139642,7 +141689,7 @@ func windowExprGtZero(tls *libc.TLS, pParse uintptr, pExpr uintptr) int32 { /* t // // 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) @@ -139776,7 +141823,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) @@ -140039,17 +142086,17 @@ 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++ @@ -140059,7 +142106,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) @@ -140078,19 +142125,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+22632, + Xsqlite3ErrorMsg(tls, pParse, ts+22597, libc.VaList(bp, func() uintptr { if (*Select)(unsafe.Pointer(pLoop)).FpOrderBy != uintptr(0) { - return ts + 19699 /* "ORDER BY" */ + return ts + 19639 /* "ORDER BY" */ } - return ts + 22674 /* "LIMIT" */ + return ts + 22639 /* "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+22680, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+22645, 0) } } @@ -140098,7 +142145,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) @@ -140110,7 +142157,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 @@ -140122,7 +142169,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 }{}))) @@ -140148,7 +142195,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) @@ -140162,14 +142209,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+22714, + Xsqlite3ErrorMsg(tls, pParse, ts+22679, libc.VaList(bp, (*Token)(unsafe.Pointer(pIdToken)).Fn, (*Token)(unsafe.Pointer(pIdToken)).Fz)) } Xsqlite3ExprListSetName(tls, pParse, p, pIdToken, 1) @@ -140237,7 +142284,7 @@ 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 @@ -140298,426 +142345,429 @@ type YYMINORTYPE = struct { // 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), @@ -140733,171 +142783,174 @@ 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. @@ -141099,7 +143152,7 @@ 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: @@ -141121,9 +143174,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 @@ -141132,9 +143185,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 @@ -141144,7 +143197,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 */ @@ -141159,7 +143212,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) { @@ -141192,8 +143245,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: @@ -141227,7 +143278,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 @@ -141248,7 +143299,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))) } @@ -141265,9 +143316,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 */ { @@ -141318,7 +143367,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) @@ -141326,7 +143375,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) @@ -141349,7 +143398,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 { @@ -141389,7 +143438,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]) @@ -141400,7 +143449,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 { @@ -141410,7 +143459,7 @@ func yyStackOverflow(tls *libc.TLS, yypParser uintptr) { /* testdata/sqlite-amal // stack every overflows //******* Begin %stack_overflow code ***************************************** - Xsqlite3ErrorMsg(tls, pParse, ts+22752, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+22717, 0) //******* End %stack_overflow code ******************************************* (*YyParser)(unsafe.Pointer(yypParser)).FpParse = pParse @@ -141419,7 +143468,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 { @@ -141439,7 +143488,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 @@ -141549,29 +143598,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 @@ -141615,8 +143664,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 @@ -141649,204 +143698,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 @@ -141956,29 +144008,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 @@ -142056,200 +144108,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 @@ -142261,9 +144316,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 @@ -142316,7 +144371,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*/ } @@ -142367,7 +144422,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 } @@ -142406,21 +144461,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+16158, 5) == 0 { + if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(5) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+16188, 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+22774, libc.VaList(bp, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz)) + Xsqlite3ErrorMsg(tls, pParse, ts+22739, 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+16071, 6) == 0 { + if (*Token)(unsafe.Pointer(yymsp+8)).Fn == uint32(6) && Xsqlite3_strnicmp(tls, (*Token)(unsafe.Pointer(yymsp+8)).Fz, ts+16101, 6) == 0 { *(*U32)(unsafe.Pointer(bp + 40)) = U32(TF_Strict) } else { *(*U32)(unsafe.Pointer(bp + 40)) = U32(0) - Xsqlite3ErrorMsg(tls, pParse, ts+22774, libc.VaList(bp+16, (*Token)(unsafe.Pointer(yymsp+8)).Fn, (*Token)(unsafe.Pointer(yymsp+8)).Fz)) + Xsqlite3ErrorMsg(tls, pParse, ts+22739, 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)) @@ -142633,11 +144688,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 } @@ -142749,7 +144804,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 { @@ -142833,11 +144888,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) } @@ -142867,11 +144922,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)) } @@ -142886,74 +144941,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 { @@ -142962,7 +145025,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 { @@ -142971,17 +145034,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 { @@ -142989,7 +145052,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 { @@ -142997,81 +145060,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 */ + case uint32(126): /* on_using ::= ON expr */ { - *(*uintptr)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-1)*24 + 8)) = *(*uintptr)(unsafe.Pointer(yymsp + 8)) + (*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(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(127): /* on_using ::= USING LP idlist RP */ { - *(*uintptr)(unsafe.Pointer(yymsp + 1*24 + 8)) = uintptr(0) + (*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(128): /* indexed_opt ::= INDEXED BY nm */ + case uint32(128): /* on_using ::= */ { - *(*Token)(unsafe.Pointer(yymsp + libc.UintptrFromInt32(-2)*24 + 8)) = *(*Token)(unsafe.Pointer(yymsp + 8)) + (*OnOrUsing)(unsafe.Pointer(yymsp + 1*24 + 8)).FpOn = uintptr(0) + (*OnOrUsing)(unsafe.Pointer(yymsp + 1*24 + 8)).FpUsing = uintptr(0) } break - case uint32(129): /* indexed_opt ::= NOT INDEXED */ + case uint32(130): /* indexed_by ::= INDEXED BY nm */ { - (*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(130): /* using_opt ::= USING LP idlist RP */ - { - *(*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): @@ -143120,6 +145155,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)) @@ -143156,8 +145221,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+22801) - *(*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+22766) + 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 @@ -143230,6 +145307,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)) @@ -143304,15 +145386,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+22810, libc.VaList(bp+32, bp+112)) + Xsqlite3ErrorMsg(tls, pParse, ts+22775, 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) } } } @@ -143458,14 +145540,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 { @@ -143476,7 +145570,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))) @@ -143484,14 +145578,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))) @@ -143506,7 +145600,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 @@ -143517,12 +145611,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 + 7809 /* "1" */ + return ts + 6674 /* "true" */ } - return ts + 7401 /* "0" */ + return ts + 6679 /* "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 { @@ -143553,14 +145650,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))) @@ -143570,7 +145667,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)) @@ -143590,7 +145687,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))) @@ -143598,7 +145695,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 { @@ -143615,41 +145712,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)), @@ -143659,78 +145756,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 { @@ -143741,109 +145838,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+22834, 0) + ts+22799, 0) } break - case uint32(269): /* tridxby ::= INDEXED BY nm */ + case uint32(271): /* tridxby ::= INDEXED BY nm */ { Xsqlite3ErrorMsg(tls, pParse, - ts+22929, 0) + ts+22894, 0) } break - case uint32(270): /* tridxby ::= NOT INDEXED */ + case uint32(272): /* tridxby ::= NOT INDEXED */ { Xsqlite3ErrorMsg(tls, pParse, - ts+23013, 0) + ts+22978, 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 { @@ -143851,7 +145948,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 { @@ -143859,151 +145956,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))) @@ -144012,7 +146109,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)) @@ -144021,113 +146118,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)) @@ -144138,7 +146235,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 { @@ -144150,13 +146247,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 { @@ -144164,74 +146261,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 *********************************************** } @@ -144256,7 +146354,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 @@ -144266,9 +146364,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+22810, libc.VaList(bp, bp+8)) + Xsqlite3ErrorMsg(tls, pParse, ts+22775, libc.VaList(bp, bp+8)) } else { - Xsqlite3ErrorMsg(tls, pParse, ts+23098, 0) + Xsqlite3ErrorMsg(tls, pParse, ts+23063, 0) } //*********** End %syntax_error code ***************************************** @@ -144276,7 +146374,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 @@ -144306,7 +146404,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) @@ -144360,7 +146458,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]) } @@ -144411,7 +146509,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 @@ -144497,7 +146595,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), @@ -144510,7 +146608,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. @@ -144527,7 +146625,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), @@ -144542,7 +146640,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{ @@ -144558,7 +146656,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), @@ -144591,7 +146689,7 @@ 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 @@ -144724,7 +146822,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 @@ -144902,7 +147000,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) @@ -144911,7 +147009,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 } @@ -144920,11 +147018,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)) } @@ -144947,13 +147045,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) @@ -145003,7 +147101,7 @@ func getToken(tls *libc.TLS, pz uintptr) int32 { /* testdata/sqlite-amalgamation // // * 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: */ +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 @@ -145020,7 +147118,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 @@ -145034,7 +147132,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 @@ -145047,7 +147145,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 @@ -145415,7 +147513,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) @@ -145447,6 +147545,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 { @@ -145485,7 +147584,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+23115, libc.VaList(bp, bp+2464)) + Xsqlite3ErrorMsg(tls, pParse, ts+23080, libc.VaList(bp, bp+2464)) break } } @@ -145506,9 +147605,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+3598, libc.VaList(bp+8, Xsqlite3ErrStr(tls, (*Parse)(unsafe.Pointer(pParse)).Frc))) + (*Parse)(unsafe.Pointer(pParse)).FzErrMsg = Xsqlite3MPrintf(tls, db, ts+3633, libc.VaList(bp+8, Xsqlite3ErrStr(tls, (*Parse)(unsafe.Pointer(pParse)).Frc))) } - Xsqlite3_log(tls, (*Parse)(unsafe.Pointer(pParse)).Frc, ts+23140, libc.VaList(bp+16, (*Parse)(unsafe.Pointer(pParse)).FzErrMsg, (*Parse)(unsafe.Pointer(pParse)).FzTail)) + Xsqlite3_log(tls, (*Parse)(unsafe.Pointer(pParse)).Frc, ts+23105, libc.VaList(bp+16, (*Parse)(unsafe.Pointer(pParse)).FzErrMsg, (*Parse)(unsafe.Pointer(pParse)).FzTail)) nErr++ } (*Parse)(unsafe.Pointer(pParse)).FzTail = zSql @@ -145523,7 +147622,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 @@ -145605,7 +147706,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 @@ -145708,7 +147809,7 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-a fallthrough case 'C': { - if nId == 6 && Xsqlite3_strnicmp(tls, zSql, ts+23151, 6) == 0 { + if nId == 6 && Xsqlite3_strnicmp(tls, zSql, ts+23116, 6) == 0 { token = U8(TkCREATE) } else { token = U8(TkOTHER) @@ -145721,11 +147822,11 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-a fallthrough case 'T': { - if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+19819, 7) == 0 { + if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+19759, 7) == 0 { token = U8(TkTRIGGER) - } else if nId == 4 && Xsqlite3_strnicmp(tls, zSql, ts+23158, 4) == 0 { + } else if nId == 4 && Xsqlite3_strnicmp(tls, zSql, ts+23123, 4) == 0 { token = U8(TkTEMP) - } else if nId == 9 && Xsqlite3_strnicmp(tls, zSql, ts+23163, 9) == 0 { + } else if nId == 9 && Xsqlite3_strnicmp(tls, zSql, ts+23128, 9) == 0 { token = U8(TkTEMP) } else { token = U8(TkOTHER) @@ -145738,9 +147839,9 @@ func Xsqlite3_complete(tls *libc.TLS, zSql uintptr) int32 { /* testdata/sqlite-a fallthrough case 'E': { - if nId == 3 && Xsqlite3_strnicmp(tls, zSql, ts+23173, 3) == 0 { + if nId == 3 && Xsqlite3_strnicmp(tls, zSql, ts+23138, 3) == 0 { token = U8(TkEND) - } else if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+23177, 7) == 0 { + } else if nId == 7 && Xsqlite3_strnicmp(tls, zSql, ts+23142, 7) == 0 { token = U8(TkEXPLAIN) } else { token = U8(TkOTHER) @@ -145782,12 +147883,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 @@ -145814,7 +147915,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) } @@ -145826,11 +147927,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)) } @@ -145843,14 +147944,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 } @@ -145863,14 +147964,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. // @@ -145901,7 +148002,7 @@ var Xsqlite3_data_directory uintptr = uintptr(0) /* testdata/sqlite-amalgamation // // * 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: */ +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 @@ -146027,7 +148128,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) @@ -146066,7 +148167,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 @@ -146074,7 +148175,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 @@ -146344,7 +148445,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 @@ -146442,13 +148543,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) @@ -146467,7 +148568,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 @@ -146496,7 +148597,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 @@ -146575,11 +148676,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 @@ -146601,7 +148702,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)))) == ' ' { @@ -146614,7 +148715,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 @@ -146628,7 +148729,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 { @@ -146644,39 +148745,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 @@ -146691,7 +148792,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)) @@ -146706,7 +148807,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) @@ -146733,7 +148834,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 { @@ -146749,14 +148850,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 { @@ -146780,7 +148881,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+23185, 0) + ts+23150, 0) Xsqlite3_mutex_leave(tls, (*Sqlite3)(unsafe.Pointer(db)).Fmutex) return SQLITE_BUSY } @@ -146793,7 +148894,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 @@ -146830,11 +148931,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) } @@ -146844,7 +148945,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 @@ -146954,7 +149055,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 @@ -147004,24 +149105,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 + 23253 /* "unknown error" */ +func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:172186:27: */ + var zErr uintptr = ts + 23218 /* "unknown error" */ switch rc { case SQLITE_ABORT | int32(2)<<8: { - zErr = ts + 23267 /* "abort due to ROL..." */ + zErr = ts + 23232 /* "abort due to ROL..." */ break } case SQLITE_ROW: { - zErr = ts + 23289 /* "another row avai..." */ + zErr = ts + 23254 /* "another row avai..." */ break } case SQLITE_DONE: { - zErr = ts + 23311 /* "no more rows ava..." */ + zErr = ts + 23276 /* "no more rows ava..." */ break } @@ -147039,36 +149140,36 @@ func Xsqlite3ErrStr(tls *libc.TLS, rc int32) uintptr { /* testdata/sqlite-amalga } var aMsg = [29]uintptr{ - ts + 23334, - ts + 23347, + ts + 23299, + ts + 23312, /* SQLITE_INTERNAL */ uintptr(0), - ts + 23363, - ts + 23388, - ts + 23402, - ts + 23421, + ts + 23328, + ts + 23353, + ts + 23367, + ts + 23386, ts + 1454, - ts + 23446, - ts + 23483, - ts + 23495, - ts + 23510, - ts + 23543, - ts + 23561, - ts + 23586, - ts + 23615, + ts + 23411, + ts + 23448, + ts + 23460, + ts + 23475, + ts + 23508, + ts + 23526, + ts + 23551, + ts + 23580, /* SQLITE_EMPTY */ uintptr(0), - ts + 5783, - ts + 5269, - ts + 23632, - ts + 23650, - ts + 23668, + ts + 5818, + ts + 5304, + ts + 23597, + ts + 23615, + ts + 23633, /* SQLITE_NOLFS */ uintptr(0), - ts + 23702, + ts + 23667, /* SQLITE_FORMAT */ uintptr(0), - ts + 23723, - ts + 23749, - ts + 23772, - ts + 23793, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:170112:20 */ + ts + 23688, + ts + 23714, + ts + 23737, + ts + 23758, +} /* 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 @@ -147077,7 +149178,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 @@ -147100,8 +149201,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. // @@ -147110,7 +149211,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 @@ -147128,7 +149229,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 @@ -147141,7 +149242,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 @@ -147157,7 +149258,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 @@ -147171,7 +149272,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: */ *(*int32)(unsafe.Pointer(db + 432)) = 1 } @@ -147179,7 +149280,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 @@ -147189,7 +149290,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) @@ -147247,7 +149348,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+23809, 0) + ts+23774, 0) return SQLITE_BUSY } else { @@ -147294,7 +149395,7 @@ func Xsqlite3CreateFunc(tls *libc.TLS, db uintptr, zFunctionName uintptr, nArg i // 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: */ +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 @@ -147336,22 +149437,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 @@ -147371,7 +149472,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) @@ -147380,7 +149481,7 @@ func sqlite3InvalidFunction(tls *libc.TLS, context uintptr, NotUsed int32, NotUs _ = NotUsed _ = NotUsed2 zErr = Xsqlite3_mprintf(tls, - ts+23872, libc.VaList(bp, zName)) + ts+23837, libc.VaList(bp, zName)) Xsqlite3_result_error(tls, context, zErr, -1) Xsqlite3_free(tls, zErr) } @@ -147395,7 +149496,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 @@ -147421,7 +149522,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) @@ -147439,7 +149540,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) @@ -147460,7 +149561,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) @@ -147478,7 +149579,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) @@ -147491,7 +149592,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) @@ -147504,7 +149605,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) @@ -147517,7 +149618,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 @@ -147529,7 +149630,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) @@ -147545,7 +149646,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) @@ -147563,7 +149664,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 @@ -147576,7 +149677,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 @@ -147587,7 +149688,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) @@ -147616,7 +149717,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+23923, libc.VaList(bp, zDb)) + Xsqlite3ErrorWithMsg(tls, db, SQLITE_ERROR, ts+23888, libc.VaList(bp, zDb)) } else { (*Sqlite3)(unsafe.Pointer(db)).FbusyHandler.FnBusy = 0 rc = Xsqlite3Checkpoint(tls, db, iDb, eMode, pnLog, pnCkpt) @@ -147637,7 +149738,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)) @@ -147661,7 +149762,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 @@ -147703,19 +149804,19 @@ func Xsqlite3Checkpoint(tls *libc.TLS, db uintptr, iDb int32, eMode int32, pnLog // 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: */ +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 { @@ -147737,7 +149838,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) @@ -147749,7 +149850,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))) @@ -147778,18 +149879,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 @@ -147797,9 +149898,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 @@ -147807,7 +149908,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 } @@ -147817,13 +149918,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 @@ -147836,7 +149937,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 @@ -147846,7 +149947,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+23944, 0) + ts+23909, 0) return SQLITE_BUSY } Xsqlite3ExpirePreparedStatements(tls, db, 0) @@ -147899,7 +150000,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 @@ -147911,7 +150012,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 @@ -147958,7 +150059,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) @@ -147991,7 +150092,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+24012, uint64(5)) == 0) { + nUri >= 5 && libc.Xmemcmp(tls, zUri, ts+23977, uint64(5)) == 0) { goto __1 } // Input character index iOut = 0 // Output character index @@ -148039,10 +150140,10 @@ __8: goto __8 __9: ; - if !(iIn != 7 && (iIn != 16 || libc.Xmemcmp(tls, ts+24018, zUri+7, uint64(9)) != 0)) { + if !(iIn != 7 && (iIn != 16 || libc.Xmemcmp(tls, ts+23983, zUri+7, uint64(9)) != 0)) { goto __10 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24028, + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+23993, libc.VaList(bp, iIn-7, zUri+7)) rc = SQLITE_ERROR goto parse_uri_out @@ -148164,7 +150265,7 @@ __27: zVal = zOpt + uintptr(nOpt+1) nVal = Xsqlite3Strlen30(tls, zVal) - if !(nOpt == 3 && libc.Xmemcmp(tls, ts+24056, zOpt, uint64(3)) == 0) { + if !(nOpt == 3 && libc.Xmemcmp(tls, ts+24021, zOpt, uint64(3)) == 0) { goto __29 } zVfs = zVal @@ -148175,17 +150276,17 @@ __29: mask = 0 limit = 0 - if !(nOpt == 5 && libc.Xmemcmp(tls, ts+24060, zOpt, uint64(5)) == 0) { + if !(nOpt == 5 && libc.Xmemcmp(tls, ts+24025, zOpt, uint64(5)) == 0) { goto __31 } mask = SQLITE_OPEN_SHAREDCACHE | SQLITE_OPEN_PRIVATECACHE aMode = uintptr(unsafe.Pointer(&aCacheMode)) limit = mask - zModeType = ts + 24060 /* "cache" */ + zModeType = ts + 24025 /* "cache" */ __31: ; - if !(nOpt == 4 && libc.Xmemcmp(tls, ts+24066, zOpt, uint64(4)) == 0) { + if !(nOpt == 4 && libc.Xmemcmp(tls, ts+24031, zOpt, uint64(4)) == 0) { goto __32 } @@ -148193,7 +150294,7 @@ __31: SQLITE_OPEN_CREATE | SQLITE_OPEN_MEMORY aMode = uintptr(unsafe.Pointer(&aOpenMode)) limit = int32(uint32(mask) & flags) - zModeType = ts + 3207 /* "access" */ + zModeType = ts + 3242 /* "access" */ __32: ; @@ -148224,7 +150325,7 @@ __36: if !(mode == 0) { goto __38 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24071, libc.VaList(bp+16, zModeType, zVal)) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24036, libc.VaList(bp+16, zModeType, zVal)) rc = SQLITE_ERROR goto parse_uri_out __38: @@ -148232,7 +150333,7 @@ __38: if !(mode&libc.CplInt32(SQLITE_OPEN_MEMORY) > limit) { goto __39 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24091, + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24056, libc.VaList(bp+32, zModeType, zVal)) rc = SQLITE_PERM goto parse_uri_out @@ -148275,7 +150376,7 @@ __2: if !(*(*uintptr)(unsafe.Pointer(ppVfs)) == uintptr(0)) { goto __42 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24115, libc.VaList(bp+48, zVfs)) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+24080, libc.VaList(bp+48, zVfs)) rc = SQLITE_ERROR __42: ; @@ -148296,24 +150397,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 + 24131, Fmode: SQLITE_OPEN_SHAREDCACHE}, - {Fz: ts + 24138, Fmode: SQLITE_OPEN_PRIVATECACHE}, + {Fz: ts + 24096, Fmode: SQLITE_OPEN_SHAREDCACHE}, + {Fz: ts + 24103, 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 + 24146, Fmode: SQLITE_OPEN_READONLY}, - {Fz: ts + 24149, Fmode: SQLITE_OPEN_READWRITE}, - {Fz: ts + 24152, Fmode: SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE}, - {Fz: ts + 17253, Fmode: SQLITE_OPEN_MEMORY}, + {Fz: ts + 24111, Fmode: SQLITE_OPEN_READONLY}, + {Fz: ts + 24114, Fmode: SQLITE_OPEN_READWRITE}, + {Fz: ts + 24117, Fmode: SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE}, + {Fz: ts + 17283, 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) @@ -148329,7 +150430,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 @@ -148481,10 +150582,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+21678, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + createCollation(tls, db, ts+21643, 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+24156, uint8(SQLITE_UTF8), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + createCollation(tls, db, ts+24121, 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) { @@ -148513,7 +150614,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) @@ -148530,7 +150631,7 @@ __19: ; Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr { if *(*uintptr)(unsafe.Pointer(bp + 24)) != 0 { - return ts + 3598 /* "%s" */ + return ts + 3633 /* "%s" */ } return uintptr(0) }(), libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)))) @@ -148568,9 +150669,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 + 6316 /* "main" */ + (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb)).FzDbSName = ts + 6351 /* "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 + 23158 /* "temp" */ + (*Db)(unsafe.Pointer((*Sqlite3)(unsafe.Pointer(db)).FaDb + 1*32)).FzDbSName = ts + 23123 /* "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) @@ -148669,17 +150770,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 @@ -148690,7 +150791,7 @@ func Xsqlite3_open16(tls *libc.TLS, zFilename uintptr, ppDb uintptr) int32 { /* return rc } if zFilename == uintptr(0) { - zFilename = ts + 24162 /* "\x00\x00" */ + zFilename = ts + 24127 /* "\x00\x00" */ } pVal = Xsqlite3ValueNew(tls, uintptr(0)) Xsqlite3ValueSetStr(tls, pVal, -1, zFilename, uint8(SQLITE_UTF16LE), uintptr(0)) @@ -148711,12 +150812,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) @@ -148728,7 +150829,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 @@ -148746,7 +150847,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) @@ -148757,7 +150858,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 @@ -148768,7 +150869,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 } @@ -148776,7 +150877,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) } @@ -148789,28 +150890,28 @@ func Xsqlite3_get_autocommit(tls *libc.TLS, db uintptr) int32 { /* testdata/sqli // // 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: */ +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+24165, + Xsqlite3_log(tls, iErr, ts+24130, 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+24190) + return Xsqlite3ReportError(tls, SQLITE_CORRUPT, lineno, ts+24155) } -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+24210) + return Xsqlite3ReportError(tls, SQLITE_MISUSE, lineno, ts+24175) } -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+24217) + return Xsqlite3ReportError(tls, SQLITE_CANTOPEN, lineno, ts+24182) } // This is a convenience routine that makes sure that all thread-specific @@ -148818,12 +150919,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) @@ -148989,14 +151090,14 @@ __19: goto __20 } Xsqlite3DbFree(tls, db, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */))) - *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)) = Xsqlite3MPrintf(tls, db, ts+24234, libc.VaList(bp, zTableName, + *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)) = Xsqlite3MPrintf(tls, db, ts+24199, libc.VaList(bp, zTableName, zColumnName)) rc = SQLITE_ERROR __20: ; Xsqlite3ErrorWithMsg(tls, db, rc, func() uintptr { if *(*uintptr)(unsafe.Pointer(bp + 24)) != 0 { - return ts + 3598 /* "%s" */ + return ts + 3633 /* "%s" */ } return uintptr(0) }(), libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 24 /* zErrMsg */)))) @@ -149007,7 +151108,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)) @@ -149022,7 +151123,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 { @@ -149035,7 +151136,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 @@ -149080,7 +151181,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 @@ -149482,8 +151583,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: @@ -149492,10 +151593,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 @@ -149520,10 +151621,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 } @@ -149539,7 +151642,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-- } @@ -149548,7 +151651,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) @@ -149561,7 +151664,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 @@ -149592,7 +151695,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 } @@ -149609,7 +151712,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) } @@ -149618,7 +151721,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) } @@ -149635,7 +151738,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 { @@ -149645,7 +151748,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) @@ -149666,14 +151769,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) } @@ -149686,7 +151789,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) @@ -149695,7 +151798,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) @@ -149708,9 +151811,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 { @@ -149721,7 +151835,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 { @@ -149732,7 +151846,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) @@ -149755,7 +151869,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) @@ -149798,7 +151912,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 @@ -149819,7 +151933,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) } @@ -149828,7 +151942,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) @@ -149840,7 +151954,7 @@ func Xsqlite3_compileoption_used(tls *libc.TLS, zOptName uintptr) int32 { /* tes azCompileOpt = Xsqlite3CompileOptions(tls, bp) - if Xsqlite3_strnicmp(tls, zOptName, ts+24262, 7) == 0 { + if Xsqlite3_strnicmp(tls, zOptName, ts+24227, 7) == 0 { zOptName += uintptr(7) } n = Xsqlite3Strlen30(tls, zOptName) @@ -149858,7 +151972,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) @@ -149903,11 +152017,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 { @@ -149920,7 +152034,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 { @@ -149930,13 +152044,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)) } @@ -149960,7 +152074,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 @@ -150003,7 +152117,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 + 24270 /* "database is dead..." */ + return ts + 24235 /* "database is dead..." */ } return uintptr(0) }(), 0) @@ -150015,7 +152129,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) @@ -150041,7 +152155,7 @@ func Xsqlite3ConnectionBlocked(tls *libc.TLS, db uintptr, pBlocker uintptr) { /* // 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: */ +func Xsqlite3ConnectionUnlocked(tls *libc.TLS, db uintptr) { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:175696:21: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -150145,7 +152259,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) @@ -150750,7 +152864,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 { @@ -150762,10 +152876,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 @@ -150773,9 +152887,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 @@ -150788,9 +152902,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 @@ -150798,8 +152912,8 @@ type JsonParse = JsonParse1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:19 // Names of the various JSON types: var jsonType = [8]uintptr{ - ts + 6116, ts + 6630, ts + 6635, ts + 6126, ts + 6121, ts + 7876, ts + 24293, ts + 24299, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:193317:19 */ + ts + 6151, ts + 6674, ts + 6679, ts + 6161, ts + 6156, ts + 7915, ts + 24258, ts + 24264, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:195439:19 */ // Maximum nesting depth of JSON for this implementation. // @@ -150813,7 +152927,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) @@ -150821,7 +152935,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) @@ -150829,7 +152943,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) } @@ -150837,7 +152951,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) @@ -150845,7 +152959,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) @@ -150878,7 +152992,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 } @@ -150890,7 +153004,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 { @@ -150903,7 +153017,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 } @@ -150912,7 +153026,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 @@ -150927,7 +153041,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) { @@ -150978,7 +153092,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 + 24306 + uintptr(int32(c)&0xf)))) + c = uint8(*(*int8)(unsafe.Pointer(ts + 24271 + uintptr(int32(c)&0xf)))) __8: ; __6: @@ -150998,15 +153112,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+6116, uint32(4)) + jsonAppendRaw(tls, p, ts+6151, uint32(4)) break } @@ -151035,7 +153149,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+24323, -1) + Xsqlite3_result_error(tls, (*JsonString)(unsafe.Pointer(p)).FpCtx, ts+24288, -1) (*JsonString)(unsafe.Pointer(p)).FbErr = U8(2) jsonReset(tls, p) } @@ -151046,7 +153160,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 { @@ -151073,7 +153187,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) } @@ -151082,7 +153196,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) @@ -151092,7 +153206,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) } @@ -151100,7 +153214,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) { @@ -151115,19 +153229,19 @@ func jsonRenderNode(tls *libc.TLS, pNode uintptr, pOut uintptr, aReplace uintptr default: { - jsonAppendRaw(tls, pOut, ts+6116, uint32(4)) + jsonAppendRaw(tls, pOut, ts+6151, uint32(4)) break } case JSON_TRUE: { - jsonAppendRaw(tls, pOut, ts+6630, uint32(4)) + jsonAppendRaw(tls, pOut, ts+6674, uint32(4)) break } case JSON_FALSE: { - jsonAppendRaw(tls, pOut, ts+6635, uint32(5)) + jsonAppendRaw(tls, pOut, ts+6679, uint32(5)) break } @@ -151203,7 +153317,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) @@ -151218,14 +153332,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 + @@ -151236,7 +153350,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) @@ -151517,7 +153631,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 @@ -151539,7 +153653,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) @@ -151554,7 +153668,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) { @@ -151570,7 +153684,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 @@ -151704,17 +153818,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+6116, uint64(4)) == 0 && + libc.Xstrncmp(tls, z+uintptr(i), ts+6151, 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+6630, uint64(4)) == 0 && + libc.Xstrncmp(tls, z+uintptr(i), ts+6674, 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+6635, uint64(5)) == 0 && + libc.Xstrncmp(tls, z+uintptr(i), ts+6679, 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)) @@ -151797,7 +153911,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) { @@ -151822,7 +153936,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+24352, -1) + Xsqlite3_result_error(tls, pCtx, ts+24317, -1) } } jsonParseReset(tls, pParse) @@ -151833,7 +153947,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 @@ -151864,7 +153978,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(uint64(unsafe.Sizeof(U32(0)))*uint64((*JsonParse)(unsafe.Pointer(pParse)).FnNode)))) @@ -151884,7 +153998,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 @@ -151941,7 +154055,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 { @@ -151964,7 +154078,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 @@ -152140,7 +154254,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)) @@ -152151,7 +154265,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+24367, uint64(3)) == 0 { + } else if libc.Xstrncmp(tls, zPath, ts+24332, uint64(3)) == 0 { jsonParseAddNode(tls, pParse, uint32(JSON_ARRAY), uint32(0), uintptr(0)) } else { return uintptr(0) @@ -152164,11 +154278,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+24371, libc.VaList(bp, zErr)) + return Xsqlite3_mprintf(tls, ts+24336, libc.VaList(bp, zErr)) } // Do a node lookup using zPath. Return a pointer to the node on success. @@ -152179,7 +154293,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) @@ -152231,18 +154345,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+24397, + var zMsg uintptr = Xsqlite3_mprintf(tls, ts+24362, 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 @@ -152273,7 +154387,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) @@ -152290,7 +154404,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) @@ -152313,7 +154427,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 @@ -152363,7 +154477,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) @@ -152397,11 +154511,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+24440, uint32(2)) + jsonAppendRaw(tls, bp, ts+24405, uint32(2)) jsonAppendRaw(tls, bp, zPath, uint32(int32(libc.Xstrlen(tls, zPath)))) - jsonAppendRaw(tls, bp, ts+4933, uint32(2)) + jsonAppendRaw(tls, bp, ts+4968, uint32(2)) } else { - jsonAppendRaw(tls, bp, ts+24443, uint32(1+libc.Bool32(int32(*(*int8)(unsafe.Pointer(zPath))) != '['))) + jsonAppendRaw(tls, bp, ts+24408, uint32(1+libc.Bool32(int32(*(*int8)(unsafe.Pointer(zPath))) != '['))) jsonAppendRaw(tls, bp, zPath, uint32(int32(libc.Xstrlen(tls, zPath)))) jsonAppendChar(tls, bp, int8(0)) } @@ -152444,7 +154558,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+6116, uint32(4)) + jsonAppendRaw(tls, bp, ts+6151, uint32(4)) } } if i == argc { @@ -152457,7 +154571,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 @@ -152530,7 +154644,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) @@ -152562,7 +154676,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) @@ -152574,14 +154688,14 @@ func jsonObjectFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* t if argc&1 != 0 { Xsqlite3_result_error(tls, ctx, - ts+24446, -1) + ts+24411, -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+24497, -1) + Xsqlite3_result_error(tls, ctx, ts+24462, -1) jsonReset(tls, bp) return } @@ -152601,7 +154715,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) @@ -152670,7 +154784,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) @@ -152689,7 +154803,7 @@ __1: if !(argc&1 == 0) { goto __2 } - jsonWrongNumArgs(tls, ctx, ts+15262) + jsonWrongNumArgs(tls, ctx, ts+15301) return __2: ; @@ -152753,7 +154867,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) @@ -152778,9 +154892,9 @@ __1: } jsonWrongNumArgs(tls, ctx, func() uintptr { if bIsSet != 0 { - return ts + 24531 /* "set" */ + return ts + 24496 /* "set" */ } - return ts + 24535 /* "insert" */ + return ts + 24500 /* "insert" */ }()) return __2: @@ -152851,7 +154965,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 @@ -152875,7 +154989,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)) @@ -152889,7 +155003,7 @@ func jsonValidFunc(tls *libc.TLS, ctx uintptr, argc int32, argv uintptr) { /* te // 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{}))) @@ -152905,7 +155019,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 { @@ -152930,16 +155044,16 @@ func jsonArrayCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* testdata/s (*JsonString)(unsafe.Pointer(pStr)).FnUsed-- } } else { - Xsqlite3_result_text(tls, ctx, ts+24542, 2, uintptr(0)) + Xsqlite3_result_text(tls, ctx, ts+24507, 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) } @@ -152947,7 +155061,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 @@ -152989,7 +155103,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 @@ -153011,7 +155125,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 { @@ -153035,16 +155149,16 @@ func jsonObjectCompute(tls *libc.TLS, ctx uintptr, isFinal int32) { /* testdata/ (*JsonString)(unsafe.Pointer(pStr)).FnUsed-- } } else { - Xsqlite3_result_text(tls, ctx, ts+24545, 2, uintptr(0)) + Xsqlite3_result_text(tls, ctx, ts+24510, 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) } @@ -153064,16 +155178,16 @@ 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 @@ -153088,7 +155202,7 @@ func jsonEachConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv u _ = pAux rc = Xsqlite3_declare_vtab(tls, db, - ts+24548) + ts+24513) if rc == SQLITE_OK { pNew = libc.AssignPtrUintptr(ppVtab, Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Sqlite3_vtab{})))) if pNew == uintptr(0) { @@ -153101,13 +155215,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 @@ -153121,7 +155235,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)) @@ -153132,7 +155246,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) @@ -153145,7 +155259,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) @@ -153154,13 +155268,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 { @@ -153212,7 +155326,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) @@ -153231,11 +155345,11 @@ func jsonAppendObjectPathElement(tls *libc.TLS, pStr uintptr, pNode uintptr) { / nn = nn - 2 } } - jsonPrintf(tls, nn+2, pStr, ts+24631, libc.VaList(bp, nn, z)) + jsonPrintf(tls, nn+2, pStr, ts+24596, 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) @@ -153252,7 +155366,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+24637, libc.VaList(bp, *(*U32)(unsafe.Pointer(pUp + 8)))) + jsonPrintf(tls, 30, pStr, ts+24602, libc.VaList(bp, *(*U32)(unsafe.Pointer(pUp + 8)))) } else { if int32((*JsonNode)(unsafe.Pointer(pNode)).FjnFlags)&JNODE_LABEL == 0 { @@ -153263,7 +155377,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) @@ -153352,7 +155466,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+24637, libc.VaList(bp, (*JsonEachCursor)(unsafe.Pointer(p)).FiRowid)) + jsonPrintf(tls, 30, bp+8, ts+24602, libc.VaList(bp, (*JsonEachCursor)(unsafe.Pointer(p)).FiRowid)) } else if int32((*JsonEachCursor)(unsafe.Pointer(p)).FeType) == JSON_OBJECT { jsonAppendObjectPathElement(tls, bp+8, pThis) } @@ -153381,7 +155495,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 + 24642 /* "$" */ + zRoot = ts + 24607 /* "$" */ } Xsqlite3_result_text(tls, ctx, zRoot, -1, uintptr(0)) break @@ -153399,7 +155513,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 @@ -153409,7 +155523,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) @@ -153484,7 +155598,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) @@ -153513,7 +155627,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+24352, 0) + (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+24317, 0) if (*Sqlite3_vtab)(unsafe.Pointer((*Sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab)).FzErrMsg != 0 { rc = SQLITE_ERROR } @@ -153589,7 +155703,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 @@ -153603,36 +155717,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 + 24644}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24649}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24660}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24660}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24678}, - {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 + 24691}, - {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 + 24694}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24698}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24710}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24722}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24733}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24744}, - {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24756}, - {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 + 24769}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24778}, - {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24778}, - {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24788}, - {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 + 24799}, - {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 + 24816}} /* 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 + 24609}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24614}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24625}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24625}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24643}, + {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 + 24656}, + {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 + 24659}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24663}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24675}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24687}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24698}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24709}, + {FnArg: int8(-1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24721}, + {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 + 24734}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24743}, + {FnArg: int8(2), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24743}, + {FnArg: int8(1), FfuncFlags: U32(SQLITE_FUNC_BUILTIN | SQLITE_DETERMINISTIC | SQLITE_INNOCUOUS | SQLITE_FUNC_CONSTANT | SQLITE_UTF8), FxSFunc: 0, FzName: ts + 24753}, + {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 + 24764}, + {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 + 24781}} /* 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 { @@ -153648,9 +155762,9 @@ var aMod = [2]struct { FzName uintptr FpModule uintptr }{ - {FzName: ts + 24834 /* "json_each" */, FpModule: 0}, - {FzName: ts + 24844 /* "json_tree" */, FpModule: 0}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:195912:5 */ // In the SQLite core + {FzName: ts + 24799 /* "json_each" */, FpModule: 0}, + {FzName: ts + 24809 /* "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 @@ -153697,7 +155811,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 @@ -153711,7 +155825,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 @@ -153732,9 +155846,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 @@ -153742,23 +155856,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 @@ -153767,20 +155881,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 @@ -153788,17 +155902,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 @@ -153824,28 +155938,28 @@ 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(*(*U8)(unsafe.Pointer(p)))<<24 + U32(*(*U8)(unsafe.Pointer(p + 1)))<<16 + U32(*(*U8)(unsafe.Pointer(p + 2)))<<8 + U32(*(*U8)(unsafe.Pointer(p + 3)))<<0 } -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: */ return I64(U64(*(*U8)(unsafe.Pointer(p)))<<56 + U64(*(*U8)(unsafe.Pointer(p + 1)))<<48 + U64(*(*U8)(unsafe.Pointer(p + 2)))<<40 + U64(*(*U8)(unsafe.Pointer(p + 3)))<<32 + U64(*(*U8)(unsafe.Pointer(p + 4)))<<24 + U64(*(*U8)(unsafe.Pointer(p + 5)))<<16 + U64(*(*U8)(unsafe.Pointer(p + 6)))<<8 + U64(*(*U8)(unsafe.Pointer(p + 7)))<<0) } // 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: */ var i U32 // p is always 4-byte aligned @@ -153857,7 +155971,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: */ *(*U8)(unsafe.Pointer(p)) = U8(i >> 56 & int64(0xFF)) *(*U8)(unsafe.Pointer(p + 1)) = U8(i >> 48 & int64(0xFF)) *(*U8)(unsafe.Pointer(p + 2)) = U8(i >> 40 & int64(0xFF)) @@ -153870,7 +155984,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++ @@ -153878,20 +155992,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 { } @@ -153899,7 +156013,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)) @@ -153908,7 +156022,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 @@ -153923,7 +156037,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(uint64(unsafe.Sizeof(RtreeNode{}))+uint64((*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize))) if pNode != 0 { @@ -153939,7 +156053,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) @@ -153948,7 +156062,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) @@ -153980,11 +156094,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+24854, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzName)) + var zTab uintptr = Xsqlite3_mprintf(tls, ts+24819, 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+24862, iNode, 0, + rc = Xsqlite3_blob_open(tls, (*Rtree)(unsafe.Pointer(pRtree)).Fdb, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, zTab, ts+24827, iNode, 0, pRtree+112) Xsqlite3_free(tls, zTab) } @@ -154058,7 +156172,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)) @@ -154069,7 +156183,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) @@ -154082,7 +156196,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 @@ -154099,7 +156213,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 @@ -154123,7 +156237,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 { @@ -154149,19 +156263,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 @@ -154177,23 +156291,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) @@ -154215,13 +156329,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) @@ -154229,7 +156343,7 @@ func rtreeDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite-amalg var rc int32 var zCreate uintptr = Xsqlite3_mprintf(tls, - ts+24867, + ts+24832, 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)) @@ -154248,7 +156362,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 @@ -154266,7 +156380,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 @@ -154296,7 +156410,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 @@ -154312,7 +156426,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) } @@ -154329,7 +156443,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) @@ -154441,7 +156555,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) @@ -154543,7 +156657,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) @@ -154599,7 +156713,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) @@ -154615,7 +156729,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) @@ -154634,7 +156748,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 } @@ -154651,7 +156765,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)) @@ -154671,7 +156785,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 } @@ -154682,7 +156796,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) @@ -154699,7 +156813,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 @@ -154733,7 +156847,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) @@ -154769,7 +156883,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 @@ -154817,7 +156931,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) @@ -154910,7 +157024,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 @@ -154926,7 +157040,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) @@ -154941,7 +157055,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) @@ -155002,7 +157116,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) @@ -155023,12 +157137,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+24949) + pSrc = Xsqlite3_value_pointer(tls, pValue, ts+24914) if pSrc == uintptr(0) { return SQLITE_ERROR } @@ -155055,7 +157169,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) @@ -155198,7 +157312,7 @@ func rtreeFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt // 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) @@ -155293,7 +157407,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+3598, libc.VaList(bp, bp+8))) { + if iIdx > 0 && uintptr(0) == libc.AssignPtrUintptr(pIdxInfo+48, Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp, bp+8))) { return SQLITE_NOMEM } @@ -155305,7 +157419,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 { @@ -155348,7 +157462,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 { @@ -155369,7 +157483,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) { @@ -155408,7 +157522,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 { @@ -155423,7 +157537,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) @@ -155436,7 +157550,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++ { @@ -155511,7 +157625,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) @@ -155567,7 +157681,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) @@ -155603,7 +157717,7 @@ func sAdjustTree(tls *libc.TLS, pRtree uintptr, pNode uintptr, pCell uintptr) in } // Write mapping (iRowid->iNode) to the _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) @@ -155611,7 +157725,7 @@ func rowidWrite(tls *libc.TLS, pRtree uintptr, iRowid Sqlite3_int64, iNode Sqlit } // Write mapping (iNode->iPar) to the _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) @@ -155633,7 +157747,7 @@ func parentWrite(tls *libc.TLS, pRtree uintptr, iNode Sqlite3_int64, iPar Sqlite // // 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 @@ -155681,7 +157795,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 @@ -155737,7 +157851,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) @@ -155836,7 +157950,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 { @@ -155870,7 +157984,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) @@ -156105,7 +158219,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) { @@ -156140,7 +158254,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) @@ -156190,7 +158304,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) @@ -156221,7 +158335,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 @@ -156250,7 +158364,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) @@ -156365,7 +158479,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) @@ -156395,7 +158509,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) @@ -156426,7 +158540,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) @@ -156437,7 +158551,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) @@ -156526,7 +158640,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 { @@ -156540,7 +158654,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 { @@ -156565,7 +158679,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) @@ -156573,7 +158687,7 @@ func rtreeConstraintError(tls *libc.TLS, pRtree uintptr, iCol int32) int32 { /* var zSql uintptr var rc int32 - zSql = Xsqlite3_mprintf(tls, ts+24963, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, (*Rtree)(unsafe.Pointer(pRtree)).FzName)) + zSql = Xsqlite3_mprintf(tls, ts+24928, 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 { @@ -156585,12 +158699,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+24983, libc.VaList(bp+16, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol)) + ts+24948, 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+25015, libc.VaList(bp+32, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2)) + ts+24980, libc.VaList(bp+32, (*Rtree)(unsafe.Pointer(pRtree)).FzName, zCol1, zCol2)) } } @@ -156604,7 +158718,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) @@ -156833,7 +158947,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++ @@ -156842,7 +158956,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) @@ -156850,7 +158964,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) @@ -156858,7 +158972,7 @@ func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* test var rc int32 = SQLITE_NOMEM var zSql uintptr = Xsqlite3_mprintf(tls, - ts+25052, 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+25017, 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)) @@ -156879,7 +158993,7 @@ func rtreeRename(tls *libc.TLS, pVtab uintptr, zNewName uintptr) int32 { /* test // INSERT INTO rtree... // DROP TABLE ; -- Would fail with SQLITE_LOCKED // COMMIT; -func rtreeSavepoint(tls *libc.TLS, pVtab uintptr, iSavepoint int32) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199345:12: */ +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 @@ -156892,11 +159006,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 + 25197 /* "SELECT stat FROM..." */ + var zFmt uintptr = ts + 25162 /* "SELECT stat FROM..." */ var zSql uintptr // var p uintptr at bp+16, 8 @@ -156904,7 +159018,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+11217, uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0), uintptr(0)) + db, (*Rtree)(unsafe.Pointer(pRtree)).FzDb, ts+11256, 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 { @@ -156936,7 +159050,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 { @@ -156947,8 +159061,8 @@ func rtreeShadowName(tls *libc.TLS, zName uintptr) int32 { /* testdata/sqlite-am } var azName1 = [3]uintptr{ - ts + 25253, ts + 4995, ts + 16158, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199395:21 */ + ts + 25218, ts + 5030, ts + 16188, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:201517:21 */ var rtreeModule = Sqlite3_module{ FiVersion: 3, // iVersion @@ -156972,9 +159086,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) @@ -156991,19 +159105,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+25258, + ts+25223, libc.VaList(bp, zDb, zPrefix)) for ii = 0; ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnAux); ii++ { - Xsqlite3_str_appendf(tls, p, ts+25320, libc.VaList(bp+16, ii)) + Xsqlite3_str_appendf(tls, p, ts+25285, libc.VaList(bp+16, ii)) } Xsqlite3_str_appendf(tls, p, - ts+25325, + ts+25290, libc.VaList(bp+24, zDb, zPrefix)) Xsqlite3_str_appendf(tls, p, - ts+25389, + ts+25354, libc.VaList(bp+40, zDb, zPrefix)) Xsqlite3_str_appendf(tls, p, - ts+25459, + ts+25424, libc.VaList(bp+56, zDb, zPrefix, (*Rtree)(unsafe.Pointer(pRtree)).FiNodeSize)) zCreate = Xsqlite3_str_finish(tls, p) if !(zCreate != 0) { @@ -157034,7 +159148,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 + 25508 /* "INSERT INTO\"%w\"...." */ + zFormat = ts + 25473 /* "INSERT INTO\"%w\"...." */ } zSql = Xsqlite3_mprintf(tls, zFormat, libc.VaList(bp+80, zDb, zPrefix)) if zSql != 0 { @@ -157046,7 +159160,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+25616, + ts+25581, libc.VaList(bp+96, zDb, zPrefix)) if (*Rtree)(unsafe.Pointer(pRtree)).FzReadAuxSql == uintptr(0) { rc = SQLITE_NOMEM @@ -157054,18 +159168,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+25661, libc.VaList(bp+112, zDb, zPrefix)) + Xsqlite3_str_appendf(tls, p, ts+25626, 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+12688, 1) + Xsqlite3_str_append(tls, p, ts+12727, 1) } if ii < int32((*Rtree)(unsafe.Pointer(pRtree)).FnAuxNotNull) { - Xsqlite3_str_appendf(tls, p, ts+25688, libc.VaList(bp+128, ii, ii+2, ii)) + Xsqlite3_str_appendf(tls, p, ts+25653, libc.VaList(bp+128, ii, ii+2, ii)) } else { - Xsqlite3_str_appendf(tls, p, ts+25710, libc.VaList(bp+152, ii, ii+2)) + Xsqlite3_str_appendf(tls, p, ts+25675, libc.VaList(bp+152, ii, ii+2)) } } - Xsqlite3_str_appendf(tls, p, ts+25718, 0) + Xsqlite3_str_appendf(tls, p, ts+25683, 0) zSql = Xsqlite3_str_finish(tls, p) if zSql == uintptr(0) { rc = SQLITE_NOMEM @@ -157081,24 +159195,24 @@ func rtreeSqlInit(tls *libc.TLS, pRtree uintptr, db uintptr, zDb uintptr, zPrefi var azSql = [8]uintptr{ - ts + 25734, - ts + 25787, + ts + 25699, + ts + 25752, - ts + 25832, - ts + 25884, - ts + 25938, + ts + 25797, + ts + 25849, + ts + 25903, - ts + 25983, - ts + 26041, - ts + 26096, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199442:21 */ + ts + 25948, + ts + 26006, + ts + 26061, +} /* 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) @@ -157129,7 +159243,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) @@ -157137,7 +159251,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+26143, libc.VaList(bp, (*Rtree)(unsafe.Pointer(pRtree)).FzDb)) + zSql = Xsqlite3_mprintf(tls, ts+26108, 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 @@ -157145,19 +159259,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+3598, libc.VaList(bp+8, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp+8, Xsqlite3_errmsg(tls, db))) } } else { zSql = Xsqlite3_mprintf(tls, - ts+26163, + ts+26128, 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+3598, libc.VaList(bp+32, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3633, 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+26220, + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+26185, libc.VaList(bp+40, (*Rtree)(unsafe.Pointer(pRtree)).FzName)) } } @@ -157167,7 +159281,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) @@ -157182,7 +159296,7 @@ func rtreeTokenLength(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalg // 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: */ +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) @@ -157208,17 +159322,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 + 26255, + ts + 26220, + ts + 26263, ts + 26298, - ts + 26333, - ts + 26369, + ts + 26334, } // 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+3598, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(2+libc.Bool32(argc >= 6))*8)))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(2+libc.Bool32(argc >= 6))*8)))) return SQLITE_ERROR __1: ; @@ -157248,7 +159362,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+26406, + Xsqlite3_str_appendf(tls, pSql, ts+26371, libc.VaList(bp+16, rtreeTokenLength(tls, *(*uintptr)(unsafe.Pointer(argv + 3*8))), *(*uintptr)(unsafe.Pointer(argv + 3*8)))) ii = 4 __3: @@ -157260,7 +159374,7 @@ __3: goto __6 } (*Rtree)(unsafe.Pointer(pRtree)).FnAux++ - Xsqlite3_str_appendf(tls, pSql, ts+26430, libc.VaList(bp+32, rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1))) + Xsqlite3_str_appendf(tls, pSql, ts+26395, libc.VaList(bp+32, rtreeTokenLength(tls, zArg+uintptr(1)), zArg+uintptr(1))) goto __7 __6: if !(int32((*Rtree)(unsafe.Pointer(pRtree)).FnAux) > 0) { @@ -157283,7 +159397,7 @@ __4: goto __5 __5: ; - Xsqlite3_str_appendf(tls, pSql, ts+26436, 0) + Xsqlite3_str_appendf(tls, pSql, ts+26401, 0) zSql = Xsqlite3_str_finish(tls, pSql) if !!(zSql != 0) { goto __10 @@ -157294,14 +159408,14 @@ __10: if !(ii < argc) { goto __12 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3598, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer(bp + 96 + 4*8)))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3633, 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+3598, libc.VaList(bp+72, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp+72, Xsqlite3_errmsg(tls, db))) __14: ; __13: @@ -157344,7 +159458,7 @@ __17: if !(iErr != 0) { goto __22 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3598, libc.VaList(bp+80, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(iErr)*8)))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp+80, *(*uintptr)(unsafe.Pointer(bp + 96 + uintptr(iErr)*8)))) goto rtreeInit_fail __22: ; @@ -157362,7 +159476,7 @@ __23: if !(rc != 0) { goto __24 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3598, libc.VaList(bp+88, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp+88, Xsqlite3_errmsg(tls, db))) goto rtreeInit_fail __24: ; @@ -157382,7 +159496,7 @@ __25: return rc } -var azFormat = [2]uintptr{ts + 26439, ts + 26450} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:199718:25 */ +var azFormat = [2]uintptr{ts + 26404, ts + 26415} /* 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. @@ -157398,7 +159512,7 @@ var azFormat = [2]uintptr{ts + 26439, ts + 26450} /* testdata/sqlite-amalgamatio // entry for each cell in the r-tree node. Each entry is itself a // list, containing the 8-byte rowid/pageno followed by the // *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) @@ -157440,13 +159554,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+10789, 1) + Xsqlite3_str_append(tls, pOut, ts+10828, 1) } - Xsqlite3_str_appendf(tls, pOut, ts+26460, libc.VaList(bp, (*RtreeCell)(unsafe.Pointer(bp+1024 /* &cell */)).FiRowid)) + Xsqlite3_str_appendf(tls, pOut, ts+26425, 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+26466, libc.VaList(bp+8, float64(*(*RtreeValue)(unsafe.Pointer(bp + 1024 + 8 + uintptr(jj)*4))))) + Xsqlite3_str_appendf(tls, pOut, ts+26431, libc.VaList(bp+8, float64(*(*RtreeValue)(unsafe.Pointer(bp + 1024 + 8 + uintptr(jj)*4))))) } - Xsqlite3_str_append(tls, pOut, ts+26470, 1) + Xsqlite3_str_append(tls, pOut, ts+26435, 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}))) @@ -157461,11 +159575,11 @@ func rtreenode(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* testd // 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+26472, -1) + Xsqlite3_result_error(tls, ctx, ts+26437, -1) } else { var zBlob uintptr = Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(apArg))) if zBlob != 0 { @@ -157493,15 +159607,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 @@ -157514,7 +159628,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) @@ -157542,7 +159656,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) @@ -157554,10 +159668,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+26505, + (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport = Xsqlite3_mprintf(tls, ts+26470, libc.VaList(bp, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport, func() uintptr { if (*RtreeCheck)(unsafe.Pointer(pCheck)).FzReport != 0 { - return ts + 3997 /* "\n" */ + return ts + 4032 /* "\n" */ } return ts + 1518 /* "" */ }(), z)) @@ -157582,7 +159696,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) @@ -157590,7 +159704,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+26512, + ts+26477, libc.VaList(bp, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzDb, (*RtreeCheck)(unsafe.Pointer(pCheck)).FzTab)) } @@ -157609,7 +159723,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+26557, libc.VaList(bp+16, iNode)) + rtreeCheckAppendMsg(tls, pCheck, ts+26522, libc.VaList(bp+16, iNode)) } } @@ -157626,15 +159740,15 @@ func rtreeCheckGetNode(tls *libc.TLS, pCheck uintptr, iNode I64, pnNode uintptr) // 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 + 26589, - ts + 26643, + ts + 26554, + ts + 26608, } if *(*uintptr)(unsafe.Pointer(pCheck + 40 + uintptr(bLeaf)*8)) == uintptr(0) { @@ -157649,23 +159763,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+26691, + rtreeCheckAppendMsg(tls, pCheck, ts+26656, libc.VaList(bp+16, iKey, iVal, func() uintptr { if bLeaf != 0 { - return ts + 26736 /* "%_rowid" */ + return ts + 26701 /* "%_rowid" */ } - return ts + 26744 /* "%_parent" */ + return ts + 26709 /* "%_parent" */ }())) } else if rc == SQLITE_ROW { var ii I64 = Xsqlite3_column_int64(tls, pStmt, 0) if ii != iVal { rtreeCheckAppendMsg(tls, pCheck, - ts+26753, + ts+26718, libc.VaList(bp+40, iKey, ii, func() uintptr { if bLeaf != 0 { - return ts + 26736 /* "%_rowid" */ + return ts + 26701 /* "%_rowid" */ } - return ts + 26744 /* "%_parent" */ + return ts + 26709 /* "%_parent" */ }(), iKey, iVal)) } } @@ -157682,7 +159796,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) @@ -157708,7 +159822,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+26811, libc.VaList(bp, i, iCell, iNode)) + ts+26776, libc.VaList(bp, i, iCell, iNode)) } if pParent != 0 { @@ -157728,7 +159842,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+26859, libc.VaList(bp+24, i, iCell, iNode)) + ts+26824, libc.VaList(bp+24, i, iCell, iNode)) } } } @@ -157740,7 +159854,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) @@ -157751,14 +159865,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+26926, libc.VaList(bp, iNode, *(*int32)(unsafe.Pointer(bp + 48 /* nNode */)))) + ts+26891, 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+26960, libc.VaList(bp+16, iDepth)) + rtreeCheckAppendMsg(tls, pCheck, ts+26925, libc.VaList(bp+16, iDepth)) Xsqlite3_free(tls, aNode) return } @@ -157766,7 +159880,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+26990, + ts+26955, libc.VaList(bp+24, iNode, nCell, *(*int32)(unsafe.Pointer(bp + 48 /* nNode */)))) } else { for i = 0; i < nCell; i++ { @@ -157794,20 +159908,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+27045, + pCount = rtreeCheckPrepare(tls, pCheck, ts+27010, 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+27076, libc.VaList(bp+24, zTbl, nExpect, nActual)) + ts+27041, libc.VaList(bp+24, zTbl, nExpect, nActual)) } } (*RtreeCheck)(unsafe.Pointer(pCheck)).Frc = Xsqlite3_finalize(tls, pCount) @@ -157817,7 +159931,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) @@ -157837,13 +159951,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+14424, uintptr(0), uintptr(0), uintptr(0)) + (*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).Frc = Xsqlite3_exec(tls, db, ts+14463, 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+27143, libc.VaList(bp, zDb, zTab)) + pStmt = rtreeCheckPrepare(tls, bp+32, ts+27108, libc.VaList(bp, zDb, zTab)) if pStmt != 0 { nAux = Xsqlite3_column_count(tls, pStmt) - 2 Xsqlite3_finalize(tls, pStmt) @@ -157853,12 +159967,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+24963, libc.VaList(bp+16, zDb, zTab)) + pStmt = rtreeCheckPrepare(tls, bp+32, ts+24928, 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+27171, 0) + rtreeCheckAppendMsg(tls, bp+32, ts+27136, 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) } @@ -157873,8 +159987,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+27202, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnLeaf)) - rtreeCheckCount(tls, bp+32, ts+27209, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnNonLeaf)) + rtreeCheckCount(tls, bp+32, ts+27167, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnLeaf)) + rtreeCheckCount(tls, bp+32, ts+27174, int64((*RtreeCheck)(unsafe.Pointer(bp+32 /* &check */)).FnNonLeaf)) } // Finalize SQL statements used by the integrity-check @@ -157884,7 +159998,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+27217, uintptr(0), uintptr(0), uintptr(0)) + var rc int32 = Xsqlite3_exec(tls, db, ts+27182, uintptr(0), uintptr(0), uintptr(0)) if (*RtreeCheck)(unsafe.Pointer(bp+32)).Frc == SQLITE_OK { (*RtreeCheck)(unsafe.Pointer(bp + 32 /* &check */)).Frc = rc } @@ -157924,13 +160038,13 @@ func rtreeCheckTable(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, pzRep // 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: */ +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+27221, -1) + ts+27186, -1) } else { var rc int32 *(*uintptr)(unsafe.Pointer(bp /* zReport */)) = uintptr(0) @@ -157938,7 +160052,7 @@ func rtreecheck(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test var zTab uintptr if nArg == 1 { zTab = zDb - zDb = ts + 6316 /* "main" */ + zDb = ts + 6351 /* "main" */ } else { zTab = Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apArg + 1*8))) } @@ -157948,7 +160062,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 + 17795 /* "ok" */ + return ts + 17825 /* "ok" */ }(), -1, libc.UintptrFromInt32(-1)) } else { Xsqlite3_result_error_code(tls, ctx, rc) @@ -157987,7 +160101,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. // @@ -158013,7 +160127,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. // @@ -158035,7 +160149,7 @@ type GeoPoly1 = struct { // 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. @@ -158052,7 +160166,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. @@ -158062,10 +160176,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 @@ -158075,7 +160189,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++ } @@ -158084,7 +160198,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) @@ -158156,7 +160270,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) @@ -158298,7 +160412,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) @@ -158367,7 +160481,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, @@ -158380,7 +160494,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) @@ -158389,11 +160503,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+27272, 1) + Xsqlite3_str_append(tls, x, ts+27237, 1) for i = 0; i < (*GeoPoly)(unsafe.Pointer(p)).FnVertex; i++ { - Xsqlite3_str_appendf(tls, x, ts+27274, 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+27239, 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+27285, libc.VaList(bp+16, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4))))) + Xsqlite3_str_appendf(tls, x, ts+27250, 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) } @@ -158403,7 +160517,7 @@ func geopolyJsonFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { // // Interpret X as a polygon and render it as a SVG . // Additional arguments are added as attributes to the . -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) @@ -158417,19 +160531,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+27296, 0) + Xsqlite3_str_appendf(tls, x, ts+27261, 0) for i = 0; i < (*GeoPoly)(unsafe.Pointer(p)).FnVertex; i++ { - Xsqlite3_str_appendf(tls, x, ts+27314, 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+27279, 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+27322, libc.VaList(bp+24, float64(*(*GeoCoord)(unsafe.Pointer(p + 8))), float64(*(*GeoCoord)(unsafe.Pointer(p + 8 + 1*4))))) + Xsqlite3_str_appendf(tls, x, ts+27287, 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+27330, libc.VaList(bp+40, z)) + Xsqlite3_str_appendf(tls, x, ts+27295, libc.VaList(bp+40, z)) } } - Xsqlite3_str_appendf(tls, x, ts+27334, 0) + Xsqlite3_str_appendf(tls, x, ts+27299, 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) } @@ -158449,7 +160563,7 @@ func geopolySvgFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { // 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: */ +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))) @@ -158482,7 +160596,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++ { @@ -158502,7 +160616,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)) @@ -158521,7 +160635,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 { @@ -158557,7 +160671,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 @@ -158577,7 +160691,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) @@ -158622,7 +160736,7 @@ func geopolyRegularFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr // // 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) @@ -158763,7 +160877,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, @@ -158776,13 +160890,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) @@ -158816,7 +160930,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) @@ -158843,7 +160957,7 @@ func geopolyBBoxFinal(tls *libc.TLS, context uintptr) { /* testdata/sqlite-amalg // // 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 @@ -158884,7 +160998,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))) @@ -158922,7 +161036,7 @@ func geopolyContainsPointFunc(tls *libc.TLS, context uintptr, argc int32, argv u // 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 { @@ -158954,10 +161068,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 @@ -158968,20 +161082,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 { @@ -159015,7 +161129,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++ { @@ -159027,7 +161141,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) @@ -159057,7 +161171,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) @@ -159087,7 +161201,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) @@ -159122,7 +161236,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) @@ -159152,7 +161266,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) @@ -159388,7 +161502,7 @@ geopolyOverlapDone: // 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: */ +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 { @@ -159404,7 +161518,7 @@ 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 @@ -159414,7 +161528,7 @@ func geopolyDebugFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) // 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: */ +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) @@ -159454,7 +161568,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+27347, 0) + Xsqlite3_str_appendf(tls, pSql, ts+27312, 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 @@ -159463,7 +161577,7 @@ __2: goto __4 } (*Rtree)(unsafe.Pointer(pRtree)).FnAux++ - Xsqlite3_str_appendf(tls, pSql, ts+27369, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8)))) + Xsqlite3_str_appendf(tls, pSql, ts+27334, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(ii)*8)))) goto __3 __3: ii++ @@ -159471,7 +161585,7 @@ __3: goto __4 __4: ; - Xsqlite3_str_appendf(tls, pSql, ts+26436, 0) + Xsqlite3_str_appendf(tls, pSql, ts+26401, 0) zSql = Xsqlite3_str_finish(tls, pSql) if !!(zSql != 0) { goto __5 @@ -159482,7 +161596,7 @@ __5: if !(SQLITE_OK != libc.AssignInt32(&rc, Xsqlite3_declare_vtab(tls, db, zSql))) { goto __7 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3598, libc.VaList(bp+16, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp+16, Xsqlite3_errmsg(tls, db))) __7: ; __6: @@ -159508,7 +161622,7 @@ __9: if !(rc != 0) { goto __10 } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3598, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp+24, Xsqlite3_errmsg(tls, db))) goto geopolyInit_fail __10: ; @@ -159529,12 +161643,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) } @@ -159548,7 +161662,7 @@ func geopolyConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv ui // 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: */ +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) @@ -159715,7 +161829,7 @@ geopoly_filter_end: // 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: */ +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 @@ -159741,7 +161855,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 + 16158 /* "rowid" */ + (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 16188 /* "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 @@ -159751,7 +161865,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 + 27373 /* "rtree" */ + (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 27338 /* "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 @@ -159759,14 +161873,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 + 27379 /* "fullscan" */ + (*Sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = ts + 27344 /* "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) @@ -159831,7 +161945,7 @@ func geopolyColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* // 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: */ +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) @@ -159898,7 +162012,7 @@ __1: if !(*(*int32)(unsafe.Pointer(bp + 48)) == SQLITE_ERROR) { goto __4 } - (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+27388, 0) + (*Sqlite3_vtab)(unsafe.Pointer(pVtab)).FzErrMsg = Xsqlite3_mprintf(tls, ts+27353, 0) __4: ; goto geopoly_update_end @@ -160042,15 +162156,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+27428) == 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+27393) == 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+27444) == 0 { + if Xsqlite3_stricmp(tls, zName, ts+27409) == 0 { *(*uintptr)(unsafe.Pointer(pxFunc)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{geopolyWithinFunc})) @@ -160083,9 +162197,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 { @@ -160115,7 +162229,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+27459, uintptr(unsafe.Pointer(&geopolyModule)), uintptr(0), uintptr(0)) + rc = Xsqlite3_create_module_v2(tls, db, ts+27424, uintptr(unsafe.Pointer(&geopolyModule)), uintptr(0), uintptr(0)) } return rc } @@ -160127,26 +162241,26 @@ var aFunc = [12]struct { F__ccgo_pad1 [6]byte FzName uintptr }{ - {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27467 /* "geopoly_area" */}, - {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27480 /* "geopoly_blob" */}, - {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27493 /* "geopoly_json" */}, - {FxFunc: 0, FnArg: int8(-1), FbPure: uint8(1), FzName: ts + 27506 /* "geopoly_svg" */}, - {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27444 /* "geopoly_within" */}, - {FxFunc: 0, FnArg: int8(3), FbPure: uint8(1), FzName: ts + 27518 /* "geopoly_contains..." */}, - {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27428 /* "geopoly_overlap" */}, - {FxFunc: 0, FnArg: int8(1), FzName: ts + 27541 /* "geopoly_debug" */}, - {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27555 /* "geopoly_bbox" */}, - {FxFunc: 0, FnArg: int8(7), FbPure: uint8(1), FzName: ts + 27568 /* "geopoly_xform" */}, - {FxFunc: 0, FnArg: int8(4), FbPure: uint8(1), FzName: ts + 27582 /* "geopoly_regular" */}, - {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27598 /* "geopoly_ccw" */}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202101:5 */ + {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27432 /* "geopoly_area" */}, + {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27445 /* "geopoly_blob" */}, + {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27458 /* "geopoly_json" */}, + {FxFunc: 0, FnArg: int8(-1), FbPure: uint8(1), FzName: ts + 27471 /* "geopoly_svg" */}, + {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27409 /* "geopoly_within" */}, + {FxFunc: 0, FnArg: int8(3), FbPure: uint8(1), FzName: ts + 27483 /* "geopoly_contains..." */}, + {FxFunc: 0, FnArg: int8(2), FbPure: uint8(1), FzName: ts + 27393 /* "geopoly_overlap" */}, + {FxFunc: 0, FnArg: int8(1), FzName: ts + 27506 /* "geopoly_debug" */}, + {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27520 /* "geopoly_bbox" */}, + {FxFunc: 0, FnArg: int8(7), FbPure: uint8(1), FzName: ts + 27533 /* "geopoly_xform" */}, + {FxFunc: 0, FnArg: int8(4), FbPure: uint8(1), FzName: ts + 27547 /* "geopoly_regular" */}, + {FxFunc: 0, FnArg: int8(1), FbPure: uint8(1), FzName: ts + 27563 /* "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 + 27610 /* "geopoly_group_bb..." */}, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:202119:5 */ + {FxStep: 0, FxFinal: 0, FzName: ts + 27575 /* "geopoly_group_bb..." */}, +} /* testdata/sqlite-amalgamation-3390200/sqlite3.c:204241:5 */ //************* End of geopoly.c ******************************************** //************* Continuing where we left off in rtree.c ********************* @@ -160154,30 +162268,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+27629, 2, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + rc = Xsqlite3_create_function(tls, db, ts+27594, 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+27639, 1, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + rc = Xsqlite3_create_function(tls, db, ts+27604, 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+27650, -1, utf8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + rc = Xsqlite3_create_function(tls, db, ts+27615, -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+27373, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0)) + rc = Xsqlite3_create_module_v2(tls, db, ts+27338, 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+27661, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0)) + rc = Xsqlite3_create_module_v2(tls, db, ts+27626, uintptr(unsafe.Pointer(&rtreeModule)), c, uintptr(0)) } if rc == SQLITE_OK { rc = sqlite3_geopoly_init(tls, db) @@ -160191,7 +162305,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) @@ -160200,7 +162314,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++ { @@ -160221,7 +162335,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 @@ -160249,13 +162363,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+24949, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{rtreeMatchArgFree}))) + Xsqlite3_result_pointer(tls, ctx, pBlob, ts+24914, *(*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. @@ -160275,7 +162389,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. @@ -160731,7 +162845,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 ******************************************** @@ -161132,7 +163246,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 **************** @@ -161197,7 +163311,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 **************** @@ -161259,7 +163373,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 @@ -161291,9 +163405,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 @@ -161308,16 +163422,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 @@ -161325,9 +163439,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 @@ -161346,16 +163460,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. @@ -161374,7 +163488,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)) @@ -161397,7 +163511,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. // @@ -161417,7 +163531,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 @@ -161507,7 +163621,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 @@ -161532,7 +163646,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 @@ -161549,7 +163663,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+27671, -1) + Xsqlite3_result_error(tls, context, ts+27636, -1) return } @@ -161560,7 +163674,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+27671, -1) + Xsqlite3_result_error(tls, context, ts+27636, -1) } else { Xsqlite3_result_blob(tls, context, aOut, nOut, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{Xsqlite3_free}))) } @@ -161575,13 +163689,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+3598, libc.VaList(bp, Xsqlite3_errmsg(tls, db))) + *(*uintptr)(unsafe.Pointer(pzErrmsg)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp, Xsqlite3_errmsg(tls, db))) *(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0) } return rc @@ -161593,13 +163707,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+3598, libc.VaList(bp, Xsqlite3_errmsg(tls, Xsqlite3_db_handle(tls, pStmt)))) + *(*uintptr)(unsafe.Pointer(pzErrmsg)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp, Xsqlite3_errmsg(tls, Xsqlite3_db_handle(tls, pStmt)))) } return rc } @@ -161617,7 +163731,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) { @@ -161632,7 +163746,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))) @@ -161650,7 +163764,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) @@ -161680,7 +163794,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) @@ -161694,7 +163808,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 { @@ -161703,7 +163817,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+27692, uintptr(0), uintptr(0), p+64) + ts+27657, uintptr(0), uintptr(0), p+64) } if rc == SQLITE_OK { @@ -161775,7 +163889,7 @@ func rbuObjIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testdata // // 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 @@ -161787,7 +163901,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+24862, zIn, uint64(4)) == 0 { + if libc.Xstrlen(tls, zIn) > uint64(4) && libc.Xmemcmp(tls, ts+24827, 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++ { } @@ -161805,7 +163919,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) @@ -161815,9 +163929,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+27863, libc.VaList(bp, func() uintptr { + ts+27828, libc.VaList(bp, func() uintptr { if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - return ts + 28013 /* "AND rootpage!=0 ..." */ + return ts + 27978 /* "AND rootpage!=0 ..." */ } return ts + 1518 /* "" */ }()))) @@ -161825,7 +163939,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+28054) + ts+28019) } (*RbuObjIter)(unsafe.Pointer(pIter)).FbCleanup = 1 @@ -161840,7 +163954,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 @@ -161866,7 +163980,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 @@ -161892,7 +164006,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 { @@ -161909,7 +164023,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 @@ -161932,7 +164046,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 { @@ -161955,7 +164069,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) @@ -161963,7 +164077,7 @@ 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+3598, libc.VaList(bp, Xsqlite3_errmsg(tls, db))) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp, Xsqlite3_errmsg(tls, db))) } } @@ -162005,7 +164119,7 @@ func rbuFinalize(tls *libc.TLS, p uintptr, pStmt uintptr) { /* testdata/sqlite-a // }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: */ +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) @@ -162026,7 +164140,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+28179, libc.VaList(bp, zTab))) + ts+28144, libc.VaList(bp, zTab))) if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc != SQLITE_OK || Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 32))) != SQLITE_ROW) { goto __1 } @@ -162044,7 +164158,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+28298, libc.VaList(bp+8, zTab))) + Xsqlite3_mprintf(tls, ts+28263, libc.VaList(bp+8, zTab))) if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc != 0) { goto __3 } @@ -162062,7 +164176,7 @@ __4: } (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32+2*8, p+64, Xsqlite3_mprintf(tls, - ts+28319, libc.VaList(bp+16, zIdx))) + ts+28284, libc.VaList(bp+16, zIdx))) if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK) { goto __7 } @@ -162086,7 +164200,7 @@ __5: ; (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+32+3*8, p+64, - Xsqlite3_mprintf(tls, ts+28370, libc.VaList(bp+24, zTab))) + Xsqlite3_mprintf(tls, ts+28335, libc.VaList(bp+24, zTab))) if !((*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK) { goto __10 } @@ -162121,11 +164235,12 @@ __15: goto __14 goto __16 __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) @@ -162135,7 +164250,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+28391, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) + Xsqlite3_mprintf(tls, ts+28356, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) } (*RbuObjIter)(unsafe.Pointer(pIter)).FnIndex = 0 @@ -162150,7 +164265,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+28419, libc.VaList(bp+8, zIdx))) + Xsqlite3_mprintf(tls, ts+28384, 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 { @@ -162183,7 +164298,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) @@ -162200,7 +164315,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+19345, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+19285, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl)) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc != 0 { return (*Sqlite3rbu)(unsafe.Pointer(p)).Frc @@ -162213,18 +164328,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+28448, libc.VaList(bp+8, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl))) + Xsqlite3_mprintf(tls, ts+28413, 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+28467, zName, 4) != 0 { + if Xsqlite3_strnicmp(tls, ts+28432, 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+28472, zName) { + } else if 0 == Xsqlite3_stricmp(tls, ts+28437, zName) { bRbuRowid = 1 } } @@ -162236,12 +164351,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+28482, libc.VaList(bp+16, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, + ts+28447, libc.VaList(bp+16, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr { if bRbuRowid != 0 { - return ts + 28511 /* "may not have" */ + return ts + 28476 /* "may not have" */ } - return ts + 28524 /* "requires" */ + return ts + 28489 /* "requires" */ }())) } @@ -162250,7 +164365,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+28533, libc.VaList(bp+32, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) + Xsqlite3_mprintf(tls, ts+28498, 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) @@ -162264,7 +164379,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+28555, + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+28520, 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) @@ -162305,7 +164420,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) @@ -162314,8 +164429,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+28582, libc.VaList(bp, zList, zSep, z)) - zSep = ts + 14535 /* ", " */ + zList = rbuMPrintf(tls, p, ts+28547, libc.VaList(bp, zList, zSep, z)) + zSep = ts + 14574 /* ", " */ } return zList } @@ -162324,7 +164439,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) @@ -162336,7 +164451,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+28591, libc.VaList(bp, zRet, zSep, zPre, zCol, zPost)) + zRet = rbuMPrintf(tls, p, ts+28556, libc.VaList(bp, zRet, zSep, zPre, zCol, zPost)) zSep = zSeparator break } @@ -162366,7 +164481,7 @@ func rbuObjIterGetPkList(tls *libc.TLS, p uintptr, pIter uintptr, zPre uintptr, // // 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) @@ -162375,25 +164490,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+28604, libc.VaList(bp, zWrite, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) + ts+28569, 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+28636, libc.VaList(bp+16, iMax)) + zRet = rbuMPrintf(tls, p, ts+28601, libc.VaList(bp+16, iMax)) } rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */))) } else { - var zOrder uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1518, ts+14535, ts+28659) - var zSelect uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+28665, ts+28672, ts+4892) - var zList uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1518, ts+14535, ts+1518) + var zOrder uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1518, ts+14574, ts+28624) + var zSelect uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+28630, ts+28637, ts+4927) + var zList uintptr = rbuObjIterGetPkList(tls, p, pIter, ts+1518, ts+14574, ts+1518) 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+28680, + ts+28645, 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+28722, libc.VaList(bp+56, zList, zVal)) + zRet = rbuMPrintf(tls, p, ts+28687, libc.VaList(bp+56, zList, zVal)) } rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 72 /* pMax */))) } @@ -162425,7 +164540,7 @@ func rbuVacuumTableStart(tls *libc.TLS, p uintptr, pIter uintptr, bRowid int32, // 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) @@ -162456,7 +164571,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+28419, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx))) + Xsqlite3_mprintf(tls, ts+28384, 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 @@ -162493,7 +164608,7 @@ __10: zCol = *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)) goto __7 __6: - zCol = ts + 28742 /* "_rowid_" */ + zCol = ts + 28707 /* "_rowid_" */ __7: ; goto __5 @@ -162502,13 +164617,13 @@ __4: __5: ; - zLhs = rbuMPrintf(tls, p, ts+28750, + zLhs = rbuMPrintf(tls, p, ts+28715, libc.VaList(bp+8, zLhs, zSep, zCol, zCollate)) - zOrder = rbuMPrintf(tls, p, ts+28771, + zOrder = rbuMPrintf(tls, p, ts+28736, libc.VaList(bp+40, zOrder, zSep, iCol, zCol, zCollate)) - zSelect = rbuMPrintf(tls, p, ts+28807, + zSelect = rbuMPrintf(tls, p, ts+28772, libc.VaList(bp+80, zSelect, zSep, iCol, zCol)) - zSep = ts + 14535 /* ", " */ + zSep = ts + 14574 /* ", " */ iCol++ goto __1 __2: @@ -162527,7 +164642,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+28834, + Xsqlite3_mprintf(tls, ts+28799, 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 @@ -162554,8 +164669,8 @@ __19: ; __18: ; - zVector = rbuMPrintf(tls, p, ts+28882, libc.VaList(bp+136, zVector, zSep, zQuoted)) - zSep = ts + 14535 /* ", " */ + zVector = rbuMPrintf(tls, p, ts+28847, libc.VaList(bp+136, zVector, zSep, zQuoted)) + zSep = ts + 14574 /* ", " */ goto __15 __15: iCol++ @@ -162567,7 +164682,7 @@ __16: if !!(bFailed != 0) { goto __20 } - zRet = rbuMPrintf(tls, p, ts+28889, libc.VaList(bp+160, zLhs, zVector)) + zRet = rbuMPrintf(tls, p, ts+28854, libc.VaList(bp+160, zLhs, zVector)) __20: ; __13: @@ -162606,7 +164721,7 @@ index_start_out: // 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: */ +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) @@ -162624,7 +164739,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+28419, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx))) + Xsqlite3_mprintf(tls, ts+28384, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzIdx))) } for rc == SQLITE_OK && SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 200))) { @@ -162636,7 +164751,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+28901, libc.VaList(bp+8, zRet, zCom, + zRet = Xsqlite3_mprintf(tls, ts+28866, 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 + 1518 /* "" */ } else { @@ -162650,37 +164765,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 + 28742 /* "_rowid_" */ + zCol = ts + 28707 /* "_rowid_" */ } else { - zCol = ts + 28472 /* "rbu_rowid" */ + zCol = ts + 28437 /* "rbu_rowid" */ } zType = ts + 1083 /* "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+28923, libc.VaList(bp+48, zRet, zCom, zCol, zCollate)) + zRet = Xsqlite3_mprintf(tls, ts+28888, 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 + 28659 + return ts + 28624 } return ts + 1518 }() - zImpPK = Xsqlite3_mprintf(tls, ts+28943, + zImpPK = Xsqlite3_mprintf(tls, ts+28908, libc.VaList(bp+80, zImpPK, zCom, nBind, zCol, zOrder)) } - zImpCols = Xsqlite3_mprintf(tls, ts+28964, + zImpCols = Xsqlite3_mprintf(tls, ts+28929, libc.VaList(bp+120, zImpCols, zCom, nBind, zCol, zType, zCollate)) zWhere = Xsqlite3_mprintf(tls, - ts+28997, libc.VaList(bp+168, zWhere, zAnd, nBind, zCol)) + ts+28962, 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 + 14535 /* ", " */ - zAnd = ts + 21365 /* " AND " */ + zCom = ts + 14574 /* ", " */ + zAnd = ts + 21305 /* " AND " */ nBind++ } @@ -162717,7 +164832,7 @@ func rbuObjIterGetIndexCols(tls *libc.TLS, p uintptr, pIter uintptr, pzImposterC // // 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) @@ -162728,11 +164843,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+29021, libc.VaList(bp, zList, zS, zObj, zCol)) + zList = Xsqlite3_mprintf(tls, ts+28986, libc.VaList(bp, zList, zS, zObj, zCol)) } else { - zList = Xsqlite3_mprintf(tls, ts+29033, libc.VaList(bp+32, zList, zS)) + zList = Xsqlite3_mprintf(tls, ts+28998, libc.VaList(bp+32, zList, zS)) } - zS = ts + 14535 /* ", " */ + zS = ts + 14574 /* ", " */ if zList == uintptr(0) { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM break @@ -162741,7 +164856,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+29042, libc.VaList(bp+48, zList, zObj)) + zList = rbuMPrintf(tls, p, ts+29007, libc.VaList(bp+48, zList, zObj)) } } return zList @@ -162755,24 +164870,24 @@ func rbuObjIterGetOldlist(tls *libc.TLS, p uintptr, pIter uintptr, zObj uintptr) // 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: */ +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+29057, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+1)) + zList = rbuMPrintf(tls, p, ts+29022, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol+1)) } else if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL { var zSep uintptr = ts + 1518 /* "" */ 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+29071, libc.VaList(bp+8, zList, zSep, i, i+1)) - zSep = ts + 21365 /* " AND " */ + zList = rbuMPrintf(tls, p, ts+29036, libc.VaList(bp+8, zList, zSep, i, i+1)) + zSep = ts + 21305 /* " AND " */ } } zList = rbuMPrintf(tls, p, - ts+29083, libc.VaList(bp+40, zList)) + ts+29048, libc.VaList(bp+40, zList)) } else { var zSep uintptr = ts + 1518 /* "" */ @@ -162780,8 +164895,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+29133, libc.VaList(bp+48, zList, zSep, zCol, i+1)) - zSep = ts + 21365 /* " AND " */ + zList = rbuMPrintf(tls, p, ts+29098, libc.VaList(bp+48, zList, zSep, zCol, i+1)) + zSep = ts + 21305 /* " AND " */ } } } @@ -162793,9 +164908,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+29146, 0) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+29111, 0) } // Return a nul-terminated string containing the comma separated list of @@ -162813,7 +164928,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) @@ -162828,17 +164943,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+29133, + zList = rbuMPrintf(tls, p, ts+29098, libc.VaList(bp, zList, zSep, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblCol + uintptr(i)*8)), i+1)) - zSep = ts + 14535 /* ", " */ + zSep = ts + 14574 /* ", " */ } else if int32(c) == 'd' { - zList = rbuMPrintf(tls, p, ts+29172, + zList = rbuMPrintf(tls, p, ts+29137, 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 + 14535 /* ", " */ + zSep = ts + 14574 /* ", " */ } else if int32(c) == 'f' { - zList = rbuMPrintf(tls, p, ts+29202, + zList = rbuMPrintf(tls, p, ts+29167, 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 + 14535 /* ", " */ + zSep = ts + 14574 /* ", " */ } } } @@ -162859,7 +164974,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) @@ -162889,26 +165004,26 @@ func rbuObjIterGetBindlist(tls *libc.TLS, p uintptr, nBind int32) uintptr { /* t // 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: */ +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 + 29239 /* "PRIMARY KEY(" */ + var zSep uintptr = ts + 29204 /* "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 = (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = prepareFreeAndCollectError(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, bp+56, p+64, - Xsqlite3_mprintf(tls, ts+28391, libc.VaList(bp, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl))) + Xsqlite3_mprintf(tls, ts+28356, 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+16046) == 0 { + if zOrig != 0 && libc.Xstrcmp(tls, zOrig, ts+16076) == 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+28419, libc.VaList(bp+8, zIdx))) + Xsqlite3_mprintf(tls, ts+28384, libc.VaList(bp+8, zIdx))) } break } @@ -162921,15 +165036,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 + 28659 /* " DESC" */ + zDesc = ts + 28624 /* " DESC" */ } else { zDesc = ts + 1518 /* "" */ } - z = rbuMPrintf(tls, p, ts+29252, libc.VaList(bp+16, z, zSep, zCol, zDesc)) - zSep = ts + 14535 /* ", " */ + z = rbuMPrintf(tls, p, ts+29217, libc.VaList(bp+16, z, zSep, zCol, zDesc)) + zSep = ts + 14574 /* ", " */ } } - z = rbuMPrintf(tls, p, ts+29263, libc.VaList(bp+48, z)) + z = rbuMPrintf(tls, p, ts+29228, libc.VaList(bp+48, z)) rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 64 /* pXInfo */))) } return z @@ -162952,7 +165067,7 @@ func rbuWithoutRowidPK(tls *libc.TLS, p uintptr, pIter uintptr) uintptr { /* tes // // 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: */ +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) @@ -162969,7 +165084,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+29267) + ts+29232) 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))) { @@ -162978,7 +165093,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+28419, libc.VaList(bp, zIdx))) + Xsqlite3_mprintf(tls, ts+28384, libc.VaList(bp, zIdx))) } rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp + 168 /* pQuery */))) @@ -162988,25 +165103,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+29317, libc.VaList(bp+8, zCols, zComma, + zCols = rbuMPrintf(tls, p, ts+29282, libc.VaList(bp+8, zCols, zComma, iCid, *(*uintptr)(unsafe.Pointer((*RbuObjIter)(unsafe.Pointer(pIter)).FazTblType + uintptr(iCid)*8)), zCollate)) - zPk = rbuMPrintf(tls, p, ts+29339, libc.VaList(bp+48, zPk, zComma, iCid, func() uintptr { + zPk = rbuMPrintf(tls, p, ts+29304, libc.VaList(bp+48, zPk, zComma, iCid, func() uintptr { if bDesc != 0 { - return ts + 28659 /* " DESC" */ + return ts + 28624 /* " DESC" */ } return ts + 1518 /* "" */ }())) - zComma = ts + 14535 /* ", " */ + zComma = ts + 14574 /* ", " */ } } - zCols = rbuMPrintf(tls, p, ts+29349, libc.VaList(bp+80, zCols)) + zCols = rbuMPrintf(tls, p, ts+29314, 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+6316, 1, tnum)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+88, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6351, 1, tnum)) rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, - ts+29364, + ts+29329, libc.VaList(bp+120, zCols, zPk)) - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+136, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6316, 0, 0)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+136, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6351, 0, 0)) } } @@ -163028,7 +165143,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) @@ -163037,7 +165152,7 @@ func rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) { /* testda var zComma uintptr = ts + 1518 /* "" */ var zSql uintptr = uintptr(0) var iCol int32 - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6316, 0, 1)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6351, 0, 1)) for iCol = 0; (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && iCol < (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol; iCol++ { var zPk uintptr = ts + 1518 /* "" */ @@ -163045,41 +165160,41 @@ 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+6316, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zCol, uintptr(0), bp+192, uintptr(0), uintptr(0), uintptr(0)) + (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6351, (*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 + 29426 /* "PRIMARY KEY " */ + zPk = ts + 29391 /* "PRIMARY KEY " */ } - zSql = rbuMPrintf(tls, p, ts+29439, + zSql = rbuMPrintf(tls, p, ts+29404, 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 + 29466 /* " NOT NULL" */ + return ts + 29431 /* " NOT NULL" */ } return ts + 1518 /* "" */ }())) - zComma = ts + 14535 /* ", " */ + zComma = ts + 14574 /* ", " */ } 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+29476, libc.VaList(bp+88, zSql, zPk)) + zSql = rbuMPrintf(tls, p, ts+29441, libc.VaList(bp+88, zSql, zPk)) } } - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+104, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6316, 1, tnum)) - rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+29483, + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+104, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6351, 1, tnum)) + rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+29448, libc.VaList(bp+136, (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl, zSql, func() uintptr { if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_WITHOUT_ROWID { - return ts + 29515 /* " WITHOUT ROWID" */ + return ts + 29480 /* " WITHOUT ROWID" */ } return ts + 1518 /* "" */ }())) - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+160, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6316, 0, 0)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+160, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6351, 0, 0)) } } @@ -163092,7 +165207,7 @@ func rbuCreateImposterTable(tls *libc.TLS, p uintptr, pIter uintptr) { /* testda // 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) @@ -163102,12 +165217,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+29530, + ts+29495, 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 @@ -163129,7 +165244,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) @@ -163139,7 +165254,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+29587) + ts+29552) } if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK { var rc2 int32 @@ -163237,7 +165352,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) @@ -163249,7 +165364,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+29653, libc.VaList(bp, nOffset)) + zLimit = Xsqlite3_mprintf(tls, ts+29618, libc.VaList(bp, nOffset)) if !(zLimit != 0) { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = SQLITE_NOMEM } @@ -163270,26 +165385,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+6316, 0, 1)) - Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+40, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6316, 1, tnum)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+8, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6351, 0, 1)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+40, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6351, 1, tnum)) rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, - ts+29673, + ts+29638, 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+6316, 0, 0)) + Xsqlite3_test_control(tls, SQLITE_TESTCTRL_IMPOSTER, libc.VaList(bp+96, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6351, 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+29738, libc.VaList(bp+128, zTbl, zBind))) + Xsqlite3_mprintf(tls, ts+29703, 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+29774, libc.VaList(bp+144, zTbl, *(*uintptr)(unsafe.Pointer(bp + 616 /* zWhere */))))) + Xsqlite3_mprintf(tls, ts+29739, libc.VaList(bp+144, zTbl, *(*uintptr)(unsafe.Pointer(bp + 616 /* zWhere */))))) } // Create the SELECT statement to read keys in sorted order @@ -163306,7 +165421,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 } zSql = Xsqlite3_mprintf(tls, - ts+29808, + ts+29773, libc.VaList(bp+160, zCollist, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, @@ -163314,9 +165429,9 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 if zStart != 0 { return func() uintptr { if zPart != 0 { - return ts + 29869 /* "AND" */ + return ts + 29834 /* "AND" */ } - return ts + 29873 /* "WHERE" */ + return ts + 29838 /* "WHERE" */ }() } return ts + 1518 /* "" */ @@ -163325,21 +165440,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+29879, + ts+29844, libc.VaList(bp+216, zCollist, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, zPart, zCollist, zLimit)) } else { zSql = Xsqlite3_mprintf(tls, - ts+29940, + ts+29905, 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 + 29869 /* "AND" */ + return ts + 29834 /* "AND" */ } - return ts + 29873 /* "WHERE" */ + return ts + 29838 /* "WHERE" */ }(), zCollist, zLimit)) } @@ -163364,8 +165479,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+6327) - var zNewlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+6323) + var zOldlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+6362) + var zNewlist uintptr = rbuObjIterGetOldlist(tls, p, pIter, ts+6358) zCollist = rbuObjIterGetCollist(tls, p, pIter) (*RbuObjIter)(unsafe.Pointer(pIter)).FnCol = (*RbuObjIter)(unsafe.Pointer(pIter)).FnTblCol @@ -163377,17 +165492,17 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_VTAB { return ts + 1518 } - return ts + 30099 + return ts + 30064 }() // 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+30108, + ts+30073, libc.VaList(bp+344, zWrite, zTbl, zCollist, func() uintptr { if bRbuRowid != 0 { - return ts + 30144 /* ", _rowid_" */ + return ts + 30109 /* ", _rowid_" */ } return ts + 1518 /* "" */ }(), zBindings))) @@ -163399,28 +165514,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+30154, libc.VaList(bp+384, zWrite, zTbl, zWhere))) + ts+30119, 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 + 1518 /* "" */ if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL || (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_NONE { - zRbuRowid = ts + 30182 /* ", rbu_rowid" */ + zRbuRowid = ts + 30147 /* ", rbu_rowid" */ } // Create the rbu_tmp_xxx table and the triggers to populate it. rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, - ts+30194, libc.VaList(bp+408, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr { + ts+30159, libc.VaList(bp+408, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl, func() uintptr { if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType == RBU_PK_EXTERNAL { - return ts + 30270 /* ", 0 AS rbu_rowid" */ + return ts + 30235 /* ", 0 AS rbu_rowid" */ } return ts + 1518 /* "" */ }(), (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl)) rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, - ts+30287, + ts+30252, libc.VaList(bp+440, zWrite, zTbl, zOldlist, zWrite, zTbl, zOldlist, zWrite, zTbl, zNewlist)) @@ -163428,7 +165543,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+30586, + ts+30551, libc.VaList(bp+512, zWrite, zTbl, zNewlist)) } @@ -163442,9 +165557,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 + 30685 /* ",_rowid_ " */ + zRbuRowid = ts + 30650 /* ",_rowid_ " */ } else { - zRbuRowid = ts + 30695 /* ",rbu_rowid" */ + zRbuRowid = ts + 30660 /* ",rbu_rowid" */ } } @@ -163457,20 +165572,20 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 } } if bRbuRowid != 0 { - zOrder = rbuMPrintf(tls, p, ts+28742, 0) + zOrder = rbuMPrintf(tls, p, ts+28707, 0) } else { - zOrder = rbuObjIterGetPkList(tls, p, pIter, ts+1518, ts+14535, ts+1518) + zOrder = rbuObjIterGetPkList(tls, p, pIter, ts+1518, ts+14574, ts+1518) } } 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+30706, + ts+30671, libc.VaList(bp+536, zCollist, func() uintptr { if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - return ts + 30754 /* "0 AS " */ + return ts + 30719 /* "0 AS " */ } return ts + 1518 /* "" */ }(), @@ -163483,7 +165598,7 @@ func rbuObjIterPrepareAll(tls *libc.TLS, p uintptr, pIter uintptr, nOffset int32 }(), func() uintptr { if zOrder != 0 { - return ts + 19699 /* "ORDER BY" */ + return ts + 19639 /* "ORDER BY" */ } return ts + 1518 /* "" */ }(), zOrder, @@ -163512,7 +165627,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) @@ -163563,9 +165678,9 @@ func rbuGetUpdateStmt(tls *libc.TLS, p uintptr, pIter uintptr, zMask uintptr, pp var zPrefix uintptr = ts + 1518 /* "" */ if (*RbuObjIter)(unsafe.Pointer(pIter)).FeType != RBU_PK_VTAB { - zPrefix = ts + 30099 /* "rbu_imp_" */ + zPrefix = ts + 30064 /* "rbu_imp_" */ } - zUpdate = Xsqlite3_mprintf(tls, ts+30760, + zUpdate = Xsqlite3_mprintf(tls, ts+30725, 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) @@ -163578,7 +165693,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) @@ -163592,7 +165707,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+3598, libc.VaList(bp, Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* db */))))) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+3633, 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) } @@ -163601,7 +165716,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) @@ -163617,7 +165732,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) @@ -163633,7 +165748,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+30790, libc.VaList(bp, p+48))) + Xsqlite3_mprintf(tls, ts+30755, 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: @@ -163701,7 +165816,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) @@ -163710,31 +165825,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+6316, SQLITE_FCNTL_RBUCNT, p) + Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6351, 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+6316) - (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+30820, libc.VaList(bp, zFile, zFile)) + var zFile uintptr = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6351) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+30785, 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+30847, libc.VaList(bp+16, (*Sqlite3rbu)(unsafe.Pointer(p)).FzState)) - libc.Xmemcpy(tls, p+48, ts+3221, uint64(4)) + rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+30812, libc.VaList(bp+16, (*Sqlite3rbu)(unsafe.Pointer(p)).FzState)) + libc.Xmemcpy(tls, p+48, ts+3256, uint64(4)) } else { - libc.Xmemcpy(tls, p+48, ts+6316, uint64(4)) + libc.Xmemcpy(tls, p+48, ts+6351, uint64(4)) } // If it has not already been created, create the rbu_state table - rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+30865, libc.VaList(bp+24, p+48)) + rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+30830, 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+6316, SQLITE_FCNTL_RBUCNT, p) + rc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6351, SQLITE_FCNTL_RBUCNT, p) if rc != SQLITE_NOTFOUND { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc } @@ -163767,11 +165882,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+30931, 0) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+30896, 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+24012, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu, uint64(5)) { + if libc.Xstrlen(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzRbu) >= uint64(5) && 0 == libc.Xmemcmp(tls, ts+23977, (*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)))) == '?' { @@ -163783,13 +165898,13 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr) } } - zTarget = Xsqlite3_mprintf(tls, ts+30963, - libc.VaList(bp+32, Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6316), + zTarget = Xsqlite3_mprintf(tls, ts+30928, + libc.VaList(bp+32, Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+6351), func() uintptr { if zExtra == uintptr(0) { return ts + 1518 /* "" */ } - return ts + 30995 /* "&" */ + return ts + 30960 /* "&" */ }(), func() uintptr { if zExtra == uintptr(0) { return ts + 1518 /* "" */ @@ -163808,40 +165923,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+30997, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { + ts+30962, -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+31012, 2, SQLITE_UTF8, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct { + ts+30977, 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+31029, -1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { + ts+30994, -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+6316, SQLITE_FCNTL_RBU, p) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6351, SQLITE_FCNTL_RBU, p) } - rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31045, 0) + rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31010, 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+6316, SQLITE_FCNTL_RBU, p) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_file_control(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+6351, 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+31073, 0) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31038, 0) } } @@ -163863,7 +165978,7 @@ func rbuOpenDatabase(tls *libc.TLS, p uintptr, dbMain uintptr, pbRetry uintptr) // 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: */ +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 @@ -163871,7 +165986,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) @@ -163904,7 +166019,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 @@ -163912,7 +166027,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+31045, uintptr(0), uintptr(0), uintptr(0)) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31010, uintptr(0), uintptr(0), uintptr(0)) } } @@ -163946,7 +166061,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+31091, uintptr(0), uintptr(0), uintptr(0)) + rc2 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31056, uintptr(0), uintptr(0), uintptr(0)) if rc2 != SQLITE_INTERNAL { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc2 } @@ -163996,7 +166111,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)<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) @@ -164382,7 +166497,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+31165) + ts+31130) 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 @@ -164395,7 +166510,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+31187, libc.VaList(bp, iCookie+1)) + rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31152, libc.VaList(bp, iCookie+1)) } } } @@ -164403,7 +166518,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) @@ -164420,7 +166535,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+31214, + ts+31179, libc.VaList(bp, p+48, RBU_STATE_STAGE, eStage, RBU_STATE_TBL, (*Sqlite3rbu)(unsafe.Pointer(p)).Fobjiter.FzTbl, @@ -164458,16 +166573,16 @@ func rbuSaveState(tls *libc.TLS, p uintptr, eStage int32) { /* testdata/sqlite-a // // 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+31372, libc.VaList(bp, zPragma))) + Xsqlite3_mprintf(tls, ts+31337, 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+31387, + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rbuMPrintfExec(tls, p, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31352, 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 */))) @@ -164477,18 +166592,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+31407, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31372, 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+31432) + ts+31397) } for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == SQLITE_ROW { @@ -164502,12 +166617,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+31540) + ts+31505) } 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+31605) + ts+31570) } for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) == SQLITE_ROW { @@ -164519,7 +166634,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+31649, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31614, uintptr(0), uintptr(0), p+64) } rbuFinalize(tls, p, *(*uintptr)(unsafe.Pointer(bp /* pSql */))) @@ -164527,7 +166642,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) @@ -164541,8 +166656,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+17131) - rbuCopyPragma(tls, p, ts+16242) + rbuCopyPragma(tls, p, ts+17161) + rbuCopyPragma(tls, p, ts+16272) } for (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK && (*RbuObjIter)(unsafe.Pointer(pIter)).FzTbl != 0 { @@ -164553,7 +166668,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+31674, libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl)) + ts+31639, libc.VaList(bp, p+48, (*RbuObjIter)(unsafe.Pointer(pIter)).FzDataTbl)) } } else { rbuObjIterPrepareAll(tls, p, pIter, 0) @@ -164579,10 +166694,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+14439, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+14478, 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+14439, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14478, uintptr(0), uintptr(0), p+64) } (*Sqlite3rbu)(unsafe.Pointer(p)).FeStage = RBU_STAGE_MOVE } @@ -164670,7 +166785,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 } @@ -164688,7 +166803,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 @@ -164703,7 +166818,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+31702, 0) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31667, 0) } if rc == SQLITE_OK { @@ -164718,11 +166833,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+31151, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget)) + var zOal uintptr = rbuMPrintf(tls, p, ts+31116, libc.VaList(bp, (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget)) if zOal != 0 { var pVfs uintptr = Xsqlite3_vfs_find(tls, uintptr(0)) @@ -164737,7 +166852,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) @@ -164746,7 +166861,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+31727, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* rnd */)))) + Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+12, ts+31692, 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) @@ -164758,7 +166873,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) @@ -164768,7 +166883,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) @@ -164785,7 +166900,7 @@ func rbuIndexCntFunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { / rc = prepareFreeAndCollectError(tls, db, bp+8, bp+16, Xsqlite3_mprintf(tls, - ts+31738, libc.VaList(bp, Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal)))))) + ts+31703, 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 { @@ -164817,7 +166932,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) @@ -164828,7 +166943,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+31810, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { + ts+31775, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{rbuIndexCntFunc})), uintptr(0), uintptr(0)) @@ -164836,7 +166951,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+31824) + ts+31789) } if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { if SQLITE_ROW == Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp))) { @@ -164848,7 +166963,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+31881) + ts+31846) 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) @@ -164859,7 +166974,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) @@ -164894,7 +167009,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+3598, libc.VaList(bp, zState)) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzState = rbuMPrintf(tls, p, ts+3633, libc.VaList(bp, zState)) } // If the first attempt to open the database file fails and the bRetry @@ -164931,7 +167046,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+31955, 0) + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31920, 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 @@ -164953,12 +167068,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+31987, + (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg = Xsqlite3_mprintf(tls, ts+31952, libc.VaList(bp+8, func() uintptr { if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - return ts + 32019 /* "vacuum" */ + return ts + 31984 /* "vacuum" */ } - return ts + 32026 /* "update" */ + return ts + 31991 /* "update" */ }())) } } @@ -164966,7 +167081,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+14424, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14463, uintptr(0), uintptr(0), p+64) // Point the object iterator at the first object if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_OK { @@ -164980,24 +167095,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+16845) - rbuCopyPragma(tls, p, ts+16257) + rbuCopyPragma(tls, p, ts+16875) + rbuCopyPragma(tls, p, ts+16287) } // 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+32033, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, db, ts+31998, 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+6316, SQLITE_FCNTL_ZIPVFS, uintptr(0)) + var frc int32 = Xsqlite3_file_control(tls, db, ts+6351, SQLITE_FCNTL_ZIPVFS, uintptr(0)) if frc == SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, - db, ts+32049, uintptr(0), uintptr(0), p+64) + db, ts+32014, uintptr(0), uintptr(0), p+64) } } @@ -165032,7 +167147,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 { @@ -165043,7 +167158,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) } @@ -165051,13 +167166,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+32073, zState+uintptr(n-7), uint64(7)) { + if n >= 7 && 0 == libc.Xmemcmp(tls, ts+32038, zState+uintptr(n-7), uint64(7)) { return rbuMisuseError(tls) } } @@ -165066,7 +167181,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 { @@ -165082,12 +167197,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+30099, uint64(8)) == 0 { + if libc.Xmemcmp(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FzErrmsg+uintptr(i), ts+30064, 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++ @@ -165100,13 +167215,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+14439, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+14478, uintptr(0), uintptr(0), p+64) } // Sync the db file if currently doing an incremental checkpoint @@ -165120,7 +167235,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+14439, uintptr(0), uintptr(0), p+64) + (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14478, uintptr(0), uintptr(0), p+64) } // Close any open statement handles. @@ -165132,7 +167247,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+32081, uintptr(0), uintptr(0), uintptr(0)) + var rc2 int32 = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+32046, uintptr(0), uintptr(0), uintptr(0)) if (*Sqlite3rbu)(unsafe.Pointer(p)).Frc == SQLITE_DONE && rc2 != SQLITE_OK { (*Sqlite3rbu)(unsafe.Pointer(p)).Frc = rc2 } @@ -165165,13 +167280,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: @@ -165204,7 +167319,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) @@ -165222,7 +167337,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 @@ -165231,7 +167346,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+14439, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+14478, uintptr(0), uintptr(0), uintptr(0)) } } @@ -165250,19 +167365,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+14439, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbRbu, ts+14478, uintptr(0), uintptr(0), uintptr(0)) } if rc == SQLITE_OK { var zBegin uintptr if (*Sqlite3rbu)(unsafe.Pointer(p)).FzTarget == uintptr(0) { - zBegin = ts + 14424 /* "BEGIN" */ + zBegin = ts + 14463 /* "BEGIN" */ } else { - zBegin = ts + 32033 /* "BEGIN IMMEDIATE" */ + zBegin = ts + 31998 /* "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+32033, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, (*Sqlite3rbu)(unsafe.Pointer(p)).FdbMain, ts+31998, uintptr(0), uintptr(0), uintptr(0)) } } @@ -165329,7 +167444,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 @@ -165346,7 +167461,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 @@ -165364,7 +167479,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 @@ -165386,7 +167501,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 { @@ -165411,7 +167526,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 { @@ -165426,7 +167541,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 @@ -165458,7 +167573,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 + @@ -165467,20 +167582,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 @@ -165544,7 +167659,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 @@ -165583,7 +167698,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) @@ -165597,7 +167712,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 { @@ -165611,7 +167726,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 { @@ -165631,7 +167746,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 @@ -165651,7 +167766,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 @@ -165659,7 +167774,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 @@ -165667,7 +167782,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) @@ -165694,7 +167809,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+32108, 0) + (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FzErrmsg = Xsqlite3_mprintf(tls, ts+32073, 0) } else if rc == SQLITE_NOTFOUND { (*Sqlite3rbu)(unsafe.Pointer(pRbu)).FpTargetFd = p (*Rbu_file)(unsafe.Pointer(p)).FpRbu = pRbu @@ -165719,7 +167834,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+32131, libc.VaList(bp, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn)) + var zOut uintptr = Xsqlite3_mprintf(tls, ts+32096, libc.VaList(bp, (*Rbu_vfs)(unsafe.Pointer(pRbuVfs)).Fbase.FzName, zIn)) *(*uintptr)(unsafe.Pointer(pArg)) = zOut if zOut == uintptr(0) { rc = SQLITE_NOMEM @@ -165730,7 +167845,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 @@ -165738,7 +167853,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 @@ -165746,7 +167861,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 @@ -165779,7 +167894,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 { @@ -165836,13 +167951,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 { @@ -165865,7 +167980,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 @@ -165892,7 +168007,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+6316) + zOpen = Xsqlite3_db_filename(tls, (*Sqlite3rbu)(unsafe.Pointer((*Rbu_file)(unsafe.Pointer(pDb)).FpRbu)).FdbRbu, ts+6351) zOpen = Xsqlite3_filename_wal(tls, zOpen) } nOpen = libc.Xstrlen(tls, zOpen) @@ -165907,7 +168022,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+32142, 0) != 0 { + Xsqlite3_uri_boolean(tls, zName, ts+32107, 0) != 0 { oflags = SQLITE_OPEN_TEMP_DB | SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_EXCLUSIVE | SQLITE_OPEN_DELETEONCLOSE zOpen = uintptr(0) @@ -165951,10 +168066,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 @@ -165963,7 +168078,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) @@ -166008,7 +168123,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 @@ -166016,7 +168131,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 @@ -166026,7 +168141,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) @@ -166034,7 +168149,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 @@ -166042,7 +168157,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) @@ -166051,7 +168166,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 @@ -166060,7 +168175,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 @@ -166068,7 +168183,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 @@ -166076,13 +168191,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 @@ -166096,7 +168211,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 @@ -166157,17 +168272,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 } @@ -166250,7 +168365,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 */ //************************************************************************ @@ -166321,7 +168436,7 @@ type SessionTable1 = struct { // #include // #include -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 @@ -166331,16 +168446,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 @@ -166354,13 +168469,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 @@ -166368,13 +168483,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 }()) @@ -166384,13 +168499,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 }()) @@ -166403,7 +168518,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) @@ -166411,7 +168526,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)) @@ -166433,7 +168548,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) @@ -166521,7 +168636,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)) @@ -166532,7 +168647,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)) } @@ -166555,14 +168670,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)))) @@ -166572,7 +168687,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) } @@ -166585,7 +168700,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) @@ -166651,7 +168766,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) @@ -166677,7 +168792,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) @@ -166720,7 +168835,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 @@ -166759,7 +168874,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 @@ -166798,7 +168913,7 @@ func sessionMergeRecord(tls *libc.TLS, paOut uintptr, nCol int32, aLeft uintptr, // 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: */ +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) @@ -166825,7 +168940,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) @@ -166900,7 +169015,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) @@ -166988,7 +169103,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 @@ -167052,7 +169167,7 @@ func sessionGrowHash(tls *libc.TLS, pSession uintptr, bPatchset int32, pTab uint // // 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) @@ -167069,13 +169184,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+11217, zThis) { + if nThis == 12 && 0 == Xsqlite3_stricmp(tls, ts+11256, 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+32153, 0) + ts+32118, 0) } else if rc == SQLITE_ERROR { zPragma = Xsqlite3_mprintf(tls, ts+1518, 0) } else { @@ -167088,7 +169203,7 @@ func sessionTableInfo(tls *libc.TLS, pSession uintptr, db uintptr, zDb uintptr, return rc } } else { - zPragma = Xsqlite3_mprintf(tls, ts+32274, libc.VaList(bp, zDb, zThis)) + zPragma = Xsqlite3_mprintf(tls, ts+32239, libc.VaList(bp, zDb, zThis)) } if !(zPragma != 0) { *(*uintptr)(unsafe.Pointer(pazCol)) = uintptr(0) @@ -167183,7 +169298,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) @@ -167200,7 +169315,7 @@ func sessionInitTable(tls *libc.TLS, pSession uintptr, pTab uintptr) int32 { /* break } } - if 0 == Xsqlite3_stricmp(tls, ts+11217, (*SessionTable)(unsafe.Pointer(pTab)).FzName) { + if 0 == Xsqlite3_stricmp(tls, ts+11256, (*SessionTable)(unsafe.Pointer(pTab)).FzName) { (*SessionTable)(unsafe.Pointer(pTab)).FbStat1 = 1 } @@ -167219,15 +169334,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) @@ -167243,7 +169358,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) @@ -167259,21 +169374,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) @@ -167387,7 +169502,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) @@ -167683,7 +169798,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 @@ -167718,7 +169833,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) @@ -167753,25 +169868,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 @@ -167791,24 +169906,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 @@ -167816,13 +169931,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 @@ -167838,7 +169953,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) @@ -167848,9 +169963,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+32303, + zRet = Xsqlite3_mprintf(tls, ts+32268, 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 + 21365 /* " AND " */ + zSep = ts + 21305 /* " AND " */ if zRet == uintptr(0) { break } @@ -167860,7 +169975,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) @@ -167873,9 +169988,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+32337, + ts+32302, 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 + 32378 /* " OR " */ + zSep = ts + 32343 /* " OR " */ if zRet == uintptr(0) { break } @@ -167884,24 +169999,24 @@ func sessionExprCompareOther(tls *libc.TLS, nCol int32, zDb1 uintptr, zDb2 uintp if bHave == 0 { - zRet = Xsqlite3_mprintf(tls, ts+7401, 0) + zRet = Xsqlite3_mprintf(tls, ts+7440, 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+32383, + ts+32348, 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) @@ -167929,7 +170044,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) @@ -167941,7 +170056,7 @@ func sessionDiffFindModified(tls *libc.TLS, pSession uintptr, pTab uintptr, zFro rc = SQLITE_NOMEM } else { var zStmt uintptr = Xsqlite3_mprintf(tls, - ts+32461, + ts+32426, 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 @@ -167966,7 +170081,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) @@ -168079,7 +170194,7 @@ __6: if !(pzErrMsg != 0) { goto __16 } - *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+32514, 0) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+32479, 0) __16: ; rc = SQLITE_SCHEMA @@ -168139,7 +170254,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 @@ -168175,7 +170290,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 @@ -168197,7 +170312,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) @@ -168235,7 +170350,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 @@ -168247,7 +170362,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)) @@ -168298,7 +170413,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 @@ -168343,7 +170458,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) @@ -168366,7 +170481,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 } @@ -168377,7 +170492,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) } @@ -168388,7 +170503,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 @@ -168401,7 +170516,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)) @@ -168415,13 +170530,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+4910, libc.VaList(bp, iVal)) + Xsqlite3_snprintf(tls, int32(uint64(unsafe.Sizeof([24]int8{}))-uint64(1)), bp+8, ts+4945, libc.VaList(bp, iVal)) sessionAppendStr(tls, p, bp+8, pRc) } @@ -168432,7 +170547,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) @@ -168453,7 +170568,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) @@ -168513,7 +170628,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) @@ -168619,7 +170734,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) @@ -168676,7 +170791,7 @@ func sessionAppendDelete(tls *libc.TLS, pBuf uintptr, bPatchset int32, p uintptr // 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: */ +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) @@ -168684,10 +170799,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+11217, zTab) { + if 0 == Xsqlite3_stricmp(tls, ts+11256, zTab) { zSql = Xsqlite3_mprintf(tls, - ts+32541, libc.VaList(bp, zDb)) + ts+32506, libc.VaList(bp, zDb)) if zSql == uintptr(0) { *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = SQLITE_NOMEM } @@ -168696,18 +170811,18 @@ func sessionSelectStmt(tls *libc.TLS, db uintptr, zDb uintptr, zTab uintptr, nCo var zSep uintptr = ts + 1518 /* "" */ *(*SessionBuffer)(unsafe.Pointer(bp + 8 /* buf */)) = SessionBuffer{} - sessionAppendStr(tls, bp+8, ts+32651, bp+24) + sessionAppendStr(tls, bp+8, ts+32616, bp+24) sessionAppendIdent(tls, bp+8, zDb, bp+24) sessionAppendStr(tls, bp+8, ts+1531, bp+24) sessionAppendIdent(tls, bp+8, zTab, bp+24) - sessionAppendStr(tls, bp+8, ts+32666, bp+24) + sessionAppendStr(tls, bp+8, ts+32631, 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+32674, bp+24) + sessionAppendStr(tls, bp+8, ts+32639, bp+24) sessionAppendInteger(tls, bp+8, i+1, bp+24) - zSep = ts + 21365 /* " AND " */ + zSep = ts + 21305 /* " AND " */ } } zSql = (*SessionBuffer)(unsafe.Pointer(bp + 8 /* &buf */)).FaBuf @@ -168727,7 +170842,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) @@ -168805,7 +170920,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 { @@ -168826,7 +170941,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) @@ -168848,7 +170963,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+32680, uintptr(0), uintptr(0), uintptr(0)) + *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = Xsqlite3_exec(tls, (*Sqlite3_session)(unsafe.Pointer(pSession)).Fdb, ts+32645, uintptr(0), uintptr(0), uintptr(0)) if *(*int32)(unsafe.Pointer(bp + 40)) != SQLITE_OK { return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } @@ -168946,7 +171061,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+32700, uintptr(0), uintptr(0), uintptr(0)) + Xsqlite3_exec(tls, db, ts+32665, uintptr(0), uintptr(0), uintptr(0)) Xsqlite3_mutex_leave(tls, Xsqlite3_db_mutex(tls, db)) return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } @@ -168956,7 +171071,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) { @@ -168968,7 +171083,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 } @@ -168976,7 +171091,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 } @@ -168988,7 +171103,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 } @@ -168996,7 +171111,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 { @@ -169008,7 +171123,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 { @@ -169021,7 +171136,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 @@ -169035,12 +171150,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: @@ -169066,12 +171181,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 @@ -169104,28 +171219,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 @@ -169143,7 +171258,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) @@ -169176,7 +171291,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) @@ -169201,7 +171316,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 @@ -169237,7 +171352,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) @@ -169255,7 +171370,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))))) @@ -169280,7 +171395,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 { @@ -169322,7 +171437,7 @@ func sessionReadRecord(tls *libc.TLS, pIn uintptr, nCol int32, abPK uintptr, apO // 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) @@ -169341,7 +171456,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)) @@ -169368,7 +171483,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) @@ -169410,7 +171525,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) @@ -169430,7 +171545,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) } } @@ -169465,7 +171580,7 @@ func sessionChangesetReadTblhdr(tls *libc.TLS, p uintptr) int32 { /* testdata/sq // // * 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 @@ -169522,13 +171637,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 { @@ -169598,7 +171713,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) } @@ -169629,7 +171744,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) @@ -169649,14 +171764,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 @@ -169670,7 +171785,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 @@ -169689,7 +171804,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 } @@ -169711,7 +171826,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 } @@ -169735,7 +171850,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 } @@ -169752,7 +171867,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 } @@ -169764,7 +171879,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[] @@ -169781,7 +171896,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) @@ -170017,7 +172132,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: ; @@ -170068,7 +172183,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) @@ -170083,7 +172198,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) @@ -170105,9 +172220,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 @@ -170129,9 +172244,9 @@ 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. @@ -170139,7 +172254,7 @@ type SessionApplyCtx = SessionApplyCtx1 /* testdata/sqlite-amalgamation-3380500/ // 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: */ +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) @@ -170200,7 +172315,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+11217) == 0) + var bStat1 int32 = libc.Bool32(Xsqlite3_stricmp(tls, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, ts+11256) == 0) pUp = Xsqlite3_malloc(tls, nByte) if pUp == uintptr(0) { *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_NOMEM @@ -170212,24 +172327,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+32718, bp+16) + sessionAppendStr(tls, bp, ts+32683, bp+16) sessionAppendIdent(tls, bp, (*Sqlite3_changeset_iter)(unsafe.Pointer(pIter)).FzTab, bp+16) - sessionAppendStr(tls, bp, ts+32731, bp+16) + sessionAppendStr(tls, bp, ts+32696, 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+32737, bp+16) + sessionAppendStr(tls, bp, ts+32702, bp+16) sessionAppendInteger(tls, bp, ii*2+1, bp+16) - zSep = ts + 14535 /* ", " */ + zSep = ts + 14574 /* ", " */ } } // Create the WHERE clause part of the UPDATE zSep = ts + 1518 /* "" */ - sessionAppendStr(tls, bp, ts+32666, bp+16) + sessionAppendStr(tls, bp, ts+32631, 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) @@ -170237,13 +172352,13 @@ func sessionUpdateFind(tls *libc.TLS, pIter uintptr, p uintptr, bPatchset int32, sessionAppendStr(tls, bp, - ts+32742, bp+16) + ts+32707, bp+16) } else { sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(ii)*8)), bp+16) - sessionAppendStr(tls, bp, ts+32674, bp+16) + sessionAppendStr(tls, bp, ts+32639, bp+16) sessionAppendInteger(tls, bp, ii*2+2, bp+16) } - zSep = ts + 21365 /* " AND " */ + zSep = ts + 21305 /* " AND " */ } } @@ -170273,7 +172388,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 { @@ -170301,7 +172416,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) @@ -170311,37 +172426,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+32817, bp+16) + sessionAppendStr(tls, bp, ts+32782, bp+16) sessionAppendIdent(tls, bp, zTab, bp+16) - sessionAppendStr(tls, bp, ts+32666, bp+16) + sessionAppendStr(tls, bp, ts+32631, 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+32737, bp+16) + sessionAppendStr(tls, bp, ts+32702, bp+16) sessionAppendInteger(tls, bp, i+1, bp+16) - zSep = ts + 21365 /* " AND " */ + zSep = ts + 21305 /* " AND " */ } } if nPk < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol { - sessionAppendStr(tls, bp, ts+32835, bp+16) + sessionAppendStr(tls, bp, ts+32800, bp+16) sessionAppendInteger(tls, bp, (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol+1, bp+16) - sessionAppendStr(tls, bp, ts+32378, bp+16) + sessionAppendStr(tls, bp, ts+32343, bp+16) zSep = ts + 1518 /* "" */ 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+32674, bp+16) + sessionAppendStr(tls, bp, ts+32639, bp+16) sessionAppendInteger(tls, bp, i+1, bp+16) - zSep = ts + 32843 /* "AND " */ + zSep = ts + 32808 /* "AND " */ } } - sessionAppendStr(tls, bp, ts+4892, bp+16) + sessionAppendStr(tls, bp, ts+4927, bp+16) } if *(*int32)(unsafe.Pointer(bp + 16)) == SQLITE_OK { @@ -170363,9 +172478,9 @@ func sessionDeleteRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 // // 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+6316, zTab, (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FazCol, (*SessionApplyCtx)(unsafe.Pointer(p)).FabPK, p+24) + db, ts+6351, 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. @@ -170375,7 +172490,7 @@ func sessionSelectRow(tls *libc.TLS, db uintptr, zTab uintptr, p uintptr) int32 // // 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) @@ -170383,21 +172498,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+32848, bp+16) + sessionAppendStr(tls, bp, ts+32813, bp+16) sessionAppendIdent(tls, bp, zTab, bp+16) - sessionAppendStr(tls, bp, ts+21371, bp+16) + sessionAppendStr(tls, bp, ts+21311, bp+16) for i = 0; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ { if i != 0 { - sessionAppendStr(tls, bp, ts+14535, bp+16) + sessionAppendStr(tls, bp, ts+14574, bp+16) } sessionAppendIdent(tls, bp, *(*uintptr)(unsafe.Pointer((*SessionApplyCtx)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)), bp+16) } - sessionAppendStr(tls, bp, ts+32866, bp+16) + sessionAppendStr(tls, bp, ts+32831, bp+16) for i = 1; i < (*SessionApplyCtx)(unsafe.Pointer(p)).FnCol; i++ { - sessionAppendStr(tls, bp, ts+32877, bp+16) + sessionAppendStr(tls, bp, ts+32842, bp+16) } - sessionAppendStr(tls, bp, ts+4892, bp+16) + sessionAppendStr(tls, bp, ts+4927, 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)) @@ -170406,7 +172521,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)) } @@ -170414,24 +172529,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+11217, 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+11256, p) if rc == SQLITE_OK { rc = sessionPrepare(tls, db, p+16, - ts+32881) + ts+32846) } if rc == SQLITE_OK { rc = sessionPrepare(tls, db, p+8, - ts+32994) + ts+32959) } 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 @@ -170458,7 +172573,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) @@ -170479,7 +172594,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 */))) } @@ -170503,7 +172618,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) @@ -170547,7 +172662,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) @@ -170619,7 +172734,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) @@ -170719,7 +172834,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) @@ -170854,7 +172969,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) @@ -170876,7 +172991,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+33138, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, db, ts+33103, uintptr(0), uintptr(0), uintptr(0)) if rc == SQLITE_OK { rc = sessionBindRow(tls, pIter, *(*uintptr)(unsafe.Pointer(&struct { @@ -170892,7 +173007,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+33159, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, db, ts+33124, uintptr(0), uintptr(0), uintptr(0)) } } } @@ -170901,7 +173016,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) @@ -170955,7 +173070,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) @@ -170973,10 +173088,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+33178, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, db, ts+33143, uintptr(0), uintptr(0), uintptr(0)) } if rc == SQLITE_OK { - rc = Xsqlite3_exec(tls, db, ts+33204, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, db, ts+33169, uintptr(0), uintptr(0), uintptr(0)) } for rc == SQLITE_OK && SQLITE_ROW == Xsqlite3changeset_next(tls, pIter) { // var nCol int32 at bp+184, 4 @@ -171020,7 +173135,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+3598, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)))) + *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)))) if *(*uintptr)(unsafe.Pointer(bp + 200)) == uintptr(0) { rc = SQLITE_NOMEM break @@ -171033,7 +173148,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+6316, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)), bp+48+32, bp+200, bp+48+40, bp+48+48) + db, ts+6351, *(*uintptr)(unsafe.Pointer(bp + 176 /* zNew */)), bp+48+32, bp+200, bp+48+40, bp+48+48) if rc != SQLITE_OK { break } @@ -171046,20 +173161,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+33234, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)))) + ts+33199, 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+33278, + ts+33243, 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+33349, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 200 /* zTab */)))) + ts+33314, 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+11217) { + if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(bp + 200)), ts+11256) { if libc.AssignInt32(&rc, sessionStat1Sql(tls, db, bp+48)) != 0 { break } @@ -171117,14 +173232,14 @@ func sessionChangesetApply(tls *libc.TLS, db uintptr, pIter uintptr, xFilter uin } } } - Xsqlite3_exec(tls, db, ts+33409, uintptr(0), uintptr(0), uintptr(0)) + Xsqlite3_exec(tls, db, ts+33374, uintptr(0), uintptr(0), uintptr(0)) if flags&SQLITE_CHANGESETAPPLY_NOSAVEPOINT == 0 { if rc == SQLITE_OK { - rc = Xsqlite3_exec(tls, db, ts+33439, uintptr(0), uintptr(0), uintptr(0)) + rc = Xsqlite3_exec(tls, db, ts+33404, uintptr(0), uintptr(0), uintptr(0)) } else { - Xsqlite3_exec(tls, db, ts+33463, uintptr(0), uintptr(0), uintptr(0)) - Xsqlite3_exec(tls, db, ts+33439, uintptr(0), uintptr(0), uintptr(0)) + Xsqlite3_exec(tls, db, ts+33428, uintptr(0), uintptr(0), uintptr(0)) + Xsqlite3_exec(tls, db, ts+33404, uintptr(0), uintptr(0), uintptr(0)) } } @@ -171146,7 +173261,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) @@ -171164,7 +173279,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) } @@ -171172,7 +173287,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) @@ -171187,7 +173302,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) } @@ -171195,7 +173310,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) @@ -171367,7 +173482,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) @@ -171498,7 +173613,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) @@ -171552,7 +173667,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{}))) @@ -171567,7 +173682,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) @@ -171585,12 +173700,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) @@ -171607,12 +173722,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) @@ -171620,7 +173735,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) @@ -171644,7 +173759,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) @@ -171671,7 +173786,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 @@ -171712,7 +173827,7 @@ func sessionAppendRecordMerge(tls *libc.TLS, pBuf uintptr, nCol int32, a1 uintpt // 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 @@ -171774,7 +173889,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) @@ -171912,7 +174027,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 @@ -171927,7 +174042,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) @@ -171942,7 +174057,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) @@ -171958,7 +174073,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) @@ -171974,7 +174089,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) @@ -171982,7 +174097,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: @@ -172070,7 +174185,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 ******************************************* @@ -172132,13 +174247,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 */ // ************************************************************************* // @@ -172176,14 +174291,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. @@ -172198,7 +174313,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. @@ -172209,7 +174324,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 @@ -172219,19 +174334,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. @@ -172264,7 +174379,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. @@ -172275,16 +174390,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. @@ -172299,7 +174414,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. @@ -172310,7 +174425,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. @@ -172327,7 +174442,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. @@ -172336,7 +174451,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. @@ -172355,7 +174470,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. @@ -172366,7 +174481,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. @@ -172382,7 +174497,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. @@ -172391,7 +174506,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 @@ -172403,9 +174518,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 @@ -172415,25 +174530,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 @@ -172441,17 +174556,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. // @@ -172556,7 +174671,7 @@ 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 @@ -172629,7 +174744,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), @@ -172644,23 +174759,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. @@ -172697,9 +174812,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 @@ -172708,9 +174823,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 @@ -172720,7 +174835,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 */ @@ -172739,7 +174854,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 { @@ -172755,7 +174870,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 @@ -172813,7 +174928,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) @@ -172821,7 +174936,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) @@ -172834,7 +174949,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 } @@ -172858,7 +174973,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 { @@ -172882,7 +174997,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]) @@ -172893,7 +175008,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 { @@ -172903,7 +175018,7 @@ func fts5yyStackOverflow(tls *libc.TLS, fts5yypParser uintptr) { /* testdata/sql // stack every overflows //******* Begin %stack_overflow code ***************************************** - sqlite3Fts5ParseError(tls, pParse, ts+33491, 0) + sqlite3Fts5ParseError(tls, pParse, ts+33456, 0) //******* End %stack_overflow code ******************************************* (*Fts5yyParser)(unsafe.Pointer(fts5yypParser)).FpParse = pParse // Suppress warning about unused %extra_argument var @@ -172912,7 +175027,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 { @@ -172961,7 +175076,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. @@ -172994,7 +175109,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 @@ -173006,7 +175121,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) @@ -173216,7 +175331,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) @@ -173226,14 +175341,14 @@ func fts5yy_syntax_error(tls *libc.TLS, fts5yypParser uintptr, fts5yymajor int32 _ = fts5yymajor // Silence a compiler warning sqlite3Fts5ParseError(tls, - pParse, ts+33519, libc.VaList(bp, fts5yyminor.Fn, fts5yyminor.Fp)) + pParse, ts+33484, 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 @@ -173262,7 +175377,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) @@ -173317,7 +175432,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 } @@ -173372,7 +175487,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 // @@ -173415,11 +175530,11 @@ type CInstIter1 = struct { // printf("instance starts at %d, ends at %d\n", iter.iStart, iter.iEnd); // } // -type CInstIter = CInstIter1 /* testdata/sqlite-amalgamation-3380500/sqlite3.c:219215:26 */ +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) @@ -173462,7 +175577,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{}))) @@ -173495,12 +175610,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 @@ -173509,7 +175624,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) @@ -173517,7 +175632,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+33550, libc.VaList(bp, (*HighlightContext)(unsafe.Pointer(p)).FzOut, n, z)) + (*HighlightContext)(unsafe.Pointer(p)).FzOut = Xsqlite3_mprintf(tls, ts+33515, libc.VaList(bp, (*HighlightContext)(unsafe.Pointer(p)).FzOut, n, z)) if (*HighlightContext)(unsafe.Pointer(p)).FzOut == uintptr(0) { *(*int32)(unsafe.Pointer(pRc)) = SQLITE_NOMEM } @@ -173525,7 +175640,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) @@ -173580,7 +175695,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) @@ -173591,7 +175706,7 @@ func fts5HighlightFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintp var iCol int32 if nVal != 3 { - var zErr uintptr = ts + 33557 /* "wrong number of ..." */ + var zErr uintptr = ts + 33522 /* "wrong number of ..." */ Xsqlite3_result_error(tls, pCtx, zErr, -1) return } @@ -173640,19 +175755,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 { @@ -173676,7 +175791,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 @@ -173705,7 +175820,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) @@ -173763,7 +175878,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 @@ -173772,7 +175887,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) @@ -173795,7 +175910,7 @@ func fts5SnippetFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr var nCol int32 if nVal != 5 { - var zErr uintptr = ts + 33607 /* "wrong number of ..." */ + var zErr uintptr = ts + 33572 /* "wrong number of ..." */ Xsqlite3_result_error(tls, pCtx, zErr, -1) return } @@ -173987,17 +176102,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 @@ -174008,7 +176123,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) @@ -174102,7 +176217,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) @@ -174170,18 +176285,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 + 33655, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { + {FzFunc: ts + 33620, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) }{fts5SnippetFunction}))}, - {FzFunc: ts + 33663, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { + {FzFunc: ts + 33628, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) }{fts5HighlightFunction}))}, - {FzFunc: ts + 33673, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { + {FzFunc: ts + 33638, FxFunc: *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) }{fts5Bm25Function}))}, } @@ -174206,7 +176321,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 // @@ -174221,7 +176336,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 { @@ -174247,7 +176362,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 @@ -174259,21 +176374,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) { @@ -174291,7 +176406,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-- @@ -174303,7 +176418,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 @@ -174321,7 +176436,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 @@ -174337,26 +176452,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) @@ -174418,14 +176533,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 @@ -174437,7 +176552,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) @@ -174449,9 +176564,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) @@ -174468,7 +176583,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)) @@ -174489,7 +176604,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 { @@ -174514,7 +176629,7 @@ func sqlite3Fts5Strndup(tls *libc.TLS, pRc uintptr, pIn uintptr, nIn int32) uint // * 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: */ +func sqlite3Fts5IsBareword(tls *libc.TLS, t int8) int32 { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:222325:12: */ bp := tls.Alloc(128) defer tls.Free(128) @@ -174539,13 +176654,13 @@ type Fts5TermsetEntry1 = struct { 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) @@ -174554,7 +176669,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) @@ -174600,7 +176715,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++ { @@ -174632,18 +176747,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 { @@ -174656,7 +176771,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++ @@ -174667,17 +176782,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+6116, p, 4) == 0 { + if Xsqlite3_strnicmp(tls, ts+6151, p, 4) == 0 { p = p + 4 } else { p = uintptr(0) @@ -174760,7 +176875,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 @@ -174805,7 +176920,7 @@ func fts5Dequote(tls *libc.TLS, z uintptr) int32 { /* testdata/sqlite-amalgamati // 'xyz' becomes xyz // [pqr] becomes pqr // `mno` becomes mno -func sqlite3Fts5Dequote(tls *libc.TLS, z uintptr) { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:220490:13: */ +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)) @@ -174818,11 +176933,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 @@ -174850,13 +176965,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+33678, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+33643, zCmd, nCmd) == 0 { var nByte int32 = int32(uint64(unsafe.Sizeof(int32(0))) * uint64(FTS5_MAX_PREFIX_INDEXES)) var p uintptr var bFirst int32 = 1 @@ -174883,14 +176998,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+33685, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33650, 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+33716, libc.VaList(bp, FTS5_MAX_PREFIX_INDEXES)) + ts+33681, libc.VaList(bp, FTS5_MAX_PREFIX_INDEXES)) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR break } @@ -174901,7 +177016,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm } if nPre <= 0 || nPre >= 1000 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33749, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33714, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR break } @@ -174914,7 +177029,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - if Xsqlite3_strnicmp(tls, ts+33786, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+33751, 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))) @@ -174923,7 +177038,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+33795, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33760, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } else { for nArg = int64(0); p != 0 && *(*int8)(unsafe.Pointer(p)) != 0; nArg++ { @@ -174942,7 +177057,7 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm } } if p == uintptr(0) { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33828, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33793, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } else { *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = sqlite3Fts5GetTokenizer(tls, pGlobal, @@ -174957,14 +177072,14 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - if Xsqlite3_strnicmp(tls, ts+33862, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+33827, zCmd, nCmd) == 0 { if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent != FTS5_CONTENT_NORMAL { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33870, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33835, 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+33902, libc.VaList(bp+8, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg)) + (*Fts5Config)(unsafe.Pointer(pConfig)).FzContent = sqlite3Fts5Mprintf(tls, bp+40, ts+33867, libc.VaList(bp+8, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, zArg)) } else { (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent = FTS5_CONTENT_NONE } @@ -174972,9 +177087,9 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - if Xsqlite3_strnicmp(tls, ts+33908, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+33873, zCmd, nCmd) == 0 { if (*Fts5Config)(unsafe.Pointer(pConfig)).FzContentRowid != 0 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33922, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33887, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } else { (*Fts5Config)(unsafe.Pointer(pConfig)).FzContentRowid = sqlite3Fts5Strndup(tls, bp+40, zArg, -1) @@ -174982,9 +177097,9 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - if Xsqlite3_strnicmp(tls, ts+33960, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+33925, 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+33971, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33936, 0) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } else { (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize = libc.Bool32(int32(*(*int8)(unsafe.Pointer(zArg))) == '1') @@ -174992,28 +177107,28 @@ func fts5ConfigParseSpecial(tls *libc.TLS, pGlobal uintptr, pConfig uintptr, zCm return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - if Xsqlite3_strnicmp(tls, ts+5010, zCmd, nCmd) == 0 { + if Xsqlite3_strnicmp(tls, ts+5045, zCmd, nCmd) == 0 { *(*[4]Fts5Enum)(unsafe.Pointer(bp + 48 /* aDetail */)) = [4]Fts5Enum{ - {FzName: ts + 7889, FeVal: FTS5_DETAIL_NONE}, - {FzName: ts + 17236}, - {FzName: ts + 34006, FeVal: FTS5_DETAIL_COLUMNS}, + {FzName: ts + 7928, FeVal: FTS5_DETAIL_NONE}, + {FzName: ts + 17266}, + {FzName: ts + 33971, 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+34014, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+33979, 0) } return *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) } - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34045, libc.VaList(bp+24, nCmd, zCmd)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34010, 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)) } @@ -175031,7 +177146,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)) @@ -175065,20 +177180,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+22006) || - 0 == Xsqlite3_stricmp(tls, zCol, ts+16158) { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34073, libc.VaList(bp, zCol)) + if 0 == Xsqlite3_stricmp(tls, zCol, ts+21971) || + 0 == Xsqlite3_stricmp(tls, zCol, ts+16188) { + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34038, libc.VaList(bp, zCol)) rc = SQLITE_ERROR } else if zArg != 0 { - if 0 == Xsqlite3_stricmp(tls, zArg, ts+34103) { + if 0 == Xsqlite3_stricmp(tls, zArg, ts+34068) { *(*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+34113, libc.VaList(bp+8, zArg)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34078, libc.VaList(bp+8, zArg)) rc = SQLITE_ERROR } } @@ -175088,7 +177203,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) @@ -175096,13 +177211,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+34144, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(p)).FzContentRowid)) + sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34109, 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+34149, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)))) + sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34114, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(p)).FazCol + uintptr(i)*8)))) } else { - sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34156, libc.VaList(bp+16, i)) + sqlite3Fts5BufferAppendPrintf(tls, bp+24, bp+32, ts+34121, libc.VaList(bp+16, i)) } } } @@ -175121,7 +177236,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) @@ -175150,8 +177265,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+22006) == 0 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34164, 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+21971) == 0 { + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34129, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pRet)).FzName)) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } @@ -175185,7 +177300,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+34193, libc.VaList(bp+8, zOrig)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+34158, libc.VaList(bp+8, zOrig)) *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = SQLITE_ERROR } else { if bOption != 0 { @@ -175226,19 +177341,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 + 33862 /* "content" */ + zTail = ts + 33827 /* "content" */ } else if (*Fts5Config)(unsafe.Pointer(pRet)).FbColumnsize != 0 { - zTail = ts + 34213 /* "docsize" */ + zTail = ts + 34178 /* "docsize" */ } if zTail != 0 { (*Fts5Config)(unsafe.Pointer(pRet)).FzContent = sqlite3Fts5Mprintf(tls, - bp+40, ts+34221, libc.VaList(bp+16, (*Fts5Config)(unsafe.Pointer(pRet)).FzDb, (*Fts5Config)(unsafe.Pointer(pRet)).FzName, zTail)) + bp+40, ts+34186, 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+16158, -1) + (*Fts5Config)(unsafe.Pointer(pRet)).FzContentRowid = sqlite3Fts5Strndup(tls, bp+40, ts+16188, -1) } // Formulate the zContentExprlist text @@ -175254,7 +177369,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 { @@ -175279,7 +177394,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) @@ -175287,18 +177402,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+34232, 0) + zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34197, 0) for i = 0; zSql != 0 && i < (*Fts5Config)(unsafe.Pointer(pConfig)).FnCol; i++ { var zSep uintptr = func() uintptr { if i == 0 { return ts + 1518 } - return ts + 14535 + return ts + 14574 }() - zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34248, libc.VaList(bp, zSql, zSep, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8)))) + zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34213, libc.VaList(bp, zSql, zSep, *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FazCol + uintptr(i)*8)))) } - zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34255, - libc.VaList(bp+24, zSql, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, ts+22006)) + zSql = sqlite3Fts5Mprintf(tls, bp+48, ts+34220, + libc.VaList(bp+24, zSql, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, ts+21971)) if zSql != 0 { *(*int32)(unsafe.Pointer(bp + 48 /* rc */)) = Xsqlite3_declare_vtab(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, zSql) @@ -175329,7 +177444,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 } @@ -175343,7 +177458,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 { @@ -175370,7 +177485,7 @@ func fts5ConfigSkipArgs(tls *libc.TLS, pIn uintptr) uintptr { /* testdata/sqlite // + 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: */ +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) @@ -175434,13 +177549,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+34281) { + if 0 == Xsqlite3_stricmp(tls, zKey, ts+34246) { var pgsz int32 = 0 if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) { pgsz = Xsqlite3_value_int(tls, pVal) @@ -175450,7 +177565,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+34286) { + } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34251) { var nHashSize int32 = -1 if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) { nHashSize = Xsqlite3_value_int(tls, pVal) @@ -175460,7 +177575,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+34295) { + } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34260) { var nAutomerge int32 = -1 if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) { nAutomerge = Xsqlite3_value_int(tls, pVal) @@ -175473,7 +177588,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+34305) { + } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34270) { var nUsermerge int32 = -1 if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) { nUsermerge = Xsqlite3_value_int(tls, pVal) @@ -175483,7 +177598,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+34315) { + } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+34280) { var nCrisisMerge int32 = -1 if SQLITE_INTEGER == Xsqlite3_value_numeric_type(tls, pVal) { nCrisisMerge = Xsqlite3_value_int(tls, pVal) @@ -175499,7 +177614,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+22006) { + } else if 0 == Xsqlite3_stricmp(tls, zKey, ts+21971) { var zIn uintptr = Xsqlite3_value_text(tls, pVal) // var zRank uintptr at bp, 8 @@ -175522,11 +177637,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 + 34327 /* "SELECT k, v FROM..." */ + var zSelect uintptr = ts + 34292 /* "SELECT k, v FROM..." */ var zSql uintptr *(*uintptr)(unsafe.Pointer(bp + 40 /* p */)) = uintptr(0) *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_OK @@ -175549,7 +177664,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+34359) { + if 0 == Xsqlite3_stricmp(tls, zK, ts+34324) { iVersion = Xsqlite3_value_int(tls, pVal) } else { *(*int32)(unsafe.Pointer(bp + 48 /* bDummy */)) = 0 @@ -175564,7 +177679,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+34367, + ts+34332, libc.VaList(bp+16, iVersion, FTS5_CURRENT_VERSION)) } } @@ -175599,7 +177714,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 // @@ -175618,9 +177733,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 @@ -175632,12 +177747,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) @@ -175699,7 +177814,7 @@ func fts5ExprGetToken(tls *libc.TLS, pParse uintptr, pz uintptr, pToken uintptr) } } if int32(*(*int8)(unsafe.Pointer(z2))) == 0 { - sqlite3Fts5ParseError(tls, pParse, ts+34432, 0) + sqlite3Fts5ParseError(tls, pParse, ts+34397, 0) return FTS5_EOF } } @@ -175712,20 +177827,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+34452, libc.VaList(bp, z)) + sqlite3Fts5ParseError(tls, pParse, ts+34417, 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+34483, uint64(2)) == 0 { + if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 2 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+34448, uint64(2)) == 0 { tok = FTS5_OR } - if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+34486, uint64(3)) == 0 { + if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+34451, uint64(3)) == 0 { tok = FTS5_NOT } - if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+29869, uint64(3)) == 0 { + if (*Fts5Token)(unsafe.Pointer(pToken)).Fn == 3 && libc.Xmemcmp(tls, (*Fts5Token)(unsafe.Pointer(pToken)).Fp, ts+29834, uint64(3)) == 0 { tok = FTS5_AND } break @@ -175737,15 +177852,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) @@ -175823,7 +177938,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) @@ -175898,7 +178013,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++ { @@ -175910,7 +178025,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) @@ -175918,7 +178033,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) @@ -175959,7 +178074,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 @@ -175981,7 +178096,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) @@ -176145,7 +178260,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) @@ -176370,11 +178485,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 @@ -176382,7 +178497,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 @@ -176394,9 +178509,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 @@ -176413,7 +178528,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) @@ -176615,7 +178730,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 @@ -176635,7 +178750,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) @@ -176662,7 +178777,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) @@ -176719,7 +178834,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 @@ -176785,7 +178900,7 @@ func fts5ExprNearInitAll(tls *libc.TLS, pExpr uintptr, pNode uintptr) int32 { /* // 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: */ +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 { @@ -176801,7 +178916,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 @@ -176810,7 +178925,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 @@ -176836,7 +178951,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 } @@ -176855,7 +178970,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) @@ -176923,7 +179038,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 @@ -176982,7 +179097,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 @@ -177001,7 +179116,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 @@ -177019,7 +179134,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 @@ -177035,7 +179150,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 @@ -177061,7 +179176,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 @@ -177111,7 +179226,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) @@ -177123,7 +179238,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)) @@ -177153,7 +179268,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) @@ -177169,7 +179284,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 { @@ -177222,7 +179337,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 @@ -177284,7 +179399,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 @@ -177316,7 +179431,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 @@ -177332,15 +179447,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) @@ -177350,7 +179465,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++ { @@ -177375,7 +179490,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) } @@ -177387,7 +179502,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) @@ -177447,12 +179562,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) @@ -177521,12 +179636,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++ { @@ -177537,12 +179652,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 @@ -177559,7 +179674,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) @@ -177617,7 +179732,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) @@ -177712,17 +179827,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+34490, (*Fts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 { + if (*Fts5Token)(unsafe.Pointer(pTok)).Fn != 4 || libc.Xmemcmp(tls, ts+34455, (*Fts5Token)(unsafe.Pointer(pTok)).Fp, uint64(4)) != 0 { sqlite3Fts5ParseError(tls, - pParse, ts+33519, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(pTok)).Fn, (*Fts5Token)(unsafe.Pointer(pTok)).Fp)) + pParse, ts+33484, 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) @@ -177734,7 +179849,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+34495, libc.VaList(bp, (*Fts5Token)(unsafe.Pointer(p)).Fn, (*Fts5Token)(unsafe.Pointer(p)).Fp)) + pParse, ts+34460, 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') @@ -177753,7 +179868,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 @@ -177791,7 +179906,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 @@ -177813,7 +179928,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) @@ -177831,7 +179946,7 @@ func sqlite3Fts5ParseColset(tls *libc.TLS, pParse uintptr, pColset uintptr, p ui } } if iCol == (*Fts5Config)(unsafe.Pointer(pConfig)).FnCol { - sqlite3Fts5ParseError(tls, pParse, ts+20368, libc.VaList(bp, z)) + sqlite3Fts5ParseError(tls, pParse, ts+20308, libc.VaList(bp, z)) } else { pRet = fts5ParseColset(tls, pParse, pColset, iCol) } @@ -177852,7 +179967,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)))) @@ -177867,7 +179982,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 @@ -177891,7 +180006,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 { @@ -177919,21 +180034,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+34524, 0) + ts+34489, 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: { @@ -177984,7 +180099,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)) @@ -178004,7 +180119,7 @@ func fts5ExprAddChildren(tls *libc.TLS, p uintptr, pSub uintptr) { /* testdata/s // 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: */ +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 @@ -178047,7 +180162,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) @@ -178107,12 +180222,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+34577, + ts+34542, libc.VaList(bp, func() uintptr { if (*Fts5ExprNearset)(unsafe.Pointer(pNear)).FnPhrase == 1 { - return ts + 34627 /* "phrase" */ + return ts + 34592 /* "phrase" */ } - return ts + 34490 /* "NEAR" */ + return ts + 34455 /* "NEAR" */ }())) Xsqlite3_free(tls, pRet) pRet = uintptr(0) @@ -178135,7 +180250,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 @@ -178181,7 +180296,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 @@ -178194,7 +180309,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 @@ -178204,7 +180319,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 } @@ -178213,7 +180328,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 @@ -178234,7 +180349,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(uint64(unsafe.Sizeof(Fts5PoslistPopulator{}))*uint64((*Fts5Expr)(unsafe.Pointer(pExpr)).FnPhrase))) if pRet != 0 { @@ -178258,12 +180373,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 { @@ -178273,7 +180388,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 @@ -178308,7 +180423,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) @@ -178336,7 +180451,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 { @@ -178347,7 +180462,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 { @@ -178397,12 +180512,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 @@ -178453,7 +180568,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 // @@ -178469,14 +180584,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 @@ -178504,7 +180619,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) @@ -178513,7 +180628,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 @@ -178527,7 +180642,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-- { @@ -178536,7 +180651,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-- { @@ -178547,7 +180662,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 @@ -178577,7 +180692,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 @@ -178626,7 +180741,7 @@ func fts5HashAddPoslistSize(tls *libc.TLS, pHash uintptr, p uintptr, p2 uintptr) // (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 @@ -178785,7 +180900,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) @@ -178831,7 +180946,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 @@ -178873,7 +180988,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 @@ -178907,20 +181022,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 @@ -179146,7 +181261,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 // @@ -179354,14 +181469,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 @@ -179369,17 +181484,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 @@ -179393,18 +181508,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 @@ -179426,18 +181541,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 @@ -179454,9 +181569,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 @@ -179464,38 +181579,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)))) } @@ -179503,7 +181618,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) } @@ -179521,7 +181636,7 @@ func fts5IdxMalloc(tls *libc.TLS, p uintptr, nByte Sqlite3_int64) uintptr { /* t // +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: */ +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 { @@ -179545,7 +181660,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) @@ -179556,7 +181671,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) @@ -179568,7 +181683,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 @@ -179595,7 +181710,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+34634, iRowid, 0, p+56) + (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl, ts+34599, iRowid, 0, p+56) } // If either of the sqlite3_blob_open() or sqlite3_blob_reopen() calls @@ -179641,11 +181756,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 { @@ -179657,7 +181772,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, @@ -179672,7 +181787,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) @@ -179683,7 +181798,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+34640, + ts+34605, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))) if (*Fts5Index)(unsafe.Pointer(p)).Frc != 0 { return @@ -179700,7 +181815,7 @@ 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: */ +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) @@ -179711,7 +181826,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+34691, + ts+34656, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) if fts5IndexPrepareStmt(tls, p, p+72, zSql) != 0 { return @@ -179725,7 +181840,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) @@ -179735,7 +181850,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+34740, + ts+34705, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))) } if (*Fts5Index)(unsafe.Pointer(p)).Frc == SQLITE_OK { @@ -179747,7 +181862,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 @@ -179758,22 +181873,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 } @@ -179784,7 +181899,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{}))) @@ -179826,7 +181941,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) @@ -179919,7 +182034,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)) @@ -179939,7 +182054,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 @@ -179962,7 +182077,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) @@ -179990,7 +182105,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) @@ -179999,7 +182114,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+34780, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb))) + Xsqlite3_mprintf(tls, ts+34745, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer((*Fts5Index)(unsafe.Pointer(p)).FpConfig)).FzDb))) if (*Fts5Index)(unsafe.Pointer(p)).Frc != 0 { return int64(0) } @@ -180023,7 +182138,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) @@ -180040,7 +182155,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) @@ -180054,7 +182169,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) @@ -180107,14 +182222,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 @@ -180157,7 +182272,7 @@ func fts5StructurePromoteTo(tls *libc.TLS, p uintptr, iPromote int32, szPromote // // 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 @@ -180206,7 +182321,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) @@ -180242,7 +182357,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 { @@ -180263,7 +182378,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) } @@ -180276,7 +182391,7 @@ func fts5DlidxIterNext(tls *libc.TLS, p uintptr, pIter uintptr) int32 { /* testd // // 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) @@ -180284,11 +182399,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 @@ -180309,7 +182424,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) @@ -180371,7 +182486,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 { @@ -180394,12 +182509,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++ { @@ -180409,7 +182524,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 @@ -180451,16 +182566,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) @@ -180490,7 +182605,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) @@ -180519,7 +182634,7 @@ func fts5GetPoslistSize(tls *libc.TLS, p uintptr, pnSz uintptr, pbDel uintptr) i // // 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) @@ -180564,7 +182679,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 @@ -180596,7 +182711,7 @@ func fts5SegIterLoadRowid(tls *libc.TLS, p uintptr, pIter uintptr) { /* testdata // 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) @@ -180630,7 +182745,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) @@ -180652,7 +182767,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 @@ -180693,7 +182808,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) @@ -180752,7 +182867,7 @@ func fts5SegIterReverseInitPage(tls *libc.TLS, p uintptr, pIter uintptr) { /* te } // -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) @@ -180802,7 +182917,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) } @@ -180810,7 +182925,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) @@ -180839,7 +182954,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) @@ -180944,7 +183059,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) @@ -181069,7 +183184,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 @@ -181169,7 +183284,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 @@ -181197,7 +183312,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) @@ -181431,7 +183546,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) @@ -181439,7 +183554,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+34803, + ts+34768, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))) } return (*Fts5Index)(unsafe.Pointer(p)).FpIdxSelect @@ -181450,7 +183565,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 @@ -181520,7 +183635,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) @@ -181576,7 +183691,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) @@ -181591,7 +183706,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 @@ -181643,7 +183758,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 @@ -181673,7 +183788,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 @@ -181723,7 +183838,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++ { @@ -181734,7 +183849,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 @@ -181757,7 +183872,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 || @@ -181797,7 +183912,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 @@ -181808,7 +183923,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) @@ -181847,7 +183962,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) @@ -181872,12 +183987,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 @@ -181896,7 +184011,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 { @@ -181913,21 +184028,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 { @@ -181937,7 +184052,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) @@ -181963,7 +184078,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) @@ -182043,7 +184158,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) @@ -182099,7 +184214,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) @@ -182150,7 +184265,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) @@ -182211,7 +184326,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 @@ -182219,7 +184334,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 @@ -182239,7 +184354,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 } @@ -182247,7 +184362,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 @@ -182263,7 +184378,7 @@ func fts5IterSetOutputs_Col(tls *libc.TLS, pIter uintptr, pSeg uintptr) { /* tes // // 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 @@ -182325,7 +184440,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 @@ -182347,7 +184462,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 @@ -182392,7 +184507,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 @@ -182595,7 +184710,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 { @@ -182628,7 +184743,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) } @@ -182636,13 +184751,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) @@ -182661,7 +184776,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 @@ -182674,7 +184789,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) @@ -182716,7 +184831,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) @@ -182729,7 +184844,7 @@ func fts5IndexDiscardData(tls *libc.TLS, p uintptr) { /* testdata/sqlite-amalgam // // Buffer (pNew/) 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)))) { @@ -182739,7 +184854,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++ { @@ -182760,7 +184875,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(uint64(unsafe.Sizeof(Fts5DlidxWriter{}))*uint64(nLvl))) @@ -182779,7 +184894,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 @@ -182801,7 +184916,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 { @@ -182834,7 +184949,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) @@ -182844,7 +184959,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 { @@ -182857,7 +184972,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) @@ -182873,7 +184988,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 @@ -182933,7 +185048,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 @@ -182969,14 +185084,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 @@ -183052,7 +185167,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 @@ -183081,7 +185196,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) @@ -183110,7 +185225,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 { @@ -183134,7 +185249,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) @@ -183155,7 +185270,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+34887, + ts+34852, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName))) } @@ -183174,7 +185289,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) @@ -183243,13 +185358,13 @@ 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) @@ -183408,7 +185523,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) @@ -183458,7 +185573,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 @@ -183475,7 +185590,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) @@ -183492,7 +185607,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 @@ -183501,14 +185616,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) @@ -183533,7 +185648,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) @@ -183711,7 +185826,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 { @@ -183720,7 +185835,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 @@ -183781,7 +185896,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) @@ -183815,7 +185930,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) @@ -183840,12 +185955,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 @@ -183872,7 +185987,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) @@ -183904,7 +186019,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 @@ -183914,13 +186029,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) @@ -183937,7 +186052,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) @@ -183993,11 +186108,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 { @@ -184008,7 +186123,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 { @@ -184021,7 +186136,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) @@ -184186,7 +186301,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) @@ -184333,7 +186448,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) { @@ -184353,7 +186468,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) @@ -184364,7 +186479,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) @@ -184375,7 +186490,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) @@ -184394,7 +186509,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) @@ -184405,13 +186520,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+34944, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) + (*Fts5Index)(unsafe.Pointer(p)).FzDataTbl = sqlite3Fts5Mprintf(tls, bp+8, ts+34909, 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+24862, ts+34952, 0, pzErr) + pConfig, ts+24827, ts+34917, 0, pzErr) if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK { - *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = sqlite3Fts5CreateTable(tls, pConfig, ts+11357, - ts+34987, + *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = sqlite3Fts5CreateTable(tls, pConfig, ts+11396, + ts+34952, 1, pzErr) } if *(*int32)(unsafe.Pointer(bp + 8)) == SQLITE_OK { @@ -184428,7 +186543,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 { @@ -184449,7 +186564,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++ { @@ -184476,7 +186591,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 { @@ -184498,7 +186613,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 @@ -184522,7 +186637,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) @@ -184605,7 +186720,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)) @@ -184613,7 +186728,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 @@ -184633,14 +186748,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) @@ -184658,7 +186773,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 @@ -184671,7 +186786,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 @@ -184693,7 +186808,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) @@ -184701,7 +186816,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 } @@ -184710,7 +186825,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) @@ -184723,7 +186838,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+34634, int64(FTS5_STRUCTURE_ROWID), 1, bp+8) + ts+34599, 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 */))) @@ -184732,7 +186847,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) @@ -184746,7 +186861,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)) @@ -184766,7 +186881,7 @@ func sqlite3Fts5IndexEntryCksum(tls *libc.TLS, iRowid I64, iCol int32, iPos int3 // 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: */ +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 @@ -184785,7 +186900,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) @@ -184844,7 +186959,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) @@ -184860,7 +186975,7 @@ func fts5IndexIntegrityCheckSegment(tls *libc.TLS, p uintptr, pSeg uintptr) { /* fts5IndexPrepareStmt(tls, p, bp+24, Xsqlite3_mprintf(tls, - ts+35031, + ts+34996, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, (*Fts5StructureSegment)(unsafe.Pointer(pSeg)).FiSegid))) // Iterate through the b-tree hierarchy. @@ -185013,7 +187128,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) @@ -185072,7 +187187,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+35117) + sqlite3Fts5BufferAppendBlob(tls, p+52, bp+16, uint32(4), ts+35082) 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)) @@ -185103,13 +187218,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) @@ -185142,7 +187257,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 // @@ -185164,7 +187279,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 @@ -185172,9 +187287,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 @@ -185203,35 +187318,35 @@ 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: // @@ -185265,21 +187380,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) @@ -185289,13 +187404,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 { @@ -185313,7 +187428,7 @@ func fts5DestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sqlite- // 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: */ +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) @@ -185371,11 +187486,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) } @@ -185384,14 +187499,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 @@ -185462,7 +187577,7 @@ func fts5UsePatternMatch(tls *libc.TLS, pConfig uintptr, p uintptr) int32 { /* t // * 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) @@ -185483,7 +187598,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+35122, 0) + ts+35087, 0) return SQLITE_ERROR } @@ -185517,7 +187632,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+4910, libc.VaList(bp, iCol)) + Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+4945, libc.VaList(bp, iCol)) idxStr += uintptr(libc.Xstrlen(tls, idxStr+uintptr(iIdxStr))) } @@ -185533,7 +187648,7 @@ func fts5BestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /* } return int8('G') }() - Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+4910, libc.VaList(bp+8, iCol)) + Xsqlite3_snprintf(tls, 6, idxStr+uintptr(iIdxStr), ts+4945, 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) @@ -185624,7 +187739,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 { @@ -185635,7 +187750,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 @@ -185661,7 +187776,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 @@ -185674,11 +187789,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 @@ -185721,7 +187836,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 @@ -185738,7 +187853,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) @@ -185782,7 +187897,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 && @@ -185802,7 +187917,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 { @@ -185831,7 +187946,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) @@ -185876,7 +187991,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+3598, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb))) + ts+3633, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb))) } } else { rc = SQLITE_OK @@ -185890,7 +188005,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) @@ -185908,7 +188023,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+3598, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb))) + *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb))) } Xsqlite3_free(tls, zSql) } @@ -185918,7 +188033,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) @@ -185947,11 +188062,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+35161, + ts+35126, 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 + 14535 /* ", " */ + return ts + 14574 /* ", " */ } return ts + 1518 /* "" */ }(), @@ -185963,9 +188078,9 @@ func fts5CursorFirstSorted(tls *libc.TLS, pTab uintptr, pCsr uintptr, bDesc int3 }(), func() uintptr { if bDesc != 0 { - return ts + 35216 /* "DESC" */ + return ts + 35181 /* "DESC" */ } - return ts + 35221 /* "ASC" */ + return ts + 35186 /* "ASC" */ }())) (*Fts5Cursor)(unsafe.Pointer(pCsr)).FpSorter = pSorter @@ -185985,7 +188100,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) @@ -186000,7 +188115,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) @@ -186016,13 +188131,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+35225, z, n) { + if n == 5 && 0 == Xsqlite3_strnicmp(tls, ts+35190, 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+4992, z, n) { + } else if n == 2 && 0 == Xsqlite3_strnicmp(tls, ts+5027, 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+35231, libc.VaList(bp, n, z)) + (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+35196, libc.VaList(bp, n, z)) rc = SQLITE_ERROR } @@ -186032,7 +188147,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 { @@ -186045,7 +188160,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) @@ -186057,7 +188172,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+35259, libc.VaList(bp, zRankArgs)) + var zSql uintptr = sqlite3Fts5Mprintf(tls, bp+16, ts+35224, 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, @@ -186089,7 +188204,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+35269, libc.VaList(bp+8, zRank)) + (*Fts5FullTable)(unsafe.Pointer(pTab)).Fp.Fbase.FzErrMsg = Xsqlite3_mprintf(tls, ts+35234, libc.VaList(bp+8, zRank)) *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_ERROR } } @@ -186098,7 +188213,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) @@ -186121,21 +188236,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+35290, libc.VaList(bp, z)) + ts+35255, 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 + 33673 /* "bm25" */ + (*Fts5Cursor)(unsafe.Pointer(pCsr)).FzRank = ts + 33638 /* "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 { @@ -186154,7 +188269,7 @@ func fts5GetRowidLimit(tls *libc.TLS, pVal uintptr, iDefault I64) I64 { /* testd // 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: */ +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) @@ -186194,7 +188309,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+35122, 0) + ts+35087, 0) return SQLITE_ERROR __1: ; @@ -186429,7 +188544,7 @@ __35: goto __40 } *(*uintptr)(unsafe.Pointer((*Fts5Config)(unsafe.Pointer(pConfig)).FpzErrmsg)) = Xsqlite3_mprintf(tls, - ts+35323, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) + ts+35288, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) rc = SQLITE_ERROR goto __41 __40: @@ -186475,7 +188590,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 { @@ -186486,7 +188601,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 @@ -186500,7 +188615,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 @@ -186530,7 +188645,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) @@ -186567,14 +188682,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+3598, libc.VaList(bp, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer((*Fts5Table)(unsafe.Pointer(pTab)).FpConfig)).Fdb))) + ts+3633, 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 @@ -186596,7 +188711,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) @@ -186604,29 +188719,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+35359, zCmd) { + if 0 == Xsqlite3_stricmp(tls, ts+35324, zCmd) { if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL { fts5SetVtabError(tls, pTab, - ts+35370, 0) + ts+35335, 0) rc = SQLITE_ERROR } else { rc = sqlite3Fts5StorageDeleteAll(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage) } - } else if 0 == Xsqlite3_stricmp(tls, ts+35450, zCmd) { + } else if 0 == Xsqlite3_stricmp(tls, ts+35415, zCmd) { if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NONE { fts5SetVtabError(tls, pTab, - ts+35458, 0) + ts+35423, 0) rc = SQLITE_ERROR } else { rc = sqlite3Fts5StorageRebuild(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage) } - } else if 0 == Xsqlite3_stricmp(tls, ts+16825, zCmd) { + } else if 0 == Xsqlite3_stricmp(tls, ts+16855, zCmd) { rc = sqlite3Fts5StorageOptimize(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage) - } else if 0 == Xsqlite3_stricmp(tls, ts+35514, zCmd) { + } else if 0 == Xsqlite3_stricmp(tls, ts+35479, 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+35520, zCmd) { + } else if 0 == Xsqlite3_stricmp(tls, ts+35485, zCmd) { var iArg int32 = Xsqlite3_value_int(tls, pVal) rc = sqlite3Fts5StorageIntegrity(tls, (*Fts5FullTable)(unsafe.Pointer(pTab)).FpStorage, iArg) } else { @@ -186645,7 +188760,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 { @@ -186655,7 +188770,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) @@ -186678,7 +188793,7 @@ func fts5StorageInsert(tls *libc.TLS, pRc uintptr, pTab uintptr, apVal uintptr, // 2. The "new" rowid. // 3. Values for each of the nCol matchable columns. // 4. Values for the two hidden columns ( and "rank"). -func fts5UpdateMethod(tls *libc.TLS, pVtab uintptr, nArg int32, apVal uintptr, pRowid uintptr) int32 { /* testdata/sqlite-amalgamation-3380500/sqlite3.c:233334:12: */ +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) @@ -186700,7 +188815,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+17370, z) { + 0 == Xsqlite3_stricmp(tls, ts+17400, 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))) @@ -186725,12 +188840,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+35536, + ts+35501, libc.VaList(bp, func() uintptr { if nArg > 1 { - return ts + 20269 /* "UPDATE" */ + return ts + 20209 /* "UPDATE" */ } - return ts + 35573 /* "DELETE from" */ + return ts + 35538 /* "DELETE from" */ }(), (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = SQLITE_ERROR } else if nArg == 1 { @@ -186780,7 +188895,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 @@ -186792,7 +188907,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 @@ -186801,7 +188916,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 @@ -186809,7 +188924,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 @@ -186817,46 +188932,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 || @@ -186873,7 +188988,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) @@ -186930,7 +189045,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) @@ -187014,7 +189129,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 || @@ -187024,7 +189139,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 || @@ -187040,11 +189155,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 @@ -187056,7 +189171,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) @@ -187114,7 +189229,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) @@ -187152,7 +189267,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) @@ -187174,7 +189289,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) @@ -187196,7 +189311,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) @@ -187219,7 +189334,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) @@ -187252,7 +189367,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) @@ -187333,10 +189448,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) @@ -187372,7 +189487,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 { @@ -187381,7 +189496,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 { @@ -187391,7 +189506,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) @@ -187404,7 +189519,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+35585, libc.VaList(bp, iCsrId)) + var zErr uintptr = Xsqlite3_mprintf(tls, ts+35550, libc.VaList(bp, iCsrId)) Xsqlite3_result_error(tls, context, zErr, -1) Xsqlite3_free(tls, zErr) } else { @@ -187414,7 +189529,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 { @@ -187436,7 +189551,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) @@ -187500,7 +189615,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 @@ -187540,7 +189655,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 @@ -187559,12 +189674,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) } @@ -187572,7 +189687,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) @@ -187581,7 +189696,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) @@ -187590,7 +189705,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 @@ -187599,7 +189714,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 { @@ -187630,7 +189745,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 @@ -187659,7 +189774,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) { @@ -187677,7 +189792,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 @@ -187693,7 +189808,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) @@ -187709,7 +189824,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+35606, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azArg)))) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35571, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(azArg)))) } else { rc = (*struct { f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32 @@ -187728,7 +189843,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+35628, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+35593, 0) } } else { (*Fts5Config)(unsafe.Pointer(pConfig)).FePattern = sqlite3Fts5TokenizerPattern(tls, @@ -187744,7 +189859,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 @@ -187770,28 +189885,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+35659) + ppApi = Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(apArg)), ts+35624) 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+35672, -1, libc.UintptrFromInt32(-1)) + Xsqlite3_result_text(tls, pCtx, ts+35637, -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 { @@ -187802,10 +189917,10 @@ func fts5ShadowName(tls *libc.TLS, zName uintptr) int32 { /* testdata/sqlite-ama } var azName2 = [5]uintptr{ - ts + 35763, ts + 33862, ts + 24862, ts + 34213, ts + 11357, -} /* testdata/sqlite-amalgamation-3380500/sqlite3.c:234522:21 */ + ts + 35728, ts + 33827, ts + 24827, ts + 34178, ts + 11396, +} /* 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) @@ -187826,7 +189941,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+35770, uintptr(unsafe.Pointer(&fts5Mod)), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5ModuleDestroy}))) + rc = Xsqlite3_create_module_v2(tls, db, ts+35735, uintptr(unsafe.Pointer(&fts5Mod)), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{fts5ModuleDestroy}))) if rc == SQLITE_OK { rc = sqlite3Fts5IndexInit(tls, db) } @@ -187844,13 +189959,13 @@ func fts5Init(tls *libc.TLS, db uintptr) int32 { /* testdata/sqlite-amalgamation } if rc == SQLITE_OK { rc = Xsqlite3_create_function(tls, - db, ts+35770, 1, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { + db, ts+35735, 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+35775, 0, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { + db, ts+35740, 0, SQLITE_UTF8, p, *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32, uintptr) }{fts5SourceIdFunc})), uintptr(0), uintptr(0)) } @@ -187888,7 +190003,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 @@ -187897,7 +190012,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) } @@ -187905,7 +190020,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) @@ -187916,20 +190031,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 + 35790, - ts + 35858, - ts + 35927, + ts + 35755, + ts + 35823, + ts + 35892, - ts + 35960, - ts + 35999, - ts + 36039, - ts + 36078, - ts + 36119, + ts + 35925, + ts + 35964, + ts + 36004, + ts + 36043, + ts + 36084, - ts + 36158, + ts + 36123, - ts + 36200, - ts + 36240, + ts + 36165, + ts + 36205, } var pC uintptr = (*Fts5Storage)(unsafe.Pointer(p)).FpConfig var zSql uintptr = uintptr(0) @@ -187996,7 +190111,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+3598, libc.VaList(bp+120, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pC)).Fdb))) + *(*uintptr)(unsafe.Pointer(pzErrMsg)) = Xsqlite3_mprintf(tls, ts+3633, libc.VaList(bp+120, Xsqlite3_errmsg(tls, (*Fts5Config)(unsafe.Pointer(pC)).Fdb))) } } } @@ -188006,7 +190121,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 @@ -188028,79 +190143,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+36263, + ts+36228, 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+36367, + ts+36332, 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+36405, + ts+36370, 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+36443, + ts+36408, 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+24862, zName) - fts5StorageRenameOne(tls, pConfig, bp, ts+11357, zName) - fts5StorageRenameOne(tls, pConfig, bp, ts+35763, zName) + fts5StorageRenameOne(tls, pConfig, bp, ts+24827, zName) + fts5StorageRenameOne(tls, pConfig, bp, ts+11396, zName) + fts5StorageRenameOne(tls, pConfig, bp, ts+35728, zName) if (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 { - fts5StorageRenameOne(tls, pConfig, bp, ts+34213, zName) + fts5StorageRenameOne(tls, pConfig, bp, ts+34178, zName) } if (*Fts5Config)(unsafe.Pointer(pConfig)).FeContent == FTS5_CONTENT_NORMAL { - fts5StorageRenameOne(tls, pConfig, bp, ts+33862, zName) + fts5StorageRenameOne(tls, pConfig, bp, ts+33827, 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+36485, + rc = fts5ExecPrintf(tls, (*Fts5Config)(unsafe.Pointer(pConfig)).Fdb, bp+64, ts+36450, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zPost, zDefn, func() uintptr { if bWithout != 0 { - return ts + 29515 /* " WITHOUT ROWID" */ + return ts + 29480 /* " WITHOUT ROWID" */ } return ts + 1518 /* "" */ }())) if *(*uintptr)(unsafe.Pointer(bp + 64)) != 0 { *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, - ts+36515, + ts+36480, 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 */))) } @@ -188113,7 +190228,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) @@ -188142,27 +190257,27 @@ func sqlite3Fts5StorageOpen(tls *libc.TLS, pConfig uintptr, pIndex uintptr, bCre } else { var i int32 var iOff int32 - Xsqlite3_snprintf(tls, nDefn, zDefn, ts+36559, 0) + Xsqlite3_snprintf(tls, nDefn, zDefn, ts+36524, 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+36582, libc.VaList(bp, i)) + Xsqlite3_snprintf(tls, nDefn-iOff, zDefn+uintptr(iOff), ts+36547, libc.VaList(bp, i)) iOff = iOff + int32(libc.Xstrlen(tls, zDefn+uintptr(iOff))) } - rc = sqlite3Fts5CreateTable(tls, pConfig, ts+33862, zDefn, 0, pzErr) + rc = sqlite3Fts5CreateTable(tls, pConfig, ts+33827, zDefn, 0, pzErr) } Xsqlite3_free(tls, zDefn) } if rc == SQLITE_OK && (*Fts5Config)(unsafe.Pointer(pConfig)).FbColumnsize != 0 { rc = sqlite3Fts5CreateTable(tls, - pConfig, ts+34213, ts+36588, 0, pzErr) + pConfig, ts+34178, ts+36553, 0, pzErr) } if rc == SQLITE_OK { rc = sqlite3Fts5CreateTable(tls, - pConfig, ts+35763, ts+36620, 1, pzErr) + pConfig, ts+35728, ts+36585, 1, pzErr) } if rc == SQLITE_OK { - rc = sqlite3Fts5StorageConfigValue(tls, p, ts+34359, uintptr(0), FTS5_CURRENT_VERSION) + rc = sqlite3Fts5StorageConfigValue(tls, p, ts+34324, uintptr(0), FTS5_CURRENT_VERSION) } } @@ -188174,7 +190289,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 @@ -188193,12 +190308,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 @@ -188215,7 +190330,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) @@ -188284,7 +190399,7 @@ func fts5StorageDeleteFromIndex(tls *libc.TLS, p uintptr, iDel I64, apVal uintpt // // 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) @@ -188311,7 +190426,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) @@ -188325,7 +190440,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) @@ -188349,7 +190464,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) @@ -188390,7 +190505,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) @@ -188402,12 +190517,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+36637, + ts+36602, 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+36687, + ts+36652, libc.VaList(bp+32, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName)) } @@ -188417,12 +190532,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+34359, uintptr(0), FTS5_CURRENT_VERSION) + rc = sqlite3Fts5StorageConfigValue(tls, p, ts+34324, 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) @@ -188486,15 +190601,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) } @@ -188505,7 +190620,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) @@ -188527,7 +190642,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) @@ -188559,7 +190674,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) @@ -188604,7 +190719,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) @@ -188612,7 +190727,7 @@ func fts5StorageCount(tls *libc.TLS, p uintptr, zSuffix uintptr, pnRow uintptr) var zSql uintptr var rc int32 - zSql = Xsqlite3_mprintf(tls, ts+36716, + zSql = Xsqlite3_mprintf(tls, ts+36681, libc.VaList(bp, (*Fts5Config)(unsafe.Pointer(pConfig)).FzDb, (*Fts5Config)(unsafe.Pointer(pConfig)).FzName, zSuffix)) if zSql == uintptr(0) { rc = SQLITE_NOMEM @@ -188639,13 +190754,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) @@ -188711,7 +190826,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) @@ -188809,14 +190924,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+33862, bp+48) + rc = fts5StorageCount(tls, p, ts+33827, 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+34213, bp+56) + rc = fts5StorageCount(tls, p, ts+34178, bp+56) if rc == SQLITE_OK && *(*I64)(unsafe.Pointer(bp + 56)) != (*Fts5Storage)(unsafe.Pointer(p)).FnTotalRow { rc = SQLITE_CORRUPT | int32(1)<<8 } @@ -188836,7 +190951,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) @@ -188850,7 +190965,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) @@ -188860,7 +190975,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++ { @@ -188878,7 +190993,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) @@ -188909,7 +191024,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) @@ -188927,7 +191042,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 @@ -188944,7 +191059,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 { @@ -188958,12 +191073,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) @@ -189018,13 +191133,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 { @@ -189034,12 +191149,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 @@ -189055,9 +191170,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+36748) { + if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36713) { fts5AsciiAddExceptions(tls, p, zArg, 1) - } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36759) { + } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36724) { fts5AsciiAddExceptions(tls, p, zArg, 0) } else { rc = SQLITE_ERROR @@ -189074,7 +191189,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))) @@ -189086,7 +191201,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) @@ -189167,7 +191282,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 */ // ************************************************************************* // @@ -189177,11 +191292,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 @@ -189236,7 +191351,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 @@ -189258,7 +191373,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) @@ -189268,7 +191383,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 { @@ -189288,7 +191403,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 @@ -189299,7 +191414,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 + 36770 /* "L* N* Co" */ + var zCat uintptr = ts + 36735 /* "L* N* Co" */ var i int32 libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Unicode61Tokenizer{}))) @@ -189312,7 +191427,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+36779) { + if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36744) { zCat = *(*uintptr)(unsafe.Pointer(azArg + uintptr(i+1)*8)) } } @@ -189323,18 +191438,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+36790) { + if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36755) { 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+36748) { + } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36713) { rc = fts5UnicodeAddExceptions(tls, p, zArg, 1) - } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36759) { + } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36724) { rc = fts5UnicodeAddExceptions(tls, p, zArg, 0) - } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36779) { + } else if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+36744) { // no-op } else { rc = SQLITE_ERROR @@ -189356,12 +191471,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 @@ -189617,7 +191732,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 */ // ************************************************************************* // @@ -189626,10 +191741,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 { @@ -189640,7 +191755,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) @@ -189648,7 +191763,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 + 36808 /* "unicode61" */ + var zBase uintptr = ts + 36773 /* "unicode61" */ if nArg > 0 { zBase = *(*uintptr)(unsafe.Pointer(azArg)) @@ -189693,9 +191808,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 @@ -189705,15 +191820,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 @@ -189734,12 +191849,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 { @@ -189749,7 +191864,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) { @@ -189759,7 +191874,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 { @@ -189777,14 +191892,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 { @@ -189799,13 +191914,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+36818, aBuf+uintptr(nBuf-2), uint64(2)) { + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36783, aBuf+uintptr(nBuf-2), uint64(2)) { if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 } @@ -189813,11 +191928,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'c': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36821, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36786, 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+36826, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36791, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 } @@ -189825,7 +191940,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'e': - if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36831, aBuf+uintptr(nBuf-2), uint64(2)) { + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36796, aBuf+uintptr(nBuf-2), uint64(2)) { if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 } @@ -189833,7 +191948,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'i': - if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36834, aBuf+uintptr(nBuf-2), uint64(2)) { + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36799, aBuf+uintptr(nBuf-2), uint64(2)) { if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 } @@ -189841,11 +191956,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'l': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36837, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36802, 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+36842, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36807, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt1(tls, aBuf, nBuf-4) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 } @@ -189853,19 +191968,19 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'n': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36847, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36812, 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+36851, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36816, 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+36857, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36822, 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+36862, aBuf+uintptr(nBuf-3), uint64(3)) { + } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36827, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -189873,11 +191988,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'o': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36866, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36831, 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+36870, aBuf+uintptr(nBuf-2), uint64(2)) { + } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36835, aBuf+uintptr(nBuf-2), uint64(2)) { if fts5Porter_MGt1(tls, aBuf, nBuf-2) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 } @@ -189885,7 +192000,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 's': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36873, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36838, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -189893,11 +192008,11 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 't': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36877, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36842, 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+36881, aBuf+uintptr(nBuf-3), uint64(3)) { + } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36846, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -189905,7 +192020,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'u': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36885, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36850, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -189913,7 +192028,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'v': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36889, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36854, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -189921,7 +192036,7 @@ func fts5PorterStep4(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'z': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36893, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36858, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt1(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -189932,30 +192047,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+36897, aBuf+uintptr(nBuf-2), uint64(2)) { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36877, uint64(3)) + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36862, aBuf+uintptr(nBuf-2), uint64(2)) { + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36842, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3 ret = 1 } break case 'b': - if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36900, aBuf+uintptr(nBuf-2), uint64(2)) { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36903, uint64(3)) + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36865, aBuf+uintptr(nBuf-2), uint64(2)) { + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36868, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3 ret = 1 } break case 'i': - if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36907, aBuf+uintptr(nBuf-2), uint64(2)) { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36893, uint64(3)) + if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+36872, aBuf+uintptr(nBuf-2), uint64(2)) { + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-2), ts+36858, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 + 3 ret = 1 } @@ -189965,143 +192080,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+36910, aBuf+uintptr(nBuf-7), uint64(7)) { + if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36875, aBuf+uintptr(nBuf-7), uint64(7)) { if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36877, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36842, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3 } - } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+36918, aBuf+uintptr(nBuf-6), uint64(6)) { + } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+36883, aBuf+uintptr(nBuf-6), uint64(6)) { if fts5Porter_MGt0(tls, aBuf, nBuf-6) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36925, uint64(4)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36890, uint64(4)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 6 + 4 } } break case 'c': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36930, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36895, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36826, uint64(4)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36791, uint64(4)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 4 } - } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36935, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36900, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36821, uint64(4)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36786, uint64(4)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 4 } } break case 'e': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36940, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36905, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36893, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36858, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3 } } break case 'g': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36945, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36910, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+15371, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+15401, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3 } } break case 'l': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36950, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36915, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36903, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36868, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 3 } - } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36954, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36919, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36818, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36783, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 2 } - } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36959, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36924, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36862, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36827, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3 } - } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36965, aBuf+uintptr(nBuf-3), uint64(3)) { + } else if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36930, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36969, uint64(1)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+36934, uint64(1)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 1 } - } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36971, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36936, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36885, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36850, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3 } } break case 'o': - if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36977, aBuf+uintptr(nBuf-7), uint64(7)) { + if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36942, aBuf+uintptr(nBuf-7), uint64(7)) { if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36893, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36858, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3 } - } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36985, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36950, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36877, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36842, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3 } - } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36991, aBuf+uintptr(nBuf-4), uint64(4)) { + } else if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+36956, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36877, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36842, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 3 } } break case 's': - if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36996, aBuf+uintptr(nBuf-5), uint64(5)) { + if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36961, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36818, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36783, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2 } - } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+37002, aBuf+uintptr(nBuf-7), uint64(7)) { + } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36967, aBuf+uintptr(nBuf-7), uint64(7)) { if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36889, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36854, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3 } - } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+37010, aBuf+uintptr(nBuf-7), uint64(7)) { + } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36975, aBuf+uintptr(nBuf-7), uint64(7)) { if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+37018, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36983, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3 } - } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+37022, aBuf+uintptr(nBuf-7), uint64(7)) { + } else if nBuf > 7 && 0 == libc.Xmemcmp(tls, ts+36987, aBuf+uintptr(nBuf-7), uint64(7)) { if fts5Porter_MGt0(tls, aBuf, nBuf-7) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36885, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-7), ts+36850, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 7 + 3 } } break case 't': - if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37030, aBuf+uintptr(nBuf-5), uint64(5)) { + if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+36995, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36818, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36783, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2 } - } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37036, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37001, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36889, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36854, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 3 } - } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+37042, aBuf+uintptr(nBuf-6), uint64(6)) { + } else if nBuf > 6 && 0 == libc.Xmemcmp(tls, ts+37007, aBuf+uintptr(nBuf-6), uint64(6)) { if fts5Porter_MGt0(tls, aBuf, nBuf-6) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36903, uint64(3)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-6), ts+36868, uint64(3)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 6 + 3 } } @@ -190111,22 +192226,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+37049, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+37014, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36834, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-4), ts+36799, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 + 2 } } break case 's': - if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+37054, aBuf+uintptr(nBuf-4), uint64(4)) { + if nBuf > 4 && 0 == libc.Xmemcmp(tls, ts+37019, aBuf+uintptr(nBuf-4), uint64(4)) { if fts5Porter_MGt0(tls, aBuf, nBuf-4) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 4 } @@ -190134,21 +192249,21 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 't': - if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37059, aBuf+uintptr(nBuf-5), uint64(5)) { + if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37024, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36834, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36799, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2 } - } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37065, aBuf+uintptr(nBuf-5), uint64(5)) { + } else if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37030, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36834, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36799, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2 } } break case 'u': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+37018, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+36983, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 } @@ -190156,7 +192271,7 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'v': - if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37071, aBuf+uintptr(nBuf-5), uint64(5)) { + if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37036, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 } @@ -190164,9 +192279,9 @@ func fts5PorterStep3(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* test break case 'z': - if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37077, aBuf+uintptr(nBuf-5), uint64(5)) { + if nBuf > 5 && 0 == libc.Xmemcmp(tls, ts+37042, aBuf+uintptr(nBuf-5), uint64(5)) { if fts5Porter_MGt0(tls, aBuf, nBuf-5) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36818, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-5), ts+36783, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 5 + 2 } } @@ -190176,18 +192291,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+37083, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+37048, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_MGt0(tls, aBuf, nBuf-3) != 0 { - libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+37087, uint64(2)) + libc.Xmemcpy(tls, aBuf+uintptr(nBuf-3), ts+37052, uint64(2)) *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 + 2 } - } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+37090, aBuf+uintptr(nBuf-2), uint64(2)) { + } else if nBuf > 2 && 0 == libc.Xmemcmp(tls, ts+37055, aBuf+uintptr(nBuf-2), uint64(2)) { if fts5Porter_Vowel(tls, aBuf, nBuf-2) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 2 ret = 1 @@ -190196,7 +192311,7 @@ func fts5PorterStep1B(tls *libc.TLS, aBuf uintptr, pnBuf uintptr) int32 { /* tes break case 'n': - if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+37093, aBuf+uintptr(nBuf-3), uint64(3)) { + if nBuf > 3 && 0 == libc.Xmemcmp(tls, ts+37058, aBuf+uintptr(nBuf-3), uint64(3)) { if fts5Porter_Vowel(tls, aBuf, nBuf-3) != 0 { *(*int32)(unsafe.Pointer(pnBuf)) = nBuf - 3 ret = 1 @@ -190213,7 +192328,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' { @@ -190229,7 +192344,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) @@ -190327,7 +192442,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) @@ -190348,20 +192463,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 @@ -190372,7 +192487,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+37097) { + if 0 == Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), ts+37062) { if int32(*(*int8)(unsafe.Pointer(zArg))) != '0' && int32(*(*int8)(unsafe.Pointer(zArg))) != '1' || *(*int8)(unsafe.Pointer(zArg + 1)) != 0 { rc = SQLITE_ERROR } else { @@ -190392,7 +192507,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) @@ -190545,7 +192660,7 @@ func fts5TriTokenize(tls *libc.TLS, pTok uintptr, pCtx uintptr, unusedFlags int3 // "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: */ +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})) { @@ -190559,27 +192674,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 + 36808, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { + {FzName: ts + 36773, 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 + 37112, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { + {FzName: ts + 37077, 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 + 37118, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { + {FzName: ts + 37083, 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 + 37125, Fx: Fts5_tokenizer{FxCreate: *(*uintptr)(unsafe.Pointer(&struct { + {FzName: ts + 37090, 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 @@ -190605,7 +192720,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 // @@ -190628,7 +192743,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) @@ -190699,7 +192814,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 { @@ -190718,7 +192833,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 @@ -190779,7 +192894,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)}, @@ -190837,7 +192952,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), @@ -190849,9 +192964,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': @@ -191048,7 +193163,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), @@ -191227,7 +193342,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), @@ -191406,9 +193521,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 @@ -191448,7 +193563,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 { @@ -191480,7 +193595,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) @@ -191555,7 +193670,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 @@ -191731,7 +193846,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) @@ -191777,7 +193892,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 @@ -191790,7 +193905,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 @@ -191850,7 +193965,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 // @@ -191890,7 +194005,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 @@ -191911,9 +194026,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. @@ -191921,7 +194036,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) @@ -191929,14 +194044,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+37133) == 0 { + if Xsqlite3_stricmp(tls, zCopy, ts+37098) == 0 { *(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_COL - } else if Xsqlite3_stricmp(tls, zCopy, ts+37137) == 0 { + } else if Xsqlite3_stricmp(tls, zCopy, ts+37102) == 0 { *(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_ROW - } else if Xsqlite3_stricmp(tls, zCopy, ts+37141) == 0 { + } else if Xsqlite3_stricmp(tls, zCopy, ts+37106) == 0 { *(*int32)(unsafe.Pointer(peType)) = FTS5_VOCAB_INSTANCE } else { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37150, libc.VaList(bp, zCopy)) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37115, libc.VaList(bp, zCopy)) *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = SQLITE_ERROR } Xsqlite3_free(tls, zCopy) @@ -191946,14 +194061,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 @@ -191978,24 +194093,24 @@ func fts5VocabDestroyMethod(tls *libc.TLS, pVtab uintptr) int32 { /* testdata/sq // 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: */ +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 + 37184, + ts + 37149, + ts + 37189, ts + 37224, - ts + 37259, } 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+23158, *(*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+23123, *(*uintptr)(unsafe.Pointer(argv + 1*8)), uint64(4)) == 0) if argc != 5 && bDb == 0 { - *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37302, 0) + *(*uintptr)(unsafe.Pointer(pzErr)) = Xsqlite3_mprintf(tls, ts+37267, 0) *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = SQLITE_ERROR } else { var nByte int32 // Bytes of space to allocate @@ -192048,11 +194163,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) } @@ -192066,7 +194181,7 @@ func fts5VocabCreateMethod(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, // // 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 @@ -192134,7 +194249,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) @@ -192147,11 +194262,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+37335, libc.VaList(bp, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl)) + ts+37300, libc.VaList(bp, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl)) return SQLITE_ERROR } zSql = sqlite3Fts5Mprintf(tls, bp+64, - ts+37366, + ts+37331, 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)) @@ -192175,7 +194290,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+37417, libc.VaList(bp+48, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl)) + ts+37382, libc.VaList(bp+48, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Db, (*Fts5VocabTable)(unsafe.Pointer(pTab)).FzFts5Tbl)) *(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = SQLITE_ERROR } } else { @@ -192201,7 +194316,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) @@ -192215,7 +194330,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) @@ -192224,7 +194339,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) @@ -192255,7 +194370,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 @@ -192284,7 +194399,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) @@ -192428,7 +194543,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 @@ -192502,12 +194617,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 @@ -192580,16 +194695,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+37443, uintptr(unsafe.Pointer(&fts5Vocab)), p, uintptr(0)) + return Xsqlite3_create_module_v2(tls, db, ts+37408, uintptr(unsafe.Pointer(&fts5Vocab)), p, uintptr(0)) } var fts5Vocab = Sqlite3_module{ @@ -192606,7 +194721,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 ******************************************* @@ -192633,963 +194748,966 @@ var fts5Vocab = Sqlite3_module{ //************* 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 + 37453 /* "2022-05-06 15:25..." */ +func Xsqlite3_sourceid(tls *libc.TLS) uintptr { /* testdata/sqlite-amalgamation-3390200/sqlite3.c:241618:23: */ + return ts + 37418 /* "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: + *(*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, uintptr, int32, int32) int32 - }{posixOpen})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35172:21: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 32 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, int32) int32 }{libc.Xclose})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35175:21: + }{posixOpen})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35854:21: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 32 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, int32) int32 }{libc.Xclose})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35857:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 56 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, int32) int32 - }{libc.Xaccess})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35178:21: + }{libc.Xaccess})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35860:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 80 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, Size_t) uintptr - }{libc.Xgetcwd})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35181:21: + }{libc.Xgetcwd})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35863:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 104 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr) int32 - }{libc.Xstat})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35184:21: + }{libc.Xstat})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35866:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 128 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, int32, uintptr) int32 - }{libc.Xfstat})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35197:21: + }{libc.Xfstat})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35879:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 152 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, int32, Off_t) int32 - }{libc.Xftruncate})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35201:21: + }{libc.Xftruncate})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35883:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 176 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, int32, int32, uintptr) int32 - }{libc.Xfcntl})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35204:21: + }{libc.Xfcntl})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35886:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 200 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, int32, uintptr, Size_t) Ssize_t - }{libc.Xread})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35207:21: + }{libc.Xread})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35889:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 272 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, int32, uintptr, Size_t) Ssize_t - }{libc.Xwrite})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35224:21: + }{libc.Xwrite})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35906:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 344 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, int32, Mode_t) int32 - }{libc.Xfchmod})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35243:21: + }{libc.Xfchmod})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35925:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 392 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr) int32 - }{libc.Xunlink})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35253:21: + }{libc.Xunlink})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35935:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 416 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr) int32 - }{openDirectory})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35256:25: + }{openDirectory})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35938:25: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 440 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, Mode_t) int32 - }{libc.Xmkdir})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35259:21: + }{libc.Xmkdir})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35941:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 464 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr) int32 - }{libc.Xrmdir})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35262:21: + }{libc.Xrmdir})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35944:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 488 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, int32, Uid_t, Gid_t) int32 - }{libc.Xfchown})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35266:21: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 512 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) Uid_t }{libc.Xgeteuid})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35273:21: + }{libc.Xfchown})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35948:21: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 512 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) Uid_t }{libc.Xgeteuid})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35955:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 536 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, Size_t, int32, int32, int32, Off_t) uintptr - }{libc.Xmmap})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35280:21: + }{libc.Xmmap})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35962:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 560 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, Size_t) int32 - }{libc.Xmunmap})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35287:21: - *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 608 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) int32 }{unixGetpagesize})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35301:21: + }{libc.Xmunmap})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35969:21: + *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 608 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) int32 }{unixGetpagesize})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35983:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 632 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr, Size_t) Ssize_t - }{libc.Xreadlink})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35308:21: + }{libc.Xreadlink})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35990:21: *(*Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 656 /* .pCurrent */)) = *(*uintptr)(unsafe.Pointer(&struct { f func(*libc.TLS, uintptr, uintptr) int32 - }{libc.Xlstat})) // testdata/sqlite-amalgamation-3380500/sqlite3.c:35315:22: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&posixIoFinder)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 40)) = unixOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 48)) = unixDelete // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 56)) = unixAccess // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 64)) = unixFullPathname // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 72)) = unixDlOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 80)) = unixDlError // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 88)) = unixDlSym // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 96)) = unixDlClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 104)) = unixRandomness // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 112)) = unixSleep // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 120)) = unixCurrentTime // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 128)) = unixGetLastError // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 136)) = unixCurrentTimeInt64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 144)) = unixSetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 152)) = unixGetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 160)) = unixNextSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42850:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 200 /* .pAppData */)) = uintptr(unsafe.Pointer(&nolockIoFinder)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 208)) = unixOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 216)) = unixDelete // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 224)) = unixAccess // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 232)) = unixFullPathname // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 240)) = unixDlOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 248)) = unixDlError // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 256)) = unixDlSym // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 264)) = unixDlClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 272)) = unixRandomness // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 280)) = unixSleep // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 288)) = unixCurrentTime // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 296)) = unixGetLastError // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 304)) = unixCurrentTimeInt64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 312)) = unixSetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 320)) = unixGetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 328)) = unixNextSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42852:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 368 /* .pAppData */)) = uintptr(unsafe.Pointer(&dotlockIoFinder)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 376)) = unixOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 384)) = unixDelete // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 392)) = unixAccess // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 400)) = unixFullPathname // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 408)) = unixDlOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 416)) = unixDlError // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 424)) = unixDlSym // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 432)) = unixDlClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 440)) = unixRandomness // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 448)) = unixSleep // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 456)) = unixCurrentTime // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 464)) = unixGetLastError // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 472)) = unixCurrentTimeInt64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 480)) = unixSetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 488)) = unixGetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 496)) = unixNextSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42853:5: - *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 536 /* .pAppData */)) = uintptr(unsafe.Pointer(&posixIoFinder)) // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 544)) = unixOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 552)) = unixDelete // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 560)) = unixAccess // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 568)) = unixFullPathname // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 576)) = unixDlOpen // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 584)) = unixDlError // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 592)) = unixDlSym // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 600)) = unixDlClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 608)) = unixRandomness // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 616)) = unixSleep // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 624)) = unixCurrentTime // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 632)) = unixGetLastError // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 640)) = unixCurrentTimeInt64 // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 648)) = unixSetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 656)) = unixGetSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 664)) = unixNextSystemCall // testdata/sqlite-amalgamation-3380500/sqlite3.c:42854:5: - *(*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) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoFinder)) + 0)) = dotlockIoFinderImpl // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 8)) = dotlockClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 16)) = unixRead // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 24)) = unixWrite // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 32)) = unixTruncate // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 40)) = unixSync // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 48)) = unixFileSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 56)) = dotlockLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 64)) = dotlockUnlock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 72)) = dotlockCheckReservedLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 80)) = unixFileControl // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 88)) = unixSectorSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 96)) = unixDeviceCharacteristics // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 112)) = unixShmLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 120)) = unixShmBarrier // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 128)) = unixShmUnmap // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 136)) = unixFetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 144)) = unixUnfetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:40210:1: - *(*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) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoFinder)) + 0)) = nolockIoFinderImpl // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 8)) = nolockClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 16)) = unixRead // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 24)) = unixWrite // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 32)) = unixTruncate // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 40)) = unixSync // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 48)) = unixFileSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 56)) = nolockLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 64)) = nolockUnlock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 72)) = nolockCheckReservedLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 80)) = unixFileControl // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 88)) = unixSectorSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 96)) = unixDeviceCharacteristics // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 112)) = unixShmLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 120)) = unixShmBarrier // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 128)) = unixShmUnmap // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 136)) = unixFetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 144)) = unixUnfetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:40200:1: - *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoFinder)) + 0)) = posixIoFinderImpl // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 8)) = unixClose // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 16)) = unixRead // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 24)) = unixWrite // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 32)) = unixTruncate // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 40)) = unixSync // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 48)) = unixFileSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 56)) = unixLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 64)) = unixUnlock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 72)) = unixCheckReservedLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 80)) = unixFileControl // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 88)) = unixSectorSize // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 96)) = unixDeviceCharacteristics // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 104)) = unixShmMap // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 112)) = unixShmLock // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 120)) = unixShmBarrier // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 128)) = unixShmUnmap // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 136)) = unixFetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 144)) = unixUnfetch // testdata/sqlite-amalgamation-3380500/sqlite3.c:40190:1: - *(*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.Xlstat})) // testdata/sqlite-amalgamation-3390200/sqlite3.c:35997:22: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 32 /* .pAppData */)) = uintptr(unsafe.Pointer(&posixIoFinder)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 40)) = unixOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 48)) = unixDelete // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 56)) = unixAccess // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 64)) = unixFullPathname // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 72)) = unixDlOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 80)) = unixDlError // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 88)) = unixDlSym // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 96)) = unixDlClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 104)) = unixRandomness // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 112)) = unixSleep // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 120)) = unixCurrentTime // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 128)) = unixGetLastError // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 136)) = unixCurrentTimeInt64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 144)) = unixSetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 152)) = unixGetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 160)) = unixNextSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43489:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 200 /* .pAppData */)) = uintptr(unsafe.Pointer(&nolockIoFinder)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 208)) = unixOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 216)) = unixDelete // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 224)) = unixAccess // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 232)) = unixFullPathname // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 240)) = unixDlOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 248)) = unixDlError // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 256)) = unixDlSym // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 264)) = unixDlClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 272)) = unixRandomness // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 280)) = unixSleep // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 288)) = unixCurrentTime // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 296)) = unixGetLastError // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 304)) = unixCurrentTimeInt64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 312)) = unixSetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 320)) = unixGetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 328)) = unixNextSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43491:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 368 /* .pAppData */)) = uintptr(unsafe.Pointer(&dotlockIoFinder)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 376)) = unixOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 384)) = unixDelete // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 392)) = unixAccess // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 400)) = unixFullPathname // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 408)) = unixDlOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 416)) = unixDlError // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 424)) = unixDlSym // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 432)) = unixDlClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 440)) = unixRandomness // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 448)) = unixSleep // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 456)) = unixCurrentTime // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 464)) = unixGetLastError // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 472)) = unixCurrentTimeInt64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 480)) = unixSetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 488)) = unixGetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 496)) = unixNextSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43492:5: + *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 536 /* .pAppData */)) = uintptr(unsafe.Pointer(&posixIoFinder)) // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 544)) = unixOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 552)) = unixDelete // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 560)) = unixAccess // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 568)) = unixFullPathname // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 576)) = unixDlOpen // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 584)) = unixDlError // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 592)) = unixDlSym // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 600)) = unixDlClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 608)) = unixRandomness // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 616)) = unixSleep // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 624)) = unixCurrentTime // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 632)) = unixGetLastError // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 640)) = unixCurrentTimeInt64 // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr, Sqlite3_syscall_ptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 648)) = unixSetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr) Sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 656)) = unixGetSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aVfs)) + 664)) = unixNextSystemCall // testdata/sqlite-amalgamation-3390200/sqlite3.c:43493:5: + *(*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) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoFinder)) + 0)) = dotlockIoFinderImpl // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 8)) = dotlockClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 16)) = unixRead // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 24)) = unixWrite // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 32)) = unixTruncate // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 40)) = unixSync // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 48)) = unixFileSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 56)) = dotlockLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 64)) = dotlockUnlock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 72)) = dotlockCheckReservedLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 80)) = unixFileControl // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 88)) = unixSectorSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 96)) = unixDeviceCharacteristics // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 112)) = unixShmLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 120)) = unixShmBarrier // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 128)) = unixShmUnmap // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 136)) = unixFetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&dotlockIoMethods)) + 144)) = unixUnfetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:40892:1: + *(*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) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoFinder)) + 0)) = nolockIoFinderImpl // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 8)) = nolockClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 16)) = unixRead // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 24)) = unixWrite // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 32)) = unixTruncate // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 40)) = unixSync // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 48)) = unixFileSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 56)) = nolockLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 64)) = nolockUnlock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 72)) = nolockCheckReservedLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 80)) = unixFileControl // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 88)) = unixSectorSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 96)) = unixDeviceCharacteristics // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 112)) = unixShmLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 120)) = unixShmBarrier // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 128)) = unixShmUnmap // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 136)) = unixFetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&nolockIoMethods)) + 144)) = unixUnfetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:40882:1: + *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoFinder)) + 0)) = posixIoFinderImpl // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 8)) = unixClose // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 16)) = unixRead // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, uintptr, int32, Sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 24)) = unixWrite // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, I64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 32)) = unixTruncate // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 40)) = unixSync // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 48)) = unixFileSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 56)) = unixLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 64)) = unixUnlock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 72)) = unixCheckReservedLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 80)) = unixFileControl // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 88)) = unixSectorSize // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 96)) = unixDeviceCharacteristics // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 104)) = unixShmMap // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 112)) = unixShmLock // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 120)) = unixShmBarrier // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 128)) = unixShmUnmap // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, I64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 136)) = unixFetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*func(*libc.TLS, uintptr, I64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&posixIoMethods)) + 144)) = unixUnfetch // testdata/sqlite-amalgamation-3390200/sqlite3.c:40872:1: + *(*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: -} - -var ts1 = "3.38.5\x00ATOMIC_INTRINSICS=0\x00COMPILER=clang-11.1.0\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=0\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\x00open\x00close\x00access\x00getcwd\x00stat\x00fstat\x00ftruncate\x00fcntl\x00read\x00pread\x00pread64\x00write\x00pwrite\x00pwrite64\x00fchmod\x00fallocate\x00unlink\x00openDirectory\x00mkdir\x00rmdir\x00fchown\x00geteuid\x00mmap\x00munmap\x00mremap\x00getpagesize\x00readlink\x00lstat\x00ioctl\x00attempt to open \"%s\" as file descriptor %d\x00/dev/null\x00os_unix.c:%d: (%d) %s(%s) - %s\x00cannot fstat db file %s\x00file unlinked while open: %s\x00multiple links to file: %s\x00file renamed while open: %s\x00%s\x00full_fsync\x00%s-shm\x00readonly_shm\x00psow\x00unix-excl\x00%s.lock\x00/var/tmp\x00/usr/tmp\x00/tmp\x00SQLITE_TMPDIR\x00TMPDIR\x00%s/etilqs_%llx%c\x00modeof\x00fsync\x00/dev/urandom\x00unix\x00unix-none\x00unix-dotfile\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'\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]\x00so\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_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\x00exclusive\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\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\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\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: +} + +var ts1 = "3.39.2\x00ATOMIC_INTRINSICS=0\x00COMPILER=clang-13.0.0\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=0\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\x00open\x00close\x00access\x00getcwd\x00stat\x00fstat\x00ftruncate\x00fcntl\x00read\x00pread\x00pread64\x00write\x00pwrite\x00pwrite64\x00fchmod\x00fallocate\x00unlink\x00openDirectory\x00mkdir\x00rmdir\x00fchown\x00geteuid\x00mmap\x00munmap\x00mremap\x00getpagesize\x00readlink\x00lstat\x00ioctl\x00attempt to open \"%s\" as file descriptor %d\x00/dev/null\x00os_unix.c:%d: (%d) %s(%s) - %s\x00cannot fstat db file %s\x00file unlinked while open: %s\x00multiple links to file: %s\x00file renamed while open: %s\x00%s\x00full_fsync\x00%s-shm\x00readonly_shm\x00psow\x00unix-excl\x00%s.lock\x00/var/tmp\x00/usr/tmp\x00/tmp\x00SQLITE_TMPDIR\x00TMPDIR\x00%s/etilqs_%llx%c\x00modeof\x00fsync\x00/dev/urandom\x00unix\x00unix-none\x00unix-dotfile\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'\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]\x00so\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_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\x00exclusive\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\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\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\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 -- cgit v1.2.3